mirror of
https://github.com/lampaa/com.lampa.startapp.git
synced 2026-04-12 00:00:30 +08:00
add individual actions
This commit is contained in:
@@ -76,7 +76,12 @@ public class startApp extends CordovaPlugin {
|
||||
if(activity != null) {
|
||||
if(com_name.equals("action")) {
|
||||
// sample: android.intent.action.VIEW
|
||||
LaunchIntent = new Intent("android.intent.action." + activity);
|
||||
if(activity.indexOf(".") > 0) {
|
||||
LaunchIntent = new Intent(activity);
|
||||
}
|
||||
else {
|
||||
LaunchIntent = new Intent("android.intent.action." + activity);
|
||||
}
|
||||
}
|
||||
else {
|
||||
LaunchIntent = new Intent();
|
||||
|
||||
Reference in New Issue
Block a user