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.

Android :: onTouchEvent limited to 36x / second?


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

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 :: 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!

View 3 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

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 :: Market Limited Distribution

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

Android :: Background Processes Not Being CPU-limited?

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

Android :: SharedPreferences Limited In Size?

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

Android :: Google Map View Limited To Region?

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

Android :: Dealing With Very Limited Data Plan

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

Android :: Droid Phones Limited To 160 Characters On Sms / Why Is So?

Sep 11, 2010

Are Android phones limited to 160 characters on sms? If so why?

View 2 Replies View Related

Android : Can Apps Be Limited To Use Certain Area Of Screen?

Feb 5, 2009

Can applications be limited to use certain area of the screen?

View 3 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

Android :: Some Users Can't See My Location Limited Droid App In Market / Why?

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

Android :: Facebook Contacts Limited To 2046 / Is There Such A Limit?

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

Android :: Are App Space Limited To SD Card Size OE Number Of Pages?

Aug 29, 2010

Apps amount limited by sd card size or number of pages for apps?

View 1 Replies View Related

Android :: Froyo 2.2 Updated - Search Button Only Limited To 3 Options

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

Android : Advice For A Free Lance Programmer With Limited Experience?

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

Android :: Is Android OnTouchEvent Dispatching Accurate?

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

Android :: Android Map Overlay OnTouchEvent / OnTap How To?

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







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