Featured
-
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
An Overview of Android Activity - Video Tutorial
As far as Android platform is concerned, the funda
by amit.rai -
How to get IMEI number,serial number and software version of your phone
Hello... Sometimes we need to know the country
by shahbaz.ahmmod -
Search location by using place on google map
Here below is the code for searching places by usi
by shahbaz.ahmmod -
How to know free space in sdcard android
I have written code to know free space in sdcard
by shahbaz.ahmmod
Tags
How to avoid adding emoticons in android edittext
If you don't want to allow users to add emoji in edittext then below few lines will be helpfull for you. This method will return blank string while typing any similies/emoji in your editext.
public static InputFilter EMOJI_FILTER = new I...
Methods to monitor android EditText
If you have to perform certain tasks before, after and during the text changes in android EditText the following methods will help you to monitor your operations. Implementing the Textwatcher interface provides the callback methods listed below, ...
Trick to change text color inside setError method of EditText?
If you want to customized the error message of EditText than you can simply use the code given below.
Using below code you can declare your edit text
// Declare your edit-text.
EditText editText=(EditText)view.findViewById(R.id.editText);
...
How to detect Android Softkeyboard
When user hits the BACK-Button on his android device, the keyboard disappears. How can I catch that event? In order to track softkeyboard is open or not, this tutorial is helpfull for you, and you will easily dissmiss the softkeyboard by pressing...
Automatically move to next edittext in android
Hi,
In android, we have TextWatcher interface to keep track of input that we are typing.
Usually it is very useful when we need verification on the basic of text length and content also.
It has method onTextChanged(CharSequence s, int star...
How to change the theme or highlighted color of EditText
In order to change the theme or highlighted color of EditText do the following steps:-
1) Create colors.xml file inside the values folder (if you don't have) and then declare colors
<color name="ColorPrimary">#4484F6</color>
<...
Solution of EditText font in password mode
When an EditText is in password mode, It looks that its font is different.
When we change typeface in xml , It dosent work.
There is a solution :
We should change it from java like this
<EditText
android:id...