All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 13-06-2003, 09:16 AM
Guest
 
Posts: n/a
Emulator not showing my app...

I finally got the emulator to run, I must have read Kajetan's HOWTO a million times and the line I was missing all the time was :

In command prompt enter the command: devices -setdefault @UIQ_70:com.symbian.UIQ

Before that I have had problems with no class found and the /Thread thing..

Well, problem solved.. Now I got anotherone on my hand, the emulator starts but it will not show my app.. I have added some System.out.print(..) so I know it is "running" but it wont show up on my P800(emulator)..

I use Katejan's build+run script's..

Why wont it show my app ?

Thanks!

Ps. Code for the app : test.java ->
import java.awt.*;
import java.awt.event.*;

public class test extends Frame implements ActionListener {

public static void main(String args[]) {
System.out.println("in constructor");
test h = new test();
}

test() {
System.out.println("in class");
Label lab = new Label("Hello World");
Button b = new Button("Dismiss");
b.addActionListener(this);
addWindowListener(new Goodbye());

setLayout(new GridLayout(2, 1, 10, 10));
add(lab);
add(b);
pack();
show();
}
public void actionPerformed(ActionEvent e) {
dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));

}
private class Goodbye extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.out.println("Goodbye");
System.exit(0);
}
}
}

Ds.

  #2  
Old 13-06-2003, 09:59 AM
Guest
 
Posts: n/a
Solved the problem..

In emulator menu press Launcher -> Task List (debug) -> Select program -> press Go To File

There you go..
Ads
 

Bookmarks

Tags
app, emulator, showing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 09:39 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy