How to work with button in android?

♠ Posted by ANDROID THIRST in
Buttons are the type of view that is created to be pressed . When the user clicks on the button in an android application the application is respond something. In this tutorial, we are going to create a different type of button . There are three types of button in android 1.Button with Text 2. Button with Image 3.Button with Text and Image 1. Button with Text:- Step 1. Create a project buttonWidget. Step 2. Add following code in activity_main.xml       < Button android:id="@+id/button1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="ClickMe" android:textsize="30dp" android: background="#0000aa" /> 2. Button with Image: -  Just under the Text button use ImageButton view to create an ImageButton . Put the following code just under the Text button. < ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageButton" ...

How to create Number Pattern in Java?

♠ Posted by ANDROID THIRST in
A number pattern in java is a simple program    that is asked by the programmer to check their command on the loop. Here I described how to  create a simple number pattern in java. There are following step you need to follow to create a number pattern. 1. Have a clear perception in your mind what you want to create. 2. Don't just create Take a copy pen and firstly create it on your copy 3. Draw this practice more and more public class numExample { static int i; static int j; public static void main(String[] args) { for(i=1;...

Why choose android over any other mobile application development

♠ Posted by ANDROID THIRST in
Android is open source software platform based on Linux kernel and design primarily for touchscreen mobile such as Smartphone, Tablet. It's a  complete stack of- OS, Middleware, and applications .Android Inc. is founded by Palo Alto of California, U.S. by Andy Rubin, Rich miner, Nick sears and Chris White in  October 2003. In 2008, android would first be released by T-Mobile as the T-Mobile G1.Later Android Inc. was acquired by Google in 2005. So the question is why should we choose android over any other mobile application development platform ? There are lots of reason why you choose...