[android-developers] Determine Application State (Foreground/Background) when onNewIntent() is called due to URL scheme
onNewIntent() of MainActivity with launchMode 'singleTop' is called when application is invoked using its registered URL scheme. The order of call is : onPause (app is entering in background) onNewIntent (open url intent passed) onResume (app is in foreground) In onNewIntent(), how can one determine if application was running in foreground when the open url intent arrived ? If I decide to track the state using a flag inForeground that is initialized to false and set to false in onPause and true in onResume, applicationState will always be background (inForeground will be false in onPause). -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Google maps Android function
Re: 3) I have a large list of addresses (540 pcs.) How to determine longitude mass and width (to refer to them on the map)? I am developing a map based application to allow pet owners to exchange pet sitting and I had similar questions before finding the solution. Try using the Google Service that lets you do geocoding: http://maps.googleapis.com/maps/api/geocode/json?address=some addresssensor=true Will return a JSON output that you can parse to look for the appropriate information. As you might have guessed you will need to do an HTTP GET and parse the output response. -- 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
[android-developers] Re: database and maps
Putting latitudes and longitudes is one way. Putting just the address and geocoding it before displaying on map is another. The caveat with the latter approach is that geocoding everytime you retrieve data is costly. Since latitudes/longitudes associated with addresses do not change, it is best to store lat/lng in dB after geocoding the address at the time of inserting the entry in db. On Mar 22, 4:48 pm, sunny sunnykradi...@gmail.com wrote: in my project i need to take entries frm Db and show location on map is der any simpler approach den puttin latitude and longitude in table -- 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
[android-developers] Re: Source Code for HelloGoogleMaps Tutorial
Hello, The official tutorial works for me. http://developer.android.com/resources/tutorials/views/hello-mapview.html Its best to debug to identify the problem. Did you include marker images in your res/drawable* directories ? Regards, Piyush Hari http://petsiiphoneapp.com PETSI: Where Pets meet their sitters... Android Version coming soon... On Mar 13, 3:58 pm, Dominik Schury dominik.sch...@googlemail.com wrote: Hello Developers, I am new at Android development and I work through the tutorials. The HelloGoogleMaps Tutorial http://developer.android.com/resources/tutorials/views/hello-mapview does not work on my phone. The map is shown but not the marker. So I want to ask if someone has a working source code of the tutorial? I can not understand that Google does not provide! Thank you in advance. -- 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