android-manifest

Android: Get localized permission group names

。_饼干妹妹 提交于 2020-08-07 05:12:32
问题 In marshmallow's runtime permission, user can choose "never ask again" in permission requests. In this case, we have to redirect user to app settings to let them enable the permissions for the app. Also, Android permissions are group based, it will be very handy to display names of the permission groups that the app needs before we send the user to the settings. I've seen the strings in android.Manifest such as " android.permission-group.LOCATION ". Is it possible to get the permission group

Android: Get localized permission group names

喜欢而已 提交于 2020-08-07 05:08:33
问题 In marshmallow's runtime permission, user can choose "never ask again" in permission requests. In this case, we have to redirect user to app settings to let them enable the permissions for the app. Also, Android permissions are group based, it will be very handy to display names of the permission groups that the app needs before we send the user to the settings. I've seen the strings in android.Manifest such as " android.permission-group.LOCATION ". Is it possible to get the permission group

Unable to find explicit activity class. Have you declared this activity in your AndroidManifest.xml

那年仲夏 提交于 2020-07-05 09:54:45
问题 I'm trying to implement a PreferenceActivity in my app, following the accepted answer in this question I get the above exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.iphonik.chameleon/com.iphonik.AppPreferenceActivity}; have you declared this activity in your AndroidManifest.xml? AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.iphonik.chameleon"> <uses

Unable to find explicit activity class. Have you declared this activity in your AndroidManifest.xml

不羁岁月 提交于 2020-07-05 09:51:46
问题 I'm trying to implement a PreferenceActivity in my app, following the accepted answer in this question I get the above exception android.content.ActivityNotFoundException: Unable to find explicit activity class {com.iphonik.chameleon/com.iphonik.AppPreferenceActivity}; have you declared this activity in your AndroidManifest.xml? AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.iphonik.chameleon"> <uses

How to write meta-data info to Android Manifest at runtime

不羁的心 提交于 2020-06-28 03:01:18
问题 I know its possible to edit a android manifest component, for example, set it enabled/disabled etc. I'd like to insert meta value tag into the application tag of the android manifest at runtime. How can i write directly into the android manifest ? here is the string i want to write directly into my app's android manifest: <meta-data android:name="my_api_key" android:value="mykey124" /> and it must be within the application tag. 回答1: You can't edit the manifest at runtime. If you need runtime

Use variables in manifest

亡梦爱人 提交于 2020-06-23 08:51:41
问题 Integrating some libraries like Branch-io in Android need to define meta-data in project manifest. some of this variable is like TestMode <meta-data android:name="io.branch.sdk.TestMode" android:value="true" /> So, when we want to publish the application we should change it to False. Is there any way to define a variable somewhere according to BuildType and assign it to the Meta-data to that? 回答1: Yes you can inject build variables from gradle to manifest, it is done by adding variable to the

App name in launcher is taken from main Activity label insead of from intent label

北战南征 提交于 2020-06-09 05:26:08
问题 I've set intent filter label as per and per and per official docs: The icon and label that are set in a component's are shown to the user whenever that component is presented as an option to fulfill an intent. By default, this icon is inherited from whichever icon is declared for the parent component (either the or element), but you might want to change the icon for an intent filter if it provides a unique action that you'd like to better indicate in the chooser dialog. For more information,

App name in launcher is taken from main Activity label insead of from intent label

馋奶兔 提交于 2020-06-09 05:24:27
问题 I've set intent filter label as per and per and per official docs: The icon and label that are set in a component's are shown to the user whenever that component is presented as an option to fulfill an intent. By default, this icon is inherited from whichever icon is declared for the parent component (either the or element), but you might want to change the icon for an intent filter if it provides a unique action that you'd like to better indicate in the chooser dialog. For more information,

tools:replace specified at line:11 for attribute android:appComponentFactory, but no new value specified app main manifest (this file), line 10

﹥>﹥吖頭↗ 提交于 2020-06-01 07:18:29
问题 When I build my project I get these errors : Merging Errors: Error: tools:replace specified at line:11 for attribute android:appComponentFactory, but no new value specified app main manifest (this file), line 10 Error: Validation failed, exiting app main manifest (this file) This is my Manifest : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="org.apoce.app"> <uses-permission