-->

How to open others apps and sites from sketchware

How to open others apps and sites from sketchware
Intent component in sketchware can be used to open urls or other apps from android app.
To open URLs from app
1. In order to open a link from your app, which means on clicking a button or on any other event the url opens in default browser in mobile, first add an intent component in LOGIC area of Sketchware project.
2. Create a new project in sketchware, add a button, then in on button click event, add following blocks:
Intent setAction ACTION_VIEW,
Intent setData URL of website to be opened
StartActivity Intent
3. Then save and run your app.

To open other apps in mobile from app
1. Other apps in mobile can be opened using the package name of those apps. If the app is not installed on mobile, then it will not open. Below is an example to open Snapseed photo editor app from a Sketchware app.
2. Create a new project in sketchware, add a button. In order to open other apps when button is clicked, add an intent component in components tab in sketchware.
3. Then in on button click event, add following blocks:
Intent setAction ACTION_VIEW,
Intent setData android-app://com.niksoftware.snapseed(package name of the app)
StartActivity Intent
4. Save and run your app