Map is not showing correctly in my system..

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Map is not showing correctly in my system..

Postby saranjith » Thu Mar 26, 2009 4:56 am

Hai to all...

I am developing a GPS application...I have got direct connection over the internet...I can see those grid lines...But cant see the map on the screen...


Can anyone of you please help me...

My source code is also given...


package com.sree.Map;

import android.os.Bundle;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class MapApp extends MapActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

MapView myMap = new MapView(this,"0AX9CnKcr5KQVP0AcyZKijZDoZgY3HbjT1Oek9g");
MapController mapC = myMap.getController();
mapC.animateTo(new GeoPoint((int)76.5,(int)9.62));

setContentView(myMap);
}

protected boolean isRouteDisplayed(){
return false;
}
}


Manifest file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sree.Map"
android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MapApp"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<uses-library android:name="com.google.android.maps"/>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FINE_LOACTION" />
</manifest>


I hope there is no need to put my layout file source here....



I am waiting for the replies...Please help me...
saranjith
saranjith
Freshman
Freshman
 
Posts: 8
Joined: Sat Feb 07, 2009 3:08 pm

Top

Postby Yinten » Mon Mar 30, 2009 10:47 pm

Are you signing the APK ?
Yinten
Developer
Developer
 
Posts: 27
Joined: Tue Jan 20, 2009 7:27 pm

Postby saranjith » Thu Apr 02, 2009 5:56 am

Yinten wrote:Are you signing the APK ?




I got the map...Its with the internet connection,not with signing...
Anyway thanx for your concern...
saranjith
saranjith
Freshman
Freshman
 
Posts: 8
Joined: Sat Feb 07, 2009 3:08 pm

Postby Leonard » Tue May 19, 2009 11:54 am

Hello,

I'm having the same problem. I have followed the instructions in the Map View Tutorial, Obtaining the Maps API key, and Signing exactly, but no map whatsoever. I'm using Eclipse Ganymed and SDK 1.5, so according to the Signing section, everything should work fine - I have JAVA_HOME set up properly as well as PATH pointing to the java/bin directory, where keytool is located. I also checked the firewall to see if it was blocking Eclipse or the emulator, resolved that, but still no map. It's really starting to freak me out!!!
Leonard
Freshman
Freshman
 
Posts: 6
Joined: Mon May 18, 2009 1:50 pm
Location: Munich, DE

Postby guitarbaka » Fri May 22, 2009 4:27 am

saranjith, Im assuming you copied your manifest file onto here, in which case you misspelled LOCATION, that might be it. Let me know...
guitarbaka
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri May 22, 2009 2:19 am
Location: Pomona, CA

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests