android-manifest

Xamarin.Android, AndroidManifest.xml, AndroidManifestMerger, xmlns:tools schema, replace always manually

烂漫一生 提交于 2021-02-19 07:49:05
问题 When compile my Xamarin Forms Android application, visual studio, show me an error's list of AndroidManifest.xml conflict, for example: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: is also present at AndroidManifest.xml:14:9-41 value=(@string/app_name). (AMM0000) /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error AMM0000: Suggestion: add 'tools:replace="android

What does the android:configChanges=“screenSize” attribute do?

倖福魔咒の 提交于 2021-02-18 22:42:15
问题 I would like to know what the above mentioned attribute for an Activity in the AndroidManifest.xml does and why it (would be) needed? I have already read the Android documentation about this topic and the explaination is not quite clear to me. Id like to know an example case WHY I would have to set this attribute. 回答1: As you may have known every time a parameter of the phone changes the system rebuilds the whole Activity in order to load the new resources. On of these parameters is the

Whether it is possible to change the Android manifest attribute dynamically?

空扰寡人 提交于 2021-02-18 19:09:40
问题 I need the set the Application attribute dynamically in android , particularly i need set the Name field which is shown below , i need to change it dynamically because i import two library packages each package will contain two different Application class to maintain session variable,but i can able to use any one Application class in imported project, i need to use that both dynamically based on the package user going to use, for that i need to set and change the Application class Name

Whether it is possible to change the Android manifest attribute dynamically?

喜你入骨 提交于 2021-02-18 19:09:27
问题 I need the set the Application attribute dynamically in android , particularly i need set the Name field which is shown below , i need to change it dynamically because i import two library packages each package will contain two different Application class to maintain session variable,but i can able to use any one Application class in imported project, i need to use that both dynamically based on the package user going to use, for that i need to set and change the Application class Name

How to change AndroidManifest in runtime?

只谈情不闲聊 提交于 2021-02-16 04:38:28
问题 Is it possible to change AndroidManifest.xml in runtime programatically? If it is possible, how can I change the following programatically int he AndroidManifest while running app? android:configChanges="orientation|keyboardHidden" 回答1: No - it's not possible to change the Android AndroidManifest.xml in runtime. But, you CAN do changes in runtime programatically - see here (look for onConfigurationChanged ). 回答2: There is no way to set the configChanges attribute programmatically 来源: https:/

Is there an inherent problem with using if statements to define the minSdkVersion in the defaultConfig block?

痴心易碎 提交于 2021-02-11 14:50:14
问题 Background Working on a project that has multiple sub projects (modules) that are dependent on some libraries within the same root project. For the purpose of some testing functionality, we need a higher minSdkVersion (21), but this minSdkVersion is not necessary for the normal use of the application as we can get all we need from version 14. Therefore we've tried to include some if logic to separate the build for testing vs production purposes. The snippet in question is here: android {

My App is not compatible on WiFi only devices

三世轮回 提交于 2021-02-11 14:21:56
问题 I developed an android app which shows the caller's Telecom Location on Incoming Call. I uploaded it on Google Play, but this app does not appear on WiFi only devices, it says your device is not compatible . My Manifest permission details are below. <uses-permission android:name="android.permission.READ_CALL_LOG"/> <uses-permission android:name="android.permission.READ_CONTACTS"/> <uses-permission android:name="android.permission.WRITE_CONTACTS"/> <uses-permission android:name="android

android layout images bad quality

左心房为你撑大大i 提交于 2021-02-11 12:46:24
问题 when I add images on layout it show in bad quality <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/sbackground" /> how to fix it? (I need to fix it only without programmatically) thanks 回答1: i think your images are stretching

android layout images bad quality

我的梦境 提交于 2021-02-11 12:44:59
问题 when I add images on layout it show in bad quality <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/sbackground" /> how to fix it? (I need to fix it only without programmatically) thanks 回答1: i think your images are stretching

How to get android:configChanges values from ActivityInfo class

天涯浪子 提交于 2021-02-10 06:19:21
问题 I would like to fetch activities info(Such as configchanges, resizemode, if Picture in Picture is supported) of all the packages present in the device. I am able to fetch the activities info using PackageManager with GET_ACTIVITIES flag. With that I can get configChanges value using ActivityInfo.configChanges . However the value returns a random int if there are multiple config values set in android:configChanges . For ex: if below values are set android:configChanges="uiMode