Björn Stenberg
0942e2a0f7
Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657
2011-10-15 19:35:02 +00:00
Jonathan Gordon
22332e8c0a
Copy yesno_pop to hosted/yesno,c which is mildly annoying, maybe do a better fix later
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30185 a1c6a512-1295-4272-9138-f99709370657
2011-07-21 06:51:55 +00:00
Thomas Martitz
046cec3aa7
Android: Partly revert r29569 and only call the new getJavaEnvironment() when needed.
...
The environment is fine to share in general, just not across OS threads, so it's only needed
for functions which are possibly called from multiple OS threads (only 1 currently).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29601 a1c6a512-1295-4272-9138-f99709370657
2011-03-16 14:33:55 +00:00
Maurus Cuelenaere
c2ee32b22a
Partly revert "Android: use NewGlobalRef for references that are used globally"
...
The added complexity wasn't needed for most subsystems, as main() never returns
so local references can't be freed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29570 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 19:23:00 +00:00
Maurus Cuelenaere
66f2a08f8a
Android: Don't share the JNI environment across threads, but obtain it the
...
correct way
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29569 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 18:34:35 +00:00
Maurus Cuelenaere
2e5b7aebde
Android: use NewGlobalRef for references that are used globally
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29568 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 18:34:31 +00:00
Maurus Cuelenaere
d833e78fac
RaaA: move Android apps-code to separate dir under apps/hosted
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29563 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 15:45:44 +00:00
Thomas Martitz
396ddd9fd7
Android: Support embedded albumart in the widget.
...
This is achieved by writing the jpeg out to a temporary file.
This approach can probably be also used to support embedded albumart in pictureflow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29522 a1c6a512-1295-4272-9138-f99709370657
2011-03-05 18:05:26 +00:00
Jonathan Gordon
86a0022a16
Make android compile (untested)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29496 a1c6a512-1295-4272-9138-f99709370657
2011-03-02 10:13:56 +00:00
Thomas Martitz
d69d406e09
Android: Fix crash when playback is passing invalid metadata around.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29454 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 00:59:44 +00:00
Thomas Martitz
8ed943ce06
Make struct static.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29441 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 21:21:13 +00:00
Thomas Martitz
883ff8507e
Android: Show cover art in the widget (including option to hide it).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29437 a1c6a512-1295-4272-9138-f99709370657
2011-02-27 20:47:44 +00:00
Thomas Martitz
9d2c7b8b67
Android: Fix compilation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29342 a1c6a512-1295-4272-9138-f99709370657
2011-02-19 17:12:12 +00:00
Thomas Martitz
d6ce7fe3d4
Android: Fix some race conditions and crashes on startup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29341 a1c6a512-1295-4272-9138-f99709370657
2011-02-19 16:42:44 +00:00
Antoine Cellerier
c0c769c5a8
Add widgets to android port.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29170 a1c6a512-1295-4272-9138-f99709370657
2011-01-29 20:47:32 +00:00
Antoine Cellerier
ef980355c8
Move android notification display format logic to java code (no functional change, this is used by FS #11902 ).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29132 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 17:10:56 +00:00
Thomas Martitz
f5a461d182
Android: Rework notification and change icon sizes to better meet the 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-10 18:41:09 +00:00
Thomas Martitz
919651a5e1
Those DeleteGlobalRef() should be DeleteLocalRef().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28516 a1c6a512-1295-4272-9138-f99709370657
2010-11-06 01:45:21 +00:00
Thomas Martitz
739d76cfda
Android: Use our translations for the yes/no/ok/cancel buttons in the yesno 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-06 01:40:24 +00:00
Thomas Martitz
988bdc1cc4
Android: Use wakeup objects instead of polling for the dialog results in the 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-06 01:01:01 +00:00
Maurus Cuelenaere
493732167d
Android port: NewStringUTF() JNI call doesn't need freeing, these will get garbage collected.
...
Also use strncpy instead of snprintf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28495 a1c6a512-1295-4272-9138-f99709370657
2010-11-05 18:17:23 +00:00
Jonathan Gordon
b92eabd38b
Use a native yes/no dialog instead of rockbox's internal one on android
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28415 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 13:12:01 +00:00
Thomas Martitz
2d05d2f9da
Clean up r28408 coding style a bit to follow our guidelines with regard to
...
brace placement, tabs and 80 char line width.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28410 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 12:00:03 +00:00
Jonathan Gordon
cc758e42b9
fix a mem leak by calling the corect ReleaseString method
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28409 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 11:53:36 +00:00
Jonathan Gordon
eaff333bf5
Use a Native keyboard GUI instead of rockbox's internal one on android
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28407 a1c6a512-1295-4272-9138-f99709370657
2010-10-31 10:35:55 +00:00