Veja como trabalhar com PHP + Android + Location
System Message: WARNING/2 (/Users/avelino/workspace/avelino.github.io/content/old/trabalhando-com-location-em-php-para-android.rst, line 10)
Cannot analyze code. No Pygments lexer found for "brush:php".
.. code:: brush:php include("Android.php"); $droid = new Android(); $droid->dialogCreateAlert(); $result = array(); $latitude = $droid->getInput("Location", "Latitude: "); $longitude= $droid->getInput("Location", "Longitude: "); $locations = $droid->geocode($latitude['result'], $longitude['result']); foreach ($locations['result'] as $location) { $location = get_object_vars($location); foreach ($location as $key => $value) { $result[] = ucfirst(str_replace('_', ' ', $key)).': '.$value; } } $droid->dialogSetItems($result); //displays the box $droid->dialogShow();
by Anton
0sem comentários ainda