Saturday, May 24, 2014

Introduction to Data-Structure

DATA STRUCTURE

what is data structure?

The answer is quite simple, it is the way of storing and organizing data  which can be used efficiently or It is a special format for organization and storing data.  The simple data structure is one Dimensional array.

Data Structure can be classified into several types :-




1. Linear Data-structure:- The Data are arranged in a linear fashion like array, linked list,queues and stacks.


Figure-  Example of Linear Data - Structure


2. Non-Linear Data-structure:- In Non Linear Data- Structure the data are arranged in non-linear fashion like trees, sets, graphs and tables.


 Figure - Example of Non-Linear Data - Structure.

In the next post i will show you how to create, insert and delete a simple singly linked list.

Monday, May 19, 2014

simple Browser for android

In this post i will show you how to create a simple browser for android.

First I will discuss about the basic terms and then i will explain the code:

 WebView :-
                        In simple word this is just a view that can display web pages. This is a Basic class which will allow you to display some online content. This class can be used to create a simple browser. It uses the Web-Kit rendering engine to display web pages and it also includes some methods which is used to navigate forward and backward through history, clear cache, zoom in and out, perform text searches.

To have access  to the internet connection you should give permission in the Manifest file. Then it will allow to access  INTERNET and load pages.


  <uses-permission android:name="android.permission.INTERNET"/>  

Saturday, April 26, 2014

Creating Option Menus

In this post we will see how to create option menu for the android application. It is the common user Interface that is used almost in all application. The menu is displayed whenever the Menu button is pressed. Generally the Menu contain options that are relevant to current Activity. For Example for a browser it may contain - " New window, Bookmark, refresh, forward, backward etc. "

Friday, April 25, 2014

Implementation of Toggle Button and CheckBox

In this post we will discuss some basic implementation of Toggle Button and CheckBox.

Both (i.e Toggle Button and CheckBox) allow the user to change a setting between two states.

Toggle Button are subclasses of compound Button and perform action in similar manner.

Here we have created a Android project which contains Both(i.e Toggle Button and CheckBox).

Tuesday, April 15, 2014

Understanding Layout

Understanding Layout Manager

 Android offers a collection of view classes which act as containers for views. These container classes are called layout and each implement specific strategy to manage the size and position of its children. The different types of Layout that are used are

Monday, April 14, 2014

The RadioButton Control

RadioButton

The easiest and common method of taking user input in android is RadioButton. “android.widget.RadioButton class is used to render radio button and these RadioButton are generally grouped "android.widget.RadioGroup". Whenever one RadioButton is selected by the user the other RadioButton is automatically disabled.

Sunday, April 13, 2014

Button OnClickListner in Android

 In this post I will show the basic function of a Button, whenever a button is pressed a text message will be displayed.

Step1-  First Create a Android Project and name it as Button.

Step2 - Go to res folder and then to layout and in .xml file copy the code given below

Saturday, March 29, 2014

Android Project Directories



Before we run any app, we should be aware of few directories and files in the Android Project:

1. AndroidManifest.xml


The manifest file describes the fundamental characteristics of the app and defines each of its components.
One of the most important elements your manifest should include is the . This declares the application compatibility with different Android version using the android:minSdkVersion and android:targetSdkVersion attributes.

Tuesday, March 11, 2014

Getting Started with Android

First Download the ADT( Android Development Tool) from the given link http://developer.android.com/sdk/index.html

After Downloading the file extract the file and put in C: Drive. Then open folder and then open ellipse.exe (For Windows)

In this post i will show how to write hello world

step 1: Open ellipse.exe 
step 2: Then click on File-New -Android Application Project.



Step 3: So after clicking Android Application Project an new Dialog box will be opened with name New Android Application. Now In the Application name write the name of your application then press next.

Sunday, March 9, 2014

Introduction To ANDROID

HISTORY :-

Android Os is based on Linux-kernel. It was initially developed by Android Inc. and it was latter backed by Google and was bought in 2005.
It is a open source platform hence most of the code was released under open source Apache Licence.  So anyone who is interested to use Android can do so by downloading the full source code.
 The main advantage of Android is that it offer Unified approach towards Application Development. In a survey it has been found that 71% of the Mobile Developers Uses Android. Some companies that uses Android platform are Sony, Motorola, Samsung, Micromax  etc. and recently Nokia have also joined the group. 

Android Versions:-

Saturday, March 8, 2014

Two way communication between Arduino and Android

In last post i have showed you how to communicate two Arduino Uno using Bluetooth(RN-42). 
                                                             Now in this post i will show you how to connect Arduino Uno with Android phone using Bluetooth.


Before going further i will discuss some basic API's that we will be using in our android Programming. 

In this post we will show how to use Android Bluetooth classes and we will explore some of the Bluetooth API's that is used to develop this Android Bluetooth Application. These API's let your device to connect with other Bluetooth devices enabling point - to- point and Multipoint wireless features.



Using this Bluetooth API's an android application can scan other Bluetooth Devices present nearby, can pair with other Bluetooth devices, can establish RFCOMM, can transfer and receive data and can even manage multiple Bluetooth connections.



All these API's are available in android:bluetooth package. Now we will discuss some of the classes and Interfaces required for Bluetooth connection. (Taken from developer.android.com)


Thursday, February 27, 2014

Communicating two Arduino Uno Boards Using Bluetooth RN-42

In the previous post i have shown how to configure your Bluetooth module and now in this post i will give you some basic ideas how to communicate with two Arduino devices wirelessly (using Bluetooth RN-42)


Steps 1: First take two Arduino Uno boards and configure these boards as shown below.

** Remember -- connect the Tx pin of your Arduino uno with Rx pin in Bluetooth and Rx (Arduino Uno) pin to Tx pin (Bluetooth RN-42)



                                                             
Step 2:- Upload the code to the master device.

Wednesday, February 26, 2014

Checking the configuration of your RN-42 bluetooth Module

This post will give beginners a brief idea of how to check the configuration of RN-42 and change the configuration.



Basic steps to check the configuration of your Bluetooth Module  :-

1. Fist of all load a blank code to your Arduino device


1:  void setup(){  
2:  }  
3:  void loop(){  
4:  }  

** note - while dumping the code don't connect your device with Bluetooth.

2. After dumping the code connect the Bluetooth module with Arduino as shown below -