Skip to main content

Posts

Showing posts with the label Website

How to open any other App or website from your app?

Intent can be used to open urls or other apps from android app. To open URLs from app 1. In order to link to a url 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. Next, on button click event, add following blocks: Intent setAction ACTION_VIEW, Intent setData  URL of website to be opened StartActivity Intent 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. In order to open other apps directly on button click, add an  intent  component as shown above. 3. Next, on button click event, add following blocks: Intent setAction ACTION_VIEW, Intent setData  android-app://com.niksoftware.snapseed(package name of the app) StartAct...

how to make an app for your site for free

Here is a video of how to create an App for your website in Sketchware. Install Sketchware App in your mobile and start a  new project . Write your  app name  and select an icon for your app. Now in your project View area drag and drop  Scroll(V)  and inside that add  webview  widget. Set width of Scroll(V) to match parent and change padding to 0. In Logic area of your project, in  onCreate  event add the  WebView loadUrl  block and write Url of your site in it. Now add a new event, namely ' On back button press ', in your app Logic area. On in On back button press, use if..else.. block. Add Webview goBack block as shown in image below. It should read,  if WebView canGoBack then WebView goBack else Finish Activity .