android-manifest

How to add flags with my intent in the manifest file

≡放荡痞女 提交于 2020-02-27 04:30:50
问题 we know that there are flags which we can add to our intent using the addFlags() method in our java code. Is there any way we can add these flags in the manifest file itself instead of writing this in java code. I need to add REORDER_TO_FRONT flag for one of my activities in the manifest. How to achieve this ? 回答1: In manifest file you can not add Intent flags.You need to set the flag in Intent which u pass to startActivity. Here is a sample: Intent intent = new Intent(this,

Read and Write external storage permission isn't working

落爺英雄遲暮 提交于 2020-02-18 21:13:47
问题 In my app i want to get user permission to read and write data on external storage, i have put permission tag in my manifest as below. But when installing app or running and where it requires to read or write to storage no permission is taken from user and reading and writing memory just doesn't work, until i manually go to setting-app-access and enable access to memory. My manifest is this: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res

Read and Write external storage permission isn't working

你。 提交于 2020-02-18 21:12:13
问题 In my app i want to get user permission to read and write data on external storage, i have put permission tag in my manifest as below. But when installing app or running and where it requires to read or write to storage no permission is taken from user and reading and writing memory just doesn't work, until i manually go to setting-app-access and enable access to memory. My manifest is this: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res

Build failed after creating oculus go manifest in Unity 3D

烂漫一生 提交于 2020-02-05 16:01:33
问题 I am trying to publish an Oculus GO application build with Unity 3D. I follow the OVR instructions for publishing such apps which can be found here: https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-native-manifest/ The instructions mention that you have to use Oculus -> Tools -> Create Store Compatible AndroidManifest.xml and then fill it with the details of your application. The AndroidManifest.xml file the Oculus Tool produces is the following: <?xml version="1.0"

Build failed after creating oculus go manifest in Unity 3D

允我心安 提交于 2020-02-05 15:54:52
问题 I am trying to publish an Oculus GO application build with Unity 3D. I follow the OVR instructions for publishing such apps which can be found here: https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-native-manifest/ The instructions mention that you have to use Oculus -> Tools -> Create Store Compatible AndroidManifest.xml and then fill it with the details of your application. The AndroidManifest.xml file the Oculus Tool produces is the following: <?xml version="1.0"

Build failed after creating oculus go manifest in Unity 3D

倾然丶 夕夏残阳落幕 提交于 2020-02-05 15:53:50
问题 I am trying to publish an Oculus GO application build with Unity 3D. I follow the OVR instructions for publishing such apps which can be found here: https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-native-manifest/ The instructions mention that you have to use Oculus -> Tools -> Create Store Compatible AndroidManifest.xml and then fill it with the details of your application. The AndroidManifest.xml file the Oculus Tool produces is the following: <?xml version="1.0"

How to show different Activities in Fragment implementation?

旧时模样 提交于 2020-02-02 11:06:46
问题 It is my first time using android fragment. I am following this tutorial to implement a fragment. Everything is fine with this tutorial, I successfully get the result like below: In the tutorial, the DetailsFragment simply shows a TextView containing the text of the currently selected item. That's the right part shows just some texts. My question is how to show different activities on the right side instead of text views. What I mean is illustrated in the following image, for example, the

android:allowBackup=“true” error on “true”

一曲冷凌霜 提交于 2020-01-25 19:01:12
问题 I have one problem my code has android:allowBackup="true" error on "true" <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.dsadas.bottombardmo"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN

How to pass value from an activity in an broadcast receiver?

元气小坏坏 提交于 2020-01-25 12:22:47
问题 How to read data from an activity in an broadcast receiver if the broadcast receiver is registered through the manifest file??? Please Help... 回答1: First you need to store data in SharedPreferences and then get them into broadcast receiver. You can use the code below in manifest file : <receiver android:name=".YourReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> and in code you can use : public class YourReceiver extends

Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory)

橙三吉。 提交于 2020-01-25 06:40:08
问题 Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:17:5-122:19 to override. org.gradle.api.tasks.TaskExecutionException: Execution