0

I gain precious time by launching pdf from the terminal in Linux

evince ~/mypdf.pdf

What is the exact command that allows me to do that on android?

This post gives the following template:

am start -a android.intent.action.MAIN -n my.domain.myApp/my.domain.myApp.myClass

*How to modify this command to launch a pdf**

user123456
  • 337
  • 1
  • 4
  • 12

1 Answers1

2

I am not sure if you can starting an intent with a relative file name. Better use the absolute file name and use am start to view the file:

am start -a android.intent.action.VIEW -d file:///storage/emulated/0/mypdf.pdf -t application/pdf
Robert
  • 20,025
  • 6
  • 47
  • 66