Ray's playground

 

随笔分类 -  Android

Dealing with Threads(Beginning Android)
摘要: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 ... 阅读全文

posted @ 2010-01-30 23:00 Ray Z 阅读(285) 评论(0) 推荐(0)

Using Preferences(Beginning Android)
摘要: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... 阅读全文

posted @ 2010-01-29 23:32 Ray Z 阅读(292) 评论(0) 推荐(0)

Locating and Sensing(Chapter 8 of Hello, Android)
摘要:This is a placeholder. 阅读全文

posted @ 2010-01-21 12:28 Ray Z 阅读(142) 评论(0) 推荐(0)

The Connected World(Chapter 7 of Hello, Android)
摘要: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 ... 阅读全文

posted @ 2010-01-20 23:18 Ray Z 阅读(222) 评论(0) 推荐(0)

Putting SQL to Work(Chapter 9 of Hello, Android)
摘要: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 ... 阅读全文

posted @ 2010-01-19 22:16 Ray Z 阅读(188) 评论(0) 推荐(0)

Storing Local Data(Chapter 6 of Hello, Android)
摘要: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&... 阅读全文

posted @ 2010-01-18 17:52 Ray Z 阅读(168) 评论(0) 推荐(0)

Multimedia(Chapter 5 of Hello, Android)
摘要: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... 阅读全文

posted @ 2010-01-17 23:03 Ray Z 阅读(207) 评论(0) 推荐(0)

Exploring 2D Graphics(Chapter 4 of Hello, Android)
摘要:There are too many stuff in this chapter.I need to review the code later. 阅读全文

posted @ 2010-01-16 11:29 Ray Z 阅读(205) 评论(0) 推荐(0)

Designing the User Interface(Chapter 3 of Hello, Android)
摘要: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... 阅读全文

posted @ 2010-01-09 22:34 Ray Z 阅读(230) 评论(0) 推荐(0)

Key Concepts(Chapter 2 of Hello, Android)
摘要: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. ... 阅读全文

posted @ 2010-01-08 22:35 Ray Z 阅读(276) 评论(0) 推荐(0)

Failed to find an AVD compatible with target
摘要:下载Android SDK 1.5后,首先会遇到一个棘手问题,模拟器启动不了,控制台报“Failed to find an AVD compatible with target”错误。解决办法如下: 进入1.5 sdk目录下,->tools->敲入命令“android create avd -nMyAndroid -t 2再次运行程序,成功 阅读全文

posted @ 2009-06-20 09:40 Ray Z 阅读(1712) 评论(0) 推荐(0)

导航