Android :: Google Maps API - Detect When User Stopped Panning Map

Apr 3, 2010

I need to know when the user is panning the map so I can check if they've panned outside of the initial radius that I fetch data from the API with when the app launches. If the user pans outside this radius, when they stop panning I will get the new center point of the map and fetch new data with that geo-point. So far I can't find anything in the Google Maps API docs [and I've inspected the entire class tree] that notifies developers when any animation actions are occurring or completed.. It seems weird that Google wouldn't give us some sort of event listener or protected method to override on the MapView or something to do this.

I looked into what methods were available to override on the View class and it does have onAnimationEnd() but I guess panning or zooming the map doesn't count as an animation or is never passed up from the MapView or something... I tried running a simple log in onAnimationEnd() and it is never being called. Searching the interwebs gave me nothing but some never-successfully-answered posts.

Android :: Google Maps API - detect when user stopped panning map


Google Maps Stopped Working?

Jul 8, 2013

Recently discovered that IE handles development with google maps so since then I have been using it and phone gap to develop an app. For some reason the maps have stopped working when I run it on my tablet.

View 4 Replies View Related

Android :: Google Maps Let User Choose Location

Aug 28, 2010

I've been working on an application lately that is using GMaps to display a location that is stored in the devices database. However when no location is available (no GPS signal is available) the user can go through an edit wizard and at a certain point he can add a location himself. I already have to code to display the stored location, but is it possible to write something so the user get's to see a map and when he clicks/touches on a certain area a map pointer appears and the location is stored. Is that possible in any way? Is there any good online documentation available? I searched through this group and on Google but couldn't find anything usefull.

View 2 Replies View Related

Android :: Using Google Maps API To Guide User To Location

May 31, 2010

I'm having trouble trying to find a way to guide a user from one point on a map to another. I can add the locations I want to the overlay. I want the user to be able to pick a location and be guided through the streets to that location. Does anyone know how to do this, or is it even available in the API?

View 3 Replies View Related

HTC Hero :: GPS Stopped Working With Google Maps - Cannot Find Location

Feb 14, 2010

I have a Telus HTC Hero and for a few weeks now my GPS simply stopped working with google-maps. It keeps saying "can't find location". If I use Gps Status app, it shows a compass and shows how fast I'm moving in what ever direction, but for some reason google maps can't seem to lock on. I've tried hard and soft resets, turning triangulation on off, GPS on off.

View 3 Replies View Related

Android :: Detect If User Started App Again?

Jan 19, 2009

I want a countdowntimer to halt on a menu and also when the user goes from that menu to another activity. When the user comes back from that activity or when the menu is closed, the timer should still halt. However when the user went to the home screen and clicks on the icon again, I want the timer to restart. So my question is, is there a way to detect if the user has just opened your application, or if the user comes back from another activity or menu?

View 4 Replies View Related

Android :: How To Detect When User Switches Tasks?

Aug 5, 2010

Say that TaskA is currently in the foreground and my ActivityA is somewhere within its stack. Is there a way for ActivityA to get notified or detect when the user switches from TaskA to TaskB? As a use scenario, when the user launches my app, my ActivityA will always be the root Activity of the newly created Task. ActivityA will make use of Activities from other Apps, which will be pushed on the same Task. I would like to get notified when the user has switched to another application. In this case, onStop() in MyActivityA does not suffice as that will also get invoked if the user navigates to another screen within my app.

View 5 Replies View Related

Android :: How To Detect User Inactivity In Phone?

Nov 17, 2010

I want this same behavior even when the app is in the foreground but user doesn't interact with the app for a long-time say 6-7 mins... Assume the screen is ON all the time... I want to detect kind of USER INACTIVITY (No interaction with app even though the app is in the foreground) and kick start my count down timer.

View 4 Replies View Related

Android :: Detect If User Using Application First Time?

Sep 21, 2010

I would like to know if the user is using the application for the first time. I am using SharedPreferences, but I am not sure if I have the right logic. How can I set my isFirstLaunched boolean to true when the user first launches, and then immediately set to false after work has been done?

protected void onStart() {
super.onStart();

if(isFirstLaunch()){
populateDefaultQuotes();
//Save the preferences, isFirstLaunch will now be false
SharedPreferences settings = getSharedPreferences(Constants.PREFS_NAME, 0);....................

View 1 Replies View Related

Android :: Detect User Idle Time

Jul 21, 2010

I would like to know if android has some kind of 'idle time broadcast message'. So for example if the user is currently using one activity of my application but haven't touched the screen or used any keyboard (and doesn't have the autolock at phone level or any screensaver) for a while, I would like to be informed (let's say after 60 seconds). I would like to avoid doing it manually (by tracking each user click, touch, activity changes...)

View 2 Replies View Related

Android :: Detect If User Discarded Message

Nov 20, 2010

I'm writing an application and I have a feedback screen. When the user presses submit button, it takes him to the default email client and prefills the email address, subject etc. ("mailto:") When the user presses Send, my application appears and I thank the user for giving feedback. However, how can I tell if the user has pressed the Discard button and did not send the email?

View 1 Replies View Related

Android :: Detect When User Taps On View?

Jan 10, 2010

I want to detect when a user taps anywhere in a view in my Android application. My code looks like this:

linearLayout = (LinearLayout) findViewById(R.id.linearLayout); // main layout
// ...
linearLayout.setOnTouchListener(this);
// ...
public boolean onTouch(View v, MotionEvent event) {
Toast.makeText(this, "Touch!", 1000);
if (event.getAction() == MotionEvent.ACTION_DOWN) {
Toast.makeText(this, "Down!", 1000);
return true;
}
return false;
}

but when I click on the view, I don't get Toast! Do touch events work in the emulator -- or have I got something wrong in my code?

View 2 Replies View Related

Android :: Accelerometer Detect User State

Oct 27, 2010

I'm currently working on a project which requires the detection of user state (walking, running, driving), I've looked through some of the existing solutions on Android platform such as pedometer or calculating velocity with given acceleration, but I'm still unsure how I can approach this problem. Is there a way to accomplish this without much of data mining/signal processing? How can I solve this with simple logic? Or is this better solved with gps instead of accelerometer? The program will only need to return simple user-state descriptions like walking.

View 1 Replies View Related

Android :: How To Detect User Has Screen Unlock Pattern?

Feb 15, 2010

Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not?

View 2 Replies View Related

Android :: Detect User Pressing Home Key In Activity

Feb 5, 2010

Can you please tell me how can my activity detect user pressing HOME key?

View 2 Replies View Related

Android :: How To Detect User Has 3G / Wifi On Before Making URL Connection?

Sep 9, 2010

I don't want my app to crash if the user doesn't have wifi or 3g connectivity. How can I catch this at runtime in my app?

View 1 Replies View Related

Android :: Detect If Activity Front Most And Visible To User?

Jun 28, 2010

I would like to launch an intent when any of my activity is visible, otherwise I will put it up as a notification, and will be fired by the user. To decide this, I need to know if any of my activity is front-most, how do I that?

View 3 Replies View Related

Android :: Detect If User Selected From CreateChooser Options?

Jul 20, 2010

I have a code that will prompt user to send a message by selecting the desired application, how can I detect if the user actually have chose from the options or instead pressed Back? I tried to check if the intent returned something, but is running asyncronous so cannot be tracked. Also I have tried to run the intent with startActivityForResult, what I noticed in onActivityResult that resultCode is always 0(RESULT_CANCELED) even if user selected, or not from the chooser.

View 1 Replies View Related

Android :: Intercept Home Button - How To Detect User Pressed?

Jul 30, 2009

In an activity, how do detect the fact that the user pressed the home button?

View 6 Replies View Related

Android :: Detect When User Chooses Number In Contacts List?

Sep 6, 2010

I'm trying to get an Android background service to be "notified" when the user chooses a phone number (he wishes to call) from the phone's contacts list. My goal with this is to prevent the system from placing the call and present a user with a choice dialog, then go from there.

View 1 Replies View Related

Android :: Detect User's Location From Webpage Opened In Browser?

Dec 24, 2009

Visiting www.google.com on the Android browser (or even with an android spoofed user-agent), presents the option to "Share Location". When clicked, it uses the GPS/Cell phone towers to figure out the location. I tried the google.loader.clientLocation but that only works using the IP address. Is there a method to tap into the Android OS and access GPS data from a regular web application (and not an Android application) similar to the way Google does? [Perhaps Google uses the Google Gears app on Android to access this data.]

View 3 Replies View Related

Android :: Detect When User Presses On A Bitmap Which Is Inside Canvas?

Mar 15, 2010

Does anyone how I go about detecting when a user presses on a bitmap which is inside a canvas?

View 2 Replies View Related

General :: Detect Android Version Running On User Device

Feb 17, 2011

I've got an app that needs to handle Android versions 2.2.1 and above differently than 2.2. I'd rather not create two separate apps, but I haven't been able to find a way to identify what version of Android is running on the user's device.

View 9 Replies View Related

Detect That Service Was Stopped / Resumed By Screen Lock?

Mar 12, 2013

I'm coding a service which does a its job once in every 10 minutes. Works fine. However, when a screen lock gets activated, the service is stopped (which is normal I've found out and I'm find with that). But when the screeen is unlocked again, the 10-minute interval could be already over and I want the service to do the job immediatelly. But... how can I detect that the service was awaken? I schedule the tasks with handler.postAtTime() method.

View 3 Replies View Related

Android :: Possible To Listen To Search Dialog UI Events / Detect When User Types A Key In That?

Oct 12, 2010

I would like to be able to detect when a user types a key in the Search Dialog. I plan on using this to hook in to custom suggestion functionality.

Note: The built-in Search Manager custom suggestions functionality won't work for me because I need to customize the layout of the suggestions.

View 1 Replies View Related

Android :: Detect When User Drag Finger From Any Place In Screen To Inside Of ImageView?

Nov 18, 2010

I've an ImageView in a LinearLayout, how can I detect when user drag his finger from any place in the screen to inside of ImageView?

View 1 Replies View Related

Android :: Google Maps - Settings In Emulator For Displaying Maps

Sep 25, 2010

I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps

CODE:.....

Android mainfest

CODE:..................

View 4 Replies View Related

Android :: How To Detect Android ListView Scrolling Stopped

Nov 20, 2009

I'm trying to do something after scrolling stopped.So, I tried using OnScrollListener#onScrollStateChanged(SCROLL_STATE_IDLE) to detect when the scrolling stopped(either TOUCH_SCROLL or FLING)(at 1.5 it's runs as i expect).

But when it runs on 2.0, onScrollStateChanged can't received the event after releasing the finger.Is there any callback or anyway to detect that event?

View 1 Replies View Related

Android :: Android How Can I Detect Phones And Tablets Differently Using User Agent Header?

Oct 17, 2010

For my site I need to be able to tell the difference between when an Android tablet visits and when an Android phone visits. It needs to be detected before the page is sent to the user so using JavaScript to check the screen res isn't an option.At the moment I use this to detect an android device: stripos($ua,'android')Is there anything unique thar a tablet has in it's user agent?

View 1 Replies View Related

Android :: How To Detect Locale Android User To Do Good Switch?

Sep 22, 2009

My I18n files are ready but I can't find the way to detect the locale of the android user to do the good switch?

View 2 Replies View Related







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