You may have to initialize the dialog using the top-level activity context
and not the tab's sub activity.
Haven't tried it, but it *should* work.

On Mon, Mar 21, 2011 at 2:05 PM, Filip Havlicek <havlicek.fi...@gmail.com>wrote:

> Daniel, that is not enough. Post better description of your problem and
> probably the whole activity code.
>
> 2011/3/21 Justin Anderson <magouyaw...@gmail.com>
>
>> Unfortunately I've never used tabs so I won't be of much help there...
>> I'm just regurgitating stuff that I've seen Dianne Hackborn say...  She is
>> one of the actual Android Framework Engineers that posts on this group.
>>
>>
>> Thanks,
>> Justin Anderson
>> MagouyaWare Developer
>> http://sites.google.com/site/magouyaware
>>
>>
>> On Mon, Mar 21, 2011 at 2:15 PM, Daniel Rindt <
>> daniel.ri...@googlemail.com> wrote:
>>
>>> Am Montag, den 21.03.2011, 13:37 -0600 schrieb Justin Anderson:
>>> > Change your TabHost to display views instead of activities... TabHost
>>> > doesn't handle activities very well.  From what I understand it is
>>> > only partially implemented and dates back to the Android 1.1 days.
>>> Hello Justin,
>>>
>>> thanks for your answer. I don't understand how to implement this. Maybe
>>> you can clue me a bit. My TabHost looks like this:
>>> === 8< ===
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <TabHost xmlns:android="http://schemas.android.com/apk/res/android";
>>>        android:id="@android:id/tabhost"
>>>        android:layout_width="fill_parent"
>>>        android:layout_height="fill_parent">
>>>        <LinearLayout android:orientation="vertical"
>>>                android:layout_width="fill_parent"
>>>                android:layout_height="fill_parent"
>>>                android:padding="5dp">
>>>                <TabWidget android:id="@android:id/tabs"
>>>                        android:layout_width="fill_parent"
>>>                        android:layout_height="wrap_content" />
>>>                <FrameLayout android:id="@android:id/tabcontent"
>>>                        android:layout_width="fill_parent"
>>>                        android:layout_height="fill_parent"
>>>                        android:padding="5dp" />
>>>        </LinearLayout>
>>> </TabHost>
>>> === 8< ===
>>> Thanks for helping me.
>>> Daniel
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>> --
>> 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+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>  --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
~ Jeremiah:9:23-24
Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx

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

Reply via email to