350
Views
6
Comments
Launch a native mobile app
Question

I am developing a mobile application using Outsystemsnow. My question is how do I start another native mobile app on my Android device. This operation is similar to opening another mobile app on an Android device using Intent via native code.

2024-12-17 14-32-59
Matthias Preuter
 
MVP

You could use this Cordova StartApp Plugin; but you have to change the OutSystemsNow App.

UserImage.jpg
Henry Oforeh

Thanks Matthias. 

Please how do I update OutSystemsNow so that new plugins added reflect in the development platform ?

2024-12-17 14-32-59
Matthias Preuter
 
MVP

You can find it here; but if you can wait - wait for OutSystems P10:

Awesome Demo of Platform 10

UserImage.jpg
Carrie Palmer

Henry Oforeh wrote:

I am developing a mobile application using Outsystemsnow. My question is how do I start another native mobile app on my Android device. This operation is similar to opening another mobile app on an Android device using Intent via native code.

Check if this will help you, this is how I implemented  it 

Intent intent = getPackageManager().getLaunchIntentForPackage("com.package.name");
if (intent != null) {
    // We found the activity now start the activity
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(intent);
} else {
    // Bring user to the market or let them choose an app?
    intent = new Intent(Intent.ACTION_VIEW);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    intent.setData(Uri.parse("market://details?id=" + "com.package.name"));
    startActivity(intent);
}

Check for this article on how to launch appilcation https://www.cestarcollege.com/blog/mobile-app/learn-how-to-launch-your-mobile-app-successfully/. If you do not know the main activity, do us ethe package name to launsh the appilcation. 

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
if (launchIntent != null) { 
    startActivity(launchIntent);//null pointer check in case package name was not found
}

Best wishes, do update us

UserImage.jpg
Firmaydani Wahyu Alamsyah

Hi Carrie,


Can you help me for simple implementation with javascript?


Thanks,

Firma

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Firma,

This thread is a year old. Please consider creating a new one, and in doing so, please provide context about what problem are you currently facing and how have you tried to address it so far. This way the community might be able to better help you.

Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.