Tuesday, September 14, 2010

[android-developers] Re: Cross Activity Listeners

Thanks, was actually just about to post that. Sorry for all the little
questions. One of these days I'll get this crazy Android stuff.


On Sep 14, 2:14 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> On Tue, Sep 14, 2010 at 1:45 PM, tatebn <brandonnt...@gmail.com> wrote:
> > I've stumbled on a new, related issue.  One of the tabs is a mapview.
> > How do I work with that?  I get an error having a mapView outside of a
> > mapActivity.  Since I'm obviously extending TabActivity here, how do I
> > get a map in one of these tabs?
>
> Don't extend TabActivity. Extend MapActivity. After getting your
> TabHost via findViewById(), call setup() on it before proceeding. You
> can see this in the two examples I linked to.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate