Hello all,
I am getting ready to submit my app to the nook app store. I read in the forum that a lot of apps are getting rejected because the “n” button is not properly handled. I have yet to see a clear solution for this. I can’t show the status bar for my app. Which means, based on the topics that I read in the forum, that in my case the “n” button will behave as a back button. Does anyone has a solution/a sample code that works in this case? I have seen the code below which say to “Do stuff”, I am not sure what “stuff to do” so my app will not get rejected. (can I go to the main menu of my app when the “n” or back button in this case is pressed?) Again I’ve seen pretty much all the topic on this and I haven’t seen a clear solution. Any help would be appreciated. Thanks…
[code]
// Set up a listener for the NOOK button
local function onNookPress( event )
local phase = event.phase
local keyName = event.keyName
if keyName == “back” then
– Do stuff ??? --I am not sure what stuff to do here???
–can i do this here to go back to the main menu when the “n” button is pressed??
–director:changeScene( “menu”, “flip” )
– Keep the return true line here because
– you want to successfully return
return true
end
end
– Attach the listener to the Runtime object
Runtime:addEventListener( “key”, onNookPress)[/code]
[import]uid: 104131 topic_id: 36004 reply_id: 336004[/import]