Unsolved Run an android application with arguments available in QCoreApplication::arguments()
-
Hello,
When I try to run my app in Linux environment using this command
./MyApp arg1
The list returned by QCoreApplication::arguments() contains my argument (arg1).
I used adb to run this application with arguments in Android environment with no success.
Here is the command:adb shell am start -n myPackageName/MyActivity arg1
I tried too use -e to add string data as a key-value pair but the extras aren't available in QCoreApplication::arguments().
Is it possible to run an android application with arguments ?
Thank you.
-
Maybe the specification for intent arguments document helps?
-
@closx
Hello @closx, thanks for the reply.I've already read this guide but no success for what I want.
As I said:
@sftpck said in Run an android application with arguments available in QCoreApplication::arguments():I tried too use -e to add string data as a key-value pair but the extras aren't available in QCoreApplication::arguments().