Android
Andrew659
这个作者很懒,什么都没留下…
展开
-
Android database tutorial
http://www.vogella.de/articles/AndroidSQLite/article.html转载 2011-07-28 10:35:58 · 652 阅读 · 0 评论 -
Android startActivity()
Have you ever been curious about how startActivity() works? I was thinking what will happen if I put some code after this method call. So I tried out.The result is more or less as I expect. The code原创 2012-06-07 11:38:06 · 1120 阅读 · 0 评论 -
Every activity runs in a separate process?
Original URL: http://stackoverflow.com/questions/6468126/every-activity-in-android-is-a-process-or-one-application-is-one-processAll activities inside an application run in one process?It depe转载 2012-06-03 17:20:59 · 942 阅读 · 0 评论 -
adb logcat filter doesn't work
My Android application tries to log some runtime information with Log.i ("myTag", rtMsg)According to Android developer documents, I will be able to use "adb logcat myTag:I" to filter those informati原创 2012-03-30 16:40:53 · 1119 阅读 · 0 评论 -
Your project contains errors, but there is no red cross marks
http://hi.baidu.com/lonpo/blog/item/829a3862cf7568c9e7113aca.html转载 2012-03-27 20:11:56 · 720 阅读 · 0 评论 -
Android 用代码开启和关闭飞行模式
boolean isEnabled = Settings.System.getInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) == 1;Settings.System.putInt(getConten原创 2011-08-14 20:44:40 · 9422 阅读 · 0 评论 -
Calculate distance based on GPS data (latitude and longitude)
http://www.movable-type.co.uk/scripts/latlong.html转载 2011-08-12 17:31:45 · 965 阅读 · 0 评论 -
Sending and receiving broadcast message in Android
Sending and receiving broadcast messages enables inter activity communication. Suppose in activity A you have completed a task and you want原创 2011-08-06 18:27:56 · 1147 阅读 · 0 评论 -
Creating Toast in IntentService
Oftentimes, we need a background service to do a long running task like downloading a file when we develop android apps. IntentService is a原创 2011-08-06 13:29:11 · 1220 阅读 · 0 评论 -
Multiple choice listview in Android
Below is a simple yet effective solution of using checkbox in listviews.XML File<LinearLayout xmlns:android="http://schemas.android.com原创 2011-08-01 15:44:42 · 1303 阅读 · 1 评论 -
Using GPS to get current location in Android
http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/转载 2011-07-31 22:12:08 · 804 阅读 · 0 评论 -
Android ListView and ListActivity Tutorial
http://www.vogella.de/articles/AndroidListView/article.html原创 2011-07-30 12:47:11 · 575 阅读 · 0 评论 -
匿名内部类引用其创建类的实例
在Android程序中, 我们经常需要在一个Activity中注册一个按钮的listener, 常见的方式都是如下, 自己定义一个OnClickListener的匿名子类, 并且重载onClick()方法.mConfirmation.setOnClickListener(new原创 2011-07-29 16:28:17 · 1259 阅读 · 0 评论 -
How input events are dispatched in Android?
http://cjix.info/blog/misc/internal-input-event-handling-in-the-linux-kernel-and-the-android-userspace/转载 2012-10-31 19:44:24 · 1884 阅读 · 0 评论