Skip to main content

Home/ Groups/ Android Dev
Vincent Tsao

How to do ListView dynamic item growing? - Android Developers | Google Groups - 1 views

  • OnScrollListner there is an example in the API demos. On Tue, Oct 13, 2009 at 2:12 PM, wangxueming <m.wongxm...@gmail.com> wrote: > Now I want to make a  ListView,with 20 items, > Then when it scroll to the end, > I get new data and add to the end of ListView dynamic. > Just Like ListView in Android Market.
  • You can try my EndlessAdapter for that: http://github.com/commonsguy/cwac-endless
Vincent Tsao

Avoiding Memory Leaks | Android Developers - 0 views

  • As part of my job, I ran into memory leaks issues in Android applications and they are most of the time due to the same mistake: keeping a long-lived reference to a Context.
  • There are two easy ways to avoid context-related memory leaks. The most obvious one is to avoid escaping the context outside of its own scope. The example above showed the case of a static reference but inner classes and their implicit reference to the outer class can be equally dangerous. The second solution is to use the Application context. This context will live as long as your application is alive and does not depend on the activities life cycle. If you plan on keeping long-lived objects that need a context, remember the application object. You can obtain it easily by calling Context.getApplicationContext() or Activity.getApplication().
  • In summary, to avoid context-related memory leaks, remember the following: Do not keep long-lived references to a context-activity (a reference to an activity should have the same life cycle as the activity itself) Try using the context-application instead of a context-activity Avoid non-static inner classes in an activity if you don't control their life cycle, use a static inner class and make a weak reference to the activity inside. The solution to this issue is to use a static inner class with a WeakReference to the outer class, as done in ViewRoot and its W inner class for instance A garbage collector is not an insurance against memory leaks
Vincent Tsao

Linux on the iPhone: Android running on iPhone! - 0 views

  •  
    猛人居然在iPhone上跑起了Android
Vincent Tsao

Android Icons - 0 views

Vincent Tsao

关闭程序 - mingkg21 - JavaEye技术网站 - 0 views

  • final ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);  am.restartPackage(getPackageName());  
  • <uses-permission android:name="android.permission.RESTART_PACKAGES"></uses-permission>  
Vincent Tsao

Xtify: Platform Overview - 0 views

  • Xtify is an ASP / Notifications Platform that delivers notifications and messages directly to your mobile users' devices and prompts users to take desired actions - whenever and wherever most appropriate, based on geo-location and geo-history.
Vincent Tsao

Xtify: Xtify SDK - 0 views

  • The Xtify SDK enables developers to activate their mobile audience with location-specific messages. Once incorporated into a mobile application, the SDK communicates directly with the Campaign Manager, extracting location information and receiving and displaying messages triggered by that location.
Vincent Tsao

Solidot | 基于Android的Google平板电脑即将面世 - 0 views

  • wired.com转《纽约时报》消息,Google即将发售自己开发的平板电脑,这款产品是一种“有电脑功能的电子阅读器”。 匿名消息来源称,此产品运行Android系统。Google已与出版商洽谈,以便把书籍和杂志加入此设备。Google平板电脑运行Android而不是传说中的Chrome OS,可能是因为Chrome OS不大会成为一个完整操作系统,而只是提供足够的软体加载浏览器、拜访Google的在线服务。而前者已经足够完备
Vincent Tsao

Issue 1480 - android - Intent android.media.action.IMAGE_CAPTURE returns an image with ... - 0 views

  • On an HTC Hero, this EXTRA_OUTPUT doesn't even work. It doesn't put your picture in the file you specify, but it hands it to you thru a Mediastore uri. Apparently, the only way to get a full size picture is to do all camera handling in your app instead of using the IMAGE_CAPTURE intent.
  • I think Google have missed a trick on this one. They have defined standard intents for media capture, but not specified standard responses (ie. the "data" parameter in the onActivityResult Activity callback method). Other Android vendors (e.g. HTC Hero) have created their own Camera applications that handle the standard IMAGE_CAPTURE intent, but return different data & have different ways to save/return the image information. All I want is to be able to fire a IMAGE_CAPTURE intent from my own app, and get back a Uri reference to the captured image. Simple. I have no requirement to further manipulate the image .. I just need the Uri to store in my app's database for future reference.
Vincent Tsao

android:layout_gravity android:gravity的区别 - China Android Dev | Google Groups - 0 views

  • 我看到一个最简洁的回复是(让我一直记得,哈哈): layout_gravity是本元素相对于父元素中的位置 gravity是本元素中内容相对自己的位置
Vincent Tsao

Android应用加速增长:3月份新增9000+ - 读写网唯一官方中文站 - 搜狐IT独立群体博客 - 0 views

  • 来自AndroidLib.com的最新统计数 据显示,2010年3月,Android应用市场里的应用增加了9331个。通过历史对比,这些数字更加惊人。比如,去年12月,新增 Android应用为3807个,到1月份为止,新增应用为4458个,2月新增5532个。3月新增9331个。如果Android保持这种增长趋势, 其应用数量很有可能在今天达到5位数,从而对苹果形成有力竞争
« First ‹ Previous 341 - 360 of 497 Next › Last »
Showing 20 items per page