I would like to open PDF file from the command line, just like, for example,
I can open a web page:
Code:
am start -a android.intent.action.VIEW http://yahoo.com
I tried the following variants, but none of them work:
Code:
am start -a android.intent.action.VIEW /extsdcard/myfile.pdf
am start -a android.intent.action.VIEW file:/extsdcard/myfile.pdf
am start -a android.intent.action.VIEW file:///extsdcard/myfile.pdf
I also found that the following opens list of recent books
Code:
am start -n com.entouragesys.android.readerapp/com.entouragesys.android.readerapp.ReaderActivity
but that is not yet what I need.
Any ideas?