Android :: Detect Changes Of Boundaries And Zooms In A Map?
Nov 18, 2010
How do I detect changes of boundaries and zooms in a map? Is there an event that is called whenever there is a drag or a zoom? I want to update the overlays when this happens with new data requested from a web server.
View 2 Replies
Aug 26, 2010
My Android application has a MapView. I want to divide that MapView into a grid according to latitude and longitude, and shade the different cells of that grid different colors based upon a certain criteria. What's the simplest way to do this?
I could create semi-transparent, solid-color PNG Drawable rectangular images and put them in an ItemizedOverlay centered on the central points of the cells, but then the rectangles would grow and shrink as the user zoomed in and out on the map. I could extend MapView and override the zoom functions so that the rectangles got re-sized when the user zoomed, but that seems really complicated for something that should be simple! Please tell me a better way to do it?
View 1 Replies
View Related
Nov 17, 2010
Double click zooms in but doesn't fit the screen. I'm running fans revolution apex
View 3 Replies
View Related
Jul 14, 2013
I have recently purchased Xolo Q1000 and i installed subway surfers. The game has a function to double tap for hover board. But when i double tap on the screen for the hoverboard the screen zooms in and out but I do not get a hover board.
My device is rooted but i have the original rom from the company.
The phone comes preinstalled with android 4.2.1
The double tap function has similar effect in the dialar screen as well
I presume it is a software glitch. Is there any fix for this.
View 3 Replies
View Related
Jun 5, 2010
Is there a way of getting the speed at which the device is running?
View 5 Replies
View Related
Apr 29, 2010
I need to catch event when a key is held down, not pressed down and but held for some time, equivalent to long click but for the key. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To un subscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en.
View 2 Replies
View Related
Dec 11, 2009
I have ported the Android to a x86 platform. And i want to detect the USB plug-in.But follow the information about the android.intent.action.MEDIA_MOUNTED in the SDK's DOC, i can't receive the event of the USB's plug-in. i have checked my code and it can receive the other event ( ps:intent action) .
Besides, in the CLI, i could mount the USB device to /sdcard but it couldn't mount automatically. have seen some source code about the mount and mountlistener and it should be effective. my SDK's version is 1.5.
View 7 Replies
View Related
May 9, 2010
I would like to have my code run slightly differently when running on the emulator than when running on a device. (For example, using 10.0.2.2 instead of a public URL to run against a development server automatically.) What is the best way to detect when an Android application is running in the emulator?
View 9 Replies
View Related
Jun 5, 2010
I want to incorporate some Accelerometer code into a Android application im working and want to see if this is possible. Basically what I need is for the code to detect car acceleration motion. I am not wanting to determine speed with the code but just distinguish if the phone is in a car and has accelerated motion (Hence the car is moving for the first time). I have gone through many different accelerometer applications to see if this motion produces a viable profile to go off of and it appears it does. Just looking for something that popups a "Hello World" dialog when it detects your in the car and its moving for the first time down the street. Any help would be appreciated and a simple yes or no its possible would work. I would also be interested in compensating anyone that is capable of doing this as well.
View 2 Replies
View Related
Jun 6, 2010
I need to implement HorizontalScrollView which is scrolled to predefined positions (similar to Home behaviour). It works with slow gestures, but does not work with neither flings nor arrow key press.
I hooked to View.onScrollChanged() and it is called when scrolling happened, but I can't determine when scrolling animation ends.
In theory there should be a way to say that fling movement is over. Is there such API?
View 1 Replies
View Related
Aug 10, 2010
How to detect quickly if a specified URL contains an image in Android?
I have link of type http://foo.bar/w23afv so naive approach like checking end of URL string won't work here.
View 1 Replies
View Related
Sep 8, 2010
My application requires users to hold down the trackball in order to access an advanced menu.Not all phones have a trackball, however, so I need to remove this requirement for such phones.Is there a way to detect if the phone has a trackball?
View 1 Replies
View Related
Apr 21, 2010
Is there a way to get a system notification when an app has been uninstalled?I would like to maintain a table of all clients' info currently using my app. However, that seems impossible if there is no way to detect this event. The first solution I can think of is to have an always running service in the background listening for android.intent.action.PACKAGE_REMOVED. But then would that service be killed once the uninstallation process has ended, or would it be stopped just before the process has kicked off? Also even if this is a solution it's has the potential to put off a lot of people when they realise that part of the app is running in the background.
View 2 Replies
View Related
Jun 5, 2009
I've asked "how to detect home screen" before. I'm still searching. I noticed when I press "home" button on Android emulator, I got this statement in catalog so I went to ActivityManager to see if I can find a clue there. Here is my findings: 1. I can not instantiate ActivityManager because it's constructor is not public, and it's not a singleton 2. it has a function called: getRunningAppProcesses sounds promising -- would it give me all the running processes? 3. since I can not instantiate ActivityManager I tried to use one of the derived class: RunningAppProcesseInfo to see if I can use it's parent methods: getRunningAppProcesses. Nope.
View 5 Replies
View Related
Aug 15, 2010
I want to program a function that the toast exist when there is nothing in the "edittext" box (id / password), but it dosen't work.
View 1 Replies
View Related
May 6, 2009
I'm trying to detect when new videos are taken. I'd succeeded to detect new photo using the intent filter action "com.android.camera.NEW_PICTURE" in a receiver but I don't know how I can detect new videos.
View 2 Replies
View Related
Aug 10, 2010
One of my users let the cat out of the bag and told me they were using one of my free apps, which is monetized by ads, but they were blocking the ads with an ad blocker. They told me this mockingly, as if I can't do anything about it.
Can I do something about it? Is there a way to detect that ads are being blocked?
View 4 Replies
View Related
Aug 2, 2010
I am looking for a way in which I can detect any tap on the screen (not just in my app), I don't mind not having the information of what the tap was (control/letter), just the fact that a tap was made will suffice for me for now. Is there any possible way to achieve this?
View 4 Replies
View Related
Sep 9, 2010
Can I somehow detect if my app is running on HTC Sense? More generally, the problem is, that I have a Button with custom drawable. It's something very similar to the account switcher in the top right of Gmail app. When pressed or focused, the button has orange highlight. But that doesn't look nice on HTC Sense - because the standard highlight color there is green.
View 3 Replies
View Related
Apr 4, 2010
As mentioned in a previous question, I am having difficulty intercepting all android.intent.action.SCREEN_ON events without a long-lived service (discouraged). I may be able to work around the need if I can simply work out when the screen is on at any given time, in the service.
View 3 Replies
View Related
Feb 10, 2010
In my application I need to react on APN changes (including going back and forth between WiFi and GSM connections) and change proxy settings in case it needs to be taken into account to connect with the network. I'm listening for ConnectivityManager.CONNECTIVITY_ACTION broadcasts to check for APN changes which contains 'reason' extra among others. Unfortunately the 'reason' for APN change is not documented, maybe it should not be used? I was using (with limited success) reason:apnChanged and reason:apnSetupComplete as indicators of APN change being done but that does not work well with going back and forth between WiFi and mobile connection. What is the correct way of listening for changes of current network APN/Interface?
View 2 Replies
View Related
Feb 26, 2009
Who knows how to detect SMS sending from the phone? I saw a lot of posts about android.provider.Telephony.SMS_RECEIVED but it's only for SMS receiving. May be You can suggest some forums where I can ask specialist from Google about it?
View 4 Replies
View Related
Mar 29, 2010
How can I detect the screen is on or off?
View 3 Replies
View Related
Oct 15, 2009
Is there a way to tell if you are running in the emulator?
View 3 Replies
View Related
Jul 1, 2010
My application requires resource and drains a battery when it is working. So, I want to know the way that user is not available on the phone. Is there a way to use the built in power save mode on the blackberry to where if the screen dims to suspend the application works active and when the user wakes the device back up with a keypress or trackball movement to resume the application works active?
View 1 Replies
View Related
Dec 20, 2009
How to detect the bluetooths device found?
View 2 Replies
View Related
Jul 5, 2010
I am wondering if I am able to detect if my application was installed with Android Market (it's in the download list of the Market and eligible for update checks) or it's not?It would be a very good point to detect if the app has been installed without, as that can mean it was stolen and installed from SDcard.
View 1 Replies
View Related
Oct 14, 2009
I have a TextView in my android application that has a set width on it. It's currently got a gravity of "center_horitonzal" and a set textSize (9sp). I pull values to put on this label from a sqlite database, and some of the values are too large to fit in the TextView at the current textSize.
Is there a way to detect that the text inside a TextView is going to be clipped? I'd like to detect this, and lower the font until it fits. There is a nice property in the iPhone UILabel that handles this called "adjustToFit" (which also has a minimum font size), and I'm basically trying to emulate that.
Here's an example of the TextView that I'm working with:
CODE:........................
View 2 Replies
View Related
Jan 18, 2010
I am using the onScroll method of GestureDetector.SimpleOnGestureListener to scroll a large bitmap on a canvas. When the scroll has ended I want to redraw the bitmap in case the user wants to scroll further ... off the edge of the bitmap, but I can't see how to detect when the scroll has ended (the user has lifted his finger from the screen). e2.getAction() always seems to return the value 2 so that is no help.
e2.getPressure seems to return fairly constant values (around 0.25) until the final onScroll call when the pressure seems to fall to about 0.13. I suppose I could detect this reduction in pressure, but this will be far from foolproof.
View 8 Replies
View Related
Apr 14, 2010
I'm trying to write a code that can run on Android 1.5 and 2.0.1, but I have issues with the javascript engine used on Android 1.5. alert(localStorage); just hang on v1.5 while on v2.0.1 it alerts correctly. is there an unblocking way to do it or to detect the version of Android with javascript?
View 2 Replies
View Related