Ray's playground

 
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 56 下一页

2010年1月30日

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 阅读(264) 评论(0) 推荐(0) 编辑

2010年1月29日

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 阅读(268) 评论(0) 推荐(0) 编辑

2010年1月28日

Holding Your Objects(Thinking in Java)

摘要: So far, the foreach syntax has been primarily used with arrays, but it also works with any Collection object. 阅读全文

posted @ 2010-01-28 00:13 Ray Z 阅读(128) 评论(0) 推荐(0) 编辑

2010年1月26日

Inner Classes(Thinking in Java)

摘要: If you want to make an object of the inner class anywhere except from within a non-static method of the outer class, you must specify the type of that object as OuterClassName.InnerClassName,  So an i... 阅读全文

posted @ 2010-01-26 22:02 Ray Z 阅读(320) 评论(0) 推荐(0) 编辑

2010年1月25日

Interfaces(Thinking in Java)

摘要: The interface keyword takes the concept of abstractness one step further. The abstract keyword allows you to create one or more undefined methods in a class—you provide part of the interface wit... 阅读全文

posted @ 2010-01-25 23:16 Ray Z 阅读(221) 评论(0) 推荐(0) 编辑

2010年1月23日

Polymorphism(Thinking in Java)

摘要: All method binding in Java uses late binding unless the method is static or final (private methods are implicitly final). This means that ordinarily you don’t need to make any decisions about wh... 阅读全文

posted @ 2010-01-23 23:43 Ray Z 阅读(284) 评论(0) 推荐(0) 编辑

2010年1月22日

Reusing Classes(Thinking in Java)

摘要: Java’s final keyword has slightly different meanings depending on the context, but in general it says “This cannot be changed.” You might want to prevent changes for two reasons: des... 阅读全文

posted @ 2010-01-22 23:30 Ray Z 阅读(211) 评论(0) 推荐(0) 编辑

2010年1月21日

Locating and Sensing(Chapter 8 of Hello, Android)

摘要: This is a placeholder. 阅读全文

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

2010年1月20日

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 阅读(201) 评论(0) 推荐(0) 编辑

2010年1月19日

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 阅读(178) 评论(0) 推荐(0) 编辑

上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 56 下一页

导航