Users Online

· Guests Online: 154

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

Articles Hierarchy

Articles: Android

152 Java Android Program to Demonstrate Share Action Provider in Android
Java Android Program to Demonstrate Share Action Provider to a Menu in Android

153 Java Android Program to Demonstrate Defining Menu Hierarchies in XML in Android
Java Android Program to Demonstrate Defining Menu Hierarchies in XML in Android

154 Java Android Program to Demonstrate Adding Shortcuts to Items in a Menu in Android
Java Android Program to Demonstrate Adding Shortcuts to Items in a Menu in Android

155 Java Android Program to Demonstrate Date Picker Dialog in Android
Java Android Program to Demonstrate Date Picker Dialog in Android

156 Java Android Program to Demonstrate Character Picker Dialog in Android
Java Android Program to Demonstrate Character Picker Dialog in Android

157 Java Android Program to Demonstrate Time Picker Dialog in Android
Java Android Program to Demonstrate Time Picker Dialog in Android

158 Java Android Program to Demonstrate Progress Dialog in Android
The following program demonstrates Progress Dialog which is simply an extension to Android’s Alert Dialog Box.A Progress Dialog Box typically displays a progress bar beneath a message text box. This can be used to keep users informed of the ongoing progress of a time-consuming operation. Here i have used a Handler class in Android which registers to a thread and provides a simple channel to send data and receive data to the associated thread via its sendMessage() and obtainMessage() . Here i have set the intial progress value to 0 and max value to 100 , u can set them as u like and incremented the progress by 20 by sending message to my Handler handle and check if the current progress of my progress dialog is equal to the max set when this happens we dismiss the dialog.

159 Java Android Program to Demonstrate Progress Dialog with Spinning Wheel in Android
The following program demonstrates Progress Dialog which is simply an extension to Android’s Alert Dialog Box.A Progress Dialog Box typically displays a progress bar beneath a message text box. This can be used to keep users informed of the ongoing progress of a time-consuming operation.

160 Java Android Program to Demonstrate Parsing a Json Object
In this program we initiate a HTTPS connection and using this connection we get a json object which we save in as JsonOBject and then we parse this JsonObject forming Json array and Json Object at every iteration. Here we are calculating the total fare between two metro stations by getting a Json Object from the url specified, the output of which is shown in the screen.U must notice that in the following code an Async task is used to get json object , this is because the json object that u are getting is a network operation that u can’t operate in the main thread , u have to schedule in the background , and thus the Async task does this.

161 Java Android Program to Demonstrate Custom Toast in Android
Java Android Program to Demonstrate Custom Toast in Android A toast lets a user to show a quick and little message on the screen , u can show a toast by using the Android built in toast or create a toast on your own using the Toast class in Android , the following given code makes a toast to be shown on screen.

162 Java Android Program to Display Custom Toast in the Center of Screen
Java Android Program to Display Custom Toast in the Center of Screen A toast lets a user to show a quick and little message on the screen , u can show a toast by using the Android built in toast or create a toast on your own using the Toast class in Android , the following given code makes a toast to be shown on screen and also display the toast in the center of the screen using Toast.Gravity set method.

163 Java Android Program to Demonstrate Shape Drawables
Shape Drawables resources let you define simple primitive shapes by defining their dimensions, background, and stroke/outline using the shape tag.Each shape consists of a type (specified via the shape attribute), attributes that define the dimensions of that shape, and subnodes to specify padding, stroke (outline), and background color values. Android currently supports the following shape types as values for the shape attribute : 1.Line 2.Oval 3.Rectangle 4.Ring U define a shape in the /res/drawables directory of your Application and when applying to a component say a text view u mention in its android:background field. The following given code adds a rectangular Shape Drawable with a solid fill, rounded edges, 10dp outline, and 10dp of padding around each edge.

164 Java Android Program to Demonstrate Gradient Drawables
A Gradient Drawable lets you design complex gradient fills. Each gradient defines a smooth transition between two or three colors in a linear, radial, or sweep pattern. Gradient Drawables are defi ned using the gradient tag as a subnode within a Shape Drawable definition (such as those defi ned in the preceding section). Each Gradient Drawable requires at least a startColor and endColor attribute and supports an optional middleColor. Using the type attribute you can define your gradient as one of the following: 1.Linear 2.Radial 3.Sweep

165 Java Android Program to Demonstrate Radial Gradient in Android
A Gradient Drawable lets you design complex gradient fills. Each gradient defines a smooth transition between two or three colors in a linear, radial, or sweep pattern. Gradient Drawables are defi ned using the gradient tag as a subnode within a Shape Drawable definition (such as those defi ned in the preceding section). Each Gradient Drawable requires at least a startColor and endColor attribute and supports an optional middleColor. Using the type attribute you can define your gradient as one of the following: 1.Linear 2.Radial 3.Sweep

166 Java Android Program to Demonstrate Sweep Gradient in Android
A Gradient Drawable lets you design complex gradient fills. Each gradient defines a smooth transition between two or three colors in a linear, radial, or sweep pattern. Gradient Drawables are defi ned using the gradient tag as a subnode within a Shape Drawable definition (such as those defi ned in the preceding section). Each Gradient Drawable requires at least a startColor and endColor attribute and supports an optional middleColor. Using the type attribute you can define your gradient as one of the following: 1.Linear 2.Radial 3.Sweep
Render time: 1.10 seconds
10,816,742 unique visits