[android-developers] Re: MapView (Maps V2) not working

2014-09-24 Thread gjs
Hi, You seem to have map onPause / onResume mixed up - @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); map.onResume(); } It should be - @Override protected void onPause() { // TODO Auto-generated method

[android-developers] Re: MapView showing up blank with release api key.

2012-11-09 Thread Electric Shipwright
It gives me: 11-09 09:17:47.435: W/System.err(3812): IOException processing: 26 11-09 09:17:47.435: W/System.err(3812): java.io.IOException: Server returned: 3 11-09 09:17:47.435: W/System.err(3812): at

[android-developers] Re: MapView showing up blank with release api key.

2012-11-09 Thread Electric Shipwright
I tried creating a clone of the project with a different reverse domain name, to see if the problem occurred due to the fact that the news app has been published with that name on Google Play. It behaves the same. So it has got to be about the application somehow, and not about the signatures.

[android-developers] Re: MapView showing up blank with release api key.

2012-11-09 Thread Electric Shipwright
Well... This is embarassing. I had two layouts, apparently. And one, map_view.xml was the one I was editing. It was on the other hand, map_and_list_screen.xml that the app had exploded into content upon launching the map activity. This stuff happens, -it seems it could really happen to anyone,

[android-developers] Re: MapView showing up blank with release api key.

2012-11-08 Thread Electric Shipwright
(I did search the forums, and many others. Usually the solution here is to regenerate the key or trying to get the MD5 sum again. I've done this many times, but with no success) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: MapView Overlays move after returning from activity started from onTap

2012-09-24 Thread Na Yang
Some additional information: I overrode the drawable methods and found onBoundsChange() was being called on return to the map activity. I suppose there is a redraw of some sort, but not sure where. At this time the bounds are different. I have a workaround... but I would still like an answer as

[android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Jason Hsu
Thanks for the quick responses. If there isn't a function that pulls up Google maps and automatically does a search, then how do apps like Meijer Find-ithttps://play.google.com/store/apps/details?id=com.meijer.finditfeature=search_resultand Liquor Run

Re: [android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 5:26 PM, Jason Hsu jhsu802...@gmail.com wrote: If there isn't a function that pulls up Google maps and automatically does a search, then how do apps like Meijer Find-ithttps://play.google.com/store/apps/details?id=com.meijer.finditfeature=search_resultand Liquor Run

[android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread Jason Hsu
Would a script in HTML5 be able to provide the automatic Google Map search capability that I'm seeking? Or is having an in-app database the only way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: MapView search for nearest grocery stores, gas stations, restaurants, etc.

2012-08-13 Thread TreKing
On Mon, Aug 13, 2012 at 10:55 PM, Jason Hsu jhsu802...@gmail.com wrote: Would a script in HTML5 be able to provide the automatic Google Map search capability that I'm seeking? I have no idea. HTML5 has nothing to do with Android or this list. I'm not really sure how you expect this

[android-developers] Re: MapView - getMapCenter() not accurate?

2012-05-08 Thread Schurl
Thank you for the answer. But i don't understand why the circle in my example moves when i scroll horizontal when i call getMapCenter() at every draw() call. On Wednesday, May 2, 2012 4:52:56 PM UTC+2, Schurl wrote: Hi, I'll try to break down my problem to a simple example. I tried to draw

[android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread lbendlin
- are you using the mytouch3g as the main development device? do you copy the apk over and then install? or do you install via Eclipse? - are you always using the same development computer? (the debug key is machine specific) -- You received this message because you are subscribed to the

[android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Daniel Rindt
And a reason could be when the google api's not on the device are present. -- 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

Re: [android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Mark Murphy
On Thu, Feb 9, 2012 at 4:33 PM, Daniel Rindt daniel.ri...@googlemail.com wrote: And a reason could be when the google api's not on the device are present. The app shouldn't install in that case. Or, if they have android:required=false for the uses-library, the app would crash when trying to

[android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Jim Andresakis
@ibendlin The first device that I test on is a Verizon motorola droid x2 running 2.3.4 and then a samsung infuse but I have 10 other devices to test on when I need them. The tmobile mytouch that cant see the map tiles is one of my partners phone and being that hes in another state I usually email

[android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Jim Andresakis
Hey Mark thanks for replying :) I went over my manifest file with a fine tooth comb and tripple checked all the network conditions but its just odd that map tiles will load on one device and then not on another. I had my partner on the east coast using the same version of the app that I had last

Re: [android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Mark Murphy
On Thu, Feb 9, 2012 at 6:27 PM, Jim Andresakis jimandresa...@gmail.com wrote: Is it possible that there is a limit on the number of devices that would have access to the maptiles when using a development apk that was exported rather than pushed on to the phone via eclipse? Not that I am aware

Re: [android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread lbendlin
@Mark: That doesn't mean much any more as the Google Maps app is now totally un-coupled from the API (the app uses vector data, the API raster tiles). I have a MyTouch3G too in my device zoo, and haven't seen such behaviour. You may see some kind of error message in the logcat. Can your partner

Re: [android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Mark Murphy
On Thu, Feb 9, 2012 at 8:05 PM, lbendlin l...@bendlin.us wrote: @Mark: That doesn't mean much any more as the Google Maps app is now totally un-coupled from the API (the app uses vector data, the API raster tiles). Ah, good point. -- Mark Murphy (a Commons Guy) http://commonsware.com |

[android-developers] Re: MapView works on some devices and others it doesnt

2012-02-09 Thread Jim Andresakis
@ibendlin I could ask him for one but he did mention that hell have a new phone in a week and hell be sending the old one in the mail out here so I can test on it myself. When I get my hands on it Ill post back to this thread with any errors related to the mapview. On Feb 9, 5:05 pm, lbendlin

[android-developers] Re: MapView OverlayItem

2011-09-01 Thread Stefan S
And how should I do that? I'm pretty new with java coding On 31 Aug., 18:00, TreKing treking...@gmail.com wrote: On Wed, Aug 31, 2011 at 12:56 AM, Stefan S shogu...@gmail.com wrote: So han can I listen to the onTap Event in the MapActivity-Class? Create your own callback.

Re: [android-developers] Re: MapView OverlayItem

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 3:20 AM, Stefan S shogu...@gmail.com wrote: And how should I do that? Google Java listener pattern and see what you find. The platform itself uses this pattern extensively so you've likely already seen it (ex: ClickListener).

[android-developers] Re: MapView

2011-08-30 Thread bob
Turns out I needed a Debug key, not just my Release key. On Aug 29, 11:37 pm, Robert Thau rst...@gmail.com wrote: The most common cause of this sort of misbehavior is forgetting to request internet access permission in the Android manifest (without which the MapView's background threads don't

[android-developers] Re: MapView Tiles not loading on my device, they are in my emulator

2011-08-05 Thread Tonez
Hi TreKing, Thanks for the response. After checking my application tag to see if debuggable=true was there I actually didn't have it in there, after putting it in I still can't get my map tiles to load on my device using my debug api key (I cleaned my project, uninstalled my app from the phone

[android-developers] Re: MapView Tiles not loading on my device, they are in my emulator

2011-08-05 Thread Tonez
Ok I got it sorted. All that was needed was rebooting my device. I never really turn it off, whenever I make changes to my .apk i uninstall it using the settings of my device - evidentally in this case that wasn't enough. Cheers for the help :). On Aug 5, 10:15 am, Tonez apires...@gmail.com

Re: [android-developers] Re: MapView Tiles not loading on my device, they are in my emulator

2011-08-05 Thread TreKing
Glad you sorted it out ... to answer the last few questions: On Fri, Aug 5, 2011 at 4:15 AM, Tonez apires...@gmail.com wrote: Is it even possible to debug the map view on a device using a debug api key? Yup. Just so I understand your last comment about release mode: in order to switch

[android-developers] Re: MapView and terms of service

2011-07-07 Thread Fina Perez
Just in case, I moved the buttons to the top of the screen, so the logo is always visible. But, yes...I guess the one with the best answer is a lawyer On Jul 7, 12:16 pm, Mark Murphy mmur...@commonsware.com wrote: This is a fine question to ask your attorney. On Thu, Jul 7, 2011 at 4:18

[android-developers] Re: MapView Overlay problem

2011-07-02 Thread Felix Garcia Lainez
Ok thanks! I will take a look.. On 1 jul, 17:34, Kostya Vasilyev kmans...@gmail.com wrote: TraceView and dmtracedump: http://developer.android.com/guide/developing/debugging/debugging-tra... 01.07.2011 19:26, TreKing ?:     How should i profile this case? Really as i said there is

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Hi, So you are doing something similar to my draw method? I have just tested without alpha and anti-alising and it is faster, but when there is big zoom level the mapactivity is closed (i think this is due to memory usage) How should i profile this case? Really as i said there is not any

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Ok it sounds good... The problem is that i don't know what initial value to use for tolerance parameter... What would you recommend? 5 meters? Thanks! On 1 jul, 03:41, JP joachim.pfeif...@gmail.com wrote: I haven't had to use the Douglas-Peucker algorithm, but I understand others have so with

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread JP
You could conceivably use a change in zoom level to drive the thinning of the poly lines, or other factors that help you determine the level of thinning. This is not trivial - you'll want to run the algorithm outside of your Overlay.draw() and probably not draw any lines until the algorithm has

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
Ok thank you. I will try to see how they do this. On 1 jul, 15:49, JP joachim.pfeif...@gmail.com wrote: You could conceivably use a change in zoom level to drive the thinning of the poly lines, or other factors that help you determine the level of thinning. This is not trivial - you'll want to

Re: [android-developers] Re: MapView Overlay problem

2011-07-01 Thread TreKing
On Fri, Jul 1, 2011 at 4:00 AM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: So you are doing something similar to my draw method? Yup - nearly identical. What I don't do is use anti-aliasing (unless it's on be default, I don't know) or alpha. I also only use moveTo() once (first point)

Re: [android-developers] Re: MapView Overlay problem

2011-07-01 Thread Kostya Vasilyev
TraceView and dmtracedump: http://developer.android.com/guide/developing/debugging/debugging-tracing.html 01.07.2011 19:26, TreKing ?: How should i profile this case? Really as i said there is not any strange thing on the code... Simply a map with an overlay... No idea. Look at

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread Felix Garcia Lainez
I have improved the responsiveness using some of MyTrack approaches, but i am still getting this exception, simply doing zoom in and zoom out sometimes java.lang.OutOfMemoryError: bitmap size exceeds VM budget at android.graphics.Bitmap.nativeCreate(Native Method) at

Re: [android-developers] Re: MapView Overlay problem

2011-07-01 Thread TreKing
On Fri, Jul 1, 2011 at 11:29 AM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: I have improved the responsiveness using some of MyTrack approaches, but i am still getting this exception, simply doing zoom in and zoom out sometimes I doubt there's much you can do about that - the

[android-developers] Re: MapView Overlay problem

2011-07-01 Thread JP
The stack trace does not include any calls to your code. I suspect it has to do with the loading of map tiles. Nothing you can do that I know of. I am seeing this for years now, but not at an alarming clip. How time flies... Anyway, it would be lovely to learn about this some more. Perhaps

Re: [android-developers] Re: MapView Overlay problem

2011-07-01 Thread TreKing
On Fri, Jul 1, 2011 at 12:26 PM, JP joachim.pfeif...@gmail.com wrote: As a side note, I never bothered to check, I'm sure this problem has a record in some issues database already, where you could push a button or star. As a matter of fact ...

[android-developers] Re: MapView Overlay problem

2011-06-30 Thread Felix Garcia Lainez
I use this code: public class PolylineOverlay extends Overlay { private ArrayListGeoPoint polyline; // Contains set of points to be connected. private Paint pathPaint = null; // Paint tool that is used to draw on the map canvas. public PolylineOverlay(ArrayListGeoPoint polyline,

Re: [android-developers] Re: MapView Overlay problem

2011-06-30 Thread TreKing
On Thu, Jun 30, 2011 at 5:47 PM, Felix Garcia Lainez fgarcialai...@gmail.com wrote: About the size with 300 or 400 GeoPoints i am already having problems... The method isOnePointVisible is an optimization i did in order to try to improve performance (seems to work fine). So I have a very

[android-developers] Re: MapView Overlay problem

2011-06-30 Thread JP
I haven't had to use the Douglas-Peucker algorithm, but I understand others have so with success. http://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm This algorithm will thin out the number of poly lines. Apparently there's an open source implementation in the Android

[android-developers] Re: MapView - infowindow

2011-04-21 Thread Android
i think this will help you http://android-codes-examples.blogspot.com/2011/04/google-map-example-in-android-with-info.html -- 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] Re: MapView

2011-04-03 Thread Daniel Rindt
On 3 Apr., 19:01, Mark Murphy mmur...@commonsware.com wrote: Use a LinearLayout as the container for the map and the TableLayout. Give the map a height of 0 and a weight of 1. Give the table whatever height makes sense and no weight. This is unfortunately not really working. Here is my code:

Re: [android-developers] Re: MapView

2011-04-03 Thread Mark Murphy
On Sun, Apr 3, 2011 at 2:14 PM, Daniel Rindt daniel.ri...@googlemail.com wrote: On 3 Apr., 19:01, Mark Murphy mmur...@commonsware.com wrote: Use a LinearLayout as the container for the map and the TableLayout. Give the map a height of 0 and a weight of 1. Give the table whatever height makes

Re: [android-developers] Re: MapView

2011-04-03 Thread Kostya Vasilyev
That layout file mixes metaphors: it has layout_weight, a LinearLayout option, inside a RelativeLayout. It needs to be one or the other. 03.04.2011 22:23 пользователь Mark Murphy mmur...@commonsware.com написал: -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: MapView

2011-04-03 Thread Daniel Rindt
On 3 Apr., 20:22, Mark Murphy mmur...@commonsware.com wrote: You declined to explain what not really working is, forcing us to guess. I followed your suggestions, but the table and the button is not visible. That i forgot to mention in my previous post. The map uses the entire screen again. My

Re: [android-developers] Re: MapView

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 1:53 PM, Daniel Rindt daniel.ri...@googlemail.comwrote: I followed your suggestions, but the table and the button is not visible. You didn't really follow Mark's suggestions completely. Reread his post. The map uses the entire screen again. Well you told it to.

[android-developers] Re: Mapview not touchable

2011-03-30 Thread lbendlin
did you set mMapView.setEnabled(true); mMapView.setClickable(true); ? -- 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,

[android-developers] Re: Mapview ArrayIndexOutOfBoundsException in java.util.Vector.elementAt

2011-03-13 Thread Stephan Wiesner
You might have to do some catching of exceptions in your ItemizedOverlay and/or LocationOverlay classes. There are some bugs eg on Motorola phones that lead to unexpected exceptions on some phones/ versions of phones/versions of Android. I can't find the links at the moment, there is a discussion

[android-developers] Re: MapView Points of Interest

2010-09-03 Thread Maps.Huge.Info (Maps API Guru)
Even with a webview based map (using the Google v3 JavaScript API) you still have to know where the POI's are located. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

RE: [android-developers] Re: MapView Points of Interest

2010-09-03 Thread Tommy
, September 03, 2010 10:58 AM To: Android Developers Subject: [android-developers] Re: MapView Points of Interest Even with a webview based map (using the Google v3 JavaScript API) you still have to know where the POI's are located. -John Coryat -- You received this message because you are subscribed

[android-developers] Re: MapView + Image Overlay question

2010-08-29 Thread Maps.Huge.Info (Maps API Guru)
Weatherbug and Weather Channel have specialized servers that deliver this content to the app. Unless you want to go through all that trouble yourself, you might reconsider your plan. -John Coryat -- You received this message because you are subscribed to the Google Groups Android Developers

RE: [android-developers] Re: MapView + Image Overlay question

2010-08-29 Thread Tommy
: Sunday, August 29, 2010 3:20 PM To: Android Developers Subject: [android-developers] Re: MapView + Image Overlay question Weatherbug and Weather Channel have specialized servers that deliver this content to the app. Unless you want to go through all that trouble yourself, you might reconsider your plan

[android-developers] Re: Mapview ConcurrentModification Exception

2010-06-28 Thread Necroline
Fixed it, i removed the Overlays reference from the mapview and it worked :) On 28 juin, 16:01, Necroline adeline.hul...@gmail.com wrote: Hello everyone, As the title suggest i have (sometimes) a concurrentmodificationexception while trying to create a route between two locations ... Here

[android-developers] Re: MapView Overlay Location Way Off

2010-05-28 Thread jtkendall
Turns out my latitude and longitude's were not being converted to microdegrees correctly. Taking the latitudes and longitudes and converting them from 37.331689 and -122.030731 to 37331689 and -122030731 were actually ending up as 3700 and -12200. I was using double*1E6 to convert to

[android-developers] Re: MapView Marker and Parameter

2010-05-11 Thread Ning
Thank you, TreKing. That helps. On May 11, 10:30 am, TreKing treking...@gmail.com wrote: On Mon, May 10, 2010 at 11:39 PM, Ning zeeg...@gmail.com wrote: Is there API to draw the blue flashing circle at arbitrary location same as the one provided by MyLocationOverlay in Google Map API? Yes,

[android-developers] Re: mapview on the top part of the screen ?

2010-05-08 Thread Senthil ACS
503 by 480 is huge. Try setting width as fill_parent and height as say 100dip. On May 7, 5:14 am, jgan jim@gmail.com wrote: Hi Does anyone know how to put mapview on the top part of the screen? The map always occupies the whole screen and squeezes out the views below. The explicitly

[android-developers] Re: MapView does not work in HTC Hero

2010-05-05 Thread SREEHARI
Hi I also tried the same google map application with overlays. For me it s working fine in emulator and in nexus one with the same KEY. Regards, SREEHARI -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] Re: MapView does not work in HTC Hero

2010-05-05 Thread Reiny Song
Dear Albion and Turchenko, Thank you for your recommand, and the mapview works well after changing the api-key. Reiny 2010/5/4 Paul Turchenko paul.turche...@gmail.com Make sure you use different mapApi keys for emulator and real device because it seems that you've obtained certificatie for

Re: [android-developers] Re: MapView does not work in HTC Hero

2010-05-03 Thread Reiny Song
thank you for your reply, I am sure that I exported the signed application. I have checked the application with the jarsigner in command line (Windows XP), and the result is jar verified I have no idea about my problem so far... 2010/5/1 javame_android su...@softwebsolutions.com Hi, Did

[android-developers] Re: MapView does not work in HTC Hero

2010-05-03 Thread Nicholas Albion
Do you have a Google maps API key that coresponds to MD5 certificate fingerprint used to sign the app? http://code.google.com/android/add-ons/google-apis/mapkey.html http://code.google. com/android/maps-api-signup.html -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: MapView does not work in HTC Hero

2010-05-03 Thread Paul Turchenko
Make sure you use different mapApi keys for emulator and real device because it seems that you've obtained certificatie for debug keystore only. On May 1, 7:17 am, Reiny Song reiny.s...@gmail.com wrote: Hello, I have a MapView (in MapActivity), and it works in my simulator. The google map

[android-developers] Re: MapView does not work in HTC Hero

2010-04-30 Thread javame_android
Hi, Did you signed your application? MapView won't even display in another simulator on other system if its not signed in the release mode. I am not sure but please make sure that it is signed and check whether it helps. Regards Sunil -- You received this message because you are subscribed

[android-developers] Re: MapView map elements size (e.g. street labels)

2010-03-28 Thread lbendlin
Have a look at which tiles the Google Maps app fetches versus what the API fetches. You will see that they will go to different servers. There is no rocket science here (vector based drawings etc) - all you get are prerendered PNG picture tiles (256x256 I think, or was it 128x128?). There's no

[android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Ferm
Ok thanks What's the recommended event for when map center and lat/long spans changes? On Mar 12, 6:26 pm, Mark Murphy mmur...@commonsware.com wrote: Ferm wrote: I want to add overlays when the map has scroll/zoon animation has stopped at a position. I am currently using onTouchEvent for

Re: [android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Mark Murphy
Ferm wrote: What's the recommended event for when map center and lat/long spans changes? There is no recommended event for those, AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version

[android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Ferm
How do I know when zoom has changed? On Mar 12, 7:04 pm, Mark Murphy mmur...@commonsware.com wrote: Ferm wrote: What's the recommended event for when map center and lat/long spans changes? There is no recommended event for those, AFAIK. -- Mark Murphy (a Commons

Re: [android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Mark Murphy
Ferm wrote: How do I know when zoom has changed? Again, there is no good way to do this. A lousy approach that should work indefinitely is to poll the MapView, calling getZoomLevel(), and watch for changes. However, polling is inefficient. A lousy approach that will probably break between

[android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Ferm
hmm, this is very sad I have potentially more than 1000 markers positioned worldwide that are fetched via network. I can't load all these at once in onCreate.. Yeah, maybe I'll set up a timer.. thx On Mar 12, 7:42 pm, Mark Murphy mmur...@commonsware.com wrote: Ferm wrote: How do I know when

Re: [android-developers] Re: Mapview scroll finished Listener

2010-03-12 Thread Mark Murphy
Ferm wrote: hmm, this is very sad I have potentially more than 1000 markers positioned worldwide that are fetched via network. I can't load all these at once in onCreate.. Do two network calls. One fetches a small number of markers in the vicinity of wherever you are having the map start.

[android-developers] Re: MapView Overlays with Multitouch

2010-03-03 Thread Carter
*bump* On Feb 17, 1:46 pm, Carter ccjerni...@gmail.com wrote: I'm seeing a bug with overlays onMapViewwith the Nexus One.  Pinch and zoom multitouch gestures don't scale my overlays until the user releases the gesture, at which point the overlay redraws itself.  In contrast, the My Location

[android-developers] Re: MapView

2010-02-23 Thread Aamir Yaseen
Hi everyone, I was able to solve this issue, so thought better update everyone, this might help others. Mistake I was making was: I had to call setState(marker, stateBitset) in the getMarker(int stateBitset) method of OverlayItem., otherwise it does not work. StateListDrawable is mazing way of

Re: [android-developers] Re: MapView

2010-02-23 Thread Fabian Sturm
Hi, Am Dienstag, den 23.02.2010, 07:49 -0800 schrieb Aamir Yaseen: Hi everyone, I was able to solve this issue, so thought better update everyone, this might help others. do you use the focus state to change the icon in your statelistdrawable? I do this and it works but I can't focus, unfocus

[android-developers] Re: MapView draw Overlays

2010-02-15 Thread Stefan
Hi, thanks for your answer. i first try it with the getLatitudeSpan and so on and check, if this point is visible or not. this works fine in the most cases. it also works, if i touch (ACTION_DOWN) the map with my thumb, move the map (ACTION_MOVE), and leave the thumb from the map (ACTION_UP). But

Re: [android-developers] Re: MapView draw Overlays

2010-02-15 Thread TreKing
On Mon, Feb 15, 2010 at 11:35 AM, Stefan ebay-dah...@web.de wrote: So how can i detect, if the map has a new Map center for example? You could save the map center location and check in the draw method to see if it's changed since the last time. There's probably a better way, but there's one

[android-developers] Re: MapView

2010-02-10 Thread Aamir Yaseen
HI TreKing, On click of navigation key I am calling setFocus(OverlayItem) of next element in my ItemizedOverlay. I am not calling nextFocus to get this element, I am iterating through index of collection to get the next element. when the focus changes and can update your overlays as necessary.

Re: [android-developers] Re: MapView

2010-02-10 Thread TreKing
On Wed, Feb 10, 2010 at 7:05 AM, Aamir Yaseen aamir.yas...@gmail.comwrote: when the focus changes and can update your overlays as necessary. that's my question, how can I update/change icon of my overlay item? any idea? OverlayItem has a setMarker() function that allows you to set the

[android-developers] Re: MapView

2010-02-10 Thread Aamir Yaseen
Yes, but it does not work when we override getMarker(int stateBitset) method to return StateListDrawable icon (I want to use StateListDrawable so that I don't have to set icon on state change as recomended by google), but I it's not helping. what do you suggest in this case? Thanks again, Aamir

Re: [android-developers] Re: MapView

2010-02-10 Thread TreKing
On Wed, Feb 10, 2010 at 11:21 AM, Aamir Yaseen aamir.yas...@gmail.comwrote: what do you suggest in this case? I haven't done anything with StateListDrawable or the states in the overlay item so unfortunately I'm out of ideas for you. Sorry.

[android-developers] Re: MapView

2010-02-09 Thread Aamir Yaseen
I am also working on similar application . We have application to search local events around you. 2. I would like to navigate between each location plotted on the MapView using a similar method that Google has on their mobile version of maps when we search for some place like pizza, how do we do

Re: [android-developers] Re: MapView

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 11:07 AM, Aamir Yaseen aamir.yas...@gmail.comwrote: We are displaying multiple events/venues on map (just like search on google map for pizza) and we want to change icon of any event/venue when user navigate through next/previous buttons. I am using StateListDrawable to

Re: [android-developers] Re: MapView Overlay problem

2010-01-08 Thread TreKing
I'm still a bit confused on what you're doing, but I would suggest: 1 - Subclass ItemizedOverlay instead of Overlay to manage a collection of similar items at once. It maintains a list OverlayItems that represent each unique point on the map. In your case these would be the Track points you have.

[android-developers] Re: MapView Overlay problem

2010-01-06 Thread Stefan
On Jan 6, 4:57 am, Peter SSK sasikumar.it1...@gmail.com wrote: see this link http://www.androidpeople.com/category/google-map/ is that the right link? There i only see, how to display a Map. Thats not the problem. But perhaps i dont find the right part?! -- You received this message because

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Master_Ne0
I also had this problem, i had to save the overlay locations to the outstate bundle then add them again onResume. Couldn't figure a way to save my overlay class to bundle. Let me know if you find a better workaround. Ne0 On Jan 5, 11:59 am, Stefan ebay-dah...@web.de wrote: hello, i have an

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 1:16 pm, Master_Ne0 master.ne0s.soluti...@googlemail.com wrote: I also had this problem, i had to save the overlay locations to the outstate bundle then add them again onResume. Couldn't figure a way to save my overlay class to bundle. Let me know if you find a better workaround.

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
Couldn't figure a way to save my overlay class to bundle Have your Overlay class implement the Parceable interface, which you can then save to / restore from a Bundle. - TreKing - Chicago transit

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
On Jan 5, 6:48 pm, TreKing treking...@gmail.com wrote: Couldn't figure a way to save my overlay class to bundle Have your Overlay class implement the Parceable interface, which you can then save to / restore from a Bundle. hmmm, in my case i have always a new overlay for each line on my

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
I'm sorry, but I'm not really following or understanding what you're doing. Could you clarify or post some sample code? - TreKing - Chicago transit tracking app for Android-powered devices

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
Ok, i try it :) 1. I track gps points in my app and draw my route on a MapView: @Override public void onLocationChanged(Location loc) { if (loc != null) { latitude = loc.getLatitude(); longitude = loc.getLongitude(); if(first)

Re: [android-developers] Re: MapView Overlay problem

2010-01-05 Thread TreKing
OK, well your main problem is that while you implemented the Parcelable class, you didn't implement the writeToParcel method or the constructor that takes a Parcel. That's the key. You need to implement the first method to save all you state information (i.e., your member variables) to the Parcel

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Stefan
hi, thanks for your answer :) On Jan 5, 11:30 pm, TreKing treking...@gmail.com wrote: OK, well your main problem is that while you implemented the Parcelable class, you didn't implement the writeToParcel method or the constructor that takes a Parcel. That's the key. in one other class of my

[android-developers] Re: MapView Overlay problem

2010-01-05 Thread Peter SSK
see this link http://www.androidpeople.com/category/google-map/ On Jan 5, 4:59 pm, Stefan ebay-dah...@web.de wrote: hello, i have an activity with a MapView ad overlays. If i start a new activity and go back to my Activity with the map, i only see the map without my overlays. How can i

[android-developers] Re: MapView Overlays Containing Widgets/View

2009-12-30 Thread Stefan
hello, i have a similar problem. i want to see a picture or a text, if i click on an itemizedoverlay. my i-overlay is implemented in an own class. In my main app i add my itemizedoverlays: if(symbol[i].equals(huhu)) item = new OverlayItem(ov, PICTURE, description.get(i)); else

[android-developers] Re: MapView Directions

2009-12-02 Thread alagala
It maybe a little too late, but still helpful for others. I have written a few simple classes to get and display driving directions in MapView for Android: http://home.ameliemedia.com/android-app-aroundme/#tips Hope it helps! Andrea. On Nov 23, 6:21 pm, Mark Murphy mmur...@commonsware.com

[android-developers] Re: MapView on 1.6 very strange behaviour

2009-11-13 Thread mobilek...@googlemail.com
Problem resolved. On 13 Nov, 10:36, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, in my app I display MapViews in several activities. Now that I have updated my G1 device to 1.6, I notice that at some pleace the MapView is displayed properly, and at others - it's not - I can

[android-developers] Re: mapview key problems

2009-10-06 Thread Xavier Ducrohet
I didn't realize your app crashed. I expected that the app only didn't display the map tiles (which would be a sign of a apiKey problem). When your app crashes, you should always look at logcat. It'll give you the exact reason why your app crashed. Xav On Mon, Oct 5, 2009 at 8:44 PM, ian

[android-developers] Re: mapview key problems

2009-10-06 Thread ian
That is interesting although I do not understand logcat yet. I tried copying the debug.keystore from the working machine and using the api key from that machine instead. No difference. I regenerated the md5 fingerrprint with keytool on my netbook and Google returned the same api key as for the

[android-developers] Re: mapview key problems

2009-10-06 Thread ian
Here is the tail end of my logcat for a run where it crashed. I notice it added a capital letter L before the ian.com.elgin about 10 lines down. 10-06 13:34:48.146: INFO/ActivityManager(571): Start proc ian.com.elgin for activity ian.com.elgin/.Elgin: pid=723 uid=10023 gids={3003} 10-06

[android-developers] Re: mapview key problems

2009-10-06 Thread ian
- Von: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] Im Auftrag von ian Gesendet: Dienstag, 6. Oktober 2009 15:42 An: Android Developers Betreff: [android-developers] Re: mapview key problems Here is the tail end of my logcat for a run where it crashed. I notice

[android-developers] Re: mapview key problems

2009-10-06 Thread ian
- Von: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] Im Auftrag von ian Gesendet: Dienstag, 6. Oktober 2009 15:42 An: Android Developers Betreff: [android-developers] Re: mapview key problems Here is the tail end of my logcat for a run where it crashed. I notice

  1   2   >