dya2 / android-scripting

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

launch() can't launch some apps. #534

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use Nexus S and LG LU3000 devices.

I try to launch mappy navigation app, but it fails.
I think problem is package name.
It's activity is 'com.mnsoft.mappy.activities.etc.IntroActivity', and package 
name is 'com.mnsoft.mappy'.
another example is 'com.lge.lgtservice.guide.LGTServiceGuide', and package name 
is 'com.lge.lgtservice'.
In 'ApplicationManagerFacade.java', launch method make package name from class 
name like below.

String packageName = className.substring(0, className.lastIndexOf("."));

If class name has more than one level than package name.
launch() fails.

launch method need to have package name argument.

Original issue reported on code.google.com by leejong...@gmail.com on 18 Mar 2011 at 12:00