Modifying android music app - G1 Android Development

Hi
I want to extend the existing android music app so one can make bookmarks in their mp3s (useful for audiobooks in mp3 format)
if there is an android mp3 player which already has this feature please let me know
otherwise:
i have downloaded the android source code (release 1.0) and have modified the music app to store and load a bookmark (for now i just save the value of the position of the mp3 and it isn't linked to a specific mp3. (for now!)
When i build the app using make in the android folder and replace the Music.apk on my phone ( it runs JF1.43 ) i get an exception starting the music application ( NullPointerException in a row which is blank in the actual source code, so the row numbers in the exceptino and the rows in the source don't seem to match )
This also happens if I don't change anything in the downloaded sourcecode.. I just compile and replace the apk and i get an exception...
Pushing the same apk on the emulator works... it starts and works without issues...
is the android version on my phone (JF1.43) no compatible with the source code i downloaded (release 1.0) ?
If so what to do to get the source which is compatible ?
Since this didn't work I made a copy of the music app and renamed the package... normally installing the compiled apk of the renamed music app works... (although there are some popups asking me:
Complete action using:
Music
MyMusic (i named my modified version mymusic)
i guess it is because the intents have the same name... renaming them should fix this but I would prefer replacing the existing Music application
Thx for any help

Did you re-sign the apk using JF's test keys?

...
hm no i did not...
how to do it ? (still new to this )
i didn't really find anything useful in the forum...
is it the testsign.jar in JF's build environment ?
if it is: I tried using it but I still got exceptions on the phone

On your original question, I've been looking for this feature too. Merdian Player (available for free in the market) has this feature. It remembers the last music file played and the exact position, and even after closing/rebooting it will resume playback at that position.

Related

HTC Music... source code?

Evo's default music app handles M3U playlists easy, which is great but unfortunately doesn't support it's unicode twin - M3U8. M3U8 and M3U playlists are exactly same thing (minus utf8 encoding), so I really see no reason why HTC didn't include it in their supported-playlist-formats list.
Knowing Android is open source and hoping that HTC did the same, did HTC release source code for their Music app? I'm new to android, but not new to programming. I'll have no problem in adding M3U8 support to HTC's music app but couldn't find any source code to work with. Anyone here has or could point me in right direction to the HTC Music source code (if there are any)?
Tanks!
PS: probably could have posted in the dev section, but being new to android and owning HTC Evo, felt that posting in Evo's app section was appropriate
HTC apks and framework are closed source.
bummer... seems like its back to editing smali code again
I take that back....
Tried 3 different music apps: doubleTwist, HTC Music, and Nemo Player. All three are from different companies/developers yet they all seem to run on same database. Same music files, same albums, same playlists - including those which I already manually deleted from sdcard but for some reason still show up in all three players.
Conclusion? Those music apps are nothing more that just a UI for android's music engine, well maybe except some minor features that each app tried to add to android, but other than that - they do same thing, using same database.
My first thought is that the android core is the one that scans sdcard for audio and playlist files and stores the results in public database. Now, if that's true then, since android is open source, I'll simply have to track down where in the android code does it differentiates between "valid" and "invalid" playlist file.
Anyways, so much for that. See ya in few days while I try digging deeper into android code
EDIT: using notepad++, I changed all M3U playlist char encoding to UTF8, which technically is not a proper M3U file, but android properly parsed the non-ansii characters as I wanted. WOW!
Android is the ONLY mobile OS that was able to play UNICODE m3u playlists by default! Now I'm even more happy with Evo than I was

ProjectM (Milkdrop) for Android

Just wanted to link to this thread (http://forum.xda-developers.com/showthread.php?t=935249) in the Android Software Development forum cause I'm diggin' it. User KLoNe1 has been working with AerialX on getting ProjectM (milkdrop) operational (for those that don't know this is a winamp plugin for music visualizations). He's supplied a build that's working for me using the stock music player. The current .apk can be found in post #22 (post #29 also has the .milk files from the actual Winamp plugin that work too) and you will also need to create the following directory on your sdcard:
projectm\presets
and in this folder you'll need to paste all the .milk files from the presets.zip in post #24. What you're left with is the ability to select Androp as your live wallpaper, and your live wallpaper becomes music visualizations
Nice!!
Posted from my Time Machine!

CyanogenMod 7 Music.apk for Skyrocket

Hi all,
I am new to Android development and am still very much in the learning phase but I wanted to share what I am working on with the community. In the name of having a open source music player that can be freely modified I have extracted the CyanogenMod music player and ported it to be used on the Skyrocket. To date I have added in some very basic support to for podcasts but plan on making more mods in the future to support bookmarking of audiobooks.
As I said, I did this In the name of keeping an open community so I am willing to share the source code to whoever PM's me (I didn't post it due to not knowing the policy on such things).
Changes in this version:
1. Option to ignore prev/next bluetooth button pushes while playing podcasts
2. Option to delete podcasts after playback
3. Option to ignore bluetooth stop commands while playing podcasts (this is a fix for loosing the bookmark on podcasts when shutting off Toyota cars while playing)
Intallation:
adb remount
adb pull /system/app/music.apk skyrocket-orig-music.apk
adb push music.apk /system/app/music.apk
using a file manager install music.apk
Thanks,
Dave
hi there~!! thanks a tons~!! i was looking for this!!
but i'm having a prob here...i installed it on my htc diamond(VGA screen) and Xperia X8(HVGA screen) and having this prob the app not correctly resizing itself to my screen~it seems that this app is too wide..~
it looks like you designed it only for widescreen phones? no?
please assist me ><
and this may be late but, damn this is damn good!! i love this player!! you did a great job~!
thanks a lot

[APP - BETA] My Player (Getting back playlists like in old Sony Ericsson Phones)

Hi.
I'm developming a new music player app.
This is a simple music player, the main idea for starting to develop it is because I really miss the function for making playlists in old Sony Ericsson Phones (w580, w705, W300, etc), if you don't have idea what I'm talking about, in those phones when you want to create a new playlist, it displays a file browser and you could mark all folders and files to include in your new playlist, I have been testing a lot of music players for android and I couldn't get any with this function. This app is maked for getting that.
Supported functions:
- Repeat one track
- Shuffle playlist
- Show current playlist
- Create own playlists
- Delete own playlists
- On exit, save current playlists and playing state
- On init, load last playlist and playing state
- Playing music on background
- Load default playlist (finding all *.mp3 in sdcard)
Supported languajes:
- English (default)
- Spanish
Working in phones using MDPI.
designed for working since android 2.2 until jelly bean
Tester phone: Samsung Galaxy Ace (Cyanogenmod 9 - android 4.0.4).
NOTE: It's not my own design, I'll change in future versions.
I hope you could test it and give me your opinion and comments please.
P.S: If you want to get the source code, send me a request.
After creating a playlist, no matter what it's named, I get an "app was closed" message. Logcat attached. After this message the app continues to work, creates a playlist, but after picking the created playlist the app shows me a blank page - it doesn't see my music. Though pushing play button makes the app play through all my songs. Really weird behavior ....

[Q] [REQ] [CM Sync] Windows/MAC program to Sync with CyanogenMOD (like iTunes)

I have been diggin into xda to see what I could do about syncing my nedia into my device using itunes or something like that and found this post:
scottietohottie said:
I like the sound of this.
there are lots of people who slate iTunes, but after having an iPhone and moving to Android. I would suggest that people have not used iTunes fully. My wish list
Program
Links to podcasts (text, mp3 and video)
Option to auto download podcasts as above
Integrated music player
Integrated music ripper
Folder updater for album art, meta data etc
Integrated video player
Integrated video ripper
Plug phone in
Option to auto start a program
Option to auto sync
Option to auto check for update
So far if I want an auto sync comparable to iTunes I need a music client, video client podcast client and for backups, I need to root my phone and do it on my phone.
It is easier to have these clients on my phone but still not as easy.
Cyanogen mod do have an updates button in the settings. This could be given a short cut on the home screen. One click (check), one click accept. Phone auto reboots and updates. I believe this is only set up for release candidates though.
The confirm bit on cwm. in the clock work mod folder add a file called
.noconfirm
if I remember correctly this gets rid of the multiple no, no, no, no etc.
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
What do you guys think about that? Any developer could explain if is possible and viable? I really like to keep my library in order, with album art, songs named correctly, etc and it could be awesome to just sync a Playlist from iTunes into the phone and keep it synced everytime i plugin the phone.
The steps would be like that:
Open iTunes and set your library up with covers and music info
Create a new playlist with all the music you want into your CyanogenMOD Android Device
Open the CM Sync (name sugestion) and select which (one or more) playlist you want to keep synced into your device
Let it sync and we are done.
CM Sync could have more option too, for example:
Auto updater for official supported phones using the built-in updater script of CyanogenMOD;
Organize launcher icons
Simple video converter to make sure you dont put a video with more pixels than you have on your phone
(Can you guys make more suggestions?)

Categories

Resources