Hi every one, i am developing media application for android automotive os, for this i just go through sample uamp application especially automotive part. In common package i found you are converting Http url image link to content url. it is working fine and images are showing in automotive os if i am using your images for example this image link after converting it to content url it looks like this content://com.example.android.uamp/uamp%3AThe_Kyoto_Connection_-_Wake_Up%3Aart.jpg, but what if i have this image link and want to convert it into content url then what should i do to make it work? i am using itunes open api for above image. Below is my code for converting http url to content url but this one is not working can you please guide me how i can show online server images in automotive os as metadata of browsable and playable listing?
public static Uri mapUri(Uri uri) {
String path = uri.getEncodedPath().substring(1).replace('/', ':');
return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT)
.authority("my-package")
.path(path)
.build();
}
Note: If i put http url link in your sample app instead of content then it doesn't work in automotive os.
Hi every one, i am developing media application for android automotive os, for this i just go through sample uamp application especially automotive part. In common package i found you are converting Http url image link to content url. it is working fine and images are showing in automotive os if i am using your images for example this image link after converting it to content url it looks like this
content://com.example.android.uamp/uamp%3AThe_Kyoto_Connection_-_Wake_Up%3Aart.jpg
, but what if i have this image link and want to convert it into content url then what should i do to make it work? i am using itunes open api for above image. Below is my code for converting http url to content url but this one is not working can you please guide me how i can show online server images in automotive os as metadata of browsable and playable listing?Note: If i put http url link in your sample app instead of content then it doesn't work in automotive os.