Skip to main content

Home/ Groups/ Android Dev
Vincent Tsao

既然我们有了china-android-dev,为什么还要创建这个Group? - 29 views

欢迎来自China Android Dev中的新成员,为了更好的使用Diigo Group和Diigo,建议安装 Diigo为大家提供的toolbar(FireFox, Chrome, IE等各个browser都有相应工具支持),方便收集网页资料,并摘取这些网页资料中的精华部分 ref: http://www.diigo.com/tools/toolbar

tips

Vincent Tsao

Drawable to Bitmap By Hong - 8 views

啊~~~,一直没有留意App Buddy是良子大哥做的啊,哈哈,5星了, "Luke Shan"一下没让我联想起"良子"来 Orz

Drawable Bitmap

Vincent Tsao

[Android研究手记3]组件间的交互和进程间IPC通信 « hkbarton - Undefined Life - 2 views

  • 基于Unix(Linux)的系统都有一个很优秀的传统,就是倡导非常轻便的进程间通信(IPC)机制;倡导进程通过IPC来互相协作;倡导功能单一,小巧而强壮的进程,而不是又大又复杂的“万金油”
  • Android的组件和进程间通信都建立在一种基于称为Intent的消息基础之上。Intent就是一种消息,它包含了两个重要的内容:1. 消息的目的,即这个消息是发给哪个组件的?(消息的目的中不会包含“消息是发给哪个进程”这样的信息,这里Android有意淡化进程的概念,而只让我们关心组件,因为了解太多关于进程的具体信息会加大复杂度,而又如何做到进程间的消息传递呢?下文会说到一种Android中关于这点比较特别的设计方式,我认为是一种简捷有用又符合手机特点的设计);2. 消息所携带的数据内容,即需要传递给目标的数据。下面是一个简单的利用Intent来启动一个Service并向其传递数据的代码示例
  • 这种模式的消息由于已经确切知道了消息目标的确切信息,所以只适用于同一进程内的不同组件之间通信,例如打开一个子窗体,和同一进程中的service通信等。对应的,隐式消息就一般用于跨进程的通信了,隐式消息没有确定的消息目的地,除了数据外,隐式消息只是包含了一些用于表征消息特征的描述字段
  • ...1 more annotation...
  • 隐式消息这个设计简单有效,它忽略了进程的细节,让IPC在一个更高的更接近人脑思维模式的层次工作,让系统中的不同进程协作看起来就像是同一程序中的协作一样,这种简单的IPC机制在很大的程度上鼓励我们和其他进程协作,通过协作的进程来完成一个复杂的任务,而不是把什么功能都做到一个大而全的程序里面
Vincent Tsao

创新源于模仿之三:实现左右两个屏幕的切换 - SHARE & TOP - CSDN博客 - 2 views

  •  
    China Android Dev群里兄弟分享的link
Vincent Tsao

YouTube - Diigo Intro - 2 views

shared by Vincent Tsao on 24 Mar 10 - Cached
Vincent Tsao liked it
  •  
  •  
    A funny guy introduce how to use diigo
Vincent Tsao

kaeppler/droid-fu - GitHub - 6 views

  • Droid-Fu offers both support classes meant to be used alongside existing Android code, as well as self-contained, ready-to-be-used components like new adapters and widgets. The areas tackled by Droid-Fu include: application life-cycle helpers support classes for handling Intents and diagnostics better support for background tasks super-easy and robust HTTP messaging powerful caching of Objects, HTTP responses, and remote images custom adapters and views I suggest you read this introductory article, and anything that follows.
  •  
    大哥你有覺得這個比AsyncTask好用嗎?
  • ...2 more comments...
  •  
    BetterAsyncTask本质就是AsyncTask,我想在用法上应该没有太大区别 但AsyncTask有个硬伤就是它的life-cycle对当前的activity的life-cycle有依赖,容易引起FC,而BetterAsyncTask解决了这个问题,Ref: http://groups.diigo.com/group/android_related/content/introducing-droid-fu-for-android-betteractivity-betterservice-and-betterasynctask-brain-flush-2838716 当然还有其他解决办法,我自己偏向于 IntentService + Broadcast mechanism的解决方案
  •  
    難怪你會搜尋到我布落格 呵呵
  •  
    哈哈,其实是我几个月前看了你的blog后,才有了更多的认识的
  •  
    在我最近的案子裡 幾乎很少機會用到IntentService。 我目前唯一用到的是AsyncTask, 而且那還是我硬用,才有機會用到它。
Vincent Tsao

[Tip][Google I/O 2011]Apply A/B testing to your Android App - 5 views

private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0; public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); if(isA){ setConte...

android tip

started by Vincent Tsao on 12 May 11 no follow-up yet
Simon Pan

Tech Droid: Android WebView, Javascript and CSS - 5 views

  • Calling a Javascript method from your Java code: webView.loadUrl("javascript:jsToggle()"); Calling a Java method from Javascript: window.jsinterface.nativeToggle(); /*   // Before using the above code, you have to inject the interface object which   // has a name "jsinterface"   webView.addJavascriptInterface(jsInterface, "jsinterface"); */
    • Vincent Tsao
       
      useful tips
    • Simon Pan
       
      Is it use to auto-fill the form on WebView?
    • Vincent Tsao
       
      JSInterface lets you bind Java objects into the WebView so they can be controlled from the web pages JavaScript, which means we can do anything to the content from webview via javascript interface, like what we can do with the html DOM content with javascrpit
    • Simon Pan
       
      So, Can I retain username and password by this manner?
    • Vincent Tsao
       
      i think so, you can fill form field with jsinterface
    • Simon Pan
       
      thank you...go on together
Vincent Tsao

Exploring the world of Android :: Part 2 « JTeam Blog / JTeam: Enterprise Jav... - 1 views

  • But in practice, you will notice that the AsyncTask is limited to 10 threads. This number is hardcoded somewhere in the Android SDK so we cannot change this. In this case it’s a limitation we cannot live with, because often more than 10 images are loaded at the same time.
    • Vincent Tsao
       
      使用AsyncTask类开辟的线程还有数量限制?必须小于10,这个倒是以前没有注意到的,要看看源代码怎么实现的
  • I’ve shown you how to improve performance of a ListView in three different ways: By loading images in a seperate thread By reusing rows in the list By caching views within a row
  • ...1 more annotation...
  • Notice that I used a SoftReference for caching images, to allow the garbage collector to clean the images from the cache when needed. How it works: Call loadDrawable(imageUrl, imageCallback) providing an anonymous implementation of the ImageCallback interface If the image doesn’t exist in the cache yet, the image is downloaded in a separate thread and the ImageCallback is called as soon as the download is complete. If the image DOES exist in the cache, it is immediately returned and the ImageCallback is never called.
  •  
    这个帖子完美解决了Image lazy load的性能问题, it works~
Vincent Tsao

Working with the Android Calendar - Developer.com - 1 views

  •  
    shared by Yan Wang@china-android-dev
Vincent Tsao

Android Bitmap内存限制 | 7dot9's Laputa - 1 views

  •  
    我跟你說,這個問題很棘手,我在做動畫時就遇到這個問題 現在因為別轉移專案,所以沒時間去想要怎麼解決
Vincent Tsao

cyrilmottier/GreenDroid - GitHub - 0 views

  • GreenDroid is a development library for the Android platform. It is intented to make UI developments easier and consistent through your applications
Vincent Tsao

[Disccuss] lasy load of images in ListView - 2 views

ah~ ,看来Diigo groups展示代码的样式得改进了.....

android "lazy load" listview tech

Vincent Tsao

Android程序在手机上的保留时间比iPhone程序更长 | iFanr 爱范儿 ♂专注于拇指设备的小众讨论 - 0 views

  • 最近,专门调查分析智能手机程序使用情况的Flurry.com公布了一幅有意思程序保留时间对比图。Android程序安装3个月后的保留比例和iPhone在30天后的比例相当
  • 可能的原因?Flurry的看法是: iPhone的软件选择更多 Android用户平均年龄更大,玩机热情不如以往 Android用户更宽容,更善于利用现有程序
    • Vincent Tsao
       
      我的解释是:1. 有价值的可供选择的android app确实不多 2. Android app偏向于实用,Iphone app酷的比较多
Vincent Tsao

一个发布应用需要注意的地方 - China Android Dev | Google Groups - 0 views

  • 我今天说的,无关于功能,也无关于布局,而在于资源命名。 我是这样发现问题的,我的应用《千字文》发布两天内获得了大概600个安装,但是有三个用户说他们无法安装,错误是“安装包没有正确的签名”。用户们的 共同点是他们都是1.5的固件。怎么会出现这样的事情呢?我在发布之前使用我的1.6固件的G2进行测试的,没有在1.5固件上测试过,这是因为我在开 发时功能和布局都是以1.5固件为基准做的,我很有信心不会在1.5上出现异常。于是我尝试在1.5固件的虚拟机上安装我的apk文件,果然遇到了用户 提到的错误。我检查了AndroidManifest.xml文件,miniSDK是3,也没有1.5不支持的配置选项,没问题的。于是Google 之,发现了解决方案。 原来1.5和它之前的固件都有bug,就是对资源文件(asset或者res目录下的文件)的命名解析的不好,具体的错误我也没有仔细看,大概的意思就 是,资源文件的名字和数量的组合和排列有可能会造成某些资源文件无法被解析。我们无法得知哪些名字是无法解析的,也不知道哪些资源文件数量是恰好不能解 析的。我们可以做的,就是在打包之后,发布之前,自己在1.5固件(或之前的固件)上进行安装测试。通过了就好,通不过就尝试改几个资源文件的名字,或 者增加一个或几个dummy文件,再打包,直到测试安装成功。 我的应用就是在我改了一个资源文件的名字之后通过了1.5的安装测试。 希望我说的明白。重点:发布之前,务必在1.5固件上进行测试安装。
    • Vincent Tsao
       
      良子大哥关于平台兼容性的宝贵经验
Vincent Tsao

Android Interaction Patterns | - 3 views

  • This is androidpatterns.com, a set of interaction patterns that can help you design Android apps. An interaction pattern is a short hand summary of a design solution that has proven to work more than once. Please be inspired: use them as a guide, not as a law.
    • Simon Pan
       
      请问这个网站在介绍介面而已吗?
    • Vincent Tsao
       
      应该是,只介绍UI, UE而已
Vincent Tsao

XOOM 各方体验汇总 | 爱范儿: 拇指资讯小众讨论 - 3 views

  • 虽然 BGR 认为 XOOM 还是无法替代笔记本电脑,但是强大的硬件、令人印象深刻的规格配备以及专门为平板准备的系统,让 XOOM 仍不失为一款非常棒的产品。即便不够创新,与 iPad 相比在易用性、直观性以及软件选择上也没有做得更好,也一定会赢得很多消费者的青睐
    • Vincent Tsao
       
      价格太贵了 $799
  • 电力表现不俗,标称 18-20 小时,TC 的编辑经过十小时的正常使用(音乐、读书、浏览网页)以后,还能剩余 67% 的电量,对于普通用户来说,应该是绰绰有余了
  • 总体来说,从硬件上 XOOM 超越了 iPad,在工业设计和美学方面和 iPad 也是同一档次,只是已经非常出色的 Honeycomb 系统在易用性上还无法跟 iOS 相比。除此之外,XOOM 无疑是当今市场最好的平板电脑
  • ...1 more annotation...
  • XOOM 硬件和软件都相当不错,但是许多细节上的缺憾让人觉得它是仓促上阵。Android Market 里没什么平板的程序,Honeycomb 系统像是半成品,硬件上也同样不完美。但是 XOOM 仍然称得上是 iPad 真正的竞争对手,它有很多方面比 iPad 更好。不过在 Google 明晰自己的平板路线图之前,消费者可以先持币观望。Engadget 总结陈词说,XOOM 和 Honeycomb 都非常令人瞩目,只是尚未完工
  •  
    今天拿到XOOM了,感觉挺失望的,无论是硬件的工业设计还是HoneyComb的体验,与ipad第一代比起来,用一句话概括是,一倍的价钱买了一半的体验!
  •  
    是你买的还是公司买的啊
  •  
    公司买的,看看3月22日,三星能否给我们一点惊喜
Vincent Tsao

How to Manually Update Nexus One to Android 2.3.3 Gingerbread - 3 views

  •  
    It's really a good share that I could update Nexus One of my comany.
  •  
    刷到2.3了么?我升级后,没什么惊喜
  •  
    我也是沒什麼驚喜。把它想成有更多API可以用了吧
1 - 20 Next › Last »
Showing 20 items per page