Reputation: 249
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?
Upvotes: 3
Views: 628
Reputation: 103
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:
http://docs.rhomobile.com/rhodes/ui#redefine-back-action
Upvotes: 1
Reputation: 2689
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:
Upvotes: 0