Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6565a5a3 authored by Dirk Dougherty's avatar Dirk Dougherty Committed by The Android Open Source Project
Browse files

AI 147332: Miscellaneous doc changes for cupcake SDK

  BUG=1790234

Automated import of CL 147332
parent 7774462a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ phrasing your questions, read <a href="http://www.catb.org/%7Eesr/faqs/smart-que
<li><b>Android security discuss</b> - A place for open discussion on secure development, emerging security concerns, and best practices for and by android developers. Please don't disclose vulnerabilities directly on this list, you'd be putting all Android users at risk.
<ul>
<li>Subscribe using Google Groups:&nbsp;<a href="http://groups.google.com/group/android-security-discuss">android-security-discuss</a></li>
<li>Subscribe via email:&nbsp;<a href="mailto:android-security-discuss@googlegroups.com">android-secuirty-discuss@googlegroups.com</a><a href="mailto:android-platform-subscribe@googlegroups.com">
<li>Subscribe via email:&nbsp;<a href="mailto:android-security-discuss@googlegroups.com">android-security-discuss@googlegroups.com</a><a href="mailto:android-platform-subscribe@googlegroups.com">
    </a></li>
</ul>
</li>
+8 −9
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ parent.link=index.html
  added or removed?</a></li>
</ul>

<!-- ------------------------------------------------------------------ -->

<a name="1" id="1"></a>

@@ -32,7 +31,7 @@ default. If needed, you can declare an <code>android:process</code> attribute
in your manifest file, to explicitly place a component (Activity/Service) in
another process.</p>

<!-- ------------------------------------------------------------------ -->


<a name="2" id="2"></a>

@@ -47,7 +46,7 @@ separate pool of transaction threads in each process to dispatch all
incoming IPC calls. The developer should create separate threads for any
long-running code, to avoid blocking the main UI thread.</p>

<!-- ------------------------------------------------------------------ -->


<a name="3" id="3"></a>

@@ -128,7 +127,7 @@ the <a href="{@docRoot}guide/topics/data/data-storage.html">Data Storage</a>
for further details on how to use these components.</p>


<!-- ------------------------------------------------------------------ -->


<a name="4" id="4"></a>

@@ -140,7 +139,7 @@ or to bring the activity stack to the front if is already running in the
background&mdash; is the to use the NEW_TASK_LAUNCH flag in the startActivity()
call.</p>

<!-- ------------------------------------------------------------------ -->


<a name="5" id="5"></a>

@@ -156,7 +155,7 @@ messages.</p>
<p>The sample code for remote service callbacks is given in <a
href="{@docRoot}guide/samples/ApiDemos/src/com/example/android/apis/app/RemoteService.html">ApiDemos/RemoteService</a></p>

<!-- ------------------------------------------------------------------ -->


<a name="6" id="6"></a>

@@ -166,7 +165,7 @@ href="{@docRoot}guide/samples/ApiDemos/src/com/example/android/apis/app/RemoteSe
document.</p>


<!-- ------------------------------------------------------------------ -->


<a name="7" id="7"></a>

@@ -194,5 +193,5 @@ removed.

</p>

<!-- ------------------------------------------------------------------ -->

+2 −46
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ parent.link=index.html
    <li><a href="#majorminor">When I go to preferences in Eclipse and select "Android", I get the following error message: Unsupported major.minor version 49.0.</a></li>
    <li><a href="#apidemosreinstall">I can't install ApiDemos apps in my IDE because of a signing error</a></li>
    <li><a href="#signingcalendar">I can't compile my app because the build tools generated an expired debug certificate</a></li>
    <li><a href="#addjunit">I can't run a JUnit test class in Eclipse/ADT</a></li>
</ul>

<a name="installeclipsecomponents" id="installeclipsecomponents"></a><h2>ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".</h2>
@@ -245,8 +244,8 @@ documentation.</p>

<ol>
<li>First, delete the debug keystore/key already generated by the Android build tools. Specifically, delete the <code>debug.keystore</code> file. On Linux/Mac OSX, the file is stored in <code>~/.android</code>. On Windows XP, the file is stored in <code>
C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Android</code>. On Windows Vista, the file is stored in <code>
C:\Users\&lt;user&gt;\AppData\Local\Android</code></li>
C:\Documents and Settings\&lt;user&gt;\.android</code>. On Windows Vista, the file is stored in <code>
C:\Users\&lt;user&gt;\.android</code></li>
<li>Next, you can either
<ul>
<li>Temporarily change your development machine's locale (date and time) to one that uses a Gregorian calendar, for example, United States. Once the locale is changed, use the Android build tools to compile and install your app. The build tools will regenerate a new keystore and debug key with valid dates. Once the new debug key is generated, you can reset your development machine to the original locale. </li>
@@ -260,46 +259,3 @@ C:\Users\&lt;user&gt;\AppData\Local\Android</code></li>
<p>For general information about signing Android applications, see 
<a href="{@docRoot}guide/publishing/app-signing.html">Signing Your Applications</a>. </p>
<h2 id="addjunit">I can't run a JUnit test class in Eclipse/ADT</h2>

<p>If you are developing on Eclipse/ADT, you can add JUnit test classes to your application. However, you may get an error when trying to run such a class as a JUnit test:</p>

<pre>Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference</pre>

<p>This error occurs because android.jar does not include complete Junit.* class implementations, but includes stub classes only. </p>

<p>To add a JUnit class, you have to set up a JUnit configuration:. 

<ol>
<li>In the Package Explorer view, select your project. </li>
<li>Open the launch configuration manager.
         <ul>
            <li>In Eclipse 3.3 (Europa), select <strong>Run </strong>&gt; 
              <strong>Open Run Dialog... </strong>or <strong>Run </strong>&gt; 
              <strong>Open Debug Dialog... </strong>.
            </li>

            <li>In Eclipse 3.4 (Ganymede), select <strong>Run </strong>&gt; 
              <strong>Run Configurations... </strong>or <strong>Run </strong>&gt; 
              <strong>Debug Configurations... </strong>.
            </li>
        </ul>
    </li>
<li>In the configuration manager, right-click the "JUnit" configuration type and select <strong>New</strong></li>
<li>In the new configuration's <strong>Test</strong> tab, specify the project and test class, as well as any options for running the test. </li>
<li>In the new configuration's <strong>Classpath</strong> tab, find "Android Library" under Bootstrap Entries and remove it.  </li>
<li>Still in the <strong>Classpath</strong> tab, select Bootstrap Entries and click the Advanced button. </li>
<ol type="a">
<li>Choose Add Library and click OK.</li>
<li>Select JRE System Library and click Next. </li>
<li>Select Workspace Default JRE and click Finish.</li>
</ol>
<li>Select Bootstrap Entries again and click Advanced.</li>
<ol type="a">
<li>Choose Add Library and click OK.</li>
<li>Select JUnit 3 and click Finish. </li>
</ol>
</ol>
<p>When configured in this way, your JUnit test class should now run properly.</p>
Loading