Android :: Android Videoview - Screen Blank No Video Seen

Dec 6, 2009

I am using Videoview to playback mp4 file from local machine using android emulator. I hear the audio, but the screen is blank and no video is seen. Android SDK 2.0.1

What is missing here:

CODE:............

Main.xml

CODE:.....................

Android :: Android Videoview - screen blank no video seen


Android :: VideoView Video Scaling - Different Screen Orientations And Devices

Aug 4, 2010

How does Android handle scaling of a video being played within a VideoView?

So for example if I have a video that is say 480 X 270 (width and height), aspect ratio 16:9. And, say the VideoView is added to a LinearLayout with LayoutParams of (480, 270). What will be width and height of the rendered video in portrait orientation in a device that is 320 X 480? In landscape? In another device that is 320 X 550?

View 1 Replies View Related

Android :: Buffering In Media Player - VideoView Blank For A While

Jun 2, 2010

I am using MediaPlayer to play a video in my app. The video takes a while to buffer and the videoview is blank for that time. Is there a way to start the buffering when the user is in the previous screen, so that when he comes to the video playing screen, the video is ready to play?

View 2 Replies View Related

Android :: Cannot Play Video - VideoView Broken?

Feb 11, 2009

VideoView video_view = new VideoView(context); video_view.setVideoPath("res/raw/movie.mp4"); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start();

Seems simple, but even with video files that I've seen work in other video players on the phone, I keep getting the "Sorry, this video cannot be played" message. And this associated debug info: INFO/MediaPlayer-JNI(234): prepareAsync: surface=0x1a3ff0 (id=1) ERROR/MediaPlayer(234): Error (-4,0) DEBUG/VideoView(234): Error: -4,0

what those errors mean or how I can fix this? If this is not how I should be using VideoView please let me know. I'd appreciate being sent in the right direction for how to get a local video file playing within a view.

View 4 Replies View Related

Android : How To Play A Video In VideoView In Droid?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK?

View 2 Replies View Related

Android : Can't Play Video In VideoView In Droid / How To Fix?

Jul 16, 2010

I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment.

View 3 Replies View Related

Android :: VideoView Cannot Play Long Path Video

May 28, 2010

VideoView cannot play long path video issue: Bug#8699

enviroment: Platform 2.0 simulator and G2 H/W.

If setVideoPath("/data/data/com.abc.android.abcd/Transformers.mp4");

It can play well.

While, If setVideoPath("/data/data/com.abc.android.abcd/content/ Transformers.mp4");

It cannot play.

Btw: familiar things occured when I display the jpeg file

bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit);

If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display

While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well.

View 3 Replies View Related

Android :: Load Video Into VideoView Without Instantly Playing?

Jul 23, 2010

I got a question is it possible in Android to load the video data into a VideoView without it instantly starting to play?? If so, how could I do that?

View 1 Replies View Related

Android :: VideoView - Detect Point Of Time In Video

May 10, 2010

I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends.

I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I detect the 10s mark?

View 1 Replies View Related

Android :: VideoView In ViewFlipper Is Transparent When Video Is Playing

Sep 10, 2010

I've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent area where the GLSurfaceView shows through is where the video is supposed to be. I can hear it playing through the speaker and the timeline is moving forward, so I know it's playing.

View 1 Replies View Related

Android :: Streaming And Playing Video Using Videoview On Motorola Milestone

Sep 27, 2010

I have a problem in playing video file in android using VideoView. When I keep the .3gp video file locally in res/raw folder, the video file plays successfully. But when I keep this same file on live web server and stream it, it runs on Android G1, Nexus one and Tatoo which I have for testing. But It fails to stream and play on Motorola milestone. I got the error on device as: 'This video is not valid for streaming'. What problem it should be, I am really seek of finding it. Is it the issue of programming or file format?

View 2 Replies View Related

Android :: Video Playback On VideoView Disappears After Going Back From Another Activity / Why Is So?

Jun 8, 2010

I have two Activities: one with VideoView attached to MediaPlayer and the second one.
I start watching a video in the first Activity, then during playback I start second Activity.
After going back to first Activity I can hear sound but see no picture.

My Video Layout...

Do you have any ideas why video doesn't appear?

View 2 Replies View Related

Android :: Blank Video Being Recorded

Aug 19, 2009

I am trying to develeop a video capture application on the HTC Ion device using the MediaRecorder class. The application seems to run and record MP4 output file, but it is blank when I view it with QuickTime! I am wondering if I am setting up the MediaRecorder correctly. Also, expected to see a live preview because a Surface to display the preview was set . But nothing shows up. Any one have suggestions as to what could be doing wrong?

View 2 Replies View Related

Android :: Content Provider Blank Screen

Sep 16, 2010

My app has one activity and one ContentProvider, the activity is simple in that it's just a splash screen at the moment with no other logic in it (I do intend to have more activities in the app). The ContentProvider uses SQLite as a back end and loads some static data from files on first install, a slow process due to file sizes and database initialization. My problem is that I want the activity to show up as soon as the install starts and maybe display a progress bar or dialog to show the user progress about the install. At the moment I get a blank (white) screen while the ContentProvider is initialising the data which takes quite a long time and I get "Activity idle timeout for history record" warning in LogCat. My splash screen only shows when the Content Provider is done, from the app standpoint this is undesirable behaviour. One potential solutions would be to manually start the provider via an AsyncTask but I have a feeling that this is a bad approach due to the fact that if the activity is interupted and restarted while the install is underway and a new AsyncTast is created through the activity's onCreate() then I'll have worst problems on my hands. Is there a way to start the content provider in the background and display my splash screen activity straight after the app is started? Note that this problem is only an issue on first install.

View 4 Replies View Related

Android :: Blank Screen And ANR While Application Starting Up?

Apr 6, 2010

While opening my application from application launcher. Sometimes I am getting blank screen for long time (almost 3 min). If I perform some key events then I am getting ANR. Log is as follows.

I/ActivityManager( 57): Starting activity: Intent {
action=android.intent.action.MAIN categories ={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.test/com.test.MyScreen} }
E/JavaBinder( 57): !!! FAILED BINDER TRANSACTION !!!

After this I am getting activity launch timeout and Idle timeout. Is there any design issue with my activity or problem with android environment.

View 5 Replies View Related

Android :: MediaPlayer Not Running - Just Blank Screen

Mar 5, 2009

I tried a simple mediaplayer application, just to run a .3gp file. First, i put the .3gp file in "Raw" folder and tried to run, but nothing is displaying, just blank screen only.... please guide me, where i am going wrong. I dont have any xml file, is it needed ??

Heres the code, which i am trying

CODE:....................

View 9 Replies View Related

Android :: Blank Screen When Switching Activities / Fix It?

Apr 25, 2009

I've got a basic list activity with a few images that when you select one starts a new activity with a SurfaceView (based on the Lunar Lander sample). Some times the screen is just blank, from some debugging I can see that the background .png is being loaded and doDraw() is being called by the activity doesn't display anything for anything from 4 to 20 seconds. Other times the game activity is loaded just fine. I assumed it was some kind of garbage collection problem but I can't see anything in LogCat and the second activity is actually loaded, just not displayed for some reason.

View 2 Replies View Related

Android Emulator Shows Nothing But Blank Screen

May 7, 2014

The problem is that I have created multiple emulators using android 4.4.2 API and none of them show anything but blank screen..I tried an AVD with Google API 19..thats not working either..

View 1 Replies View Related

Android :: End Call On Emulator The Device Screen Goes Blank

Dec 2, 2009

i am writing a widget and trying to prove that it doesn't run when the phone is in deep sleep as i am setting an alarm with type ELAPSED_REALTIME. when i hit the end call on the emulator the device screen goes blank, but i still see my alarms being delivered. am i missing something?

View 4 Replies View Related

Android :: Blank Black Screen While Transiting To New Activity

Jul 16, 2010

I am facing a problem.In my application I have 3 actvities A,B,C which i have declared as singleInstance.I have observed that for the first time when I launch these activities(like A > B or B > C) there is a delay observed and I see a black screen for a while.

I see in the blanch screen the header text that gets displayed is the application name which i have given in the android manifest.xml(android:label="@string/app_name")

I amy unable to understand why this blank screen is observed? Experts please comment on how to avoid it.

View 3 Replies View Related

Android :: Flikie Wallpaper Hd - Blank Black Screen

Jul 10, 2010

Phone - HTC incredible 2.1 no root

I love flikie wallpaper hd app but for some strange reason it fails to load an image sometimes and I just have a blank black screen that stays until I manually change it. I have 400+ wallpapers that I have set to change every 30 min and no I don't have a solid black wallpaper. Anyone else have this problem? Have a solution?

View 2 Replies View Related

Android :: Blank Screen Displayed After Downloading From Browser

Dec 16, 2009

We are developing an application that requires a download of a music file (mp3). We are using the Browser Activity for the same.

The Browser Activity is invoked from the application and the download url is passed to it, like: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(downloadurl)));

However, after downloading, on the download list page, if we press the Back button, a blank white screen is displayed. Only after we press the Back button a second time on this white screen, the application screen is displayed. This happens because the Browser Activity view is displayed before the actual downloading starts.

This is an issue in the application flow. We need to manage the flow in such a way that the 'Back' key press on the download list view will take the control to the application screen instead of the white screen.

View 3 Replies View Related

General :: Galaxy Y S6102 Screen Goes Blank / Nothing Appears Except Samsung Logo Screen

Apr 29, 2014

i have tried to install kitkat version for galaxy y duos s6102,for that i installed clockwork mod n cynogenmod n kitkat file..but after installing the screen goes blank,nothing appears except Samsung logo screen,

View 2 Replies View Related

Sony Ericsson Xperia X8 :: Blank Screen / Black Screen / Hang / Freeze Error?

Dec 2, 2010

This was reported in the other thread about X8 Issues, but thought to start a new one to gather feedback from users. It's about the ''black screen'' freezing issue encountered by some users. I have had this several times since owning the phone for a few weeks, so it is a recurring issue. Problem: The phone hangs or appears to be shut down or become unresponsive suddenly. Pressing the hardware buttons doesn't help as the phone doesn't react at all. Solution: Take out cover and battery and restart.Observations: From my own observations, it's not actually a shutdown but a major freezing/hanging. Sometimes when it happens, I can still see vague shades of the display at an angle. After leaving the phone for a while in the pocket, the phone comes back to normal again. Not sure if this is true for all users with this problem. Anyway, gathering more feedback to see how prevalent the problem is, to evaluate whether I should take it to the SE service centre, or whether doing so will help at all.

View 3 Replies View Related

Android :: Blank Screen Appear When EditText Get Focus In IDPI Mode

Oct 10, 2010

I found that when EditText in placing at the bottom of screen, and the activity's android:windowSoftInputMode="adjustPan", and the apps run in ldpi(240*320) mode, then when EditText has focus, the content of the activity is panned too far to the above, thus leaving a blank screen between the content of the window and the soft input panel.

You can see the screenshot of this problem at
https://sites.google.com/site/wilderwang/android
Also, the source code to repro this problem can also be get at
https://sites.google.com/site/wilderwang/android

When I test further, if the same apps run in hdpi(480*800), when EditText got focus, the content of the window panned too small thus causing the soft input window cover the EditText view. It seems the distance of the window panned not compute the screen density.

View 2 Replies View Related

Android :: Emulator Start But Window Show Blank Screen

Mar 15, 2010

WARN/WindowManager(61): No focus window, dropping: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=229 mFlags=8}

View 2 Replies View Related

Android :: How To Avoid Blank Screen On Pause Camera Preview

Jun 18, 2009

I'm running a standard camera preview (i use the camera api demo as a reference).

When i hit the capture button, there is a black screen for a good 1/2 second until the captured image appears.

My question is how can i freeze the last image being previewed on the screen while i do the capture work ? I don't mind that the quality of the displayed image is not as good.

If i hit camera.stopPreview() -> that goes into the black screen which i don't want.

View 2 Replies View Related

Android :: Screen Occasionally Goes Blank On Milestones - Possible Causes / Ways Of Debugging?

Jul 7, 2010

I have an application I am currently working on for a client which is suffering from a particularly hard to debug problem. Every so often, the device screen will go blank, not just while running my application, but entirely. If I press the home button, for instance, it's still blank. This happens fairly rarely ( I myself have only seen it once or twice in a couple of months, and unfortunately couldn't gather log information immediately when it happened. What log info I was able to gather seemed to show that the phone continued to run properly - I was still seeing events in the log file - the screen was just blank ). So far, this has only been observed while running on Motorola Milestones ( this may or may not be coincidence - it's hard to tell given the infrequency of occurance ). Has anyone else observed anything similar? Any suggestions as to possible causes/ways of debugging?

View 3 Replies View Related

Android :: Adding View Extending From SurfaceView To Layout Gives Blank Screen

Jun 5, 2010

I'm very new to Android programming, so this is probably something pretty basic. I just have an xml layout with a few buttons. I'm trying to follow the model given by the JetBoy demo, so I'm adding a view to the layout which extends SurfaceView. When this new view is put in my xml layout, I just get a blank screen.

Here's the XML layout if it helps. The gameview element is what causes the screen to be blank

CODE:......................

View 2 Replies View Related

HTC EVO 4G :: Screen Goes Blank

Jul 14, 2010

Some background info: I got an HTC Evo a few days after the initial launch. I had no problems with the screen at first at least for a few weeks. Then all of a sudden, the screen would go blank after I took the phone off the charger, or would finish a call, and a few other instances. After dealing with that for a little over a week, I took the Evo back to sprint and got a brand new one. I looked all over the forums, but could not find any answers. I know some others are having this issue, but it doesn't seem that widespread. So I get the new phone, and for the first day, I don't install any of the apps I had on the last phone because of a lack of time. No problems to report the first day of use, so I think I'm in the clear. The next day I start installing all of the apps I had on the first Evo, and bang, it starts to happen again. The screen goes blank, and I can do nothing to turn it on except to pull the battery out and restart the phone which is a monster pain. After all of this, I have to think its a software issue. Some app I have running could be causing this? How likely is it that 2 Evo's have this exact same problem, and that it's hardware related? Here is a list of apps I have installed on my phone: maui9111's Apps on the phone. I tried uninstalling several of them, but still can't find the solution. Anyone have any ideas? I love this phone, but this issue is driving me nuts!

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved