Re: [android-developers] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-05 Thread tvdalia
Ok, I added the Theme as Dialog in manifest & uncommented the previous > if(fDialogMode) > this.requestWindowFeature(Window.FEATURE_NO_TITLE); > and removed the the same line of request after super.onCreate(), doesn't give error and works. If fDloag is true, it shows as Activity with tit

Re: [android-developers] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-04 Thread TreKing
On Tue, Sep 4, 2012 at 6:58 AM, tvdalia wrote: > I removed Dialog Theme from manifest, and added requestWindowFeature > (Window.FEATURE_NO_TITLE);, for the Dialog case, this gives me > RuntimeException on this line. And the exception is ... ? ---

[android-developers] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-04 Thread tvdalia
Hello, I have an Activity (ExpandListActivity) which in one cas want to show as a Dialog and in other situation want to show as an Activity. The layout of ExpandListActivity has a TextView & ExpandList in a LinearLayout. When I show it as Dialog I want to remove the TitleBar & TextView fr