com.lampa.startapp
com.lampa.startapp copied to clipboard
How to open camera?
Tried this:
var app = startApp.set({
"intentstart": "startActivityForResult",
"action": "ACTION_MAIN",
"package": "com.capture"
}, {
/* extras */
"key": "CAMERA",
"name": "abc"
});
app.start(function(response) {
console.log(response);
}, function(error) {
console.error(error);
});
But getting this error:
04-23 10:00:21.801 3955 3955 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {au.com.suttonssolutionsapp/au.com.suttonssolutionsapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
Any tips?
Use import { Camera } from '@ionic-native/camera/ngx';
instead.
#138