nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Card.addImage doesn't work with assets #323

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm trying to create a Card with a background image loaded from an asset, I'm 
using the addImage(Uri) method and calling it like this:

Card card = new Card(this);
card.addImage(Uri.parse("file:///android_asset/background.png"));

Result:
The image is not loaded correctly

Original issue reported on code.google.com by zumy.to...@gmail.com on 25 Dec 2013 at 2:01

GoogleCodeExporter commented 8 years ago
You should be able to simply pass the resource ID:
  https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/app/Card#addImage(int)

Original comment by ala...@google.com on 6 Jan 2014 at 5:33

GoogleCodeExporter commented 8 years ago
Closing this issue as "obsolete", please re-open if this is still relevant.

Original comment by ala...@google.com on 3 Feb 2014 at 11:58