Showing posts with label FileNotFound Exception on Accesing PHP file in Android. Show all posts
Showing posts with label FileNotFound Exception on Accesing PHP file in Android. Show all posts

Tuesday, April 9, 2013

[android help] FileNotFound Exception on Accesing PHP file in Android

httpclient - FileNotFound Exception on Accesing PHP file in Android - Stack Overflow



















I am trying on Client/Server side application in android. I have a php file which simply get or post data. On Android I have an activity which get and post data from server file. I hav problem in accessing that file which is located on c://xampp/htdocs/Project/server.php and in android I have these lines of code:



URL url = new URL("http://192.178.10.54/xampp/htdocs/Project1/server.php");
URLConnection connection = url.openConnection();


But when I run my app these lines of exception occurres :



04-09 16:18:21.484: W/System.err(7752):java.io.FileNotFoundException: http://192.178.10.54/xampp/htdocs/Project1/server.php
04-09 16:18:21.664: W/System.err(7752): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
04-09 16:18:21.664: W/System.err(7752): at com.android.ServerInterface.executeHttpRequest(ServerInterface.java:111)
04-09 16:18:21.664: W/System.err(7752): at com.android.ServerInterface.getAnimalList(ServerInterface.java:60)
04-09 16:18:21.664: W/System.err(7752): at com.android.AndroidListClient$GetListTask.doInBackground(AndroidListClient.java:106)
04-09 16:18:21.664: W/System.err(7752): at com.android.AndroidListClient$GetListTask.doInBackground(AndroidListClient.java:1)





















default






.

stackoverflow.comm

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...