switchon@lavalamp.biz
+27(0) 83 419 4851 / +27(0) 21 036 1165
Application & software development
Get A Quote

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact

    • Home
    • Services
      • Application & software development
      • Outsourced software development
      • Project based resourcing
      • Digital marketing & consulting
      • Graphic design & consulting
      • UI / UX design & consulting
      • Recruitment services
      • Lease an expert
    • About
      • How we work
      • NBConsult Group
      • Partners
      • Lightbox Digital
    • Blog
    • Join us
    • Contact
    errors in app insights
    Unhandled Promises Sent Through To App Insights In Node JS
    Jun 23, 2020
    how to send a tweet from within your angular app via node js
    How To Send A Tweet From Within Your Angular App Via Node Js
    Jul 22, 2020

    Embedding Website Links Into Your Android App

    Categories
    • Mobile Application Development
    Tags
    • andriod developer
    • android
    • android apps
    • apps
    • embed
    • Websites
    • webview
    embedding website links into your android app
    embedding website links into your android app

    Sometimes when you are building an app, you need to display some sort of standard information that is also already displayed on your website.

    Example: Say you have a page on the website that explains how to use the app and on your app you would like to have an information section where the user can obtain said information.

    What I like to do in this scenario is embed the website link into my android app.


    How to:


    I use Android's WebView class which helps you display the website link in your layout.

      1. First you will need to make sure that your app has access to the internet by adding the following to your manifest file:
      2. Then you can add the following to your activity's Layout file. This will specify the placement and size of where the website link is going to be displayed:
      3. In your activity's onCreate() method add the following so that you can load the link in the WebView that you just created:

    The reasons why I use WebView:


    • If you had to create a separate page on your app with all the same information from the website. Every time you have to update the website, you also have to update your app. This way you will only have to update it in one place.
    • When redirecting you user to the link instead of embedding the link, they will get redirected out of the app and to their browser app. If you embed the link you will be able to keep your user in the app.

    Happy Coding!

    Contact us


      Related posts:

      how to deploy your app/website on herokuHow To Deploy Your App/Website On Heroku laravel livewireLaravel Livewire angularUpdating A Primitive Type Variable From A Service In Angular how to send a tweet from within your angular app via node jsHow To Send A Tweet From Within Your Angular App Via Node Js
      Share
      92
      Rayne Logan
      Rayne Logan
      Rayne is a web developer with experience in PHP web apps and has an interest in project management and mobile development.

      Leave a Reply Cancel reply

      Your email address will not be published. Required fields are marked *

      Lava Lamp Lab


      Like technology, a lava lamp constantly changes form, producing new conditions with every passing moment



      lava lamp lab facebook   lava lamp lab twitter   lava lamp lab linkedin   lava lamp lab instgram

      Services


      Application & software development

      Outsourced software development

      Project based resourcing

      Digital marketing & consulting

      Graphic design & consulting

      UI / UX design & consulting

      Contact Us


      +27(0) 83 419 4851

      +27(0) 21 036 1165


      switchon@lavalamp.biz


      Unit 4 Monaco Square,
      14 Church Street,
      Durbanville,
      Cape Town, 7550

      NBConsult Group


      nbconsult
      nbconnect msp
      nbclearning
      river broadband
      designer needed
      © 2023 Lava Lamp Lab (Pty) Ltd | All Rights Reserved | Privacy Policy
      Contact us now

        Application & software development

          Outsourced software development

            Project based resourcing

              Digital marketing & consulting

                Graphic design & consulting

                  UI/UX design & consulting

                    Lease an expert

                      Recruitment services

                        We are using cookies to give you the best experience on our website.

                        You can find out more about which cookies we are using or switch them off in settings.

                        Lava Lamp Lab
                        Powered by  GDPR Cookie Compliance
                        Privacy Overview

                        This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

                        Strictly Necessary Cookies

                        Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

                        If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

                        3rd Party Cookies

                        This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

                        Keeping this cookie enabled helps us to improve our website.

                        Please enable Strictly Necessary Cookies first so that we can save your preferences!

                        Cookie Policy

                        More information about our Cookie Policy