mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-11 14:01:43 -08:00
Update Android port
* doc/emacs/android.texi (Android Startup): Document changes to emacsclient wrapper. * java/org/gnu/emacs/EmacsOpenActivity.java (EmacsOpenActivity) (startEmacsClient): Open EmacsActivity if the service is not running. * java/org/gnu/emacs/EmacsService.java (onCreate): * java/org/gnu/emacs/EmacsThread.java (EmacsThread, run): Pass any file to open to Emacs. * lisp/term/android-win.el (handle-args-function): Implement.
This commit is contained in:
parent
c3524b15aa
commit
b776feb7f2
5 changed files with 54 additions and 10 deletions
|
|
@ -72,6 +72,7 @@ public final class EmacsOpenActivity extends Activity
|
|||
DialogInterface.OnCancelListener
|
||||
{
|
||||
private static final String TAG = "EmacsOpenActivity";
|
||||
public static String fileToOpen;
|
||||
|
||||
private class EmacsClientThread extends Thread
|
||||
{
|
||||
|
|
@ -317,6 +318,20 @@ public final class EmacsOpenActivity extends Activity
|
|||
Process process;
|
||||
EmacsClientThread thread;
|
||||
File file;
|
||||
Intent intent;
|
||||
|
||||
/* If the Emacs service is not running, then start Emacs and make
|
||||
it open this file. */
|
||||
|
||||
if (EmacsService.SERVICE == null)
|
||||
{
|
||||
fileToOpen = fileName;
|
||||
intent = new Intent (EmacsOpenActivity.this,
|
||||
EmacsActivity.class);
|
||||
finish ();
|
||||
startActivity (intent);
|
||||
return;
|
||||
}
|
||||
|
||||
libDir = EmacsService.getLibraryDirectory (this);
|
||||
builder = new ProcessBuilder (libDir + "/libemacsclient.so",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue