Implement the actions of wheel

Hello world

I would like to implement a listener to the TOP, BOTTOM, LEFT, RIGHT wheel events. I use the keyboard interface and in its documentation, it says to substitute navigationClick in this way:

 public boolean navigationClick(int status, int time)
     {
         if ((status & KeypadListener.STATUS_TRACKWHEEL) == KeypadListener.STATUS_TRACKWHEEL)
         {

         }
         else if ((status & KeypadListener.STATUS_FOUR_WAY) == KeypadListener.STATUS_FOUR_WAY)
         { 

             }
         return super.navigationClick(status, time);
     }

But, how whether the direction (right or left, etc.)?

Thanks, now it works. Is the code I use:

 protected boolean navigationMovement(int dx, int dy, int status, int time) {
         if(dx < 0 && dy == 0) {
             System.out.println("______________________________________LEFT");
             } else if(dx > 0 && dy == 0) {
             System.out.println("______________________________________RIGHT");
             } else if(dx == 0 && dy > 0) {
             System.out.println("______________________________________DOWN");
             } else if(dx == 0 && dy < 0) {
             System.out.println("______________________________________UP");
             }
         return true;
     }

Tags: BlackBerry Developers

Similar Questions

  • Photoshop CC 2014 - cannot scrolling up and down with the mouse wheel in the actions palette.

    Hello!

    I recently updated to the 2014 Photoshop version and I noticed that I am more able to scroll with my mouse wheel in the actions palette. However, I am still capable of when the mode key or the history tab are enabled.

    I'm not sure if I changed a preference and it messed up inadvertently on myself.

    Any help would be appreciated

    I can confirm the same thing on Windows 8.1.  Heck, I use my wheel mouse for this too, though less that I increased my number of pixels vertical office with adding new hardware monitor.  I just tested in Photoshop CC 14.x, and it scrolls.

    I'll make sure that adobe is informed.

    -Christmas

  • Open the Action Menu programmatically

    Hello, is it possible to open the action by program menu?

    I would like to open the actionMenu to another button, since I put the

    actionBarVisibility: ChromeVisibility.Hidden

    I need a way to open it somehow.

    Any thoughts?

    I see the native camera app does the same thing, but I have no idea how to do to get there.

    Thank you.

    There is no way to programmatically, the camera application has access to a private API (which we don't), or they have implemented their own action menu to look like the real thing and drag from the right side. Because they have additional buttons and widgets in their action menu, I suspect that they it has implemented from scratch.

  • How to create navigation of the action bar on the right side.

    Hello

    Is there anyway to create the navigation of the action bar on the right side. I see a camera application can use it.

    MAZ

    I don't think that there are standard control that does this.

    You can create a container with DispositionAbsolue and place it outside the screen. LayoutUpdateHandler attached to the main container to obtain its dimensions. The second container "abscissa" can be set to the width of the main container, so it will be off the screen. Visibility of the initially fixed false container.

    When the button is pressed, show the container and drag it into the screen with animation.

    The container can contain any content, for example ListView with required components.

    It's just an idea, I have not implemented this specific scenario.

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • Use the Action in a workflow control?

    Hello

    I have a question about starting a workflow programmatically control in 12 c JDeveloper and ADF.

    Imagine, I have two points of view and according to the JSF pages called t3 and t4. Between t3 and t4, there is a control flow to be used from an action that is called from t3. The performDbAuthentication action is within the implementation of an application module called SecurityAM class. View T4 should be called if the t3 button executes the action and action returns true.

    Now my problem: if I push the button on t3 SecurityAM method is executed successfully (displays messages to System.out) but there is no switch to view t4. What Miss me.

    Here are the code snippets...

    Any hint is appreciated.

    Kind regards

    Björn

    ADFC - config.xml:

    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="t3">
        <page>/t3.jsf</page>
      </view>
      <view id="t4">
        <page>/t4.jsf</page>
      </view>
      </control-flow-rule>
      <control-flow-rule id="__5">
        <from-activity-id>t3</from-activity-id>
        <control-flow-case id="__6">
          <from-action>#{data.view_t3PageDef.performDbAuthentication.execute}</from-action>
          <to-activity-id>t4</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
    </adfc-config>
    

    T3. JSF:

    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="t3.jsf" id="d1">
        <af:messages id="m1"/>
        <af:form id="f1">
          <af:outputText value="Page t3" id="ot1"/>
          <af:button text="performDbAuthentication" id="b1" actionListener="#{bindings.performDbAuthentication.execute}"
                     disabled="#{!bindings.performDbAuthentication.enabled}"/>
        </af:form>
      </af:document>
    </f:view>
    

    T4. JSF:

    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <af:document title="t4.jsf" id="d1">
        <af:form id="f1">
          <af:outputText value="Page 4" id="ot1"/>
        </af:form>
      </af:document>
    </f:view>
    

    SecuriyAMImpl.java:

    public boolean performDbAuthentication(String username, String password) {
      System.out.println("HUsername: " + username);
      System.out.println("HPasswort: " + password);
      System.out.println(true);
      return true;
    }
    

    Navigation can be triggered that from property 'action' of the button (in fact, you can trigger navigation same actionListener, but only with the code in some managed bean).

    kdario wrote:

    In addition, here it should be to fix the navigation rule: #{data.view_t3PageDef.performDbAuthentication.execute} instead of the EL expression.

    What do you mean by fixed navigation rule? As documentation says as quoted above, this field is primarily for the use of EL.

    My mistake, I want to say is: instead of the"action" to use "result" with a fixed value that corresponds to the result of your method of AM.

    of the"action" property is used only if two different methods in the same page may return the same 'result', but navigation must be different for each of them (this is the case of complex navigation that can generally be avoided).

    Dario

  • Where to see the result of the action of the HTML Plugin

    Hello

    I was going through the tutorial in "vsphere-client-sdk/html-bridge/docs/html-tutorial.html" and I created a plugin html test with the default actions. I can see the error message pop-up by clicking on sample 1 action. But when we try to call action sample 2, nothing happens. I can see the default implementation in SampleActionService, which returns true for the action of sample 2. I also have an actions.jsp in test-ui/WEB-INF/views.

    Could you please tell me if I'm missing something here, or you need any other details. fixing of plugin.xml

    See the documentation on html-bridge/docs/html-bridge.html#actions Actions.

    This example project uses the actions without a head , for whom the only thing possible is to return an ActionResult to update your model (add, delete, or modify an object).  You can't handle the result of the action in your own code because your code issue that share and also it is not possible to configure a custom 'callback javascript', a reminder of Flex in the same way as you could have if you were writing to the Flex user interface.

    But... the most common use cases of actions user interface, as described in the RFSO. Add a parameter to the dialog box and the action opens a dialog (for example a confirmation alert, an entry form, Wizard, etc.) where you control the content and can do what you want.  See the example for chassisA for this kind of code.

  • When I create the extension of the action, the command class cannot answer

    Hi Vmware member or other:

    I don't understand why my command class can not answer my action behavior.

    Here is my configuration and implementation.

    plugin. XML

    --------------------------------------------------------------------------------------------------------------------------->

    < id = "com.todo.DatacenterAction extension" >

    < extendedPoint > vise.actions.sets < / extendedPoint >

    < object >

    < action >

    < com.vmware.actionsfw.ActionSpec >

    com.todo.actions.DatacenterAction1 < uid > < / uid >

    < label > TEST < / label >

    < className="com.todo.actions.DatacenterActionCommand"/ command >

    < /com.vmware.actionsfw.ActionSpec >

    < / actions >

    < / object >

    < metadata >

    < objectType > data center < / Type_objet >

    < / metadata >

    < / extension >

    ------------------------------------------------------------------------------------------------------------------------>

    package com.todo.actions {}

    import com.vmware.actionsfw.ActionContext;

    import com.vmware.actionsfw.events.ActionInvocationEvent;

    import com.vmware.core.model.IResourceReference;

    import com.vmware.flexutil.events.MethodReturnEvent;

    import flash.events.EventDispatcher;

    Import mx.controls.Alert;

    Import mx.logging.ILogger;

    Import mx.logging.Log;

    /**

    * Order class to manage the actions defined in plugin.xml.

    * It uses a RequestHandler < code > < code > for each < code > < code > ActionSpec UID

    */

    SerializableAttribute public class DatacenterActionCommand extends EventDispatcher {}

    private var _proxy:ActionCommandProxy = new ActionCommandProxy();

    private static var _logger:ILogger is Log.getLogger ('com.fujitsu.vsm.vx700.actions.DatacenterActionCommand');.

    [RequestHandler ("com.fujitsu.vsm.vx700.actions.DatacenterAction1")]

    public void onDatacenterAction1(event:ActionInvocationEvent):void {}

    Alert.Show ("Hello world");

    }

    }

    }

    ----------------------------------------------------------------------------->

    So, when I click on the 'TEST' action, the screen dialogue "Hello world" popup. Why?

    I will be very much appreciated if someone could help me.

    Thank you

    > [RequestHandler ("com.fujitsu.vsm.vx700.actions.DatacenterAction1")]

    The uid of action defined in plugin.xml must match the event in the RequestHandler (here you have com.todo.actions.DatacenterAction1)

    Don't forget to follow the notes in docs/samples-doc/actions.html

  • How can we detect the action of "clicking outside of the dialog box"?

    When we have a modal dialog box, click outside of the dialog, its parent window, for example, how this action event can be detected? I want to implement certain actions in response to this event. Thank you!

    Here are some ideas for further research:

    You can first in the stage variable parent in the dialog box and then attach to events 'touch' here:

    scene.setOnMouseClicked (myDialog.mouseHandler,

    scene.setOnTouchReleased (myDialgog.touchHandler

    But it can work only if the dialog box is directly on top of the scene of the mother.

    If the dialog box is outside parent in any part you will probably need to work with the operating system.

    In windows, you will need to call some functions search for win32 if ' use java call win32 functions.

    Or, you can write a windows program that listens to the operating system event queue, then tcp to your dialog box.

    Many search results obtained: windows - how the message queue works in Win32 - stack overflow

    But then if your mac or Linux,...

  • How to stop the action to enter text?

    As a step in an action, I create a text layer. I need to pause the action so that the user can enter text in the layer. I have to pause the action by clicking the dialog icon turn left the stage to create the text layer. However, I can't find a way to continue the implementation of the action after the text entry. What is the right way to do it? Thank you.

    By pressing the box check Commit on the toolbar options or by pressing the Enter key should continue this action after the text is entered.

  • Implement the Navigation in a Portlet

    Hello, I'm studying how implement the navigation in a portlet. I studied Guide of the Oracle Application Server Portal Deeloper-related chapters.
    I have a few questions and I hope that someone will answer me. Thanks a lot for your help!

    Paragraph: 7.1.3.3.5 implement the navigation in a Portlet

    In this paragraph, it is an example.

    The Thesaurus Form.jsp is a simple form in which the user can insert a value. This value is passed to ThesaurusLink.jsp to deal with. I created an app to try this code.

    These are the files:

    ThesaurusForm.jsp
    <%@ page contentType="text/html; charset=windows-1252" %>
    <%@ page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@ page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@ page import="oracle.portal.provider.v2.ParameterDefinition" %>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    
    <%
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String submit = "submit";
    String q = "q";
    String qualParamNameQ =
    HttpPortletRendererUtil.portletParameter(pRequest, q);
    String qualParamNameSubmit =
    HttpPortletRendererUtil.portletParameter(pRequest, submit);
    String formName = UrlUtils.htmlFormName(pRequest,"query_form");
    %>
    <!-- Output the HTML content -->
    <center>
    <b>Thesaurus</b>
    Enter the word you wish to search for
    <form name="<%= formName %>" method="POST"
    action="<%= UrlUtils.htmlFormActionLink(pRequest,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pRequest,UrlUtils.PAGE_LINK, formName)
    %>
    <%= UrlUtils.emitHiddenField(
    HttpPortletRendererUtil.portletParameter(request, "next_page"),
    "C:/Program Files/jdevstudio10134/jdev/mywork/ThasaurusProva000/Portlets/public_html/htdocs/ThesaurusForm000portlet/ThesaurusLink000.jsp" ) %>
    <table><tr><td>
    Word of interest:
    </td><td>
    <input
    type="text"
    size="20"
    name="<%= qualParamNameQ %>"
    value="">
    </td></tr></table>
    <input type=submit name="<%= qualParamNameSubmit %>" Value="Search">
    </form>
    </center>
    ThesaurusLink.jsp
    <%@ page contentType="text/html; charset=windows-1252" %>
    <%@ page import="oracle.portal.provider.v2.render.PortletRenderRequest" %>
    <%@ page import="oracle.portal.provider.v2.http.HttpCommonConstants" %>
    <%@ page import="oracle.portal.provider.v2.ParameterDefinition" %>
    <%@ page import="oracle.portal.provider.v2.event.EventUtils" %>
    <%@ page import="oracle.portal.utils.NameValue" %>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils" %>
    <%@ page import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"%>
    <%@ page import="oracle.portal.provider.v2.url.UrlUtils"%>
    <%@ page import="oracle.portal.utils.xml.v2.XMLUtil"%>
    
    <%
    PortletRenderRequest pRequest = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String q = "q";
    String pageParameterName = "next_page";
    String qualParamNameQ =
    HttpPortletRendererUtil.portletParameter(pRequest, q);
    String qualParamNameNextPage =
    HttpPortletRendererUtil.portletParameter(pRequest, pageParameterName);
    String paramValueQ = pRequest.getQualifiedParameter(q);
    %>
    <!-- Output the HTML content -->
    <center>
    Words similar to <%= paramValueQ %>
    <br>
    Click the link to search for words related to that word.
    <br>
    <ul>
    <%
    
    String[] relatedWords = {"word1", "word2", "word3"};
    NameValue[] linkParams = new NameValue[2];
    linkParams[0] = new NameValue(
    qualParamNameNextPage, "C:/Program Files/jdevstudio10134/jdev/mywork/ThasaurusProva000/Portlets/public_html/htdocs/ThesaurusForm000portlet/ThesaurusLink000.jsp");
    for (int i=0; i<relatedWords.length; i++)
    {
    linkParams[1] = new NameValue(
    qualParamNameQ, relatedWords);
    %>
    <li>
    <b> <%= relatedWords[i] %> </b>
    <%= UrlUtils.constructHTMLLink(pRequest,UrlUtils.PAGE_LINK,"(words related to " + relatedWords[i] + ")","",
    linkParams,
    true,
    true)%>
    </li>
    <%
    }
    %>
    </ul>
    <a href="<%=XMLUtil.escapeXMLAttribute(pRequest.getRenderContext().getPageURL())%>">Reset Portlet
    </a>
    </center>

    I'm not implementing the thesaurus search function.
    
    My questions:
    
    1) in the provider.xml file of the ThesaurusForm Portlet I inserted the next page parameter :
    < showPage class = "oracle.portal.provider.v2.render.http.ResourceRenderer" >
    < resourcePath > /htdocs/thesaurusform000portlet/ThesaurusForm000PortletShowPage.jsp < / resourcePath >
    < / showPage >

    < pageParameterName > next_page < / pageParameterName >
    where pageParameterName is the name of a portlet parameter. In the tutorial, this parameter appears in the provider.xml only "in this position": there aren't lines like
    < inputParameter class = "oracle.portal.provider.v2.DefaultParameterDefinition" >
    < name > submit < / name >
    < displayName > submit < / displayName >
    < description > submit < / description >
    < / inputParameter >
    which are generated by the wizard when you crate a pdk java portlet and specify an input parameter. *So, when I create my pdk portlet, should I have to insert a parameter "pageParameterName" in the wizard? (I think not, if I understand the example in the tutorial)*
    
    2) I create a portlet and the code of the ShowPage is the one in ThesaurusForm.jsp. In the same folder htdocs\Thesaurus000Portlet I have created the .jsp file ThesaurusLink.jsp.  I would like that when I submit the form, ThesaurusLink file will be called and it could execute. It doesn't work and I receive the error: Unable to process portlet action for portlet binding ThesaurusForm portlet...
    *Is it possible to obtain the result that I would like to have?*
    
    3) Related with the question 2): OR *Should I think ThesaurusForm and ThesaurusLink as 2 portlets in 2 different pages?*
    
    Many Thanks in advance,
    Barbara                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    Barbie,

    Thanks for the very detailed, unfortunately, wrong forum ;) question

    The Oracle AS Portal forum is [url http://forums.oracle.com/forums/forum.jspa?forumID=14] here

    Best,

    John

  • I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    The "import" tab appears only when the iPhone is connected to the Mac via a USB port.

    ITunes detects your iPhone when it's connected?

    If iTunes does not recognize your iPhone, iPad or iPod - Apple Support

  • Uupdate plugin page has all the plug ins listed as unknown, and to the title of the ACTION, there '? Search "; Why has this changed?

    When I checked today to see if no plug-ins needed for the update, all plug-ins have been listed as unknown and in the Action column, there '? Search ". It's never happened before. Thanks for your help.

    I could be the page is out of service.

    Go to the web page. Once the page loads, mouse to the address bar
    and left click the icon. A window to display information of site should
    developed. Now select permissions. In the menu, find the plugins, and
    the value all Allow. This action will have an effect only as a single site.

    Then reload the page.
    https://www.Mozilla.org/en-us/pluginCheck/

  • I get a JavaScript Application error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    I get a pop up box with the message: Application JavaScript error: "setTimeout" called on an object that does not implement the interface Window for Firefox.

    But it seems to appear when I go to Amazon.com. Then he opens with this message and the OK option? But as fast as I can click OK, another box appears. After all a half dozen, she disappears - until what I move to another part of Amazon! I uninstalled - reinstalled and then - Firefox and BA. I do not understand this!

    (And of course, there is always the possibility that it is not only attacking me on Amazon... There may be a lot of other sites that also trigger, and I just haven't been there yet.)

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • In Firefox 29,0 and above, click on the menu button

      click Help

      then select restart with disabled modules.

    • In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Impossible to define the action of opening image/jpeg in Firefox

    I want to just open and display a jpg in a firefox tab, but instantly, link it asks me if I want to save or open by another application. Fine. I go into Options - handling jpg action change requests. There are 2 types of jpeg, one is "JPEG Image (image/jpeg) and the other"JPEG Image (text/html). I can change the action "text/html" to serve the action by default for Firefox, but for "image/jpeg", no matter how many times I tried, it just does not allow me to choose Firefox but any other actions or requests. Precisely, I choose Firefox in the 'Select Helper Application', but after I clicked 'OK', she returned to the old stock. I tried restarting Firefox and tried again, but not good at all. It frustrates me so bad.

    Are you sure that these images are to be sent with the right kind of MIME for images and not with the generic MIME type that makes Firefox view the 'Open with' dialog box?

    You can watch this extension:

Maybe you are looking for