J2ME/MIDP GUI development issues

Hello,
I'm newbie to J2ME/MIDP development .
And I'm curoius about main GUI issues when developing games for mobile phones.
Such as different screen sizes, sprites, etc.
How ppl target for different screen sizes and resolution?
Links for usefull reading is appriciated very much.
Thank you.
Alexei.

There are two configuration
1.CDC
2.CLDC
and Following profiles for the developers to choose from while developing the application for a wireless deveice
for CLDC-
1.MIDP
2.PDAP
for CDC-
1.Foundation Profile
2.Personal basis Profile
3.Personal Profile
Apart from these profiles (JAVA APIs) development can be done in
1.c/c++
2.net
Now my questions or rather the issues that i always face or rather i always get confused over it
1.How to know that a particular device supports which Configuration
Check the device Specifications, Nokia supports maybe java, while motorola supports may be .NET
2.After the configuration is known, which profile is to be used.
Depends on what you want to develop, once you know that then you will read the profile spec. and then go for development, let say if you wanted to develop a simple game, it can be done in MIDP only, while if you need advanced multimedia, u need implementation of MMAPI also, on the other hand if you want to develop diary of contact managment software you will yous PIM.You should know the wanter in pool before taking of your clothes and going for a swim.
3.For developing the application in c++, do different device category give different set of APIs for development.,plz explain.
Most of the C++ api's are devices specific(after all that is when java wins)
4.What about the development platform for PALM and POCKET PC devices.what profiles from the above listing do they use .
they use the CDC configuration, and Personal Profile
5.can development on POCKET PC be done only on compact .net framework???
No, Commercial JVM are available, infact a free one is also available, search this forum you will find out.
Hope this help

Similar Messages

  • J2ME game gui? J2ME Canvas? J2ME polish? Which is better?

    I am currently trying to build a J2ME brochure like project which is required to have rich presentation.
    JAVA is not a problem for me as I've used it for quite a long time. But since I am very new in J2ME, I am confused which technology to use, should I use j2me game gui, j2me canvas or j2me polish?
    Using j2me game gui looks good. J2me canvas looks a bit tedious to me because for a brochure like project, it will mean I will probably end up using a lot of canvas which make the application quite big. Regarding to J2ME polish, there is not many materials or examples about it. it seems that J2ME polish hasn't been used a lot and I don't know whether it's good or not.
    Anybody knows something about those three? Please give me a hand.
    Thanks.

    J2ME Polish have licensing costs associated with it:
    http://www.j2mepolish.org/licenses.html
    As for Canvas VS GameCanvas:
    GameCanvas is MIDP 2.0 and up, so depending which devices your app supports you might want to stick with Canvas. GameCanvas eases graphics flushing, but double buffering can be implemented on Canvas like so:
    Image offscreen = isDoubleBuffered () ? null :
               Image.createImage (getWidth (), getHeight ());See http://www.developer.com/java/j2me/article.php/10934_1561591_8
    section: Avoiding Flickering

  • Basic Documentation for J2ME MIDP?

    Hi,
    I am new to developing for J2ME/MIDP and have not been successful in finding any language documentation to help me further my knowledge.
    As a case in point, I have a sample app that I have been playing with, it is very simple and uses an object of type TextBox as follows...
      private TextBox t;
        t = new TextBox("Heya!",  "Welcome to MIDP development", 256, 0);Now I want to append some more text to this TextBox at from another method in the app, but I can't find any documentation on TextBox to show me how to do this.
    (I have tried "t.append(new StringItem(null, "More text"));" but it doesn't work).
    Where is the documentation for MIDP? Is there something similar to the J2SE documentation here -
    http://java.sun.com/j2se/1.4/docs/api/index.html
    If there is, then that would be the answer to a lot of my questions!
    Also, I have difficulty understanding how MIDP and J2ME relate, what is their relationship? Is MIDP a part of J2ME? And how does CLDC relate to them both?
    Well, thanks very much for any help you can offer!
    Warm regards,
    - Peter

    The documentation is part of the SDK when you download it.
    If you downloaded the Wireless Toolkit or any other SDK, there should be a docs directory there with all the documentation (and if you don't have any SDK you can't do much development in any case).
    As for the TextBox issue you would need something like:
    t.setString(t.getString() + " some more text");And about those general J2ME questions, there's a good FAQ on this site.
    shmoove

  • J2ME, MIDP,CLDC, ...

    Hi all,
    i'm new to this "micro Java tech" and i would like to have clear some general concepts ;-)
    right now i've got an application written in "waba" for running it in a Palm device, i just needed waba VM, waba classes and some applications for creating the prc files.
    Now i would like to "translate" and walk into the sun philosophy...
    i've been reading around and i've found KVM what is quite clear, and then J2ME, MIDP and CLDC... do i need all this for writting my java application and running it in a Palm device?
    Which is the minimal set for doing it?
    Which API is the correct one for what i want CLDC API or Java2ME API?
    my messy brains would thank any help....
    thanks,
    Laura.

    hi, if you want to develop and run your apps on Palm devices, I think what you need are J2ME Wireless ToolKit and MIDP for Palm from Sun Microsystems. These tools can help you.

  • GUI Development Question

    Hi everybody!
    I'm quite new in ALBPM and I have some questions about it, especially about user interfaces.
    I've been developing JSP aplications (using MVC frameworks) for a long time, and I can't figure out how does it fit in the ALBPM world.
    What's the paradigm for GUI development? At first, I believe the screenflow should act like the controler, the BPM object is the model, and the custom JSPs are the views.
    But... sincerely for me, the Screenflow/BPM object/Custom JSPs seem less flexible than a regular MVC (Struts, JSF, ...)
    My question is: Is it mandatory to use screenflows, or I'm able to use a MVC architecture inside ALBPM? If it's possible how should I implement it?
    For example: I have a custom JSP with some menu items, and this items are links to other JSP pages. This behaviour should
    be modeled using screenflows or can I use another approach? What's the best practice for this task?
    In MVC architecture, the menu will be inside an html form with an action pointing to a servlet (a controller). And what about screenflows?
    Well, I'd like to hear some opinions about this, especially because i'm triyng to get used to BPM paradigm, and in my opinion the best approach for this is hearing from people who had experienced this situation.
    Thanks in advance

    The reason for this is due to our JVM. This application is being developed for an embedded system. There are no swing components in this JVM environment for a couple reasons: size constraints and possible license issues.

  • Netbeans  and MIDP GUI

    I'd like to design MIDP GUI on netbeans.
    Is there any manual or Tip to develop MIDP GUI screen on netbeans?
    Thanks in advance.

    Did you see netbeans site?
    http://www.netbeans.org/kb/41/mobility.html

  • NetBeans or Eclipse: Which is better for GUI development ?

    I am relatively new with JAVA, came from embedded software domain mostly in C.
    My interest is to learn and develop the GUI applications using Swing.
    I am currently in a process of evaluating the IDEs, Eclipse and NetBeans on Linux desktop environment (SuSE 10.3).
    My primary findings found that, NetBeans is better equipped with GUI development while Eclipse needs to have a plugin installed.
    For GUI development, I found that few of my fellow Java developer friends have mixed feelings about these two wonderful IDEs, in summary here are the comments:
    1) Developing GUI is better without any assistance from built in designers of IDEs (e.g. NetBeans or Visual Swing of Eclipse). Because, they put extra 'garbage" codes which are very much IDE specific.
    2) GUI development in NetBeans is faster and more productive than Eclipse
    3) Visual Swing for Eclipse is not a matured product and it is far inferior than NetBeans' capabaility
    Now I ask a question, what is the best practice to adopt for starting the GUI development ? NetBeans or Eclispse or IDE-less development ?
    Thanks.

    atomodachi wrote:
    Now I ask a question, what is the best practice to adopt for starting the GUI development ?
    NetBeansThis is my preference for IDE's. Please note that as I stated that is my preference. There isn't any best, some are clearly better than others for one reason or another, but once again, that boils down to personal preference.
    EclispseNot my preference.
    IDE-less development ?IMO: that is just silly. Unless you just enjoy tons of typing; why would you ever embark on doing something without a tool to speed up the process. Now that is not to say that in using your IDE you should start out by just dragging and dropping up a storm and merrily running down the road in ignorance until you hit a rough spot and have things dramatically pointed out that you've really not a clue about what is happening. Use the IDE, but learn how to do the manual processes along with it. That means that sometimes you'll not drag and drop to build your GUI, you'll actually code the entire thing. And you really should learn to do things command-line like compile. Do yourself a really big favor too, learn the debugger. The integrated debuggers is, perhaps, one of the best inventions in productivity tools that has as of yet been invented for developers.
    In any case, have fun... choose what you like, it really does come down to personal preference. I've worked in several shops over the years and most have come to the conclusion that if you can get the work done, and have projects that others can use, then to each their own preferences. The discussion rages on for and against each of the systems that you have mention--each have valid arguments--it boils down to what do you want and like.

  • Oracle 11g - External Table/SQL Developer Issue?

    Oracle 11g - External Table/SQL Developer Issue?
    ==============================
    I hope this is the right forum for this issue, if not let me, where to go.
    We are using Oracle 11g (11.2.0.1.0) on (Platform : solaris[tm] oe (64-bit)), Sql Developer 3.0.04
    We are trying to use oracle external table to load text files in .csv format. Here is our data look like.
    ======================
    Date1,date2,Political party,Name, ROLE
    20-Jan-66,22-Nov-69,Democratic,"John ", MMM
    22-Nov-70,20-Jan-71,Democratic,"John Jr.",MMM
    20-Jan-68,9-Aug-70,Republican,"Rick Ford Sr.", MMM
    9-Aug-72,20-Jan-75,Republican,Henry,MMM
    ------ ALL NULL -- record
    20-Jan-80,20-Jan-89,Democratic,"Donald Smith",MMM
    ======================
    Our Expernal table structures is as follows
    CREATE TABLE P_LOAD
    DATE1 VARCHAR2(10),
    DATE2 VARCHAR2(10),
    POL_PRTY VARCHAR2(30),
    P_NAME VARCHAR2(30),
    P_ROLE VARCHAR2(5)
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY P_EXT_TAB_D
    ACCESS PARAMETERS (
    RECORDS DELIMITED by NEWLINE
    SKIP 1
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' LDRTRIM
    REJECT ROWS WITH ALL NULL FIELDS
    MISSING FIELD VALUES ARE NULL
    DATE1 CHAR (10) Terminated by "," ,
    DATE2 CHAR (10) Terminated by "," ,
    POL_PRTY CHAR (30) Terminated by "," ,
    P_NAME CHAR (30) Terminated by "," OPTIONALLY ENCLOSED BY '"' ,
    P_ROLE CHAR (5) Terminated by ","
    LOCATION ('Input.dat')
    REJECT LIMIT UNLIMITED;
         It created successfully using SQL Developer
    Here is the issue.
    It is not loading the records, where fields are enclosed in '"' (Rec # 2,3,4,7)
    It is loading all NULL value record (Rec # 6)     
    *** If we remove the '"' from input data, it loads all records including all NULL records
    Log file has
    KUP-04021: field formatting error for field P_NAME
    KUP-04036: second enclosing delimiter not found
    KUP-04101: record 2 rejected in file ....
    Our questions
    Why did "REJECT ROWS WITH ALL NULL FIELDS" not working?
    Why did Terminated by "," OPTIONALLY ENCLOSED BY '"' not working?
    Any idea?
    Thanks in helping.

    I don't think this is a SQLDeveloper issue. You will get better answers in the Database - General or perhaps SQL and PL/SQL forums.

  • GUI Development Paradigm

    Hi everybody!
    I'm quite new in ALBPM and I have some questions about it, especially about user interfaces.
    I've been developing JSP aplications (using MVC frameworks) for a long time, and I can't figure out how does it fit in the ALBPM world.
    What's the paradigm for GUI development? At first, I believe the screenflow should act like the controler, the BPM object is the model, and the custom JSPs are the views.
    But... sincerely for me, the Screenflow/BPM object/Custom JSPs seem less flexible than a regular MVC (Struts, JSF, ...)
    My question is: Is it mandatory to use screenflows, or I'm able to use a MVC architecture inside ALBPM? If it's possible how should I implement it?
    For example: I have a custom JSP with some menu items, and this items are links to other JSP pages. This behaviour should
    be modeled using screenflows or can I use another approach? What's the best practice for this task?
    In MVC architecture, the menu will be inside an html form with an action pointing to a servlet (a controller). And what about screenflows?
    Well, I'd like to hear some opinions about this, especially because i'm triyng to get used to BPM paradigm, and in my opinion the best approach for this is hearing from people who had experienced this situation.
    Thanks in advance,
    Thiago

    Hi Thiago,
    I think I see what you're asking. Let me know if I'm missing your point.
    I personally try to have a Model version of the BPM Object. I'll build this object first. This object just has the attributes, groups and methods I need. This object will be used to pass information from the process into the individual screenflows and procedures and subprocesses.
    I'll then create a View version of the same BPM Object. I create this View BPM object is created by creating an heir from the original Model BPM Object (right mouse click the Model BPM Object and click "Create Heir"). When I know I'll need to collect several Model BPM Objects into one View object, I'll instead add these as attributes (each attribute would be of the type of the desired Model BPM Object). Built this way, this View Object would have all the attributes and methods of the Model object. You'd also add to this View Object the presentations you'll later use inside the screenflows and any methods you'll use inside these presentations.
    At this point, you'll have a clean Model BPM Object - uncluttererd by presentations and presentation methods. You'll have View BPM Objects that will be used exclusively inside Global, Interactive, Global Creation and Interactive activity screenflows.
    When I create a screenflow I always do it after I first have created a process with a BPM Object as an instance variable already defined in it. This object does not have to be perfectly defined. It just should be present in the process. If I decide later that I need additional attributes and methods, these can be added at any point in the development lifecycle. This object is the Model object I'll pass to my screenflows.
    Second, after creating this process with the BPM Object (usually the process at this stage just shows the "Happy Path") I'll add the necessary Interactive activities used in the process. (finally getting to your question) I then create screenflows for each of the Interactive activities (right click the activity -> Main task -> pick screenflow from the dropdown -> New). As you're doing this from this panel, be sure to map the Model object as both an incoming and outgoing variable into and out of the screenflow. Some people also map the "result" predefined variable as an outgoing variable from the screenflow. If you do it this way, you'll not have to do any of the 4 argument mappings you'd have to do had you added the incoming and outgoing variables manually. If you decide to do this manually, many times you'll find yourself spending an hour tracing down where you lost the contents / changes made inside screenflows.
    This best practice makes it easy to pass in and get back the Model object to and from the screenflow. Once inside the screenflow, you'd do the Model to View to Model object mapping described in my earlier post.
    hth,
    Dan

  • Report Development issue: I have queryy of 1600  line but report builder

    Report Development issue: I have queryy of 1600 line but report builder 1320 lines . But i m can't create views becasue many parameters are used in it please give solution how can i paste 1600 line in report bulder.

    you would have to build a dynamic statements that will make up your query.
    e.g.
    select &column
      from &from_clause
    where &where_clause;where:
    column is a user parameter that makes up of columns
    from_clause is a user parameter that makes up of tables involves
    where_clause is a user parameter that makes up of condition statements
    and the above parameters can be defined on the report triggers AFTER PARAMETER FORM.

  • Playback Video (format 3GPP) on j2me midp 2.0

    Hi all,
    By now all recent mobile phone should playback many video type included le format 3GP.
    But I can't playback any Video from J2me midp 2.0 API.
    Are there someone here who know a solution independent of device to playback video on j2me midp platform ?
    Thank you,
    Tien
    (www.tranthuong.com)

    Something like this:
    private void playFile( String filename ) {
      try
        InputStream is = getClass().getResourceAsStream(filename);
        m_player = Manager.createPlayer(is, "video/3gpp");
        m_player.prefetch();
        m_player.start();
      catch (Exception ex)
        System.out.println(ex.toString());
    } Also in MIDP 2 check VolumeControl
    If your mobile support JSR-135:
    try {
         Player p = Manager.createPlayer("http://abc.mpg");
         p.realize();
         VideoControl vc;
         if ((vc = (VideoControl)p.getControl("VideoControl")) != null)
             add((Component)vc.initDisplayMode(vc.USE_GUI_PRIMITIVE, null));
         p.start();
    } catch (MediaException pe) {
    } catch (IOException ioe) {
    }In this case you also can
    InputStream is = getClass().getResourceAsStream(filename);
    Player p = Manager.createPlayer(is, "video/3gpp");

  • Introducing JavaStates - a new API for state based GUI development in Swing

    JavaStates partially implements the semantics of D Harel' statecharts.
    It is currently hosted as source forge project:
    [https://sourceforge.net/projects/javastates/]
    , and has been used for several years for teaching Java Swing and the specification of man machine interfaces at ESIL
    [http://www.esil.univmed.fr]
    [http://laurent.henocque.com]
    The project provides several demos, including a full fledged swing text editor, and is stable.
    Details can be found here too:
    [http://javastates.posterous.com/]
    I'd be very happy to interact with both experts and users.
    I claim that Javastates tremendously improve the quality and speed of GUI development.
    Do you agree?
    Edited by: lhenocque on Mar 4, 2010 4:18 AM

    Thanks for the good practise hint, and many more thanks for your interest.
    I haven't tried anything but don't you get an explosion of states?
    explosion of states is controlled by concurrent regions. Two states in two concurrent regions can be active at the same time.
    There can be no 'explosion' anyway since the states are programmer declared. The list is finite, and under control.
    For example the program I'm working on has a table and actions are enabled based on:
    -no selection/single selection/multi selection
    -top/bottom row selected (move up/down action)
    -user read/write permission
    -properties of the object of the selected row
    The situation you describe is handled by (at least) four concurrent regions.
    The typical error is usually forgetting a particular one which result in action being enabled/disabled when the shouldn't. Currently solving that by having a callback method which enables all the action correctly and gets called whenever there is a selection/security/etc update.
    Javastates cares for both setting the properties of the states (including the callbacks to fire) and for the cleanup. Using this allows for defect free interfaces in the sense that nothing can be left over.
    Using Javastates helps you to separate your logic in the same way as object programming with virtual functions does. You should end up replacing a code with many if/thens by separate listeners, dynamically set by callbacks.
    Also fluent interface method chaining is nice until it becomes a flood in my opinion - similar to how GroupLayout is better handled by Matisse GUI builder than by hand, JavaStates might benefit more from a graphical tool.
    You are right. Both apis exist. The fluent api is provided for simplicity, since it prevents from declaring useless local variables.
    Also for a GUI builder. I created the foundation of Javastates for an interpreted language called WIZ in the IDE Openside around 1990 (that was in C).
    Then later I implemented a subset of the current Java features in C++, that were interfaced in the GUI Builder called ILOG Views.
    So yes I agree a GUI can help, but anyway the Java code resulting from using states is mare more concise and structured than it would otherwise.

  • What was the first GUI development tool of Oracle?

    Hi,
    I am an Oracle Developer and currently developing my own Website dedicated to Oracle, especially on the development tools. In my website I have a page dedicated to the history and development of the Oracle Developer tools, from SQL*FORMS 1,2,3,4 etc. to the Current Developer. What I want to know are the release dates of the first Windows based development tools by Oracle. I know that Forms 4 was the first Windows based GUI development tool Oracle released ( I think it was called Oracle CDE). But I don't know when it was released. Was it in 1993 or 1994? If you can tell me which month it would be even better and more accurate. I got to know through the Internet that Developer/2000 Version 1 was released in March/1995. Is this true? Any information on this would be greatly appreciated.
    Thanks & regards
    LS

    Hi,
    the first version of CE was 7.1. Followed by 7.11 and 7.20. But you have to be carefull. There was a netweaver release 7.0 which already included parts of the components shipped with CE (e.g CAF and WebDynpro). But these are different releases, so it is not possible to do an easy upgrade from NW 7.0 to CE 7.1
    Best regards,Stefan

  • JSE 8 - Tutorials covering GUI development?

    The version 7 tutorial doesn't match up - is there any good tutorial documentation covering GUI development with JSE 8 ?
    thanks!

    The tutorial from Netbeans 4.1 should fit - http://www.netbeans.org/kb/41/form_getstart.html

  • IDE for gui development

    Does any one know a good ide for java gui development other than JBuilder...
    thanks
    SP

    I use both JBuilder and Eclipse, but to be honest, I never created a GUI with any of them. In my experience, at least some GUI-creators produce a lot of junk - the GUIs always looked different during runtime than they did in the editor window. Do it like I do and manually code them.

Maybe you are looking for