How can i remove system menu items in blackberry? - blackberry

I want to remove system menus; for example, in the Message app I want to remove the Send option from the menu.
There is a way to add menus using
ApplicationMenuItemRepository.getInstance()
.addMenuItem(ApplicationMenuItemRepository.MENUITEM_SYSTEM, this);
and also to removeMenuItem() in the same way, but I'm not able to remove menu items.
How can I use this, or any alternate way, to remove menu?

Related

Is it possible to automatically create a widget from a shortcut - Swift iOS

After doing some research I discovered that a user can make a shortcut a widget by holding down on the home-screen, pressing the top left button, searching for "shortcuts", and then tapping on the specific shortcut.
From this article I discovered that it's possible to automatically create a shortcut for the user (they don't have to physically add a shortcut in the shortcuts app that your app donated, instead they can just click a button).
Thus, I was wondering if it's also possible to create a widget for a shortcut you defined, where all the user has to do is tap a button within your app, instead of going through the whole search process.
Thanks

Add custom ui to account details using a slack app

Im new to slack app development and did search for a while now but the most customizable ui elements that i found so far were those listed in surfaces.
What i would like to do is add a new ui element to the account details you see when clicking on a users name, but im not sure if that is even possible.
I would either want to add a button at the top or some text further down.
You can use the [users.profile.set][1] method to set additional information for a user profile. This might be the closest approach to what you want but it will only allow you to add text fields, it's not possible to modify or add other UI elements like buttons.

Add custom menu option to JSQMessagesViewControllerCell

I am building a chat app that uses JSQMessagesViewController. The default functionality includes the ability for a user to long press a chat bubble which then presents a copy menu option (see screenshot). I would like to add an additional custom menu for reporting a comment. Ideally when the user long presses a chat bubble the menu now has two options, copy and report. Can someone please point me in the right direction for adding this custom menu button? Thank you!
See the demo file
https://github.com/jessesquires/JSQMessagesViewController/blob/develop/JSQMessagesDemo/DemoMessagesViewController.m
See the use of customAction

Open up a pop-up window, select an item and go back to main window in Rails 3.2

Inside a page called Program edit, there will be a button named Select image and as it is clicked, a Pop-up window will open which shows list of images. After selecting an image from the list and click to the Add button, pop-up will close up and selected pictures ID will be passed to main window. It should be available to use at program's params after closing image list popup.
Here is the scenario I would like to have.
Which way should I follow while doing this?
You need a version of responds_to_parent rails plugin. That can do the trick.
I've learnt that I can do it via JavaScript and AJAX. Similar to this: http://snipplr.com/view/7461/get-selected-value/

Phonegap/iOS — Disable popup menu for selected text

I have used -webkit-user-select to limit selections to text, and now I'd like to prevent iOS from popping up the default menu that comes with text selections. In other words, I want users to be able to select text, but I don't want the copy/define menu to show up. Either that, or I'd like to be able to modify that menu with my own options. Is there a way to do this?
Have a look at this answer: iPhone/iPad context menu
You will probably need to either hack the PhoneGap source and recompile the framework or write a plugin to do what you need.
You can try disable native callout with this css property:
-webkit-touch-callout: none;

Resources