Ridifvx
07-09-2003, 11:22
GUys please i need your help i'm new in java and try to make a small aplication to send sms..i have trouble to make a text in the textbox become a string i use getstring method but always null
my application scheme like this
startapp()
{
// doing initialization
// load a ppicture *.png using image
// command listener to function1
}
void function1()
{ // make textbox and create some command to send it (using send function }
void send()
{
// use a getString to get phone number and text
// use sms class to send it (from siemens)
}
when i compile it there is no error and can be build to jar and jad but when i play it in emulator sl45i it's said that java.lang.null pointer
i'm sure the problem come from my procedure and it might be a mistake from me
furthermore can i use a reference or something just like visual C# in j2me \
thank a lot
my application scheme like this
startapp()
{
// doing initialization
// load a ppicture *.png using image
// command listener to function1
}
void function1()
{ // make textbox and create some command to send it (using send function }
void send()
{
// use a getString to get phone number and text
// use sms class to send it (from siemens)
}
when i compile it there is no error and can be build to jar and jad but when i play it in emulator sl45i it's said that java.lang.null pointer
i'm sure the problem come from my procedure and it might be a mistake from me
furthermore can i use a reference or something just like visual C# in j2me \
thank a lot