Skip to main content

Posts

How to Programmatically Check if Developer Options are enabled or not in Android

 Hello forks, hope you are doing well. In this tutorial we will learn how to programmatically check if developer options in device is on or off. Before going to coding part let's discuss brief about what are developer options and what does it mean. Developer options is a hidden menu in the Android Settings app that gives users access to advanced features and tools:  Customize your device : You can adjust animation scales, limit background processes, and more.  Optimize performance : You can improve app performance, optimize battery life, and more.  Test and debug apps : You can enable USB debugging, capture bug reports, and more.  Take more control of your device : You can access settings that are usually hidden from regular users, such as hardware profiling and simulated location settings.  So it basically available in every android device and generally used by developers for testing and debugging their apps. now let's come to coding part , it's very easy ...

How to implement drag and drop feature in android with click reference in Android

 Hi guys ,hope you are doing well. In this tutorial we will learn how to implement drag and drop feature in our android apllication with respect to onclick of particular view. You may utilize the Android drag/drop framework to enable your users to move data with a graphical drag and drop action.  Sample Use Cases for Drag & Drop - Something that helps you drag a pointer on live data to get the color of the object or the thing - In your mobile device’s launcher screen, where every program displays, we may effortlessly drag and drop app icons from one location to another. so without taking much time let's move to the coding part and understand step by step process. Step 1: Create activity_drag_and_drop.xml into layout folder <?xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:app = "http://schemas.android.com/apk/res-auto" xmlns:tools = "http...

How to Implement Firebase In-App-Messaging in Android

 Hello everyone , hope you are doing well ! In this blog we will learn how to implement Firebase In-App-Messaging. Before starting let me clarify about what is In-App-Messaging. Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features. For example, you could send an in-app message to get users to subscribe, watch a video, complete a level, or buy an item. You can customize messages as cards, banners, modals, or images, and set up triggers so that they appear exactly when they'd benefit your users most. ~ From official Document In general way we can say that it is an app engagement tool that helps your users to connect with you app. Lets see how its looks like : It will show in you app when user open your app it is similar like any alert dialog box. The benefit of using Firebase In-App-Messaging is you can control your content and messages dynamically from your firebase console. S...

Manifest Merger Failed Apps Targeting Android 12

Hello Everyone ! Hope you are doing well .Recently Google Play Store accepting new apps only with target SDK API level 31 . As per Google Policy : "New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher. Starting in November 2022, app updates must target API level 31 or above and adjust for behavioral changes in Android 12; except for Wear OS apps, which must target API level 30 or higher." Now come to the challenging part when you try to upgrade your current API level to 31 you may face some issues like "Manifest Merger failed apps targeting Android 12". Now come to the solution part : Google recently introduce a new tag for every activity you created on your AndroidManifest.xml file which is "android:exported" what is android:exported ? In simple words android:exported is nothing but a tag introduce for security purpose in Android 12 and latest smartphones.you have to pass ...

Auto read OTP using SMS User Consent API in Android

Some times ago Google Play restricts the use of high risk or sensitive permissions, including the SMS or Call Log permission groups. It means you have to justify why you are taking SMS or other high risk or sensitive permissions for your application .For this you may be required to complete the Permissions Declaration Form and receive approval from Google Play. Before this every app even who does not have any purpose for taking SMS or other high sensitive permissions in their app ,They was taking these permissions from users and this is a kind of security beach.  For solution of this problem Google introduce SMS User Consent API . The SMS User Consent API complements the SMS Retriever API by allowing an app to prompt the user to grant access to the content of a single SMS message. When a user gives consent, the app will then have access to the entire message body to automatically complete SMS verification. If your appeal for SMS permission is rejected by Google team you can u...

Working with Android 11 (Changes and Security Features)

 Hello everyone , I am here with new article which is hot topic nowadays "Android 11" .The stable version of Android.  Android 11 is the eleventh major release and 18th version of Android, the mobile operating system developed by the Open Handset Alliance led by Google. It was released on September 8, 2020.It is comes with many security features and other features as well . And it is now compulsory in play store  to upload new apps with API lavel 30 which is compatible with Android 11 and from November onwards old apps also have to update with API 30 .Some other guidelines you can check out from here . Play Store Guidelines So its clear that we have to update our apps with API level 30 .But Android 11 comes with some changes as well which we have to do in our projects. For example from Android developer site "Android 11 (API level 30) further enhances the platform, giving better protection to app and user data on external storage. ". Scoped storage enforcement: Apps...