In android sdk document, it's mentioned that all components(Activity, Service, etc) run on the main thread. The main thread is the thread where our code works on.Conventionally, when talk about a Service, we think it this way: void service() {
Property system is an important feature on android. It runs as a service and manages system configurations and status. All these configurations and status are properties. A property is a key/value pair, both of which are of string type.From the
In this post, I'll show some basic operations in android with a simple video player. The demo shows how to:Use explicit intentList video files with ListView, ContentProvider & MediaProviderRetrieve data from another Activity with
In this post, I tried to play small audio data chunks with AudioTrack to show the feasibility of streaming audio. It's not straightforward enough. So I updated the sample code to actually transfer audio data with udp.As the image below shows, the
今天突然發現ANDROID模擬器啟動失敗,log顯示如下錯誤資訊:ERROR: the user data image is used by another emulator. aborting問題原因:avd的加鎖機制使然。 .lock是加鎖,如果程式崩潰等原因導致無法清除這些以.lock結尾的檔案夾,就會出現這個問題,也就是這個avd的鎖沒有被釋放,導致avd manager以為這個avd正在使用當中。解決辦法:刪除C:\Documents and