[Q] Delete current song using pebble - Android Q&A, Help & Troubleshooting

I want to be able to delete the currently playing song and skip to the next one from my pebble watch.
I don't really mind which music player to use if this can be done.
I have HTC One, Android 4.2.
So far I got this far:
This talks about using tasker to delete a song and requires a rooted device:
Google: "Long press headset button to delete playing song" (sorry for the "Google" link, I'm a new user and XDA won't allow links)
Also "PebbleTasker" allows linking pebble with tasker.
The thing is my device is not rooted, and I don't want to root it just to find out this doesn't work.
Is there an app/workaround to get this done without rooting ?

Related

Beaming to the Q - A Simpler Way to Launch Apps

So you've got a Q, and you've learned how to adb install apps to it... maybe even put a launcher on. But if you've got an NFC capable phone/tablet, you need not mess around with a launcher: your device will be your launcher.
As most of you probably know, the Q ships with a fully capable NFC radio. But for whatever reason, google only ever gave it one official function... beaming out a link the the Q App in the Play Store. Even if you already have it installed. They could have just as easily used a tag to do that job. But I've discovered that if you're running a sideloaded app, the Q will beam that app to your phone. Clearly, we're dealing with a fully beam-compatible device.
However, the Q is programmed to automatically push it's beam out when it finds a device that can receive it. To overcome this, you must open settings (either via a launcher or via adb shell, this is well-documented) and go to the "more" menu. Turn Android Beam OFF while leaving NFC on. This allows the Q to still read your incoming beams (they act just like tags, for compatibility) but it stop apps from opening unexpectedly on your phone.
Once you've done that, you can open any app installed on your Q simply by opening it on your phone/tablet and beaming it over. You'll still need a mouse or keyboard to navigate, but you won't have to futz around with getting to the launcher. This is working on my unrooted Q.
(I don't think this has been discussed before. I hope someone finds it useful!)
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
dragon788 said:
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
Click to expand...
Click to collapse
This basically opens the app like an android app on the Q. To click on things you need a mouse and an otg cable.
dragon788 said:
Thanks for the info, I was actually wondering whether this was available on the stock firmware. When you say you still need to launch/control with OTG, do things like Youtube links not autoplay when Beamed?
Click to expand...
Click to collapse
Animal24 has it right. And yes, it's available stock and unrooted. If you send a video to the Q, it will still work. However, when the video stops, it will return to the open app, not the standard home screen. If I recall correctly, music will play in the background if an app is open, and the lights will not dance.
That all said, I haven't used the Q since the new music lauched. :/
infeKtion said:
Animal24 has it right. And yes, it's available stock and unrooted. If you send a video to the Q, it will still work. However, when the video stops, it will return to the open app, not the standard home screen. If I recall correctly, music will play in the background if an app is open, and the lights will not dance.
That all said, I haven't used the Q since the new music lauched. :/
Click to expand...
Click to collapse
With CM10.1 and XBMC, I'm planning on using the Q to replace my Revue. I'm all OTA so I don't have a cablebox for the Revue to interface with, and with Aptoide I'm going to see if I can get the new Primetime working on the Q for finding and watching shows from Netflix/etc. Hopefully some year Primetime will do generic Amazon links instead of the GoogleTV apps. I'm using the new Play Music on my Q and using my phone as a remote. I've discovered that I can't seem to beam from the new Play Music to another device, or at least when I do it won't autoplay.
dragon788 said:
I'm using the new Play Music on my Q and using my phone as a remote. I've discovered that I can't seem to beam from the new Play Music to another device, or at least when I do it won't autoplay.
Click to expand...
Click to collapse
How are you doing this? ATM, I'm using BubbleUpNp from both sides, Q and phone. This allows me to still use Google Music as well as All Access. If there is a way to get the stock aplication to work in any way, please share
FadedLite said:
How are you doing this? ATM, I'm using BubbleUpNp from both sides, Q and phone. This allows me to still use Google Music as well as All Access. If there is a way to get the stock aplication to work in any way, please share
Click to expand...
Click to collapse
Hi FadedLite,
I'm using DroidMote to use my phone as a remote to the Nexus Q. I also use ShareKM, another fantastic option that lets me mouse "over" to my Nexus Q from my laptop and control the cursor with my laptop's mouse. One thing I need to figure out is a way to trigger DroidMote Server and ShareKM to start listening on boot, otherwise I have to use my OTG plugged mouse to open the programs and start them up once.
To use Google Music with All Access on the Q, as I stated I'm running CM 10.1 and they have a Gapps package that gives you the Play Store and Play Framework, so you can install Google Play Music and Movies & TV, etc.

Spotify app?

What I would like to have is a nice Spotify app for the Gear Fit.
The media manager doesnt show which song is playing etc. It works for the songs played from the media player on the phone ofc but not as well with Spotify.
What i would like to be able to do:
Chose Playlist
Add songs to favourites / other playlists
See an icon with the artist like on spotify (maybe as background for the app/clock while music is playing?)
(Being able to search for music maybe isnt needed , it would be to bothersome, better pick up the phone)
Also i have a qustion about the built in memory in the Gear Fit , would it be possible to create an app which would make it possible to use the watch as a standalone medie device? like if youre going to work and dont want to bring your phone with you.
Ex: Download a spotify playlist and play it from the watch directly to bluetooth speakers or something
The real question would be how much memory the Gear Fit has , and if we can access it.
Best Regards / Christoffer
P.S If you are experienced in programming these apps, please be so kind a send me a mail , would like to learn how to make my own apps for this watch and maybe could be of help if needed Do have earlier programming experience, third year computer science engineer.
Khenrix said:
What I would like to have is a nice Spotify app for the Gear Fit.
The media manager doesnt show which song is playing etc. It works for the songs played from the media player on the phone ofc but not as well with Spotify.
What i would like to be able to do:
Chose Playlist
Add songs to favourites / other playlists
See an icon with the artist like on spotify (maybe as background for the app/clock while music is playing?)
(Being able to search for music maybe isnt needed , it would be to bothersome, better pick up the phone)
Also i have a qustion about the built in memory in the Gear Fit , would it be possible to create an app which would make it possible to use the watch as a standalone medie device? like if youre going to work and dont want to bring your phone with you.
Ex: Download a spotify playlist and play it from the watch directly to bluetooth speakers or something
The real question would be how much memory the Gear Fit has , and if we can access it.
Best Regards / Christoffer
P.S If you are experienced in programming these apps, please be so kind a send me a mail , would like to learn how to make my own apps for this watch and maybe could be of help if needed Do have earlier programming experience, third year computer science engineer.
Click to expand...
Click to collapse
Hi there,
I am currently working on a spotify app for gear fit
Great,
i would love to test it when you´re finished with developing.
Thanks
Gamma91 said:
Hi there,
I am currently working on a spotify app for gear fit
Click to expand...
Click to collapse
i would love to test it for you!
I could also help with the testing!
another tester here.
I would spend you a beer if it works ?
Sent from my german Oneplus One using XDA
Spotify app
How Inzanley great it would be if someone made a stand-alone for Tizen. Anyone have any news on this?
Any progress on this?
Gamma91 said:
Hi there,
I am currently working on a spotify app for gear fit
Click to expand...
Click to collapse
This is fairly much the only thing that i feel is missing from my gear fit. I would be willing to help out if you need or send you some cash to help finish it.

[Q] Help Finding or Creating a TRUE voice controlled music player

I have searched these forums and I have tried damn near every app I can find relating to voice control. I simply want an app that controls a music player (doesn't even have to be google play as long as I can integrate play music into the player) and by control I mean: NEXT for next song and PREVIOUS for previous, PAUSE, for pause, etc. The only thing close is a few apps like Utter where you can say play music, and that's it or Commandr for google now where you have to say like 7 idiotic phrases to get to "NEXT". I know this is possible because from my s2, s3, s4 the STOCK Samsung app had voice control with NO WAKE UP PHRASE and no button pressing. You simply turned on the setting and when you opened the player, you just say "next" "previous" "pause" etc and it was amazing. I even integrated google play online library to the player. HOWEVER the idiots at Samsung took the voice features out of the s5 and Note 4 which I now have and I've spent months trying to find an alternative for my car. I don't know if any of you used this but it's amazing putting your phone down in your car and just simply saying "next" "play" etc...not having to say stupid things like Hi galaxy or wake up or ok google first even if those platforms had a next search function. IF ANYTHING can someone maybe edit the s4 Samsung music player stock app for use in the Note 4. I have tried to install it on my Note 4 but it will not function, even replacing the stock one in the Note 4. My phone is rooted, has custom recovery, xposed framework, and I am willing to do whatever to get this feature. Thanks

[DEV] Stop sound from official Radio, Mediaplayer, DAB, etc

Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
Decompile stock apps and look inside.
mumu02 said:
Hello,
I'm trying to write a mediaplayer application for the MTCB. An issue that I'm not able to solve now is to stop the music from the other stock applications when my application start.
Does anybody has an idea about how to do that ? Seems that's not a possibility to use audio focus ...
Any help will be much appreciated.
Click to expand...
Click to collapse
You should try and PM Booroondook. Below is a Google-translation of his post on this matter:
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
The developers originally wanted to make a device completely replaces the car's radio. Moreover, up to the most complete simulation interface to motorists who allegedly used to. In addition, radio conceived such that it immediately ( "out of the box") would perform all the functions inherent in the car radio. Therefore it developed a set of so-called "factory" of applications that simulate the function of "advanced" regular radio - "Radio", "a DVD", "Music", "Video", "Photos", "the iPod," "Handsfree Bluetooth". By this set has also been added to the navigation functionality - as Application- "starter" selected by the user of the navigation program.
More precisely, mutual exclusion - integration system has been created for these applications. You work, "Radio", you run the "Music" - "Radio" is turned off. Launched the "Video" - disconnected "Music." And so on. It has even invented a special function (called by the MODE key), switching these applications in a circle - by analogy with the head unit.
These applications (according to developers) would have to cover all the needs of the motorist. And the Android operating system was the basis of fashion or marketing reasons, or both.
All would be good, but the developers have not considered (or ignored) the fact that the Android OS allows you to install additional applications. These additional user-installed applications do not "fit in" with the original logic of the functional simulation regular radio.
We take your specific example. You factory application "Music" chose a third-party, the establishment of additional "Google Music" app. It is clear that it is your choice to which you are entitled. But the developer is not able to assume that you install this application - and therefore your "Google Music" is not involved in "switching system" applications and "dampens" the other application.
What's in this case? Either put up with such behavior (ie, do not forget to manually turn off the "Radio" before turning on the "Google-Music"), or you can use some tricks to automate this business - good Android OS lets you do things with the help of supporting applications and system modules.
Members of our branches also have repeatedly faced with problems similar to yours. Force enthusiasts have developed tools that optimize the behavior of third-party applications such as media players.
Do not be lazy, look at the cap, there is a lot of links. Note the module Car Audio Service, as well as a set of tools from a reputable MVG-V70.
.............................................
Link to original post
.............................................
Unfortunately he is not that active on XDA
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!
sarruma said:
Could you please elaborate? I'm having the same issue, however I want to apply this behaviour to already existent apps, eg. Google Play Music (to pause everything else when Google Music starts)... Does your solution apply to my case and how should I procceed? Thank you so much in advance!
Click to expand...
Click to collapse
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.
mumu02 said:
I think one solution is to write a very simple application with just the mentionend code Inside. Then use tasker, and when you launch Google Play Music ask him to launch the small program before.
I can build the small app for you if you want to try ?
For my media player it's not working 100%. I'm able to cut off the sound when I launch my app but when I want to launch again the stock radio , it dosen't actually stop my mediaplayer since I can't get any notification Inside my app from the stock app.
Click to expand...
Click to collapse
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!?
sarruma said:
What do you mean that you cannot get any notification?
What I've been doing till now is create a custom app using tasker (with a plugin called App factory, since my knowledge in programming doesn't go so far) and in fact use the created app to force close the radio app before launching, in my case, Google Play Music. But then, when I launch the radio app (or even the Bluetooth app)again, Google Play Music stops... So every shortcut of my preferred music app or even the mode.ini I use for the Xposed module I need to cycle through hu modes using my swc is associated not with the actual app, but with one custom made to suit my needs. Of course is kind of a mess, but so far haven't found anything better and working... Could you suggest anything better? Do you believe that there's an easier way for my case? Thank you so much for your help..!
Click to expand...
Click to collapse
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place
mumu02 said:
What I mean, there is no communication between stock app and let's say a regular android app. I mean, when you launch a stock app, there is no way (at least I didn't find it) for another regular app to know that you launch the stock one.
In fact what I want to do is that when I launch my media player it stoppes the Stock app (This goal is reached) but then when I launch again a stock app, it should stop my mediaplyer app (Actually it just put the sound done. To sumarize what I want is that each time I bring an app in fordeground it should stopp all other (Music player). In fact it's the case between the stock media player and the stock radio.
So I think so far we are both at the same place
Click to expand...
Click to collapse
Yeah, no matter how much I have searched, I haven't found any better solution..! But I'll keep trying, this solution doesn't satisfy me and isn't at all instinctive... Any way, I'll let you know if I find anything else! Cheers... ???
I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?
typos1 said:
I thought all this was sorted about 3 years ago when @agentdr8 developed his XposedMTC app ?
Click to expand...
Click to collapse
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).
agentdr8 said:
My work on XMTC ceased a while back, but what was posted above was correct at the time. The audio output was controlled by the MCU, and triggered via different AudioManager object parameters.
The problem is, all Android app-based audio is done via 1 MCU output (av_channel=sys IIRC). So anyone designing an app would have to determine what the current av_channel parameter is set to. The stock MTC apps do that sort of (they just assume the newly-launched app is taking over audio control, and switches the av_channel).
Click to expand...
Click to collapse
That was pre @7floor audio mod which bypasses the MCU and gives Android control of the audio IC, I wonder how XposedMTC works with that ? Not heard any one say that I remember.
mumu02 said:
If someone is interested, finally it's very simple
private AudioManager am = null;
this.am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
// Cut sound from stock audio applications
this.am.setParameters("av_channel_exit=dtv");
// Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
Click to expand...
Click to collapse
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help
p_mike83 said:
Does this code work as it is?
It is a java code isnt it?
You said it worked for you to cut the audio from stock apps, but inside there is the option to enable it as well? I don't understand?
I would like to stop dvd using this code in tasker. I assume I have to change dvr with dvd and remove this part : // Enable sound from stock audio applications
this.am.setParameters("av_channel_enter=dtv");
I am sorry but I dont unsterstand java.
A time ago I creaTed Modeswitch https://forum.xda-developers.com/an...t/app-modeswitch-spotify-swc-control-t3310966
An application to help with audio focus on our devices. I am now trying to optimize it to speed it up, and now allow it change the audio focus even if the mode circle didn't run ( that was a limitation of the releases until now)
I would appreciate your help
Click to expand...
Click to collapse
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.
typos1 said:
Wouldnt it be easier to go into factory settings and uncheck "DVD" ? That would remove the DVD from the circle entirely.
Click to expand...
Click to collapse
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?
p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !?
Click to expand...
Click to collapse
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.
typos1 said:
Right, I thought this was sorted by @agentdr8 3 years ago with MTCXposed.
Click to expand...
Click to collapse
p_mike83 said:
I am aware of this. Actually my app has already a setting to exclude dvd from mode circle. But its not what I am trying to do. If you are listening to a track on cd/dvd disk and you open spotify (or other music app) the audio from the track continues to play, and you have audio from 2 sources !
Click to expand...
Click to collapse
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.
agentdr8 said:
It was something I tried to address with XMTC and had moderate success with. Unfortunately that code has aged beyond the current ROM releases, and I didn't have time to keep it up to date.
In order to catch all launches of audio-outputting apps, you'd need an Xposed module to hook into either the current Launcher process to know when apps are opened, or into the system ActivityManager. From there, you could interrogate the AudioManager instance and get/set parameters to flip audio sources. It was something I was looking into for XMTC, but never made any progress.
EDIT: Not sure if you've tried adding in this to switch away from the dvd source and back to the Android source:
Java:
am.setParameters("av_channel_exit=dvd");
am.setParameters("av_channel_enter=sys");
Also, I don't think any of this would matter if the @7floor mod was done. Everything should be piped into the standard Android audio streams at that point.
Click to expand...
Click to collapse
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont use XMTC for that)>
typos1 said:
Oh, I thought that XposedMTC was still THE way to stop 2 sources from playing at the same time and to add extra sources into the src button (I use the built in apps myself so dont used XMTC for that)>
Click to expand...
Click to collapse
Thanks! I came along this as I was trying to find the answer. (You have to remove "this" from the code). But anyway I already found an other work around ?. So time for testing my app. The first tests were successful!?

Assistance Required with Google Music Next/Previous Buttons

Hi All,
Recently purchased and installed a Joying head unit (4GB, PX5 Octa Core) (link)
I use google music for all my music needs. I have uploaded all my personal music onto the google music cloud servers so I can stream or download them whenever I want making it an ideal solution. I installed the google music app on my android head unit and everything works great appear from one small thing.
The steering wheel NEXT and PREVIOUS buttons are not responding on the music app. Its killing me cause at the moment every time I have to change a song ive got to touch the screen (not ideal when driving).
Volume buttons work fine but ive tried different things to try and get the other buttons to work within the app like button re mappers via the app store etc.
Does anyone know of any way to get the NEXT and PREVIOUS song wheel buttons to work with the google music app. I will love you so much
I think its a software thing with the app cause poweramp and some other music players work with the wheel buttons. If this is the case I was hoping that there is an app that can run in the background which can pickup the wheel buttons and translate them so they work with the google music app.
Any assistance would be great. I hope someone can help.
Did you ever figure this out? I am having the same issue with Spotify.
Try MTCD forums as you have a MTCD not MTCB unit. Suggest searching first for the answer.

Categories

Resources