wearscript / wearscript-android

JavaScript with Batteries Included for Google Glass
wearscript.com
215 stars 55 forks source link

Add support for images in (new WS.Cards()).add() #175

Open bwhite opened 10 years ago

bwhite commented 10 years ago

Optional arguments after body, footer, could be base64 image data or image urls. They'd need to be downloaded into a temp dir and then given to the gdk card with addImage. See https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/app/Card#addImage(android.net.Uri) and http://stackoverflow.com/questions/20250178/setting-google-glass-card-image-with-file-uri-fails/20255570#20255570