heirloom 发表于 2025-3-28 14:50:24
http://reply.papertrans.cn/19/1823/182209/182209_41.png过份好问 发表于 2025-3-28 21:42:46
http://reply.papertrans.cn/19/1823/182209/182209_42.png难理解 发表于 2025-3-29 01:50:34
http://reply.papertrans.cn/19/1823/182209/182209_43.png磨坊 发表于 2025-3-29 03:24:27
http://reply.papertrans.cn/19/1823/182209/182209_44.pngpalliate 发表于 2025-3-29 07:52:35
http://reply.papertrans.cn/19/1823/182209/182209_45.png充气球 发表于 2025-3-29 13:40:27
Handling Activity Lifecycle Eventshile this may sound like a broken record please remember that Android devices, by and large, are phones. As such, some activities are more important that others—taking a call is probably more important to users than is playing Sudoku. And, since it is a phone, it probably has less RAM than does your current desktop or notebook.沙文主义 发表于 2025-3-29 18:32:36
Project Structureics, though, are fairly unique to Android and what it does to prepare the actual application that will run on the device or emulator. Here’s a quick primer on the project structure to help you make sense of it all, particularly for the sample code referenced in this book, which can be found in the S美丽的写 发表于 2025-3-29 21:30:27
Inside the Manifestide your application—the activities, the services, and so on. You also indicate how these pieces attach themselves to the overall Android system; for example, you indicate which activity (or activities) should appear on the device’s main menu (aka the launcher).Oscillate 发表于 2025-3-30 03:30:09
Creating a Skeleton Applicationn build things, not so much that you cannot understand what is going on. However, the typical “Hello, World!” program has no interactivity (that is, it just dumps the words to a console), and so is really boring.消瘦 发表于 2025-3-30 05:48:14
Using XML-Based Layoutsproach is to use an XML-based layout file. Dynamic instantiation of widgets is reserved for more complicated scenarios, where the widgets are not known at compile-time (e.g., populating a column of radio buttons based on data retrieved off the Internet).