summaryrefslogtreecommitdiffstats
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2011-02-19Android: Fix some race conditions and crashes on startup.Thomas Martitz2-18/+40
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29341 a1c6a512-1295-4272-9138-f99709370657
2011-02-19Android: Re-attach the media button receiver when entering Rockbox.Thomas Martitz1-2/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29335 a1c6a512-1295-4272-9138-f99709370657
2011-02-19Correct setServiceActivity implementationThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29334 a1c6a512-1295-4272-9138-f99709370657
2011-02-19Android: Rewrite lcd subsystem to use the SurfaceView API.Thomas Martitz3-97/+94
That enables drawing from outside the apps UI thread, i.e. from within the Rockbox native thread, without needing synchronization means, and adds determinism as to when the draw happens. It simplifies the drawing routines and adds a convinient way of detecting whether drawing should happen or not (surfaceCreated/Destroyed). It also restores max. fps on my phone which went down drastically with the gingerbread(CM7) update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29333 a1c6a512-1295-4272-9138-f99709370657
2011-02-13Update Android README in line with configure changes from r29286Dave Chapman1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29296 a1c6a512-1295-4272-9138-f99709370657
2011-02-02Make $(DIRS) an order-only dependency, to avoid needless rebuilding of some ↵Frank Gevaerts1-2/+2
files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29197 a1c6a512-1295-4272-9138-f99709370657
2011-02-02Change the way java files are compiled (do them all at once) in order to ↵Frank Gevaerts1-4/+15
speed up builds. There is now an intermediate jar file to help (although that's not strictly necessary), so for rebuilds of single java files this may be a bit slower git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29196 a1c6a512-1295-4272-9138-f99709370657
2011-02-02Android/Java: Disable implicit compilation of dependecies to make the life ↵Thomas Martitz1-4/+6
easier for make. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29187 a1c6a512-1295-4272-9138-f99709370657
2011-01-30update the toolchains install script to grab the latest and greatestJonathan Gordon1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29173 a1c6a512-1295-4272-9138-f99709370657
2011-01-29Add widgets to android port.Antoine Cellerier35-3/+756
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29170 a1c6a512-1295-4272-9138-f99709370657
2011-01-24Oops, this line wasn't supposed to make it into svn.Antoine Cellerier1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29133 a1c6a512-1295-4272-9138-f99709370657
2011-01-24Move android notification display format logic to java code (no functional ↵Antoine Cellerier1-3/+7
change, this is used by FS #11902). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29132 a1c6a512-1295-4272-9138-f99709370657
2011-01-24Android build tweaks.Antoine Cellerier2-1/+11
Add make install target for android builds. Remove standard install targets as they don't apply. Add java compilation dependancy on generated resource class(es?) to prevent weird runtime issues. Update installApk.sh script to use correct tool location in recent sdks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29131 a1c6a512-1295-4272-9138-f99709370657
2011-01-12corrected the export-commands on the output. It should be "export ↵Michael Stummvoll1-2/+2
ANDROID..." and not "export $ANDROID..." git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29034 a1c6a512-1295-4272-9138-f99709370657
2010-12-10Restore correct launcher.png for mdpi that got accidentally overwritten.Thomas Martitz1-0/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28787 a1c6a512-1295-4272-9138-f99709370657
2010-12-10Android: Rework notification and change icon sizes to better meet the ↵Thomas Martitz11-22/+85
systems' standard. The notification now announces the new track on track change, and the the area in the scrolled down notification area shows track infos (title, artist, album). Someone should check if it looks good on hdpi and ldpi screens as I can't verify it right now (emulator crashes). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28785 a1c6a512-1295-4272-9138-f99709370657
2010-12-10Android: Replace the java based tick timer implemented with a not as bloated ↵Thomas Martitz1-76/+0
and more accurate linux hrtimer based one. Further reduces idle cpu usage (0% on my phone but still 1-2% on a Samsung Galaxy S). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28784 a1c6a512-1295-4272-9138-f99709370657
2010-12-08more than just a number changed, retry that last commitJonathan Gordon1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28765 a1c6a512-1295-4272-9138-f99709370657
2010-12-08download the r5 NDK to go along with the configure change in r28755Jonathan Gordon1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28764 a1c6a512-1295-4272-9138-f99709370657
2010-12-06Fix extracting libmisc.soThomas Martitz1-2/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28754 a1c6a512-1295-4272-9138-f99709370657
2010-12-02Android: Make lcd updates synchronous, doesn't make it faster but smoother ↵Thomas Martitz1-15/+8
(no updates are skipped) and guaranteed to be glitch free. test_fps can also now report reasonable numbers: ~62 fps for both 1/1 and 1/4 updates (was 300-400 previously). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28728 a1c6a512-1295-4272-9138-f99709370657
2010-11-12Android: When the backlight goes off, the RockboxFramebuffer/View isn't made ↵Thomas Martitz1-0/+3
invisible. Force that in order to disable screen updates while backlight is off. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28569 a1c6a512-1295-4272-9138-f99709370657
2010-11-12Android: Use adb install -r to reinstall the app, as it doesn't remove icons ↵Thomas Martitz1-4/+1
from the homescreen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28568 a1c6a512-1295-4272-9138-f99709370657
2010-11-12Android: Fix small error in install&run script.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28565 a1c6a512-1295-4272-9138-f99709370657
2010-11-12Android: Change how detecting call state (introduced in r27746) works, from ↵Thomas Martitz3-32/+103
polling to event based. * For some reason, the polling methid is much more inefficient than I thought. According to htop it caused up to 15% CPU load on some phones (e.g. Galaxy S). The event based causes no CPU load. Rockbox' idle CPU load is now back to 0%, while it was previously dominated by polling the call state. * Also stop on outgoing calls (no need to explicitely pause for making a call anymore). * Factor out the detection mechanism to separate files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28564 a1c6a512-1295-4272-9138-f99709370657
2010-11-10Touchscreen: Improved scroll thresholdThomas Martitz1-0/+19
Remove the hardcoded (and way too small) scroll threshold (the distance moved in pixels before we think the users wants to scroll) and replace it with something based on the actual DPI of the screen. On Android we call the API for that, on other touchscreens we reimplemented Android's formula (as of 2.2) and calculate it. Flyspray: 11727 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28548 a1c6a512-1295-4272-9138-f99709370657
2010-11-07android: don't crash if the user presses HOME while the loading screen is ↵Jonathan Gordon1-3/+6
showing, this shuld also be made canceleable later git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28530 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: add a script which allows headless installation of the Android ↵Maurus Cuelenaere2-1/+65
tools required for compilation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28525 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: replace hardcoded strings with Android strings, allowing translationsMaurus Cuelenaere3-3/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28518 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: make R.java depend on android/res dirMaurus Cuelenaere1-1/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28517 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: Use our translations for the yes/no/ok/cancel buttons in the yesno ↵Thomas Martitz2-8/+6
and keyboard dialog. Second part of FS#11708. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28515 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: only display progress dialog when extraction happensMaurus Cuelenaere1-17/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28514 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: greatly simplify Android YesNo and KeyboardInput widgetsMaurus Cuelenaere7-144/+69
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28513 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: Use wakeup objects instead of polling for the dialog results in the ↵Thomas Martitz2-39/+10
keyboard and yesno dialog, allowing a lot of code to be removed. First part of FS#11708 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28512 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: prevent NullPointerException in RockboxServiceMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28511 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: don't display the loading screen etc. when the library is already ↵Maurus Cuelenaere1-0/+4
loaded git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28510 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: clean up extracting a bit + add user-visible error-reportingMaurus Cuelenaere2-87/+81
Also put ResultReceiver on the RockboxActivity UI thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28509 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: prevent loading the library twiceMaurus Cuelenaere1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28508 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: add uninstall option to installApk.sh scriptMaurus Cuelenaere1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28507 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: replace waiting hack in AndroidActivity with a ResultReceiver, ↵Maurus Cuelenaere2-55/+58
added bonus is unzip progress feedback git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28506 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port:Maurus Cuelenaere2-43/+41
* decouple RockboxFramebuffer resume/suspend behaviour from RockboxActivity * make RockboxFramebuffer native methods private * refactor attaching the RockboxFramebuffer view to RockboxActivity git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28505 a1c6a512-1295-4272-9138-f99709370657
2010-11-05A bit of indentation/whitespace changes in the xml files.Thomas Martitz4-33/+48
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28504 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Fix a small dependency issue, the directories need to be created first.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28503 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: Show the Rockbox in the background in the keyboard/yesno dialogs.Thomas Martitz1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28502 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: add a CLI APK install+launch script, useful for quick installationMaurus Cuelenaere1-0/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28491 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: remove obsoleted build.sh shell scriptMaurus Cuelenaere1-63/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28490 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: $(TEMP_APK) depends on $(AP_), so add it to its dependenciesMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28489 a1c6a512-1295-4272-9138-f99709370657
2010-10-31tabs -> spaces in the new Yesno java files and remove unused imports.Thomas Martitz2-16/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28422 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Add support multimedia keys/buttons to the core, and adapt Rockbox on ↵Thomas Martitz4-0/+188
android for it (multimedia buttons are found on wired headsets and the lock screen in cyanogenmod). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28421 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Factor out the start/stopForeground and notification icon management into a ↵Thomas Martitz5-129/+176
separate class, don't let RockboxService.java become a beast. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28416 a1c6a512-1295-4272-9138-f99709370657