[android-developers] Maps API - internal persistence of data

2012-05-12 Thread Simon Giddings
I am building a maps api application and have noticed that the map position 
and zoom levels are restored upon subsequent application launches.

Is it possible to access this persistence store so as to be able to control 
and detect what data is going to be restored.
This would be notably useful to not have to reinvent the same process.

In addition, it would appear that it will restore the last position using a 
default marker - which in my case is not necessarily what is needed.

I would prefer being able to do this through correct api calls as opposed 
to hacking it.

-- 
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

Re: [android-developers] Maps API - internal persistence of data

2012-05-12 Thread Mark Murphy
On Sat, May 12, 2012 at 11:53 AM, Simon Giddings
mr.s.giddi...@gmail.com wrote:
 I am building a maps api application and have noticed that the map position
 and zoom levels are restored upon subsequent application launches.

 Is it possible to access this persistence store so as to be able to control
 and detect what data is going to be restored.

Not that I am aware of.

 In addition, it would appear that it will restore the last position using a
 default marker - which in my case is not necessarily what is needed.

I cannot reproduce that behavior. I see no markers if I have not added
them myself via an overlay.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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


Re: [android-developers] Maps API - internal persistence of data

2012-05-12 Thread Simon Giddings
Hi Mark,

Thank you for your rapid reply (notably for a Saturday).

You are right - I spoke too soon.  I was creating the marker myself (*now 
that's embarrassing*).
It would appear that the last location, zoom level and map type is 
preserved.

It would still be good to be able to grab this, I feel.

On Saturday, 12 May 2012 18:18:12 UTC+2, Mark Murphy (a Commons Guy) wrote:

 On Sat, May 12, 2012 at 11:53 AM, Simon Giddings 
 mr.s.giddi...@gmail.com wrote: 
  I am building a maps api application and have noticed that the map 
 position 
  and zoom levels are restored upon subsequent application launches. 
  
  Is it possible to access this persistence store so as to be able to 
 control 
  and detect what data is going to be restored. 

 Not that I am aware of. 

  In addition, it would appear that it will restore the last position 
 using a 
  default marker - which in my case is not necessarily what is needed. 

 I cannot reproduce that behavior. I see no markers if I have not added 
 them myself via an overlay. 

 -- 
 Mark Murphy (a Commons Guy) 
 http://commonsware.com | http://github.com/commonsguy 
 http://commonsware.com/blog | http://twitter.com/commonsguy 

 Android App Developer Books: http://commonsware.com/books 


-- 
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

Re: [android-developers] Maps API - internal persistence of data

2012-05-12 Thread Mark Murphy
On Sat, May 12, 2012 at 12:27 PM, Simon Giddings
mr.s.giddi...@gmail.com wrote:
 Thank you for your rapid reply (notably for a Saturday).

Just sitting here, trying to figure out why AlarmManager alarm isn't working...

 It would still be good to be able to grab this, I feel.

There are lots and lots of things that would be good if the Google
Maps add-on offered. Holding your breath waiting for them is not
recommended. :-(

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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