intentfilter

Is it possible to get current playing song data on Android? If yes How?

左心房为你撑大大i 提交于 2021-02-08 11:34:34
问题 What I want to do is to get current playing song data. Song might be on spotify or any other music player. Actually I want to get data which transferred to phone hardware. Is it possible ? Is there a provided way to do it ? I've tried, Broadcast Receiver with these filter but onReceived did not invoked. (tested with spotify android app) IntentFilter iF = new IntentFilter(); iF.addCategory("ComponentInfo"); iF.addCategory("com.spotify.mobile.android.service.SpotifyIntentService"); iF

Is it possible to get current playing song data on Android? If yes How?

自古美人都是妖i 提交于 2021-02-08 11:33:09
问题 What I want to do is to get current playing song data. Song might be on spotify or any other music player. Actually I want to get data which transferred to phone hardware. Is it possible ? Is there a provided way to do it ? I've tried, Broadcast Receiver with these filter but onReceived did not invoked. (tested with spotify android app) IntentFilter iF = new IntentFilter(); iF.addCategory("ComponentInfo"); iF.addCategory("com.spotify.mobile.android.service.SpotifyIntentService"); iF

Broadcastreceiver for a downloaded image

喜你入骨 提交于 2021-02-08 10:14:51
问题 Basically I want to set a Broadcastreceiver that gets triggered when the user downloads an image into gallery/phone from chrome, facebook, twitter..etc when the photo is finished downloading , and the actions is triggered, I want access to the downloaded image for extra work such as editing and stuff..! I'm thinking this can be accomplished by Broadcastreceiver , that listens for the image and then do the actions that needed..! I've tried to search for action to be added in the Manifest

Open an Android app via a URL in the browser

早过忘川 提交于 2021-02-07 09:23:18
问题 Ok, so I know there has to be more to it than this. I've read many answers on here that all say the same thing but it's not working for me. I want to be able to open an Android app using a link with a custom URL scheme from the browser. First, I am using the emulator (actually Genymotion) so I don't know if that has anything to do with it. The answers I see keep saying that all I need is something similiar to this: <intent-filter> <data android:scheme="myapp" android:host="hello"/> <action

Intent-filter for service start

China☆狼群 提交于 2021-01-28 18:52:52
问题 I want to start a service, the service is basically a videoview on windowmanager. I want to start this videoview service even from other applications. this is my code intent-filter, Don't know where I went wrong. <service android:name=".VideoWindow"> <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:mimeType="video/*" /> <data android

starting android service using explicit vs implicit intent

流过昼夜 提交于 2021-01-21 04:01:37
问题 According to the standard Android documentation, the prefered way to start a service (started service that is) is to use an explicit intent like this: // Using explicit intent: Intent serviceIntent = new Intent(getApplicationContext(), MyService.class); // or: Intent serviceIntent = new Intent(this, MyService.class); startService(serviceIntent); You can also start/stop a service using an implicit intent with an action string specified in the manifest, like this: // Using implicit intent:

Android: intent filter verification failure

风流意气都作罢 提交于 2020-12-31 09:49:29
问题 My goals is to have Android automatically open any link that starts with test.touchwonders.com in my app. I have place the required file on my server: https://test.touchwonders.com/.well-known/assetlinks.json This is the relevant part of my manifest: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" android:name="com.justbrands.highstreet.pmelegend.PmeApplication"> <activity android:name="com.highstreet

Android tries to verify host despite android:autoVerify=“false”

隐身守侯 提交于 2020-12-29 04:01:58
问题 In my app I have 3 activities, MainActivity, SecondaryActivity and TertiaryActivity. I want SecondaryActivity to be a default app link handler for a particular domain on Android 6, as described in this guide. At the same time, I want another activity, TertiaryActivity, to be able to handle links from another domain, but not be a default handler, as I don't own the domain. Here's my AndroidManifest to illustrate: <?xml version="1.0" encoding="utf-8"?> <manifest package="com.antonc.applinktest"

Android intent-filter to be notified of an attempt to view a CSV file in the Download Manager

风格不统一 提交于 2020-08-02 05:13:28
问题 What's the required magic incantation to register your app to be notified that a user is trying to view a CSV file they've previously downloaded via the Download manager . I've had a brief play and the following filter will happily intercept notifications generated by: Dropbox, Box, Google Drive, Sky Drive, Chrome..... and offer itself to open the files, but my App isn't getting anything when a user attempts to view a file via the Download Manager. <intent-filter> <action android:name="com.my