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 Blocks in Text section in Kodular Creator?

How to use Blocks in Text section in Kodular Creator?  Guys welcome back to Learn Web Online, Today as you have seen we will be learning about using the main text related blocks. These text blocks are very useful while making your android application. We can edit, trim, join etc. text using the blocks which we will be talking about. The blocks which we will be learning to use today can be found under the built in components 'Text'. So, open your project to get live results to try these blocks your own. Here we start our tutorial without wasting time any more.... Blocks In text section Here, we have the main blocks which we are going to learn to use today's tutorial 1. Text Block: This block is used to denote a text string. This is the basic block which provide a text string in block section. We can use this block to give a text string to any other block. For example we can enter a text and set this text to a specific Label's text. 2. Join Text This block is used to join...

How to make speech to text app in Kodular Creator?

  Welcome to Learn Web, guys today as you have seen we will learn to make an Speech to Text application in Kodular Creator. This is our third application making tutorial which is published on our website. We are soon getting many more tutorials for you which will help you to learn advanced application development using Kodular Creator. So, keep connected with Learn Web online to get the latest content from us. Now, we are going to start our tutorial without wasting any more time..... Firstly we would discuss about some FAQ's related to Speech to Text Converter: FAQ's about Speech to Text Converter 1. Functions of this application You might have got what I meant by this app and what this application can be used by an user. But if you didn't then I am going to tell the main function of this Speech to text converter. This app can be used for voice typing. Simply, in this app user have to click on a button and then he have to speak and then it will hive user text which he can c...

How to make a stopwatch application in Kodular?

  How to make a stopwatch application in Kodular? So, guys we are back with a new tutorial. In today's tutorial we will learn making an app rather than learning to use any component in  Kodular creator. It has been time, since we  have provided a tutorial for making a android app in Kodular Creator Series. Hence, today we will  be learning How to make a simple seconds based stopwatch in Kodular. Here firstly we talk about some of FAQ's about Stopwatch in Kodular creator....... FAQ's about stopwatch App 1. Functions of this Stopwatch If you want to know the main functions of this Stopwatch application then we have how this app will work: 1. Firstly User has to start the stopwatch 2. Then he can pause or start the stopwatch. 3. User will be able to reset this stopwatch. 4. User can check timing upto 10 mini seconds. 5. User can easily use this app. 2. How will this app work? In this app we will use a timer component to record time and we will use button for start stop ...