2016年1月18日 星期一

中英越-水果 Fruit/ trái cây

水果 Fruit   trái cây 

蘋果  apple  tá

香蕉   banana  chui

木瓜  Papaya  đu đủ


芭樂  Guava    trái ổi


荔枝 Litchi   cây vải
龍眼  Longan   nhãn 


===============================================

我喜歡吃水果
I like to eat fruit 
Tôi thích ăn trái cây



你喜歡吃哪種水果?

Which fruit do you like?

Mà trái cây nào mà bn thích?



2014年12月4日 星期四

Android barcode scanner 使用Zxing 連續掃程式碼

/*Here is where we come back after the Barcode Scanner is done*/
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
    if (requestCode == 0) {
        if (resultCode == RESULT_OK) {掃

            // Handle successful scan. In this example add contents to ArrayList
            results.add(contents);

            Intent intent = new Intent("com.google.zxing.client.android.SCAN");
            intent.putExtra("SCAN_FORMATS", "PRODUCT_MODE,CODE_39,CODE_93,CODE_128,DATA_MATRIX,ITF");
            startActivityForResult(intent, 0); // start the next scan
        } else if (resultCode == RESULT_CANCELED) {
            // User hass pressed 'back' instead of scanning. They are done.
            saveToCSV(results);
            //do whatever else you want.
        }
    }
}