I am new to rhomobile. I have created sample application for 3 screens. I am trying to use back button of device to redirect previous screens. But back button is not working. It remains on same screens. Also when we at first screen I want to close application on back button of device. Can we do that programatically?
            Asked
            
        
        
            Active
            
        
            Viewed 626 times
        
    3
            
            
        - 
                    did you override the onBackPressed Button? – vinay kumar Jul 30 '12 at 13:00
- 
                    see this http://stackoverflow.com/questions/3141996/android-how-to-override-the-back-button-so-it-doesnt-finish-my-activity – Tofeeq Ahmad Jul 30 '12 at 13:09
- 
                    @sammer, I am implemenating back button in rhomobile. – Sagar Jadhav Jul 30 '12 at 13:23
2 Answers
1
            
            
        Very late response but may be useful for people when they come to this post.
In android (this doesn't appear to work for Windows Mobile) you would use
 render :back => url
Where url is the url that you wish to proceed back to
Link for the brief documentation on this:
 
    
    
        amrcus
        
- 103
- 11
0
            
            
        Can you provide the code? Here is the back button example using meta tags
<META HTTP-Equiv="BackButton" Content="Visibility:Visible">
<META HTTP-Equiv="BackButton" Content="Left:50">
<META HTTP-Equiv="BackButton" Content="Top:50">
<META HTTP-Equiv="BackButton" Content="Width:30">
<META HTTP-Equiv="BackButton" Content="Height:30">
Quit button:
<META HTTP-Equiv="QuitButton" Content="Visibility:Visible">
<META HTTP-Equiv="QuitButton" Content="Left:50">
<META HTTP-Equiv="QuitButton" Content="Top:50">
Here is the link how to the quit button:
 
    
    
        Snake Sanders
        
- 2,641
- 2
- 31
- 42
