Simple music control widget capable of hiding itself while there is no track playing. It is designed to be used with WidgetLocker Lockscreen, however it is possible to use it on your homescreen as well.
Why would I code something like this?
I have switched from Sense to CyanogenMod, and I just hated its lockscreen. So I installed WidgetLocker, and set it up so it looks and behaves like HTC Sense lockscreen. However, I missed some decent music control, because all the widgets made me start playback in my pocket when I did not wanted to. So I just coded my own widget able to hide itself when there is no active playback. Since there is a lot of users with various requests, I am working on support of more players all the time.
Phantom Music Control (Google Play)
Phantom Music Control Pro (Google Play)
1.67: - DashClock Widget Extension - New chromeless theme - Several bugfixes 1.66: - Various bugfixes 1.65: - It is now possible to change music player via launcher icon - Improved Sony Walkman compatibility - Added instructions for Winamp users who do not receive track info - Fixed bug that caused the widget not to hide on some phones 1.64: - New CarbonRoundBlueGlow theme by Jeppe Foldager - Sony Walkman (Xperia) support - Better landscape support (widget doesn't lose information, text is not cropped) - Official Last.fm support, that allows you to show track info i.e. in n7 Player 1.63: - Usable as Android 4.2 lockscreen widget - 2 new themes by DeVviL - Updated translations (now localised to 19 languages!) - Some bugs and crashes fixed 1.62.x: - Fixed bugs and FCs. I am SO SORRY for the inconvenience, that I couldn't possibly be any more sorry. Please, review your rating if you 1-starred the app. Thank you. 1.62: - Due to new Google Play policies, PayPal payment option had to be removed - Holo theme implemented - The widget should be able to wake itself soon after it has been killed by 3rd party app - API (used in Web Remote for Phantom Music) no longer requires the widget to be actually placed on screen - Several bugfixes 1.61: - Market purchase available! - Fixed 1.5 compatibility - Added timeout option for Advanced Compatibility Mode (for support purposes) - Updated translations 1.60: - Settings available from launcher, it is not needed to remove the widget anymore - Text color can be changed now - Fixed "Show music player on touch" for Advanced compatibility mode - Fixed situations when you had to enter activation key while already activated - It was made clear that there is also refund policy for people unsure about purchase - Updated translations 1.59.1: - Unfortunately, new version of doubleTwist no longer supports service binding. Therefore it is needed to use Advanced compatibility mode instead. Sorry for your trouble, I cannot control this. 1.59: - PlayerPro fixed - Ads removed from free version - Some Samsung users can now use Stock 2.3 profile if Samsung does not work right - Translations updated. Now localised to: English, German, Dutch, Korean, French, Turkish, Czech, Spanish, Italian, Hungarian, Russian - Advanced Compatibility Mode tweaked for Samsung users - Some minor performance tweaks 1.58.2: - Bugfixes regarding 3rd party support, Google Music, UberMusic, etc. 1.58.1: - Fixed bug in broadcast sending (for developers) 1.58: - Support for 3rd party apps to utilize Phantom's wide range of controllable players - Some performance and battery life optimizations; if you experience battery drains from older versions, please uninstall Phantom completely and install it again - Added Turkish translation, French updated 1.57: - Localised to Dutch, French, Spanish, Italian and Russian (some fully, some partially); thanks to all the translators! - Changed activation system, so users does not have to contact me when they flash different ROM (experimental) - With next version of BeyondPod, scrobbling should not be required anymore 1.56: - Native BeyondPod support (experimental) - New Aero theme (WMP style) - UberMusic modified for new package name (Beta 1); Alpha is still supported by Advanced compatibility mode - Ability to hide control buttons (requested by some users to only display track info) - Advanced compatibility mode tweaked to be more reliable - Translation support - Hot-swap icon has lower opacity 1.55: - Music player hot-swap (ability to change the controlled player in real time) - Scrollable track information - Ability to open any music player in Advanced compatibility mode - Increased Advanced compatibility mode performance (let me know if you experience any problems) 1.54: - Compatibility mode tweaked for MIUI - ScrobbleDroid and SLS can be used to read track info in compatibility mode (works with BeyondPod, Zimly, and many others; you do not need to install the scrobblers) - Ability to swap the track information order 1.53: - UberMusic (Fede's Music App) support - New Metro theme (WP7 style) - Custom background settings (any color, any opacity) 1.52: - Advanced compatibility mode tweaked for MortPlayer - License activation dialog fixed for copy&paste - New License model - version Pro prices from under $0.99! (all current licenses work as transferable 3-device licenses) 1.51: - Advanced compatibility mode tweaked for Meridian and ³/Cubed 1.50: Introducing Phantom Music Control Pro! Phantom Music Control Pro has some great new features: - Android 2.3 (and higher) stock music player support - New Google Music player support - Advanced compatibility mode that supports any player with headset controls (i.e. Winamp) - Experimental Samsung support - Honeycomb theme - Ad-free - And you will support independent developer and encourage me to add new awesome features! 1.12: - Natively supports PowerAMP - Compatibility mode, that allows some root users with custom ROM to control almost any media player (2.3/Gingerbread stock, Winamp, etc.) - Battery saving mode is turned off by default because of some problems in Android 2.3/Gingerbread 1.11: - doubleTwist Player is now supported 1.10: - Music PlayerPro support! (full version only, trial is not supported) - Added donation guidelines for users without PayPal account - If you use "Show music player on touch", it will get you to "Now playing" screen during playback in some players (stock and MusicMOD do not allow this, HTC and PlayerPro do) 1.9: - Added new Sense-like theme (thanks to @GMKcz for the screens!) - Some layout cleanups 1.8: Fixed two embarrasing and long-lasting bugs - Music player now can be launched on HTC as well - Donation button fixed; please buy me a beer if you like the widget - I put wrong link to ALL older versions Thank you, Ryan, for noticing and testing! 1.7: - Added tasty chromeless theme (see screenshots) - Volume buttons were made easier to reach - Added option to hide current track info - Some minor layout cleanups 1.6: - Bugfix: "Problem loading widget" resolved definitively; themes and opacity settings only work on Android 2.2/Froyo and higher - Music player can be started by clicking on a song name as well - Buttons were remastered to higher resolution 1.5: - Possibility to show volume control (optional) - Fixed battery saving mode 1.4.2: - Fixed background issue I have caused. Sorry for that. I need some rest. 1.4.1: - Fixed "Problem loading widget" and "Force close" on some configurations. If you still experience this issues, please uninstall the widget, reboot your phone and install it again. Thank you for understanding. 1.4: - Added battery saving mode that consumes almost zero energy (if you had any battery issues with Phantom, simply uninstall it and install again; it should disappear) - Added inverted theme with black buttons on white background - It is now possible to start music application by touching widget background (experimental feature, might not work correctly) - Bug fix: The background no longer disappears 1.3: - Possibility to choose opacity of the background - Minor visual changes and settings+defaults cleanup - Bug fix: If "wait for WidgetLocker to unlock" is checked, widget no longer shows up on lockscreen if playback was already stopped 1.2: - Compatible with new versions of Music Mod (1.8+) - Possibility to hide widget on WidgetLocker unlock (such as HTC Sense lockscreen does it) - please note that it might be delayed - Possibility to reveal the hidden widget on touch for a while - Delay can be set to shorter intervals now 1.1: Fixed player detection and switching (restart no longer needed)
You can use Phantom Music Control Pro to control music from your own application. Just check "Allow 3rd party apps to control music" in widget settings, and you are ready to send some intents.
Broadcast intents received:
Broadcast intent returned:
with 2 extras:
- String named "label" with song info formatted by user's preferences
- Boolean named "playing" with playstate (true = playing, false = stopped/paused)