Hi,

There is a regular android api and there is google api..

if you go to the build target you should see android api 1.1, 1.5, 1.6,2.0
and Google api 1.5, 1.6, 2.0
you should select google apis not the regular one's.

Thanks & Regards,
Yousuf Syed




On Sat, Jan 2, 2010 at 5:49 AM, sanjay rao <[email protected]> wrote:

> I actually downloaded all the sdk's and when i included google apis
> not google 2.01 . i am able to see maps .
>
> mZoom = (ZoomControls) mapView.getZoomControls();// get zoomControls
> is deprecated so how do we get zoom controls on our map . Thanks a ton
> for your reply Lance, god bless u !!!
>
>
>
>
> On Jan 1, 11:01 pm, sanjay rao <[email protected]> wrote:
> > Hi Lance,
> >
> > Thanks for reply .
> >
> > My android 2.01 is already selected when i go and check what use ask
> > to me to check . i have only the latest version of android i.e 2.01 do
> > you think MapActivity class is not included in 2.01 . so should i go
> > and download the previous versions ???
> >
> > On Dec 31 2009, 1:17 pm, Lance Nanek <[email protected]> wrote:
> >
> > > Those errors can arise due to not using a Google APIs build target.
> > > You can check your build target by right clicking on the project in
> > > Eclipse, selecting Properties, then selecting Android.
> >
> > > On Dec 30, 8:26 pm, sanjay rao <[email protected]> wrote:
> >
> > > > I am trying to run the program mentioned in the link below and i
> > > > sucessfully have got the api key from the MD5 certificate .
> http://developer.android.com/guide/tutorials/views/hello-mapview.html
> > > > . I was able to run the Hello Android tutorial sucessfully .
> >
> > > > the method findViewById(int) is undefined for the type HelloMapView .
> > > > There is one error in the Hello Map Manifest file where i have
> > > > put ????????? There are no formatting options available unlike
> > > > javaranch so it is difficult to highlight . Pardon me . Wherever you
> > > > find comments i.e // means there is an error . i am using android 2
> >
> > > > package com.HelloMap;
> >
> > > > import android.os.Bundle;
> > > > import android.widget.LinearLayout;
> > > > import android.widget.ZoomControls;
> >
> > > > public class HelloMapView extends MapActivity {//Error MapActivity
> > > > cannot be resolved to a type
> >
> > > >         LinearLayout linearLayout;
> > > >         MapView mapView;//Error MapView cannot be resolved to a type
> > > >         ZoomControls mZoom;
> >
> > > >         public void onCreate(Bundle savedInstanceState) {
> >
> > > >         super.onCreate(savedInstanceState); //Error MapActivity
> cannot be
> > > > resolved to a type
> > > >         linearLayout = (LinearLayout) findViewById(R.id.zoomview);
> > > >         mapView = (MapView) findViewById(R.id.mapview);//Error the
> method
> > > > findViewById(int) is undefined for the  type HelloMapView
> > > >         mZoom = (ZoomControls) mapView.getZoomControls();
> //Error MapView
> > > > cannot be resolved to a type
> > > >         setContentView(R.layout.main);//Multiple markers at this
> > > > line , the method setContentView(int) is undefined for the type
> > > > HelloMapView
> > > >     }
> > > >     protected boolean isRouteDisplayed() {
> > > >         return false;
> > > >     }
> >
> > > > }
> >
> > > > Hello Map Manifest .xml
> >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> > > >       package="com.HelloMap"
> > > >       android:versionCode="1"
> > > >       android:versionName="1.0">
> > > >     <uses-permission android:name="android.permission.INTERNET" />
> >
> > > >     <application android:icon="@drawable/icon"
> android:label="@string/
> > > > app_name">
> > > >     <uses-library android:name="com.google.android.maps" />
> > > >          <activity android:name=".HelloMapView"
> > > >                   android:label="@string/app_name">      //Error red
> > > > cross ?????????????????????
> > > >             <intent-filter>
> > > >                 <action android:name="android.intent.action.MAIN" />
> > > >                 <category
> > > > android:name="android.intent.category.LAUNCHER" />
> > > >             </intent-filter>
> > > >         </activity>
> >
> > > >     </application>
> >
> > > > </manifest>
> >
> > > > main.xml // for the layout no errors
> >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> > > > android"
> > > >     android:id="@+id/mainlayout"
> > > >     android:orientation="vertical"
> > > >     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:clickable="true"
> > > >         android:apiKey="0sQa3zcZQteuVNazdZpFREaNeUtx3l3Am4JSTlw"
> > > >     />
> > > >     <LinearLayout
> > > >     android:id="@+id/zoomview"
> > > >     android:layout_width="wrap_content"
> > > >     android:layout_height="wrap_content"
> > > >     android:layout_alignBottom="@id/mapview"
> > > >     android:layout_centerHorizontal="true"
> > > >     />
> >
> > > > </RelativeLayout>
>
> --
> 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
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
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
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to