Here is the link to the Android Tutorial: http://wing-linux.sourceforge.net/guide/tutorials/views/hello-mapview.html
Here is another link to a similar tutorial, but one that also gives you code:http://mobiforge.com/developing/story/using-google-maps- android These can help you get the map to display. Another problem you may be having is that the key that you are using might be wrong. This happened to me; there are multiple files (like 2 or 3) that you can use to get the key. You have to use the right one. On Dec 29, 3:05 am, Kiran Kumar Kendole <[email protected]> wrote: > Znaz, Mark and Mukesh . Thanks for your time. > I tried all the ways which you guys suggested. Still its not working. Here > is all my code.. Please suggest me other ideas or appreciate if you send me > some Maps tutorials.. I wil follow those... > > *ACTIVITY :* > public class AndroGMapActivity extends MapActivity { > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > MapView mapView = (MapView) findViewById(R.id.mapView); > setContentView(R.layout.main); > } > > @Override > protected boolean isRouteDisplayed() { > // TODO Auto-generated method stub > return false; > > } > } > > *main.xml* > <?xml version="1.0" encoding="utf-8"?> > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > <com.google.android.maps.MapView > android:id="@+id/mapView" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:apiKey="0rrsfcXTpAupegMXRF0rhA0kAgMbx4AKlyZJJjQ" > android:clickable="true" > android:enabled="true" /> > > </RelativeLayout> > > Thanks, > KIRANKUMARKENDOLE > > > > On Wed, Dec 28, 2011 at 12:16 PM, Znaz <[email protected]> wrote: > > If the problem is in showing the map, try adding this line to your > > onCreate method (from an Android tutorial): > > > MapView mapView = (MapView) findViewById(R.id.mapview); > > > Hope this helps! > > > On Dec 28, 6:14 am, Kiran Kumar Kendole <[email protected]> > > wrote: > > > Theres nothing in the Activity.. I am just adding main to the activity > > > layout. > > > > Code : > > > > public class AndroGMapActivity extends Activity { > > > /** Called when the activity is first created. */ > > > @Override > > > public void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > > setContentView(R.layout.main); > > > } > > > > } > > > > Thanks, > > > KIRANKUMARKENDOLE > > > > On Wed, Dec 28, 2011 at 6:10 AM, Mukesh Srivastav <[email protected] > > >wrote: > > > > > can u please also show the cod snippet of the activity that will help > > us > > > > to understand. > > > > > Warm Regards, > > > > *Mukesh Kumar*, > > > > Android Consultant/Freelancer, > > > > India,Hyderabad. > > > > > On Wed, Dec 28, 2011 at 4:37 PM, Kiran Kumar Kendole < > > > > [email protected]> wrote: > > > > >> Hey All , > > > > >> I have generated my google API key and tried to run the app, but i see > > > >> some exceptions.. > > > > >> ERROR : > > > >> *12-28 06:03:42.462: E/AndroidRuntime(305): > > java.lang.RuntimeException: > > > >> Unable to start activity > > > >> ComponentInfo{com.ta.coe/com.ta.coe.AndroGMapActivity}: > > > >> android.view.InflateException: Binary XML file line #6: Error > > inflating > > > >> class MapView* > > > >> * > > > >> * > > > >> *main.xml code: * > > > >> <?xml version="1.0" encoding="utf-8"?> > > > >> <RelativeLayout xmlns:android=" > >http://schemas.android.com/apk/res/android > > > >> " > > > >> android:layout_width="fill_parent" > > > >> android:layout_height="fill_parent" > > > > > >> <MapView > > > >> android:id="@+id/mapView" > > > >> android:layout_width="fill_parent" > > > >> android:layout_height="fill_parent" > > > >> android:apiKey="0tgffhTpAupegMXRF0rhA0kAgMbx4AKlyZJJjQ" > > > >> android:clickable="true" > > > >> android:enabled="true" /> > > > > >> </RelativeLayout> > > > >> * > > > >> *KIRANKUMARKENDOLE > > > > >> -- > > > >> You received this message because you are subscribed to the Google > > > >> Groups "Android Developers" group. > > > >> To post to this group, send email to > > [email protected] > > > >> To unsubscribe from this group, send email to > > > >> [email protected] > > > >> For more options, visit this group at > > > >>http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > > [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected] > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en-Hide quoted > > text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

