How to bind Javascript code to Android code?

In this post, I will walk you through an interesting topic on how to bind Javascript code to Android code that means you can call Android code from inside Javascript function.

Sounds interesting??

Prerequisite:

You must have the knowledge of Android Webview to understand Android Javascript binding. If you are new to Android Webview I would recommend you to take a look at Android WebView Layout

When developing a web application that’s designed specifically for the WebView in your Android application, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog, instead of using JavaScript’s alert() function.

Read More

Binding JavaScript and Android Code – Example

When developing a web application that’s designed specifically for the WebView in your Android application, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog, instead of using JavaScript’s alert() function.

In this post we are going to develop simple Android application to demonstrate how to bridge Javascript and Android code.

Prerequisite

You must have the knowledge of binding Android and Javascript code before you proceed with developing application. If you are new to Android and Javascript code binding, take a look at How to bind Javascript code to Android code?.

Read More

Android Layouts Revisited

Android Layouts

Layout denotes the architecture of the application, where and how the controls should be organized in the UI.It defines the layout structure and holds all the elements that appear to the user.

We created a video on different types of Android Layouts by putting lot of efforts. Watch it and let us know your comments.

Read More

Android WebView Layout

What is Android layout?

Layout denotes the architecture of the application, where and how the controls should be organized in the UI.It defines the layout structure and holds all the elements that appear to the user.

Android allows us to create layouts for the applications using simple XML file and those layouts must be placed in /res/layout folder.

We can declare the layout in two ways and here we will discuss first way of doing it:

  1. Declare UI elements in XML
  2. Create UI elements at runtime using Java.
Read More

How to hide title bar and status bar in Android application

 

This post is going to be very short one and here we will discuss about how to hide title bar and status bar in Android application.

If you look at Gaming applications like ‘Cut the rope’, ‘Angry birds’ and more in your android device,  applications are displayed in full screen view which covers entire area of the display to provide more user experience.

We will develop a sample application which has no title bar and no status bar.

Read More
Page 1 of 212

Pin It on Pinterest