Android :: Is Bad MotionEvent/Touch Slowdown Stuff Actually Fixed On First-gen 2.1 Updates

Apr 18, 2010

I'd really like to know what the state of that fix is as 2.1 is rolled out onto first generation (MSM7200-based) devices. As it stands, I don't see much of a problem with touch eating up CPU on the Droid and N1 but those are much faster phones so I don't think it would be quite as pronounced on them. My current 1.6 devices (G1 and Tattoo) cut my framerates in half during any touch (with the sleep hack, even). I optimized my new games so that they would run well-enough (25-40fps) on that hardware but they have very touch-centric interfaces so won't work well with that bug. I talked to a few people who run 2.0/2.1 mods on their G1s and they said the problem isn't any better. They still see the big slowdown. I tested on my 1.6 emulator vs a 2.1 emulator and there is a huge improvement. The 1.6 emulator slows down just like my G1 does and the 2.1 emulator shows only a tiny bit of slowdown, which is what I was hoping for. That's encouraging, but I have yet to see a real 2.1 MSM7200 update in the field so I don't know what to think yet.

Android :: Is bad MotionEvent/Touch slowdown stuff actually fixed on first-gen 2.1 updates


Android :: Touch Screen Slowdown

Mar 26, 2009

I am having a problem with the touch screen in that whenever the screen is touched, it causes significant slowdown because of the large number of callbacks that are being made. I have read in this group about throttling the UI thread, but this does not seem a good solution and i can't believe there isn't a better approach?

View 4 Replies View Related

Android :: MotionEvent - How To Get Coordinates Of Touch/ Pointer/mouse

Sep 26, 2010

I'm trying to get coordinates of the mouse, but there seems to be no easy ways. Can't make the MotionEvent object because the constructor is private. Can anyone please tell me how to get the coordinates of the touch/ pointer/mouse? I only want the touch coordinates of ImageView, but wouldn't mind the touch coordinates anywhere on the screen.

View 2 Replies View Related

Android :: 2.1 - MotionEvent Multiple Touch Events Get Mixed Up And Influence Each Other

Sep 24, 2010

Purpose of the app:

A simple app that draws a circle for every touch recognised on the screen and follows the touch events. On a 'high pressure reading' getPressure (int pointerIndex) the colour of the circle will change and the radius will increase. Additionally the touch ID with getPointerId (int pointerIndex), x- and y-coordinates and pressure are shown next to the finger touch.

Following a code snipplet of the important part (please forgive me it is not the nicest code ;) I know)

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

The problem:

A HTC Desire running Android 2.1 is the test platform. The app works fine and tracks two finger without a problem. But it seems that the two touch points interfere with each other when they get t0o close -- it looks like they circles 'snap'to a shared x and y axle. Sometimes they even swap the input coordinates of the other touch event. Another problem is that even though getPressure (int pointerIndex) refers to an PointerID both touch event have the same pressure reading.

As this is all a bit abstract, find a video here: http://www.youtube.com/watch?v=bFxjFexrclU

My question:

Is my code just simply wrong? Does Android 2.1 not handle the touch events well enough get things mixed up?Is this a hardware problem and has nothing to do with 1) and 2)?

View 1 Replies View Related

Android :: Metronome Timer Slowdown Via Handler / Threads Too

Oct 27, 2010

I have a simple, classic, statement that every 200 milliseconds plays a sound (a metronome). I wrote it using Handlers, and then in another way, using Threads. The problem is the same in both ways: when I press hardware home button, or also simply when I press a button to open a ListView, the metronome terribly slowdown for a while. This problem (not so strong, but however present) presents also doing nothing and leaving the application in foreground. Any ideas?

View 2 Replies View Related

General :: HTC One M8 / Nexus 7 - Slowdown On WiFi Across All Android Devices?

Apr 15, 2014

My main device is an HTC One M8, but I also have a Nexus 7 2013, Nexus 7 2012, Galaxy Nexus, and a Moto X running on the same Wi-Fi network. They are all experiencing some slow activity on Wi-Fi. I also have 2 desktop PCs and a Laptop running on the same network and they are running fine, no noticeable lag.

On all of my Android devices, browsing the web via Chrome is almost as snappy (but still not the speeds I get on data) as it is on my computers. However when it comes to certain apps, there is a noticeable slowdown. Instagram has a lot of trouble loading images, Facebook, Twitter, Play Store downloads are stupid slow as well. And a bunch of push notifications from those apps, as well as GMail, won't come through or will come through hours after they should have.

But if I just switch Wi-Fi off on the devices that also have a data plan running (Moto X, One M8, GNex) everything comes through as fast as expected.

Could it be my router? I have a Linksys E800.

View 2 Replies View Related

Sprint HTC Hero :: Outlook - Automatically Delete Stuff As Delete Stuff On The Exchange Server

Jan 15, 2010

I connect to my works Exchange server using EAS (I think, it was the default) and it syncs with my mail automagically as stuff comes in. I'd really like to find a way to automatically delete stuff on the Hero as I delete stuff on the exchange server. Is there a way to do this without involving another program?

View 1 Replies View Related

HTC Incredible :: Screen Unresponsive Or OS Slowdown?

Nov 18, 2010

It doesn't happen all the time, but it happens 7-10 times a day.Basically I can be using the keyboard or even in an App (like say angry birds) and the screen becomes unresponsive.The speed and responsiveness is comparable to trying to do anything on a 486 PC with a virus scan running.I type a letter and five seconds later it shows up.Interestingly, if I hit the sleep button, and then wake the phone back up it's completely fixed.I'm not saying I'm unique in this, I'm just saying I haven't figured out the correct search terms.I have a HTC Incredible, with the updated 2.2, vanilla.I highly doubt it is an App but here is my list just in case.
advocatus's Apps on the phone

View 1 Replies View Related

Motorola Droid X :: Wide Spread SMS App Slowdown

Aug 12, 2010

I noticed lately that my stock text message application, is going very slow. On entering the application, screen goes black for 5-10 seconds, loads up each contact, picture, name, 20 seconds later, no lag. In this post, a Droid X user actually contacts Motorolla and Verizon about the issue:Text Lag is Back - Droid Forum - Verizon Droid & the Motorola Droid Forum.

View 10 Replies View Related

HTC EVO 4G :: Froyo 2.2 Update Causing Sense Slowdown

Aug 5, 2010

I recently updated through the OTA update to Froyo 2.2 on a stock EVO 4g (not rooted or messed with at all).When I finished the update,I sent a couple apps to my SD card (like Where was one, forgot the rest, maybe Flikie wallpapers).After that, the SD card was somehow permanently corrupted, I couldn't even format it on the phone or through a card reader on a PC. Anyway, then I started noticing extreme slowdowns on my phone's Sense interface (even today after putting in a new card).For example, when I try to type a text message,I put like a few letters from the person's name and it takes a good 30 seconds to show the results as opposed to instantly.Also, when a call comes in, the number shows up for a few seconds until it recognizes the contact, etc.Could it be because without a working SD card, things were put on the phone and now the phone is full (even though now I have a new card in there)? Or does anyone know why else this could be and maybe offer a solution?

View 2 Replies View Related

General :: Samsung Galaxy Express Games Slowdown

Nov 30, 2013

I have a Samsung Galaxy Express, which is basically a gimped SIII and ran into some weird slowdown issues. I first noticed with Fast & Furious 6. When I first installed it, it ran smooth. After a few weeks, the game became so choppy it was close to unplayable. I just thought it was a fluke, maybe one of the updates didn't like my phone.

So, after this and other random issues, I did a factory reset. After that I downloaded Injustice, very happy it was finally added for android. Same thing, at first it ran great but after a week or two it started to become choppy. I have cleared all my caches, cleared my ram right before playing by using an app All-in-One Toolbox and I have 2.3 Gigs free space out of 5 Gigs.

The phone runs on Jelly Bean(I think, whatever is 4.1.2) and the model number is SGH-I437. I know there are at least two different Samsung Galaxy Express model numbers so that is why I added that info.

View 3 Replies View Related

Android :: Does MotionEvent.getEdgeFlags() Ever Return Anything Other Than 0

Nov 14, 2009

I was expecting the getEdgeFlags() method of MotionEvent to tell me when a MotionEvent had reached the edge of something, but the value returned from getEdgeFlags() is *always* zero. Is this the expected behavior? The documentation says that the flags indicate when a touch has reached the edge of the display. I've tried this on a real device and in the emulator, and the location coordinates never quite reach the edge of the display, and getEdgeFlags() always returns 0. By "never quite reach" I mean that if dragging a finger off the left edge of the display, the smallest X I got was 2. Reaching the edge of the view doesn't seem to change the value returned either.

I suppose I could set the flags myself using setEdgeFlags() using calculations with known dimensions of the object whose edges I care about. Is that how it's supposed to be used? Is this broken for now?

View 3 Replies View Related

Android :: GetPressure Vs GetSize For MotionEvent

Sep 10, 2009

Debugging on my G1 phone, I am trying to use android.view.MotionEvent.getPressure() and MotionEvent.getSize().

For MotionEvent.getSize(), I always get 0 (the documentation says it returns a value ranging from 0 to 1;

For MotionEvent.getPressure(), it seems to me this actually reflects the real finger touch size, as opposed to "pressure"; for me, I get values range from 0 - 0.63.

Am I missing anything or is it a known bug of the SDK?

View 4 Replies View Related

Android :: Motionevent.getX And GetY

Sep 3, 2010

I have a display that is 854x480 pixels. Why is it that the MotionEvent.getX and getY methods return floats? As far as I can tell, the pixels on the display are discrete integers, there is no such thing as a half a pixel on the display.

View 1 Replies View Related

Android : Know MotionEvent Is Relative / Absolute?

Sep 11, 2009

I am implementing OnTouchListener and am receiving MotionEvent objects. Some ACTION_MOVE events reports absolute X/Y coordinates, while some reports relative coordinates.

How can I ask a MotionEvent what kind of coordinates it currently represents?

View 3 Replies View Related

Android :: Activity To Generate MotionEvent.ACTION_UP

Apr 9, 2010

I am having trouble getting my activity to generate a MotionEvent.ACTION_UP. Probably a beginner's error.

In LogCat, I'm only seeing the ACTION_MOVE event (which is an int value of 3). I also see the X/Y coordinates. No ACTION_DOWN and no ACTION_UP.

I looked everywhere for a solution. I found one question on a forum that seems to be the same as my issue, but no solution is proposed: http://groups.google.com/group/android-developers/browse_thread/thread/9a9c23e40f02c134/bf12b89561f204ad?lnk=gst&q=ACTION_UP#bf12b89561f204ad

Here's my code:

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

View 1 Replies View Related

Android :: Strategies For Using Touchscreen MotionEvent Coordinates

Mar 17, 2010

I'm writing a simple tile based game using a canvas and a 5X5 grid of tiles. To determine if a tile is clicked I look at the MotionEvent supplied by onTouch. I get the coordinates when MotionEvent.event is ACTION_UP and translate to tiles. This works great on the emulator but when I touch on a device the actual coordinates of the touch register higher than I'd expect as a end user.

I'm wondering what strategies people have used to get a closer to "expected" result. Do you use a simple Y offset? Do you average the coordinates over the life of the touch? Do you use other methods?

View 4 Replies View Related

Android :: MotionEvent - Left - Right And Click Event In My App

Jul 10, 2009

I need to have a left, right and click event in my App.

I am trying it like below:

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

View 2 Replies View Related

Android :: MotionEvent HistorySize And Multiple Pointers

Aug 22, 2010

I couldn't find a definite reference for the size of a MotionEvents history, when there are multiple pointers. The reference says that if you use a getHistorical* function, you might pass it a history position which is somewhere between [0..getHistorySize()-1]. But in a lot of examples handling multitouch if there are multiple pointers they only use history positions between [0..getHistorySize()/ getPointers()-1] (so they divide the history's size with the number of pointers). Which one is the correct way?

View 8 Replies View Related

Android :: MotionEvent: Event.getHistoricalEventTime(int Pos) Broken?

Oct 22, 2010

It seems like making any call to event.getHistoricalEventTime(int pos) when there is historical touch position data available makes my application crash. I've searched online and it seems like no one ever uses this method.

View 4 Replies View Related

Android :: Metric Of MotionEvent API GetPressure - GetSize

Oct 12, 2010

I'm working on a program which used the functions as title.

There's a problem that the tunctions above do not have their metrics on API website.

To avoid misunderstanding, here is an example about "metric" I metioned before.

Ex. size = pixel, pressure = kilogram(kg)

I have no idea about the metric at all.

View 1 Replies View Related

Android :: Properly Pass MotionEvent To A Worker Thread?

Jul 20, 2009

My app forwards MotionEvents, reported by GestureDetector.OnGestureListener, to a worker thread. Right now i am doing it by calling MotionEvent.obtain, pass the obtained copy to the worker thread, handle it and recycle it at the worker thread. Is it required to obtain and recycle a MotionEvent if it is passed to another thread? Or could it safely be skiped? If i am making things overly complicated, could you please explain me at which conditions MotionEvent.obtain is usually called?

View 2 Replies View Related

Android :: MotionEvent - Cant Find Left And Right Motion Event

Jul 1, 2010

I am developing one application in which there is an imageview...in which i want to move left or right using mouse touch...for that i found "android.view.MotionEvent" but in MotionEvent there are few events among that ACTION_CANCEL 2. ACTION_DOWN 3. ACTION_UP ......etc.

Hence there is no such event for "LEFT" and "RIGHT" action....so is there any other way to implement the "LEFT" and "RIGHT" move ?

View 1 Replies View Related

Android :: Motionevent - Multitouch Events Give Wrong Coordinates

Jan 6, 2010

I have been racking my brain to try to figure out what is going wrong here. I wanted to experiment with multi-touch, so I decided to add the controls for LunarLander to the touchscreen.

Instead of adding buttons, I defined regions on the screen that when touched, would act like the buttons on the keyboard (for example, the gas fires as long as you press the screen in the area defined for the gas button, and stops firing when you release.)

To do this, I added the onTouchEvent override to the LunarView class as follows:

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

View 2 Replies View Related

Android :: MotionEvent And KeyEvent Causing Excessive Garbage Collect (GC) Calls

Jan 3, 2010

I'm running into some issues with input events and garbage collection, or more precisely object allocation. I am creating a game and have pretty much got my head around the OpenGL environment. I've digested all the relevant material I could find regarding performance, memory allocation etc (and watched the excellent presentation by Chris Pruett - http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAn...). I've pretty much eliminated any object allocations after initial setup from my game (which is still in its infancy), but I'm still getting a bunch of GC calls, like this:...........................

View 6 Replies View Related

Android :: MotionEvent ACTION_DOWN Throwing Security Exception For INJECT_EVENT Permission

Jan 25, 2010

I have added this line in my androidManifest.xml <uses-permission android:name="android.permission.INJECT_EVENT"/>

I am trying to execute following code:

CODE:........

Both above lines are throwing exception W/System.err(762): java.lang.SecurityException: Injecting to another application requires INJECT_EVENT permission.

Do we need anything else too to get it working ?

View 4 Replies View Related

MotionEvent And Relative Layout?

Nov 24, 2011

I have a relative layout built from XML.I am capturing the onTouchEvent.When I touch the screen anywhere except over the TableLayout or ImageButton

the MotionEvent.ACTION_DOWN and MotionEvent.ACTION_MOVE

events work fine.

how to make the onTouchEvent() work on the TableLayout and ImageButton views?

The purpose of the exercise was to have a drag method working over the relative layout,no

Maybe manipulating the layout_margin values? I was contemplating a transparent canvas overlay but haven't figured that out yet.

Code snippets below

XML
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"[code]......

View 2 Replies View Related

Android :: Fixed Top And Bottom

Feb 22, 2010

I have a large view.I have to show constant top and bottom in the screen. Which contain ImageView and TextView.On the screen this two remain at their position.FOY I am not using ListView.How can I do that so the the portion between the top and bottom only movable?

View 11 Replies View Related

Android :: Pandora Ever Be Fixed?

Aug 20, 2010

Will the horrible quality of Pandora since Froyo was launched be fixed anytime soon?

View 5 Replies View Related

Android : Way To Increase Timeout For Touch-select Vs Touch-scroll?

Nov 9, 2009

Is there a way to make highlighting of a row in a listview delayed if the user is simply scrolling the list with their finger? To clarify, when the user puts their finger down to scroll, the intersected row (if any) gets highlighted for a short moment, before it realizes the user is just trying to scroll (then the highlight turns off). It seems like the timeout is too short - iPhone has the same behavior, just seems that the timeout is longer to discern between a real row- select-touch, and just a scroll-touch. Any way to tweak this? You can see the behavior in any of the system apps that have lists..

View 2 Replies View Related







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