Android :: Possible To Implement Double Buffering?
Oct 19, 2010Is double buffering makes any sense on android? Can it be implemented?
View 1 RepliesIs double buffering makes any sense on android? Can it be implemented?
View 1 RepliesDo anyone here having experience of applying double-buffering in Android 2D animation/ games? I'm sure this is a pretty basic functionality people will discuss about when writing games on Android, but seems like the source I found on web was pretty little. The only one I found is using OpenGL blit (intro by Chris Pruett in Google IO 2009 session). If I want only a 2D, how do I do that?
View 14 Replies View RelatedIm having problems with implementing the double tap. Well i implemented the ongestureListener and i had the gesturedetector, but im not sure wheres the problem here is my code...
View 1 Replies View RelatedCan anybody tell how to implement double click event in android without using gesturedetector?
View 2 Replies View RelatedWhen I use the VideoView to play the RTSP streaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code:
String VideoUri = "rtsp://192.168.5.121:6666/live/h264"; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start();
I am using VideoView to display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag. Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner?
View 1 Replies View RelatedIf you click on the top left corner, on the logo of whatever channel you are listening to, it gives you an options menu for buffering. But I really don't know what all these numbers and settings actually mean. You click on a "Start Buffer" and there are just 5 numbers to choose from. Can anyone explain what all these settings are?
View 1 Replies View RelatedIs there a way to change the buffer size in the media player on Android? I'm trying to stream video to mobile devices over rtsp. It works fine, but on android v1.6+ the buffer overflows leading to degraded video quality. Is there any way to configure the media player to use a bigger buffer, or take any other measures to prevent overflow?
View 3 Replies View RelatedI'm playing video on Android using media player via RTSP. The player takes about 12s to buffer before it starts playing. Anyone know how I can convince the player to buffer less? I have full control over the RTSP server and the SDP it returns.
View 1 Replies View RelatedI have an app that displays a video using VideoView. The layout consists of a Clock and a VideoView laid out in a simple vertical LinearLayout. Here's my code snippet that I use:
VideoView mVideoView = new VideoView(this);
mVideoView.setVideoPath(myVideoURL);
mVideoView.requestFocus();
mVideoView.start();
Since the buffering of the video takes about 8-10 seconds, the layout comes up with the Clock, but the VideoView stays blank. What I want to achieve is this:
- Display an ImageView for the 10s while the video is buffering
- Detect when the video is ready to be played (onPrepared?)
- Show the Clock and VideoView and start the Video
I have a problem streaming live video files. When I stream a file say of duration 5 minutes, it stops after streaming 2 to 3 minutes and enters in to endless buffering state. The VideoViews's OnBufferingListener is endlessly executed, however it shows that the buffering is not progressing anymore : MediaPlayer's buffer says it has buffered for example 90% whereas when I call videoView.getBufferPercentage(), I get something very low, like 1% or 5% ... After a while in the buffering state, the application crashes. It seems like the buffering is taking all the memory.
View 2 Replies View RelatedI 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 RelatedHow do i remove the buffering sound from an radio app for android? My phone is rooted. I transferred the app to my pc and then I used apktools for extracting. The extracted .apk contains a few maps with a lot of xml and smali files and a few image files. I could'nt find any audio files in any of these maps (which could be the irritating loading sound that i want to remove).
View 3 Replies View RelatedWhy Update buffering is always 0% when mediaplayer play the rtsp? I try to play this both on the emulator and on the device. But eveytime it shows that the Update buffering is always 0%. Could anyone give me a reason?
At last it always shows the log
E/MediaPlayer( 1455): stop called in state 4
E/MediaPlayer( 1455): error (-38, 0)
E/PlayerDriver( 1088): Command (7) was canceled
I am unsure of the jargon so please bear with me, I am seeking advice on the best way to go about drawing the graphics for an app I am developing. Imagine you are creating a game of checkers, where you can drag/drop one piece at a time to a blank space on the board. When the piece is being moved, it seems to me that you should not need to redraw all of the pieces that are not being moved. Using the LunarLander example, is there a way to store the background image and only draw the piece being moved over it? I have been trying to figure out a way to capture the canvas as an bitmap that is occasionally refreshed.
View 5 Replies View RelatedI'm developing an application on Android 2.2. This application have to read some h264 videos using HTTP protocol. To read a video, I'm using following methods :
// INIT PART mMediaPlayer = new MediaPlayer(); mMediaPlayer.reset();
mMediaPlayer.setOnErrorListener(this); mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnSeekCompleteListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
// SET DATASOURCE mMediaPlayer.reset(); mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
In prepareAsync callback : public void onPrepared(MediaPlayer mediaplayer) { mMediaPlayer.start();
}
I've recently upgraded my Nexus 4, Nexus 7 and Nexus 10 all to Android 4.4 and as soon as I upgraded my Wi-Fi has been awful.The Wi-Fi is incredibly unstable, steaming media has major buffering / intermittency issues, messages sent over instant messaging apps are sometimes instant and sometimes take 30+ seconds to send.
Skype is the most telling of the issues as it randomly loses connection and my notifications literally never come through..Router Wi-Fi Settings: I've tried Channels, 1, 2, 4, 6, 8, 10 and 11
I've also tried adding
Code:
gDataInactivityTimeout=200
to the WCNSS_qcom_cfg.ini file as found:URL>...Wi-Fi is Always On, Wi-Fi Frequency is Auto or 2.4, Wi-Fi Optimization is Off.The wireless / wifi works fine on other tablets, laptops and wireless devices just my nexus devices on 4.4
I got this weird issue on all my devices where after a certain point the video freezes, buffers for ~8 seconds, plays for a couple and repeat. This is not video specific and changing the quality does not fix this, it just makes the problem appear later on. In HQ quality, after about 1:45 minutes of playing flawlessly it starts buffering the whole damn time. SQ quality can play up to 3-4 minutes before any issues arise.
This is on a broad range of devices, both mine and those of friends. My own Samsung Galaxy S2 running CM10.1 and Cube U30GT running CM10, but had the issue on stock, and a stock Galaxy Note and HTC Hero 2.
Other info. It's not network related. Happens on both wifi and 3g and on different connections/ISPs. My own Internet connection clocks up to 20mbps and has no problem playing any YT video on my PC. Other "streaming" video stuff work great. Twitch.tv plays great as does dailymotion. Other players, other than the default YT app, have no issues playing videos even on HQ. YT through the browser works fine but somehow doesn't let me switch to HQ and the "UI" generally feels bad. Feedly (which is great btw), has a sort of plugin that uses the YT app to play videos natively. Any videos played in the feedly app, using this "plugin" play great even in HQ, which is weird. I've tried reinstalling, uninstalling, stalling, killing, maiming, clearing data+cache, completely wiping the devices and sacrificing firstborns to Lucifer.
This feels like a caching issue of the youtube app. It feels like it starts caching up to a point (playing great in the process) and at some points cache fills up and starts deleting in order to make space to cache further. That leads to the pause and buffering of the video.
I can start streaming a video perefectly. However, if i pause it to go do something, or to let it pre-buffer, and i play it again, it will play for a little then stop. I look at the seekbar and it says its fully buffered. However, its not and it doesnt play anything and just sits their saying its buffering.
My guessing, well first attempt and finding the culprit, is that the service that is processing the video gets prematurely terminated and restarted thus returning that the buffer is complete.
I know the zeiki TB782B is cheap decent tablet but the video buffering from streaming websites is just a killer some sites are better than others Its not my internet speed that's good,but is there anyway I can improve this issue by downloading an app or some kind of hack or update?
View 1 Replies View RelatedIn my android application i have a video list screen,a buffering screen and a videoplayer screen.
As soon as the user clicks an item from videolist screen ,he is navigated to buffering screen and then to videoplayer.
In the buffering screen i am using Async task and doing the loading process in on background process.
Now my issue is like the user if has selested a video then gets navigated to buffering screen.But if the user clicks back when he is in buffering screen then initially he is getting navigated to videolist screen but immediately after that again he is navigated to videoplayer screen.
What i would like to have is either the back button should be made disable in buffering or should prevent the player tostart if back is clicked.
I just got my Samsung Behold II yesterday and have downloaded a couple apps. When I go to the app/widget screen I now have 2 icons for each of the apps I downloaded. Any way to get rid of one of them?
View 2 Replies View RelatedBet you are all thinking here's another idiot that doesn't know how to turn off notifications in the default android sms app?After installing Handcent I immediately disabled notifications in the default app so that only Handcent was generating them. This worked fine up until about 2 weeks ago when the default app started generating them. The option is definitely 100% disabled so I have no idea why it is still generating them. To make it worse even if I go into all messages with both Handcent and the default app my LED remains blue.
View 8 Replies View RelatedIs there a way/setting/app capable of being able to "double click" on an Icon while browsing on the phone. The way the company sets up my work calender is when I want to see what the schedule is I have to double click to open it. On a regular browser double clicking is no problem but on the EVO all it does is zoom in.
View 4 Replies View RelatedCan anybody please tell me how to get double and int value from a binary file. I have tried alot but its giving me wrong values.
View 2 Replies View RelatedI'm new here and to the Htc hero and heres my problem When receiving a text message I get double notified on my task bar as I have installed handcent messaging and I even used task killer to stop the hero's version from notifying me.
View 2 Replies View RelatedI have an idea for a better alternative to multitouch pinch zoom than just the double tap zoom. Many people complain that the double tap zoom isn't intuitive since it doesn't zoom at the level you want it too.I dont know how feasible my idea is and dont know how it could be implemented but I thought Id share it anyway.Double Tap Slide Zoom as I'm calling it is basically the same as double tap zooming except on the second tap you keep your finger on the screen and slide up to zoom in or slide down to zoom out.
View 4 Replies View RelatedI have an app that i am working on. but when i run it through the eclipse avd... It shows two icons in the app screen. any ideas what is going on?
Also I used the apk to install on my phone and i also saw two installation of the same app on my phone.
I am using following code to send sms message:
SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNo, null, message, null, null);
But when this code is executed two sms messages are sent. Does anybody have idea what can be a problem?
I am using HTC Tattoo with android 1.6
I'm noticing that there are double icons for an application I recently built. Is this being caused by an issue in my manifest? Or is this an artifact from a previously deleted rev of the apk?
View 1 Replies View Related