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); ...
- It helps to filter Log Text. - Log Message class for Android. - You can use this class to assign common Tag Name. import android.util.Log; public class LogMessage { public static void d(String message) { Log.d("TAG :", message); } public static void d(int message) { Log.d("TAG :", message+""); } public static void e(String message) { Log.e("TAG :", message); } public static void e(int message) { Log.e("TAG :", message+""); } public static void i(String message) { Log.e("TAG :", message); } ...
🚨 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...
It's working...
ReplyDelete