>
splash screen j2mepolish
Welcome, Guest

by dhanendra on Monday, 31 August 2009
splash screen j2mepolish


package main;
import java.io.IOException;

import javax.microedition.lcdui.Image;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import de.enough.polish.ui.Display;
import de.enough.polish.ui.Displayable;
import de.enough.polish.ui.splash.ApplicationInitializer;
import de.enough.polish.ui.splash.InitializerSplashScreen;

public class Test extends MIDlet implements ApplicationInitializer  {

    
    private Display display;
    private Profile g;

    protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
        // TODO Auto-generated method stub
        
    }

    protected void pauseApp() {
        // TODO Auto-generated method stub
        
    }

    protected void startApp() throws MIDletStateChangeException {
        // TODO Auto-generated method stub
        display = Display.getDisplay(this);
        if(g!=null)
        {
            g.show("ff");
        }
        else
        {
            loadSplash();
        }
        
    }

    private void loadSplash() throws MIDletStateChangeException {
        try{
            Image image = Image.createImage("/welcome.png");
            int backgroundColor = 0xFFFFFF;
            String readyMessage =null;// "Press any key to continue...";
            //Set readyMessage = null to forward to the next
            //displayabe as soon as it's available
            int messageColor = 0xFF0000;
            InitializerSplashScreen splashScreen = new InitializerSplashScreen(display,image, backgroundColor, readyMessage,messageColor,this);
            this.display.setCurrent(splashScreen);
        }catch(IOException e){
          throw new MIDletStateChangeException("Unable to load splash image");
        }
        
    }

    public Displayable initApp() {
        
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
                g=new Profile("hello",this);
            
        
        
        return g;
    }

}



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering