damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 803 forks source link

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

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:29

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

Copied from original issue: damonkohler/android-scripting#534