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:
parent
26f7ee13ce
commit
eaff333bf5
11 changed files with 261 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue