Useful Link

General BlueTooth BroadCast User-Defined View Folder&File Internet KeyPress Map Phone&SMS QR Code SQLite3 Intent ScreenCapture Message Transfer Timer

General Android Resources Android Development Tutorial Android ListView and ListActivity Android Location API and Google Maps Android Intents Android and Networking Android Background processing with Threads and Asynchronous Task Remote Messenger Service from Google vogella Resources vogella Training Android and Eclipse Training from the vogella team Android Tutorial Introduction to Android Programming GWT Tutorial Program in Java, compile to JavaScript and HTML Eclipse RCP Tutorial Create native applications in Java JUnit Tutorial Test your application Git Tutorial Put all your files in a distributed version control system gen 目錄下面的 R.java 不見了 http://ephrain.pixnet.net/blog/post/47238762

Handling Screen OFF and Screen ON Intents http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/

How to set Cursor position in EditText http://stackoverflow.com/questions/20838227/set-cursor-position-in-android-edit-text http://stackoverflow.com/questions/8035107/how-to-set-cursor-position-in-edittext

Relationship between Receivers, Intents, and Activities/Services http://thinkandroid.wordpress.com/2009/12/28/relationship-between-receivers-intents-and- activitiesservices/

UTF-8 UTF-16BE UTF-16LE http://www.360doc.com/content/11/1215/13/2036337_172427020.shtml UTF-16 http://zh.wikipedia.org/wiki/UTF-16

Broadcast Receiver within a Service http://stackoverflow.com/questions/9092134/broadcast-receiver-within-a-service

Android BroadcastReceiver - Tutorial http://www.vogella.com/tutorials/AndroidBroadcastReceiver/article.html

Camera http://developer.android.com/guide/topics/media/camera.html#saving-media

KeyPress & Touch

Detect touch press vs long press vs movement http://stackoverflow.com/questions/4324362/detect-touch-press-vs-long-press-vs-movement

For LongPress as suggested above, GestureDetector is the way to go. Check this Q&A: http://stackoverflow.com/questions/7919865/detecting-a-long-press-with-android/11679788#11679788 Capture Power Key press in android? http://stackoverflow.com/questions/17271430/capture-power-key-press-in-android How to hook into the Power button in Android? http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android Android SDK: Intercepting Physical Key Events http://code.tutsplus.com/tutorials/android-sdk-intercepting-physical-key-events--mobile-10379 http://www.vogella.com/tutorials/AndroidTouch/article.html Exercise: Singletouch Example http://www.vogella.com/tutorials/AndroidTouch/article.html

Timer

Android Timer Example http://examples.javacodegeeks.com/android/core/os/handler/android-timer-example/ How to set a timer in Android http://stackoverflow.com/questions/1877417/how-to-set-a-timer-in-android Android CountDownTimer class : http://developer.android.com/reference/android/os/CountDownTimer.html http://docs.huihoo.com/android/2.1/resources/articles/timed-ui-updates.html Updating the UI from a Timer android : listening to keypress from background http://stackoverflow.com/questions/10428171/android-listening-to-keypress-from-background Intent 的用法列表範例 http://ccckmit.wikidot.com/ga:intentexample http://www.dotblogs.com.tw/hanry/archive/2012/07/05/73239.aspx 專案下載:IntentTest.zip

Override volume button in background service [duplicate] http://stackoverflow.com/questions/21907266/override-volume-button-in-background-service

Is it possible to execute adb commands through my android app? http://stackoverflow.com/questions/13381828/is-it-possible-to-execute-adb-commands-through-my- android-app

ScreenCapture Programmatic screencapture on mobile device http://stackoverflow.com/questions/3582603/programmatic-screencapture-on-mobile-device Capture Current Screen in Android Programming http://www.edumobile.org/android/android-tutorial/capture-current-screen-in-android-programming/ Android Take Screenshot Programmatically and Email http://www.truiton.com/2013/03/android-take-screenshot-programmatically-and-send-email/

Android Create shortcut of Application on Home Page | Create App Shortcut on Home Screen on Android Programmatically http://www.androidhub4you.com/2013/10/android-create-shortcut-of-application.html

Stream Live Android Audio to Server http://stackoverflow.com/questions/15349987/stream-live-android-audio-to-server

BlueTooth

Android – Bluetooth Connection Demo http://www.theappguruz.com/blog/android-bluetooth-connection-demo/ Android Bluetooth Example http://examples.javacodegeeks.com/android/core/bluetooth/bluetoothadapter/android-bluetooth-example/ Android Wi-Fi Tutorial http://www.tutorialspoint.com/android/android_wi_fi.htm Bluetooth Data Transfer with Android http://java.dzone.com/articles/bluetooth-data-transfer Bluetooth Data Transfer Example http://manojprasaddevelopers.blogspot.tw/2012/02/bluetooth-data-transfer-example.html BlueTooth http://bluecove.org/ bluetooth-reading-btrs232-adapter http://stackoverflow.com/questions/5522516/android-bluetooth-reading-btrs232-adapter Device To Device Messaging Using Google Cloud Messaging GCM - Android Example http://androidexample.com/Device_To_Device_Messaging_Using_Google_Cloud_Messaging_GCM_- _Android_Example/index.php?view=article_discription&aid=122&aaid=142 Getting bluetooth devices https://tw.search.yahoo.com/search;_ylt=AiKt2rtpF_hamrHcasxv_7XBBdF_;_ylu=X3oDMTBoZXBvYzBnBHNl YwNVSCBTZWFyY2ggMTAw;_ylg=X3oDMTExaThjMWxmBGxhbmcDemgtSGFudC1UVwRwdANzZWN0aW9uc wR0ZXN0Aw--?p=BluetoothSocketListener&fr=uh3_news_web_gs How to send data via serial communication (port) via Bluetooth? [closed] http://stackoverflow.com/questions/12056756/how-to-send-data-via-serial-communication-port-via- bluetooth Bluetooth Low Energy Serial Port Adapter - Getting Started http://support.connectblue.com/display/PRODBTSPA/Bluetooth+Low+Energy+Serial+Port+Adapter+- +Getting+Started Android getting serial data via bluetooth using UUID http://stackoverflow.com/questions/22987457/android-getting-serial-data-via-bluetooth-using-uuid Testing Bluetooth in Android Emulator http://referenceforu.blogspot.tw/2013/08/testing-bluetooth-in-android-emulator.html how to test bluetooth application on emulators in android http://stackoverflow.com/questions/7103186/how-to-test-bluetooth-application-on-emulators-in- android Android Session Management Using SharedPreferences - Android Example http://androidexample.com/Android_Session_Management_Using_SharedPreferences_- _Android_Example/index.php?view=article_discription&aid=127&aaid=147 手機藍芽 UUID (常用的几个已通过验证) http://www.douban.com/group/topic/20009323/ 掃描附近 WIFI http://fecbob.pixnet.net/blog/post/39322597 [Android] 無線網路和網卡控制 http://fecbob.pixnet.net/blog/post/43634443

User-defined View

AlertDialog application Prompt User Input with an AlertDialog http://www.androidsnippets.com/prompt-user-input-with-an-alertdialog How to make an alert dialog with a spinner [closed] http://stackoverflow.com/questions/16268455/how-to-make-an-alert-dialog-with-a-spinner Dialog box with EditText and Spinner http://stackoverflow.com/questions/3617284/dialog-box-with-edittext-and-spinner How To Add Spinner dynamically on AlertDialog-Box http://uniqueandroidtutorials.blogspot.tw/2013/02/how-to-add-spinner-dynamically-on.html Replacing spinner with drop down alert in android application http://androidtrainningcenter.blogspot.tw/2012/07/how-to-create-custom-and-default-alert.html How to get data from a custom dialog box http://stackoverflow.com/questions/13663878/how-to-get-data-from-a-custom-dialog-box Return data from dialog http://stackoverflow.com/questions/3230656/return-data-from-dialog Android Custom ListView with Images and Text – Example http://www.learn2crack.com/2013/10/android-custom-listview-images-text-example.html Android ListView using a key-value map type structure http://stackoverflow.com/questions/7163799/android-listview-using-a-key-value-map-type-structure- possible Android 元件與範例程式 http://www.itzhai.com/android-and-its-basic-usage-of-the-common-control.html Android 自定 義 View 研究 http://www.cnblogs.com/lovewf/archive/2011/11/24/2261646.html EditText Using Array http://stackoverflow.com/questions/7830058/how-to-reference-an-array-of-edittext-created-in-main-xml http://stackoverflow.com/questions/17594987/edittext-array-of-existing-edittexts-wont-be-declared- right

ArrayAdapter http://fecbob.pixnet.net/blog/post/39326039 Get cell Values from Tablelayout & put it in another activity for update http://stackoverflow.com/questions/20270934/get-cell-values-from-tablelayout-put-it-in-another-activity- for-update 三層連動式下拉選單 http://jim690701.blogspot.tw/2012/11/androidspinner.html Show default value in Spinner in android http://stackoverflow.com/questions/17063611/show-default-value-in-spinner-in-android How to get date from date picker in android? http://stackoverflow.com/questions/15291112/how-to-get-date-from-date-picker-in-android http://www.mkyong.com/android/android-date-picker-example/ 客製化 API http://www.cnblogs.com/lovewf/archive/2011/12/06/2277473.html 動態物件的產生與捕捉 http://dazi2012.blogspot.tw/2013/02/blog-post.html Message Transfer handler_obtainMessage http://www.cnblogs.com/qingblog/archive/2012/07/25/2607754.html http://www.cnblogs.com/android007/archive/2012/05/10/2494766.html http://www.codota.com/android/scenarios/5189169eda0a50ef1db1c39f/android.os.Handler? tag=out_2013_05_05_07_19_34&fullSource=1 清楚了解 android.os 源碼中的 Looper,Handler,Message,MessageQueue http://milochen.wordpress.com/2011/03/25/understanding-android-os-src-looperhandler-message- messagequeue/

Java Code Examples for android.os.Handler http://www.programcreek.com/java-api-examples/index.php?api=android.os.Handler using handler in android thread (have error) http://stackoverflow.com/questions/23583534/using-handler-in-android-thread

Folder & File Read/Write Text File/Data in Android example code http://tausiq.wordpress.com/2012/06/16/readwrite-text-filedata-in-android-example-code/ http://www.learn2crack.com/2014/04/android-read-write-file.html http://stackoverflow.com/questions/5771366/reading-a-simple-text-file http://www.androidinterview.com/android-internal-storage-read-and-write-text-file-example/ Topic: Record audio using webrtc in chrome and speech recognition with websockets http://www.smartjava.org/content/record-audio-using-webrtc-chrome-and-speech-recognition- websockets Copy file example http://stackoverflow.com/questions/9292954/how-to-make-a-copy-of-a-file-in-android How to Retrieve Items on Your Clipboard for Android by Ruri Ranbe, Demand Media http://smallbusiness.chron.com/retrieve-items-clipboard-android-45781.html Detailed http://developer.android.com/guide/topics/text/copy-paste.html Receiving Simple Data from Other Apps http://developer.android.com/training/sharing/receive.html Allowing Other Apps to Start Your Activity http://developer.android.com/training/basics/intents/filters.html Sending Simple Data to Other Apps http://developer.android.com/training/sharing/send.html Receiving Simple Data from Other Apps http://developer.android.com/training/sharing/receive.html Allowing Other Apps to Start Your Activity http://developer.android.com/training/basics/intents/filters.html Interacting with Other Apps http://developer.android.com/training/basics/intents/index.html Sending the User to Another App http://developer.android.com/training/basics/intents/sending.html Getting a Result from an Activity http://developer.android.com/training/basics/intents/result.html android Clipboard example http://www.java2s.com/Code/Android/Core-Class/ClipboardSample.htm Get List of Installed Apps in Android http://javatechig.com/android/how-to-get-list-of-installed-apps-in-android com.example.packagemanager

Open another application from your own (intent) http://stackoverflow.com/questions/2780102/open-another-application-from-your-own-intent How to get a list of installed android applications and pick one to run http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick- one-to-run Reading a file sample program in Android http://www.java-samples.com/showtutorial.php?tutorialid=1522 Android Read Write File Operations – Example http://www.learn2crack.com/2014/04/android-read-write-file.html 关于 Android file.createNewFile() 方法出现的问题总结 http://blog.csdn.net/wjdarwin/article/details/7108606 http://stackoverflow.com/questions/7011991/android-creating-file-uisng-createnewfile-method [ Android ] SD 記憶卡瀏覽 http://fecbob.pixnet.net/blog/post/43634047 Android: How to open a specific folder via Intent and show its content in a file browser? http://developer.android.com/guide/topics/data/data-storage.html SD card http://stackoverflow.com/questions/18866190/define-opendatabase-string-parameter-while-getting-path- from-external-sd-card http://www.4byte.cn/question/41552/android-sqlite-table-insert.html MySQLiteHelper(Context context) { super(context, context.getExternalFilesDir(null).getAbsolutePath() + "/" + DATABASE_NAME, null, DATABASE_VERSION);

} copy database file to sdcard in android http://stackoverflow.com/questions/19093458/copy-database-file-to-sdcard-in-android Use existing Database through sdcard in android http://stackoverflow.com/questions/13207666/use-existing-database-through-sdcard-in-android Share SQLite database between 2 android apps http://stackoverflow.com/questions/7053809/share-sqlite-database-between-2-android-apps

Internet How to connect to a specific wifi network in Android programmatically? http://stackoverflow.com/questions/8818290/how-to-connect-to-a-specific-wifi-network-in-android- programmatically Device To Device Messaging Using Google Cloud Messaging GCM - Android Example http://androidexample.com/Device_To_Device_Messaging_Using_Google_Cloud_Messaging_GCM_- _Android_Example/index.php?view=article_discription&aid=122&aaid=142 Uploading files to HTTP server using POST. Android SDK. On Android Class just paste the code http://wininterview.blogspot.tw/2013/04/uploading-files-to-http-server-using.html https://github.com/StudioIrregular/GooglePlayInAppBilling/blob/master/LibInAppBilling/src/com/studioirr egular/libinappbilling/ServerResponseCode.java Read Text file from internet, using Java code http://android-er.blogspot.tw/2011/04/read-text-file-from-internet-using-java.html Download file from FTP Server http://examples.javacodegeeks.com/core-java/apache/commons/net-commons/download-file-from-ftp- server/ Download a File In Android From Remote Server

Download a File In Android From Remote Server http://wininterview.blogspot.tw/2013/04/download-file-in-android-from-remote.html How to upload .txt file to http server http://stackoverflow.com/questions/5931976/how-to-upload-txt-file-to-http-server Upload Files from Android to a Website/Http Server using Post http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php? view=article_discription&aid=83&aaid=106 In this example uploading an image from sdcard to web server. http://www.codicode.com/art/upload_files_from_android_to_a_w.aspx [Android] 透過 HTTP Request 進行後端資料存取 ( 以 PHP 為例 ) http://jimmy319.blogspot.tw/2011/11/android-http-requestphp.html [Android] 如何發送包含 File data 的 POST Request( 以 Image Upload 為例 ) http://jimmy319.blogspot.tw/2012/01/android-file-datapost-requestimage.html File Upload on PHP Server in Android http://sunil-android.blogspot.tw/2013/09/file-upload-on-php-server-in-android.html upload a text file to Dropbox https://temboo.com/android/upload-to-dropbox Upload audio file http://www.coderzheaven.com/2012/03/29/uploading-audio-video-or-image-files-from-android-to-server/ How to upload .mp3 file to http server? http://stackoverflow.com/questions/4966910/androidhow-to-upload-mp3-file-to-http-server How to Download an image in ANDROID programatically? http://www.coderzheaven.com/2011/07/07/how-to-download-an-image-in-android-programatically/ How to download a file from a remote site in android? – Another simple example – Method -3 http://www.coderzheaven.com/2012/05/07/download-file-remote-site-android-simple-method-3/ FTP File Upload From Sdcard to server http://androidexample.com/FTP_File_Upload_From_Sdcard_to_server/index.php? view=article_discription&aid=98&aaid=120 Upload File To Server - Android Example http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php? view=article_discription&aid=83&aaid=106 How to Send Data From Android to PHP Server? Android Post Request Help http://www.codeofaninja.com/2013/04/android-http-client.html upload using multipart post using httpclient in android http://blog.rafaelsanches.com/2011/01/29/upload-using-multipart-post-using-httpclient-in-android/ Android Network Connection Tutorial http://www.tutorialspoint.com/android/android_network_connection.htm HttpURLConnection http://www.vogella.com/tutorials/AndroidNetworking/article.html Android automatically detect internet connection status http://www.mysamplecode.com/2013/04/android-automatically-detect-internet-connection.html Check Android network connection sample code http://androidadvice.blogspot.tw/2010/09/check-android-network-connection-sample.html Copying an image to another in ANDROID. http://www.coderzheaven.com/2012/04/07/copying-an-image-to-another-in-android/ How do I connect to a URL using Basic authentication? http://www.avajava.com/tutorials/lessons/how-do-i-connect-to-a-url-using-basic-authentication.html How do I use Basic authentication with Tomcat? http://www.avajava.com/tutorials/lessons/how-do-i-use-basic-authentication-with-tomcat.html Demos and Usage of java.net.URLConnection.setRequestProperty(String key,String value) http://www.javadocexamples.com/java/net/URLConnection/setRequestProperty(String%20key,String %20value).html

Map

使用地圖 http://blog.tonycube.com/2013/01/androidmaps-and-positioning2.html http://saleh360.blogspot.tw/2012/12/android-running-google-maps-api-v2_12.html Android | Running Google Maps API v2 Sample in Emulator http://developer.android.com/google/play-services/setup.html#Setup

Phone & SMS

Send multipart mail using java mail http://www.roseindia.net/javamail/SendMultipartMail.shtml

Sending an email in JSP Android Sending Email.doc http://www.roseindia.net/answers/viewqa/JavaMail/30650-java-mail-send-using-setText-.

Send Mail Automatically without Intent Tutorial http://developerandro.blogspot.tw/2013/09/send-mail-automatically-without-intent.html Android Sending Email //透過選取之 mail agent(EX: GMail) 來傳送 http://www.tutorialspoint.com/android/android_sending_email.htm http://stackoverflow.com/questions/2197741/how-can-i-send-emails-from-my-android-application https://code.google.com/p/javamail-android/downloads/detail?name=activation.jar&can=2&q= Sending Emails without User Intervention (no Intents) in Android http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android Android Text-To-Speech Application http://examples.javacodegeeks.com/android/core/text-to-speech/android-text-to-speech-application/

Android Send SMS and Make a phone call in Android Application http://www.java-samples.com/showtutorial.php?tutorialid=1540 Android Make Phone Call Example http://examples.javacodegeeks.com/android/core/telephony/phonestatelistener/android-make-phone- call-example/ Incomming SMS Broadcast Receiver - Android Example http://androidexample.com/Incomming_SMS_Broadcast_Receiver_-_Android_Example/index.php? view=article_discription&aid=62&aaid=87 Incomming Phone Call Broadcast Receiver - Android Example http://androidexample.com/Incomming_Phone_Call_Broadcast_Receiver__-_Android_Example/index.php? view=article_discription&aid=61&aaid=86 Show Phone Contacts In AutoComplete Suggestions - Android Example http://androidexample.com/Show_Phone_Contacts_In_AutoComplete_Suggestions_- _Android_Example/index.php?view=article_discription&aid=106&aaid=128

短信的手機控制程序 http://fecbob.pixnet.net/blog/post/39321821 Android 電話監聽器 http://fecbob.pixnet.net/blog/post/39322833 Android Sending SMS Example http://examples.javacodegeeks.com/android/core/telephony/smsmanager/android-sending-sms-example/

QR Code

Android OCR Sample http://stackoverflow.com/questions/19533273/best-ocr-optical-character-recognition-example-in-android com.google.zxing.BarcodeFormat https://gitorious.org/0xdroid/packages_apps_barcodescanner/sou rce/fd31d17a00db7e80ad519b59950924ba4c62f67b:core/src/com/goog le/zxing/BarcodeFormat.java#L82 Create a Barcode Reader http://code.tutsplus.com/tutorials/android-sdk-create-a-barcode-reader--mobile-17162 OCR https://github.com/smart-mobile- software/ocrapiservice/commit/e23a91dd1a10da9f5c8ceb9b463790f4195fe24f Scan a Barcode or QR code with Google ZXing Barcode Scanner http://androidcookbook.com/Recipe.seam?recipeId=3324 Simple QR Code Generator Example http://crunchify.com/java-simple-qr-code-generator-example/ [Android] 二維條碼 http://fecbob.pixnet.net/blog/post/43631257

SQLite3

Frequently Asked Questions http://www.sqlite.org/faq.html#q1 Android Loading SQLite Data Into TableLayout http://www.tutorialsbuzz.com/2014/01/android-loading-sqlite-data-tablelayout.html Android SQLite DataBase With CursorAdapter . http://www.tutorialsbuzz.com/2013/11/android-sqlite-database-with.html Android Loading SQLite Data Into SpinnerView . http://www.tutorialsbuzz.com/2014/02/android-loading-sqlite-data-spinnerview.html Android - getType(int) is undefined for the type Cursor http://stackoverflow.com/questions/10413327/android-gettypeint-is-undefined-for-the-type-cursor SQLITE DB TOOLS 整理 http://ccleu.blogspot.tw/2013/12/db-sqlite-db-tools.html Using SQLite Database with Android http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android BLOB Field http://stackoverflow.com/questions/7516933/how-to-create-a-table-with-a-column-of-type-blob-in-a- dbadapter Using your own SQLite database in Android applications http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ [Android] 從 Mysql 抓資料,動態新增 TextView 至 TableLayout http://seanstar5317.pixnet.net/blog/post/28092031-%5Bandroid%5D%E5%BE%9Emysql-%E6%8A %93%E8%B3%87%E6%96%99%EF%BC%8C%E5%8B%95%E6%85%8B%E6%96%B0%E5%A2%9Etextview %E8%87%B3tablela http://stackoverflow.com/questions/22922263/how-to-get-data-from-mysql-database-to-android-app Executing a HTTP POST Request with HttpClient http://www.androidsnippets.com/executing-a-http-post-request-with-httpclient Android PHP/MYSQL Tutorial (Good Example) http://www.tutorialspoint.com/android/android_php_mysql.htm InputType http://stackoverflow.com/questions/4645119/how-to-set-only-numeric-value-for-edittext-in-android Datatypes In SQLite Version 3 http://www.sqlite.org/datatype3.html data processing/processing-android https://github.com/processing/processing-android/blob/master/core/src/processing/data/Table.java Opendatabase http://stackoverflow.com/questions/24238396/can-not-open-android-database-using-sqlitedatabase- opendatabase What can be done about the fact that Android automatically deletes corrupt SQLite files? http://stackoverflow.com/questions/7764943/what-can-be-done-about-the-fact-that-android- automatically-deletes-corrupt-sqlit 使用自己的数据库 SQLite database http://wang-peng1.iteye.com/blog/605869 http://www.41post.com/3985/programming/android-loading-files-from-the- assets-and-raw-folders * Copies your database from your local assets-folder to the just created empty database in the system folder, from where it can be accessed and handled. This is done by transfering bytestream. AppServ: Download source http://sourceforge.net/projects/appserv/files/AppServ%20Open%20Project/2.5.10/appserv-win32- 2.5.10.exe/download?use_mirror=nchc&r=https%3A%2F%2Fwww.google.com.tw%2F&use_mirror=nchc http://blog.xuite.net/louis.cheng/blog/44498941-WindowsXP%E6%95%B4%E5%90%88AppServ %E8%88%87Tomcat%E5%BB%BA%E7%AB%8BPHP%E3%80%81Java%E9%96%8B%E7%99%BC %E7%92%B0%E5%A2%83 SQLIteDatabase.query method http://stackoverflow.com/questions/10600670/sqlitedatabase-query-method SQLite Database Manipulation Class - Android Example http://androidexample.com/SQLite_Database_Manipulation_Class_-_Android_Example/index.php? view=article_discription&aid=51&aaid=76