Hello All,


*Following is the function written in go:*


func LaunchApplication(packageName string) {
 Query :
 how can I execute application with given packageName
}
 

Generated the java binding [.aar] using *gomobile*.
I want to include .aar generated in my android application and call 
*LaunchApplication("com.package.name")* from java layer to native go layer 
and go layer should run the application.



*In java application*, following is the way to run apk using package name:
Process process = Runtime.getRuntime().exec("am start -n 
com.package.name/com.package.name.ActivityName");


I tried the same in go using:
*os.exec()* function but it is giving error that "am not found in the $PATH"


*Is there is any way to do that ?*

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e96f0a4c-00dd-421e-ab6c-c0967369a90a%40googlegroups.com.

Reply via email to