Showing posts with label basic app. Show all posts
Showing posts with label basic app. Show all posts

Friday, 9 May 2014

Toast - Special Feature in Android

xample,Android Toast,Toast Image,Toast notification,android examples

Hi Guys already we have seen a little introduction about Android.Lets move to some of the features provided by Android. Firstly we are going to see about a concept of feedback or notification alike mechanism Toast.

A Toast provides simple feedback about an operation in a small popup. It only fills the amount of space required for the message and the current activity remains visible and interactive. For example, After sending a message it shows message send . Toasts automatically disappear after a timeout.

General procedure  to create a toast,
First, instantiate a Toast object with one of the makeText() methods. This method takes three parameters: the application Context, your message, and the duration for the toast. It returns a properly  Toast object. You can display it by toast followed by show(),as shown in the following example:


 


you may also write it as,



 In our next post we can see about how to create a custom toast alert etc.

Toast,toast alert,toast example,Android Toast,Toast Image,Toast notification,android examples

 
 

Tuesday, 29 April 2014

Simple App with Basic features



Simple App with Basic features


basic app, addition, android addition, Simple Android App, Simple App, Learn Android, Application, App, Android Basic App, Android basic, Android App, Android, TextView, EditText, Button, Layout, HorizontalLayout, TextView Example, EditText Example, LayoutExample, Button Example, HorizontalLayout Example, LinearLayout, LinearLayout Horizontal, LinearLayout Horizontal example, Addition Example, Android Addition

Hi friends in this post we are going to learn about how to create a App which get two values from the user and perform the arithmetic operations according to user specified, ie. Simple calculator.
Basic UI features required for this App is,
·         2 EditText ->To get Input.
·         4 Button -> Arithmetic operations denoting Add, Sub, Mul, Div.
·         1 TextView -> Display Output.

  1. Create a New App similarly done in previous post, and Design the UI based on above features.
  2. First insert two EditText to get  numbers from the user by drag and drop from the palette Text Fields column. Since we are going to perform arithmetic operations choose the EditText whose Input type as Number (Recommended). You may also able to select it in the properties column of the EditText, which will appear on right side of our SDK.
basic app, addition, android addition, Simple Android App, Simple App, Learn Android, Application, App, Android Basic App, Android basic, Android App, Android, TextView, EditText, Button, Layout, HorizontalLayout, TextView Example, EditText Example, LayoutExample, Button Example, HorizontalLayout Example, LinearLayout Horizontal example, Addition Example, Android Addition

             3.   Insert four buttons (Add, Sub, Mul, Div) similarly in the Layout, it should be functioned as by pressing each button you may get corresponding result of the operation. We will set the buttons easily in order by changing the layout to linear layout (Horizontal) it will provide us great flexibility to set the buttons in a single horizontal row which looks better.

  • ·         Drag and Drop four buttons to the layout from palette Form Widgets
basic app, addition, android addition, Simple Android App, Simple App, Learn Android, Application, Android App, Android, TextView, EditText, Button, Layout, HorizontalLayout, TextView Example, EditText Example, LayoutExample, Button Example, HorizontalLayout Example, LinearLayout, LinearLayout Horizontal, LinearLayout Horizontal example, Addition Example, Android Addition
  •       Change the Layout to Linear layout (Horizontal) for particular buttons by dragging Linear    Layout(Horizontal) from palette
basic app, addition, android addition, Simple Android App, Simple App, Learn Android, Application, App, Android Basic App, Android basic, Android App, Android, TextView, EditText, Button, Layout, HorizontalLayout, TextView Example, EditText Example, LayoutExample, Button Example, HorizontalLayout Example, LinearLayout, LinearLayout Horizontal, LinearLayout Horizontal example, Addition Example, Android Addition

  • Now you can able to set 4 buttons horizontally one another inside the Linear Layout (Horizontal) .
basic app, addition, android addition, Simple Android App, Simple App, Learn Android, Application, App, Android Basic App, Android basic, Android App, Android, TextView, EditText, Button, Layout, HorizontalLayout, TextView Example, EditText Example, LayoutExample, Button Example, HorizontalLayout Example, LinearLayout, LinearLayout Horizontal, LinearLayout Horizontal example, Addition Example, Android Addition

Thus the design part get over and show your own logic in the coding and finish your second app with some basic features.