android-manifest

Invoke android application from browser

落花浮王杯 提交于 2019-12-23 17:25:44
问题 I have been trying to invoke my application from browser on android 3.1 (Honeycomb) These are the links I tried, but none of these worked: <a href="com.nk.myapp://movieid=95319">click me 1</a> <a href="intent:#Intent;action=com.nk.myapp.detail;end">click me 2</a> <a href=intent:#Intent;action=com.nk.myapp.detail;category=android.intent.category.DEFAULT;category=android.intent.category.BROWSABLE;package=com.nk.myapp;end>click me 3</a> For 1st and 2nd url, it gives "Webpage not available". For

Application is launching twice if opening from a hyperlink

我的未来我决定 提交于 2019-12-23 13:13:03
问题 I am developing one application which can be launched from multiple places like e.g. hyperlink in Calendar. I am facing the problem in the below scenario: If application is already launched and running in the background and User clicks the event/hyperlink in Native calendar to start the appliction. My application is launching twice as a new instance. In the running app list I can see the two instances of my application. I have tried both android:launchMode="singleInstance" and "singleInstance

Android manifest merge - Different launcher activity from library project

强颜欢笑 提交于 2019-12-23 12:27:04
问题 I have a library project which has the following structure : <activity android:name="com.comp.package.activities.A1"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:name="com.comp.package.activities.A2"> </activity> <activity android:name="com.comp.package.activities.A3"> </activity> <activity android:name="com.comp.package.activities.A4"> </activity> In the app

Cannot open custom file extension

不想你离开。 提交于 2019-12-23 08:56:13
问题 I have a file format I wish to support, it's just a zip but I've renamed it .amg so my app can read it. On my samsung phone with gingerbread it works fine and it opens. On my motorola phone with kitkat all I get is can not open it. I've tried various solutions found here but none seem to work. Typically I copy the file into the download folder on the phone and click the file. The only thing that works on kitkat is if I open the file using Astro File Manager, but I can't force that app on

Playstore prompts to 'Declare sensitive permissions'

爱⌒轻易说出口 提交于 2019-12-23 08:30:48
问题 Our Android Manifest doesn't have any permissions for SMS. We did till 4 releases back. But the Playstore still prompts us to fill in the declaration for sensitive permissions by saying the following - Previously declared permissions (3 permissions) android.permission.RECEIVE_SMS android.permission.SEND_SMS android.permission.READ_SMS Could this be coming due to a library that we're using which still requires these permissions? How can we avoid this? Our Manifest has the following permissions

Playstore prompts to 'Declare sensitive permissions'

我是研究僧i 提交于 2019-12-23 08:30:11
问题 Our Android Manifest doesn't have any permissions for SMS. We did till 4 releases back. But the Playstore still prompts us to fill in the declaration for sensitive permissions by saying the following - Previously declared permissions (3 permissions) android.permission.RECEIVE_SMS android.permission.SEND_SMS android.permission.READ_SMS Could this be coming due to a library that we're using which still requires these permissions? How can we avoid this? Our Manifest has the following permissions

Custom actions using implicit intents between applications

折月煮酒 提交于 2019-12-23 07:59:52
问题 I have been trying to get two activities in two separate applications to communicate using a custom action and an implicit intent. The first application (server), has the following manifest: <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name="edu.example.sharing.manager.SecureFileShare" android:label="@string/title_activity_secure_file_share" android:exported="true"> <intent-filter> <action android:name=

How to use android:usesCleartextTraffic below Marshmallow android

吃可爱长大的小学妹 提交于 2019-12-23 07:29:08
问题 I am trying to secure webview from cleartext traffic. As mentioned in the documentation. I have to set android:usesCleartextTraffic as false to achieve this. But this works on API level 23 and above. My minimum sdk is 22. How can I make sure app doesn't crash or create any problem on device running below API level 23 ? Or how can I programmatically set that attribute value in the application tag in Manifest.xml ? 回答1: As suggested in Android Developers Blogspot, you don’t have to set

How to use android:usesCleartextTraffic below Marshmallow android

五迷三道 提交于 2019-12-23 07:29:05
问题 I am trying to secure webview from cleartext traffic. As mentioned in the documentation. I have to set android:usesCleartextTraffic as false to achieve this. But this works on API level 23 and above. My minimum sdk is 22. How can I make sure app doesn't crash or create any problem on device running below API level 23 ? Or how can I programmatically set that attribute value in the application tag in Manifest.xml ? 回答1: As suggested in Android Developers Blogspot, you don’t have to set

What is android:sharedUserLabel and what added value does it add on top of android:sharedUserID?

假装没事ソ 提交于 2019-12-23 07:16:38
问题 The documentation (http://developer.android.com/guide/topics/manifest/manifest-element.html#uid) only states I can't use raw strings and the API level it was added, but doesn't explain why I would want to use it. If I already set android:sharedUserID to "com.foo.bar" what value should I put in the string referenced by android:sharedUserLabel, and most importantly why!? Thank you 回答1: As far as I understand from the AOSP actually you can use this label just to display a pretty name to a user