1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2010-10-31 10:35:55 +00:00
parent 26f7ee13ce
commit eaff333bf5
11 changed files with 261 additions and 4 deletions

View file

@ -35,6 +35,7 @@ import java.util.TimerTask;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
@ -61,6 +62,7 @@ public class RockboxService extends Service
/* locals needed for the c code and rockbox state */
private RockboxFramebuffer fb = null;
private boolean mRockboxRunning = false;
private Activity current_activity = null;
private Notification notification;
private static final Class<?>[] mStartForegroundSignature =
@ -113,6 +115,16 @@ public class RockboxService extends Service
fb = newfb;
mRockboxRunning = true;
}
public Activity get_activity()
{
return current_activity;
}
public void set_activity(Activity a)
{
current_activity = a;
}
private void do_start(Intent intent)
{