summaryrefslogtreecommitdiff
path: root/android (follow)
Commit message (Collapse)AuthorAge
...
* Android: Greatly simplify the pcm callback mechanism on both, the Java and ↵Thomas Martitz2011-06-05
| | | | | | the C side. Should be more reliable now (if the old wasn't already). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29963 a1c6a512-1295-4272-9138-f99709370657
* Hopefully FS#12064 - Android: Possible fix for audio stopping on high CPU load.Thomas Martitz2011-06-04
| | | | | | | It's not enterly clear what fixed it but it seems to be a combination of increasing the buffer size and reducing the amount of code run in the callback. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29961 a1c6a512-1295-4272-9138-f99709370657
* Android: listen to ACTION_AUDIO_BECOMING_NOISY for headphone (FS#12097).Dominik Riebeling2011-06-04
| | | | | | | | | | | This event is sent before the audio is routed back to the speaker so we get the information about the unplugged headphone notably earlier. Decrease the debouncing of the headphone status from 1s to 0.5s to work around audio still getting played back via the speaker due to the pause delay by debouncing. On Android we shouldn't need the debouncing at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29957 a1c6a512-1295-4272-9138-f99709370657
* Android: implement headphone detection thus enabling pause on unplug (FS#12097).Dominik Riebeling2011-06-04
| | | | | | | | | | | Listen to headphone plug events. There are currently two glitches with this: - Android takes a while until it reports the unplug event, so there will be some delay until playback gets paused. This is an Android limitation. - Rockbox debounces headphone state changes for one second. Therefore playback will shortly be routed to the speaker on unplug until Rockbox does the actual pause. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29956 a1c6a512-1295-4272-9138-f99709370657
* Android: adjust screen orientation based on LCD size.Dominik Riebeling2011-06-04
| | | | | | | | If the screen size specified is wider than higher specify the orientation as landscape in AndroidManifest.xml. This usually applies to tablets where Rockbox in portrait mode feels unnatural. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29951 a1c6a512-1295-4272-9138-f99709370657
* Android: install codecs as native libs instead of extracting them (FS#12134).Dominik Riebeling2011-05-31
| | | | | | | | | | Codec files are loaded as dynamic libraries. Instead of extracting them from the packaged libmisc.so and therefore having them present twice on the device put them into the apk as native libraries. Decreases the size of the installed Rockbox by the compressed size of the codecs. Also, the extraction on first Rockbox startup gets notably faster since it's less data to extract. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29940 a1c6a512-1295-4272-9138-f99709370657
* Android: rework r29929 AndroidManifest.xml version handling.Dominik Riebeling2011-05-29
| | | | | | | | Put the generated AndroidManifest.xml into the bin subfolder and remove it from clean list. Avoids problems with cleaning if you're building in the android/ folder. Thanks to kugel for pointing out that people are actually doing that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29931 a1c6a512-1295-4272-9138-f99709370657
* Add source tree version into AndroidManifest.xmlDominik Riebeling2011-05-29
| | | | | | | Use the source tree version as versionName string. As result the Android Settings menu will now show that version instead of a rather unhelpful "1.0". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29929 a1c6a512-1295-4272-9138-f99709370657
* Rework MediaButtonReceiver a bit:Thomas Martitz2011-05-13
| | | | | | | | | | * Get rid of reflection since the lack of methods can be detected via exceptions * Use requestAudioFocus/abandonAudioFocus APIs on 2.2+ to play nice with other music apps. * Don't unregister the receiver on exit so we can receive media button presses (and startup the service) after idle poweroff (hopefully it's ok if mMediaButtonReceiver is garbage collected) This should fix that Android calls the standard music app sometimes when those buttons are pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29865 a1c6a512-1295-4272-9138-f99709370657
* Use mkdir -p in the previous commit. Thanks sideral for spotting.Thomas Martitz2011-04-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29754 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix creation of debug key if ~/.android doesn't exist.Thomas Martitz2011-04-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29753 a1c6a512-1295-4272-9138-f99709370657
* Fix some whitespace errors.Dominik Riebeling2011-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29712 a1c6a512-1295-4272-9138-f99709370657
* Only set volume on SYS_VOLUME_CHANGED the first time. Workaround for FS#12034.Björn Stenberg2011-03-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29663 a1c6a512-1295-4272-9138-f99709370657
* Android: Implement app shutdown and thus, sleep timer.Thomas Martitz2011-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29602 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix widget albumart display on pre-2.2 devices.Thomas Martitz2011-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29600 a1c6a512-1295-4272-9138-f99709370657
* Listen to and follow external Android volume changes. (Based on FS#11914 by ↵Björn Stenberg2011-03-14
| | | | | | Maurus Cuelenaere) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29586 a1c6a512-1295-4272-9138-f99709370657
* Use the pcm volume to add finer steps between every android stream volume step.Björn Stenberg2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29573 a1c6a512-1295-4272-9138-f99709370657
* Android: get rid of warnings (no functional changes)Maurus Cuelenaere2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29566 a1c6a512-1295-4272-9138-f99709370657
* Android: replace installApk.sh "launching Rockbox activity"-behaviour withMaurus Cuelenaere2011-03-11
| | | | | | 'make launch' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29565 a1c6a512-1295-4272-9138-f99709370657
* Android: future-proof the RunForegroundManager code to HoneycombMaurus Cuelenaere2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29562 a1c6a512-1295-4272-9138-f99709370657
* Android: update project to SDKv11Maurus Cuelenaere2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29561 a1c6a512-1295-4272-9138-f99709370657
* Android port: generate initial config when none is present with dynamicallyMaurus Cuelenaere2011-03-11
| | | | | | generated values depending on your environment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29560 a1c6a512-1295-4272-9138-f99709370657
* Ask for track information to be resent after creating a new widget.Antoine Cellerier2011-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29553 a1c6a512-1295-4272-9138-f99709370657
* Looks like Android 2.3 is more strict when enforcing permissions. Explicitly ↵Antoine Cellerier2011-03-09
| | | | | | | | declare allowed intents under the Service tag in AndroidManifest.xml. Remove useless rockbox intent class. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29552 a1c6a512-1295-4272-9138-f99709370657
* Add a scrollbar to the android widget's configuration activity.Antoine Cellerier2011-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29551 a1c6a512-1295-4272-9138-f99709370657
* Android: Add a nowplaying bar to the 3x3 widgetThomas Martitz2011-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29529 a1c6a512-1295-4272-9138-f99709370657
* Android: Show cover art in the widget (including option to hide it).Thomas Martitz2011-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29437 a1c6a512-1295-4272-9138-f99709370657
* Android: Add a 3x3 sized widget.Thomas Martitz2011-02-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29409 a1c6a512-1295-4272-9138-f99709370657
* Android: Remove notification item on pausing too.Thomas Martitz2011-02-26
| | | | | | Technically, the difference between stop and pause isn't important enough to keep it when no music is playing. This is how other media apps also act. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29405 a1c6a512-1295-4272-9138-f99709370657
* Android: Simplify media button intent generation in the widget and cleanup ↵Thomas Martitz2011-02-26
| | | | | | RockboxService accordingly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29404 a1c6a512-1295-4272-9138-f99709370657
* Android:Thomas Martitz2011-02-23
| | | | | | | | | * Re-create RockboxFramebuffer instance with every time there's a new Activity. * Also, allow Rockbox to be started via multimedia buttons, immediately starting playback if wanted. We don't need to keep the fb instance around when it backround, and it makes us less depending on it and the activity (less race conditions). And this is how you usually do it in Android apps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29384 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix some race conditions and crashes on startup.Thomas Martitz2011-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29341 a1c6a512-1295-4272-9138-f99709370657
* Android: Re-attach the media button receiver when entering Rockbox.Thomas Martitz2011-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29335 a1c6a512-1295-4272-9138-f99709370657
* Correct setServiceActivity implementationThomas Martitz2011-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29334 a1c6a512-1295-4272-9138-f99709370657
* Android: Rewrite lcd subsystem to use the SurfaceView API.Thomas Martitz2011-02-19
| | | | | | | | 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
* Update Android README in line with configure changes from r29286Dave Chapman2011-02-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29296 a1c6a512-1295-4272-9138-f99709370657
* Make $(DIRS) an order-only dependency, to avoid needless rebuilding of some ↵Frank Gevaerts2011-02-02
| | | | | | files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29197 a1c6a512-1295-4272-9138-f99709370657
* Change the way java files are compiled (do them all at once) in order to ↵Frank Gevaerts2011-02-02
| | | | | | 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
* Android/Java: Disable implicit compilation of dependecies to make the life ↵Thomas Martitz2011-02-02
| | | | | | easier for make. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29187 a1c6a512-1295-4272-9138-f99709370657
* update the toolchains install script to grab the latest and greatestJonathan Gordon2011-01-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29173 a1c6a512-1295-4272-9138-f99709370657
* Add widgets to android port.Antoine Cellerier2011-01-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29170 a1c6a512-1295-4272-9138-f99709370657
* Oops, this line wasn't supposed to make it into svn.Antoine Cellerier2011-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29133 a1c6a512-1295-4272-9138-f99709370657
* Move android notification display format logic to java code (no functional ↵Antoine Cellerier2011-01-24
| | | | | | change, this is used by FS #11902). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29132 a1c6a512-1295-4272-9138-f99709370657
* Android build tweaks.Antoine Cellerier2011-01-24
| | | | | | | | | | 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
* corrected the export-commands on the output. It should be "export ↵Michael Stummvoll2011-01-12
| | | | | | ANDROID..." and not "export $ANDROID..." git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29034 a1c6a512-1295-4272-9138-f99709370657
* Restore correct launcher.png for mdpi that got accidentally overwritten.Thomas Martitz2010-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28787 a1c6a512-1295-4272-9138-f99709370657
* Android: Rework notification and change icon sizes to better meet the ↵Thomas Martitz2010-12-10
| | | | | | | | | | 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
* Android: Replace the java based tick timer implemented with a not as bloated ↵Thomas Martitz2010-12-10
| | | | | | 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
* more than just a number changed, retry that last commitJonathan Gordon2010-12-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28765 a1c6a512-1295-4272-9138-f99709370657
* download the r5 NDK to go along with the configure change in r28755Jonathan Gordon2010-12-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28764 a1c6a512-1295-4272-9138-f99709370657