summaryrefslogtreecommitdiffstats
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2010-09-24Minor build script tweaks to make android auto-buildable.Björn Stenberg2-17/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28156 a1c6a512-1295-4272-9138-f99709370657
2010-09-22Removed a bit too much, libmisc.so shall still depend on rockbox.zipThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28142 a1c6a512-1295-4272-9138-f99709370657
2010-09-22Android port: Remove the "make zip" dependency of make apk again (see r28068).Thomas Martitz2-4/+9
It was reintroduced in r28138. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28141 a1c6a512-1295-4272-9138-f99709370657
2010-09-21Polished the makefile a bit.Björn Stenberg2-24/+25
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28138 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Stricter subst to avoid erroneous substitution.Björn Stenberg1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28130 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Added some missing build information.Björn Stenberg1-14/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28129 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Remove R.java from version control, it's auto-generated.Thomas Martitz1-24/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28127 a1c6a512-1295-4272-9138-f99709370657
2010-09-12The zip target isn't a good prerequisite for another make target so remove it.Thomas Martitz1-7/+8
zip has no prerequisites, so it's always made, which leads to targets depending on zip to be also always made. In the end that means that libmisc.so is always unzipped even if it didn't change. OTOH it means that make zip is now needed explicitly; so it now goes like 'make && make zip && make apk git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28068 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Adhere to the 80-char line width limit.Thomas Martitz3-31/+54
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28067 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Redo r28059, minBufferSize() turned out a bit more unstable on my Legend. ↵Thomas Martitz1-1/+3
Now use the MAX() of the old buffer and minBufferSize() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28066 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Code style changes in the java part (whitespaces and braces) to match ↵Thomas Martitz5-537/+558
Rockbox coding style. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28065 a1c6a512-1295-4272-9138-f99709370657
2010-09-12The rockbox header got lost at some point.Thomas Martitz1-0/+21
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28064 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Android: Use an explicit 8k buffer for unzipping libmisc.so to remove a ↵Thomas Martitz1-2/+2
warning in logcat. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28063 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Extend make clean for android zu also cleanup the compiled java classes and ↵Thomas Martitz1-9/+15
apks (and everything else generated during build process). This also seems to fix a problem with make apk on some machines. Thanks to Dustin Skoracki for helping to investigate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28062 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Android: Fix a problem where entered Rockbox multiple times (with multiple ↵Thomas Martitz1-1/+2
instances on the activity stack) until it was exited once with the back button. Thanks to István Nagy for investigating and proposing this solution. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28060 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Use getMinBufferSize instead of hardcoding a buffer size.Thomas Martitz1-14/+11
Seems to fix problems on Samsung Galaxy S, thanks to István Nagy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28059 a1c6a512-1295-4272-9138-f99709370657
2010-09-02Android: Allow "out-of-tree" builds (outside of android/, e.g. build-android/).Thomas Martitz1-8/+20
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27988 a1c6a512-1295-4272-9138-f99709370657
2010-09-02Extend android.make so that it can generate a debug signed apk.Thomas Martitz2-24/+97
'make && make apk && adb install -r bin/Rockbox.apk' should work now. You should now be able to develop without eclipse. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27980 a1c6a512-1295-4272-9138-f99709370657
2010-09-02Android: don't compile stubs.c and kill off libuisimulator entirely.Thomas Martitz1-0/+16
Seperate make rules in a almost empty android.make. Also add forgotten powermgmt-android.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27977 a1c6a512-1295-4272-9138-f99709370657
2010-09-01Android: don't compile powermgmt-sim.cThomas Martitz1-0/+45
Instead implement a bit of battery monitoring. Currently it only fetches the battery level (in %) every 30s, but it could do more like battery status, charger connected, voltage... Theoretically, we could also exit/quit after some time of inactivity too (perhaps not a bad idea since Rockbox puts a slight but still non-zero CPU load even if doing nothing). Ironically, Rockbox is now the only way to get the exact battery level (at least I haven't found anything yet) on my phone :-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27974 a1c6a512-1295-4272-9138-f99709370657
2010-08-17Android port: also include native libraries in APK fileMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27840 a1c6a512-1295-4272-9138-f99709370657
2010-08-17Android port: add build scriptMaurus Cuelenaere1-0/+63
This allows building the Java part of the port with only requiring the Android SDK + javac installed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27839 a1c6a512-1295-4272-9138-f99709370657
2010-08-16Android port: allow moving application to SD card on Froyo targetsMaurus Cuelenaere2-2/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27834 a1c6a512-1295-4272-9138-f99709370657
2010-08-16Android port: simplify sending touch events from Java->CMaurus Cuelenaere1-9/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27833 a1c6a512-1295-4272-9138-f99709370657
2010-08-16Android port: add support for hardware keysMaurus Cuelenaere1-4/+20
* Forward Java KeyEvents to C layer and translate them to Rockbox BUTTON_*. * Add a basic Android keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27832 a1c6a512-1295-4272-9138-f99709370657
2010-08-16Android port: use Arrays.fill() instead of a for-loop for clearing a byte arrayMaurus Cuelenaere1-1/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27831 a1c6a512-1295-4272-9138-f99709370657
2010-08-08A bit of cleanup.Thomas Martitz5-56/+52
Replace // with /* */ style comments Cleanup copy&paste from the doc examples. Don't pretend to handle exception we don't handle actually. cleanup imports git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27754 a1c6a512-1295-4272-9138-f99709370657
2010-08-08Run the pcm callback from a separate OS thread, that seems to make audio ↵Thomas Martitz1-4/+14
playback much more reliable. Especially on the broken HTC phones. Now it recovers from stuttering instead of simply stopping playback on my phone. Previously it was run on the main/UI thread (the docs lie in that regard), which I suspect happened to be blocked if it's in the background and tries to get too much CPU. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27753 a1c6a512-1295-4272-9138-f99709370657
2010-08-07Android port: The RockboxService introduction broke 1.5/1.6 compability. ↵Thomas Martitz2-13/+87
This should bring it back (heaviliy based on the example given in the Android docs). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27748 a1c6a512-1295-4272-9138-f99709370657
2010-08-07Android port: handle incoming calls.Thomas Martitz1-3/+25
Stop explicitely if a call comes in, and resume playback (if it was playing before the call) upon hang up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27746 a1c6a512-1295-4272-9138-f99709370657
2010-08-06Fix launcher icon (once more).Thomas Martitz2-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27733 a1c6a512-1295-4272-9138-f99709370657
2010-08-05Remove faulty reference to inexistent resource.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27730 a1c6a512-1295-4272-9138-f99709370657
2010-08-05Update README a bit.Thomas Martitz1-10/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27718 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Delete now unused icons.Thomas Martitz3-0/+0
Also, I of course meant Dominik Riebeling in my previous commit, sorry. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27700 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Prettier icons for app launcher and notification bar.Thomas Martitz6-0/+0
Thanks to Rominik Riebeling for creating/converting them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27699 a1c6a512-1295-4272-9138-f99709370657
2010-08-04A bit of work in the pcm driver. Should be a bit more efficient, but more ↵Thomas Martitz1-32/+37
importantly more dependable. Stopping playback now properly recovers if playback crashed for some reason (shouldn't happen of course). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27698 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Show/hide notification area icon when starting/stopping playback.Thomas Martitz2-16/+43
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27694 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Add a few forgotten files, Fix potential startup problem. Fix absolute ↵Thomas Martitz5-17/+187
touchscreen mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27693 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Implement HAVE_LCD_ENABLE and lcd_update_rect(). When Rockbox runs in the ↵Thomas Martitz2-12/+46
background this greatly reduces CPU load. lcd_update_rect shoves a bit as well. CPU usage with Rockbox in background is between 3% (with a 200kbps vbr mp3) and 12% (320kbps cbr mp3), so it's low but still dependent on codecs and even particular files. Driving a WPS with peakmeter, e.g. the builtin one, adds about 30% cpu usage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27689 a1c6a512-1295-4272-9138-f99709370657
2010-08-03Ignore screen orentiation changes and force portrait mode. We cannot handle ↵Thomas Martitz2-2/+4
it any time soon anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27688 a1c6a512-1295-4272-9138-f99709370657
2010-08-03Run Rockbox as a service, which allows for music decoding&playback in the ↵Thomas Martitz6-121/+63
background, the activity only attaches to the framebuffer for displaying it. An icon in the notification area is displayed (it could be prettier I guess). Note: Some HTC phones won't, includng mine, get enough CPU time to do background decoding fluently, see: http://code.google.com/p/android/issues/detail?id=9663 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27686 a1c6a512-1295-4272-9138-f99709370657
2010-08-02Rockbox as an application: Commit current Android port progress.Thomas Martitz15-0/+631
General state is: Rockbox is usable (plays music, saves configuration, touchscreen works too). Problems: - Playing music in the background (i.e. when switching to another app) doesn't work reliably, but I'm working on that now. - no cabbiev2 (only some preliminary files for it), no other default theme. - screen flickers sometimes if the updates are too frequent - no multi screen apk/package - strange behavior when a phone call comes in The java files (and the eclipse project) resides in android/, which is also supposed to be the build folder. I've put a small README in there for instructions. There are some steps needed after the make part, which are described there, and which eclipse mostly handles. But there ought to be some script/makefile rules which do that instead in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27668 a1c6a512-1295-4272-9138-f99709370657