I am using something similar. I have a PHP script online, I give my parameters by using $_GET, then I let my PHP do the work and write my output to an XML code which I read again on Android.
Small sample: //Creating URL URL cUrl = null; String url = "http://www.link.com?paramater=hi"; try { cUrl = URI.create(url).toURL(); } catch (MalformedURLException e) { } //Creating XML document DocumentBuilder builder = DocumentBuilderFactory.newInstance ().newDocumentBuilder(); //Read the XML document Document doc = builder.parse(cUrl.openStream()); //Getting all tags which have TagName as name and get the value of the first element. NodeList nodes = doc.getElementsByTagName("TagName"); String value = nodes.item(0).getNodeValue(); On Jan 5, 12:24 am, Miguel Morales <therevolti...@gmail.com> wrote: > You can write an applications backend in php, but why would you want to use > php to write for the phone? The main language is java though apps can be > written in c/perl/python/lua, but no php yet afaik. > > On Jan 4, 2010 12:13 PM, "androidbeginner" <sahayamj.m...@gmail.com> wrote: > > Is it possible create android applications using PHP? can we port php > code in to the android applications? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en