CategoryAndroid

Voice Recording in Android

V

Put below code into your main Activity. private static final String AUDIO_RECORDER_FILE_EXT_3GP = ".3gp"; private static final String AUDIO_RECORDER_FILE_EXT_MP4 = ".mp4"; private static final String AUDIO_RECORDER_FOLDER = "AudioRecorder"; private MediaRecorder recorder = null; private int currentFormat = 0; private int output_formats[] = { MediaRecorder.OutputFormat.MPEG_4, MediaRecorder...

How to Add Smiley/Emojis in Edittext?

H

  Emoji.java :- package com.android.emoji; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.text.Html; import android.text.Html.ImageGetter; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android...

Android EditText TextWatcher

A

Android EditText TextWatcher Example TextWatcher This methods  will be called when the text is changed. Text Watcher Having Three Events. 1.beforeTextChanged 2.onTextChanged 3.afterTextChanged beforeTextChanged This means that the characters are about to be replaced with some new text. The text is  uneditable.   Use: when you need to take a look at the old text which is about to change...

Android ViewFlipper

A

Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval. Activity Code : import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view...

Facebook Style Slide Menu In Android

F

Create a new android project in eclipse(Minimum Required Android SKD 2.2 ). Download slider.jar file from . Place slider.jar in lib folder in project Now our basic project structure is ready and its time to focus on layouts, replace main.xml code from given one Create two Android XML Files one for left menu and other for right menu say “left_menu.xml” and “right_menu.xml”...

Android Adding Music to your App

A

Hello guys today I’d like to discuss how I got the music to play in the splash screen here. First off, create a MediaPlayer object. 1> MediaPlayer song = MediaPlayer.create(context, reid); It takes in a context, in our case of Splash.this – the class is known as splash. And the “reid” is where the song is located. The song should be in the resource(res) folder. Add a new folder where you will...

How to retrieve installed application list and permissions

H

In this short post i will show you how use the PackageManager class to retrieve the list of installed applications and associated permissions on your android device . Starting from the your Activity context you can obtain an instance of PackageManager through the method called getPackageManager(). Using that class is it possible to get a list of ApplicationInfo objects containing details about...

Incoming mails notification on android

I

I am looking for a way to programmatically intercept incoming emails on Android, no matter their source (gmail, exchange, IMAP, etc.). My main concern is to have a look at the mail headers rather than the mail body. It can be done for GMail only using the following code – ContentResolver cr = getContentResolver(); Cursor unread = cr.query(Uri.parse("content://gmail...

Category