Click here to Skip to main content
15,886,788 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: what are the different software components needed to create a small application for Android mobile phone? Pin
Richard MacCutchan9-Aug-11 23:28
mveRichard MacCutchan9-Aug-11 23:28 
Questionlooking for solution, if i dont press any key or touch the screen for 2 minutes on windows-mobile - i need to return to LogIn screen [modified] Pin
Gali19785-Aug-11 22:32
Gali19785-Aug-11 22:32 
AnswerRe: looking for solution, if i dont press any key or touch the screen for 2 minutes on windows-mobile - i need to return to LogIn screen Pin
Mycroft Holmes6-Aug-11 22:47
professionalMycroft Holmes6-Aug-11 22:47 
Questionasp.net Mobile web Pin
netJP12L2-Aug-11 5:12
netJP12L2-Aug-11 5:12 
AnswerRe: asp.net Mobile web Pin
JimmyRopes6-Aug-11 18:57
professionalJimmyRopes6-Aug-11 18:57 
Questionhow to send mms by gsm mobile? Pin
Le@rner2-Aug-11 0:43
Le@rner2-Aug-11 0:43 
AnswerRe: how to send mms by gsm mobile? Pin
sariasam9-Aug-11 21:31
sariasam9-Aug-11 21:31 
Questionj2me Pin
gaurav17may29-Jul-11 7:54
gaurav17may29-Jul-11 7:54 
See more: Java
Hi all,i am doing a project with LWUIT 1.4.0(ResourceEditor),netbeans 6.9 i create a form welcome on which i have two radio buttons Verification and Enrollment when user select Verification and press OK button then a form(Login) should display and when it select Enrollment then authentication form display.I create gui with resource editor it generates four project by default in netbeans,1.Demo,2.Demo_Desktop,3.Demo_MIDP,4.Demo_RIM(for blackberry),currently i am running desktop projetc.Resource editor generates two file statemachine and statemachinebase class.I have to write my code in statemachine class.I posted my code
Collapse
/**
* Your application code goes here
*/

package userclasses;
import generated.StateMachineBase;
import com.sun.lwuit.*;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;
import com.sun.lwuit.RadioButton;
import com.sun.lwuit.util.Resources;
import com.sun.lwuit.ButtonGroup;
/**
*
* @author Your name here
*/
public class StateMachine extends StateMachineBase implements ActionListener {
Button OK;
Resources resources;
RadioButton Verifi=new RadioButton("Verification");
RadioButton Enroll=new RadioButton("Enrollment");
Form fo,f;ButtonGroup bg=new ButtonGroup();
StateMachineBase cl=new StateMachineBase()
{};
public StateMachine(String resFile) {
super(resFile);
}

/**
* this method should be used to initialize variables instead of
* the constructor/class scope to avoid race conditions
*/
StateMachine() {

try{
resources = Resources.open("/NEW AADHAR.res");
}
catch(java.io.IOException err)
{ err.printStackTrace(); }
cl.setHomeForm("Welcome");
//fo = (Form)cl.startApp(resources,null,true);
fo=Display.getInstance().getCurrent();
f=cl.findWelcome(fo);
Verifi=cl.findVerification(f);
Enroll=cl.findEnrollment(f);
bg.add(Enroll);
bg.add(Verifi);
OK=cl.findOK(f);
//f.addCommandListener(this);
//Verifi.addActionListener(listener);Enroll.addActionListener(listener);
}

protected void initVars() {
}

/**
* @param c
* @param event
*/
public void actionPerformed(ActionEvent ae) {
throw new UnsupportedOperationException("Not supported yet.");
}

protected boolean onWelcomeEXIT() {
boolean val = super.onWelcomeEXIT();
return val;
}
protected void onWelcome_OKAction(Component c, ActionEvent event) {
}

ActionListener listener=new ActionListener()
{
public void actionPerformed(ActionEvent ae) {

System.out.print("HIIIIIIIIIIII");
super.onWelcome_VerificationAction(c, event);
super.onWelcome_EnrollmentAction(c, event);
// Verifi = (RadioButton) c; // initialize here
Verifi.addActionListener(listener);
Object source =ae.getCommand();
if (Verifi.hasFocus()) {
if(source==OK.getText())
{

showForm("Login",null);}
} else {
Dialog.show("INFORMATION", "Please select option", "OK", "Cancel");
}
throw new UnsupportedOperationException("Not supported yet.");
}
};
}
When i add radiobuttons and buttons then these are automatically generated in statemachinebase class i just used them in statemachine class.
findVerification()
findEnrollment()
onWelcome_OKAction()
onWelcomeEXIT()
Thanks See more: Java
Hi all,i am doing a project with LWUIT 1.4.0(ResourceEditor),netbeans 6.9 i create a form welcome on which i have two radio buttons Verification and Enrollment when user select Verification and press OK button then a form(Login) should display and when it select Enrollment then authentication form display.I create gui with resource editor it generates four project by default in netbeans,1.Demo,2.Demo_Desktop,3.Demo_MIDP,4.Demo_RIM(for blackberry),currently i am running desktop projetc.Resource editor generates two file statemachine and statemachinebase class.I have to write my code in statemachine class.I posted my code
Collapse
/**
* Your application code goes here
*/

package userclasses;
import generated.StateMachineBase;
import com.sun.lwuit.*;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;
import com.sun.lwuit.RadioButton;
import com.sun.lwuit.util.Resources;
import com.sun.lwuit.ButtonGroup;
/**
*
* @author Your name here
*/
public class StateMachine extends StateMachineBase implements ActionListener {
Button OK;
Resources resources;
RadioButton Verifi=new RadioButton("Verification");
RadioButton Enroll=new RadioButton("Enrollment");
Form fo,f;ButtonGroup bg=new ButtonGroup();
StateMachineBase cl=new StateMachineBase()
{};
public StateMachine(String resFile) {
super(resFile);
}

/**
* this method should be used to initialize variables instead of
* the constructor/class scope to avoid race conditions
*/
StateMachine() {

try{
resources = Resources.open("/NEW AADHAR.res");
}
catch(java.io.IOException err)
{ err.printStackTrace(); }
cl.setHomeForm("Welcome");
//fo = (Form)cl.startApp(resources,null,true);
fo=Display.getInstance().getCurrent();
f=cl.findWelcome(fo);
Verifi=cl.findVerification(f);
Enroll=cl.findEnrollment(f);
bg.add(Enroll);
bg.add(Verifi);
OK=cl.findOK(f);
//f.addCommandListener(this);
//Verifi.addActionListener(listener);Enroll.addActionListener(listener);
}

protected void initVars() {
}

/**
* @param c
* @param event
*/
public void actionPerformed(ActionEvent ae) {
throw new UnsupportedOperationException("Not supported yet.");
}

protected boolean onWelcomeEXIT() {
boolean val = super.onWelcomeEXIT();
return val;
}
protected void onWelcome_OKAction(Component c, ActionEvent event) {
}

ActionListener listener=new ActionListener()
{
public void actionPerformed(ActionEvent ae) {

System.out.print("HIIIIIIIIIIII");
super.onWelcome_VerificationAction(c, event);
super.onWelcome_EnrollmentAction(c, event);
// Verifi = (RadioButton) c; // initialize here
Verifi.addActionListener(listener);
Object source =ae.getCommand();
if (Verifi.hasFocus()) {
if(source==OK.getText())
{

showForm("Login",null);}
} else {
Dialog.show("INFORMATION", "Please select option", "OK", "Cancel");
}
throw new UnsupportedOperationException("Not supported yet.");
}
};
}
When i add radiobuttons and buttons then these are automatically generated in statemachinebase class i just used them in statemachine class.
findVerification()
findEnrollment()
onWelcome_OKAction()
onWelcomeEXIT()
Thanks
AnswerRe: j2me Pin
Richard MacCutchan29-Jul-11 22:35
mveRichard MacCutchan29-Jul-11 22:35 
QuestionAndroid : read chm and epub file Pin
mahdi6829-Jul-11 1:07
mahdi6829-Jul-11 1:07 
QuestionFirst Web service program in Window phone 7 using Visual studio 2010. Pin
sona187728-Jul-11 4:28
sona187728-Jul-11 4:28 
AnswerRe: First Web service program in Window phone 7 using Visual studio 2010. [modified] Pin
Richard MacCutchan28-Jul-11 5:55
mveRichard MacCutchan28-Jul-11 5:55 
QuestionIPhone VoIP Pin
nitin_ion25-Jul-11 17:36
nitin_ion25-Jul-11 17:36 
QuestionFault Management System Pin
Simeon Abiodun25-Jul-11 3:03
Simeon Abiodun25-Jul-11 3:03 
Questioncant connect windows-mobile to webservice in my computer Pin
Gali197821-Jul-11 23:26
Gali197821-Jul-11 23:26 
AnswerRe: cant connect windows-mobile to webservice in my computer Pin
PavanPareta26-Jul-11 3:09
PavanPareta26-Jul-11 3:09 
Questionmp3 encoder Pin
ddiep20-Jul-11 4:15
ddiep20-Jul-11 4:15 
AnswerRe: mp3 encoder Pin
Mehdi Gholam20-Aug-11 0:47
Mehdi Gholam20-Aug-11 0:47 
QuestionAn error message cannot be displayed because an optional resource assembly containing it cannot be found [modified] Pin
Hossein Khalaj18-Jul-11 7:48
Hossein Khalaj18-Jul-11 7:48 
Questionhow to get MAC address from Windows-mobile using C# code ? Pin
goldsoft16-Jul-11 22:38
goldsoft16-Jul-11 22:38 
AnswerRe: how to get MAC address from Windows-mobile using C# code ? Pin
thatraja17-Jul-11 0:07
professionalthatraja17-Jul-11 0:07 
GeneralRe: how to get MAC address from Windows-mobile using C# code ? Pin
Paul Heil18-Jul-11 8:29
Paul Heil18-Jul-11 8:29 
AnswerRe: how to get MAC address from Windows-mobile using C# code ? Pin
Hari Om Prakash Sharma10-Aug-11 4:46
Hari Om Prakash Sharma10-Aug-11 4:46 
QuestionAnyone uses Asterisk? Pin
Garreth Wilks13-Jul-11 2:07
Garreth Wilks13-Jul-11 2:07 
AnswerRe: Anyone uses Asterisk? Pin
Mehdi Gholam1-Sep-11 21:21
Mehdi Gholam1-Sep-11 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.