I intend to do an application that sometimes receives pictures from a server and sends pictures or other data back. As it should go over 3G or WIFI, I was thinking of PHP as the server side. It is easy to access online and can receive images.
I have some concerns:
- Can an Android app receive image from a PHP site?
- Can a PHP site use push messages to broadcast an image?
- Can an Android app "upload" images to a PHP site?
If it is possible with PHP, is there any example for that?
If not:
What should I use as a server side to cover the aforementioned scenario?
Update:
Really? You want specific problem? Then here it is:
The following code can't download an image from a given php site:
DefaultHttpClient client=new DefaultHttpClient();
client.getImage(url);
I can't make it compile. What could be the problem?