elllusion / idea-android

Automatically exported from code.google.com/p/idea-android
0 stars 0 forks source link

Running the activity launches new emulator instance #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start emulator from command line
2. Run an activity

What is the expected output? What do you see instead?
I expect the activity to be launched in already running emulator.
But, the plugin starts up a new Emulator each time.

Sometimes, the action fails with the following output in Run window -

### WARNING: Another emulator is running with our data file
### WARNING: User data changes will NOT be saved!
Device connected.
2009-03-05 11:13:31.368 emulator[5998:10b] Warning once: This application,
or a library it uses, is using NSQuickDrawView, which has been deprecated.
Apps should cease use of QuickDraw and move to Quartz.
Device is online.
Uploading file
    local path: /path/to/package/Hello.apk
    remote path: /data/local/tmp/prac.android.hello
Installing application.
Device is not ready. Waiting for 5 sec.
Device is not ready. Waiting for 5 sec.
Device is not ready. Waiting for 5 sec.
Device is not ready. Waiting for 5 sec.
Device is not ready. Waiting for 5 sec.
Error Type 1: Could not access the Package Manager!
usage: pm [list|path|install|uninstall]
pm list packages [-f]
pm list permission-groups
pm list permissions [-g] [-f] [-d] [-u] [GROUP]
pm path PACKAGE
pm install [-l] [-r] PATH
pm uninstall [-k] PACKAGE

The list packages command prints all packages.  Use
the -f option to see their associated file.

The list permission-groups command prints all known
permission groups.

The list permissions command prints all known
permissions, optionally only those in GROUP.  Use
the -g option to organize by group.  Use
the -f option to print all information.  Use
the -s option for a short summary.  Use
the -d option to only list dangerous permissions.  Use
the -u option to list only the permissions users will see.

The path command prints the path to the .apk of a package.

The install command installs a package to the system.  Use
the -l option to install the package with FORWARD_LOCK. Use
the -r option to reinstall an exisiting app, keeping its data.

The uninstall command removes a package from the system. Use
the -k option to keep the data and cache directories around
after the package removal.

What version of the product are you using? On what operating system?

Mac OS 10.5.6
Intellij IDEA 8.1
Plugin verison 0.3

Please provide any additional information below.

Normally, something like this could be considered an enhancement.
But yhe time taken in launching a new emulator makes the plugin impossible
to use for everyday coding, so I hope this gets treated as a bug.

Original issue reported on code.google.com by sonny.pu...@gmail.com on 5 Mar 2009 at 3:21