Quantcast
Channel: java – CoderzHeaven
Browsing all 12 articles
Browse latest View live

Date and TimePicker in ANDROID.

The following code simply allows you to select a date and time using the datepicker and timepicker in ANDROID. package AndroidDatePicker.pack; import java.util.Calendar; import android.app.Activity;...

View Article



Simulate a Balloon in Box2D, iPhone or ANDROID

Hello……… Sometimes you may want your body to act against the gravity of the world. One method to do this is described below. First what you have to do is to make a body in the shape of a circle and...

View Article

Java Applet MouseEvents

A simple event based applet applications is described below First importing the necessary header files // Demonstrate the mouse event handlers. import java.awt.*; import java.awt.event.*; import...

View Article

Image may be NSFW.
Clik here to view.

Using Tabbars in ANDROID, A Simple Example……….

This is a simple example showing how to use tabbars in ANDROID. First create a new project and copy this code to it. package com.coderzheaven; import android.app.TabActivity; import...

View Article

Creating a JButton component in swing

Java swing provides a native look and feel that emulates the look and feel of several platforms. Here i am going to create a Button and adding it to Frame. For this first create a Jframe object,a...

View Article


Image may be NSFW.
Clik here to view.

How to create a Slide from Left animation while deleting a row from a...

Hello all…… I have written a lost of posts on Listviews. You can see that by just searching Listviews in my site. Today I will show you how to create a slide out animation while we delete a row from a...

View Article

How to Get Contact Image in Android.

This simple example gets the image from contacts in android. private void getContactsDetails() { Cursor phones = getContentResolver().query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,...

View Article

Image may be NSFW.
Clik here to view.

How to load a spinner with values from SQlite Database in android?

Here is a simple example showing how to load a database values in a spinner in android. OK we will start. This is the layout for the spinner row. spinner_row.xml <?xml version="1.0"...

View Article


Image may be NSFW.
Clik here to view.

How to crop an Image in Android?

This is a sample program that launches the camera and crop the captured image. Check this link to another crop image example. http://www.coderzheaven.com/2011/03/15/crop-an-image-in-android/ This is...

View Article


Image may be NSFW.
Clik here to view.

How to draw Arcs in Android using canvas?

This is a simple example showing how to draw Arcs in android, You can use this to create piecharts or someother similar thing you want. Here we have 3 classes. 1. GraphicsActivity.java 2....

View Article

Image may be NSFW.
Clik here to view.

Uploading Image to Server – Android Eclipse Version.

Hi all, In today’s tutorial I will show you how to send an image to server using POST method in ANDROID. If you are working in Android studio, then checkout the article here. Uploading an image to...

View Article

Class has not initialiser error in Swift – Solved.

Apart from other languages, when you write a class in Swift, It should have a initialiser. To solve this we have to write init() function in that particular class. Just like below. For example, look at...

View Article
Browsing all 12 articles
Browse latest View live




Latest Images