Goal: The user should be able to take a picture with the devices camera and upload it to Instagram.
Solution
I am using Ti.Media.showCamera
to take the picture. I save the result to the devices temp directory. I create a new intent, refering to Instagram, and pass the path to the saved image as Intent.EXTRA_STREAM.
Problem Instagram opens up with the "Crop photo" window open, so apparently it gets what it's supposed to do. However, after a couple of seconds of loading it crashes.
What i've tried I've checked that the image actually is stored on the device in the claimed location. The image is readable as well. I've tried running logcat on Instagram to check for what's wrong but didn't see anything there. I've tried to save the image to different locations in the phone, with the same results.
Platform I am working with Android 4.2.2 on an actual device (Galaxy S4). I am using Titanium 3.1.1.
What could be the problem here?