Android :: Multitouch Code - Google Provides For SDK Levels 2.0 Or Higher
Dec 25, 2009Are there any multitouch code examples that Google provides for SDK levels 2.0 or higher? I do searches on here and on google and come up empty.

Are there any multitouch code examples that Google provides for SDK levels 2.0 or higher? I do searches on here and on google and come up empty.
I'm developing an application that must handle multitouch. Basically I want single touch for rotating ( this is no problem ). And multitouch for scrolling.
I have the basic code in, but I'm having problems when the shift from single to multitouch, and vice verca, occur. Basically the movement will jolt because the median position of the multitouch ( two fingers ) and the absolute position of the single finger are at a distance. So if I have two fingers on the screen, they make up a median position, and then lift one finger, it would be like a quick movement from that median position to the absolute single finger position. This will be the movement that I don't want.
This is my code:
CODE:........
The onTouchDown function of the camera just sets the first value of the touch move. That's why I also use it in the up movement to set a new begin value for the single touch movement when coming from a multitouch.
I am using senseable rom on my phone. But I noticed that the maps and navigation do not allow pinch to zoom even though it is a rooted image. Is there a way to install the correct one that will allow this?
View 3 Replies View RelatedWhen I try to pinch zoom in, it sometimes zooms out twice as hard.
When I try to pinch zoom out, it sometimes zooms in twice as hard.
When I try to pinch zoom in or out, it sometimes just moves the map.
With sometimes I mean, every time I'm in google maps all 3 of those problems occur more than it works normal.
I'm currently reading the specs about Android's Security system and something is not clear on my mind... Can somebody explain me ? About the Permissions, it is possible to set four levels (Normal, Dangerous, Signature and SignatureOrSystem) The documentation is here : http://developer.android.com/reference/android/R.styleable.html#Andro...About the "Dangerous" level, it's written : "For example, any dangerous permissions requested by an application may be displayed to the user and require confirmation before proceeding, or some other approach may be taken to avoid the user automatically allowing the use of such facilities." What does "Some other approach may be taken..." means ? How does that work ? Is there any example?
View 4 Replies View RelatedA common complaint with my app is that the sound is too low. I don't know what I can do to improve this.- I use SoundPool, and believe I am setting each sound to its maximum volume - I edit my sound files in Audacity, and use the normalization/ amplification tools to maximize them to as much as I can before they start to cause popping/crackling. - They are saved and played back as ogg files. I don't know anything else I can do?
View 5 Replies View RelatedI'm not sure if I completely grasp the Android permissions model. I recently started working on a simple widget to put the phone to sleep. Of course, it always gets a security exception because an ordinary user app isn't allowed to call the Power Manager method 'goToSleep' because it's requires the 'signature' level permission DEVICE_POWER. But I could find nowhere in the docs or on Google that officially says that.Is there some document that lists the permission levels of android platform defined permissions? Or, am I looking at permissions completely wrong?
View 10 Replies View RelatedI'm developing an Android app which will target 2.1/2.2 devices, so I have my project set up to use the 2.2 SDK (API level 8), but allow for installation on devices with at least API level 7. The problem is that during my daily development, I'm not always paying close attention to which API level of the methods/classes/constants that I'm using, which makes it very easy to break code on older devices. I have got dynamic classloading working, and as much as I dislike having a ton of extra factory classes and interfaces in my project, I'm willing to deal with that solution. Currently, the only way I have to check an older API level is to set my project's settings to the given level, rebuild, see what breaks, and then refactor. It's quite a pain. What I would really like is the ability to scan my code and check compatibility for a given API level without changing my global project build settings. Is there some easy way to do this?
View 1 Replies View RelatedCan someone tell me the best app they have found to manage audio levels on your phone? I have been looking around but haven't found one I like.
View 3 Replies View RelatedI'm working on a platform=app for games and I want the user to be able to choose games like some kind of an add on, then it will download some file (a game) which my app knows how to read and work with.Basically, what I want is to build a market without apk files.Or to generate a new kind of apk files.
View 2 Replies View RelatedI am fighting with android hardware backbutton now my question to you is can i restrict its functionality upto 3 or 4 levels? right now for example, i have 1,2,3,4,5,6,7,8,9,10 activities i go to 1 then 2 then 3 .... upto 10 and start pressing backbutton it takes me to 9 then 8 then 7 upto end i want to keep track of only last three levels is this possible or not?
View 2 Replies View RelatedHas anyone found an app or mod that allows you to increase the maximum audio output of the evo? I know others have been complaining about the maximum audio level being too low. I get in my car and just can't hit that level I'm looking for. Haven't had this problem with other audio devices.
View 4 Replies View RelatedI personally like the brightness level to be low, lower than the automatic setting, but not always all the way down. My brightness is currently set all the way down and it seemed to be too low at first, but now I am use to it and that's how I'm gonna roll for the time being. Not to mention that it significantly decreases the light bleeding. I did notice though, that when i turn the screen on, it turns on brighter for a second, then dims down. Anyone else experiencing this?
View 7 Replies View RelatedI recently decided to try out making my app tentatively "GoogleTV ready" by ensuring a user can do everything without ever entering Touch mode. For most stuff it is pretty straight forward, but I'm scratching my head at MapView/ItemizedOverlay: The docs appear to indicate that onTap(index) should do the trick, but it seems not to work the way I expect it to. "onTap ... This could be from a touchscreen tap on an onscreen Item, or from a trackball click on a centered, selected Item..."
Working around it using onTrackballEvent() and perhaps an onFocusChangeListener seems possible, but the documentation appears to indicate that this should not be needed for simple cases, right? I get the circle in the center and can move around with the D-pad/trackball, but when trying to select, hitTest() is not called and onTap(index) appears to be called with stale info. Anyone got a working code snippet? (Mark's NooYawk sadly doesn't work and googling came up with blanks apart from questions without answers).
I've been working on my project for a while and have decided to share it's source so that I can get help from people and finish it and post it to the market (it's a highly addictive and fun card game). However, I have published it on google code at:
http://code.google.com/p/bestcardgameever-android/
And when I tried to download it with a friend that can help I kept getting messages saying that it is not an android project from eclipse I'd appreciate it if somebody could tell me exactly what needs to be uploaded and what doesn't need and how can I make it work - if you have done it before - you probably can easily help Thanks! also, if you can and want to generally join the project as a developer graphics person or web designer.
The biggest disappointment is that it doesn't seem to read QR Code. If so, it would at least be a replacement for Barcode Scanner. That way I would use it more regularly as goggles is improved.
View 33 Replies View RelatedIs Android code compatible with Google Web Toolkit? Since they support Java, is it possible to run the same class written for Android in GWT?
View 4 Replies View RelatedI am new to google android will anyone please tell me how to edit google android code to develop my own applications?
View 4 Replies View RelatedDo anybody know how can I get the source code of Google maps for android sdk1.5, if the version of Google maps for android sdk 1.5 is same with the version of Google maps for android sdk 1.0? Can I build the source code of Google map v1.0 with the source code of sdk 1.5 to a same imge?
View 2 Replies View RelatedI signed for for a tethering plan with my carrier that included a 1 GB cap on USB Tethering. I was wondering if WiFi tethering would go against this cap or would it look like I'm using regular internet on my phone. I have (real) unlimited 3G with my plan and I am using Wireless Tether from Google code.
View 1 Replies View RelatedI once got pointed in the direction of this great set of examples:
http://code.google.com/p/apps-for-android/
These samples look like they're in some way connected with this forum. Is that the case?
There's one app in particular which I would like to discuss with the developers, the 'SpriteMethodTest' app, as I have adapted this for my own use and have some issues.
Anyone know anything about these apps?
The function below is part of the code for Google's Camera app. I didn't understand the logic of the statements in bold. Please help. Code...
View 1 Replies View RelatedGoogle API has support the voice input. Where could I find the source code for that?
View 2 Replies View RelatedPuzzle Blox is a new game designed and developed by myself as a hobby during my spare time only. So I'm very happy to share it with you now. Don't be too harsh. Puzzle Blox is inspired by various classical games like Tetris and Bejeweled but brings in its own new ideas. This makes it an easy to learn but very addictive game to play. Clear more than 100 challenging levels by just tapping and twisting your phone!
YouTube - Puzzle Blox - My Android Game
Google Pushes Source Code for Android 2.0 - Developers Push it to G1 Within Hours | AndroidGuys
Any chance of a rom for our Sprint Hero? I'm sure it will be a while before an official version, but how about a cooked ROM?
anyone else have an epic that loves to display colors at different levels on webpages?
View 11 Replies View RelatedI want to set it up so that when my wife, boss and best friend call me , my phone rings out-loud or vibrates even if the phone is muted or on silent. (Bonus points if you can get it to do this for when they send me a text message as well...)I want to be able to customize notification sound levels for different apps. For example, I want the Text Messaging app and Calendar to make a loud sound when I receive a message, Google Voice to vibrate, Facebook to be silent and only flash a light and Google Talk to be completely silent (but still show up in the notifications bar)I want different light colors for different notifications. For example, green for emails, blue for text, white for facebook and purple for IMs.I
View 2 Replies View RelatedI need an application with which I can store maps with different zoom levels. I remember the application "Istanbul Map" let me do this and I could download Google (or other sources') maps from the zoom level I was in up to the maximum zoom level of my preference. Therefore, assuming that I had downloaded the map, when zoomed out I could only see street names and when zoomed in I could see the shops and their names or any other details corresponding to that zoom level, in case I had set the maximum zoom level to 17, 18 or 19.
However it's been two years that I haven't used that application and now that I downloaded "Istanbul Map" from Google Play I noticed that it doesn't offer the same features as before and it seems that it is specifically for Istanbul. Besides, I need to buy the application in order to use it while the previous versions were free.
Now that I am going on a trip and while on way I might need to zoom in up to the 18th zoom level to see the names of stores or other details. So I need an application that provides me the same feature as the old "Istanbul Map" letting me download Google maps for different zoom levels.The built-in Google maps application only allows to download a map with a fixed zoom level and it is useless for me.
i have a ZTE T3020 from Telstra in Aussie and i am tired of android 2.1 how can i update it with genuine roms if possible
View 4 Replies View RelatedHow to port from android2.1 to higher(cm7,2.2) for locked boot loader mobile (flipout) ?
View 2 Replies View Related