Skip to main content

Home/ Android Dev/ Contents contributed and discussions participated by Vincent Tsao

Contents contributed and discussions participated by Vincent Tsao

Vincent Tsao

What is OSGi (Open Service Gateway Initiative)? - Definition from WhatIs.com - 0 views

  • OSGi (Open Service Gateway Initiative) is Java framework for developing and deploying modular software programs and libraries
Vincent Tsao

android-query - Simpler Coding for Android - Google Project Hosting - 0 views

  • Android-Query (AQuery) is a light-weight library for doing asynchronous tasks and manipulating UI elements in Android. Our goal is to make Android coding simpler, easier, and more fun!
  •  
    像JQuery一样的语法来操作Android UI elements
Vincent Tsao

Android 实用工具Hierarchy Viewer实战_腾讯·大楚网 - 2 views

  •  
    实用工具介绍,以前自己偷懒了
Vincent Tsao

ActionBarSherlock - Home - 3 views

  •  
    ICS-centric design 的开源Library
  •  
    Google Android在Design方面一直是一个赶超者,直到ICS才多少得到些尊重。这才名正言顺的出了一系列"范式"。 在此之前,都是依赖开源社区的"试探性"的尝试,这些尝试"是否能用"尚且还是个未知数,就更别说"是否好用"了。 终于Android开始要'统一江湖'了,积极的第三方开发者也开始认可'统一'的方向,这是件好事. ICS的设计很优雅,更重要的是官方多次突出强调与iOS的区别,这让我很有归属感 :)
Vincent Tsao

OrmLite - Lightweight Object Relational Mapping (ORM) Java Package - 0 views

shared by Vincent Tsao on 20 Sep 11 - No Cached
  •  
    shared by Tank
Vincent Tsao

androidpn - Xpress Push Notification for Android - Google Project Hosting - 1 views

  • An open source project to provide push notification support for Android -- a xmpp based notification server and a client tool kit. This project is currently being hosted at http://sourceforge.net/projects/androidpn/.
Vincent Tsao

ysl 的程式天堂 - Android 應用開發‧研究‧與諮詢: 深入研究 IntentService 原始碼 - 1 views

  • 如果你呼叫 startService() 多次,每一次的呼叫都會被轉成一個 message,並放在 mServiceLooper 的 message queue 中,等待被服務。一個 message 所對應的工作被完成後,才會繼續服務下一個工作。所以,這些等待被服務的工作,並不是一起並行 (Concurrent) 的,而是循序執行。
  • 從研究這個 IntentService 的原始碼,我們可以學到如何運用簡單的 pattern (Service + Handler + HandlerThread),幫我們更簡易與有系統地,完成我們所想要做的事
  • 最後我們先前說過,在 IntentServcie 中等待被服務的工作,並不會被一起並行,而是循序執行。如果你今天想要這些等待被服務的工作,能夠一起被並行,在研讀完這個 IntentService 的原始碼後,你自己知不知道如何寫個可支援並行工作的 IntentService? 提示:可以用 Service + AsyncTask 的組合
Vincent Tsao

android-writing-zippy-android-apps.pdf - 1 views

  •  
    Funny facts: "zippy" 音译成四川话就是"驰皮",也就是"拉风"的意思 
Vincent Tsao

避免Android开发中的ANR | Log4think - 0 views

  • AsyncTask要点 1、必须从主线程调用,或者线程中有Handler或Looper。 2、不要在一个可能会被另外一个AsyncTask调用的库里面使用AsyncTask(AsyncTask是不可重入的) 3、如果从一个activity中调用,activity进程可能会在AsyncTask结束前退出,例如: 用户退出了activity 系统内存不足 系统暂存了activity的状态留待后用 系统干掉了你的线程 如果AsyncTask中的工作很重要,应该使用……
  • IntentService 的好处 Acitivity的进程,当处理Intent的时候,会产生一个对应的Service Android的进程处理器现在会尽可能的不kill掉你 非常容易使用
  • 总结 离开主线程! 磁盘和网络操作不是马上就能完的 了解sqlite在干嘛 进度展示很好
Vincent Tsao

Introducing Droid-Fu for Android: BetterActivity, BetterService and BetterAsy... - 2 views

  • So the basic idea is: launch an AsyncTask making your service call, show a nifty progress dialog while the task thread is running, and have the task’s result be posted back to your activity once it completes. Cool, but what if the user decides to rotate the screen while your task is running? Or a phone call comes in, interrupting your app, and Android decides to kill it? Both these actions will effectively terminateyour activity, and recreate it when resuming (yes, a screen rotation kills your activity, very clever, isn’t it?). Unfortunately, any AsyncTask that was still running now holds a stale reference to your activity, because the restarted activity will be an entirely different object in memory (and it will go through onCreate(), as if the activity had started for the first time). I’m not entirely sure whether AsyncTask will actually post back the data to the old activity object (if it was a weak reference, it may already have been garbage collected), but in any case, your “new” activity will never see it, because it’s a different instance.
    • Vincent Tsao
       
      This situation always raise a FC bug, an alternative solution is IntentService + broadcast 
1 - 20 of 441 Next › Last »
Showing 20 items per page