Hi.
I'm relatively new to Tasker, however i have figured all my profiles and tasks out so far, except one.
I want Tasker to stop playback / exit a radio app i have.
I used to use TuneIn Pro, but that's kinda broken in kitkat (buffering problems)
So now i use Danmarks Radio app.
https://play.google.com/store/apps/details?id=dk.dr.radio
It looks like this:
http://i.imgur.com/EwdAOK8.png
http://i.imgur.com/8m0arE4.png
http://i.imgur.com/lmNgfOS.png
I can only get tasker to kill the app, with root access.
And then the app just restarts and starts playing again.
Related
Can anyone tell me how to disable autostarting of Music app when headphones are pluged in?
Can't find anything about this in settings (both in app and mod settings).
Didn't find anything about this here (or somewhere in the internetz).
Am I the only one annoyed by this "feature"?
Music app starts because of a loose contact in the headphone jack.
Whenever you plug in your headphones the phone thinks you pressed the media button on the headset that shipped with the phone (it has a fourth contact on it's jack).
To disable this I used an App called Autostarts: https://play.google.com/store/apps/details?id=com.elsdoerfer.android.autostarts
In this app you have to look for the event "Media button pressed" and then disable forwarding this event to music app.
Eiertschik said:
Music app starts because of a loose contact in the headphone jack.
Whenever you plug in your headphones the phone thinks you pressed the media button on the headset that shipped with the phone (it has a fourth contact on it's jack).
To disable this I used an App called Autostarts...
In this app you have to look for the event "Media button pressed" and then disable forwarding this event to music app.
Click to expand...
Click to collapse
Thanks for the suggestion!
...But it sounds a bit like cracking nuts with a microscope.
What I can think of is to install an application that "steals" the event from the music app and disable autostarting from within this app. But this solution is far away from elegance also.
There should be a quick and elegant solution.
Maybe a short script that prevents forwarding of this event to music app?!...
...which, unfortunately, is beyond my abilities. :/
I don't think you can "steal" the event from a specific app.
The more media players you install the more receivers of the MediaButtonPressed event are in the list so I guess the event is a broadcast that every app can choose to receive and react to.
Autostarts' description says it can disable app components, but needs root access too - otherwise it will be in read-only mode.
So I guess if you knew exactly what the app does with root rights you should be able to reproduce it without the app.
But it's getting complicated again.
I think the easiest and also most comforable way is to somehow get this app (there's no free version unfortunately) and disable receiving of the broadcast for music apps.
Done.
Eiertschik said:
I don't think you can "steal" the event from a specific app.
The more media players you install the more receivers of the MediaButtonPressed event are in the list so I guess the event is a broadcast that every app can choose to receive and react to.
Autostarts' description says it can disable app components, but needs root access too - otherwise it will be in read-only mode.
So I guess if you knew exactly what the app does with root rights you should be able to reproduce it without the app.
But it's getting complicated again.
I think the easiest and also most comforable way is to somehow get this app (there's no free version unfortunately) and disable receiving of the broadcast for music apps.
Done.
Click to expand...
Click to collapse
You were right.
I installed Winamp first. Plugging the headphones began to start Winamp. When I turned off its option to control the headset, the music app began to start.
Then I decided to freeze the music app via Titanium Backup, and voila. Problem solved. After restarting the phone even music app icon disappeared from the menu.
Not the most elegant solution, but it works.
Thanks for the useful info!
Now I just have to find a lightweight player that doesn't autostart when the headphones are plugged in or that has an option to disable autostarting. Winamp is not so good lately.
I prefer Player Pro - but yet again - this app is not free...
Eiertschik said:
I prefer Player Pro - but yet again - this app is not free...
Click to expand...
Click to collapse
DeaDBeeF Player Pro... This one?
(Too many "Player Pro"s in Play Store.)
Sorry - I mean this one:
https://play.google.com/store/apps/details?id=com.tbig.playerpro
Here's a 7 day trial version:
https://play.google.com/store/apps/details?id=com.tbig.playerprotrial
Has anyone found a better app for remote controlling your music.
the stock one is ok, but it would be nice to see the track listing.
Null
And maybe any good music programs to use with null rom, and non samsung phone?
akira8473 said:
Has anyone found a better app for remote controlling your music.
the stock one is ok, but it would be nice to see the track listing.
Click to expand...
Click to collapse
I personally used M2D's manager app to send tasker intents from my watch to my phone and on the phone I have tasks for each control and use "Media Utilities" in the Play store to actually perform the actions as it has a tasker plugin. I also use it to send the currently playing song to my watch and display it with the Zooper widget. It's tricky and time consuming but there is a tutorial in the M2D thread in these forums.
Neither of them work. They make the toast notifications but don't do anything. I used the Xposed MTCB module but that doesn't work with pocket casts and it only works with one app at a time. Does anyone know how to use those media control apps? I have a youtube video below which shows me attempting and failing with the HEADUNIT and CARSERVICE apps.
I have exactly the same problem. Have you found any solution?
Do you have any functionality with those buttons in any application at all? Or is it just those 2?
Have you tried this with another music application, such as PowerAmp?
Have you updated the ROM to the latest version from Malaysk?
Also, what is the make and model of the headunit you have?
First thought I had is, quit the one app that you're using, then open another app and try again. The stereo may get "confused" if you have more than one app open at a time.
Hello everyone !
I would like to know if it's possible with Tasker to force the sound to be played on a Bluetooth device ?
If I'm casting my phone on a Microsoft Wireless Display, the sound is also casting on it.
But I want my sound to be sent on a Bluetooth device.
I've tried the app SoundAbout and it's working. But it's not free and as it's not perfect (there is no shortcut to quickly enable/disable it) I'm looking for a solution with Tasker.
If someone knows how to do that ?
Nobody ?
Look for a way to do it manually.
You should be able to automate it with Tasker.
Autoinput (Tasker plugin) can simulate presses in apps, if needed.
Yes thanks, I know AutoInput and I think it's going to be the only option !
This is for Android 5.1 (Lollipop):
I want to create a widget within my own app which can control the music from the TuneIn or Spotify.
However if these apps are not running, my widget is simply not able to start the music.
However if I first run either Spotify or TuneIn (and don't really do anything: don't start the playback from within the app), and put it into background (by pushing back), then my widget can beautifully control the music onward.
So I want to start these applications, but don't want them to be seen. By default this is somewhat impossible, but with XPosed, maybe I have some option?
Thanks a lot.