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

[Help] 大伙有没有于Android原型设计的工具可供分享 - 0 views

android tool
started by Vincent Tsao on 17 Apr 12 no follow-up yet
Vincent Tsao

[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
  • Vincent Tsao
     
    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");
    }

    ...
    }
Vincent Tsao

[Take a Break] 悬崖搭帐篷 - 2 views

fun
started by Vincent Tsao on 17 Feb 11 no follow-up yet
Vincent Tsao

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

tips
  • Vincent Tsao
     
    欢迎新成员,享受一起分享的快乐~
  • Vincent Tsao
     
    欢迎来自China Android Dev中的新成员,为了更好的使用Diigo Group和Diigo,建议安装 Diigo为大家提供的toolbar(FireFox, Chrome, IE等各个browser都有相应工具支持),方便收集网页资料,并摘取这些网页资料中的精华部分

    ref: http://www.diigo.com/tools/toolbar
Vincent Tsao

Set Screen Orientation Manully - 0 views

android orientation tip
started by Vincent Tsao on 04 Nov 10 no follow-up yet
  • Vincent Tsao
     
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
Luke Shan

Drawable to Bitmap By Hong - 8 views

Drawable Bitmap
started by Luke Shan on 27 Mar 10 no follow-up yet
  • Vincent Tsao
     
    啊~~~,一直没有留意App Buddy是良子大哥做的啊,哈哈,5星了, "Luke Shan"一下没让我联想起"良子"来 Orz
Vincent Tsao

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

android "lazy load" listview tech
  • Vincent Tsao
     
    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);
  • Vincent Tsao
     
    ah~ ,看来Diigo groups展示代码的样式得改进了.....
Vincent Tsao

欢迎加入Android Group - 2 views

welcome
started by Vincent Tsao on 23 Mar 10 no follow-up yet
  • Vincent Tsao
     
    看见好的网页,不妨收藏为bookmark分享出来,"Collaborate Research"这就是这个group存在的目的,也算是作为China-android-dev讨论组的一个补充
1 - 9 of 9
Showing 20 items per page