A Uri object can be used to reference a resource in an APK file. The Uri should be one of the following formats:
android.resource://package_name/id_number
package_name
com.example.myapp
id_number
Uri uri = Uri.parse("android.resource://com.example.myapp/" + R.raw.my_resource");
android.resource://package_name/type/name
type
raw
drawable
name
Uri uri = Uri.parse("android.resource://com.example.myapp/raw/my_resource");
posted on 2010-11-21 13:56 小一敗涂地 閱讀(3084) 評論(0) 編輯 收藏 所屬分類: android+移動開發
Powered by: BlogJava Copyright © 小一敗涂地