[REQ] Tasker help or Script Request - Galaxy S II General

Ok, so I just got started with Tasker and thought of a simple function I'd like it to automate for me. I'm having a hard time figuring this out so I'm turning to the XDA community. Basically, I'd like for it to be able to toggle the Media (A2DP) profile on my car's bluetooth connection for me. I want the profile to be off by default, but turned on when I launch media apps like music player, youtube, pandora, etc. The reason for this is that if I leave the media profile active but I'm listening to my iPod or XM, things like navigation or TiKl calls all get routed to the car, but on a different input than the one I'm listening to. So, I basically can't hear any of the sound from my phone unless I toggle the media profile off, but I need it to be on when I want to listen to music.
I looked through the settings of Tasker and did some googling, I can't seem to find any setting for Tasker to switch only the media profile of a bluetooth connection. But, I did read that Tasker can run a script. So, does anyone know how to write a script that would switch the media profile on and another script to switch it off? then I can just have Tasker execute the script under the right circumstances.
If there is another way to do what I want please tell me, thanks in advance for any help!

Related

Sleep timer

Hi guys,
just searched (forum and google) for a sleep timer for our HD and couldn't find a suitable solution. I am used to go to sleep while listening to music or audio books and am looking for a simple timer that will run in the background and after pre-defined period of time will force the HD to stand-by (not shutdown completely), thus shutting down the playback. The reason I don't want to use all kinds of media players with built-in sleep timer function (for example Kai's MP3 Sleep Timer and many more) is simple: I am totally satisfied with the function of TF3D's music player and don't want to have more players than neccessary (already using very good Core player for movies, but unfortunately, no sleep timer with it).
So, finally getting to my question: do you know about a software (application, utility) that works as a simple sleep timer? Not combined with (for me) unnecessary media player.. Or, and now I'm speaking to the "able ones", are you able to write such an application for our PPCs? I have no clue if it's doable at all and don't want to sound like a know-it-all, because I don't know very much about programming, but it shouldn't be that difficult, should it?
Thanks for all reactions.
Dushan
Any help appreciated...
try ptravelalarm.
Thanks, exactly what I was looking for. Will give it a try.

What formats can the built in streaming player play

I have a bunch of radio channels that I love to use. Unfortunately my standard players (Pocket Music and Pocket Player) won't work. The HD2 turns off after a few minutes no matter what I set the power settings to. So I tried to stream with the built in Streaming Media Player, but couldn't get anywhere. The stations I use are OGG. what formats can this player play? Only the rather obscure RTSP from streaming media players?
Try TCPMP.
But isn't OGG a wave format?
No idea... But TCPMP doesn't work because it turns off after a few minutes, like all other third party players. But I have heard that Kinoma play doesn't do that. I may make an attempt with a trial version of that.
Yeah I've noticed this morning that it does stop playing if you turn off the screen. What works for me is to leave the screen on. It doesn't fall asleep while playing. Would that be an option for you?
Yeah, that would be an option. Just not a very good one, since it will eat the battery faster. I guess I may have to get myself an extra battery. Totally idiotic to have an error like that in such a great phone!
I don't think it's an error. I think it's some sort of timeout that the Sense player can handle (reset) but other players can't.
I have solved the problem! Turned out that it could be fixed by using the cab from this thread: http://forum.xda-developers.com/showthread.php?p=5353195 That keeps the WiFi connection alive even if the phone is suspended or whatever you want to call the "sort of sleeping" that happens when you're playing something. Now I stream until the battery dies!
Nice find!
But... isn't keeping Wifi on the whole time more energy consuming than leaving the screen on (dimmed) when playing music?
Regular music playback isn't affected of this problem. That will keep playing if you suspend. The problem is streaming, and at least for me streaming means WiFi. So it's actually a step down in power usage from having both the screen and the Wifi on to only the Wifi.
In that case you and I have different problems. My music (from the storagecard) stops playing after about 2 minutes but only if I use my bluetooth carkit to listen. If I play music on the HD2's speaker the music stops almost immediately after turning off the screen. I read that Mortplayer shouldn't have this issue.
It's probably the WiFi and the bluetooth connections that keep the HD2 alive for some minutes and after their timeout puts the phone to sleep.
There's probably a similar registry key hack that will fix that for you. I hope somebody finds it!
Mastiff said:
I have a bunch of radio channels that I love to use. Unfortunately my standard players (Pocket Music and Pocket Player) won't work. The HD2 turns off after a few minutes no matter what I set the power settings to. So I tried to stream with the built in Streaming Media Player, but couldn't get anywhere. The stations I use are OGG. what formats can this player play? Only the rather obscure RTSP from streaming media players?
Click to expand...
Click to collapse
Hi Mastiff, what app did you find best to use with streaming radio? Would be great if you could share some setting or xml file that contain radio stations list, so that I do not need to collect them from scratch (I live in Norway too..)
Actually I think I remember you from earlier! I use Windows Media Player, "Det enkleste er ofte det beste". Of course I use Pocket Music for anything else of music (video I watch in my home theater with a 2,5 meter wide screen, not on a cell phone!). As for my sttaions I simply use a reg file that puts the few stations I listen to (I'm a boring dude, I prefer news and facts, not music programs). Make this into a reg file and import it (P3 is there before I do actually listen to Pyro sometimes...):
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\OpenUrlMRU]
"3"="http://straumr.nrk.no/nrk_radio_p3_m"
"2"="http://straumr.nrk.no/nrk_radio_alltid_nyheter_m"
"1"="http://straumr.nrk.no/nrk_radio_p2_m"
"0"="http://straumr.nrk.no/nrk_radio_p1_m"
Editing Registry... Thought some text or xml file with all settings could be kept... Anyway, I went to HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences , but there is not OpenUrlMRU key there. Should I create new one? Not sure how to enter those HTTP references into registry...
No, you don't have to edit anything. The text is in the correct format to be imported, you copy from "REGEDIT" and down, with the last ". But you ned a program like Tascal RegEdit to import reg files. I didn't mention that because I'm so used to it. Sorry.
To my surprise I found out yesterday that turning off the screen while playing music over my bluetooth car stereo did not affect the music. It kept playing, while previously it stopped after a couple of minutes. I'm still using TCPMP.
And you haven't changed anything? I guess it's those HTC Gremlins again...or was that leprechauns?
Well I was forced to perform a hard reset a week ago, enabling myself to make a decent tweak list for my phone. As long as the HTC Langoliers stay away I'm OK with it . I'm still using a stock 1.66 Dutch rom.

[Q] Handsfree music control

I am commuting every day and using Waze app for traffic. I also connect my Nexus 4 to the AUX port of my car for music. Since the Waze app is always on, I need to pull the notification bar down to reach the music controls. However, the buttons are very small and due to the distraction it is actually dangerous trying to select the next track. Is there a better way to control the music player in this situation? An app would let me say a voice command to change the song I am listening and so on? Thanks!
Overlays
I haven't found a perfect solution, but I downloaded "Overlays" from the play store.
I use Rocket Player, so I created a profile that overlays one of the Rocket Player Widgets over the Waze App while it's running. It's not ideal, but it's better than me having to drop down menu, similar to yours.
Ideally I'd like Waze to interact with my player so I can use it hands free.
Hope this helps!

Cm 10.2 turn off Apollo on BT connection?

Is there a way to stop the built in cm music player to NOT play when it connects to BT audio?
Sent from my LG-D800 using Tapatalk
Anyone?
reno55 said:
Anyone?
Click to expand...
Click to collapse
Late reply, but here are a couple options that might help, depending on your needs:
Personally, I want Google Play Music to auto-play when I start the car, and I don't use Apollo at all. So in settings - apps - all - Apollo, I simply disabled it. Now GPM takes over.
If you don't want ANY music to happen over the BT car link, but you do want phone, (for me) it works to go to the details settings screen of the BT pairing and disable Music Profile while leaving Phone.
If your question is just how to disable auto-play, then I don't know how to help, sorry.

[Q] how to configure which app starts when car is connecting to my Note4?

Hi all,
How do I configure the autostart function? For example I have several streaming services (Wimp and Spotify) but whenever my car connects to my Note4 only Wimp is automatically started. I want Spotify to start. Or any other player for that matter.
Any way to configure that? Maybe with an external app?
Looking forward a solution for this as well. When connecting to my car the app Music starts and I want to set Google Music as default player.
Neur0mancer said:
Hi all,
How do I configure the autostart function? For example I have several streaming services (Wimp and Spotify) but whenever my car connects to my Note4 only Wimp is automatically started. I want Spotify to start. Or any other player for that matter.
Any way to configure that? Maybe with an external app?
Click to expand...
Click to collapse
Check out in Settings>Deafult App, there Select your App to open with or try Clear Deaults than when you'll connect To Car it'll Ask you..

Categories

Resources