摘要:Getting Through the Handlers The most flexible means of making an Android-friendly background thread is to create aninstance of a Handler subclass. You only need one Handler object per activity, and ...
阅读全文
摘要:To get access to the preferences, you have three APIs to choose from:• getPreferences() from within your Activity, to access activity-specific preferences• getSharedPreferences() from with...
阅读全文
摘要:This is a placeholder.
阅读全文
摘要:Android provides a full set of Java-standard networking APIs, such asthe java.net.HttpURLConnection package, that you can use in your programs. The tricky part is to make the calls asynchronously so ...
阅读全文
摘要:Android programs can communicatewith each other in two ways: • Inter-Process Communication (IPC): One process declares an arbitraryAPI using the Android Interface Definition Language (AIDL)and ...
阅读全文
摘要:Your application can store data using several different techniques dependingon the size of the data, its structure, its lifetime, and whether itwill be shared with other programs. In this chapter, we&...
阅读全文
摘要:Android supports the following file types (this is subject to change withnew releases):• WAV (PCM uncompressed)• AAC (Apple iPod format, unprotected)• MP3 (MPEG-3)• WMA (Window...
阅读全文
摘要:There are too many stuff in this chapter.I need to review the code later.
阅读全文
摘要:A layout is a container for one or more child objects and a behavior to position them on the screen within the rectangle of the parent object. Here is a list of the most common layouts provided by An...
阅读全文
摘要:Android is built on top of a solid and proven foundation: the Linuxkernel.Internally, Android uses Linux for its memory management, processmanagement, networking, and other operating system services. ...
阅读全文
摘要:下载Android SDK 1.5后,首先会遇到一个棘手问题,模拟器启动不了,控制台报“Failed to find an AVD compatible with target”错误。解决办法如下: 进入1.5 sdk目录下,->tools->敲入命令“android create avd -nMyAndroid -t 2再次运行程序,成功
阅读全文