hey imran,
try to review your procedure in generating api key for google maps.
you must be doing a mistake .
regards,
wahib
On 2/21/10, IT imrantanvee...@gmail.com wrote:
Hello everyone!
I am new at Android.I have been trying from many days to make very
basic google map application but unable to complete it yet...:(
there are no errors in code,emmulator running fine from terminal,Map
key also fine but still i am unable to see the map.When i run my
app only grid appears and map is not displayed.Here is the code,can
any body please help me ..
///.java
package com.android.GoogleMaps;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
public class HelloGoogleMaps extends MapActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MapView mapView =(MapView)findViewById(R.id.mapview);
mapView.setBuiltInZoomControls(true);
}
protected boolean isRouteDisplayed(){
return false;
}
}
///main.xml
?xml version=1.0 encoding=utf-8?
com.google.android.maps.MapView
xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:layout_weight=1
android:clickable=true
android:apiKey=0fyF-qSuCtdQinoUGoFbLxZoTx10Tm-YV6m6A8g
/
/manifest
file//
?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.android.GoogleMaps
android:versionCode=1
android:versionName=1.0
uses-permission android:name=android.permission.INTERNET/
uses-permission
android:name=android.permission.ACCESS_COARSE_LOCATION/
uses-permission
android:name=android.permission.ACCESS_FINE_LOCATION/
application android:icon=@drawable/icon android:label=@string/
app_name
uses-library android:name=com.google.android.maps /
uses-permission android:name=android.permission.INTERNET/
activity android:name=.HelloGoogleMaps
android:label=@string/app_name
android:theme=@android:style/Theme.NoTitleBar
!--activity android:name=.HelloGoogleMaps
android:label=@string/app_name--
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application
uses-sdk android:minSdkVersion=4 /
/manifest
/
don't know where is anything wrong.I am using eclipse and android
1.6.Anybody please helpme
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
--
Wahib-ul-haq
Communications Engineering Student,
NUST, Pakistan.
www.sizzlotech.com
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en