Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2013

    How to use hardware back button of asha 501 series

    I am working on Nokia sdk 1.1 and using lwuit 1.5 specifically making apps for asha 501 series phones.

    My requirement is i want to use hardware back button of phone( the same button which we use to exit app) . I want to handle this to move from my second form to first form in my app.
    I went through some demo examples matching my problem and got the following code.

    protected void startApp() throws MIDletStateChangeException {
    		// TODO Auto-generated method stub
    		 f=new Form("FIRST FORM");
    		 f3=new Form("SECOND FORM");
    		f.setLayout(new BorderLayout());
    		Button b=new Button("CLICK ME");
    		b.addActionListener(new ActionListener() {
    			public void actionPerformed(ActionEvent arg0) {
    				// TODO Auto-generated method stub
    		  Command c = new Command("Back") {
    	            public void actionPerformed(ActionEvent evt) {
    	                  // do something
    But this code is making a back command on form which i press to move to first form but i dont want to go back in this way. I want no such button to be there on form and it should go to previous form on clicking the hardware button(which in my case is exiting my app).

    How to do this?
    Last edited by Manpreet_Singh; 2014-04-10 at 07:03.

  2. #2
    Regular Contributor
    Join Date
    Dec 2012

    Re: How to use hardware back button of asha 501 series

    You need to use the LWUIT provided in the SDK for Asha Series

Similar Threads

  1. How to catch Asha 501 Back button in LWUIT?
    By mikkori in forum Mobile Java UI and User Experience
    Replies: 3
    Last Post: 2013-12-17, 11:31
  2. How to detect hardware back key
    By Worasing in forum Mobile Java General
    Replies: 2
    Last Post: 2013-05-27, 09:23
  3. Back Button In Nokia Asha
    By manikandan12 in forum Nokia Asha Web Apps
    Replies: 1
    Last Post: 2013-05-20, 16:42
  4. Webbrowser and Hardware back button in Windows phone 7
    By yogeshg in forum Windows Phone General
    Replies: 2
    Last Post: 2013-01-08, 20:36
  5. Replies: 1
    Last Post: 2010-04-25, 23:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts