diff options
author | Scott Main <smain@google.com> | 2011-03-10 15:40:23 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-03-10 15:40:23 -0800 |
commit | dd7617b3276c0a666c17ae2fb3ab02d5dce4b354 (patch) | |
tree | 38a733fedec5d02cd754aec10877b917898ae7f9 /docs/html/resources | |
parent | cf994cc57df33121cea7a0082c8ea55ca125279c (diff) | |
parent | 0722cec0f1e921a1d12d3c0dbb8b135d309b2031 (diff) | |
download | frameworks_base-dd7617b3276c0a666c17ae2fb3ab02d5dce4b354.zip frameworks_base-dd7617b3276c0a666c17ae2fb3ab02d5dce4b354.tar.gz frameworks_base-dd7617b3276c0a666c17ae2fb3ab02d5dce4b354.tar.bz2 |
am 0722cec0: Merge "docs: fix error in common tasks code snippet and add redirects to all faq docs from /guide to docs in /resources bug:3475300" into honeycomb
* commit '0722cec0f1e921a1d12d3c0dbb8b135d309b2031':
docs: fix error in common tasks code snippet and add redirects to all faq docs from /guide to docs in /resources bug:3475300
Diffstat (limited to 'docs/html/resources')
-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 |