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

Reply via email to