Android :: Framerate Killed By OnTouchEvent Spam

Apr 27, 2009

I've got a problem with a flood of touch events destroying my game's framerate while there is a touch active. Basically onTouchEvent is called (with getAction = ACTION_MOVE, x = 0 and y = 0) about a hundred times a second for as long as the finger is touching the screen. I've tried returning from onTouchEvent straight away, and even removing its implementation at all, but it doesn't help - the app slows to a crawl as soon as a finger is down. I asked on the IRC channel and Romain Guy advised me that they're aware of the problem but didn't have time to fix it for Cupcake, so I'm not expecting a full solution!

Android :: Framerate killed by onTouchEvent spam


Android :: Regulate Framerate In Droid App?

Nov 5, 2010

How can I regulate the framerate in my android app? I would like the game to run at a constant speed. My app doesn't require a high framerate so I don't want one because that would take up more battery then necessary.

View 1 Replies View Related

Android :: Why Are Touch Events Destroying My Framerate?

Apr 27, 2009

I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen.While they're touching it, onTouchEvent is called (with action = ACTION_MOVE, x = 0 and y = 0) roughly once every ten milliseconds at what appears to be a fairly high priority, as it absolutely obliterates the framerate. As soon as the touch ends the framerate returns to its nice state.Has anyone encountered this? Is there a way to reduce the rate at which ACTION_MOVE events are generated, or to ensure that they're only generated when there is actual movement, or use a polling method that just gets the current location of the touch? Or even just a way to disable it entirely?

View 4 Replies View Related

HTC EVO 4G :: Framerate - Its 25fps / 30fps?

May 16, 2010

Tried searching. has anybody got the confirmed framerate?

Is it 25fps or 30fps?

View 19 Replies View Related

Android :: OnTouchEvent Limited To 36x / Second?

Jan 12, 2010

I've been pulling my hair out trying to achieve smooth scrolling in an OpenGL-based app on Eclair. It seems that no matter what I do, I cannot get more than 36 events per second (the rest is sent in history data which is useless in my case). This happens on both the emulator and the Motorola Milestone.Is this a hardcoded limit or am I doing something wrong? I'm implementing onTouchEvent on the activity and recording how many events are received per second and then send that info through Log.v to Eclipse. I also tried implementing onTouchEvent on the view instead of the activity and the results are the same.

View 4 Replies View Related

HTC Hero :: Framerate Of Playing Videos Poor

Nov 14, 2009

when playing videos the framerate is really poor, and sometimes it just plays the first few seconds of the vid and stops, but the audio continues. So, basically my question is, what are the best ideals for a video to play on the hero

Resolution?
File format?
Audio quality?
Vid Quality?
Framerate? et

View 4 Replies View Related

Android :: Does OnTouchEvent Has To Extends From MapView?

Jan 26, 2010

I want to catch any onTouchEvent() on the mapview. After search lots of questions&answers, I found only when I write my own MapView(MyMapView)and define onTouchEvent, then use this MyMapView in main activity.

View 2 Replies View Related

Android :: Drag Any Particular View With Ontouchevent?

Aug 5, 2010

I am making an user interface and i want to drag any one of them.how can i with ontouchevent.

View 2 Replies View Related

Motorola Droid :: Framerate On Snesoid / Does It Require Overclocking?

Feb 16, 2010

Do you guy think that the 2.1 update will help smooth out the framerate on the SNESoid or does it require overclocking? Also I tried out a Link to the past just a couple minutes ago and noticed that the layers are all wrong. Like when it was raining, I couldn't see the actual landscape and was just guessing where I was going. Any idea on how to correct the layering issue?

View 2 Replies View Related

General :: Any Special Settings For Phone To Have Better Framerate And Audio

Sep 29, 2013

Im tying to use my T-Mobile Prism II (4G) to play "Ocarina of Time" and "Majoras Mask", but i get VERY slow framerate and consant audio skipping. Are there any special settings for my phone to have better framerate and audio?

View 3 Replies View Related

Android :: Stuck In OnTouchEvent & OnClikc Method

Mar 26, 2010

I am stuck in a situation,where I have onClick() method & onTouchEvent method. The situation is the my onTouchEvent is handling the fling gestures (like left,right), after each fling i am changing the Layout & presenting new one for the user. On each layout i have some buttons & they have the onClick() set. Now when i do the gesture nothing happens & sometimes the onClick gets called. how i can make these two methods to work correctly?

View 4 Replies View Related

Android :: Lags During OnTouchEvent On Motorola DROID

Dec 16, 2009

I have several complaints from Moto DROID users who experience lags while touching. In my app I implement the recommended workaround with two threads and Thread.Sleep( 35 ) . It worked and works perfectly on my G1 and on some other Google devices. But for DROID I hear many complaints. As I don't have a DROID, could someone please tell me if there is still a need for this workaround? Or shall I have to do anything else?

View 2 Replies View Related

Android :: How Can I Check Left And Right Motion In OnTouchEvent?

Jul 7, 2009

i need left, right motion event and a click event . problem is that, if i have onclickEvent then onTouchEvent doesn't fire. onTouchEvent works only if i disable onclickEvent and also it doesn't work what i expect.

1-only ACTION_MOVE fires twice everytime when i move on screen.

2-can't get left and right motion.

View 6 Replies View Related

Android :: Detect Where On Screen OnTouchevent Happened

Jul 27, 2010

I've got an onTouchEvent boolean on a Surfaceview, I've got openGL objects drawn on the view and I'm wondering is there anyway to detect where on the screen the onTouch happened? e.g (x,y) co-ordinates.

View 1 Replies View Related

Android :: Sleeping In OnTouchEvent Blocks OnSensorChanged

Nov 13, 2010

I'm making an application which will utilize both touchevents and sensorevents. The problem with touchevents is that they fire off very often, and thereby consumes massive amounts of CPU time. The common solution is to do a Thread.sleep to make it cool down.However, if one wants to use both the onTouchEvent and onSensorChanged in the same activity, applying the Thread.sleep hack will also slow down onSensorChanged. This is obviously caused by the two methods being called from the same (ui) thread.Is there some way to call onTouchEvent from a different thread than the ui, so one could do the Thread.sleep trick without slowing down onSensorChanged as well?

View 1 Replies View Related

Android :: OnTouchEvent How To Get Curret View Under Finger?

Nov 19, 2010

I'm adding 5 ImageView to an linear layout at runtime, so far so good, but what i would like to do is, when the user slide his finger over one of them, i would like to change the image, so my question would be, how can i know what's the current imageview under the user finger.?

View 2 Replies View Related

Android :: Drag Marker On Map / Handle It In OnTouchEvent()?

Oct 15, 2010

How can I drag a marker on the map?
How to handle it in onTouchEvent()?

I had written one code that actually drags. But it feels like the map is moving instead of the marker. That code is...

View 1 Replies View Related

Motorola Droid :: Framerate Locked On Phone Even After Root / Can It Go Higher Than 30 Fps

Nov 12, 2010

Is the framerate locked on the droid even after root? Can it go higher than 30 fps? May be a dumb question im just curious if anybody knows.

View 1 Replies View Related

Android :: No Window To Dispatch Pointer Action 1 OnTouchEvent

Feb 3, 2009

Does anybody have any idea why I get often(but not always) error during the on touch event? Handling touch events is freezed for few seconds(this appears only immediately after application start). Then Error screen appears (choose wait of close). When I choose wait after few seconds screen is starting to process events. I'm using surfaceView with thread for painting. In logcat I get something like : "No window to dispatch pointer action 1".

View 2 Replies View Related

Android : Create App To Draw Simple Lines Through OnTouchEvent?

Dec 29, 2009

what is best way to create app in which I only need to draw simple lines through onTouchEvent? When i use invalidate everytime i draw any line, that erase lines i draw before. But if I use some List structure to store drawed lines it lose performance. Is there any simple way to do it?

View 6 Replies View Related

Android :: Prolonged Touching In One Area Causes OnTouchEvent To Stop Registering?

Jan 12, 2010

I'm trying to do something in my app where you have to hold your finger on the screen for more than 30 seconds. After about 30 seconds, it stops sending onTouchEvents for that part of the screen, almost like a "dead zone." Tested on a motorola droid, and is there any way to stop this from happening?

View 6 Replies View Related

Android : Catching Button Behavior - Using OnTouchEvent Method To Capture ACTION_DOWN

Oct 20, 2010

I need to specify the full button images for both the up and down positions. My impression is that the most probable choice is to use an custom button based on the ImageView and specify the image for up and down positions. I am using the OnTouchEvent method to capture the ACTION_DOWN, but I'm not getting the ACTION_UP event.

Is there a better choice for creating a button that controls the full button image, catches the Down/Up and can subdivide the down time into time slices? If not, how do I catch the up event.

My application expects a screen touch on the "button" and not a keyboard action.

View 3 Replies View Related

Android :: App Comment Spam

Oct 22, 2010

I've noticed that a lot of comments on top apps are from comment spammers. When is something going to be done about this market wide problem? There are probably less than 20 of these users who hit virtually every top app with comment spam. My app is getting hit every single day by these people. It's really getting annoying.

View 2 Replies View Related

Android :: Why All Spam Suddenly Appearing?

Feb 16, 2010

I don't like the spam on our discussion group and it seems to be getting worse in the last week or so. Maybe the sources could be tracked and lose their accounts

View 6 Replies View Related

Android :: How To Delete All Gmail Spam At Once?

Dec 21, 2009

Does anybody know how to delete all spam at one time?

View 3 Replies View Related

Android :: Google Voice Spam

May 18, 2010

Here's the deal:I am new Voice user, just got in last weekend with the Google Voice for Students thing. I set up a GV number for safekeeping but I'm not using it for calls or SMS. Voice is only set up on my Incredible to handle voicemail. So, tonight, I got a notification on my phone. Upon looking, I see that there's a message in Voice despite having not received any call. It's from an unknown number and obviously a spam message.

Two questions:

1.) How did this message get to me? i.e. did someone text my GV number or what?

2.) Is spam going to be a big problem with Google Voice? If so, I'm afraid I will very quickly switch back to my carrier's service.

View 6 Replies View Related

General :: HTC Android Spam Popup

May 25, 2012

At what seem like random times a pop up message "Looks like you forgot to declare the Millennial Media MMAdViewOverlayActivity in your manifest file" comes on my screen.

I have googled the error and it seems to be attributed to either Angry Birds, Barnes and Noble or ubersoft.

I dont have any such software on my phone....... In fact I dont have that much software at all on my phone.

HTC Desire Z
Android 2.3.3
Vodafone UK

View 7 Replies View Related

Android :: How Do I Temporarily Disable / Bypass Android OnTouchEvent

Oct 2, 2010

To provide feedback from the user for game I'm writing.This event fires off some game control events that take some time to complete (because there is animation involved).The problem I'm having is during the animation if I keep touching the screen (AKA firing this event),Basically while the animation is running, I do not need this event, although it would be nice to queue it.What can I do to prevent the timeout and either queue the event, or temporarily disable it?

View 2 Replies View Related

Motorola Droid X :: Video Playback - Framerate - Jerky Playback

Aug 27, 2010

Been struggling with this since receiving my X. Seems like no matter what player I use the playback is jerky. It's very subtle, almost as if the video is dropping a frame or so every second. I've tried the stock player, Astro, Rockplayer, mPlayer, Zimly, Act, and the list goes on and the problem still persists.

I've encoded (using handbrake) with all of the settings suggested on the boards and have tweaked things on my own trying to find the proper setting, but still no luck. The strange and frustrating thing is that the exact same files play just fine on my 1st gen iPod touch (clearly an inferior piece of hardware) and on my wife's incredible. These encodes are of standard def DVDs at average settings (a full movie is about 1.3gb, all h.264 mp4 files.

I was able to improve playback by rebooting the X and then playing the video, but this doesn't seem like an acceptable solution every time I want to watch something. I tend to encode and watch a lot of stuff on my commute to/from work, and I'd really like to replace my touch with the X, but the media capabilities are falling way short. Considering switching to the Inc as I know it's able to play my media properly, but I'd prefer to keep the X for the larger screen size (though the Inc does seem to feel better when using one-handed). I'm on the fence right now, but if the X can't function as expected then it might be going back. Unfortunately I only have until the 1st to return it so I don't think I can hold out and see if 2.2 fixes this issue.

View 1 Replies View Related

Android :: Way To Mark Message As SPAM On K-9 Client?

Jul 27, 2010

It's annoying when i'm looking at my mail on the gmail site and seeing all these tags.Also is there a way to mark a message as SPAM on the K-9 client?

View 1 Replies View Related







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