Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed suggestion about a mixed "Uri / int id" images ambient
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COok, as nobody reply, I decided to go forward, and take the approach everything-is-an-uri. So now instead of managing ints inside the product class I deal with Uri However,I'm having problems when doing something like this (sample code): Uri uri=Uri.parse("android.resource://my.package.name/"+R.drawable.image); imgView.setImageURI(uri); The image just display blank... and on the logcat I can see 02-22 17:00:19.352: INFO/System.out(1717): resolveUri failed on bad bitmap uri: android.resource://my.package.here/2130837520 any idea on what I'm doing wrong? thank you
      singulars
    2. COYou seem to be on the right direction and would have expected the code to work. You could also try the format uri=Uri.parse("android.resource://my.package.name/drawable/image"); If you get stuck, see if the Resources class might be able to help you http://developer.android.com/reference/android/content/res/Resources.html
      singulars
    3. COThe uri=Uri.parse("android.resource://my.package.name/drawable/image"); produce the same behaviour... Looking at the Resource class, I can't find anything useful for my purpose... I'm frustrated, these are things that must WORK, a developer shouldn't lose 2 day to solve this kind of problems, DAMN!!! the documentation on this topic is embarassing...(pretty much nothing)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload