Android :: Not Understanding DrawAt() Method For Com.google .maps.Overlay
Jan 19, 2010
Trying to make an google maps overlay in an android program. Inside of my overlay's draw method, I have two ways of adding a pin. One of them works, and one does not. Unfortunately, the one that does not work is also the only one that has the ability to add a shadow!
CODE:...........................
View 2 Replies
Jun 15, 2009
I would like to put a bunch of dots on a google map, and have the appropriate listener called when one of them gets clicked.All i seem to be able to find is to get the location at which the click occurred, and then iterate through the dots until I find one that I think matches. Is there no listener for an arbitrary shape, like a drawable? I feel like this might be a Java question more so than android, but hopefully someone can still answer it.
View 3 Replies
View Related
Jul 20, 2010
I can draw overlay items onto google maps just fine, an image that looks like:
_____
| |
______
/
Where the "/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked.
I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands over like a second to:
--------------------------------------
| <image> <buttons> |
| <buttons> |
| <some info here> |
| |
--------------------------------------
/
Is this possible?
View 2 Replies
View Related
Nov 4, 2010
I've been stuck for ages now trying to implement threading or background image loading for a custom tile overlay class I've been working on. I'm pretty useless when it comes to Java so threading isn't something I've had any experience with. Basically I have extended an ItemizedOverlay and in the draw() method calculate the tiles I need to display over the standard google tiles then fetch those images with a URLConnection and using BitmapFactory decode them and draw them to the canvas at the correct position on the screen so that the images are on top of the google tiles with about 50% opacity (the custom tiles are cellphone network coverage png's which are used for our web app). I initially got this all working with the tiles loading in the correct places but hit issues with memory and "freezing" while panning so implemented some basic caching and memory management to only store the tiles that are displayed on the map in memory and when downloading a tile store it to SD card.
Then I figured the freezing while panning is due to the blocking nature of downloading the images so, have been trying to implement threading. I created a class that extends AsyncTask to download the images in the background and store them to SD, in the onPostExecute method I then try to draw all the tiles. But onPostExecute never seems to fire, now I know that the AsyncTask has to be called in the main ui thread so tried to debug the execution with Thread.currentThread().getId() calls through out the code. The thread Ids through out is 1 and then 10 for the doInBackground method for the AsyncTask. Now I'm not sure if 1 is the main UI thread or not. In the extended MapActivity class I have, the onCreate method's Thread.currentThread().getId() returns 1 but I'm not sure if the MapActivity class is executed in the main ui thread? Here Romain Guy mentions that the onPostExecute method should have @Override but when I do that eclipse flags it as an error
"The method onPostExecute(Boolean...) of type TileCache.ImageLoadTask must override or implement a supertype method"
So I guess something is wrong there but the only fix eclipse offers is to remove the @Override
So I guess with out post all my source code, the question's I have are:
Is the MapActivity onCreate method called in the main ui thread?
What does the @Override error mean? or why does it show that error
Does anyone have an example of a custom tile overlay implementation with background image loading and tile caching?
View 1 Replies
View Related
Feb 5, 2010
I am looking for a way to overlay a route in google maps.
What I want is to take this map Greenways Oak Ridge Google map and get it to my google My Maps. Then I can pull it up in Maps and use my location to see where I am in relation to where I need to be in case I want to take a different route to need to shorted the ride due to darkness.
Most rides I do I can find these maps but cant do anything with them.
View 13 Replies
View Related
Aug 30, 2010
I have an activity that has a button which opens a new MapActivity to select a location by tapping on the map.
The map has an overlay that overrides the onTap method to get the location but I want to return that location to the previous activity but, I don't know how to return the geopoint to the mapactivity in order to call the setResult() and finish() methods, because I can't call them from the Overlay.onTap method.
View 2 Replies
View Related
Jul 22, 2010
I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog.
I was able to do it till here. But now when the user clicks on the dialog that opened I want to show another acttivity with the details of that item that they clicked on.
I tried to start a new intent but it gives me an error.
Here is what I am doing
CODE:...................
Here is the stack trace E/AndroidRuntime( 4985): java.lang.RuntimeException:
Unable to start activity ComponentInfo{com.achie.test.mapssample/ com.achie.test.mapssample.ItemDetailView}:
CODE:........
Why am I getting this error and how can I resolve this and open a new activity?
Also where can I find the source code for the google maps on android?
View 4 Replies
View Related
Jun 8, 2010
I have a weather image I would like to use as an overlay in the google maps android api. I would like to achieve the same result that I get from using GroundOverlay in KML files, such as
<GroundOverlay>
<name>myimage</name>
<Icon>
<href>myimage.png</href>
<viewBoundScale>0.75</viewBoundScale>
</Icon>
<LatLonBox>
<north>75.6088</north>
<south>5.0121</south>
<east>182.2805</east>
<west>120.6795</west>
</LatLonBox>
/GroundOverlay>
The above will ensure that the 4 corners of my image stay anchored to the 4 lat/long points listed, regardless of scrolling, zooming etc. Is there a way to accomplish this using the google api / maps provided for android?
View 1 Replies
View Related
Aug 28, 2010
I can't figure out how to tell my Map to redraw its overlays once I've updated them. Currently the user has to touch the screen before the map is redrawn.
View 2 Replies
View Related
Oct 26, 2010
I'm messing around with maps and gps and i have some questions. Hope any of you point me in the right direction:
- I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. Is there any way to speed things up?
- On the other hand, I use another overlay to point device gps position, but when location point change i need to delete this overlay to put it again in it's new position. How can i delete this overlay without deleting all the others?
View 15 Replies
View Related
Sep 14, 2010
I have a google voice number and I have the friends and family plan on verizon. I currently have my google voice number on my friends and family plan. Do all calls that go through my google voice number count as friends and family? Also, I currently do not have google voice set up to make calls. If I were to set it up that way, would that mean that all my outgoing calls would also be counted as friends and family?
View 8 Replies
View Related
May 5, 2010
Could anyone help me with my below program. I'm unable to put a transparent label containing the contents from my HelloGoogleMaps.java class (Hola, Mundo!) when i click the markers(the android icon) in the map. I would like to have the ontap event do it for different markers here so that that particular location details is popped up. It needs to be in a canvas display. Upon clicking this new canvas label, it should take me to a seperate activity displaying complete details. I'm using the sample program given in the Google Android Website http://developer.android.com/resources/tutorials/views/hello-mapview and i want to extended it to the next level. Import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; import com.google.android.maps.OverlayItem; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle;
View 2 Replies
View Related
Aug 18, 2010
I like tu use the MapActivity to display some pins. When a pin is pressed i like to open a description. This can I obtain following the tutorial: http://developer.android.com /resources /tutorials/views/hello-mapview. But now I like to put a button on the overlay window. That button should open a detail activity. How can I make this? How is possible to personalize the overlay "info window"?
View 2 Replies
View Related
Sep 25, 2010
I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps
CODE:.....
Android mainfest
CODE:..................
View 4 Replies
View Related
Jul 12, 2012
what is the path to the offline map files saved by Google Maps 6.9?
View 9 Replies
View Related
Mar 5, 2009
Is Google Latitude available in the UK or not, because it doesn't seem to be working for me? I have received the RC9 update for G1 and have Google Maps 3.0. Is there an a Google Latitude application that I should have or do I access everything through Google Maps? When I go the www.google.com/latitude on my G1, it offers me the option of "launching" Latitude but it just takes me to Google Maps. From there, I cannot see the locations of my Google "friends" (who have agreed to show location), neither does my own location show up on the Latitude homepage on the web (I have settings turned to "detect my location automatically").
View 13 Replies
View Related
Oct 19, 2010
I'm running Cyanogenmod 6. I just noticed that I can't find Google voice or Google maps in the market. I do have the apps installed, but can't see them int he market to get updates. I tried out LFY1.7 and Ultimate Droid 1.0.0, and see the same issue.
View 5 Replies
View Related
Apr 16, 2014
I am using Nexus 4 Bought from US thro my friend.Current Android version id 4.4.2..My Service Provider is Airtel. All my google applications like Gmail, Maps, Play,Google Plus are working fine in WIFI.But when i try to refresh or update these application thro Airtel 3g,i am getting No Connection Error.
All my 3rd party apps like Facebook,Whatsapp are working fine in 3G.
View 3 Replies
View Related
Apr 17, 2013
I'm using the latest version of Google Maps on JB 4.2.2 [Nexus 4]..I noticed that I cannot edit the names of my locations in "My Places" in the phone app. So I used Google Bookmarks (google.com/bookmarks) from my PC to edit/rename My Places. However, the names do not sync or carry through to the Google Maps app on the phone. The names in the app are still the generic names, coordinates or street names.
Is there any way to change the names of My Places and get them to sync with the phone app? Really baffling!
View 2 Replies
View Related
Sep 4, 2012
I'm searching for an app or mod to google maps that allow to view maps (satellite view) offline
View 1 Replies
View Related
Jun 7, 2010
How do I find the users available Google Calendars and then create an event in one of those calendars?
Direct access to the Calendar on the handset is for some unknown bizarre reason UNSUPPORTED and not documented and untestable unless you have EVERY single device and ROM. Therefore blind development, cr4p for users and cr4p when you have to blame Google.
Aren't we developing apps to help users with their day-to-day things? Accessing and creating events in a calendar ON THE HANDSET would sem like a logical day-to-day thing to do?
Anyway so I turned to the GDATA API. However the documentation bears no resemblance to anything available for the android SDK. The documented classes stated to be available to be used for Calendar access are not available in the downloadable libraries!?!?!? http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html
So my question, how do I find the users available Google Calendars and then create an event in one of those calendars from an Android app?
Any links posted which say 'see here' please make sure the code is valid for android! :)
(code examples would be great - oh and preferably using the users credentials on the handset to login to the Calendar).
View 4 Replies
View Related
Apr 16, 2012
Android 3 and 4 have a new option that allows the user to add new a Google Account to the phone by using the Browser Sign-In. The option is available when you try to add a new Google Account to Android (see screenshot).
Use Browser Sign-In with SAML based Single Sign-On? It is not working with our SAML setup.
View 1 Replies
View Related
Nov 4, 2010
while signing up for google maps API, i entered the md5 string that was generated on issuing this command in cmd keytool.exe -list -alias androiddebugkey -keystore "C:androiddebug.keystore" -storepass android -keypass android but it says "The fingerprint that you entered is not valid".
View 2 Replies
View Related
Nov 22, 2010
Is there a way to use Google Sky maps on my app? I know we have Google maps API, but is there a Google Sky Maps API?
View 3 Replies
View Related
Jun 10, 2010
I have several Android devices and each of them has different version of Google Maps: 3.0 in HTC G1, 3.1.1 in HTC Dream and 3.4 in Nexus one and Motorola Droid. When i use the following code: Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("geo:0,0? q=Starbucks"); I get different behavior on the devices: On the latest versions of Google Maps application I see a map the term centered around my current location with a reasonable zoom radius while in Google Maps 3.0 I see list of results and button to the map. Is there a way to get the same behavior on all devices? of course i prefer the behavior of the latest versions
View 2 Replies
View Related
Aug 3, 2009
When I click the icon of My location, it opens a tag with information and when I touch this tag then I go a new Activity that give my more information,it same pass with StreetView, so How can I do that?
View 2 Replies
View Related
Jul 26, 2010
Google Maps 4.4.0 Update now in the Market.
View 15 Replies
View Related
May 16, 2010
I have some trouble testing my Android application which includes the google maps API. The ooficial API example worked just fine but if I copy the code into my own project it keeps saying: "The application has stopped unexpectedly". I looked up the key in the keystore several times and registered it with google. Even tried reinstalling the SDK.
CODE:.......
There are some exceptions following but none pointing to my code, everything in background processes.
View 2 Replies
View Related
Jun 15, 2010
I am a new user of google maps API in android OS. I have made a small application in which i am using google maps. I want to add a functionality that when i double click (multi touch) on a map the map should zoom in. IS there anybody who has an idea how to do this or if it is possible please provid a code example.
View 1 Replies
View Related
Apr 8, 2009
Can somebody please explain this to me. I have been looking through a number of forums relating to Android with maps (google). It costs money to use maps with tmobile as a data connection is required. That's fair enough. But some people say GPS is free (albeit heavy on the phone battery). What use is GPS without some form of maps?
View 11 Replies
View Related