Posts

Showing posts with the label Android Manifest

Android - Adding At Least One Activity With An ACTION-VIEW Intent-filter After Updating SDK Version 23

Answer : From official documentation : To enable Google to crawl your app content and allow users to enter your app from search results, you must add intent filters for the relevant activities in your app manifest. These intent filters allow deep linking to the content in any of your activities. For example, the user might click on a deep link to view a page within a shopping app that describes a product offering that the user is searching for. Using this link Enabling Deep Links for App Content you'll see how to use it. And using this Test Your App Indexing Implementation how to test it. The following XML snippet shows how you might specify an intent filter in your manifest for deep linking. <activity android:name="com.example.android.GizmosActivity" android:label="@string/title_gizmos" > <intent-filter android:label="@string/filter_title_viewgizmos"> <action android:name="android.intent.a...

Add My App To AutoStart Apps List In Android Programmatically

Answer : Some of the applications such as Whatsapp and Facebook might have been whiltlisted thats why they have automatic Autostart option enabled. But i have tried the following code for Xiaomi Devices hope this might help!! String manufacturer = "xiaomi"; if(manufacturer.equalsIgnoreCase(android.os.Build.MANUFACTURER)) { //this will open auto start screen where user can enable permission for your app Intent intent = new Intent(); intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity")); startActivity(intent); } This screen/behaviour is not native to Android, meaning the screen you show comes from a custom rom, probably from a particular manufacturer. Like you said the answers in the other question do not work but they are the only native way to start an application on boot/start. Check if the app/custom rom has an API (a particul...

Android - Resource Linking Failed / Failed Linking References

Image
Answer : Solution 1: Set your compileSdkVersion to 28 and let Android Studio download the needed files. If you already targetting this version, you could try cleaning your project and sync your gradle files. In my case, I made two custom backgrounds which were not recognised. I removed the <?xml version="1.0" encoding="utf-8"?> tag from the top of those two XML resources file. This worked for me, after trying many solutions from the community. Errors with XML files are quite hard to figure out. They even trickle their impact down to Java files.