com.lampa.startapp
com.lampa.startapp copied to clipboard
Invalid Intent
Hi I have tried the following code to call the app,
var sApp = startApp.set({
"action" : "ACTION_SEND",
"category" : "CATEGORY_DEFAULT",
"package" : "PACKAGE NAME",//The packageName of the app I want to open
"intent" : "INTENT ID",//Name of the intent
"intentstart" : "startActivityForResult",
"type" : "text/xml"
}, { /* extras */
"PID_OPTIONS":"PASS DATA"//Here i want to pass some xml data
})
sApp.start(function(result) { /* success */
console.log("Success"+result);
}, function(error) { /* fail */
alert("error :"+error);
});
I am getting "success callback result as OK", but I am getting toast message in my app as "Invalid intent code 999".
Can anyone help to resolve this issue?
Anyone can explain how to get the intent callback result?????
Hi!
Please, update plugin to 6.1.0 and check this code:
var sApp = startApp.set({
"action" : "ACTION_SEND",
"category" : "CATEGORY_DEFAULT",
"package" : "PACKAGE NAME",//The packageName of the app I want to open
"intent" : "INTENT ID",//Name of the intent
"intentstart" : "startActivityForResult",
"type" : "text/xml"
}, { /* extras */
"PID_OPTIONS":"PASS DATA"//Here i want to pass some xml data
}).start(function(result) { /* success */
console.log("Success"+result);
}, function(error) { /* fail */
alert("error :"+error);
}, function(result, requestCode, resultCode) {
console.log(result, requestCode, resultCode);
});
Hi @lampaa I have tried the following code to call the app,
var sApp = startApp.set({
"category": "CATEGORY_APP_MUSIC",
"intentstart": "startActivity"
}).start(function(result) { /* success */
console.log("Success" + result);
}, function(error) { /* fail */
console.log("error :" + error);
}, function(result, requestCode, resultCode) {
console.log(result, requestCode, resultCode);
});
I'm getting error :
error :class android.content.ActivityNotFoundException: No Activity found to handle Intent { cat=[android.intent.category.APP_MUSIC] }
Can anyone help to resolve this issue?
System Information Ionic 1 Node 4.5.0 NPM 2.15.9 Cordova 6.5.0
Hi! for start application to play music test this code:
var sApp = startApp.set({
"action": "android.intent.action.MUSIC_PLAYER",
"noParse": true
}).