Android MM rating widget idea
Posted: Thu Mar 31, 2011 12:58 pm
I just switched to Android, and I love my new phone. But I really miss being able to sync ratings with MediaMonkey. So much so that I am thinking of developing a widget to give me the functionality I need.
Ignoring that I am a really inexperienced coder, I just want to know if my idea is even feasible. Here's how I envision it would work:
* Assume you start with a device with no music. You connect your Android device and copy a bunch of music to the SD card using MediaMonkey by syncing a playlist with the device.
* You run a separate MM/Android Rating Sync script that generates some sort of file (xml? I don't know) and copies it to the device. This file holds the filenames/basic identifying track information of each track that you just synced, along with ratings.
* Now you're on your phone, and your MMRatings widget is running. The widget watches as you play music. When you play a song that exists in the ratings file described above, it shows the rating in the widget.
* You can now edit this rating, in the widget, and the widget writes back the rating to the file.
* When you come back to your computer, you run the MM/Android Rating Sync script again, this time it reads information and updates the MM database with any changed ratings.
A different, simpler workflow might have a background service running on your desktop machine that just looks for commands coming from the widget. So whenever you updated a rating on your phone it would send a command over that data connection to update the MM database. This would have the advantage of not having to fiddle with any new files to sync to the SD card (the downside being that I have no idea how to code background processes or programs that talk to each other over the net).
So, what do you guys think? I have never written a MM add-on, so I don't even know if what I've outlined above is possible. Any guidance would be most welcome!
Ignoring that I am a really inexperienced coder, I just want to know if my idea is even feasible. Here's how I envision it would work:
* Assume you start with a device with no music. You connect your Android device and copy a bunch of music to the SD card using MediaMonkey by syncing a playlist with the device.
* You run a separate MM/Android Rating Sync script that generates some sort of file (xml? I don't know) and copies it to the device. This file holds the filenames/basic identifying track information of each track that you just synced, along with ratings.
* Now you're on your phone, and your MMRatings widget is running. The widget watches as you play music. When you play a song that exists in the ratings file described above, it shows the rating in the widget.
* You can now edit this rating, in the widget, and the widget writes back the rating to the file.
* When you come back to your computer, you run the MM/Android Rating Sync script again, this time it reads information and updates the MM database with any changed ratings.
A different, simpler workflow might have a background service running on your desktop machine that just looks for commands coming from the widget. So whenever you updated a rating on your phone it would send a command over that data connection to update the MM database. This would have the advantage of not having to fiddle with any new files to sync to the SD card (the downside being that I have no idea how to code background processes or programs that talk to each other over the net).
So, what do you guys think? I have never written a MM add-on, so I don't even know if what I've outlined above is possible. Any guidance would be most welcome!