we have to add css for this like as under input, textarea { -webkit-appearance: none; -webkit-border-radius: 0; }
Technology
Use UIView as UIButton…..
Give UIControl class to UIView then we can access that as UIButton.Add event like Touch Up Inside, touchDown… etc.
What is RecyclerView? And how to use it?
With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. below is detailed insight into it. 1) ViewHolder Pattern In a ListView, it was recommended to use the ViewHolder pattern but …
Endless listview
In some of cases, we need to repeat same data in listview for endless or we can say infinate listview. So, this code may be helpful in that case. You can use this adapter. public class CircularListAdapter extends BaseAdapter { // Debug static final boolean …
Access Shared preference data from one application to another application
Create Shared preferece data in first application set its mode to MODE_WORLD_READABLE. Here is a following snippet you can find how to create shared preference and store data into it. mSharedPrefs = getSharedPreferences(“Prefs_First”, MODE_WORLD_READABLE); SharedPreferences.Editor editor = mSharedPrefs.edit(); editor.putString(“name”, etName.getEditableText().toString()); editor.putString(“password”, etPassword.getEditableText().toString()); editor.commit(); In another …
AutoCompleteTextView: Remove soft keyboard on back press instead of suggestions
We can achieve that by override-ing onKeyPreIme in your custom AutoCompleteTextView. public class CustomAutoCompleteTextView extends AutoCompleteTextView { public CustomAutoCompleteTextView(Context context) { super(context); } public CustomAutoCompleteTextView(Context context, AttributeSet attrs) { super(context, attrs); } public CustomAutoCompleteTextView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override …
EditText – Limit with ALL CAPITALS with NOSPACES
How to restrict EditText with all character capital with no space between? Below is customize InputFiler use for this: public static class NoSpaceWithAllCaps implements InputFilter { public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { for (int i = …
CLLocationManager not getting City name
Issue Description : I have not getting city name when select some of location. To overcome this issue use below snippet code. – (void) getReverseGeocode { CLGeocoder *geocoder = [[CLGeocoder alloc] init]; if(currentLatLong.count > 0) { CLLocationCoordinate2D myCoOrdinate; myCoOrdinate.latitude = LatValue; myCoOrdinate.longitude = LangValue; CLLocation …
Is Sender ID Private in GCM push notification?
It is fine to expose sender id because it has no meaning without serverkey.
Decompile .JAR extension files
Here are following steps decompile .JAR file Download and install JD-GUI software from http://jd.benow.ca/ as per your OS. Open .Jar file in JD-GUI software. Go to file and click on “Save as” to set destination path. You will find decompiled file in your corresponding destination …