[Q] How to switch widgets on a conditional? - Zooper Widget General

I am using Media Ultilties which gives a 0 or 1 conditional if music is playing or not. What I am trying to do is show a zooper music control widget if music is playing and to show a weather widget in the same place if there is no music playing.
I did see the trick to show the pause button or show the play button using this conditional. However, I am not sure how to apply that to an entire widget. Also, the trick I saw only moves the button off the widget screen (changes the X value to 1000), it doesn't actually hide it. So my questions are:
1) Is there a better command to hide elements on a conditional, or is changing the X value (or y value) the only option?
2) How do I apply this conditional to 2 entire widgets, so one shows if music is playing and the other if music is not playing. I have and know how to use tasker, if that is involved anywhere.
3) If I move an entire widget off the space by changing the X coordinates, does it still consume resources? By that I mean, is the widget still loaded and, for example, would the weather data continue to update?
Thanks!

silkshadow said:
I am using Media Ultilties which gives a 0 or 1 conditional if music is playing or not. What I am trying to do is show a zooper music control widget if music is playing and to show a weather widget in the same place if there is no music playing.
I did see the trick to show the pause button or show the play button using this conditional. However, I am not sure how to apply that to an entire widget. Also, the trick I saw only moves the button off the widget screen (changes the X value to 1000), it doesn't actually hide it. So my questions are:
1) Is there a better command to hide elements on a conditional, or is changing the X value (or y value) the only option?
2) How do I apply this conditional to 2 entire widgets, so one shows if music is playing and the other if music is not playing. I have and know how to use tasker, if that is involved anywhere.
3) If I move an entire widget off the space by changing the X coordinates, does it still consume resources? By that I mean, is the widget still loaded and, for example, would the weather data continue to update?
Thanks!
Click to expand...
Click to collapse
Use that same one that you use to show and hide the play/pause button to hide every element you dont want seen or show the ones you do. I've done it and hidden over half of the widget once the music is playing and show the music controls.

Totally makes sense, I should've figured on that. Thank you so much for helping me out!

silkshadow said:
Totally makes sense, I should've figured on that. Thank you so much for helping me out!
Click to expand...
Click to collapse
always use opacity to show and hide if you can.

What is the command line to make the widget relocate when music is playing. ?

einrae214 said:
What is the command line to make the widget relocate when music is playing. ?
Click to expand...
Click to collapse
Relocate? How so? Explain what you want to do and maybe I can help.

Related

[Mod] Lockscreen Music Controls

I love the new lockscreen music controls on cyanogen mod but how can we get them onto other roms??
We need this mod!!
Any screenshots of this?
Sent from my HTC Desire running LeeDrOiD 1.4a
lock here: http://www.youtube.com/watch?v=O1KkySFhzp4&feature=youtu.be&a)
is this the lock screen controls you want? (the one from the video)
There is an app that works with either stock music player of music mod by Eliot Stocker on the market. Haven't tested it, but I can imagine it'll be along the same lines
Sent from my HTC Desire using XDA App
Re:
I'm running one of the latest cyanogen roms and yes the lockscreen controls are awesome. I really missed that part from sense. And I must disagree with dmpwd because I feel the controls are way better implemented on cyanogen.
1) You can choose if you want the controls always available or not (unlike sense which only shows it when music is playing
2) The sense version always slides back down after 1 or 2 seconds which is really really annoying. By the time I hear the next song and determine if I want to skip that one as well it has moved back down again *sigh*
And it's a lockscreen...why would I want to look at the album art when the screen turns back off anyway right after I move to another song? The only thing missing atm is the artist/songname but I wouldn't be surprised if they're working on that already.
Oh, and cyanogen has the longpress volume-up/down for switching songs as well (very handy in the car).
But to each his own . I'm loving the mods/tweaks of cyanogen.
otijhuis said:
I'm running one of the latest cyanogen roms and yes the lockscreen controls are awesome. I really missed that part from sense. And I must disagree with dmpwd because I feel the controls are way better implemented on cyanogen.
1) You can choose if you want the controls always available or not (unlike sense which only shows it when music is playing
2) The sense version always slides back down after 1 or 2 seconds which is really really annoying. By the time I hear the next song and determine if I want to skip that one as well it has moved back down again *sigh*
And it's a lockscreen...why would I want to look at the album art when the screen turns back off anyway right after I move to another song? The only thing missing atm is the artist/songname but I wouldn't be surprised if they're working on that already.
Oh, and cyanogen has the longpress volume-up/down for switching songs as well (very handy in the car).
But to each his own . I'm loving the mods/tweaks of cyanogen.
Click to expand...
Click to collapse
didn't know about that way to switch songs. sounds really good.
btw, would you please confirm whether cyanogen's lockscreen is the one on the youtube video posted in this thread?
thanks!
Re:
If you pause the youtube video at the 15 sec mark, that's what the controls look like. So it's the white controls only without the square borders that are shown. If you pause the music then it only shows the play button. And there's no fast-forward or rewind on longpress of the buttons for instance. I'm using the cyanogen nightly (cm_bravo-07272010-154338) atm.
I just found out the lockscreen controls also work for the Pandora app . No idea if the sense one does that as well but it's handy. Mostly use the default music app myself.
the controls in cyanogenmod V6.0.0-RC1 look slightly different than the ones in the video, they are more basic and I definately prefer them.
Anyone help on how to do this??
widget locker 1.1 has that function
try it
darkenergy said:
widget locker 1.1 has that function
try it
Click to expand...
Click to collapse
Already tried it, would defiantely prefer the cyanogenmod way ;-)
Re:
darkenergy is right. Widget locker is great. You can use any (stock) widget on the lockscreen since it replaces it. I totally forgot about it since I use QuickDesk (which is awesome btw, double tapping the homekey brings up an extra screen which is basically a layer over any open application so you don't have to go back to a homescreen, I use it for all the toggles, a music and messaging widget). The previous versions of widget locker had some problems with QuickDesk and I don't want to be without that app.
The great thing is that now the developer updated widget locker you can also use the doubleclick on the homebutton on the lockscreen, which is really awesome. A single press doesn't do anything, stays on the lockscreen. Just make sure you use QuickDesk as default home, set Widget Locker as launcher in QuickDesk and your normal launcher in Widget Locker
I just updated widget locker to 1.2.2 and put the Pure Music widget on the lockscreen. This means you have the album art there as well if you want it. You can even use the 4x4 widget. Works great. Widget Locker is also very customizable. Hide notification bar, which keys unlock, different background and so on.
liamstears said:
Already tried it, would defiantely prefer the cyanogenmod way ;-)
Click to expand...
Click to collapse
Why do you prefer the cyanogenmod way? It's great for sure, especially since you don't need another app but that's about the only benefit I see of the cyanogenmod way . Am all for it to see it as a default/option in other roms, just curious why you prefer it.
otijhuis said:
Why do you prefer the cyanogenmod way? It's great for sure, especially since you don't need another app but that's about the only benefit I see of the cyanogenmod way . Am all for it to see it as a default/option in other roms, just curious why you prefer it.
Click to expand...
Click to collapse
1 less app running and I prefer how handcent works with default lockscreen, dont like it with other lockscreens :-D

[Q] Lockscreen Music controls and Notification app shortcuts

Two questions that I have yet to find an answer to:
1) Has anyone tried or found a way to integrate a third-party media player (i.e. PowerAmp, Winamp, Music Mod, etc.) with the HTC Sense lockscreen controls?
2) Has anyone tried or found a way to put application shortcuts into the notification bar, similar to the Recent Apps function in some ROMs? To explain further, this would be custom app shortcuts, user-defined, in an interface like the shortcuts found in Skyraider 3.5.
Thanks for the help!
mikeyasuragi said:
Two questions that I have yet to find an answer to:
1) Has anyone tried or found a way to integrate a third-party media player (i.e. PowerAmp, Winamp, Music Mod, etc.) with the HTC Sense lockscreen controls?
2) Has anyone tried or found a way to put application shortcuts into the notification bar, similar to the Recent Apps function in some ROMs? To explain further, this would be custom app shortcuts, user-defined, in an interface like the shortcuts found in Skyraider 3.5.
Thanks for the help!
Click to expand...
Click to collapse
Bump on music controls
Sent from my infected incredible
I must say, I'm very surprised that no one has anything to say on these subjects...
I sure would like the leaked Honeycomb player with lock screen controls, OR even the Z player with lock screen controls would be great. I even downloaded the motorola (yeah I know sorry) music player and tried it but no lock screen controls. You'd figure with all the mods available some dev could do this, I WOULD PAY YOU FOR IT! Honeycomb with lock screen $____.__ you name the price.
As for the recent apps in notifi bar, I think, but not 100% sure, the Z roms have that.
TokedUp said:
As for the recent apps in notifi bar, I think, but not 100% sure, the Z roms have that.
Click to expand...
Click to collapse
mikeyasuragi said:
2) Has anyone tried or found a way to put application shortcuts into the notification bar, similar to the Recent Apps function in some ROMs? To explain further, this would be custom app shortcuts, user-defined, in an interface like the shortcuts found in Skyraider 3.5.
Click to expand...
Click to collapse
Not looking for Recent apps, but user-defined apps.
For example, I find myself wanting to be able to access the following apps the quickest: Twidroyd, Google Reader, Miren Browser, and Google Voice. They may or may not be in my recent apps, but with a permanent shortcut in the notification bar I can access them from (almost) any screen. I've used Bar Control and Bartender Lite, and they get the job done for the most part. But they also take up quite a bit of room in the notification panel.
The way that Skyraider implements the recent apps into the header of the notification panel would be great for custom shortcuts, if only someone knows how to do it.

Widgets in the notification panel

Would it be possible to get widgets like power amps to be placed in the notification area so that I could have the music controls there rather than pressing through to the main app or having the widget on a page? Is there already something like this?
Sent from my PC36100
not sure what your current status is, but if you run AOSP roms, you can get the music controls on the lock screen...same goes if you have widget locker or other apps of that style from the play store.
yeah i've got widget locker and have music controls on there. Just wondered if there was some way to get it into notifications like 3.0.
Found a thread which recommends the app quick desk. Not quite what I want, as its not as fast or convenient as having something in the notifications, but close enough and does a job.

Better lock screen on Touchwiz?

I know a lot of people don't like Touchwiz UI so they would suggest moving to AOSP our CM but I enjoy the motion features built in to the TW ROMs. With that in mind, are there any mods that can make the lock screen more functional?
I had CM7 on my captivate for a while and I loved having the audio player accessible from the lock screen. I tried widget locker on this phone (GS3) but it seemed to slow it down and the music controls were always there, even when I wasn't using the music player. If I remember right, on CM7 the music controls only showed up when I was listening to music.
^^^^ I also chose to stay TWUI due to all the features the phone provides. Hopefully we can get some devs on board to update the lockscreen. I would actually like an htc weather lockscreen port....
Sent from my SGH-I747 using xda app-developers app
Widget locker. In the play store keep all the features of tw but totally and easily customizable lockscreen
Sent from my SGH-I747 using xda app-developers app
bruceo said:
Widget locker. In the play store keep all the features of tw but totally and easily customizable lockscreen
Click to expand...
Click to collapse
I haven't found the setting that only makes the music controls appear when I am listening to music. You're saying it has that ability?
Organized_Chaos said:
I haven't found the setting that only makes the music controls appear when I am listening to music. You're saying it has that ability?
Click to expand...
Click to collapse
I use PowerAmp and the music controls (which look great) only show up when music is playing.
I presume you already know about adding icons, weather, stock, etc. to the lock screen via TouchWiz? Some replacements look interesting (I want one, too, hehe!): Hive Unlocker. Here's a list: http://techthumbs.com/replace-your-android-phones-lock-screen
Organized_Chaos said:
I haven't found the setting that only makes the music controls appear when I am listening to music. You're saying it has that ability?
Click to expand...
Click to collapse
Widget Locker does have this ability via widgets. In particular, Phantom Music Control https://play.google.com/store/apps/details?id=cz.jhg.musiccontrolwidget&hl=en from the market is basically a widget with player controls along with music metadata. The widget has a neat ability to disappear when there is no music playing. HOWEVER, the widget is still there along with the controls so if your screen accidentally turns on, you run the risk of pressing those "invisible" buttons. I haven't used it since Gingerbread so they may or may not have addressed this issue.
Or if you're main concern is to just change tracks, look for a ROM that has "Long-press volume to change tracks". This is very convenient when you're working out or any other situation where you don't feel like turning your screen on just to change tracks. I'm using The Devil's Reject right now which has it already baked in. Very cool ROM as well!

Google Play Music & xposed

I am using xposed on my HTC M8, and the below module that removes the default lock screen, which is awesome.
http://repo.xposed.info/module/com.mohammadag.disablesense6lockscreenwidget
However, I have a question and I am stumped. On the default lock screen, when using the Google play music app, controls were available to pause, and skip to the track. These are not available to be added to the "new" lock screen as a widget etc.
Any thoughts on how I can have functionality without going back to the default lock screen.
I would suggest asking that on the modules XDA thread (if there is one). I use viperom and i believe that has a default android lockscreen option, i dont use it so dont know if the pause play or next work on it.
So I'm using this framework to do something similar:
http://repo.xposed.info/module/com.minimv.senselockscreen
From the the framework reads it just disables the widget not the whole lockscreen. You can add the google music widget either by swiping down and clicking the plus or swipe to the left and see the plus. You could also use something like dashclock with the google music extension as well.
Hope this helps

Categories

Resources