Posts

Google Play Store Update: Target API Level 35 Is Now Mandatory

Image
🚨 Important Update for Android Developers: Target API Level 35 Required! 🚨 Google has announced a new policy for Android app developers. If you publish or update apps on the Play Store, this is something you must be aware of. 🎯 What’s Changing? Starting August 31, 2025 , all Android apps (new or updated) must target Android 15 (API Level 35) to be accepted on the Google Play Store. If your app targets anything lower than API 35 after this date, you won’t be able to push updates. This change ensures that all apps follow the latest Android platform standards. 🔒 Why is This Important? Google wants all apps to follow up-to-date security, privacy, and performance practices. Targeting the latest API helps keep apps compatible with new devices and Android versions. 🗓 Important Deadlines Deadline: August 31, 2025 Extension: Request available until November 1, 2025 (via Play Console) 📌 Exceptions Wear OS, Android TV, and Android Automotive apps can stil...

Multiple language application

Multiple language application This below code is use to change application language. Set strings in string.xml file <string name="english">en</string> <string name="arabic">ar</string> Add method in Utils.java class /** * Change language * @param context * @param locale for ex. "en", "ar" */ public static void forcefullyLocaleChange(Context context, String locale) {     Locale.setDefault(new Locale(locale));     Resources res = context.getResources();     DisplayMetrics dm = res.getDisplayMetrics();     Configuration conf = res.getConfiguration();     if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {         conf.setLocale(new Locale(locale));     } else {         conf.locale = new Locale(locale);     }     res.updateConfiguration(conf, dm); ...

Android - Set cursor drawable programmatically

Set cursor drawable programmatically in android This below method is use for change cursor drawable programmatically in android. Pass two parameter as argument. 1) Object of EditText. 2) Cursor color. private void setCursorDrawableColor(EditText editText, int color) {         try {             Field fCursorDrawableRes = TextView.class.getDeclaredField("mCursorDrawableRes");             fCursorDrawableRes.setAccessible(true);             int mCursorDrawableRes = fCursorDrawableRes.getInt(editText);             Field fEditor = TextView.class.getDeclaredField("mEditor");             fEditor.setAccessible(true);             Object editor = fEditor.get(editText);  ...

Android - Shared Preferences Tutorial

Shared Preferences Tutorial 1) Shared Preferences allow you to save and retrieve data in the form of key,value pair. 2) You cannot share preferences outside of the package. 3) Preferences are stored as groups of key/value pairs. Creating shared preferences  SharedPreferences pref = getSharedPreferences(“MyPreferences”, Context.MODE_PRIVATE); - The first parameter is the key and the second parameter is the MODE. - You can save something in the sharedpreferences by using SharedPreferences.Editor class. SharedPreference.Editor editor = pref.edit(); SharedPreferences.Editor Methods : 1) clear() :  It will remove all values from the editor. 2) remove(String key) :  It will remove the value whose key has been passed as a parameter. 3) putString(String key, String value) :  It will save a String value in a preference editor. 4) putLong(String key, long value) :  It will save a long value in a preference editor. 5) pu...

Shadow effect for text in Android

Image
How to Apply Shadow Effect for Text in Android   Hello friends, This example explains how to apply Shadow Effect on Android TextView. You can apply Shadow Effect on Android TextView in two ways. Either we do it pragmatically or we can change in the xml layout. <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:orientation = "vertical" android:padding = "20dp" > <TextView android:id = "@+id/textview" android:layout_width = "wrap_content" android:layout_height = "wrap_content" android:layout_gravity = "center_horizontal" android:shadowColor = "#000" android:shadowDx = "0" android:shadowDy = "0" android:shadowRadius = "50" ...

Create custom toast message in android

Image
Create custom toast message in android Download Code   Hello friends, Maybe you would like to create custom toast message. In the following image you can see how our custom toast message will look like.                                       If you wont to create custom toast message like this, kindly download demo and use this code. I hope this code will help you… Thanks! Download Code