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
> > NullPointerException is thrown with any activity.
>
> Oh, sorry, I interpreted your "that's it!" from your preceding message
> as meaning things were working for you.
>
> Off the cuff, my guess is that perhaps
> TabHost.TabSpec#setContent(Intent) isn't fully working yet, which means
> your desired UI might not be possible. Perhaps a Googler could confirm this.
>
> If true, the only near-term hope I can think of is to do one of the
> following:
>
> 1. Put a MapView in your TabsActivity directly (i.e., via the layout)
> and hope you can reimplement whatever portion of the MapActivity support
> you need
>
> 2. Put the TabHost in your MyMapActivity and hope you can reimplement
> whatever portion of the TabActivity support you need
>
> Personally, I'd be nervous about a map in a tab anyway -- the tab strip
> takes up a fair chunk of screen real estate, and I don't know how small
> of a screen Android might wind up running on. You might be better served
> just by launching MyMapActivity as a separate regular activity via a
> button or the options menu.
>
> And, again, with luck, somebody else who has better ideas will chime in
> on this thread...
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> The Busy Coder's Guide to Android Development -- coming in June 2008!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to