diff options
Diffstat (limited to 'docs/html')
| -rw-r--r-- | docs/html/google/play-services/ads.jd | 5 | ||||
| -rw-r--r-- | docs/html/google/play-services/id.jd | 13 | ||||
| -rw-r--r-- | docs/html/guide/topics/manifest/activity-element.jd | 18 | ||||
| -rw-r--r-- | docs/html/images/ui/sample-linearlayout.png | bin | 12918 -> 9917 bytes | |||
| -rw-r--r-- | docs/html/tools/publishing/preparing.jd | 7 | ||||
| -rw-r--r-- | docs/html/training/implementing-navigation/ancestral.jd | 21 |
6 files changed, 61 insertions, 3 deletions
diff --git a/docs/html/google/play-services/ads.jd b/docs/html/google/play-services/ads.jd index 18579c7..c1a59b8 100644 --- a/docs/html/google/play-services/ads.jd +++ b/docs/html/google/play-services/ads.jd @@ -59,6 +59,11 @@ header.hide=1 <h4>Flexible and powerful tools </h4> <p>Filters and controls help you manage your ads. If you want to use multiple ad networks, you can do that too, with free ad network mediation.</p> + + <h4>Ad Policy Compliant</h4> + <p>The Google Mobile Ads SDK available in Google Play services is compliant with + Google Play Ad Poilcy regarding the usage of + <a href="{@docRoot}google/play-services/id.html">advertising ID</a>.</p> </div> <div class="col-6 normal-links"> diff --git a/docs/html/google/play-services/id.jd b/docs/html/google/play-services/id.jd index 466dfef..d5acf76 100644 --- a/docs/html/google/play-services/id.jd +++ b/docs/html/google/play-services/id.jd @@ -55,6 +55,19 @@ href="{@docRoot}reference/com/google/android/gms/ads/identifier/package-summary. </div> </div> +<p class="caution" style= +"background-color:#fffdeb;width:100%;margin-bottom:1em;padding:.5em;"> + As a reminder, please note that starting <strong>1 August 2014</strong>, new + apps and app updates distributed through Google Play must use the advertising + ID in lieu of any other persistent identifiers for any advertising purposes, + on devices that support the advertising ID.<br> + <br> + To learn how to check your app's compliance through the Developer Console, or + for details on the associated developer policy changes, please see the + <a href= + "https://support.google.com/googleplay/android-developer/answer/6048248">Advertising + ID topic</a> in the Google Play developer help center. +</p> <h2 id="get_started">Using the Advertising ID</h2> diff --git a/docs/html/guide/topics/manifest/activity-element.jd b/docs/html/guide/topics/manifest/activity-element.jd index a8d7615..3c623f6 100644 --- a/docs/html/guide/topics/manifest/activity-element.jd +++ b/docs/html/guide/topics/manifest/activity-element.jd @@ -453,7 +453,7 @@ Similarly, a new instance of a "{@code singleTop}" activity may also be created to handle a new intent. However, if the target task already has an existing instance of the activity at the top of its stack, that instance will receive the new intent (in an -<code>{@link android.app.Activity#onNewIntent onNewIntent()}</code> call); +{@link android.app.Activity#onNewIntent onNewIntent()} call); a new instance is not created. In other circumstances — for example, if an existing instance of the "{@code singleTop}" activity is in the target task, but not at the top of @@ -461,6 +461,22 @@ the stack, or if it's at the top of a stack, but not in the target task — a new instance would be created and pushed on the stack. </p> +<p>Similarly, if you +<a href="{@docRoot}training/implementing-navigation/ancestral.html">navigate +up</a> to an activity on the current stack, the behavior is determined by the +parent activity's launch mode. If the parent activity has launch mode {@code +singleTop} (or the <code>up</code> intent contains {@link +android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}), the parent is brought to the +top of the stack, and its state is preserved. The navigation intent is received +by the parent activity's {@link android.app.Activity#onNewIntent onNewIntent()} +method. If the parent activity has launch mode {@code standard} (and the +<code>up</code> intent does not contain {@link +android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}), the current activity and its +parent are both popped off the stack, and a new instance of the parent activity +is created to receive the navigation intent. +</p> + + <p> The "{@code singleTask}" and "{@code singleInstance}" modes also differ from each other in only one respect: A "{@code singleTask}" activity allows other diff --git a/docs/html/images/ui/sample-linearlayout.png b/docs/html/images/ui/sample-linearlayout.png Binary files differindex c4beb93..04c9259 100644 --- a/docs/html/images/ui/sample-linearlayout.png +++ b/docs/html/images/ui/sample-linearlayout.png diff --git a/docs/html/tools/publishing/preparing.jd b/docs/html/tools/publishing/preparing.jd index 7192aa8..5265fce 100644 --- a/docs/html/tools/publishing/preparing.jd +++ b/docs/html/tools/publishing/preparing.jd @@ -191,6 +191,13 @@ were created in your project.</p> added to your code, such as {@link android.os.Debug#startMethodTracing()} and {@link android.os.Debug#stopMethodTracing()} method calls.</p> +<p class="caution"><strong>Important:</strong> Ensure that you disable debugging for +your app if using {@link android.webkit.WebView} to display paid for content or if using JavaScript +interfaces, since debugging allows users to inject scripts and extract content using Chrome +DevTools. To disable debugging, use the +{@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) WebView.setWebContentsDebuggingEnabled()} +method.</p> + <h4>Clean up your project directories</h4> <p>Clean up your project and make sure it conforms to the directory structure described in <a diff --git a/docs/html/training/implementing-navigation/ancestral.jd b/docs/html/training/implementing-navigation/ancestral.jd index 12d5005..f4d7c1a 100644 --- a/docs/html/training/implementing-navigation/ancestral.jd +++ b/docs/html/training/implementing-navigation/ancestral.jd @@ -133,7 +133,25 @@ android.support.v4.app.NavUtils} class's static method, navigateUpFromSameTask()}. When you call this method, it finishes the current activity and starts (or resumes) the appropriate parent activity. If the target parent activity is in the task's back stack, it is brought -forward as defined by {@link android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}.</p> +forward. The way it is brought forward depends on whether the parent activity +is able to handle an {@link +android.app.Activity#onNewIntent onNewIntent()} call:</p> + +<ul> + <li>If the parent activity has launch mode <a + href="{@docRoot}guide/topics/manifest/activity-element.html#lmode">{@code + <singleTop>}</a>, or the <code>up</code> intent contains {@link + android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}, the parent activity is + brought to the top of the stack, and receives the intent through its + {@link android.app.Activity#onNewIntent onNewIntent()} method.</li> + + <li>If the parent activity has launch mode <a + href="{@docRoot}guide/topics/manifest/activity-element.html#lmode">{@code + <standard>}</a>, and the <code>up</code> intent does not contain + {@link android.content.Intent#FLAG_ACTIVITY_CLEAR_TOP}, the parent activity + is popped off the stack, and a new instance of that activity is created on + top of the stack to receive the intent.</li> +</ul> <p>For example:</p> @@ -157,7 +175,6 @@ activity was started in a task that belongs to a different app, then navigating <em>Up</em> should create a new task that belongs to your app, which requires that you create a new back stack.</p> - <h3 id="BuildBackStack">Navigate up with a new back stack</h3> <p>If your activity provides any <a |
