summaryrefslogtreecommitdiff
path: root/android (follow)
Commit message (Collapse)AuthorAge
* Android: Ship cpufeatures.[ch] from the sdk to enable the build under the ↵Thomas Martitz2011-12-19
| | | | | | | | | ndk r5 again. Otherwise we could only build under r6. As r7 is the latest and can't build rockbox don't break peoples installed ndks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31369 a1c6a512-1295-4272-9138-f99709370657
* Fix left-over hardcoded path (oops).Thomas Martitz2011-12-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31365 a1c6a512-1295-4272-9138-f99709370657
* Hosted/linux: Add process/cpu info screen to the debug menu.Thomas Martitz2011-12-19
| | | | | | | | | | | The new menu is very helpful on RaaA, but also shown in the sim. It shows the process cpu usage, process' time stats (user,sys,real) and the cpu frequency stats. It uses a thread to sample the data, however the thread is not created until the menu is visited for the first time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31364 a1c6a512-1295-4272-9138-f99709370657
* Android: Work around an android bug.Thomas Martitz2011-10-22
| | | | | | | | | BitmapFactory.decodeFile() fails when called outside the main thread. Work around by running the code on the main thread. This also has the advantage of off-loading from the Rockbox thread which should improve track skipping delays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30825 a1c6a512-1295-4272-9138-f99709370657
* Android: show Album Art in notification area.Dominik Riebeling2011-10-01
| | | | | | | | | | | | | | | | | | Instead of showing the small Rockbox clef logo show the Album Art if available. If no Album Art is available show the clef logo about the same size as the Album Art. - The notification area process doesn't have permissions to access the SD card. Therefore the image needs to be read and set as Bitmap instead of simply setting the Uri to it as done in the widget. - Passing a full sized image to the Notification Manager can cause issues (Rockbox UI hanging, notification not updating anymore, force closes). Scale down the image to the same size the launcher icon has to avoid this. This also makes the logo shown when no Album Art is available have the same size which looks nicer than having different sizes. Album Art images are allowed to be wider since there is enough room. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30629 a1c6a512-1295-4272-9138-f99709370657
* Disable android status bar again, until we have a generic theme solution.Björn Stenberg2011-09-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30620 a1c6a512-1295-4272-9138-f99709370657
* Enable Android status bar.Björn Stenberg2011-09-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30617 a1c6a512-1295-4272-9138-f99709370657
* Fix toolchain installation.Dominik Riebeling2011-09-08
| | | | | | | The filter for platform-tools is platform-tool, in contrast to the folder it installs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30483 a1c6a512-1295-4272-9138-f99709370657
* Added 'platform-tools' to the features installed by installToolChain.sh for ↵Bryan Childs2011-09-05
| | | | | | the android build git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30431 a1c6a512-1295-4272-9138-f99709370657
* Android: store resources on SD card.Dominik Riebeling2011-09-04
| | | | | | | | | | | | On the first start Rockbox extracts libmisc.so which in fact is a zip file holding resource files like theme bitmaps. Those can requires quite a bit of memory. As extended version of FS#12063 resources will now be extracted to SD card if the file /sdcard/rockbox/rockbox-info.txt is found. This file is part of the extracted resources and can therefore safely be used for checking. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30430 a1c6a512-1295-4272-9138-f99709370657
* Android tools: Allow discovery of download URLsMaurus Cuelenaere2011-08-20
| | | | | | | Automatically discover the latest and greatest version of the Android SDK and NDK by fetching it from the index. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30334 a1c6a512-1295-4272-9138-f99709370657
* Android: Undo r30293 partly as it prevents installation.Thomas Martitz2011-08-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30299 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix a few java warnings. Upgrade ndk platform to 2.0 (don't support ↵Thomas Martitz2011-08-14
| | | | | | 1.6 anymore). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30293 a1c6a512-1295-4272-9138-f99709370657
* Android: Change headphone detection to call into native.Thomas Martitz2011-07-19
| | | | | | | | Making a JNI call from tick tasks is not permitted as the underlying thread is not attached to the Java VM. This is an error and crashes in the emulator (which has stricter JNI checks enabled by default). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30173 a1c6a512-1295-4272-9138-f99709370657
* Android: Rework RunForegroundManager (again)Thomas Martitz2011-07-18
| | | | | | | | | | Restore pre-r29562 way of doing compatibility and adapt it to what MediaButtonReceiver looks like. I.e. assume the new API is there, and fall back to the old API if an exception is raised because the API isn't there. The old API still needs to be discovered through reflection because it's removed entirely from Honeycomb. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30165 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix long unnoticed typo in function call, leading to the wrong ↵Thomas Martitz2011-07-18
| | | | | | function being called. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30163 a1c6a512-1295-4272-9138-f99709370657
* Forgot to add new class file in r30161.Thomas Martitz2011-07-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30162 a1c6a512-1295-4272-9138-f99709370657
* Android: Slightly rework logging to logcat by offloading duplicated code to ↵Thomas Martitz2011-07-18
| | | | | | a new helper class. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30161 a1c6a512-1295-4272-9138-f99709370657
* Android: Refactor some of the glue code.Thomas Martitz2011-07-18
| | | | | | | | | | | * Cleanup RockboxService.java by moving the battery and headphone monitors to separate classes and detaching their instances * Move those monitors and RockboxTelephony.java into a new monitors subdirectory * Call those monitors all the same from native code by creating the objects there git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30160 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix sporadic force closes.Thomas Martitz2011-07-18
| | | | | | | | Android restarts services that are killed during memory pressure. The intent parameter is null then. This caused a null pointer exception. Now replace this null intent with one saying we've been restarted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30156 a1c6a512-1295-4272-9138-f99709370657
* Added NODEPS define to skip recompilation for zip and apk builds. Usage: ↵Björn Stenberg2011-06-22
| | | | | | make zip NODEPS=1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30050 a1c6a512-1295-4272-9138-f99709370657
* Support installing the Android toolchain on Cygwin and OS X.Dominik Riebeling2011-06-11
| | | | | | | | | | | | Update the download URLs to the most recent versions of SDK and NDK, the previously used r09 of the SDK isn't available at that location anymore, and differentiate between host platforms. Note: while the script now can install the toolchain on Cygwin building for Android on Cygwin does not work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29993 a1c6a512-1295-4272-9138-f99709370657
* 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