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"/>