I'm writing a GDK app that listens for the camera to take a photo and upload it to service. It looks like I'm only getting returned the file path for the image rather then the bitmap data. Saving the file to the file system is taking about 5 seconds (down from 10 seconds with the new XE11). But the intent resolves much faster. Can I get access to the bitmap data before it is saved to the file system?
if ((android.os.Build.PRODUCT).equals("google_sdk")) {
// Emulator
mImageBitmap = (Bitmap) extras.get("data");
}
else if ((android.os.Build.PRODUCT).equals("glass_1")) {
// Glass
String filePath = (String) extras.get("picture_file_path");
File imageFile = new File(filePath);
// Pull bitmap from image file
mImageBitmap = ...;
}
// Do stuff with bitmap