Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Pat Nicholls

Greenhorn
+ Follow
since Jul 19, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pat Nicholls

Is this possible? If so how? Or failing that how can I store more than one field into 1 record?
Thanks
Pat
21 years ago
Hi,
I've been using the Nokia Dev Kit from http://forum.nokia.com integrated with JBuilder form Borland. This gives you a good IDE to work with and you can compile, pre-verify and run in one click of a button. It also has .jar and .jad wizards so you don't have to mess around with command line stuff. You can also test your apps on the J2MEWTK emulators side by side with the Nokia one.
Hope this is useful
Pat
21 years ago
Thanks a lot - thats solved my problem. I just check which Displayable generated the action and then use getSelectedIndex() to find out what was selected.
Thanks again
Pat
21 years ago
Hi,
I am having trouble getting List to work with type IMPLICIT. The code below demonstrates the problem When I select an option from the first list, everything works as expected. It is when I select an option from the second list nothing happens. I am setting a commandListener for each list and checking for the SELECT_COMMAND from each List. The SELECT_COMMAND is always from List 1 no matter which list you are in.
Many thanks for your help.
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Untitled1 extends MIDlet implements CommandListener {
private Display display;
private List List1;
private List List2;
private List List3;
public Untitled1() {
display = Display.getDisplay(this);
}
public void showList1(){
String[] list1options = { "List2", "List3"};
List1 = new List("List 1", List.IMPLICIT,list1options,null);
List1.setCommandListener(this);
display.setCurrent(List1);
}
public void showList2(){
String[] list2options = { "List1", "List3"};
List2 = new List("List 2", List.IMPLICIT,list2options,null);
List2.setCommandListener(this);
display.setCurrent(List2);
}
public void showList3(){
String[] list3options = { "List1", "List2"};
List3 = new List("List 3", List.IMPLICIT,list3options,null);
List3.setCommandListener(this);
display.setCurrent(List3);
}
public void commandAction(Command c, Displayable d){
if (c == List1.SELECT_COMMAND){
int i = List1.getSelectedIndex();
if (i == 0){
System.out.println("List 1 SELECT_COMMAND");
showList2();
}
else {
System.out.println("List 1 SELECT_COMMAND");
showList3();
}
}
else if (c == List2.SELECT_COMMAND){
int i = List2.getSelectedIndex();
if (i == 0){
System.out.println("List 2 SELECT_COMMAND");
showList1();
}
else {
System.out.println("List 2 SELECT_COMMAND");
showList3();
}
}
else if (c == List3.SELECT_COMMAND){
int i = List3.getSelectedIndex();
if (i == 0){
System.out.println("List 3 SELECT_COMMAND");
showList1();
}
else {
System.out.println("List 3 SELECT_COMMAND");
showList2();
}
}
}
public void startApp() {
showList1();
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
21 years ago
Hi,
You can also get Nokias Developer suite. This integrates with JBuilder from Borland and allows you to develop J2ME apps for Nokia phones. You can then test the app on Nokia devices and Sun emulators to see how it performs on different devices.
Hope this helps..
21 years ago
If you can connect your handheld device to a server using WAP you could then write a servlet to send the SMS from there using either a second device attached to that machine or a direct link to a SMSC. Then write J2ME code to connect with this servlet and you should get the result that you want.
21 years ago
Try Nokias site at http://forum.nokia.com. They have a good discussion forum, downloadable pdfs and you get some good examples with their dev kit.
Cheers
Pat
21 years ago