> 1. On API Level 11+, use a version of the activity that isn't themed
> as a dialog. I hoped you could use <activity-alias> for this, but it
> doesn't seem like you can override a theme that way...


What I do is the following:

public class MyActivity extends Activity
{
    public static class MyActivityNoHolo extends MyActivity
    {
        // Nothing
    }


    public static class MyActivityHolo extends MyActivity
    {
        // Nothing
    }
}


Give them different themes in the manifest and then use the
appropriate class name when starting the activity as determined by the
API level.






-- 
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