HTC Desire :: Browser Long Click - Context Menu Or Select Text

Aug 20, 2010

While browsing, I often like to open a linked page in a new window, so do this via long pressing the link. However, it seems to me to be totally random whether long pressing a link brings up the context menu (which is what I usually want), or goes into text selection mode.

How do you control over which of these two actions occurs when long pressing a link?

HTC Desire :: Browser long click - context menu or select text


Android :: How To Implement Context Menu On Key Press Instead Of Long Click / Tap?

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

Android :: Add Action On Browser's Context Menu After Link Long Press

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

Android :: Context Menu Long Press And OnTouch Event Conflicting

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

Android :: Context Menu In List Activity - When Make Long Press

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

Android :: Show Context Menu When Link Is Long Pressed In TextView?

Apr 18, 2010

I have a TextView with its MovementMethod set to LinkMovementMethod. Text added to the TextView is a combination of normal text and URLs. For URLs, I would like to offer a context menu when the URL is long pressed for doing things such as copying the address. I've had a look at the source for LinkMovementMethod but it doesn't seem to have any long pressed related code I could override. Any ideas on how to go around achieving this?

View 1 Replies View Related

Android :: Best Practice For Opening Context Menu - Like From Short Button Click?

Oct 1, 2010

I have a button that says "Sort" and when a user normal/short presses the button, I want a menu to appear with the various sort options. Looking around online there doesn't seem to be a straight forward answer to which route is considered best practice. I'm looking to have a menu that looks similar to this: For an example, click the Layers button in the Google Maps app. It opens a list of options on a single short click. It has a title at the top and icons for each option. (The icons aren't super crucial) Should I use a Context Menu? If so, how do I do it without a long press. Should it be a Spinner? If so how do I change the appearance to use a button instead of the normal drop down box.

View 2 Replies View Related

Android :: Disable Context Menu On Long Taps On Droid Via HTML _ CSS _ Javascript?

Aug 5, 2010

I would like to disable the context menu that appears after a long tap (touch and hold) on images in my web application. I've seen posts with different ideas how to do it, but none of them seem to work for me.

Is there a way to do this on Android via HTML/CSS/Javascript?

View 3 Replies View Related

General :: Chrome Long-press Context Menu Stopped Working - Can't Open In New Tab

May 18, 2013

I have a Nexus 4 running stock JB 4.2.2.

At some point (not sure when exactly) the long-press feature to bring up the context menu for links in Chrome stopped working.

When I long-press on a link, all that happens is I get a short vibrate, but no menu.

This means that I can no longer "Open in new tab".It's all working fine on my Nexus 7.

View 3 Replies View Related

Android :: List View Context Menu And OnItem Click Listener Not Working

Sep 9, 2010

I have a tab activity with three tabs and I want to display a listview in each tab. The list populates correctly, but for some reason I can not get the context menu or itemclicklistener to recognize gestures on the listviews. Anyone have any ideas why this might be? Below is my onCreate method: @Override public void onCreate(Bundle savedInstanceState) { super. onCreate (savedInstanceState);setContentView (R.layout.armory_header); TabHost mTabHost = getTabHost(); mTabHost.addTab (mTabHost. newTabSpec ("1"). setIndicator ("Weapons"). setContent (R.id.page1)); mTabHost.addTab (mTabHost.newTabSpec("2").setIndicator( "Armor" ).setContent(R­.id.page2))TabHost.addTab(mTabHost.newTabSpec("3").setIndicator("Accessories"). setCon­tent (R.id.page3)) ; weapons = (ListView) findViewById(R.id.weaponlist); registerFor ContextMenu(weapons) ;weapons.setOn ItemClickListener (new OnItemClickListener(){ @Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {// TODO Auto-generated method stub listId = weapons.getId(); position = arg2; showDialog (DIALOG);armor = (ListView) findViewById (R.id.armorlist) ;register ForContext Menu(armor); armor.setOnItemClickListener(new OnItemClickListener(){ @Override public void onItem Click(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub listId = armor.getId();position = arg2; showDialog(DIALOG);

View 2 Replies View Related

Android :: Event Which Called When A User Click On Disabled Item In Context Menu?

Oct 28, 2010

I have button, which displays a Context menu. In the menu are few items (some of them are disabled - setEnabled(false)).

Which event is called when a user click on the disabled item? It's not onContextItemSelected nor onContextMenuClosed. But the menu is closed after the click.

View 1 Replies View Related

KitKat 4.4 :: Android Browser - Cannot Select Third Menu

Feb 25, 2014

I log onto a secure website at work. When I log on there is a menu where you select a topic, a further menu slides out and you select another topic from a third menu that slides out. I cannot select the third menu because as soon as I try to click on the second menu I am taken back to the first menu. I have tried this using Chrome, Firefox and the Android browser on my Nexus 5 and Samsung Galaxy Tab 2 7.0. The same website works perfectly with my Safari on my iPhone 4 and iPad.

My Nexus 5 is on 4.4 and my Samsung is on 4.2

View 5 Replies View Related

Android :: How Do I Get Text From A Context Menu

Aug 22, 2010

I have a ListActivity with a list of names (Jacob, Will, Matt, etc.). I have a contextMenu which gives the user the option to edit or delete the person. I know how to find the id to perform the edit and delete functionality, but I can't figure out how to get the person's name to be added to the intent extras or to add a toast when a delete occurs.

Here is a snippet of code that I'm using for the context menu: Code...

View 2 Replies View Related

Android :: Add A Context Menu In Region With Text Only?

Feb 19, 2010

We are using a WebView for eBooks whic have few (if any) links and do not see a good way to add a context menu in a region with text only - any bright ideas?

View 3 Replies View Related

Android :: Launch Context Menu From Context Menu

Jan 21, 2010

How can I launch a contextmenu from a contextmenu? I'm trying to replicate the MediaPlayer action that happens when you long click a song, then click "Add to playlist" in the resulting contextmenu. When you click that menu item, another contextmenu pops up with "Add to playlist" as the title, and "Current playlist", "New", and however-many-playlists-you-have defined after that.

View 4 Replies View Related

Motorola Droid X :: Can't Select Text In Browser?

Jul 28, 2010

Is there no way to select text to copy from the browser?

View 5 Replies View Related

Sony Ericsson Xperia X10 :: Select Text / Copy And Paste In Any Of App / Browser / Messaging?

Aug 5, 2010

I can't work out how to select text or copy and paste in any of the applications/browser/messaging. Can anybody help?

View 4 Replies View Related

Android :: Catching Both Click And Long Click On ListView

May 3, 2010

I have a ListView in my Activity. I am trying to catch both a click and a long click (which should bring up a context menu).

ListView lv = (ListView) findViewById(R.id.MyListView); ... lv.setOnItemClickListener(this); lv.setOnCreateContextMenuListener(this); ...

I notice that if I have both the click and long click listeners up, I won't ever get the long click listener (i.e. the context menu). If I remove the setOnItemClickListener() call, i get a call into

@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

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 unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at

View 4 Replies View Related

Android :: Contributing Menu Item To The Contact List Context Menu

May 23, 2010

I want a user to be able to long press a contact and be offered a menu item of my own that can run an activity of my own. 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 unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options

View 3 Replies View Related

Android :: Adding Menu Items In WebView Context Menu

Mar 8, 2010

I'm trying to add custom menu items in a WebView Context Menu. Unfortunately, my items are shown in the menu of the first web page I load , but then if I load a second page, a long press only shows the standard context menu items. Mine are gone. I've put a Toast inside the code and it is displayed as well on the first loaded page, but not on the second. I'm using the code below:..............

View 6 Replies View Related

HTC Desire :: Browser Long Pressing On Back Button Takes Straight To History Page

Aug 8, 2010

When you're in the browser long pressing on the back button takes you straight to the history page, very useful.

View 1 Replies View Related

HTC Desire : Can't Change Keyboard - Can't Select 3rd Party Text Entry Types

Sep 22, 2010

I can't select 3rd party text entry types.

Go into Language & Keyboard - I see Big Buttons Keyboard, Swiftkey Beta and HTC_IME mod listed, all 3rd party keyboards I have installed.

I select one of them. It gives me a warning, I say OK, box is ticked. This keyboard is now selected.

I go to create a new SMS or enter something into the browser.

Stock HTC Keyboard.

I try again. Choose a different 3rd party keyboard. Stock HTC Keyboard.

Am I Just missing some essential stage in the process here, or is something messed up?

View 5 Replies View Related

HTC Desire :: What Constitutes Long Text Message?

Jul 23, 2010

I am seriously considering getting this phone but one of the things that is worrying me is the fact that long text messages are automatically turned into mms. What constitutes a long text message?I often go over the 160 characters mark which isn't a problem as I have free sms but obviously will have to pay for mms.

View 1 Replies View Related

Android :: Invoke Android Context Menu On Menu Item Press

Nov 9, 2010

Can anyone kindly guide as to how can I invoke a context menu on the press of a menu item. I googled a lot for the same, but nothing turned up. Look forward for your valuable help.

View 1 Replies View Related

Android :: Select Or Click On Item In ListView?

Nov 14, 2009

As I mentioned in the email subject, I want to select an item (e.g. Department of Human Resource Management) in my ListView. And you can see that: I had try to use setClickable(true), setChoiceMode(ListView.CHOICE_MODE_SINGLE), setFocusable(true), setFocusableInTouchMode(true), no matter I use touch screen to click on the item or use the scroll ball on my mouse to select the item, it also doesn't work. Is there any mistakes in my coding? I hope someone can give me some ideas what I should do. because I am a beginner for developing Android application.

And the following is my coding: package com.example.abc;.............

View 2 Replies View Related

Android :: Select Sound To Set As Ringtone On The Click Of Button

Dec 31, 2009

I have sounds files in my res/raw folder and i want to select a sound to set as a ringtone on the click of a button. Wonder how can i do that?

View 7 Replies View Related

HTC EVO 4G :: Wont Let Scroll Back Up Long Enough To Select Particular Message To Delete

Jun 11, 2010

For some reason, when I pull up a text conversation and start scrolling backwards through it, the screen ALWAYS jumps right back to the bottom again. It wont let me scroll back up long enough to select a particular message to delete. Now I do have a screen protector on it, however, it was put on as soon as I took it out of the box so Im pretty sure its not the screen or my touch. Anyone else having this issue? Another related one, is there any way to select multiple messages to delete?

View 4 Replies View Related

Android :: Difference Between Context Menu And Option Menu In Android

Oct 25, 2009

the difference between context menu and option menu in android? When I click the menu button on the emulator, is that option menu? or context menu? And how to invoke the other menu (not trigger by the menu button)?

View 2 Replies View Related

Android :: Regarding Context Menu

Nov 24, 2010

i have got a stupid question to ask. I created a custom ContextMenu. But when i call the menu, the menu displayed will also have the default menu added in. Is there anyway for the default ContextMenu not to appear as well?Code requested: @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
super.onCreateContextMenu(menu, v, menuInfo);
MenuInflater inflater = getMenuInflater();
menu.setHeaderTitle("Recipients");
inflater.inflate(R.menu.menu_contacts, menu);

View 1 Replies View Related

Android :: Long Click On Button

Feb 26, 2009

I want, that when the user clicks on a button, a textfield with a number will increase or decrease. But this should be work in a way, that the user leaves the finger on the button and the number increases automatically. Therefore he doesn´t have to click lot of times.I have not found any method to override that could implement such behaviour! Does anybody know how to implement this?

View 2 Replies View Related







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