Android :: MapView Doesn't Display Tiles - Debugging Strategies / What's Actual Problem?
Jul 10, 2010
There are a number of posts (both here & elsewhere) about why a MapView might not be displaying tile info (personally, I've liked http://stackoverflow.com/questions/1809507/android-hello-mapview-tutorial-map-tiles-do-not-load, but there are other good ones, too).
My question is slightly different: I'm not getting tile info to show up (on my handset or in the emulator), and I'm looking for advice on what to try in order to debug this problem. As far as I can tell I've correctly located my debug.keystore, and used the Java JDK keytool to get the signature from it, which I then plugged into the Google web page, and then plugged THAT key back into my XML file. The app runs ok, it just doesn't display any tiles.
I was hoping that if I did something wrong here I'd see an error message in, say, logcat (or an exception that Eclipse might catch) that would confirm that this is the source of the error.
So here's my question - what would y'all recommend someone try in order to figure out what the actual problem is?
View 1 Replies
Jan 30, 2010
I am having some issues getting tiles to load into my MapView in android development. I have searched and looked at similar problems on here but with no luck so far.
I have looked at the instructions here and have got hold of my debug API key. I have entered this into my MapView.
I have checked that my emulator and my debug device have got an internet connection.
I have move my Internet permission tag in my manifest file to be before the application tag.
I don't know what else to check.
I am also unsure of the best way to develop this. It seems that I can't debug with a properly signed app as the debug keystore needs the same password - android. This would imply that each time I go to do a release build I have to change the key - which seems very fragile!
Is there any way of developing and releasing builds with my own generated maps API key?
Some code for you to look at:
Main.xml:
CODE:.......................
AndroidManifest.xml:
CODE:.........................
View 1 Replies
View Related
May 18, 2010
Is it possible to determine the coordinates of the tiles that are visible in a MapView, relative to the first tile in the upper left corner of the entire map (including the invisible part)? I can't seem to find a way to get the tile coordinates.
View 1 Replies
View Related
Apr 13, 2009
I tried to display map in emulator. But its showing just tiles only. I am attaching the screenshot and the log message is like this.
04-13 22:30:06.934: INFO/ActivityManager(48): Start proc org.me.map for activity org.me.map/.MapAct: pid=615 uid=10022 gids={3003} 04-13 22:30:06.944: DEBUG/dalvikvm(607): VM cleaning up 04-13 22:30:06.954: DEBUG/dalvikvm(607): LinearAlloc 0x0 used 541500 of 4194304 (12%) 04-13 22:30:06.976: ERROR/dalvikvm(607): pthread_setspecific failed, err=22 04-13 22:30:07.425: INFO/System.out(615): #### #### Setting locale to en_US 04-13 22:30:07.466: WARN/Maps_Persistence(615): Couldn't find file: /data/data/org.me.map/files/DATA_Preferences 04-13 22:30:07.545: INFO/jdwp(615): received file descriptor 27 from ADB 04-13 22:30:07.645: WARN/Maps_Persistence(615): Couldn't find file: /data/data/org.me.map/files/DATA_Tiles 04-13 22:30:07.675: WARN/Maps(615): Couldn't restore map info, data == null 04-13 22:30:07.995: INFO/MapActivity(615): Handling network change notification:CONNECTED 04-13 22:30:08.015: ERROR/MapActivity(615): Couldn't get connection factory client 04-13 22:30:08.194: INFO/ActivityManager(48): Displayed activity org.me.map/.MapAct: 1400 ms
Please tell whats wrong with this, My source code is very simple, I ididnt try anything special,
public class MapAct extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }
View 9 Replies
View Related
Jul 6, 2010
I am using a gutted version of the Snake Android sample. Pretty much I am using the TileView class verbatim and am only trying to display a few tiles on the screen. Instead of the SnakeView class I am using a GameView class in which I only included the code I thought necessary to display a tile on the screen.
Here is the class
CODE:...............
Now what is happening is that when the updateWalls() method is called, the tiles are placed within the View and comes up like this:
Now when I uncomment out the updateCellularArray() method and comment out the updateWalls() the program force closes and throws a NullPointerException. After some debugging I figured out that when the updateCellular array method is called, the mTileGrid array in the TileView class is not initialized, but it is when updateWalls() is called. I am completely baffled as to why this is happening. It doesn't matter if i replace the for loop with a simple setTile(GREEN_STAR, 3, 3); it still force closes.
Here is the TileView class I am using (again this is the same one in the Snake sample that comes with the Android SDK):
CODE:.......
simplified GameView class
Alright after modifying the updateCellularArray() method to the following:
CODE:........
It finally placed the tile where I wanted it to...
I'm starting to wonder if it has something to do with the RefreshHandler. Possibly when the RedrawHandler's sleep method is called in the update method of the GameView class. I'm not quite sure how it works so I am going to try playing around with it and see what I can come up with.
View 1 Replies
View Related
Jun 22, 2009
I'm new in Android. I searched a lot to get a table with borders, but I am not getting result.
I want a table with two colums, borders, white backgroud in table. first colums should be right aligned and second column should be left aligned.
With TableLayout, rest of things can be done, but not I can get table with border in display.
View 2 Replies
View Related
Jun 10, 2010
Is there a way to display a MapView without extending MapActivity? I have other Activity class which I'm extending and I would prefer not to change that... I've seen that you can inflate using MapActivity, but didn't find any spec/examples on how to do it.
View 1 Replies
View Related
Aug 10, 2010
I hate to bother you all again, as this is probably me, a newbie, making some big blunder, but I'm baffled as to why my mapview only takes up a fraction of the screen. I've been following tutorials.
My layout:
CODE:.................
The specified screen resolution is, as in the droid, 854x480. It shows up in the emulator in horizontal mode (wide, not very tall). The map starts about a third of the way from the left and ends about a third of the way from the right. It starts at the top and ends about a third of the way from the bottom of the screen. I have no clue why that would happen, as I specified "fill_parent".
View 1 Replies
View Related
Jun 2, 2010
I am facing to android application signing problem. My application contains Google MapView. When I compile the app and run on the emulator, MapView works fine. But signed the app, MapView doesn't work. I've get Google Map API. This works on the simulator. I could sign the app once 2 months ago. Then I've upgraded the app. Now I need to sign the app again. Actually I don't know why signed app's mapView doesn't work. How to fix it?
I used following steps when sign the app: Run Eclipse. Select the project. Right Click -> Android Tools -> Export Signed Application Package -> Then Filled forms. (In forms, Validity years: 200, and all passwords are same.)
View 2 Replies
View Related
Sep 14, 2012
i used this tutorial to make a map activity: https:[url].....
The map and my overlays show up fine. But when i try to pan to somewhere on the map, my touch controls start acting funny. The map pans to the ocean or another country altogether. Or it zooms out all the way and sometimes it opens other apps when i try to pan.
View 1 Replies
View Related
Jun 27, 2010
I have a MapActivity. If it's set to an appropriate location and zoom level to see traffic none is shown after it's first created until you interact with the map (click on it, drag, etc) at which point traffic shows up. Naturally I want traffic to show up without any user interaction after it loads but I've been unable to figure out how to trigger it. Any ideas?
View 3 Replies
View Related
Aug 15, 2010
I am developing on Windows machine.I was working quite well until yesterday, when I saw the the update prompt and updated my ADT plugin. Today when I tried debugging my test project, I experienced either one the following cases:
1) Logcat stops forever on the message "sending wait chunk".
2) Logcat shows the following message, and test project fails:
3) Eclipse stops responding.
The above cases happens even when the test unit contains nothing.Also it just doesn't not work in debug. The test case runs successfully if it is not in debug mode (But there are still some glitches, like Logcat sometimes won't emit debug messages).
View 2 Replies
View Related
Dec 29, 2009
I would like to further annotate the custom markers I have placed on a MapView (using ItemizedOverlay) by displaying a simple text label that appears for a particular item when the onTap event is fired.
This is a trivial exercise in the Google Maps JavaScript API and in MapKit on iPhone, but it is not obvious to me what the best or easiest way to do this is on Android.
View 1 Replies
View Related
Aug 17, 2010
I'm adapting Image Downloader from Google Android blog. I want ImageDownloader to be singleton since I'll be using it in multiple places in my application. I want also to be able to manipulate Bitmaps using different Strategies (eg. produce transparent bitmaps).I want to be able to use ImageDownloader in one activity and set transparent bitmaps, and in another use the same ImageDownloader but get black&white bitmaps using different strategy object.
View 5 Replies
View Related
Mar 17, 2010
I'm writing a simple tile based game using a canvas and a 5X5 grid of tiles. To determine if a tile is clicked I look at the MotionEvent supplied by onTouch. I get the coordinates when MotionEvent.event is ACTION_UP and translate to tiles. This works great on the emulator but when I touch on a device the actual coordinates of the touch register higher than I'd expect as a end user.
I'm wondering what strategies people have used to get a closer to "expected" result. Do you use a simple Y offset? Do you average the coordinates over the life of the touch? Do you use other methods?
View 4 Replies
View Related
Oct 27, 2009
I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's locations (the updates occur every few minutes). Obviously this is a problem though since we'd obviously love to ramp up to tens or even hundreds of thousands of users. I'm curious if anyone else has any experience in this arena in regards to using the Google Maps API for calculating distances between points for large volumes of data?
As an aside, we're using Rails on the server, which is where all of the location calculations are occurring. The phone(s) are merely displaying the maps and updating the server with lat/long coordinates.
View 3 Replies
View Related
Jul 16, 2010
I had found a lot of stackoverflow post about save an Activity and the reload it.
My question: How can I have an Activity with an MapView and after reload the same mapview?
What is the best way to switch between activity and views?
View 2 Replies
View Related
Oct 6, 2010
I have an android background Service that will occasionally post a notification to the Status Bar using the Notification class. Occasionally, when I receive a notification, pull-down the notification window, and select the notification from the list, the specified Activity doesn't start. When this happens, the screen dims (as if it were about to display the Activity), but the Activity is never shown. I included my code below...
NOTE: The UserNotification class extends Activity, and is set to a dialog theme in the manifest. This class also has its taskAffinity property set to "" in the manifest.
View 1 Replies
View Related
Feb 25, 2010
When I try to set the Alert using ArrayAdaptor to display a set of items, the list is displayed but the items' characters are invisible. If the item is selected, then the characters are visible. Scratching
my head on why. Appreciate any advice.
Below is the code and the screenshot from the emulator.
CODE:.............
View 1 Replies
View Related
Apr 14, 2010
I apologize if this code looks a bit like a mess (considering the length); I figured I'd just include everything that goes on in my program at the moment.
I'm attempting to create a fairly simple Tic Tac Toe app for Android. I've set up my UI nicely so far so that there are a "grid" of TextViews. As a sort of "debug" right now, I have it so that when one clicks on a TextView, it should display the value of buttonId in a message box. Right now, it displays the correct assigned value for the first element I click, but no matter what I click afterwards, it always just displays the first value buttonID had. I attempted to debug it but couldn't exactly find a point where it would pull the old value (to the best of my knowledge, it reassigned the value).
There's a good possibility I'm missing something small, because this is my first Android project (of any note). Can someone help get different values of buttonId to appear or point out the error in my logic? The code...
View 1 Replies
View Related
Mar 15, 2010
I'll start by saying that I'm REALLY new to OpenGL ES (I started yesterday =), but I do have some Java and other languages experience. I've looked a lot of tutorials, of course Nehe's ones and my work is mainly based on that. As a test, I started creating a "tile generator" in order to create a small Zelda-like game (just moving a dude in a textured square would be awesome So far, I have achieved a working tile generator, I define a char map[][] array to store which tile is on :Code...
View 2 Replies
View Related
Apr 4, 2010
In a feeble attempt to learn some Android development am I stuck at graphics. My aim here is pretty simple:Take n small images and build a random image, larger than the screen with possibility to scroll around.Have an animated object move around on it.I have looked at the SDK examples, Lunar Lander especially but there are a few things I utterly fail to wrap my head around. I've got a birds view plan (which in my head seems reasonably sane):How do I merge the tiles into one large image?t each onDraw redraw the background of the previous spot of the moving object, and the moving object at its new location
The problem is the hands on things. I load the small images with "Bitmap img1 = BitmapFactory.decodeResource (res, R.drawable.img1)", but then what? Should I make a canvas and draw the images on it with "canvas.drawBitmap (img1, x, y, null);"? If so how to get a Drawable/Bitmap from that?I'm totally lost here, and would really appreciate some hands on help (I would of course be grateful for general hints as well, but I'm primarily trying to understand the Graphics objects).
View 1 Replies
View Related
Sep 7, 2009
Got new magic with rogers network and have caller i.d on it. for some reason it doesn't display the name of the person who's calling,only the number.talked to tech support in rogers,was told device doesn't support name display,which doesn't make any sense.please advise if anybody has the same issue.
View 4 Replies
View Related
Dec 8, 2009
The native calendar widget doesn't display the current days events only the upcoming ones. Is there a way to change this or a different calendar app that is better?
View 18 Replies
View Related
Oct 10, 2010
I'm referring to the "Downloads" tab in the Market app.
I've been noticing of late that it isn't listing the apps that I have been downloaded thus far. It displays one/two/three items that 've been downloaded (no specific time line, either). Furthermore, sometimes, it also tends to display an app which has already been removed.
View 3 Replies
View Related
May 19, 2010
My music player is acts very strange, I had 30 songs on my desire and i have just added 9 more. Now all the songs have gone onto the memory card as i have checked on Astro file manager, I saved the songs into the same file as i did previously (My Documents - Music). When i open up music it displayer's 1/39 songs at the top but as i move along it skips a number a couple of times like 2/39 to 5/39 then 7/39 to 9/39 then 30/39 to 32/39 then 34/39 to 38/39, So it is only displaying 30/39 songs. Now i can see all the songs by clicking the bottom left in the music player (Three horizontal lines) then going to "songs" and say i select a song that isn't being displayed i click on it, it starts playing then i simply slide one song then if i slide back the song has dissapeared... for some reason i dont now why some songs are appearing and some arnt, What could be the problem?
View 1 Replies
View Related
Jun 22, 2010
Hotmail displays sent messages inbox too but it doesn't show my junk folder. Is there a way to change or fix that?
View 2 Replies
View Related
Mar 5, 2013
Firstt do a FULL FORMAT of the phone with the scatter file provided here. then flash the files ONE BY ONE.
1. Just filash preloader.img * remove battery and usb cable
2. Flash DSP_BL * remove battery and usb cable
3. Flash pro_info * remove battery and usb cable
4. Flash UBOOT.img * remove battery and usb cable
Once this is done, my phone could not boot. does not display.
View 1 Replies
View Related
Jun 29, 2009
For some reason I cannot get my first maps application to work. I have gone though the full process of getting the MD5 fingerprint for the debug.keystore, registered for the key on the website, put it into the xml file. Even had changed my computer's locale to US English. I also signed the application with my private key and pushed it via ADB to the emulator. All attempts so far resulted only in the grey Google Maps background with the tiles not loading. JAVA_HOME environment variable points to my JDK file. Not sure what else I can do. Even upgraded from SDK 1.1 to 1.5. No improvement. I am really stuck here. I am running WIN XP, Eclipse ganymede, SDK 1.5 r2, with the latest ADT. Here is my class file code: package com.mellagio.maps; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import android.app.Activity; import android.os.
View 8 Replies
View Related
Nov 23, 2010
The Maps API always had its issues... since updating my Nexus One to 2.2.1 FRG83D earlier today, I see a problem more serious than anything prior. This applies to both Google Maps and (any) app that uses the Maps API (that I have tested). It's pretty obvious and simple, and cannot be remedied by rebooting the device: When panning the map view (no zooming that would trigger a complete re-load), map tiles that were already loaded, are cleared and reloaded. This can occur multiple times until the map view settles down. Looks pretty wild.
View 5 Replies
View Related