Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8090171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:38:05+00:00 2026-06-05T19:38:05+00:00

I am trying to run an andriod application from emulator , but whenever i

  • 0

I am trying to run an andriod application from emulator , but whenever i send a valid url request it is showing 404 as status code . I have following code.

if i use

http://10.0.2.2/api/ca/entry/?format=json&username=pragya

from emulator browser , it is returning fine.

   HttpClient httpclient = new DefaultHttpClient();
                    HttpGet httppost = new HttpGet("http://10.0.2.2/api/ca/entry/?format=json&username=pragya");
                    try {

                        HttpResponse response = httpclient.execute(httppost);
                        Integer i =response.getStatusLine().getStatusCode();
                        Toast.makeText(HelloWorldActivity.this, i.toString(), Toast.LENGTH_SHORT).show();
                        }

EDIT…………….
The manifest file is as below

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.andriod.test"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="10" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".HelloWorldActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:38:09+00:00Added an answer on June 5, 2026 at 7:38 pm

    try two thing one shuold be solution

    1 – check entry is there in manifest android.permission.INTERNET

    2- try to open the same in phone native browser

    • 2-a if get open then it’s fine

      2-b if not get open try that url in desktop browser

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to run android application from eclipse console shows [2012-01-31 14:01:01 - Remix_6Dec11]
I'm trying to run an application from eclipse on a rooted acer iconia tab,
I am trying to pull a timeline from yamba with an android application, but
I am trying to make my Android application run some code when run from
I am trying to access textalertapp.com via HTTP Post request from my android application.
I'm trying to run my android application on IntelliJ. I created a project from
I am trying to run HelloWorld android application, but the application doesn't load in
I am trying run a program from a qmake .pro file which modifies the
I am trying to run an Android emulator on Ubuntu 11.10 x64 with Eclipse
I'm trying to run an android app from eclipse on my device (moto droid2).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.