You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
Hello @jay11ca39, unlike other projects, we do not use the issue tracker for questions such as these. It is only used for bugs and feature proposals. I will close this issue, but please feel free to ask it in any of these forums below:
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Hello All,
Following is the function written in go:
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 ?
The text was updated successfully, but these errors were encountered: