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
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
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
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
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!
View 3 Replies
View Related
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
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
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
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
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
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
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
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
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
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
Mar 29, 2010
We have an app that needs to be distributed to a large but limited audience.We are doing this through our own web site.Now that AT&T will not allow any downloads to the Flip except through the Android market, we need to have the capability to have a limited distribution on the Market.Can this be done on the Android market?Will the Android market include this in the future?
View 13 Replies
View Related
Apr 19, 2010
We were told that, as of Android 1.6, background processes were put in a Linux process scheduling class that limited how much CPU they would use. A few weeks ago, I ran a benchmark test that seemed to validate this claim.I have run more tests, and I am no longer confident in my earlier conclusion. I can get a background process to significantly impact the foreground process, more than would seem to be possible if the background process was, indeed, CPU-limited.
View 14 Replies
View Related
Mar 3, 2010
I'm just wondering, if there is a limit on amount of data I can store in SharedPreferences. ( and if yes, what limit).
View 7 Replies
View Related
May 11, 2010
I've seen a lot of applications that utilize this view, but in my region (Israel) it seems to show a different view than what the Google Maps application shows. Google Maps shows everything you would expect from Google Maps except street view. However map view does not. It never shows streets and details, just a big blotch of gray. Satellite view works, but not with the best resolution the Maps application offers.Can anyone point me to documentation of this matter?
View 2 Replies
View Related
Nov 16, 2010
I'm new to Android platform but not new to software development. We want (in our company) to create Android software to compliment our truck management software. Basically, it will do couple very specific tasks.
a. Send GPS updates to server.
b. Receive trip information.
c. Send pickup/delivery confirmation to server.
After evaluating i.e. platform and Windows phone 7 platform we came to conclusion that only Android has multitasking that works for us. So, Android it is but I have some specific questions.
1. Data plan we want to use will be very limited. Probably 5M/mo and no voice/text. I figured 5x1024x1024 = 5242280 bytes will give me 1k per transmission every 15 minutes (3000 transmissions per mo). It will leave 2M for other stuff that will happens every couple of days. Does my math look OK or there is lot of "waste" traffic? Our server going to be XML SOAP and messages sent will be just Lon/Lat in XML package. 1K will be OK? If I just calculate bytes it will be even less but I wonder if there is "minimum" packet size, etc. Any insight on this data limitation appreciated.
2. Because of #1 we need to "lock" device somehow so there is no other software that uses network. Possible? If so, what do I need to look for? I found already created app - firewall and it says phone has to be rooted for that.
3. Receiving trip information. What's the best way to accomplish that given my situation? Should I run some kind of listener? Will my phone have IP address or something? Or should I get small text plan and use that for this specific functionality? Can I receive text message in my own application?
So, as you see we trying to shrink $80/mo service to $15/mo service that will do big savings to our company but not sure if it's all possible with constraints we have. Also, we may just give discounts to drivers who have Android phone and will install our app but we don't count on that.
View 2 Replies
View Related
Sep 11, 2010
Are Android phones limited to 160 characters on sms? If so why?
View 2 Replies
View Related
Feb 5, 2009
Can applications be limited to use certain area of the screen?
View 3 Replies
View Related
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
Jun 27, 2010
I have published an app on Android Market which is limited to Norway. I'm able to find and install it myself from Market, as can several other Norwegian users. A colleague (Android 2.1) and a friend (Android 1.6), on the other hand, cannot find it. They both have phones bought in Norway, with SIM cards from Norwegian providers.
Why are some Norwegian users able to find it, and others not? How does Google determine the location of Market users?
The app works on Android phones with v1.5+.
View 1 Replies
View Related
Jul 24, 2010
My droid incredible seems to be limited to 2046 friends on facebook in my people's list. It seems that new friends aren't added anymore automatically (that is synced up) ... is there such a limit? my people's list is a mix between my google contacts and facebook contacts (most of them linked so I can add phone numbers, etc.) I have no such limit with my google contacts. my contact storage is at about 50MB right now.
View 9 Replies
View Related
Aug 29, 2010
Apps amount limited by sd card size or number of pages for apps?
View 1 Replies
View Related
Aug 12, 2010
Just updated my HTC desire to froyo. So far I am loving the chrome2phone features and the wonders of mobile hotspot. Everything seems faster in rendering and processing. Also I am using dolphin browser and its a great browser compare to our stock. 1 word - tabs. Just wanna share 1 noticeable difference that kinda made me disappointed.
Our search button.
Back in 2.1. Our search button searches everything, from people contact, internet, maps, music etc. Now the search button only limited to well even tho there are 3 options. All, Web, App. If u choose web, it searches the web. If u choose App, it goes to market app. If u choose All, it just went to the web. Now if I want to search for people contact. i have to open people app then click the search button. If I want to search something in my email, I have to open mail app then click the search button. Seriously, tho 2.2 is really impressive with the features. Losing the old search functionality is. Well I have to click twice to get to what I want...
Now 2.2 people app> search button=profit
then 2.1 search button= profit.
View 1 Replies
View Related
Sep 15, 2010
I have one year of experience in programming. After getting laid off in cuts I managed to get a job in telecommunications planning. I'm good at my new job and don't want to leave it but I miss programming. I'd like to be able to code in my free time (which is about 4 hours every evening 7 days a week.)
I can code pretty well in C#, reasonably well in SQL and poorly in a unix shell.
What sort of job should I get on the side? Would anyone hire me as a free lancer? Should I focus on making apps for phones (android) instead?
View 7 Replies
View Related
Jun 6, 2010
I have a weird bug in my piano app. Sometimes keys (and thus notes) hang. I did a lot of debugging and narrowed it down to what looks like androids inaccuracy of motion event handling.Clearly it can be seen here that out of nowhere I suddenly have an ACTION_UP for another note. Shouldn't I definitely get a ACTION_MOVE first? As shown in the end of the log, it's definitely not an error in region detection, since the ACTION_UP event is clearly in the B4 region. Every onTouchEvent call is logged, so the log is accurate.
View 2 Replies
View Related
Apr 9, 2010
I've implemented a Class that extends Overlay and also override the onTap / onTouchEvent (tried both). Right now it seems like that event is triggered when you tap on the map regardless of position.How can I make sure that the event is triggered only when you tap over the overlay you have added?
View 2 Replies
View Related