Sunday, 31 August 2014

Custom List View Example in Android



CUSTOM LIST VIEW EXAMPLE IN ANDROID : Download the whole project! In this tutorial I will show you how to make a custom list view in which you can set your image and text views. To make this type of list view you need to make your own adapter which will inflate the data on to the list view. First create new project in Eclipse, File => New…
Read more

Simple List View Example in Android



SIMPLE LIST VIEW EXAMPLE IN ANDROID : Download the whole project! In this tutorial I will demonstrate you how to make a simple list view using Array Adapter and simple list item which is already present in android run time environment. Create a new project in eclipse and give it a name and package name. I am giving name of the project as ListViewDemo…
Read more

Saturday, 30 August 2014

Start Android Development with Simple Calculator Application



SIMPLE CALCULATOR APPLICATION : Download the whole project! In this post I will show you how to make a simple calculator android application which can only do four operations : add, subtract, divide and multiply. Note : To make an android application you must know the basics of java otherwise it is too difficult to understand the concept of android. This…
Read more

Difference between Overloading and Overriding in Java



OVERLOADING : In java it is possible to define two or more methods within the same class that share the same name as long as their parameter declaration (i.e. signature) are different which is called overloading. Overloading is basically means that you use the same name of function with different signatures. Java run time environment will check the…
Read more

#2 Star Pattern Program in Java



In the program the following star pattern will be printed. At first, we get the number where we want to print the star pattern from the user with the use of Scanner class and store that number in variable n then we make a loop which starts from 0 till n-1. Inside of that loop there is another loop which is used for giving spaces from left side equal…
Read more

Friday, 29 August 2014

#1 Star Pattern Program in Java



In the program the following star pattern will be printed. At first, we get the number where we want to print the star pattern from the user with the use of Scanner class and store that number in variable n then we make a loop which starts from 0 till n-1. Inside of that loop there is another loop from 0 to n-1 and we jump from the inner loop if…
Read more

Fibonacci Series Program in Java



Fibonacci Series Definition : Fibonacci series is something like this : 0, 1, 1, 2, 3, 5, 8, 13, 21, 34……. In this series each term is calculated by adding the previous two terms where the first two terms are 0 and 1. For example : Third term = first term + second term = 0 + 1 = 1 Fourth term = second term + third term = 1 + 1 = 2 Fifth term…
Read more