Splash screen for multiple MIDlets

Hello to all,
I am vishnu.
I have a project containing multiple midlets.
In that,I have a MIDlet class for splash screen. It is working well seperately.
When i run my project in the emulator, it display currently available MIDlet classes. when i select the splash screen MIDlet , it displays the screen.But i want to display the splash sceen when i open the project in the emulator.
Do i have to change any settings to make a class file as splash screen.
thank you in advance,
vishnu

Why do you need multiple midlets?

Similar Messages

  • Building Splash Screens for my MIDlet ????

    i want to build a Splash Screen, please help. My Code:
    package ewetmidlet;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    public class EwetMidletMain extends MIDlet implements CommandListener {
         public Display display = null;
         private Command cmdAdd;
         private Command cmdBack;
         private Command cmdExit;
         private EwetNews en = null;
         private EwetDates ed = null;
         private EwetForum ef = null;
         private EwetSchedule es = null;
         private EwetPref ep = null;
         private EwetServlet servlet = null;
         public Alert alert = null;
         public List mainMenu;
         private String[] mainMenuChoices = {"News",
                             "Termine",
                             "Stundenplan",
                             "Forum",
                             "Einstellungen"};
         public EwetMidletMain () {
              display = Display.getDisplay (this);
         protected void startApp () {
              genNewsScr ();
              genMainMenu ();
              genDatesMenu ();
              genForumMenu ();
              genScheduleMenu ();
              genPrefScr ();
              display.setCurrent (mainMenu);
         protected void pauseApp () {
         protected void destroyApp (boolean unconditional) {
              ep.savePref ();
         private void genMainMenu () {
              if (mainMenu == null) {
                   cmdAdd = new Command ("OK", Command.OK, 1);
                   cmdBack = new Command ("Zur�ck", Command.BACK, 2);
                   cmdExit = new Command ("Beenden", Command.EXIT, 3);
                   mainMenu = new List ("EWET-Men�", List.IMPLICIT, mainMenuChoices, null);
                   //mainMenu.setTicker (new Ticker ("Achtung heute 1 Termin"));
                   mainMenu.addCommand (cmdAdd);
                   mainMenu.addCommand (cmdExit);
                   mainMenu.setCommandListener (this);
         private void genNewsScr () {
              en = new EwetNews (mainMenu, display);
         private void genDatesMenu () {
              ed = new EwetDates (mainMenu, display);
         private void genScheduleMenu () {
              es = new EwetSchedule (mainMenu, display);
         private void genForumMenu () {
              ef = new EwetForum ();
              ef.getForumMenu ().setCommandListener (this);
         private void genPrefScr () {
              ep = new EwetPref ();
              ep.getPrefScr ().setCommandListener (this);
         public void commandAction (Command c, Displayable d) {
              if (d == mainMenu) {
                   if (c.getCommandType () == Command.EXIT) {
                        ewetMidletExit ();
                   else if ((c == List.SELECT_COMMAND) || (c == cmdAdd)) {
                        switch (mainMenu.getSelectedIndex ()) {
                             case 0:
                                  display.setCurrent (en.getMenu ());
                                  break;
                             case 1:
                                  display.setCurrent (ed.getMenu ());
                                  break;
                             case 2:
                                  display.setCurrent (es.getMenu ());
                                  break;
                             case 3:
                                  display.setCurrent (ef.getForumMenu ());
                                  break;
                             case 4:
                                  display.setCurrent (ep.getPrefScr ());
                                  break;
              else if (d == ef.getForumMenu ()) {
                   if (c == ef.cmdBack) {
                        display.setCurrent (mainMenu);
              else if (d == ep.getPrefScr ()) {
                   if (c == ep.cmdBack) {
                        display.setCurrent (mainMenu);
         private void ewetMidletExit () {
              destroyApp (true);
              notifyDestroyed ();
         /*public void showSplashScreen(Display d, Displayable next ){
              Image logo = null;
              try {
                   logo = Image.createImage("/ewet.png" );
              catch( IOException e ){
              Alert a = new Alert( null,
                        "Copyright 2002 by Frank Putzger",
                             logo, null );
              a.setTimeout( Alert.FOREVER );
              display.setCurrent( a, next);
    }

    uh, you gave us the entire midlet....
    here's a splash screen extending canvas, with the calling method (from the midlet), below it:
    import java.util.*;
    import javax.microedition.lcdui.*;
    public class Splash extends Canvas {
    private Display display;
    private Displayable next;
    private Timer timer=new Timer();
    public Splash (Display display,Displayable next) {
    this.display=display;
         this.next=next;
         display.setCurrent(this);
    protected void showNotify () {
    timer.schedule( new TimerTask () { public void run() {
         displayNext(); }},8000);
    protected void hideNotify() {
    timer.cancel();
    protected void keyPressed (int keycode) {
    displayNext();
    protected void pointerPressed (int x, int y) {
    displayNext();
    private void displayNext() {
    display.setCurrent(next);
    protected void paint (Graphics g) {
    int height=this.getHeight();
    int width=this.getWidth();
    // fill background as white
    g.setColor(0xFFFFFF);
    g.fillRect(0,0,width,height);
    Image logo=null;
    try {
    logo=Image.createImage("/images/logo.png");
              } catch (Exception ignore) {}
    g.drawImage(logo,width/2,height/2,g.HCENTER|g.VCENTER);
    here's the calling method (it passes the Display and current Displayable):
    * This shows the splash
    private void showSplash () {
         new Splash (display,MenuList);

  • Lightroom won't boot -I only get the splash screen for a second.

    I do have the photographers version of the Creative Cloud which included Photoshop CC 2014 and Lightroom. Everything was working just fine until I upgraded to Lightroom version 5.6. Now when I try to load LR, the slash screen shows for a second then disappears and LR does not load. This occurs on both my Mac (a Mac Pro and a iMac). I uninstalled LR and had creative cloud reinstall but still the same thing is happening  - Splash screen for a second then nothing. Again, this is happening on both Mac's. Photoshop CC 2014 I working just fine.
    Before I call Adobe, any ideas here on this issue. BTW, Creative Cloud App states LR in up to date and installed.
    Thanks
    James

    Hi PBAYARD,
    I see that you are experiencing an issue with your iPod classic. Here is an article for you that will hep you through some troubleshooting steps regarding this issue:
    iPod: No power or frozen - Apple Support
    https://support.apple.com/en-us/TS1404
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Getting increasingly frequent system shutdown with appearance of the apple splash screen for several minutes then back to logon in the middle of using a variety of APPs or just walking on Safari.

    Using an IPAD 2 running 5.0.1 is frequently shutting down in the middle of a variety of Apps and showing the Apple splash screen for several minutes. This happens occasionally at inopportune times. Once the splash screen clears it goes back to the logon screen and the App that was open is closed. Has anyone else encountered this? Is there a resolution?

    RockHunter wrote:
    This happens occasionally at inopportune times.
    I don't think that there is ever a good time for this to occur.
    What do you mean the Apple splash screen? You see the Apple logo on the screen?
    It appears as though your apps are crashing. Have you tried quitting apps and restarting? Reset the iPad?
    Quit all apps and restart. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Creating a splash screen for your app.

    Im trying to create a splash screen for my app but im not too sure how it's done.
    Im using the following piece of code.
    public static void main(String[] args)
              JPanel display = new JPanel();
              display.setPreferredSize(new Dimension( (300), (200) ));
              display.setBackground(Color.white);
                   // I WILL PUT AN IMAGE ICON ON A JLABEL HERE              
              display.setVisible(true);
                   // I WILL NEED A DELAY HERE
              test.instance();
    }The problem I am having is that the JPanel is not being displayed. I will also need a way to create a delay, I know that I can't just use Thread.sleep(5000); because the JPanel will require the thread to be running in order to display the panel.
    Does anyone know how I could get my JPanel to display and somehow insert a delay before test.instance();?
    Thanks.

    I made my own a few days before for a database program. It can be easily done with Threads.
    I recommend you create a new class to be used as the spalsh screen , it has to extends JFrame and implements Runnable.
    I ll give you an example. I used the spash screen to display the screen and also to laod the main GUI form so that when the spash screen dispose, the main GUI form displays instantly, making the user think that the application loads faster.
    public void run ()
            try
                 this.setVisible(true);
                 Thread.sleep(2000);
                 // sets the menu visible before disposing
                 guiMenu.setVisible(true);
                 // disposes the object and returns the resources to the OS
                 this.dispose();
            catch(InterruptedException exception)
                exception.printStackTrace();
    // this method must be implement in the class
    // that implements Runnable interface
    //MAIN
    public class Main
        public static void main(String[] args)
            Menu menu = new Menu();
            SplashScreen introScreen = new SplashScreen(menu);
            ExecutorService splashExecutor= Executors.newFixedThreadPool(1);
            splashExecutor.execute(introScreen);       
    }ExecutorService is a subinterface of Executor that declares methods for managing the threads. It also has the method execute (that provides the Executor interface) which when invoked calls the method public void run() of the argument class that must implement Runnable.
    Executors.newFixedThreadPool(1); creates a poll consisting of a 1 thread which is been used by splashExecutor to execute the Runnable.
    Hope i've been of some assistance!

  • To display splash screen for certian period of time using threads

    i want to write a program to display splash screen for certian period of time using threads. could some one help me

    If you just want a splash screen: [http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/|http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscreen/]
    If you want to learn threads: [http://java.sun.com/docs/books/tutorial/essential/concurrency/|http://java.sun.com/docs/books/tutorial/essential/concurrency/]

  • Show splash screen for x amount of seconds

    Is there a better way to show a splash screen for x seconds than putting it in a while loop? It just seems so inefficiant and it uses a lot of processing power. This is what I have: long startTime = System.currentTimeMillis();
    while(System.getCurrentTimeMillis() <= startTime + 5000) {
        //wait
    mainPage.setVisible(true);

    javax.swing.Timer.
    Also:
    http://java.sun.com/javase/6/docs/api/java/awt/SplashS
    creen.htmlThank you, I knew there had to be a better way.

  • Chromeless splash screen for application

    hi!
    Anyone know how to create a Chromeless splash screen for java application.Just like the startup screen for the normal application? When the java application start-up the screen will show, it's close after a few screen or user click a button.
    and is there anyway to add background image for a java application?
    Thank in advance!
    jet

    hi there, check a look at this code:
    import javax.swing.*;
    import java.awt.*;
    public class Splash implements Runnable, mainInterface{
    private String initMsg;
    public Splash(String initMsg) {
    this.initMsg = initMsg;
    public void run() {
    splashWindow.getContentPane().add(l, BorderLayout.CENTER);
    splashWindow.pack();
    splashWindow.setSize(splashWindow.getSize().width, splashWindow.getSize().height);
    splashWindow.setLocation(dim.width/2 - splashWindow.getWidth() /2,dim.height/2 -
    splashWindow.getHeight()/2);
    splashWindow.toFront();
    splashWindow.show(); }
    public JWindow getWindow()
    return splashWindow;
    }add this code to the main file
    private static void splash()
              th.start(); // I sleep to let the thread startup and display the window
                   while (splash3.getWindow() == null || !splash3.getWindow().isShowing())
                        try {
                             Thread.sleep(2000);
                        catch (InterruptedException e){}
         }hope u understand this
    asrar

  • Excel 2013 stalling at splash screen for files in use by others

    Excel 2013 is stalling (and not opening) when trying to open a file that is in use by another user. In office 2010 it would prompt the user to open in read-only mode, but in 2013 it seems to just stall and never open. It just stays on the splash screen
    for ever. We have done some testing and it appears that double clicking on an excel file causes this to occur, but will function correctly if the file is opened through excel's file browser.  Any suggestions on how to fix this?  It's a pain to make
    all the users open excel first, then browse through a lengthy network location.  Thanks in advance!
    For information purposes: these are files on a network location shared by many users.

    Hi,
    Did the issue occur when you just installed the Office 2013 or after using Office 2013 sometimes? I recommend we try the following methods and test to check if they are helpful.
    1. Click the File tab>Options>Advanced>scroll down to the General section>Clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the General area.
    2. Install the latest Cumulative Update for Excel
    3. Right click on the Start Button>Click 'Open Windows Explorer'> click Organize > Layout> Uncheck Details Pane and Preview Pane.
    On a Windows menu, click on Tools > Folder Options.  In the box that opens up, click on the View tab.  Scroll down the list to “Show pop-up description for folder and desktop items” and clear the checkbox and then click OK.
    4. Check/Disable the Excel add-ins
    5. Repair Office.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support

  • OpenSUSE-inspired splash screen for GIMP

    I saw this (old) openSUSE splash screen for GIMP and quite liked it:
    And so I created a new version of it, using Inkscape.  The PNG splash screen should be placed in $HOME/.gimp-2.6/splashes/ (or .gimp-2.7/ if you're using gimp-devel).  The font used is FifthLeg, which is based upon the font used in the openSUSE splash, and can be found in the AUR under otf-fifthleg: http://aur.archlinux.org/packages.php?ID=23740.
    The quick install (original version):
    mkdir -p $HOME/.gimp-2.8/splashes
    wget http://oi43.tinypic.com/s33fo9.jpg -O $HOME/.gimp-2.8/splashes/gimp-splash.png
    Here is the SVG file, in case you want to scale it up/down or change anything for your usage:
    http://www.mdn.fm/files/100696_f4f0h/gimp-splash.svg
    Screenshot:
    EDIT: Switched image hosting from ImageShack to TinyPic ... ImageShack has been very unreliable in the past few years.
    EDIT: Updated links (TinyPic is forcing the extension to JPG for whatever reason, but the file itself is a PNG). SVG link is dead.
    Last edited by MkFly (2015-05-27 15:33:01)

    Anonymo wrote:But you used Inkscape to make it? 
    Yes, I appreciate the irony there.  I wanted it to be easily scalable, and I didn't want to make some gigantic XCF.
    That and, I wanted to learn a little more about Inkscape.  The combination of the two (GIMP, Inkscape) is outstanding.
    Last edited by MkFly (2010-05-17 15:58:34)

  • How do I make a Splash Screen for my Android App.

    Hello, I am currently making an app, for school and cant find out how to make a Splash Screen. I'm using Flash Builder 4.7 and can only find tutorials for 4.5. I just need it so that when the app opens there is not a white screen forever while its loading up, any help would be great.
    Thanks!

    Copy into Apple Pages. Export a PDF.

  • Looking for a Splash screen for desktop login

    Thats it, I have been looking for a splash screen application that can make a splash appear since my login begins with SLIM and that disappears once all startup applications have been loaded.
    I tried plymouth, but I think it cannot be used for this purpose.
    Any recommendation for this? Thanks.

    Do you mean you want a splash screen from the time when you complete logging in with Slim to the time the desktop has finished loading? If that is taking more than just a few seconds then I suggest you change desktops to something lighterweight. Mine takes about 2 seconds (wmii) - not even enough time for a splash scree!. Are you using KDE or Gnome because I believe you can set a startup splash with both those DE's . Check their documentation. Also, show us your ~/.xinitrc .

  • Splash Screen for Android with Flash CS5.5

    How can I make a SplashScreen with Flash CS5.5 or just with AIR/AS3 codes. I need it while the App/Game is loading...
    I know that it's possible with Flex 4.5 as:
    <?xml version="1.0" encoding="utf-8"?>
    <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              firstView="views.HomeView"
                              splashScreenImage="@Embed('splashscreen.png')" />
    http://workflowflash.com/98437/air-for-android-splash-screen-with-flex-4-5.php
    But I want to do it without Flex. So can I ?
    Thank you

    i'm not sure if this is necessary anymore, but i took the advise of another user here
    http://forums.adobe.com/thread/764981
    the key difference is, the user stated a preloading swf needed to embed the image in order to display before the whole apk is loaded.
    Seems to be working for me anyway

  • Custom splash screen for app under JWS 1.2 from 1.4.1 beta?

    Has anyone gotten a custom app's splash screen to come up instead of the damn Sun Java Web Start splash screen to come up when the app starts from a desktop icon or if you launch it from JWS?
    I added it to my jnlp file as specified in the docs, but it just doesn't come up :-(
    <description kind="tooltip">TransMedia 2</description>
    <icon kind="default" href="transmedia.gif" />
    <icon kind="selected" href="transmedia.gif" />
    <icon kind="disabled" href="transmedia.gif" />
    <icon kind="rollover" href="transmedia.gif" />
    <icon kind="splash" href="transmediasplash.gif" />
    </information>

    Hello,
    I read your postings here and I did what you proposed.
    Nevertheless the splash screen doesn't show up.
    I'm using Java 1.4.1, Web Start 1.2; the jnlp file
    looks like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://venus/example-client/" href="example.jnlp">
    <information>
    <title>Example</title>
    <vendor>My Company/vendor>
    <description>JBoss Client</description>
    <icon href="splashscreen.jpg" kind="splash" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="example-client.jar" main="true"/>
    <jar href="jbosssx-client.jar"/>
    <jar href="concurrent.jar"/>
    <jar href="jboss-client.jar"/>
    <jar href="jboss-common-client.jar"/>
    <jar href="jboss-j2ee.jar"/>
    <jar href="jnp-client.jar"/>
    <jar href="log4j.jar"/>
    <jar href="datepicker.jar"/>
    <jar href="jcommon-0.7.1.jar"/>
    <jar href="jfreechart-0.9.4.jar"/>
    <jar href="xercesImpl.jar"/>
    <jar href="xml-apis.jar"/>
    <jar href="xalan.jar"/>
    <property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
    </resources>
    <application-desc main-class="com.mycompany.ui.Example"/>
    </jnlp>
    any idea why webstart doesn't use the custom "splashscreen.jpg"?
    a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
    thanx for help,
    michael

  • Custom Splash Screen for HTML Export?

    We're finding our customers are getting confused with the HTML screen that initally displays a single button to play our Captivate lessons. Is there any way inside Captivate to add some context to that screen?
    TIA
    Retiarius

    Hello,
    I read your postings here and I did what you proposed.
    Nevertheless the splash screen doesn't show up.
    I'm using Java 1.4.1, Web Start 1.2; the jnlp file
    looks like that:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://venus/example-client/" href="example.jnlp">
    <information>
    <title>Example</title>
    <vendor>My Company/vendor>
    <description>JBoss Client</description>
    <icon href="splashscreen.jpg" kind="splash" />
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="example-client.jar" main="true"/>
    <jar href="jbosssx-client.jar"/>
    <jar href="concurrent.jar"/>
    <jar href="jboss-client.jar"/>
    <jar href="jboss-common-client.jar"/>
    <jar href="jboss-j2ee.jar"/>
    <jar href="jnp-client.jar"/>
    <jar href="log4j.jar"/>
    <jar href="datepicker.jar"/>
    <jar href="jcommon-0.7.1.jar"/>
    <jar href="jfreechart-0.9.4.jar"/>
    <jar href="xercesImpl.jar"/>
    <jar href="xml-apis.jar"/>
    <jar href="xalan.jar"/>
    <property name="java.security.auth.login.config" value="http://venus/example-client/auth.conf"/>
    </resources>
    <application-desc main-class="com.mycompany.ui.Example"/>
    </jnlp>
    any idea why webstart doesn't use the custom "splashscreen.jpg"?
    a properly splashXXXXX.jpg has been created in .javaws/cache/splashes, as well as an entry in splash.xml.
    thanx for help,
    michael

Maybe you are looking for

  • Error in MSS iViews - Urgent

    Hello All, I've imported the MSS BP 60.1.5 (Based on Java) into the Portal Successfully. After creating a System Object 'SAP_R3_HumanResources' i'm trying to run the iviews however am getting a message "Could not connect to the R/3 System". I checked

  • I do not have "save as" listed on my file menu. Am I missing something?

    I am missing the "save as" command on my toolbar in Pages. Therefore I am not able to save an existing document with a different name. Any suggestions?

  • Laptop Recommendations for a Future Engineering Student Using Arch

    First: I don't know if I am posting this in the right place, so I apologize in advance if it doesn't belong here. In September, I'm going to be starting an Electrical Engineering program at University and since I'll be in residence, I'm going to buy

  • Add comments button not visible for IE and firefox users?

    hi.. i've used iweb 06 v 1.1.2 to create a small website and blog, with 'add comments' buttons on the blog pages. when i view my website from my own laptop with safari i can see and use the add comments button, but when i view the website from pcs ru

  • Sales of unit of measure

    Hi Forum,   Can anybody tell me the table - field for sales Unit of measure for Material.