diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-08-02 20:34:47 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-02 20:34:47 +0000 |
commit | 240923a801382c86545d10be167a15892a556fb6 (patch) | |
tree | 3c0e07ec3abf0c493a0b24b0b57e8bbd0200f7f6 /firmware/common | |
parent | 850efead04f10488b478a0f255a2464a01156a7f (diff) | |
download | rockbox-240923a801382c86545d10be167a15892a556fb6.tar.gz rockbox-240923a801382c86545d10be167a15892a556fb6.zip |
Rockbox as an application: Commit current Android port progress.
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
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/rbpaths.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/common/rbpaths.c b/firmware/common/rbpaths.c index 69bc1387ef..b63586c9f4 100644 --- a/firmware/common/rbpaths.c +++ b/firmware/common/rbpaths.c | |||
@@ -33,9 +33,13 @@ | |||
33 | void paths_init(void) | 33 | void paths_init(void) |
34 | { | 34 | { |
35 | /* make sure $HOME/.config/rockbox.org exists, it's needed for config.cfg */ | 35 | /* make sure $HOME/.config/rockbox.org exists, it's needed for config.cfg */ |
36 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | ||
37 | mkdir("/sdcard/rockbox"); | ||
38 | #else | ||
36 | char home_path[MAX_PATH]; | 39 | char home_path[MAX_PATH]; |
37 | snprintf(home_path, sizeof(home_path), "%s/.config/rockbox.org", getenv("HOME")); | 40 | snprintf(home_path, sizeof(home_path), "%s/.config/rockbox.org", getenv("HOME")); |
38 | mkdir(home_path); | 41 | mkdir(home_path); |
42 | #endif | ||
39 | } | 43 | } |
40 | 44 | ||
41 | const char* get_user_file_path(const char *path, | 45 | const char* get_user_file_path(const char *path, |
@@ -50,7 +54,11 @@ const char* get_user_file_path(const char *path, | |||
50 | pos += ROCKBOX_DIR_LEN; | 54 | pos += ROCKBOX_DIR_LEN; |
51 | if (*pos == '/') pos += 1; | 55 | if (*pos == '/') pos += 1; |
52 | 56 | ||
57 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | ||
58 | if (snprintf(buf, bufsize, "/sdcard/rockbox/%s", pos) | ||
59 | #else | ||
53 | if (snprintf(buf, bufsize, "%s/.config/rockbox.org/%s", getenv("HOME"), pos) | 60 | if (snprintf(buf, bufsize, "%s/.config/rockbox.org/%s", getenv("HOME"), pos) |
61 | #endif | ||
54 | >= (int)bufsize) | 62 | >= (int)bufsize) |
55 | return NULL; | 63 | return NULL; |
56 | 64 | ||