HonYa_fd Posted February 26, 2020 Author Share Posted February 26, 2020 did not run the Focus ROM on emulator (will try) i am trying to start the video on Focus what is the reason, when i sent over command line adb shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Movies/WORLD.mp4 i get response:Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } what should i do differently....the file is there Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted February 26, 2020 Share Posted February 26, 2020 Didn't you and I get the same response? Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } Sorry, I still don't quite get where is your problem. Link to comment Share on other sites More sharing options...
HonYa_fd Posted February 26, 2020 Author Share Posted February 26, 2020 yes it the same response...which is weird, becaue it starts the player, but it does not load the file (nor it says, that the file does not exits)... the problem is, why in the response is empty path to the file the proper response should look like this:Starting: Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Movies/WORLD.mp4 typ=video/mp4 } Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted February 26, 2020 Share Posted February 26, 2020 Got it, I will take a look at it and let you know if I have any idea. Link to comment Share on other sites More sharing options...
HonYa_fd Posted February 26, 2020 Author Share Posted February 26, 2020 Figured it out.... adb shell am start -a android.intent.action.VIEW -t video/mp4 -d content://com.android.externalstorage.documents/document/primary%3AMovies%2Fxxxxx.mp4 takes couple of seconds after the app is started to start the video (my video has 4 and 8gb).... @chengnay 3 Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted February 27, 2020 Share Posted February 27, 2020 Great to hear that! 👍 EDIT: I tried your method and it works, thanks for sharing! Link to comment Share on other sites More sharing options...
ralfdestroyer Posted November 22, 2020 Share Posted November 22, 2020 (edited) hi, I'm trying to do same think but unsuccess when I run : C:\Users\rafae\Downloads\platform-tools>adb shell am start -a android.intent.action.VIEW -t text/plain -d content://com.android.externalstorage.documents/document/primary%3AMovies%2F11.txt Starting: Intent { act=android.intent.action.VIEW dat=content: typ=text/plain } the output is: But if I open file by file manager all good and path is same. Edited November 22, 2020 by ralfdestroyer Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted November 23, 2020 Share Posted November 23, 2020 @ralfdestroyer I tried with "adb shell am start -a android.intent.action.VIEW -t text/plain -d file:///storage/emulated/0/Movies/11.txt" and it works. Link to comment Share on other sites More sharing options...
ralfdestroyer Posted November 23, 2020 Share Posted November 23, 2020 6 hours ago, chengnay said: @ralfdestroyer I tried with "adb shell am start -a android.intent.action.VIEW -t text/plain -d file:///storage/emulated/0/Movies/11.txt" and it works. good its works. but now I'm trying to to run a video like mentioned at this topic, but unsuccess too - in fact Viveport Video activity launched but stuck in main page and not load or play the video. adb shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Movies/2020.mp4 adb shell am start -a android.intent.action.VIEW -t video/mp4 -d content:///storage/emulated/0/Movies/2020.mp4 Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted November 23, 2020 Share Posted November 23, 2020 @ralfdestroyer Could you try using content://com.android.externalstorage.documents/document/primary%3AMovies%2F2020.mp4 instead? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now