Android :: Continuously Update Trackball Coordinates
Jan 9, 2010
I'm trying to figure out how to continuously update the coordinates of the trackball. Right now, I just want to write the values on change to TextViews to understand how it works.
I've been looking at the onTrackballEvent. Right now, I assume that each event passed as an argument to it should be seen as a complete event, that is from the start of the trackball movement to the end. Is this correct? Because if so, the values of x and y will be the same during the execution of the onTrackballEvent body. If this would NOT be the case, I could just use a timer and update the values at a regular interval..
So either I have to somehow interrupt the onTrackballEvent call and write the values, repeatedly over and over again while it is still moving, which seems weird, or...well this is pretty much were my Google search skills and Android knowledge comes to a halt.
View 3 Replies
Jun 30, 2010
I've been trying to write a little application that recognizes custom events in Android: you hold your finger over a TextView for a certain length of time, and it changes color.I'm using the MotionEvent coordinates and checking if they are within the bounds of a particular TextView, which is within a table.I am just attaching the onTouch listener to the table within the activity.But I get weird errors: the coordinates seem to be off by one view (i.e. if I touch the view below the view above reacts); or sometimes one will react, and the other will not. Any idea what might be going on?
View 2 Replies
View Related
Aug 5, 2010
i'm created an application where it consists of 3d rotating cube I want to move the cube with respect to the drag on the screen.In the on touch Listener I'm able to get the x,y coordinates but i don Know how to make those coordinates to map to 3d space.
View 3 Replies
View Related
Dec 8, 2009
Trackball Zoom Lost with Update. Quote:
View 2 Replies
View Related
May 2, 2010
I would like to run the Android Camera application from my development board for about 2 hours continuously.
I want to disable the phone lock screen that comes and shuts down the app.
View 2 Replies
View Related
Jul 11, 2010
Is it possible to have a list activity that dosen't finish? i.e. if you scroll to the end of the list then the start of the list begins again? It's be best if you could also disable the scroll bar.
View 4 Replies
View Related
Jul 20, 2010
I am continuously running a thread in my activity which fetches lat/ lon information and the overlays on the map are updated dynamically through a handler. The overlays can be varying in number and can change dynamically. The thread is interrupted in onPause().
I am over riding the onTap() method in my Itemizedoverlay, where I want to call a dialog or may be start anothrer activity which describes that particular overlay item.
Every time I click on the moving overlay my app force closes.
I am basically using same onTap() method in http://developer.android.com/resources/tutorials/views/hello-mapview.... .
If it is only a Toast message and not starting a dialog/activity then it works fine.
View 3 Replies
View Related
Nov 24, 2009
I am using soundpool to use sounds in my app. One of the sounds i need to play continuously in background. any example how to do this ?
soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, 0, 1f).
View 3 Replies
View Related
Dec 24, 2009
I'm trying to use the Media Recorder to have my application continuously record audio in memory (to a circular buffer of a known size). Indeed, I'd like to be able to play back the past 10 seconds of recorded based on a certain event in my program. Much of the Media API is designed to linearly record audio to a file. Has anyone an idea on how I could best do this with or without the default API?
View 2 Replies
View Related
Oct 17, 2010
I installed Google Sky Map about a week ago. It appeared to complete the installation and the app is working fine. But when I go back to the Market Downloads it is still displaying the animated 'Installing' bar. I have tried a power off reset, even removed the battery for a few seconds but when I return to Market Downloads the 'Installing' message is still there.
View 3 Replies
View Related
Aug 18, 2010
When I check my logs, when using ListView, I see, that getView() method of a custom adapter is continuously invoked on first 6 elements, even if I scroll to the very end of the list.
View 1 Replies
View Related
Jul 13, 2009
I'm having a conceptual problem with a simple application.
I have an empty FrameLayout and I want for a certain event to being continuously repeated until the finger leaves the display.
If I apply:
### code ###
frameLayout.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { myEvent(); return false; }});
View 2 Replies
View Related
Jan 20, 2010
I have one simple question regarding Java TimerTask. How do I pause/resume two TimerTask tasks based on a certain condition? For example I have two timers that run between each other. When a certain condition has been met inside the task of first timer, the first timer stops and starts the second timer, and the same thing happens when a certain condition has been met inside the task of second timer.how do I pause timer1 while running timer2 and vice versa while timer2 is running? Performance and timing is my main concern as this needs to be implemented inside another running thread. By the way I am trying to implement these concurrent timers on Android.
View 4 Replies
View Related
Apr 4, 2010
I bought a HTC hero (white, in UK) a few days ago - It worked totally fine until today! Now it switches itself on & off continuously! Unless I take battery off! The only way I can rectify the problem is if I take the SIM card out altogether, then it seems to stay switched on without a problem! I have also tried another SIM card just incase I had a fault with my SIM but it does just the same.
View 8 Replies
View Related
Aug 7, 2010
My phone restarts continuously ! I have to reboot it without sim to turn off data and reboot again ! anyone knows what is this problem I love my phone and I really don know what to do.
View 2 Replies
View Related
Nov 17, 2012
How to stop Flickr from running in the phone and how to bring it back after disabling the app? I installed Flickr on my Droid Rezound. I didnt know it was already on the phone. I installed the Google Play version on top of the already installed version on my phone. I tested it out and decided not to keep it. I uninstalled the Google version and found the app was still trying to upload photos. Did some searching in the phone and disabled the phone version. After that it still tries to upload the photos. I signed out of Yahoo and Flickr and it still tries to upload. It's not that I care if the pics upload, but when I've taken lots of pics the upload gobbles battery life.
View 3 Replies
View Related
Oct 22, 2011
I've tried calling Verizon about my Droid 2 resetting almost nonstop. I can't make it through a phone call or browse the web or anything without it resetting. I had had my first one for less than a year when it started acting up. Verizon tried sending me a replacement but it did the same thing. Now I'm on my third Droid 2 in less than a year and it's resetting on its own also. I haven't downloaded any apps on this newest replacement so I don't know what's causing it. Could it be my battery or SD card? I'm just at a loss and I really don't want to get a new phone already.
View 9 Replies
View Related
Jul 5, 2010
So today I was driving in my car with my phone on the space between the gear shifter and the console( Lexus ES300- forget the name of the place). Anyway, I had it there and when I touched it, it was hot to the touch. I checked the Temp and it clocked up to 47.8 degrees Celsius (wish the standard HTC battery widget came with an option to change to Fahrenheit). I was alarmed as it has never gone that high before and I was not doing anything with it while driving (as that would be stupid). An hour later I was driving again and plugged it into the car charger to charge it and it shot back up to mid 40's range. Could it be the sun reflecting off of the plastic?
View 9 Replies
View Related
Mar 1, 2013
My tablet Yuandao N70S is in continuosly reboot.It worked ok fora month but now didn,t pass logoscreen.And i can,t charge this tablet,charger is ok
View 1 Replies
View Related
Jul 6, 2010
I don't have headphones plugged in and I am getting the icon. And also sometimes getting headset as well and am not able to get or make phone calls when this is active. I have to phone off phone to reset this.
View 2 Replies
View Related
Jan 18, 2013
I have a Xperia mini pro and it worked perfectly till one week ago because I face a problem with my WIFI.
when I turn on my WiFi and want to use it after maybe 1 minute suddenly it turn off and turn on again and it continue ... so I cant work fine.
Is it hardware problem how can i fix that???I change many kernels and rom's but still I have problem.
View 2 Replies
View Related
Aug 2, 2013
i am developing an android based application "Route Tracker For Special Person".
well i am working with Google map api v2 and till now i have include map in my app and mark some places and further work i need to know this... During traveling When user reach at specific location let say user reach at location A, i have to call an event. e.g My app should find current locations continuously and automatically and match with locations that i marked ( how can it be done) and when it matched, event should be called.
View 1 Replies
View Related
Jan 24, 2013
After attempting to download a few apps (actually a bunch of language apps), ie, after successfully downloaded only 5 of the bunch that I selected on Google Play, my Evo V 4G Virgin crashed and restarted.
After this shutting down and restarting repeated a few times, I uninstalled all new apps and force stopped and disabled Google Play... to no avail.
"Google Play Store is not responding. Would you like to close it?" message pops up twice and then the phone shuts down and restarts again continuously.
Did I get a virus?
These are the apps that downloaded before it started to do this:
Italian Lessons and Flashcards
Japanese Lessons + Flashcards
Chinese Dictionary+Flashcards
Japanese Word a Day Widget
Italian Word a Day Widget
BTW, after a couple of months I had the phone, every time the phone is restarted about 2/3 of my apps blank out (ie, replaced by the generic green Android icons) for a few minutes before they are all reloaded up. Why is this happening? Is this normal? Is this related to what's happening?
View 15 Replies
View Related
Dec 25, 2013
I just got a Dell Venue 8 which comes standard with Android 4.2.2 and it continuously reconnects to my wifi network. It just cycles through Connecting -> Authenticating... -> Saved, Secured with WPA and then starts over again with connecting. All other devices work on the network so it isn't the router. I've tried to toggle wifi on and off, toggle airplane mode on and off, forget and reconnect to the network, and turning it off and on and nothing has corrected it. I haven't found much googling this issue or on Dell's support page.
View 3 Replies
View Related
Dec 17, 2009
Is there a way I can see my phone's raw GPS coordinates, i.e. decimal lat/long? Is it built-in, or is there "an app for that" ? I have an Eris Droid.
View 4 Replies
View Related
Jul 17, 2010
Can GPS on a phone, such as iPhone or Android determine your Z coordinates? I know it certainly has to be able to determine X and Y, well longitude, latitude that is, but what about the Z coordinates? Can it determine your height, and can I obtain height relative to ground?
View 3 Replies
View Related
Jul 8, 2010
I want to know if there is a way to be able to get the touch coordinates in an app. I know of the commands getRawX(),getRawY(),getX(),getY(). But they dont give me the exact coordinates. Shouldnt these coordinates be in the screen resolution range of the phone? or do they have a different range?
View 1 Replies
View Related
Apr 10, 2010
I have several tour guide books that list GPS coordinates for various sightseeing features.
Is there any way to enter these into Google Maps or Navigation as a destination? Is there an app that lets you do that?
View 2 Replies
View Related
Dec 10, 2009
Since the absolutelayout is deprecated, how to put a widget (suck as a button) on arbitary (X,Y)
View 7 Replies
View Related
Oct 20, 2010
I'm making a android aplication, and I need creates buttons in the java files because the amount of buttons is variable and the coordinate of each button too. So, I don't know how set the coordinates x,y in java. Do you know what method i can use to set this values?
View 2 Replies
View Related