Create a Sketchware app which links to a website and exits on its own

How to create in Sketchware an app which links to a website on clicking it's icon but the App doesn't open itself.



1. Download Sketchware, Open Sketchware App, go to my projects and start a new project.

2. Fill the App settings: package name, project name, App name, version, app icon.

3. Leave View area (main.xml) empty.

4. Go to Logic. Add a new intent component and name it 'web' (or anything else you want).

5. Now click on onCreate event. On activity onCreate add:
Intent web setAction ACTION_VIEW
Intent web setData http://yourweb.com (URL of website to be opened)
StartActivity web
Finish Activity 



6. Save and Run the App.

7. Your app will exit itself and open http://yourweb.com in default browser on your device.

8. End of tutorial.

Comments

  1. Replies
    1. What kind of books. Do you want to write a book and then create an App which displays it page by page?

      Delete
    2. https://youtu.be/QQTZCemJ758 This video may help you.

      Delete
  2. hi, can i create a app through Sketchware which contain just two pages. on page 2 there are only webview. Page 1 contain 3 button for Facebook, Twitter and my blog. Now when click on the buttons, it redirect to the second page and load according to the buttons.
    can I do it by using any logic? Please help me.

    ReplyDelete
    Replies
    1. Actually it can be done on a single page itself. But if you want to use two pages, then add file(shared preferences) component with same name on both the pages. On button click, set data of the file key to the url. And on next page set webview loadUrl​ to file get data key.

      Delete
    2. please make a video tutorial relating this and alert me. It is so much needed, without which I can not make a app.

      Delete
    3. Here is the complete thing you asked for: https://youtu.be/yXxpa07DW5s

      Delete
  3. why cannot work for google.com (without http)?
    and not work if use IP address?

    ReplyDelete
    Replies
    1. Yes, you cannot load a url without http:// in webview.

      Delete
  4. How to make an app that open website in that app only?not with browser

    ReplyDelete
  5. how to fix this?
    thank you
    Webpage not available

    The webpage at intent://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id%3Dthirdy.latest.kabayovpn#Intent;package=com.google.android.gms;scheme=https;S.browser_fallback_url=https://play.google.com/store/apps/details%3Fid%3Dthirdy.latest.kabayovpn;end; could not be loaded because:

    net::ERR_UNKNOWN_URL_SCHEME

    ReplyDelete
  6. i will wait for your reply pls make blog or reply here the answer

    Question is i want to add my admob here i convert website to Mobile app using sketchware but i dont know how to add the initial ads or banner ads here pls make full tutorial i will wait for you thats my problem i did not see any tutorial about that only "convert website to app" i want to use sketchware beacause it friendly

    ReplyDelete
  7. please please give me ur facebook i need help please! please fast

    ReplyDelete
  8. Thanks for sharing a useful information with us. If someone wants to know about Safety Softwares and Occupational health and Safety Software I think this is the right place for you.

    ReplyDelete

Post a Comment

Popular posts from this blog

A Flash Light App in Sketchware

Create Music Player app in Sketchware

In Sketchware: How to create a calculator for any simple formula?

Simple car racing android game in Sketchware

Firebase auth in Sketchware for Login Activity