Making my game created using Java SE work on mobile devices

I have created a game using Java SE. Can my game be played on a mobile device such as the new g3 iphone?
Do I have to create my game using Java ME in order to be played on mobile devices?
Thank you,
jeffphotos7777

A lot of the J2SE library is not available on J2ME and the user interface components will have to be completely changed. Check out the J2ME API and you can see what parts of your code you will be able to keep and what will have to be changed. There is also the consideration of performance, the design of J2ME apps is different from J2SE so you may need to make changes to make sure you don't drain the battery etc.
[Sun's guide to getting started with J2ME games|http://developers.sun.com/mobility/midp/articles/gameapi/]

Similar Messages

  • PDF created using Java iText package - Text not editable and not displaying font properties on Acrobat

    Hi,
    I have an issue in editing the text and viewing the font properties of a text region on a PDF created using Java iText package.
    I use Adobe Acrobat 9 Pro Extended and the option Tools -> Advanced Editing -> TouchUp Text Tool.
    The strange behaviour is that, I have 2 PDFs created out of the same base PDF and text added via Java iText package with the same Text, Font and other properties.
    One of the PDF has the text region editable on Acrobat but the other one has the text region which is not editable.
    But both the PDFs are editable via Adobe Illustrator.
    I have attached both the PDFs for your reference
    PDF_Editable.pdf - Editable on Acrobat
    PDF_Not Editable.pdf - Not Editable on Acrobat
    Any help or insight to find out the difference/issue with the PDF which is not editable via Acrobat would be appreciated.
    Thanks in advance.
    Regards,
    Madhusoodhan Henryraman

    You don't have direct control of the leading of a multiline text field. A common approach is to control the background color of the field with JavaScript since the lines are not really needed when the field is used in Reader/Acrobat. They may be useful when using the form by hand. For more information, see the posts by Max in this topic: http://acrobatusers.com/forum/forms-acrobat/how-do-i-use-multi-lined-text-fields-over-prin ted-line-area-existing-form

  • 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 ?

  • 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

  • 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.

  • Buttons work on mobile devices?

    I created a button to show a hidden frame but when i preview in Content Viewer it does not work.
    Will it work on iPad or Android devices? i cant test right now only on the Content Viewer and need to know before continuing
    Also if it does not work can you anyone please provide a way to to this that will work on mobile devices
    Thanks

    It sounds like you want to create a hot spot button. See this article: Hot Spot Button Workaround for InDesign Dig Pubs
    You might want to download the free DPS Tips app on an iPad. It shows how to create this and other effects.

  • Why does this script only work on mobile devices?

    Is there any reason this conditional statement would work on mobile devices and not in a desktop browser i.e. Chrome, Safari? I am using it in a scroll activated project to trigger a symbol to play forwards or backwards depending on where the playhead is in the symbol. Works great on an iPad but not Chrome, Safari on my desktop.
    if (sym.getSymbol("icons_sym").getPosition("back") ) {
    sym.getSymbol("icons_sym").playReverse();
    else {
       sym.getSymbol("icons_sym").play("front");
    Thanks,
    Mark

    Ivan
    Sorry, my original posting was complete rubbish - I'll try and find the right answer...
    HTH
    Regards Nigel
    Message was edited by:
    nthomas

  • 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

  • Has anyone else had problems since downloading latest update?  My iTunes stopped working and mobile device won't download, I now don't have Apple to backup my iphone?

    Has anyone else had problems since downloading latest update?  My iTunes stopped working and mobile device won't download, I now don't have Apple to backup my iphone?

    As i've posted in this thread:
    http://discussions.apple.com/thread.jspa?threadID=746408&tstart=30
    I've tried everything others have suggested without any luck.
    Now I'm stuck with a 300 bucks mp3 jalopy.
    My big question here is :
    why aren't we hearing from apple? why aren't they saying something like "yeah we messed things up but be patient. we are trying our best to fix it..." ?
    I was thinking to buy the macbook pro but now I'm afraid of the day things will get messy with that too.
    Pentium 4   Windows XP  

  • Unable to create/use Java 1.3.1 library in JDev 10.1.2.1 and 10.1.3 EA

    Hi !
    I'm working on a project that uses jdk1.3.1_03.
    I use Jdev 10.1.2 and want to migrate to either JDev 10.1.2.1 (latest production version) or 10.1.3 EA (Early Access).
    With JDev 10.1.2, I have no issue.
    However, with JDev 10.1.2.1 or 10.1.3 EA, i have an error message as soon as I try to create/use a J2SE 1.3.1_03 definition :
    Title : Java Virtual Machine Launcher
    Error message : Could not find main class. Program will exit!
    Is there a workaround ?
    Is J2SE 1.3.1 no longer supported ?
    If it is no longer supported, why did this happen between 2 minor versions of JDev (10.1.2 and 10.1.2.1)
    Thank you in advance for your answers !
    Thomas

    I don't use JDK 1.3.1 to start JDev.
    I know/use two ways to create the 1.3.1 library :
    - Project Properties
    then in the tree view : Profiles/Development/Libraries and then 'new' button
    - Menu 'Tools/Manage Libraries'
    then 'J2SE Definition' Tab and 'new' button
    Both methods end with the error mentioned before when I select the 1.3.1 java executable after a click on 'browse' in JDev 10.1.2.1 and 10.1.3 EA.
    As i wrote, the same actions in JDev 10.1.2 work perfectly.
    Thomas

  • Making '.exe' file/application using JAVA

    Hi,
    Is it possible to make an application(an exe file) using just Java, just as we in VB.If yes can you please give some idea how can we do that.
    Thanks.....

    To make a java application run from a click on an icon
    you must create a Jar file as I've explained below:
    Create a separate folder and place all the source code programs needed to run the application in it. You just need the ones with the .class extension. You don't need the ones with the .java extension.
    Open up 'Notepad' and type in this line:
         Main-Class: your class that has the main method
    You don't need the .class extension.
    ex. If your main method is in a program called HelloWorld.class
    type in :
    Main-Class: HelloWorld
    Make sure you hit the RETURN key at the end of the line. I forgot to do that which is why I spent four hours trying to get this to work!
    Save this as: manifest.mf
    and put in the same folder as above. Make sure it doesn't save as manifest.mf.txt
         Open MS-DOS.
    CD change to the directory and folder you are in.
    Type this in exactly as I have written:
    jar cvfm0 myprogram.jar manifest.mf *.class
         This should put a Jar file in your folder. Just click on it and it should work.
    Make sure the program doesn't need to take input from a command line, like DOS.
    Otherwise it will do nothing. As long as your program creates a frame, window, button or something, it should work.
         To run the Jar file from DOS(for testing purposes) type:
    java -jar myprogram.jar
         If you get an error stating that it can't find the main method class(like mine did), right click on the 'myprogram.jar' file that was created,
    click on properties, then ZipMagic.
    Open the 'manifest.mf' file and make sure
    that 'Main-Class: yourprogramname' is in there.
         If you followed these directions you should be able to create an executable java file.
    Below I've explained what the commands to create the Jar file mean.     
    jar: means you are creating a java archive file which acts like a ZIP file
    c: means create a new jar file
    v: means verbose which tells DOS to show the action it is doing
    f: means that the files to choose are going to be typed in by a user(you at the Dos prompt)
    m: means to use the manifest file that you specify
    0: means that the file won't be compressed
    To make a JAR file you only need the cfm letters.

  • Can i create more than one attributes for the custom class created using java API

    Hello everyone,
    I have been creating class and its attributes programatically using java APIs, I want to know that is there any way to create multipal attributs for the same class in just one call of API with all the options for each attributes,
    thanks

    You can create a new class and define all of the Attributes at the time the class is created - this is the preferred way of creating classes. Use the addAttributeDefinition() method on ClassObjectDefinition. If you need to add attributes to existing classes, you can only add them one at a time (using the addAttribute() method on ClassObject).
    (dave)

  • Can I create a form that works on android devices?

    I am trying to create an equipment inspection form that uses radio buttons and drop-downs that I can email to customers, download to a server and add attachments such as photos.  I would have an employee inspecting between 1 and 50 peices of equipment for an end user.  I would like to maintain some information on the form such as equipment location, S/N's, customer name etc. so we would not need to re-enter for each unit / inspection.

    Hi,
    You can fill out forms on mobile devices. You cannot create/view responses on mobile devices.
    We don't support maintaining information on the form between submits, so information would need to be reentered.
    Thanks
    Roman

  • Advice on using RH's ePub Format & Mobile Device Help

    Hi All,
    I'd like some advice on the ePub format and creating help for mobile devices using RoboHelp.
    I need to create online help for a basic Contact Record Managment system that will be available on the iPhone, Android, iPad, BlackBerry Torch, etc. I'm using RoboHelp 8 and have followed the instructions on the Adobe blog to generate the ePub format. I'm trying to determine if I should use this format. The way I see it, I could either use the ePub format or modify the CSS so that the help content appears large enough on the mobile device screens.
    Is the main benefit to using the ePub format its abililty to resize the content? I guess this would be useful, since the application will support both smart phones and tablets. Also, my other concern is creating online help that requires users to download an ePub reader. Do most mobile devices come ePub-enabled? I know the iPad does, but I'm not sure about smartphones.
    If anyone has created help for mobile devices using RoboHelp and can offer any suggestions, I'd appreciate it.

    ePub being the ubiquitous format now so almost all the smart phones and devices have a default reader for ePub.
    For elaborate flow for ePub generation please follow the links below
    http://blogs.adobe.com/techcomm/2010/04/robohelp_script_to_generate_epub_format_content_fo r_mobile_d.html
    http://www.youtube.com/watch?v=8X1EOIZSu2U
    http://rjacquez.com/robohelp_content_now_playing_o/
    http://www.adobe.com/devnet/robohelp/articles/robohelp_epub.html
    for best results you should try RoboHelp 9
    Ashish

  • 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.

Maybe you are looking for