Skip to main content
/
Android Dev
/
Contents contributed and discussions participated by Vincent Tsao
Contents contributed and discussions participated by
Vincent Tsao
Simple
Middle
Filter:
All
|
Bookmarks
|
Topics
[Help] 大伙有没有于Android原型设计的工具可供分享
- 0 views
android
tool
started by
Vincent Tsao
on 17 Apr 12
no follow-up yet
#1
Vincent Tsao
on 17 Apr 12
RT
...
Cancel
[Tip][Google I/O 2011]Apply A/B testing to your Android App
- 5 views
android
tip
started by
Vincent Tsao
on 12 May 11
no follow-up yet
#1
Vincent Tsao
on 12 May 11
private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0;
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
if(isA){
setContentView(R.layout.mainA);
MyApp.getInstance().tracker().trackPageView("/AUser");
}else{
setContentView(R.layout.mainB);
MyApp.getInstance().tracker().trackPageView("/BUser");
}
...
}
...
Cancel
[Take a Break] 悬崖搭帐篷
- 2 views
fun
started by
Vincent Tsao
on 17 Feb 11
no follow-up yet
#1
Vincent Tsao
on 17 Feb 11
...
Cancel
既然我们有了china-android-dev,为什么还要创建这个Group?
- 29 views
tips
started by
Vincent Tsao
on 23 Mar 10
1
follow-up, last by Vincent Tsao on 10 Nov 10
Vincent Tsao
and
Yan Wang
liked it
#2
Vincent Tsao
on 29 Jul 10
欢迎新成员,享受一起分享的快乐~
...
Cancel
#3
Vincent Tsao
on 10 Nov 10
欢迎来自China Android Dev中的新成员,为了更好的使用Diigo Group和Diigo,建议安装 Diigo为大家提供的toolbar(FireFox, Chrome, IE等各个browser都有相应工具支持),方便收集网页资料,并摘取这些网页资料中的精华部分
ref:
http://www.diigo.com/tools/toolbar
...
Cancel
Set Screen Orientation Manully
- 0 views
android
orientation
tip
started by
Vincent Tsao
on 04 Nov 10
no follow-up yet
#1
Vincent Tsao
on 04 Nov 10
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
...
Cancel
Drawable to Bitmap By Hong
- 8 views
Drawable
Bitmap
started by
Luke Shan
on 27 Mar 10
no follow-up yet
#4
Vincent Tsao
on 29 Mar 10
啊~~~,一直没有留意App Buddy是良子大哥做的啊,哈哈,5星了, "Luke Shan"一下没让我联想起"良子"来 Orz
...
Cancel
[Tips Today] Diigo Group与Google Group的配合使用
- 5 views
tips
Diigo Group
Google Group
started by
Vincent Tsao
on 27 Mar 10
no follow-up yet
Vincent Tsao
liked it
[Disccuss] lasy load of images in ListView
- 2 views
android
"lazy
load"
listview
tech
started by
Vincent Tsao
on 23 Mar 10
1
follow-up, last by Vincent Tsao on 23 Mar 10
#1
Vincent Tsao
on 23 Mar 10
altchen share了一个解决方案:
http://groups.diigo.com/group/android_related/content/android-how-do-i-do-a-lazy-load-of-images-in-listview-stack-overflow-1423027
另外我在 Android developer邮件列表中看到了另外一个解决方案,看起来也大同小异了,代码如下:
public class imageloader implements Runnable{
private String ss;
//private View v;
//private View v2;
private ImageView im;
public imageloader(String s, ImageView im) {
this.ss=s;
//this.v2=v2;
this.im=im;
Thread thread = new Thread(this);
thread.start();
}
public void run(){
try {
// URL url = new URL(ss);
// URLConnection conn = url.openConnection();
// conn.connect();
HttpGet httpRequest = null;
httpRequest = new HttpGet(ss);
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = (HttpResponse)
httpclient.execute(httpRequest);
HttpEntity entity = response.getEntity();
BufferedHttpEntity bufHttpEntity = new
BufferedHttpEntity(entity);
InputStream is = bufHttpEntity.getContent();
// BufferedInputStream bis = new
BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(is);
Log.d("img","img");
// bis.close();
is.close();
im.setImageBitmap(bm);
// im.forceLayout();
// v2.postInvalidate();
// v2.requestLayout();
} catch (Exception t) {
Log.e("bitmap url", "Exception in updateStatus()", t);
//goBlooey(t);
// throw new RuntimeException(t);
...
Cancel
#2
Vincent Tsao
on 23 Mar 10
ah~ ,看来Diigo groups展示代码的样式得改进了.....
...
Cancel
欢迎加入Android Group
- 2 views
welcome
started by
Vincent Tsao
on 23 Mar 10
no follow-up yet
#1
Vincent Tsao
on 23 Mar 10
看见好的网页,不妨收藏为bookmark分享出来,"Collaborate Research"这就是这个group存在的目的,也算是作为China-android-dev讨论组的一个补充
...
Cancel
1
-
9
of
9
Showing
20
▼
items per page
20
50
100
Vincent Tsao