• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Unable to Resolve Host

IIT11

Lurker
Hi, I have been trying to run an application that stores and retrieves data from MySQL using PHP and Android. The whole project is on this link.
I am getting the following error
err1.png err2.png

I have connected both my phone and the server(laptop-localhost) to the wifi. I have checked the ping after checking the ipconfig to know the ip address of localhost.

Ip address is 192.168.1.34
ipconfig.png
ping is working fine
ping.png
this address is working in browser
ipworking.png

, I have searched a lot and got the same answer to include foll. in manifest file

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

But I had already included it and still facing the same problem.
Here is my code of manifest file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.androidhive"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />

    <application
        android:configChanges="keyboardHidden|orientation"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >


        <activity
            android:name=".MainScreenActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

        <!-- All Product Activity -->
        <activity
            android:name=".AllProductsActivity"
            android:label="All Products" >
        </activity>

        <!-- Add Product Activity -->
        <activity
            android:name=".NewProductActivity"
            android:label="Add New Product" >
        </activity>

        <!-- Edit Product Activity -->
        <activity
            android:name=".EditProductActivity"
            android:label="Edit Product" >
        </activity>
    </application>

    <!--  Internet Permissions -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

</manifest>


Please help and oblige
Thank You
 
Back
Top Bottom