We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

dbus-send with "aliendalvikcontrol", need example [answered]

asked 2018-04-05 07:07:23 +0200

4carlos gravatar image

updated 2018-04-05 07:09:22 +0200

I need an example for a command line to start an AndroidApp with parameter from terminal.

In Documentation /Aliendalvik Control by @coderus) i found

shareFile(QString file, QString mimetype): opening android share menu for file by mimetype

and i tried

dbus-send --print-reply --dest=org.coderus.aliendalvikcontrol / org.coderus.aliendalvikcontrol.shareFile string:"-a android.intent.action.VIEW dat=file:///home/nemo/android_storage/Download/File1.doc cmp=application/msword"

but, the command line did not work. Has anybody some hints for me?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by coderus
close date 2018-04-06 10:39:03.481117

1 Answer

Sort by » oldest newest most voted
1

answered 2018-04-05 10:33:29 +0200

coderus gravatar image

iirc you just put string path to file for first argument and string mimetype for second

edit flag offensive delete publish link more

Comments

Thanks @coderus. This works:

dbus-send --print-reply --dest=org.coderus.aliendalvikcontrol / org.coderus.aliendalvikcontrol.shareFile string:"/home/nemo/android_storage/Download/File1.doc", string:"application/msword"

4carlos ( 2018-04-05 18:12:41 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2018-04-05 07:07:23 +0200

Seen: 220 times

Last updated: Apr 05 '18