intentfilter

How to make multiple Deep Linking in two different activity without duplicate the app android

我的梦境 提交于 2020-07-23 06:22:19
问题 I am using deep linking to share my active link to different applications like WhatsApp. The problem is I want to share 2 different activities. Now I am able to share them but if we assume I will share activity A. After clicking on the link, I will see my application option well that's fine and it will take me to activity A. But now if I do share to activity B.When I try to click on the link, my application will appear twice at one time, and if I choose what was previously chosen by activity

How to make multiple Deep Linking in two different activity without duplicate the app android

瘦欲@ 提交于 2020-07-23 06:21:00
问题 I am using deep linking to share my active link to different applications like WhatsApp. The problem is I want to share 2 different activities. Now I am able to share them but if we assume I will share activity A. After clicking on the link, I will see my application option well that's fine and it will take me to activity A. But now if I do share to activity B.When I try to click on the link, my application will appear twice at one time, and if I choose what was previously chosen by activity

Unable to instantiate receiver, java.lang.IllegalAccessException: access to class not allowed

青春壹個敷衍的年華 提交于 2020-06-08 17:28:30
问题 In the manifest I've declared the receiver element correctly to the best of my knowledge. But the Receiver never gets called when I send out the broadcast. The log cat shows. 07-22 23:51:49.181: E/AndroidRuntime(3799): FATAL EXCEPTION: main 07-22 23:51:49.181: E/AndroidRuntime(3799): java.lang.RuntimeException: Unable to instantiate receiver com.example.orderedbroadcastreceiver.HigherPriorityReceiver: java.lang.IllegalAccessException: access to class not allowed 07-22 23:51:49.181: E

Intent-filter abnormal behavior with samsung file browser

拜拜、爱过 提交于 2020-05-13 14:31:34
问题 I'm creating an intent filter for a specific extension (.infi) for my app. It works correctly with ES file explorer & Solid explorer. However when I open the file with Samsung default file explorer (Device Galaxy Tab S2) it shows a strange message "No application to perform this action", on other device (Note 4) it tries to open the file with Adobe Reader with an error message. Here is my code from manifests file : <activity android:name=".ImportCollections"> <intent-filter> <action android

Issue with intent filter for opening a file in Android app

*爱你&永不变心* 提交于 2020-03-12 05:08:28
问题 I'm trying to open any file with a .conf extension in my android app. Here's what I have in my AndroidManifest.xml : <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="file" /> <data android:host="*" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.conf" /> </intent-filter> <intent-filter> <action android:name=

Android: how do you disable that your app reopens when scanning a NFC tag?

依然范特西╮ 提交于 2020-02-20 05:43:29
问题 I'm writing an android application that reads data from a Mifare Classic card (4k). I have edited my AndroidManifest.xml file so that the app gets started (or I can choose another app that uses NFC). But when my app is openend and I hold my card next to my phone, it gives the popup again where I can choose which app to open. After some research I have found that I need to edit the function: onNewIntent , because this is the function that gets called when you scan a tag when your app is

Intent-Filter for content:// URI on Android 9 and higher

喜你入骨 提交于 2020-02-07 03:09:49
问题 I want to write intent-filter that will allow my app to open files with custom files exception. On Android 8 (and before) there was a possibility to do this as intent url was delivered like this (this comes from Chrome downloads screen): content://com.android.chrome.FileProvider/downloads/somefile.xyz Now, the same screen on Android 9+ delivers intent like this: content://media/external/downloads/25 Is there a possibility to detect my file extension with such intent-uri format without writing

Camera intent filter

淺唱寂寞╮ 提交于 2020-02-05 08:14:26
问题 I need some help on camera intent / filter. Below are my questions. What is the intent filter I should use to make my app handle camera intent ? Are there any apps which handles a camera intent(ACTION_IMAGE_CAPTURE) ? What I am trying to figure out is, if I through an intent with filter ACTION_IMAGE_CAPTURE, is it possible for any 3rd party app to respond for my request? Any help is appreciated. 回答1: 1. What is the intent filter I should use to make my app handle camera intent ? Ans) should

2 Intent Filters, 1 Activity - Which opened it?

穿精又带淫゛_ 提交于 2020-01-30 02:57:08
问题 Is there a way to know which Intent Filter is responsible for launching an Activity which has two Intent Filters defined in AndroidManifest.xml? I want a slightly different set of logic, but not enough that should require a whole new Activity. Thanks! 回答1: Never mind, found it. Just wasn't looking hard enough... Using this.getIntent().getAction() in your Activity will spit out exactly what I was looking for, a String to identify which Intent Filter Action opened it. 来源: https://stackoverflow

Android broadcast receiver not working when trying to receive bootcomplete or screen off

戏子无情 提交于 2020-01-25 20:31:09
问题 So I am trying to develop a custom lockscreen but my broadcastreceiver won't fire my manifest : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.alexander.fuchs.lockscreen" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" >