Home | History | Annotate | Download | only in files

Lines Matching defs:android

1 ;;;; Copyright 2007 The Android Open Source Project
6 (defvar android-jdb-port-history '("8700")
7 "history of ports supplied to `android-jdb'")
9 (defvar android-jdb-project-root-history '()
10 "history of project roots supplied to `android-jdb'")
11 (defvar android-jdb-history nil
12 "history of commands supplied to `android-jdb'")
14 (defvar android-jdb-activity-class-history ()
15 "history of activity classes supplied to `start-android-activity'")
17 (defcustom android-jdb-command-name "jdb"
20 :group 'android)
22 (defgroup android nil
23 "Android Applications."
26 (defcustom android-project-root nil
27 "This is where your Android project root is stored."
29 :group 'android )
31 (defcustom android-apk nil
32 "This is where your Android Application Package is stored."
34 :group 'android)
36 (defcustom android-activity-class nil
37 "This is where your Android Activity class is stored."
39 :group 'android)
41 (defun android-read-project-root ()
44 (read-file-name "Android project root: "
45 android-project-root
51 (read-file-name "Android project root: "
52 android-project-root
61 (defun android-jdb (port root)
62 "Set GUD+JDB up to run against Android on PORT in directory ROOT."
66 (car android-jdb-port-history)
69 'android-jdb-port-history)
70 (android-read-project-root)))
71 (setq android-project-root root)
74 android-jdb-command-name
77 (if (not (string= jdb-command (car android-jdb-history)))
78 (push jdb-command android-jdb-history))
81 (defun android-emulate ()
82 "Run the Android emulator. This expects the SDK tools directory to be in the current path."
86 (defun android-install-app (apk)
87 "Install an Android application package APK in the Android emulator. This expects the SDK tools directory to be in the current path."
89 (read-file-name "Android Application Package (.apk): "
91 android-apk
95 (setq android-apk apk)
98 (defun android-uninstall-app (package-name)
99 "Uninstall an Android application package APK in the Android emulator. This expects the SDK tools directory to be in the current path.
100 Specify the package name --- and not the name of the application e.g., com.android.foo."
106 (defun android-start-activity (package class)
107 "Start the activity PACKAGE/CLASS in the Android emulator. This expects the SDK tools directory to be in the current path."
112 (car android-jdb-activity-class-history)
115 'android-jdb-activity-class-history)))
118 (defun android-debug-activity (package class)
119 "Start the activity PACKAGE/CLASS within the debugger in the Android emulator. This expects the SDK tools directory to be in the current path."
124 (car android-jdb-activity-class-history)
127 'android-jdb-activity-class-history)))
130 (provide 'android)