[android-developers] Re: MapView in a TabSpec

2008-05-08 Thread WildLuka
a TabView ? I am aware of a TabSpec. i couldn't find it in the documenation. can you show how ? On May 8, 2:50 pm, Hielko <[EMAIL PROTECTED]> wrote: > Yeah, but that's no problem: you can simply display an activity inside > a tabview. That's also how we have implemented our mapview with tabs. >

[android-developers] Re: MapView in a TabSpec

2008-05-08 Thread Hielko
Yeah, but that's no problem: you can simply display an activity inside a tabview. That's also how we have implemented our mapview with tabs. On May 8, 1:52 pm, WildLuka <[EMAIL PROTECTED]> wrote: > I have already tried it, with no joy.  I get "error inflating class", > an InflateException. instan

[android-developers] Re: MapView in a TabSpec

2008-05-08 Thread WildLuka
I have already tried it, with no joy. I get "error inflating class", an InflateException. instances of MapView can only occur in MapActivity's ... On May 8, 11:38 am, zero <[EMAIL PROTECTED]> wrote: > yeah, i did that without problems, too. > don't have the code anymore, because i wanted the t

[android-developers] Re: MapView in a TabSpec

2008-05-08 Thread zero
yeah, i did that without problems, too. don't have the code anymore, because i wanted the tab for two maps, and that realy won't work because MapActivity is restricted to one mapView, it seems. Anyway, for one MapView it's easy, you're almost there wiht your code. Just forget about the setcontent

[android-developers] Re: MapView in a TabSpec

2008-05-08 Thread WildLuka
great mind sharing ? On May 8, 1:47 am, Hielko <[EMAIL PROTECTED]> wrote: > We have an activity inside a tabview with a map without problems... > > On 7 mei, 23:00, Mark Murphy <[EMAIL PROTECTED]> wrote: > > > WildLuka wrote: > > > If I substitute the Intent with a LinearLayout, just as for tab1,

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread Hielko
We have an activity inside a tabview with a map without problems... On 7 mei, 23:00, Mark Murphy <[EMAIL PROTECTED]> wrote: > WildLuka wrote: > > If I substitute the Intent with a LinearLayout, just as for tab1, the > > example works perfectly.  and it's not just a MapActivity, the > > NullPointe

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread Mark Murphy
WildLuka wrote: > If I substitute the Intent with a LinearLayout, just as for tab1, the > example works perfectly. and it's not just a MapActivity, the > NullPointerException is thrown with any activity. Oh, sorry, I interpreted your "that's it!" from your preceding message as meaning things we

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread WildLuka
If I substitute the Intent with a LinearLayout, just as for tab1, the example works perfectly. and it's not just a MapActivity, the NullPointerException is thrown with any activity. luka On May 7, 9:56 pm, WildLuka <[EMAIL PROTECTED]> wrote: > i have indeed launched MyMapActivity the canonical

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread WildLuka
i have indeed launched MyMapActivity the canonical way, and it works fine ! ... sorry about the mistakes ... the think is that I need to show a map in a Tab and since the only way of running a MapView is through the MapActivity, that seemed to be the only viable option... i'm open to other suggest

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread Mark Murphy
WildLuka wrote: > sure ! > TabHost.TabSpec tab2= tabs.newTabSpec("tab2"); > tab2= map.setContent(new Intent(this, MyMapActivity.class)); > tab2.setIndicator("tab2", > getResources().getDrawable(R.drawable.drawable2)); > tabs.addTab(map); I'm assuming the second line sh

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread WildLuka
sure ! public class MyMapActivity extends MapActivity { private OverlayController mOverlayController; private MapController mapController; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(ici

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread Mark Murphy
WildLuka wrote: > ok ,, i've just noticed that you can pass an Intent to setContent() to > start an activity. so I have defined and declared a MyMapActivity, > but what I get now is a NullPointException as soon as I hit the > MapTab ... here it is: > > Uncaught handler: thread Main exiting due t

[android-developers] Re: MapView in a TabSpec

2008-05-07 Thread WildLuka
ok ,, i've just noticed that you can pass an Intent to setContent() to start an activity. so I have defined and declared a MyMapActivity, but what I get now is a NullPointException as soon as I hit the MapTab ... here it is: Uncaught handler: thread Main exiting due to uncaught exception java.la