summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-26 23:39:41 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-26 23:39:41 -0700
commita4ce03f35458efbac5544f706202322695d1102b (patch)
treecc69eb182aa730ec3ab95e1867f56ad5b4d3b46f
parent67542964876aa7e4216e8f69f21dda68e7463b9a (diff)
parent65de0e6a266bb4d176194d21ee59661066134012 (diff)
downloadframeworks_base-a4ce03f35458efbac5544f706202322695d1102b.zip
frameworks_base-a4ce03f35458efbac5544f706202322695d1102b.tar.gz
frameworks_base-a4ce03f35458efbac5544f706202322695d1102b.tar.bz2
Merge change 8605
* changes: Encourage the better way of removing an Activity's title bar.
-rw-r--r--docs/html/guide/appendix/faq/commontasks.jd11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/html/guide/appendix/faq/commontasks.jd b/docs/html/guide/appendix/faq/commontasks.jd
index 259b5d1..e88a867 100644
--- a/docs/html/guide/appendix/faq/commontasks.jd
+++ b/docs/html/guide/appendix/faq/commontasks.jd
@@ -56,7 +56,7 @@ href="{@docRoot}guide/topics/fundamentals.html">Application Fundamentals</a>
to understand the basics of how an Android application works.</p>
<p>You should also take a look at the ApiDemos application and the other sample
-applications included in the SDK, in the <code>&lt;sdk&gt;/samples/
+applications included in the SDK, in the <code>&lt;sdk&gt;/samples/</code>
folder in the SDK.</p>
<p>Finally, a great way to started with Android development in Eclipse is to
@@ -281,6 +281,15 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data){
<pre>//Hide the title bar
requestWindowFeature(Window.FEATURE_NO_TITLE);
</pre>
+<p>A better way to achieve the same end is to specify a theme in your Android
+Manifest file:</p>
+<pre>&lt;application android:icon="@drawable/icon" android:theme="@android:style/Theme.NoTitleBar"&gt;
+</pre>
+<p>This is preferable because it tells the system not to show a title bar while
+your application is starting up. With the explicit method call, your application
+will have a title bar visible to the user until <code>onCreate</code> runs.</p>
+<p>(Note that this can be applied to either the <code>&lt;application&gt;</code>
+tag or to individual <code>&lt;activity&gt;</code> tags.)</p>
<a name="localhostalias" id="localhostalias"></a><h2>Referring to localhost from the emulated environment</h2>
<p>
If you need to refer to your host computer's <em>localhost</em>, such as when you