Changes

Jump to: navigation, search
no edit summary
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Android Broadcast Intents and Broadcast Receivers|Previous]]<td align="center">[[Kindle Fire Android 4 App Development Essentials|Table of Contents]]<td width="20%" align="right">[[An Overview of Android Started and Bound Services|Next]]</td>
<tr>
<td width="20%">Android Broadcast Intents and Broadcast Receivers<td align="center"><td width="20%" align="right">An Overview of Android Started and Bound Services</td>
<google>BUY_KINDLE_FIREBUY_ANDROID</google>
Load the activity_thread_example.xml file for the project into the Graphical Layout tool. Right-click on the TextView component, select the Assign ID… menu option and change the ID for the view to myTextView. Next, click and drag the TextView so that it is positioned in the center of the display canvas.
Add a Button view to the user interface, positioned directly beneath the existing TextView object as illustrated in Figure 2729-1:
[[Image:android_thread_example_iu2.png|the UI for an Android Threading example]]
Figure 2729-1
</pre>
With the code changes complete, run the application on either a physical device or an emulator. Once the application is running, touch the Button, at which point the application will appear to freeze. It will, for example, not be possible to touch the button a second time and in some situations the operating system will, as demonstrated in Figure 2729-2, report the application as being unresponsive:
[[Image:android_kindle_fire_application_not_responding2.png|An Android App that is not responding to the system]]
Figure 2729-2
<google>BUY_KINDLE_FIREBUY_ANDROID</google>
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Android Broadcast Intents and Broadcast Receivers|Previous]]<td align="center">[[Kindle Fire Android 4 App Development Essentials|Table of Contents]]<td width="20%" align="right">[[An Overview of Android Started and Bound Services|Next]]</td>
<tr>
<td width="20%">Android Broadcast Intents and Broadcast Receivers<td align="center"><td width="20%" align="right">An Overview of Android Started and Bound Services</td>
</table>

Navigation menu