diff options
Diffstat (limited to 'docs/html/resources')
-rw-r--r-- | docs/html/resources/dashboard/platform-versions.jd | 18 | ||||
-rw-r--r-- | docs/html/resources/faq/troubleshooting.jd | 74 | ||||
-rw-r--r-- | docs/html/resources/samples/index.jd | 12 |
3 files changed, 89 insertions, 15 deletions
diff --git a/docs/html/resources/dashboard/platform-versions.jd b/docs/html/resources/dashboard/platform-versions.jd index 2757850..ec7e9da 100644 --- a/docs/html/resources/dashboard/platform-versions.jd +++ b/docs/html/resources/dashboard/platform-versions.jd @@ -35,7 +35,7 @@ div.dashboard-panel th { <p>This page provides data about the relative number of active devices running a given version of the Android platform. This can help you understand the landscape of device distribution and decide how to prioritize -the development of your application features for the devices currently in the +the development of your application features for the devices currently in the hands of users.</p> <p class="note"><strong>Note:</strong> This data is based on the number @@ -45,9 +45,11 @@ ending on the data collection date noted below.</p> <div class="dashboard-panel"> <img alt="" width="400" height="250" -src="http://chart.apis.google.com/chart?cht=p&chs=400x250&chd=t:0.3,27.7,54.2,2.9,14.8&chl=Android%201.1|Android%201.5|Android%201.6|Android%202.0|Android%202.0.1&chco=c4df9b,6fad0c" /> +src="http://chart.apis.google.com/chart?cht=p&chs=400x250&chd=t:0.3,31.0,47.6,0.7,20.4&chl=Android%201.1|Android%201.5|Android%201.6|Android%202.0|Android%202.0.1&chco=c4df9b,6fad0c" /> -<!-- f6faf2,a3c539 --> +<!-- HISTORY +12/14/09 http://chart.apis.google.com/chart?cht=p&chs=400x250&chd=t:0.3,27.7,54.2,2.9,14.8&chl=Android%201.1|Android%201.5|Android%201.6|Android%202.0|Android%202.0.1&chco=c4df9b,6fad0c +--> <table> <tr> @@ -60,20 +62,20 @@ src="http://chart.apis.google.com/chart?cht=p&chs=400x250&chd=t:0.3,27.7,54.2,2. </tr> <tr> <td>Android 1.5</td> - <td>27.7%</td> + <td>31.0%</td> </tr> <tr> <td>Android 1.6</td> - <td>54.2%</td></tr> + <td>47.6%</td></tr> <tr> <td>Android 2.0</td> - <td>2.9%</td> + <td>0.7%</td> </tr> <tr> <td>Android 2.0.1</td> - <td>14.8%</td> + <td>20.4%</td> </tr> </table> </div> -<p><em>Data collected during two weeks ending on 12/14/2009</em></p> +<p><em>Data collected during two weeks ending on 1/4/2010</em></p> diff --git a/docs/html/resources/faq/troubleshooting.jd b/docs/html/resources/faq/troubleshooting.jd index 0cf1ab0..f3252b0 100644 --- a/docs/html/resources/faq/troubleshooting.jd +++ b/docs/html/resources/faq/troubleshooting.jd @@ -22,7 +22,10 @@ parent.link=index.html <li><a href="#eclipse">Eclipse isn't talking to the emulator</a></li> <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="#gesturebuilderinstall">I can't install the GestureBuilder sample +app in the emulator</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="#manifestfiles">Unable to view manifest files from within Eclipse</a></li> </ul> <a name="installeclipsecomponents" id="installeclipsecomponents"></a><h2>ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".</h2> @@ -233,6 +236,55 @@ commands to the emulator instance that you are targeting. To do that you can add <p>For more information about adb, see the <a href="{@docRoot}guide/developing/tools/adb.html">Android Debug Bridge</a> documentation.</p> +<h2 id="gesturebuilderinstall">I can't install the GestureBuilder sample +app in the emulator</a></h2> + +<p>This is similar to the ApiDemos problem described above, except that +you cannot fix it by uninstalling GestureBuilder from the emulator. The +GestureBuilder app cannot be uninstalled because it is currently installed +within the system files themselves.</p> + +<p><strong>Symptoms</strong></p> + +<ul><li><p>You cannot run GestureBuilder in the emulator:</p> + +<pre>[2009-12-10 14:57:19 - GestureBuilderActivity]Re-installation failed due to different application signatures. +[2009-12-10 14:57:19 - GestureBuilderActivity]You must perform a full uninstall of the application. WARNING: This will remove the application data! +[2009-12-10 14:57:19 - GestureBuilderActivity]Please execute 'adb uninstall com.android.gesture.builder' in a shell.</pre> +</li> + +<li><p>Running <code>adb uninstall com.android.gesture.builder</code> fails:</p> +<pre>$ adb uninstall com.android.gesture.builder + Failure</pre> +</li></ul> + +<p>For now, the work-around is to change the sample's package name +so that the system can install it as a new app rather than as a +replacement for the existing GestureBuilder app. To change the +package name, open the manifest file and modify the package attribute +of the manifest element. Next, update imports and other references to +the package name, rebuild the app, and run it in an AVD.</p> + +<p>For example, here's how you could do this in Eclipse:</p> + +<ol> + <li>Right-click on the package name +(<code>src/com.android.gesture.builder</code>).</li> + <li>Select <strong>Refactor > Rename</strong> and change the name, for example to +<code>com.android.gestureNEW.builder</code>. </li> + <li>Open the manifest file. Inside the <code><manifest></code> +tag, change the package name to +<code>com.android.gestureNEW.builder</code>.</li> + <li>Open each of the two Activity files and do Ctrl-Shift-O to add +missing import packages, then save each file.</li> +<li>Run the GestureBuilder application on the emulator.</li> +</ol> + +<p>If you get an error message such as "Could not load /sdcard/gestures. +Make sure you have a mounted SD card," be sure that your target AVD has an +SD card. To create an AVD that has an SD card, use the +<a href="{@docRoot}guide/developing/tools/avd.html#options"><code>-c</code> +option</a> in the <code>android create avd</code> command.</p> <h2 id="signingcalendar">I can't compile my app because the build tools generated an expired debug certificate</h2> @@ -259,3 +311,25 @@ C:\Users\<user>\.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="manifestfiles">Unable to view manifest files from within +Eclipse</a></h2> + +<p>When you try to open an application's manifest file from within +Eclipse, you might get an error such as this one:</p> +<pre>An error has occurred. See error log for more details. +org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelectionModeEnabled()Z</pre> + +<p>Try reverting to the 3.0 version of the Eclipse XML Editors and +Tools. If this does not work, remove the 3.1 version of the tool. To do +this in Eclipse 3.4:</p> + +<ol> + <li>Select <strong>Help > Software Updates...</strong></li> + <li>Select the <strong>Installed Software</strong> tab.</li> + <li>Select <strong>Eclipse XML Editors and Tools</strong>.</li> + <li>Click <strong>Uninstall</strong>.</li> + <li>Click <strong>Finish</strong>.</li> +</ol> + +<p>When you restart Eclipse, you should be able to view the manifest +files. </p>
\ No newline at end of file diff --git a/docs/html/resources/samples/index.jd b/docs/html/resources/samples/index.jd index f555073..8ab6f43b 100644 --- a/docs/html/resources/samples/index.jd +++ b/docs/html/resources/samples/index.jd @@ -1,13 +1,11 @@ -guide=true page.title=Sample Code @jd:body -<p>Sometimes, the best way to learn how things are done is to look at some code. -Here, you can browse the source of some sample Android applications that are included -in the Android SDK.</p> +<p>Sometimes, the best way to learn how things are done is to look at some code.</p> -<p>Each version of the Android platform available for the SDK includes a full set of sample +<p>Here, you can browse the source of some sample Android applications. Also, each version of the +Android platform available for the SDK includes a set of sample applications (which may vary between different versions of the platform). You can find the samples in your SDK at:</p> @@ -53,7 +51,7 @@ platforms) and allow you to view the source files in your browser. </p> <dd>A home screen replacement application.</dd> <dt><a href="JetBoy/index.html">JetBoy</a></dt> - <dd>JetBoy is a game that demonstrates the SONiVOX JET interactive music technology, + <dd>A game that demonstrates the SONiVOX JET interactive music technology, with {@link android.media.JetPlayer}.</dd> <dt><a href="LunarLander/index.html">Lunar Lander</a></dt> @@ -77,7 +75,7 @@ platforms) and allow you to view the source files in your browser. </p> <dt><a href="SoftKeyboard/index.html">Soft Keyboard</a></dt> <dd>An example of writing an input method for a software keyboard.</dd> - <dt><a href=Wiktionary/index.html">Wiktionary</a></dt> + <dt><a href="Wiktionary/index.html">Wiktionary</a></dt> <dd>An example of creating interactive widgets for display on the Android home screen.</dd> |