com.lampa.startapp
com.lampa.startapp copied to clipboard
problem with "intentstart":"startActivityForResult"
I have a problem with "intentstart":"startActivityForResult". The plugin always ends up calling both startActivityForResult and startActivity. Maybe it should have been if, else if, else instead of if, if, else? Am I missing something?
if (params.has("intentstart") && "startActivityForResult".equals(params.getString("intentstart"))) {
cordova.setActivityResultCallback(this);
callbackContext = callback;
cordova.getActivity().startActivityForResult(LaunchIntent, 1);
}
if (params.has("intentstart") && "sendBroadcast".equals(params.getString("intentstart"))) {
cordova.getActivity().sendBroadcast(LaunchIntent);
} else {
cordova.getActivity().startActivity(LaunchIntent);
}
@csampalis hmm
Yes, it looks like a bug