Two problems with video activity - Android Studio

Hello !
I've menaged to set up an activity to play video in my app but I've encountered some problems I cannot solve.
1) First is connected with back button. Mainly, when I open video and then exit it, I cannot go back to the previous activity bu pushing back button, instead it takes me back to the video player.
2) I've made a list of videos in my activity and it's made of video saved in the phone storage. I can't really find and exact way how to add videos to my list by using URL.
Thank you for time and kind advice.

Related

YouTube full screen's stopped working...

For some reason, when I tap the fullscreen button in YouTube on my Diamond, it won't go fullscreen any more.
As I watch a lot of vids over 3G/HDPSA connections, I notice that sometimes (I presume for speed) it shows a tiny version of the video. Annoying that I can't hit fullscreen and actually be able to see it!
Anyone any suggestions, or is a re-install the way forward? YouTube came on the phone when I got it (doesn't show up in the remove program list) so how would I go about re-installing?

[Q] unable to play video from gallery

I'm having a problem playing videos from the gallery app.
I can see them in the gallery, but when I click on them I get a message saying "Unable to play video".
If I try to open it from Astro I get "File type <WHATEVER> not found"
However, if I open Rockplayer it works fine. I'm assuming it's because I used TI to delete the stock video player app (thinking rock would just take over), but I can't say for sure.
Has anyone else seen this? If possible can someone link me to the original video player app so I don't have to flash back to stock to get it?
Did you try clearing the defaults in settings?
Unless I am thinking of the wrong thing (settings > applications > manage) I have the following options that sound like they could be applicable (meaning there might be some I'm overlooking):
com.samsung.mobilevideo
com.sec.android.app.videoplayer
rockplayer
none have any defaults set.
is there a way to just globablly reset the defaults?
problem solved
Go to settings, all programs, gallary setting, clear data, force stop if it is currently running, disable the app, wait for few seconds and again enable the app, on first start it will ask default video player select whatever u want and enjoy.
Problem may be the default vedeo player set earlier is uninstalled by u. Thanx
I am having a very similar issue. I record a video. 30 seconds long. I stop recording tap the image of what I recorded, it opens gallery.- I select to play the video. the video opens. I click play and a grey message comes up (unable to Play Video) the standard played just fine. I made no changes to the phone after rooting and installing custom rom. it worked fine. now all the sudden. it will not play videos. (only videos I recorded on the phone) everything else such as web and youtube work fine. this is not the first time I have run into this the only option was to install a retail rom and everything worked great. this is a Samsung galaxy s5 g900v I have spent over thre hours on google and bind searching for a solution and I can tell you..it would seem this is an issue many people are having. I don't like VLC I like the stock player. though I dont know what it is called but I have this Rom (VZW_BPB1_ODEX_DEODEX_V9) it has no file browser and no purple video Icon. (thats the one I dont know the name of) and I am not sure what this rom uses to play video. ..so if anyone has a solution please post it. I tried the above and they did not work. I also tried solutions that were offered on other sites to no avail.

[Q] Timeshift-Video not working?

When I select Timeshift-Video from the camera options and record a video (no matter to internal or class 10 SD card), it indeed does record a video and the small thumbnail also shows "120f" after saving. But then playback is just like any other regular video, that is, in real time. Hence, no timeshift/slow-motion anywhere. Further, I don't get this -well, how to describe it- settings circle on the screen for playback adjustments I used to see on the Z2.
Phone is stock (BL locked) with FW .98 DE. Anyone experienced the same issue or is that just me? Any hints appreciated.
I have the same problem. I tried internal memory an sd card, its just not working.
Strange...
Try to open the video and then push the edit button.
Normmaly the video editor opens and you can choose the sequence and the speed of the video...
UserX10 said:
Strange...
Try to open the video and then push the edit button.
Normmaly the video editor opens and you can choose the sequence and the speed of the video...
Click to expand...
Click to collapse
Exactly, that's how it should normally work, but it doesn't on my phone. Also, there's no edit button anywhere, only on photos.
What FW version/build do you have installed? Maybe that's something that got fixed in .105 (I'm on .98)?
23.0.A.2.93 is my version. Same problem mine does not have a edit button. Only star and trashcan buttons are available.
Finally figured it out...
Check for App "Movie Creator" to actually appear twice under Settings-> Apps -> All.
Movie Creator 1.3.A.0.11
Movie Creator 2.0.A.0.10
Now, since I did not want these great automatic movies to get created thereby filling up (if only a bit) my precious storage, I disabled both of them.
That was one too much
(Re-)Enabling the one with the older version alone (Movie Creator 1.3.A.0.11) brings back full functionality of Timeshift Videos.
However, why Sony has tied these together (Timeshift Videos and Movie Creator) is beyond me...
Excellent!
THANKTHANKTHANK THANK I LOVE !! fix it
for me the Movie Creator wont show the 120 fps video and when i am in the video i cant press "edit". it wont show at all
so is there another way to watch those 120 fps in slowmo? on pc? on the device with another videoplayer perhaps?
sxtester said:
Finally figured it out...
Check for App "Movie Creator" to actually appear twice under Settings-> Apps -> All.
Movie Creator 1.3.A.0.11
Movie Creator 2.0.A.0.10
Now, since I did not want these great automatic movies to get created thereby filling up (if only a bit) my precious storage, I disabled both of them.
That was one too much
(Re-)Enabling the one with the older version alone (Movie Creator 1.3.A.0.11) brings back full functionality of Timeshift Videos.
However, why Sony has tied these together (Timeshift Videos and Movie Creator) is beyond me...
Click to expand...
Click to collapse
how did you get these two apps? i have the app installed from Sony and i can start it, but it doesn't apear in the list settings > apps > all i have none of the above.
i tried removing the app and reinstalling it from the playstore, but still no timeshift editting.
how did you do that?
Are you on Android 5? Not sure whether they got renamed since 4.4.4 (which I'm still using). Check System Apps with say Es File Explorer, too.
Sent from my D5803 using XDA Free mobile app
go in to your 120f video like your going to play it. but instead of tepping the middle of the screen to play it tap underneath it. youll see what looks like a
press that icon. then you can adjust what speed and trim the video

YouTube background playback

Hello xda,
Now what I am posting today is NOT THE EFFICIENT way of playing YouTube songs or videos in the background but it is effective. This will shouw that youtube background playback is poasible. I hope someone can understand thh logic and convert this into an application or an xposed module at some point.
Step 1 - ask a friend to call you in a while, say 30 seconds
Step 2 - meanwhile open a YouTube video so that when your friend calls you YouTube automatically pauses it for you
Step 3- take the call and press home button in between the call and then just disconnect it
Your videos should continue playing in the background
Again, I am not saying this is a trick or sth. I am just sharing so that someone can use this and actually make it a trick to play YouTube videos in the background.
PS-the currentxposed module doesn't work for me
PS2- I am facing a problem with my phone, for which I posted in the nexus 5 troubleshooting group but no reply as of yet. Could you please give it a look and help me out there. Here's the link
http://forum.xda-developers.com/goo...ar-nexus-5-t3191613/post62620267#post62620267
rahul9five said:
Hello xda,
Now what I am posting today is NOT THE EFFICIENT way of playing YouTube songs or videos in the background but it is effective. This will shouw that youtube background playback is poasible. I hope someone can understand thh logic and convert this into an application or an xposed module at some point.
Step 1 - ask a friend to call you in a while, say 30 seconds
Step 2 - meanwhile open a YouTube video so that when your friend calls you YouTube automatically pauses it for you
Step 3- take the call and press home button in between the call and then just disconnect it
Your videos should continue playing in the background
Again, I am not saying this is a trick or sth. I am just sharing so that someone can use this and actually make it a trick to play YouTube videos in the background.
PS-the currentxposed module doesn't work for me
PS2- I am facing a problem with my phone, for which I posted in the nexus 5 troubleshooting group but no reply as of yet. Could you please give it a look and help me out there. Here's the link
http://forum.xda-developers.com/goo...ar-nexus-5-t3191613/post62620267#post62620267
Click to expand...
Click to collapse
Current YouTube Background Playback doesn't work because it hasn't been updated to work with the current YouTube, yet... You can simply downgrade your YouTube using XInstaller or Uninstall then Install an older version.

Youtube App Issues

I have an AT&T Note 5 on the latest stock rom.
Youtube is updated to the latest Google Play version.
Two issues are happening. First if I'm scrolling down my list of subscriptions and decide to watch a video. I rotate my phone to watch in full screen, then when I swipe the video down, I am back at the top of the list again, and have to scroll all the way down to get back to my position on the list. Am I missing a setting?
Secondly I noticed that sometimes the videos won't play. I choose a video and it shows the first frame, and just sits there, and never loads, never plays. The only way to fix this is to choose Recent Apps and close all the apps. Does this have to do with the aggressive memory management that the Note 5 is known to have?
Thanks in advance for any help.
Bump

Categories

Resources