Forced bluetooth audio when casting ? - Tasker Tips & Tricks

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 !

Related

[Q] Motorola Milestone (CM 7.2) Music app autostart when headphones pluged in

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

Music Controls

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.

Problem with Media controls with HEADUNIT App and CARSERVICE App

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.

Wake Home Theater?

Hi,
I shall want to turn on my Home Theater with Tasker.
It's possible?
I know that it is possible with Onkyo remote or peel smart remote but I would want use run tag and to tasker.
Thank you.
(sorry for my English)
I have a project set up to show a permanent notification when connected to my home WiFi. This has a button linked to a task which pings the server & depending on response either sends a wake on LAN command or sends a shutdown command.
It requires secure settings for the ping, WoL Wake On Lan Wan (in play store), Droid Remote Lite for the shutdown option (also in play store but requires a small Java app running on PC) & also auto input to action the shutdown command in Droid remote. I've attached the xml you'd need to add your wifi SID to the profile trigger, setup WOL & link the plugin in tasker to the profile, setup Droid remote for your Home Theatre's IP & change the IP in the secure settings part of the task for the ping. There may be simpler ways if doing the shutdown element but I'm not experienced enough with tasker yet. Any suggestions on improvement welcome.
News mustn't home screen and maybe add every language
There are many ways to achieve this depending what hardware you have at home. I'm able to turn on my TV, Amplifier and HTPC using Tasker and a Veralite Z-Wave hub.
I first sent the "RSPW2" code to my TV which is connected to my LAN using WiFi so the TV can monitor the network for remote control codes even when its in standby mode instead of only monitoring code from it's RS232 port.
Then I created a scene in my VeraLite to send the "POWR1" code (Power On) to the TV which will turn on the TV and the Audio amplifier at the same time since both of them are HDMI CEC compatible. The scene is also sending a wake-on-lan command to the HTPC (I don't have any HDMI-CEC adapter on my HTPC.
Finally used Tasker and the AutoVera plug-in to start that Vera scene.
You can do the same thing for pretty much all TV brands, you just need to find the codes table for your tv brand, most of the time its in the user's manual.
Well if someone need a detailed guide for this kind of Tasker/Z-Wave/Home Theater setup, let me know.
Hi,
I found the solution with remote AnyMote. the application offers Tasker tasks.

Who to activate video in mylk-vr in multiple samsungs devices an a arduino at the sam

I need to active a video in multiple samsung devices and a arduino at the same time, and activate them Through an app all in the same time. I don´t even know where to start looking for it.
I found that you can run the mylk vr app with a bluetooth, but I don´t know if it works for multiple devices.
I already know how to connect an arduino via bluetooth, all I need is a bluetooth library that sends a signal to a bluetooth module
I need to manage the way to do this 2 things from a single app in android
Do I have to make the app in java? is the only choice?
I look forward to hearing from you.
Yours faithfully

Categories

Resources