[android-developers] Re: Multiple MapViews and MapActivities

2011-07-06 Thread jotobjects
Thanks for tip on Google Static Maps - Perfect solution for this
requirement!

On Jul 3, 7:03 am, lbendlin l...@bendlin.us wrote:
 in our app we are using static map pictures (from the Google Statis maps
 API) for the secondary (north up, infrequent use) map view.

-- 
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: Multiple MapViews and MapActivities

2011-07-03 Thread lbendlin
in our app we are using static map pictures (from the Google Statis maps 
API) for the secondary (north up, infrequent use) map view.

-- 
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: Multiple MapViews and MapActivities

2011-07-02 Thread gjs
Hi,

I have done what you describe previously to make an auto rotating Map
view based on compass direction - using a ViewGroup and View.draw().
Yes you don't know when the map tiles have been returned but in
general this does not matter if you keep rendering it in a loop - in
my case when compass direction changed. You can always sample part of
the bitmap image to see if it is still displaying the 'grid on white
background' to know when the map tile are present or not.

Regards

On Jul 2, 8:30 am, jotobjects jotobje...@gmail.com wrote:
 Cool thanks - we will look at that.  A gotcha is you don't know how
 long it will take for the tiles to be returned before you can get the
 image of the map.

 It was also suggested that we just use a webview with the google maps
 web api for the static thumbnail map.  That sounds like it might be
 simpler?

-- 
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: Multiple MapViews and MapActivities

2011-07-01 Thread jotobjects
Too bad.  Now thinking about a workaround for the specific case we
have.  The thumbnail map is actually static (not clickable/pannable).

Is there a way to get an image of a fully inflated and drawn View?
I'm thinking we could call View.draw(canvas) and get a drawable from
the MapView and then just display the image.  Is that possible?  Does
anyone have an example of the steps to do it?

On Jun 30, 9:55 pm, TreKing treking...@gmail.com wrote:
 On Thu, Jun 30, 2011 at 11:04 PM, jotobjects jotobje...@gmail.com wrote:
  How can you make two MapViews work independently of each other in the same
  application?

 AFAIK, you can't. There is an apparent one-to-one relationship with MapView
 and MapActivity and there is only one MapActivity allowed per process.

 http://code.google.com/android/add-ons/google-apis/reference/com/goog...

  Only one MapActivity is supported per process. Multiple MapActivities
  running simultaneously are likely to interfere in unexpected and undesired
  ways.

 Looks like you found one of the unexpected and undesired ways.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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] Re: Multiple MapViews and MapActivities

2011-07-01 Thread Mark Murphy
On Fri, Jul 1, 2011 at 2:53 PM, jotobjects jotobje...@gmail.com wrote:
 Too bad.  Now thinking about a workaround for the specific case we
 have.  The thumbnail map is actually static (not clickable/pannable).

 Is there a way to get an image of a fully inflated and drawn View?

http://stackoverflow.com/questions/5939987/android-take-screenshot-via-code/5940832#5940832

 I'm thinking we could call View.draw(canvas) and get a drawable from
 the MapView and then just display the image.  Is that possible?  Does
 anyone have an example of the steps to do it?

It's conceivable that there are issues with the above technique and
MapView, and I have never tried this, but it seems to be the standard
answer for what you're seeking.

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

_Android Programming Tutorials_ Version 3.5 Available!

-- 
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: Multiple MapViews and MapActivities

2011-07-01 Thread jotobjects
Cool thanks - we will look at that.  A gotcha is you don't know how
long it will take for the tiles to be returned before you can get the
image of the map.

It was also suggested that we just use a webview with the google maps
web api for the static thumbnail map.  That sounds like it might be
simpler?

-- 
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: multiple mapviews

2010-07-15 Thread prachi
Hii

In order to show two mapview u need to implement it in the same draw()
method of the map activity.Put some condition check for two map views
as suited to u for setting paramaeters for scaling up and scaling down
taking the same canvas object.

On Jul 14, 1:50 am, Michael michael...@gmail.com wrote:
 Good idea. I would put them in tabs

 On Jul 13, 9:46 am, TreKing treking...@gmail.com wrote:



  On Tue, Jul 13, 2010 at 12:31 AM, rukiman ruksh...@optushome.com.au wrote:
   Any way I can implement this?

  Idea: Override onDraw() on the MapView (or Activity, or wherever), set the
  parameters you need (location, zoom level) to draw scaled down, draw to a
  canvas or bitmap, scale up, draw again to a new canvas or bitmap, then
  stitch the two together somehow. Fill in the specific, more complicated
  details from there =).

  --- 
  --
  TreKing - Chicago transit tracking app for Android-powered 
  deviceshttp://sites.google.com/site/rezmobileapps/treking- Hide quoted text 
  -

 - Show quoted text -

-- 
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] Re: multiple mapviews

2010-07-13 Thread TreKing
On Tue, Jul 13, 2010 at 12:31 AM, rukiman ruksh...@optushome.com.au wrote:

 Any way I can implement this?


Idea: Override onDraw() on the MapView (or Activity, or wherever), set the
parameters you need (location, zoom level) to draw scaled down, draw to a
canvas or bitmap, scale up, draw again to a new canvas or bitmap, then
stitch the two together somehow. Fill in the specific, more complicated
details from there =).

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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: multiple mapviews

2010-07-13 Thread Michael
Good idea. I would put them in tabs

On Jul 13, 9:46 am, TreKing treking...@gmail.com wrote:
 On Tue, Jul 13, 2010 at 12:31 AM, rukiman ruksh...@optushome.com.au wrote:
  Any way I can implement this?

 Idea: Override onDraw() on the MapView (or Activity, or wherever), set the
 parameters you need (location, zoom level) to draw scaled down, draw to a
 canvas or bitmap, scale up, draw again to a new canvas or bitmap, then
 stitch the two together somehow. Fill in the specific, more complicated
 details from there =).

 --- 
 --
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
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: multiple mapviews

2010-07-12 Thread prachi
hiii

could u please throw some light on your problem???

On Jul 13, 7:37 am, rukiman ruksh...@optushome.com.au wrote:
 I know I cannot create two MapViews in a MapActivity. And I cannot
 create two MapActivities in a process. Is there a work around that
 will enable me to display two mapviews side by side?

-- 
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: multiple mapviews

2010-07-12 Thread rukiman
I want a mapview which shows the map scaled down and another mapview
which shows the map scaled up.
Any way I can implement this?

On Jul 13, 2:51 pm, prachi prachi.tya...@wipro.com wrote:
 hiii

 could u please throw some light on your problem???

 On Jul 13, 7:37 am, rukiman ruksh...@optushome.com.au wrote:

  I know I cannot create two MapViews in a MapActivity. And I cannot
  create two MapActivities in a process. Is there a work around that
  will enable me to display two mapviews side by side?



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