Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Saving an image into SDcard in Android

Sometime we need to save images on SDcard that we click or get from server in many applications, and you can do it very easily by using the below code. To save Images on SDcard on Android Device, write the following code: ByteArrayOutputStr...

Sample application of diffrent types of Android Animations

In this sample application you will find different types of animations. For example :- Bounce, Fade In/out, Blink, Sequential Animation etc. If you want to use any animation in your app you just have to add that particular piece of code in your ...

Sample Barcode Scanner Application

Here is a sample code of simple **Barcode Scanner** app. Barcode scanner library is attached with this project you just have send an startActivityForResult to open Scanner like this. Intent intent = new Intent(getApplicationContext(),Captu...

Diffrent types of signUp pages in android

Signup tutorials for the beginners. In this tutorial you can see different types of signup pages in which date of birth is included , Signup using Facebook and other options as well for android. You can add this code in you application to get the...

Custom Login Activity

Two Login Samples First Sign Up Sample for Username and Password . Second Sign Up Sample for Email and Password. Use the zip file and check the output . Hope the code helps you Thank you.

How to Create Animation in Android

How to create basic animations in android : In this blog i will show you how to create simple shake animation in android.First create a anim folder in res/anim in the android project. Create a xml file in it sopy the following code in it ...

how to detect swipe left or right function on listview item in android

If you want to detect swipe gesture from left to right or right to left on the list view item in android. than you just have to add this Class in your activity and perform any task by detecting any type of gesture in your list item in android...

Remove all the previous activities from the back stack in android

Whenever you switch from one activity to another using intent and specially in the case of logout and sessions related android applications you will find activity back stack issue. Here i will show you a small piece of code which will help you...

How to improve selection criteria of your app using Radio button?

Radio Button A radio button is a two-states button that can be either checked or unchecked. They are normally used together in a RadioGroup. When several radio buttons live inside a radio group, checking one radio button unchecks all the others....

Android how to send SMS

For sending SMS in Android, we have two different ways to do so, First is by using Android's built in SMS application and other is by using Android's SMS manager Api. Here is how we do that: 1: By using Android device's built-in SMS applica...

How to call a javascript function through android

If you are trying to load a web page inside android web view. Then a known java-script function of the page can be called through android in following way :- webview.loadUrl ("javascript:methodName(\""+parameter1+"\",\""+parameter2+"\")"); ...

Trick to apply Http connection timeout for post and get method in android?

While working with application that connects to a web service and sometime it wait too long if it can't get a connection. To avoid this too long waiting you can set connection timeout timing of the HTTP params as per you want. If you want to d...

How to show Distribution Bar Graphs in Android

From here you can be able to display the Bar Graphs through android applications. First of all you need to add achartengine-1.0.0.jar to your project . Which can be easily downloaded from here Now you can use the following activity, in which...

How to create a Custom Button

How to create Custom Button in Android In Android it is very easy to use buttons , eclipse Ide provides you with drag and drop functionality.But we can use different approach and create our own custom button. create an android projec...

How to open an URL in Android's web browser using intent

Here is how we can open an URL in Android's web browser. Just pass the URL in Intent like: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.evontech.com")); startActivity(intent); Also, do not forget to add the inte...

How to check if a device has camera in Android

At times, we make apps which use camera feature but that app can also be used on non camera devices for other features. There we have to apply a check on using the camera feature, that is as follows: PackageManager packageManager = activity.ge...

How to use Permissions in Android

Android use Permissions In android we have to set permissions in the project manifest file to get the required android resource. In a basic android application there are no permissions associated with it by default,so it cannot affect the...

How to add ImageView to the Layout

How to add imageview to the layout and change the source of the image with the click of the button. This is a very simple android code in which we set the mage view in the layout and then use the the imageview to set the new source.This ...

Creating shapes,Boder,selector and Drawable using xml in Android

This blog will help you to Create shapes,Border,selector and Drawable using xml in Android. 1.Selector for a button: Create xml file named background_selector.xml in res/drawable and write the bellow code in that <?xml version="1.0" enco...

How to create a simple Timer in Android

In this tutorial we will make a simple android timer application using a Handler.In the layout of the main activity we will set a TextView to Display the timer and to Buttons for Start and Pause. We set the string resource for the timer value...

How to make a Gridview with Horizontal scrolling

Here for the scrolling Grid View I have use SectionPagerAdapter . Simply what I have done here is that , i have created a Fragment with a layout containing a grid view. And with the help of SectonpagerAdapter the fragment will inflate as many as ...

Read Data From Raw Resource in Android

How to read raw data from raw resource in android. In this tutorial i am using a text file as a raw resource in res/raw/wordslist.txt .This text file is read by the activity and you can use the data whatever way you like. for eg You can...

Android Custom camera

This tutorial helps you how to create custom camera app, with the help of the following sample code. The Custom camera capture the image with auto focus and flash on the click of the capture button.Some developers may require a camera u...

Getting roundedCorner for an Image in Android

Sometimes we need to display images with rounded corners in our several Applications, and this can be done very easily by writing some lines of code. To get roundedCorner for an Image use the following code: /** * This method is used to ...

How to record an audio and save the audio file

In this tutorial, I'll be making a UI with a start/stop recording button. I am using MediaRecording class to record the audio. After making the layout, Call the method below on click of the mike button in the respective class: MediaRecorder...

Post in FaceBook using your Android device via feed dialog

In many applications we have to share content, links etc on Facebook. We can achieve this by using Facebook feed dialog. The following lines of code explains how to use feed/publish dialog. First you need to get the app id and create a meta da...

Load Multiple Image From server using imageloader class store in cache memory in android

Displaying images in a mobile application is one of the most common tasks for app developers. It can be quite challenging to efficiently load multiple images and display it on list-view or grid-view in Android. You can use following single...

Steps to import and use appcompat v7 support library in your project

If you want to use the ActionBar APIs in the support library. So before you can add the action bar, you must have to set up your project with the appcompat v7 support library. Steps given below to import and setup appcompat v7 support library...

Custom Dialog like spinner in android

If you want to create a dialog which will look like as spinner dialog of single choice in android which will open in button click event than you can create a custom dialog. Sample code given below :- You just have to call this method on cli...

TabHosting using TabActivity in android

TabHosting can be used to explore and switch between different views or functional aspects of your app. In this tutorial we will make an activity and host three activities to its tab by using tab hosting . Tab layout is used for this purp...

How to create app icon on home screen on app installation in Android

Here is how we can create app shortcut icon on device's home screen after app installation: There's only a few lines of code. if(!MyUtility.getIsFirstTime(splash).equals("true")) { MyUtility.setIsFirstTime(splash, "tru...

Save ArrayList of Object into Shared Preferences in Android

Sometime we need to save ArrayList of Objects into Shared preferences so that we can use that data in multiple Activities when required. We can do that easily as below: Suppose we have model Users as below: public class Users { privat...

Impleneting a Navigation Drawer in Android

Navigation drawer :It can used as an app's main navigation option on the left edge of the screen. it it hidden all the time and revealed on the click of the app icon or swipe gesture from the left of the screen. Navigation drawer is used...

Easy methods of incorporating Google maps for Android

First create a layout for Map Activity. The name of layout is activity_main.xml <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" class="com.google...

Set Alarm Using TimePicker in Android

This tutorial will help you in creating an android application to set alarm using TimePicker. This is a basic android tutorial which will make you familiar with Intents , Pending Intents and BroadcastReceiver. Step 1: Create an android ...

How to display multiple images one after another in some time interval

Sometimes we need to display ads in our application.To display the multiple images one after another in some time interval write the following code: Create a customTimerTask class that extends the TimerTask class public class customTime...

getting contact information from contact list in Android

We can get a contact information for any contact from contact list of an Android Device easily. For this follow the steps below: Write the permission to read Contact's data into your AndroidManifest.xml <uses-permission android:name="a...

Using TTS(TextToSpeech) in Android

We have a feature called TextToSpeech and is available for Android 1.6 and higher. Usind TTS we can build an app that speaks the text of various languages. Below are the steps to do so: Simply create an xml layout that includes an input ...

How to Use Services in Android Simple Example

Using Services In Android Service is an application component which runs in the background and do not have a user interface.Services can be of two forms:: Started Service can be started from an application component such ...

Make payment using PayPal MPL(Mobile Payment Libraries) in Android

There are certain applications in which we need to integrate the PayPal for enabling the user to pay certain amount to use further features of the app. Before starting, download the PayPal_MPL.jar file from PayPal developer's website and copy ...

Android Screen recording using ADB shell in Android KitKat 4.4

The feature is available for devices running Android 4.4(API level 19) and higher. We use screenrecord command to perform this task. The screen activity is recorded to an MPEG-4 file, and the same can be downloaded from the device. Below is th...

Sorting an ArrayList by date

From here you can learn how to sort an Array List of a particular data type by one it date component. :- By calling the method below you can easily sort your array list. The format you put inside the SimpleDateFormat method is the format of...

Set Google Map API v2 in android

Set Google map in android application To get a google map view in your android application .First you have to create your Google Api Key on the following link https://code.google.com/apis/console/ . First make a project on t...

Load Image From Url

How To Load a Image Form a url You can use this class in your application to load image . It can be use by calling its DisplayImage(String url, int loader, ImageView imageView) function.This function there are three parameters first is Str...

GPS tracking in android tutorial

If you want to integrate GPS tracked latitude longitude to your application, then u need to add a GPS module to your program to make your app more smarter ,to automatically get the GPS tracked location in your app. In this tutorial ...

Use existing sqlite database in android

I will show you the easiest solution, by far, is to use SQLiteAssetHelper. You add your existing sqlite database in a specified location in your project's assets/ directory, then use SQLiteAssetHelper to access your database (much same as you wo...

Adjust Image view width dynamically according to the screen size in android.

It is very difficult to re-size the image-view width according to the screen without losing the quality of the image or you can say increase the width in proportionate to height of the image view. I will show you the trick how you can do tha...

Finding Current Location in Android

To find the current location, follow the steps below: Create a dialog box to display loading message while finding the location ProgressDialog dialog=new ProgressDialog(this); dialog.setMessage("Please wait while getting your location in...

Make String with different colors in Android

We will use SpannableString to add different colors to a string and will use the setSpan(Object what, int start, int end, int flags) method of SpannableString to change the color for defined range of characters in that string. Here is the cod...

Fragment Tutorial in Android

This tutorial helps you how to use Fragment Class in android Application the sample code give you the brief on how you can use an fragment class. In main Activity we have created four fragments. And use FragmentManager and FragmentTransaction...
1 20
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: