Android :: Detecting Long Press On Map Overlay
Aug 13, 2009
I want to be able to detect where a user has long pressed on my Map Overlay.The idea being to get the GeoPoint of the location the user pressed.I can detect where a user taps, but cannot find how to detect a long press.
View 5 Replies
Jun 15, 2009
I would like to put a bunch of dots on a google map, and have the appropriate listener called when one of them gets clicked.All i seem to be able to find is to get the location at which the click occurred, and then iterate through the dots until I find one that I think matches. Is there no listener for an arbitrary shape, like a drawable? I feel like this might be a Java question more so than android, but hopefully someone can still answer it.
View 3 Replies
View Related
Nov 21, 2010
I am trying to detect when the physical Menu button on my Android phone has been pressed.I though the code below would work but it does not.Where am I going wrong please?
View 1 Replies
View Related
Mar 10, 2010
have been dealing with placement of items in the ItemizedOverlay class with the google maps android library, which seems to work just fine. It handles the icon placments and associated properties of the icons that I place on the viewer.As of lately though, I noticed that I loose the satellite view altogether in the final zoom features of the map when I want to get in real close. I thought this would be a real good opportunity to use a blueprint of an area as an overly on the gridded map so that there were still areas of reference when analyzing an area up close. Unfortunately I have not been able to place a bounded region for the blueprint on the map. If I have latitude and longitude values for each corner of where the blueprint should be places, I can't seem to find a method to put this where I want it on the map.The only constructor/method that I have found only asks for a center point and then sizes the object appropriately. It seems odd that this feature wouldn't exist but I can't find anything to hint that it does exist. JFrog "Debugging is twice as hard as coding something the first time. Therefore, if you make your code as clever as possible, you are by definition, not smart enough to debug it."
View 3 Replies
View Related
Mar 23, 2010
I want to handle key press and long key press for the key code KEYCODE_CALL(dial button). can any one suggest me how this in android 1.5(API level 3).
View 2 Replies
View Related
Jul 29, 2010
Is there any way to get the long press on home key event?
View 3 Replies
View Related
May 26, 2010
In Android, how can I send a long press from an InstrumentationTestCase? I'd like for instance to do a sendKeys(KEYCODE_DPAD_CENTER) but make that a long click.
View 1 Replies
View Related
Dec 18, 2009
Android supports an event onLongPress. The question I have is 'how long' (in milliseconds) is the 'press' to trigger the event?
View 4 Replies
View Related
Jun 29, 2010
i exchanged my phone today do to a faulty microphone. now i got this evo and for example when i text and i wanna hold for a question mark it just puts down the letter and wont let me hold and alot of other things are very unresponsive or move slowly. I actually got the notification bar to stay halfway down which never happen to me cause i think it automatically goes all the way down. I did install a invisible sheild but i dont think that has any effect since most of the water is gone.it was working fine before i installed it tho. i had to turn the device off when the bottom buttons wouldnt respond until i would put it to sleep and then shortly after it go back to not responding then the screen stopped responding. is this faulty hardware?
View 10 Replies
View Related
Jul 27, 2010
How can I capture a long press of the device menu button in my application?I thought of an intent filter, but there's only an action called android.intent.action.SEARCH_LONG_PRESS, but nothing for the MENU button.I found that long press of the menu button actually does different things on different devices,i.e. on Nexus One it will show the soft keyboard, while on Samsung Galaxy S it will pop up the search widget.
View 5 Replies
View Related
Nov 11, 2009
By default, if we long press search key it opens quick search box with the keypad slided up. what should be done if I want to change this default action to launching of an application when ever search key is long pressed. This obliviously requires changes in the framework. i tried changing some code in Search dialog.Java file but we can't use Start Activity there. pls guide.
View 2 Replies
View Related
Aug 13, 2010
I've written a web-app in HTML and Javascript for iPhone and Android which involves the dragging and dropping images.You initiate the drag by holding your finger over the image for about a second. However, Android then pops up the message giving me the option to save the image, set it as wallpaper etc.How can I prevent Android from doing this? Is there a metatag I can use? Some javascript?
View 2 Replies
View Related
Nov 24, 2009
Like as my HTC G2, when i long press the end call key, the phone option dialog shows and my app blurs. But the animation in the app still runs behind the dialog. I hope that the app stops or pauses when i long press the end call key. Can i do this?
View 2 Replies
View Related
Aug 30, 2010
I want to figure out how to detect that the user has been doing a long touch press on the screen? Most of the solutions that I see assume that the DOWN + UP sequence of events.
View 2 Replies
View Related
Sep 9, 2010
How do i set the sound as ringtone with long press on the button?
View 1 Replies
View Related
Jun 5, 2010
I have a ListActivity and I want to implement context menu for each of the list elements. I know that the common way to do this is to show the context menu on long click/tap. I want to know if there is a way to show the context menu for each element on a key press(preferably the menu key).To rephrase my question, how can I trigger the context menu and not the options menu by pressing the menu key(or any other key).
View 2 Replies
View Related
Oct 30, 2010
I was wondering. Is there an app for changing the soft keys on my Samsung Vibrant to only activate when pressed long or double clicked? I am just sick and tired of accidentally pressing them because they are so damn sensitive, and unlike the Fascinate or Epic 4g, so close to the touch screen that pressing spacebar on the onscreen keyboard half the time results in hitting the soft keys by accident. I don't understand why we can't customize what the soft keys do and how long or many times activates them, because if you got even normal sized finger tips, it's so annoying to be typing into the search bar and then press back right below and have to retype everything again.
View 1 Replies
View Related
Aug 4, 2010
I need to generate/trigger a long key press event of a button in Android.Searched on net but not able to find any answers.
View 2 Replies
View Related
Dec 10, 2009
I am trying to use the long press option on the listview items to open a multi choice Alert Dialog. Is this possible?
View 6 Replies
View Related
May 26, 2014
I've had my nexus 4 rooted for a couple months now and it's amazing but I'm having a problem when I long press notifications, nothing happens. Normally I have "app info" and "open in halo" but nothing pops up at all.
View 6 Replies
View Related
Oct 26, 2010
I have a situation where I have some textview on a framelayout that I have a onTouch event wired in order to simulate dragging. I alos want to enable the ability to have a context menu display when the user long presses the textview. Now that I have implemented the context menu functionality dragging no longer works since the longpress is always served by the context menu event.Does anyone know of a workaround for this.
View 2 Replies
View Related
Mar 14, 2010
I need to add an action in the Context Menu that pops up after a Long Press of a Link in the Browser (the one that has 'Open','Open in new window','Bookmark link','Save link', etc.)As a result of choosing my action it should call my service and etc.I don't want my app to overwrite all the context menu of the browser but only add an action to it.I haven't found any information on how to do this. Is it possible?
View 6 Replies
View Related
Jan 19, 2010
A long press on an EditText brings up a menu of options that the user can select. The only messages or options that I want users of my apps to get, I want to come from me via the app. How do you disable this so that nothing happens when you long press the EditText? What other situations like this should I be aware of?
View 2 Replies
View Related
Oct 18, 2010
I have list activity with custom array adapter and I can't to get context menu when make long press on list item.
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
Why I do not see context menu? What I do wrong? How to get context menu with array adapter and ListActivity.
View 1 Replies
View Related
Jul 26, 2010
There are 2 programs already mapped to the "Search Button" on my phone. I want to add the "Edwin" app to that list.Does anyone know if that is possible?
View 4 Replies
View Related
Jun 1, 2013
Is long pression the home button and removing open/recent apps "killing" the apps? I read that there is no need to "kill" an app and it actually uses more battery life than it saves. Should I be actively swiping away recent apps?
View 2 Replies
View Related
May 4, 2010
While I was roaming around in the App section of the forum I stumbled across this thread. Long press "+" = skip track. One of the people who posted a comment in it claims that by long pressing on their volume rockers, will skip tracks. Does anyone here know if this is true? Apparently it only works with 2.1 and if this is the case, which I can't do cause I am running BB v1 but i am confused cause its in 2.1 even though I rooted under 2.0.1. Can anyone confirm this?
View 8 Replies
View Related
Dec 7, 2009
I have noticed the long press no longer working.When I press and hold it will perform a short press. For example, when trying to long press on an icon to move it, it will open the application.I have noticed this only when charging the device. Anyone else have notice this strange behavior?
View 3 Replies
View Related
Jun 11, 2012
I need to be able to skip the swipe screen and unlock the phone by long pressing the power button. On short press, it should act regularly (waking up and showing the swipe screen). I've tried "No Lock", "Autolock" and "My Lock Utility" but these unlock the phone immediately after pressing the power button I think this would be the ideal combination of functionality.
My phone is Motorola Atrix.
View 1 Replies
View Related
Nov 15, 2010
Is there any way to change the long press of the search button behavior on the Droid X? It seems like it's hard coded to bring up voice search. I want to use Rotation Toggle, which can toggle screen rotation on long press of search, but I can't with the Droid X. I am rooted so if the solution requires that, I'm good.
View 3 Replies
View Related