Skip to main content

How to make a Browser in Kodular Creator ?

How to make a Browser in Kodular Creator?

Welcome back my friends, today I am going to illustrate you "How to make a Android Web Browser in Kodular?" We will make this web browser in Kodular Creator. This will be a basic web browser. By this project we will how to handle  Web View provided in Kodular Creator. We will also learn about many design elements. I am sure you are excited with this project. So, here we start our tutorial without any more discussion. But before starting our tutorial I want to tell you that what are things we will learn in this tutorial:

1. How to design splash screen?
2. How to use text box with web view?
3. How to use material typeface buttons?
4. How to use Horizontal arrangement layout?
5. How to use if-then-else statement? 
and many other things which we will use while making this web browser.
And now you might be more excited for this project. Now, we move on to our tutorial for making a web browser in Kodular creator;

How to make a Browser in Kodular Creator ?

We will learn to make a web browser in following steps and I will provide you aia file for this project which you can use. And here we have our first step for making browser application Kodular Creator.

Step 1: Create a new project
Firstly you need to login into your kodular creator account and then make a new project. Choose the properties and set the package name for your application here.

Configuring your project

Step 2: Designing Splash Screen
When your project is once created. We need to design the splash screen for our Web browser. This is important because it adds value to you browser and make it look more professional. It also let us to check and load our application successfully. This results in protecting our application to get crashed.
For this you need to select a logo. (Tip: For designing logo you can use Logomakr.com) Once you have made your logo you need to follow these steps:

1. Set Align Horizontal and Align Vertical Center and set title bar and status bar invisible.
2. Add a image component here.
3. Upload your logo image and set this image as image for the image component that we added before.
4. Add a label under this image and set the text for this label as the name for your browser.
5. Get a space component from layouts and add it under the label. Set the height of this space as 100 pixels.
6. Now add a circular progress bar and place it under the the space component.
7. Then we need to add a clock component  and set it's timer to 2000 ns and uncheck the timer always fire option and timer enabled option.

Here you have designed your splash screen for your app. 
Illustration:
Splash Screen design for app

Then we have our next step in which we have to check whether user is connected to Internet.

Step 3: Check Internet Connection
Now we need to check whether user's device is connected to internet or not. For this we have to implement Network component to our application to check whether user is connected to internet. You can find network component under connected option in sidebar. Then we need to add a notifier component to notify if user is not connected to internet.

Step 4: Setting up Blocks for Splash Screen
We have to set the following blocks to make our splash screen redirect to the Browser screen.

1. Firstly, we have to set the the clock timer enabled when screen initialize.Block No. 1
2. Then we need to specify when clock timer finishes and then we have to check whether user is connected to internet and if yes then we have to open another screen else we have show user a alert notice that his device is not connected to internet. For this you can set the block like this:Block No. 2

Here we are done with our Splash Screen and now we need to move to second screen. So add another screen with name "home". In this screen we will make our functioning browser using web viewer.

Step 5: Designing Home Screen
For Designing Home Screen you need to follow these steps:

1. Adding Horizontal arrangement at the top and setting it's height 65 pixels. Then set it's align vertical and align horizontal to center.
2. Adding a button for user allowing him to go to home screen.
3. Then adding a card view and set it's background color to #EEEEEEFF .Then set the elevation to 0 and corner radius to 21 pixels. Then set the height as 50 Pixels to make it look good. 
4. Then add a text box and set it's height and width to fill parent. 
5. Now add a button allowing user to go to the URL which is in Text Box.
6. Then get a web viewer and add it under the horizontal arrangement element.
7. Set the zoom enabled and zoom display unchecked and then set the home URL to "https://www.google.com".

Here we have done everything with Home screen designing. Then we can see our project as following:
Design Illustration

Step 6: Setting Up blocks

Now we need to set up blocks to handle different events in home screen. Here are our blocks which we have to set.

Block No. 1: When Home button clicked
We have added a button which allow user to go to homepage. So, for this ad the following block:
Block No. 2: When Go button clicked
We also have to specify what to do when home button is clicked.
Block No. 3: Showing loading progress
We have to show the loading progress using a label which we added under the Horizontal arrangement.
Block No. 4: Handling when back button clicked
We also have to specify what to do when back button is pressed. We can handle this event as follows:

Here, we have completed our project and made our web viewer successfully. Now export your project and test it. I am also providing you aia file of this project. You can also check this aia file.
Aia File: Click Here

So, my friends that's all was for today we will be back again. Till then.....
Happy Koding.....

Comments

Popular posts from this blog

How to use Utilities component in Kodular Creator?

  How to use Utilities component in Kodular Creator? Welcome back guys to Learn webs online. As you may have seen in above image, in today's tutorial we will be going to learn to use the utilities components in Kodular Creator. These components will surely be useful for your future projects. In today tutorial we will learn to use these four utilities components. These are the main utilities components in kodular creator. There are also another utilities components which we will learn to use in further tutorials. So, let's start our tutorial without waiting any more..... 1. Wallpaper component Introduction: This component can be found at the last position in the utilities components under utilities option in sidebar. As you can understand by it's name this is used to access the wallpaper settings of user's device. This is very useful component while developing a app in which we allow user to change or modify wallpaper within the application. This app may be a browser app

How to use dynamic component in Kodular Creator ?

How to use dynamic components in Kodular Creator? Welcome back my dear friends, today we are back again with a complete new tutorial. Today we are going to learn How to use Dynamic components in Kodular Creator? As of all our tutorials I assure you you will find this tutorial very useful while developing any of you application which the no. of components are not fixed. So, we use dynamic components to add as much as number of components as we want. So, here we start our tutorial with some of FAQ's that will help you to learn what is concept of dynamic components if you didn't understood "What does dynamic components mean?"  FAQ's about Dynamic components 1. What are dynamic components? Dynamic components are the components which allows us to show as much as number of components in our application as we want. So, that we need not to update app to add any component in our application. This is useful when we are developing any application like Shopping application in

How to use KIO4 gradient in Kodular?

  Welcome to learn web, today we are back with a completely new tutorial on Kodular Basic-to -Advanced app making.Today topic for our tutorial is that how to use Gradient effect in Kodular app making for any layout. How to use gradient colors in kodular app? For this you need to use a extension named "KIO4" gradient.So,before starting you need to get this extension before we start our tutorial.To get this click on link below: My Drive Link This is the google drive link for the KIO4 extension. I think you might have got the extension.So, we start our tutorial on how to use gradient effect Kodular apps. Step 1:Open your Project in which you want to use gradient Effect.Then click on the extensions button in the bottom of left sidebar and click on import extension.Now select the KIO4 gradient file and click on Import after some time your extension will be processed and imported to your project. Illustration: Once you have Imported the KIO4 extension you can see the extension as s