1. 有兩個按鈕的對話方塊Builder builder=new AlertDialog.Builder(AlertDialogActivity.this);builder.setIcon(android.R.drawable.btn_plus);builder.setTitle("btnplus");builder.setMessage("去不去?");builder.setPositiveButton("確定", new
在Eclipse報如下錯誤: The method compare(Object, Object) of type ServiceAddressComparator must override a superclass method 原因:jdk5中,實現介面方法不能用@Override ,只有重寫抽象方法可以用解決:通過設定eclipse的衝突可以解決這個問題。首先修改Eclipse下“Windows” --> Prefereces --> Java
How to download the android kernel由於目前從android網站git後的原始碼中不包括kernel,所以需要單獨下載android kernel,產生使用的補丁,下面是我使用的方法,供大家參考;Here is a way of extracting raw Android patches at a certain point intime, though this may be datedken@ken:/data/android/android-kernel$
1: 開啟網頁: Uri uri = Uri.parse("http://www.baidu.com");Intent intent = new Intent(Intent.ACTION_VIEW,uri);startActivity(intent);2:開啟地圖:Uri uri = Uri.parse("geo:136.46,25.15");Intent intent = new
Android PMEM主要有兩個作用(來自android mail list): 1. GPU or VPU buffers shared with CPU core 2. Android service heap. 其中1是不能cache的,2可以cache,平台裝置註冊中 cached = X即控制是否可以被cache。 =================================================================================
File f = new File("/sdcard/");if(!f.exists()) {f.mkdir();}File myCaptureFile = new File("/sdcard/", "bitmap.png");FileOutputStream fos = null;try {fos = new FileOutputStream(myCaptureFile);} catch (FileNotFoundException e) {// TODO Auto-generated