Android :: Map Not Displaying , Just Tiles Only / Need To Display
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
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
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
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
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
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
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
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
Apr 14, 2010
I followed this guide here perfectly and have gone through it again but when I run the program on my google avd the page loads but only Grey tiles appear and it doesn't show a map which it should.
Does anyone have any ideas?
View 5 Replies
View Related
Nov 1, 2013
I just bought my nexus 5 and its pretty awesome but i was wondering if i could change a couple of questions...
Do you know the menu which appears when you press the lock button(i think its called power menu), is there a way of changing what icons appear there?
Can the tiles also in quick settings panel be changed?
Finally, if you press the middle button you see the google logo to laung google search, can that be changed to show other apps?
View 3 Replies
View Related
Jul 20, 2012
I'm trying to create an app to plot our mountain bike trails on a Google map. I've got the Google map part working. However, once I try to plot a couple of geopoints and connect them it does displays the geopoints and connects them, but the Google map stops displaying. Only grey tiles show. Here is my code before I plot the points which works. import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Point;
import android.os.Bundle;
[Code]....
Then I change my code to this to plot and connect a couple of geopoint and it turns map tiles grey.
import java.util.List;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
[Code]....
View 1 Replies
View Related
Nov 16, 2012
I just got this samsung galaxy s relay 4g. I've gone and disabled the really nasty stuff. But i'm left with one real remaining problem.
most programs that have a single icon widget, end up taking up 2 tiles vertically. some 2x1's end up taking up 2x2. Here's some examples:
The task killer icon, and juice plotter should be taking up one tile, and they're taking up two.
The battery status icon is taking up four tiles, and should only take up two.
So how do I address this?
I suppose the next question, is it sane to try to get the vanilla launcher on here? Or should I just wait for a full cyanogen release for it?
View 3 Replies
View Related
May 4, 2010
Is it possible to disable title bar display dynamically after setting the content view by setting the NoTitlebar theme?
All the posts I have read told that any title bar changes we can make only before setContentView() call.
View 4 Replies
View Related
Sep 20, 2010
I am facing one problem in message view. Bacically what I need to do is in message view I want to mark any telephone number or web address in different color. Can anyone please tell me where exactly the text is been written in Message View? On clicking this items it should launch appropriate event. If anyone touches a telephone number it should launch the dialer or if it is a valid email address then it should launch the Compose message event and so on.
Another question is whether to display message is Android uses the WebView?
View 2 Replies
View Related
Oct 30, 2010
I am dispalying some data by using sqlite .when i click on one button data come from database. It takes some time. At that time the screen is black .At that time I want to display the rotating spinner before the data dispaly.
View 4 Replies
View Related
Jun 26, 2010
Hello there I have a problem regarding the new HTC Magic I purchased : in my text display where I read the conversations between me and my contacts... it has all of the messages I sent in 1 group together, and all of the messages my contacts have sent together. How do I change this to display the order in which they were sent and received? For example right now it is
ME : blahblahblah
ME : blahblahblah
ME : blahblahblah
You : blahblahblah
You : blahblahblah
You : blahblahblah
View 3 Replies
View Related
Nov 10, 2009
In 1.6 sdk, map is not displaying, i put all the permissions and uses- library in manifest, added the external map.jar from add-on... created AVD manager with google-API 4.But when running, its showing
11-10 15:31:00.255: ERROR/AndroidRuntime(1587): Uncaught handler: thread main exiting due to uncaught exception
11-10 15:31:00.295: ERROR/AndroidRuntime(1587): java.lang.NoClassDefFoundError: com.nithin.ViewMap
11-10 15:31:00.295: ERROR/AndroidRuntime(1587): Caused by: java.lang.IllegalAccessError: cross-loader access from pre-verified class
View 3 Replies
View Related
Sep 29, 2010
I have an issue with displaying videos on android devices.When any video is displayed it does not take the entire screen size of device even though i have given android:layout_width="fill_parent".There will being some blank space on either sides.for eg.if i have a video of 480 by 320 it will work on 480 by 320 device fine but on a device like say Nexus one it wont take the entire display of device ,there will be some blanl spaces on two sides. Is this a default feature of android devices or is there a solution to resolve this ?Why does not the "fill_parent" attribute work?
View 4 Replies
View Related
Feb 20, 2009
I've some question regarding .svg file.
1. Is it possible to display .svg file in our application as an icon or picture or image at background? How can we acheive it?
2. How to render/ manipulate an .svg file on some event firing? 3. Does Android support org.w3c.dom.svg package for parsing svg file? Please let me know soon your suggestion in this regard.
View 2 Replies
View Related
Mar 3, 2010
Any one please help me to display a keyboard in my app.I want to show my keyboard when i click on the textfield
View 1 Replies
View Related
Apr 29, 2010
All I want to do is display a URL image. Does anyone have a template I could use that already displays an image that I can possibly modify? I've been looking all over the internet and the only answers I've found are extremely complex.I'm very good at learning something once I can get it to work from my end then proceed to analyzing the code.I am VERY new at Android programming.
View 5 Replies
View Related
Oct 31, 2010
I'm having some troubles with displaying ItemizedOverlay(s) on a map.
Here I extracted a simplified example of what I need to do.
Here's my Map class:
CDE:........
I followed the guide provided by google to extends the ItemizedOverlay class
CODE:...................
As it is clear from the code I need to update at fixed times a map UI with possibly new positions to do so I'm using a timer, but I think I might fall in some kind of thread issues I don't know how to handle, since when running a test I can see in the Log what happens but no marker is drawn on the map.
View 1 Replies
View Related
Mar 8, 2010
I want to develop an app, which displays every Contacts with their birthdays but I donīt know how to display the contacts.Is there a way to do that?
View 15 Replies
View Related
Dec 4, 2009
I am trying to make sure my application looks good on the droid, my AVD seems to be messing up. The resolution is off, as the apps shortcuts are spaced the same as my g1 (I know they are usually spaced further apart, and the AVD loaded correctly once, and it's been jacked up since). Also changes I make are often not reflected, and when running a build it no longer says application already installed attempting to re-install, it just says installed successfully.In short, is there any way to fix an AVD that is acting up like this? I have tried deleting it and remaking it, but that doesn't fix it.
View 2 Replies
View Related
Sep 15, 2010
Alright, so I would like to have a custom dialog, but I cannot figure out for the life of me how to make it appear when the function is called.
CODE:..........
What could I do?
View 3 Replies
View Related
Aug 14, 2009
I need help with showing the integrated virtual keyboard on-screen. I extended a View class and I implemented these two methods (most of it is just stub code; for now I only want to display the keyboard):
CODE:.............
Where editor is an instance of my View. I noticed in the debugger that my onCreateInputConnection() is executed but after that the keyboard is not displayed on the screen. Using the TextView widtget and it's subclasses is not an option.
View 5 Replies
View Related
Nov 21, 2010
My ImageView for some odd reason is always displaying a picture in the middle, left of my screen despite the xml code insisting it to be in the center.So, the page should display as Picture in the middle, extending the width of the screen, the text below that and the button below that.But for some reason, the picture is displayed as a small, box thumbnail in the middle left of the screen.any ideas on a workaround?
View 1 Replies
View Related
Dec 6, 2009
I'm trying to develop an application which display the locations of contacts on a map (a Msn-like but for geo-localisation). I search to display a route between my own location and a contact location I want to join but I find yet no solution to do this. In the Android API and Maps add-on API I just find classes to display and listen Location, Distance, GeoPoint, etc., but no possibility to display a route between two points. Is it possible or not provided by the API?
View 7 Replies
View Related
Jul 1, 2010
I've had a G1 for the past 18 months and have just upgraded to a Xperia X10, only problem is I don't have a note of my wep/wpa key for the dodgy router at work, I know I keyed it into my old G1 (which I still have) but can't find a way to display it in clear text.
View 6 Replies
View Related