MenuManager in TableViewer does not work on mobile device

Hi
Welcome everybody This is my first post on this forum. I really hope you can help me out with this. It is kind of strange.... Ok, so I am developing RCP application, and it has to work on mobile device with windows 8 as well (10' tablet with windows . So far so good - everything work pretty nice, except one thing that is really annoying. So I have this table, and user has possibility to use right click menu (context menu) on each row. Problem is that it does not work at all on mobile device. Right click on tablet is actually defined by pressing finger for longer period of time - then after 1 or 2 second menu should appear. Problem is that it does not at all. Funny thing is that when I connect a mouse using USB port to tablet I am able to open this menu - it works completely fine. Menu works also with finger action when I press on empty (e.g. table without any data) I noticed that this issue is related with constructor style option SWT.FULL_FULL_SELECTION that is used for creating table. When I remove it from the constructor, right click works fine but there is not any data (no record is selected), so I can not perform any context menu action. Menu is dynamic, so depending on what data is loaded, the contain of menu changes. Main problem is that method menuAboutToShow is not called at all!. The code looks like that:
Table table = new Table(parent, SWT.FULL_SELECTION | SWT.VIRTUAL | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
table.setLinesVisible(true);
table.setLayout(myTableLayout);
createColumns(table, layout);
table.setHeaderVisible(true);
tableViewer = new TableViewer(table);
tableViewer.setContentProvider(myContentProvider);
tableViewer.setLabelProvider(myLabelProvider);
MenuManager contextMenu = new MenuManager();
contextMenu.setRemoveAllWhenShown(true);
contextMenu.addMenuListener(new IMenuListener() {
public void menuAboutToShow(IMenuManager mgr) {
contextMenu.add(new MyAction(action)); // THIS PLACE IS NEVER CALLED WITH RIGHT FINGER CLICK!
// dynamic filling context menu engine
Menu menu = contextMenu.createContextMenu(tableViewer.getControl());
tableViewer.getControl().setMenu(menu);
getSite().registerContextMenu(contextMenu, null);
Any idea what may be wrong ?
cheers,
Pawel

Hi
The "tap-and-hold" is not my functionality. It default SWT Table behaviour on tablet. In windows it self it works like that - to use "right click" you have to do "tap-and-hold". It is just the way it works on tablet I do not have any other application to test it, but I have several tables/tableViever in my application for presenting different results/data, and in all of those this problem appears

Similar Messages

  • MenuManager in TableViewer does not work on mobile device (tablet with Win 8)

    Hi
    Welcome everybody This is my first post on this forum. I really hope you can help me out with this. It is kind of strange.... Ok, so I am developing RCP/SWT application, and it has to work on mobile device with windows 8 as well (10' tablet with windows Cool. So far so good - everything work pretty nice, except one thing that is really annoying. So I have this table, and user has possibility to use right click menu (context menu) on each row. Problem is that it does not work at all on mobile device. Right click on tablet is actually defined by pressing finger for longer period of time - then after 1 or 2 second menu should appear. Problem is that it does not at all. Funny thing is that when I connect a mouse using USB port to tablet I am able to open this menu Smile - it works completely fine. Menu works also with finger action when I press on empty (e.g. table without any data) I noticed that this issue is related with constructor style option SWT.FULL_FULL_SELECTION that is used for creating table. When I remove it from the constructor, right click works fine but there is not any data (no record is selected), so I can not perform any context menu action. Menu is dynamic, so depending on what data is loaded, the contain of menu changes. Main problem is that method menuAboutToShow is not called at all!. The code looks like that:
    Table table = new Table(parent, SWT.FULL_SELECTION | SWT.VIRTUAL | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
    table.setLinesVisible(true);
    table.setLayout(myTableLayout);
    createColumns(table, layout);
    table.setHeaderVisible(true);
    tableViewer = new TableViewer(table);
    tableViewer.setContentProvider(myContentProvider);
    tableViewer.setLabelProvider(myLabelProvider);
    MenuManager contextMenu = new MenuManager();
    contextMenu.setRemoveAllWhenShown(true);
    contextMenu.addMenuListener(new IMenuListener() {
    public void menuAboutToShow(IMenuManager mgr) {
    contextMenu.add(new MyAction(action)); // THIS PLACE IS NEVER CALLED WITH RIGHT FINGER CLICK!
    // dynamic filling context menu engine
    Menu menu = contextMenu.createContextMenu(tableViewer.getControl());
    tableViewer.getControl().setMenu(menu);
    getSite().registerContextMenu(contextMenu, null);
    Additional info: this tap-hold functionally is standard equivalent for right click on tablet device with Windows. I did not do any additional implementation for that. I think it should just work. I have several tables in my application and in all of those this problem appears. Any idea what may be wrong ?
    cheers,
    Pawel

    I have just installed SWT Example on my tablet (from here: https://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse) and this same problem appears on the table example. I think it is general problem/bug. Should I report this as a swt eclipse bug ?

  • SetTimeout() not working on mobile devices

    setTimeout() does not work on mobile devices ie. Safari on iOS 7.1.2 and Android 2.2.  What is the alternative that works on mobile devices?  Thank you.

    Hi Carlos,
    MS mobile browsers are crippled. They don't support many features known from IE. I would suggest to check MSDN for Windows Mobile documentation:
    http://msdn2.microsoft.com/en-us/library/bb158486.aspx
    You might also check the blog of IEmobile Team:
    http://blogs.msdn.com/iemobile/default.aspx
    Best regards,
    Klaus

  • Hello Since yesterday evening. My itunse program does not work my mobile. Note  I update the program to ios7 Please help me Thank you

    hi
    Hello
    Since yesterday evening. My itunse program does not work my mobile.
    Note
    I update the program to ios7
    Please help me
    Thank you

    I found this strange glitch that wouldn't let me open my iTunes Store. I tried all the reset options and still iTunes would close a second after it opened. I fixed this. Instead of using the iTunes Store icon on your home page to open it. Go into music and click on store. It will say "Cannot Connect To Store". Just tap ok. Then tap on "featured" on the bottom of the screen. That will take you to the store front page. After that is loaded. Back out and the icon for iTunes Store on the home page should work just fine. Hope that helps.

  • HTML5 output is not working on mobile devices, including iPads and iPhones

    Hello,
    I posted a question about this last week but had no reply. So I'm posting it again as it presents a serious problem for anyone wanting to publish content to mobile devices from Captivate 6.
    The problem is that HTML5 quiz content runs incrediably slowly (it at all) and crashes the brower on mobile devices. I have tested this on an iPhone and 2 iPads in 2 different locations.
    This is a demo that shows the problems: http://sshls-dev.port.ac.uk/captivate_problems/
    (Running this demo on a standard laptop / PC will be fine and it will work perfectly. The problem only appears when the content is viewed on a mobile device).
    The problem is more extreem in the 'shorthand' demo. The quiz loads up the first question and then when I press submit it either freezes or closes the browser (Safari) completly. Occasionally it will progress to questions 2 or 3 but then the same happens.
    I am keen on finding an answer / workaround becuase at the moment it effectively means that Captivate cannot be used to display quizes on phones / iPads.
    I would be very grateful if anyone knows how to solve this problem to let me know.
    thanks,
    Emily

    Hi alex,
    Try it with any type of android system.
    regards
    ferry
    Op 22 feb. 2013, om 09:56 heeft Alex Pavelescu <[email protected]> het volgende geschreven:
    Re: BC menu not working on mobile devices
    created by Alex Pavelescu in Content Management and Modules - View the full discussion
    Hi Ferry,
    Just tested on an iphone 4 and it works fine. Please provide details for all the devices on which you have the issue (model type/name, os version, browser version)
    Kind Regards,
    Alex.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5093384#5093384
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5093384#5093384
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5093384#5093384. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Content Management and Modules by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • ITunes 12.0.1.26 does not recognize my mobile devices.

    iTunes 12.0.1.26 does not recognize my mobile devices.

    Hello,
    I have the same experience with my iPod Classic under 12.0.1.26 under Max OS X Yosemite 10.10.2. But on another Mac with OS X 10.7.5 and iTunes 12.0.1.26 it is recognized.
    Regards
    mhomscheidt

  • TS1538 My ipod touch will not connect to itunes. I reset the ipod touch. uninstalled itunes and installed it. Turned off firewall however the device manager still does not show Apple mobile device usb. What should i do next? I have windows 7.

    My ipod will not connect to itunes. I reset the ipod touch. uninstalled itunes and installed it. Turned off firewall however the device manager still does not show Apple mobile device usb. What should i do next? I have windows 7.

    See:
    iOS: Device not recognized in iTunes for Windows
    I would start with
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • Sprinboard screen does not work on android device

    Hi experts,
    I have a mobile application that i coded on JDEV 11.1.2.4. And i deploy via sdk android-4.3 version. I set DefaultSpringboard on adfmf-application.xml file.
    When i deploy on AndroVM or another Android VM either SDK Emulator, i can see springboard screen properly. But deploy on real devices (tried with Android 4.1.1 Tablet, Android 4.1.2 Sony experia phone, Android 2.3.5 HTC phone) could not see anything, just seen black screen with header(written as applicationName) AdfmfContainerUtilities.showNavigationBar(); does not work also.
    How can i resolve this?
    Also i tried to create completely new adf mobile application that contains only 2 feature and applied the scenerio, it fails on real device too. I think that the problem is on loading featureList. Because when i created an amx page and set as CustomSpringboard. It works
    Please help me..
    brgds
    I m adding my adfmf-application.xml file content, essentially i tried almost all different setting in it.
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfmf:application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:adfmf="http://xmlns.oracle.com/adf/mf" name="MLMobilKatalog"
                       id="com.accmee.MLMobileCatalogue"
                       appControllerFolder="ApplicationController" listener-class="com.accmee.application.LifeCycleListenerImpl">
      <adfmf:featureReference id="com.accmee.Login" showOnSpringboard="false" showOnNavigationBar="false"/>
      <adfmf:featureReference id="com.accmee.productList"/>
      <adfmf:featureReference id="com.accmee.productDefinition"/>
      <adfmf:featureReference id="com.accmee.favourites"/>
      <adfmf:featureReference id="com.accmee.messages"/>
      <adfmf:featureReference id="com.accmee.categoryDef"/>
      <adfmf:featureReference id="com.accmee.exit"/>
      <adfmf:featureReference id="com.accmee.menu" showOnNavigationBar="false" showOnSpringboard="false"/>
      <adfmf:featureReference id="com.accmee.menuList" showOnNavigationBar="false" showOnSpringboard="false"/>
      <adfmf:preferences>
        <adfmf:preferenceGroup id="application">
        </adfmf:preferenceGroup>
      </adfmf:preferences>
      <adfmf:navigation>
        <adfmf:navigationBar enabled="false" displayHideShowNavigationBarControl="false"/>
        <adfmf:springboard enabled="true" showSpringboardAtStartup="false" displayGotoSpringboardControl="false" animation="none"/>
      </adfmf:navigation>
    </adfmf:application>

    Per the release notes, Wallaby only supports Chrome and Safari at this time.
    And yes, it only works with Adobe Flash Professional CS5 files. To use older Adobe Flash Professional files you can resave them in CS5 and then run them through Wallaby. This is a technology preview (not a product) and therefore has certain limitations that might not exist in a shipping product.
    You mention this doesn't work on an itouch G3. You mean an iPod touch G3, yes? What version of iOS do you have installed on your iPod touch? This may be related to incorrect serving of SVG content (if you are using apache) and so you may need to update your .htaccess file in apache per the Wallaby technical tips page.
    Michael O'Rourke
    Adobe Wallaby Team

  • GPS Location does not work for external devices

    It has been posted before, but I'll post again in case anyone has found a solution.
    I am using an external device (XGPS150) to provide GPS to my Ipod Touch 4G. It worked great with iOS 5. It does not work reliably with iOS 6. I have to turn off and then turn on location services, and occasionally reboot the iPod to make it work. I have tried using iOS 6, 6.01, and 6.1 Beta 3, and the problem is present in all version. I wish Apple would fix the problem.

    These previous discussions may shed some light on the problem.
    TS1702 magellan External gps not...: Apple Support Communities
    after updating to iOS 6 gps signals are...: Apple Support Communities

  • Android Release APK does not work with Mobile Service in Android Studio

    I am using Android Studio and i have not been able to get a working release apk. What should my build file look like? Is there anything special that i need to do? The debug works fine but the release never works. Are there any code changes that need to be
    made? Do i need to log into azure on the mobile device? Do I need to copy the signed certificate to the device also? Any assistance or suggestion is welcome. Below is a copy of the build file:
    apply plugin: 'com.android.application'
    android {
    compileSdkVersion 19
    buildToolsVersion "21.1.2"
    defaultConfig {
    applicationId "com.example.ttferryschedule"
    minSdkVersion 9
    targetSdkVersion 19
    buildTypes {
    release {
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
    dependencies {
    compile 'com.android.support:support-v4:19.1.0'
    compile 'com.google.code.gson:gson:2.2.2'
    compile 'com.android.support:appcompat-v7:19.1.0'
    compile files('libs/mobileservices-1.1.5.jar')
    compile files('libs/mobileservices-1.1.5-javadoc.jar')
    compile files('libs/mobileservices-1.1.5-sources.jar')
    compile 'com.google.android.gms:play-services:6.5.87'

    Hi,
    I would recommend going with the 2.0 Beta SDK since you are working with Android Studio. The changes from 1.1.5 to 2.0 are documented at http://azure.microsoft.com/blog/2014/08/04/futures-support-and-breaking-changes-in-azure-mobile-services-android-sdk/ and http://azure.microsoft.com/blog/2014/08/07/offline-support-in-azure-mobile-services-android-sdk/ (offline
    specific). And we are in the process of publishing the beta SDK to an android repo so it's easily dependable.
    Please let me know if you have any further questions.
    Best,
    Mimi

  • OA Framework page (custom) does not shrink to mobile device screen size.

    Hi,
    OA Framework page (custom page) using IE6 had application disconnection problem.
    So using IE6.1 beta/IE6.5 for OA Framework page (custom page) does not shrink/fit to the mobile device screen size. Means user have to scroll to the right/bottom every time. IE is set as a Mobile device (and not the desktop).
    We have tried using following Meta Tag (with different content values) to inform the browser that this is a mobile device. But this has not worked.
    pageContext.putMetaTag("MOBILEOPTIMIZED","<META name=\"MobileOptimized\" content=\"176\">");
    How we can fix this issue?
    Thanks in advance.
    Nilesh

    Hi,
    What you are trying to do, I could not understand.
    Apps Schema has all synonyms for almost all the objects in other schema if you will not specify any schema name the it will synonyms created in apps. For not using mention like this shema_name.object_name then it will fetch data from mentioned schema.
    Regards,
    Reetesh Sharma

  • Hot Fix for Skip Logic not working on mobile devices.  Me 1 - Adobe Support 0!

    This is just a tip to anyone having the same issue.  It seems that most mobile devices cannot process Skip Logic rules tied to a dropdown menu option.  It is important to know if you never tested this on a mobile device for youself so I strongly encourage that you check this on both Android and iPhone.  The single and multi selections DO work so that is the way to get around this issue.  Here is a sample of our actual web application www.gmcloans.com/quickquote.html with the functional fields.  I created a simple sample test application https://adobeformscentral.com/?f=n8qBqcnKMxR5mRmbAPwkqQ (with QR code for quicker access if you're not on a device now) utilizing all of the selection features for you to test with other devices to help save you the time I lost.
    Pro:  It works.
    Con:
    Lost time...searching for this only forum (at least that I could find) with a solution and having rearranging your application. 
    Uniformity and compaction....If you have a long dropdown list dependent on Skip Logic rules you will have to get confortable with having a lot more information spralled across your application.  
    Adobe Support...To my frustration I had to spend two (2) 20+ minute phone calls with support about this issue only for them to tell me that they don't have a fix and never had anyone express this particular conflict issue with them. 
    I hope this helps you.
    Brian Taylor

    I am still trying to find a version of your device here. The closest I got was a HTC Inspire 4G /w Android 2.3 and the skip logic on the dropdown worked correctly. I'll get back to you once I get to try it on a HTC DNA /w Android 4.1.1.
    Meanwhile were you able to try your form on any other mobile device? I know that you want this to work on your device and we will fix this if there is a bug there... but I'm just curious if you were able on your side to see it work on a mobile device at all.
    Gen

  • Serious JSF 1.2 flaw ?! - CommandLink not working on mobile device

    Hi All,
    I really hope I'm missing out on something here, but I suspect there is a serious problem with the JSF 1.2 RI when used to build an interface for a mobile device. The command link generates JavaScript that is not compatible with the Windows Mobile's Internet Explorer (tested against 2003 and 2005 versions), making it impossible to call the actions behind them.
    I did not encounter this issue when using the RI for the JSF 1.1 specification, so it was a very unpleasant surprise when trying to migrate to JSF 1.2 and Faceletes. As far as I can see the problem lies in the use of dynamic javascript functions in the 'jsfcljs'-function. The browser fails to process the inline functions like this: f.dpf = function()  {...}Has anyone encountered this issue too, and if so, could you please tell me if you've found a workaround?
    Is this a known issue or bug (searched for it but couldn't find) and if it is a bug, when can we expect to see a fix for it?
    A great many thanks for any help !!!

    If you build mobile first, you don't even need to specify a media query for it.  It is the default layout.
    body {font-size:75%}
    Further down in your CSS, add a media query with rules for tablets:
    /* Special Rules for Tablets */
    @media only screen and (min-width: 482px) and (max-width: 1024px) {
         body {font-size:100%}
    Finally, add a media query with rules for desktops:
    /* Special Rules for Desktops */
    @media only screen and (min-width: 1025px) and (max-width: 1280px) {
         body {font-size:135%}
    Happy 4th of July!!
    Nancy O.

  • BUTTON IS NOT WORKING IN MOBILE DEVICE

    Dear All,
    I DEVELOPED A MODULE POOL PROGRAM WITH 2 SCREEN.
    WHEN I CLICK NEXT BUTTON IT WILL CALL 2ND SCREEN.
    ITS WORKING FINE IN SAP.
    NOW I AM CREATING URL FOR THIS PROGRAM AND BY ITS I AM CALLING THIS PROGRAM IN MOBILE / BARCODE SCANNER  DEVICE.
    INPUT SCREEN IS COMING WHEN I CLICK NEXT BUTTON ITS NOT CALLING 2ND SCREEN.
    Pls suggest.
    moosa

    CLOSED

  • Anyone know why my flash website does not work on mac devices ?

    My site is this http://www.solecom-web.com

    Yes but the flash websites do not display correctly! All imac with safari have problems viewing flash;
    I have asked to others ; all problems with safari and imac!
    Flash only works with Atomic Web Browser on Imac

Maybe you are looking for