[android-beginners] Re: MapView - findViewById returns null

2009-03-19 Thread Francois Stephany
Well spotted Glen, Thanks! On 19 mar, 00:15, Glen Humphrey wrote: > Try this. > >     android:id="@+id/mapview1" >     android:layout_width="fill_parent" >     android:layout_height="fill_parent" >     android:enabled="true" >     android:clickable="true" >     android:apiKey="woaw this is my d

[android-beginners] Re: MapView - findViewById returns null

2009-03-18 Thread Glen Humphrey
Try this. On Mar 18, 5:22 am, Francois Stephany wrote: > I cant get it work. > Do I need something between the setContentView() and findViewById() ? > > --- >     public void onCreate(Bundle savedInstanceState) { >         super.onCreate(savedInstanceState); >         setContentView(R.layo

[android-beginners] Re: MapView - findViewById returns null

2009-03-18 Thread Francois Stephany
I cant get it work. Do I need something between the setContentView() and findViewById() ? --- public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mapView = (MapView) findViewById(R.id.mapview1); --

[android-beginners] Re: MapView - findViewById returns null

2009-03-18 Thread PRATAP SOLAPUR
Add id to the map view.wat u r doing is wrong..do it like this then call.. findViewById(R.id.mapview1) On Tue, Mar 17, 2009 at 11:33 PM, Francois Stephany < tulipe.mouta...@gmail.com> wrote: > > Hi there, > > I'm new to Android development and encounter a small problem.