Android :: MapView - Tiles Not Loading With Debug API Key

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

Android :: MapView - tiles not loading with Debug API key


Android :: Possible To Determine Coordinates Of Tiles Visible In A MapView?

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

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

Android :: Google Maps Application - Tiles Not Loading

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

Android :: Get The Progress Status Of Loading Mapview?

Feb 18, 2010

While the map is in loading state i want to put a progressbar at the center of mapview.

How to get the progress? and how to do?

View 1 Replies View Related

Android : Save / Activity With MapView And After Reload Same Mapview?

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

Android :: Better Way To Generate Tiles

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

Android :: Put Together Tiles In Sdk And Use As Background

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

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

Android :: Modified Snake Example - Display A Few Tiles On The Screen

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

Android :: 2.2.1 FRG83D - Existing Map Tiles Are Unnecessarily Reloaded When Panning?

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

Android :: Droid App Google Maps Showing Grey Tiles And Not Map / What To Do?

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

Android :: Displaying A Now Loading Image While Applic - Loading

May 4, 2009

I want to display a fancy 'loading' image at my app's startup time.

The problem: my startup code is mostly GUI related, hence needs to run on UI thread.

Is there a way to do both - that is run UI-related code on UI thread while an image is displayed to the user?

View 8 Replies View Related

KitKat 4.4 :: Nexus 5 - Change Power Menu And Tiles

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

Google Maps Displays Grey Tiles When Drawing Geopoints

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

General :: Samsung S Relay - Single Icon Widgets Take Up Two Tiles?

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

Android :: Loading Activity Darkens Screen - Loading Screen

Nov 2, 2009

I've looked through the documentation and I can't seem to figure out how to have the screen blured/greyed when I select an activity that may take a while to load.

This seems to be an Android standard (both the Camera app and the Camcorder app do it when first selected), but I don't see any documentation on it. I even tried looking through the source of these apps on git, but couldn't seem to find it.

View 3 Replies View Related

Android : How To Use MapView

Apr 16, 2009

I followed the steps in document to display MapView. But blank grid is displayed instead of google map. My code...

View 2 Replies View Related

Android : MapView In SDK 1.5

May 3, 2009

I've just downloaded the Cupcake SDK. I'm afraid I can't find MapView anymore...

View 5 Replies View Related

Android :: Best Way To Debug ANR

Aug 11, 2010

What is the best way to debug ANR. ideally, it would be nice to know what call / thread / file and line number it is stalled at when the ANR occurs, but every time I look at /anr/traces.txt, I can't seem to find anything that points to something I can start tracking down.

View 5 Replies View Related

Android :: MapView Overlays

Sep 28, 2009

My problem is my MapView becoming very laggy and so non-responsive at times, that Android thinks its hit deadlock and tries to close it.

I am adding 60 overlays to the map view and i originally thought that the icon size may be causing the problem by using up all the memory. When i decreased the overlay icon size, it did improve things, though it is still to slow to be usable. Has anyone experienced anything similar and have a workaround? There may be a better way of doing it other then extending the Hello MapView example.

View 8 Replies View Related

Android :: Get MapView API In Droid?

Feb 17, 2010

How to get MapView API in android?

View 2 Replies View Related

Android :: Add Overlay To MapView?

Sep 28, 2010

I have subclassed Overlay as LandMarkOverlay (and implemented an onTap(GeoPoint) method).

In the main activity I do this:

setContentView(R.layout.main);

MapView mapView = (MapView) findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
landmarkOverlay = new LandmarkOverlay();

//add the landmarkOverlay to the list
mapView.getOverlays().add(landmarkOverlay);

What else do I need to do so that when the user taps the screen, landmarkOverlay's onTap(GeoPoint) method gets called?

View 1 Replies View Related

Android :: MapActivity - MapView?

Aug 25, 2010

I have a DROID using Android 2.2

I am attempting to get the simplest MapActivity to run on the device. (NetBeans latest and greatest using a Google Api build target.)

I have all the appropriate Manifest entries, the simplest OnCreate --- > all it does is setContextView() to the xml with a mapview in it.

View 4 Replies View Related

Android : Put Mapview In Tabhost?

Jul 24, 2010

I recently want to put mapview in tabhost but now is the question i can't figure out how to do this right!

here's my source code...

View 2 Replies View Related

Android :: How Can I Debug Without Using Eclipse?

Nov 8, 2009

I have mostly been avoiding debugging when I can because of these two problems, so hopefully someone here has suggestions to avoid them:

1. It seems that I have to build the SDK (`make sdk`) and copy it off to a directory for Eclipse to use almost every time I want to debug. I haven't followed through the "sdk" directive, so I'm not clear on why this is necessary instead of just having Eclipse read from the source in my directory. Isn't there some way for it to do this? FYI: I have a (modified) full checkout of Donut, not just the SDK.

2. How can I debug without using Eclipse? I would really like to be able to use something like gdb/jdb.

View 2 Replies View Related

Android :: App Is Crashing / Debug It?

Aug 6, 2009

My app is crashing, How do I debug it? I'm using a HTC Magic and eclips. I looked in the documentation, but it doesn't say how to go about doing it.

View 3 Replies View Related

Android :: Debug Application Using Gdb?

May 11, 2009

How to debug application using gdb .

View 2 Replies View Related

Android :: How To Debug An App With GDBSERVER

Jan 13, 2010

I'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command.

There's a million blog hits on this topic but none of them seem to be clear as to how you launch your app. They all say to just type "gdbserver 10.0.2.2:1234 ./MyProgram" but what exactly is "MyProgram". Is that MyProgram.apk? Is it MyProgram.so? Is it some other file that gets created when the app is installed? If so, what's its path?

View 1 Replies View Related

Android :: Can't Debug Applications?

Mar 13, 2009

I've tried to debug the android applications on emulator and than on the device as well but all the time I get the message "Wait for debugger - waiting for the debugger to attach to the process". I really don't know how to set the environment and the application in order to run the debug.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved