diff options
author | Scott Main <smain@google.com> | 2011-03-08 17:50:42 -0800 |
---|---|---|
committer | Scott Main <smain@google.com> | 2011-03-08 17:55:54 -0800 |
commit | 0b9dd0fdd6f6ba9259bfe1c12d9ccaf0641155b6 (patch) | |
tree | 423272e5322a6c58d3beb817dd5d2e88c61c1f53 /docs/html/resources/faq | |
parent | b3c991b0190faa4fc833a5fc9074939fd5d8a3c4 (diff) | |
download | frameworks_base-0b9dd0fdd6f6ba9259bfe1c12d9ccaf0641155b6.zip frameworks_base-0b9dd0fdd6f6ba9259bfe1c12d9ccaf0641155b6.tar.gz frameworks_base-0b9dd0fdd6f6ba9259bfe1c12d9ccaf0641155b6.tar.bz2 |
docs: fix error in common tasks code snippet and add redirects
to all faq docs from /guide to docs in /resources
bug:3475300
Change-Id: I45148c26cc506683d34357dfecb3519b7f5ebdf4
Diffstat (limited to 'docs/html/resources/faq')
-rw-r--r-- | docs/html/resources/faq/commontasks.jd | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/html/resources/faq/commontasks.jd b/docs/html/resources/faq/commontasks.jd index a5f5177..b211db0 100644 --- a/docs/html/resources/faq/commontasks.jd +++ b/docs/html/resources/faq/commontasks.jd @@ -223,7 +223,7 @@ public void onClick(View v){ // Listen for results. protected void onActivityResult(int requestCode, int resultCode, Intent data){ // See which child activity is calling us back. - switch (resultCode) { + switch (requestCode) { case CHOOSE_FIGHTER: // This is the standard resultCode that is sent back if the // activity crashed or didn't doesn't supply an explicit result. @@ -257,7 +257,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data){ stats.putString("height","6\'2\""); stats.putString("weight", "190 lbs"); stats.putString("reach", "73\""); - setResult(RESULT_OK, "Washington", Bundle); + setResult(RESULT_OK, "Washington", stats); finish(); } }; @@ -289,7 +289,12 @@ 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><application></code> tag or to individual <code><activity></code> tags.)</p> -<a name="localhostalias" id="localhostalias"></a><h2>Referring to localhost from the emulated environment</h2> +<p class="caution"><strong>Caution:</strong> This theme will also hide the Action Bar on Android +3.0 and higher. If you want to keep the Action Bar, but hide the title bar, see how you can <a +href="{@docRoot}guide/topics/ui/themes.html#SelectATheme">select a theme based on platform +version</a>.</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 want the emulator client to contact a server running on the same host, use the alias |