20100902
■Galleryアプリの特定のフォルダへのアクセス 
以下のコードでアクセス可能。ただし1.6のgoogle製ギャラリーアプリのみ。
Uri targetUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; String folderPath = Environment.getExternalStorageDirectory().toString() + "/" + "FOLDERNAME"; int folderBucketId = folderPath.toLowerCase().hashCode(); targetUri = targetUri.buildUpon().appendQueryParameter("bucketId", String.valueOf(folderBucketId)).build(); Intent intent = new Intent(Intent.ACTION_VIEW, targetUri); startActivity(intent);
他のものについてざっと検証して見たらこのような感じでした。
| 機種 | SDK Ver | ギャラリーアプリ | 検証結果 |
|---|---|---|---|
| NexusOne | 2.2 | coolires製アプリ | 指定したフォルダとは別のフォルダへアクセス |
| HTC Evo | 2.2 | HTC製アプリ | 異常終了 |
| Motorola Milestone | 2.1-update1 | Motorola製アプリ | 全画像一覧表示へアクセス |
コメントを書く
トラックバック - http://d.hatena.ne.jp/Superdry/20100902/1283454812
リンク元
- 10 http://www.google.co.jp/search?q=android+解像度&rls=com.microsoft:ja:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7&rlz=1I7ADBF_ja&redir_esc=&ei=jP1_TPyTLYe6vQOvz8SHBA
- 7 http://www.google.co.jp/search?hl=ja&lr=lang_ja&tbs=lr:lang_1ja&q=android+homeキー+イベント&aq=1&aqi=g3&aql=&oq=android+homeキー+&gs_rfai=
- 6 http://www.google.co.jp/search?hl=ja&source=hp&q=android+解像度&aq=0r&aqi=g-r10&aql=&oq=android+かいぞ&gs_rfai=
- 6 http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GGLT_jaJP373JP373&q=android+解像度
- 4 http://d.hatena.ne.jp/androidzaurus/20090121/1232519066
- 4 http://www.google.co.jp/search?hl=ja&q=android+解像度 &aq=f&aqi=g7&aql=&oq=&gs_rfai=
- 4 http://www.google.co.jp/search?q=Android 解像度&hl=ja&sa=G
- 3 http://d.hatena.ne.jp/isher/20090613/1244932235
- 3 http://www.google.co.jp/search?hl=ja&source=hp&q=アンドロイド+解像度&aq=0r&aqi=g-r1&aql=&oq=アンドロイド+kaizoudo&gs_rfai=
- 3 http://www.google.co.jp/search?q=アンドロイド 解像度&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:ja:official&hl=ja&client=firefox-a
