Well seems like I always end up answering my own, this time the key laid in using onActivityResult on the main thread (the answer seems soo obvious now)
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent)
{
Log.e("Instance", "onActivityResult called.");
super.onActivityResult(requestCode, resultCode, intent);
//we use this to go through the channels IF the app has been restarted.
if(this.activityResultCallback == null)
{
...
}
}
however I am having an issue with this
if(intent != null)
{
Log.e("Instance", intent.getAction()); //this crashes?
}
I am certain getAction is being set via Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
But the result is coming back with an image (I checked the debugger and it gives me the full content path) - just no action associated?
edit: This was just due to my lack of Android knowledge, I had not realized onActivityResult was called and chained down in PhoneGap but now it all makes sense, however still having issues with getAction() being null. I'm happy finally got everything working, but I can't figure out the getAction being null. Since I get back content:// i just make it assume its passing back a photo for me