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?
On Sep 14, 1:35 pm, tatebn <[email protected]> wrote: > Nevermind, I think I got it as per your examples. Thanks. > > On Sep 14, 1:22 pm, tatebn <[email protected]> wrote: > > > I tried using the set content with the view. > > > spec = tabHost.newTabSpec("albums").setIndicator("List", > > > res.getDrawable(R.drawable.driving_directions_tab_list)) > > .setContent(R.layout.driving_directions_list_screen); > > > But it's telling me it can't create the view content because it can't > > find the view with id "whatever". What am I doing wrong here? > > > Thanks > > > On Sep 14, 11:37 am, tatebn <[email protected]> wrote: > > > > Can you point me to an example of how to do that? Currently I'm > > > creating a new intent with the activity class and setting that intent > > > as the content. How do I manage the tabs otherwise? If I just pass > > > in a view for the tab, how do I work with it to do things like refresh > > > the list, etc? > > > > On Sep 14, 11:27 am, Mark Murphy <[email protected]> wrote: > > > > > Don't implement them as separate activities. Use the setContent() that > > > > takes a view ID as a parameter. Then, you won't have a problem. You > > > > will also take up less heap space, less stack space, and less CPU time > > > > than does your current implementation. > > > > > On Tue, Sep 14, 2010 at 11:24 AM, tatebn <[email protected]> wrote: > > > > > Can I have one Activity listen for a message from another? I have a > > > > > TabActivity and I need to call a function/send a message to the > > > > > associated tabs. How do I go about doing that? > > > > > -- > > > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

