Please Help With Nook "n" button

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]

I believe what Barnes & Noble wants you to do there is have it go back to your main screen, more in line with the user going Back. After going through my game, I just saw that as a problem, so I just enabled the status bar for the Nook Color and Nook Tablet.

When the status bar is displayed on a Nook, when the N button is pressed, it suspends the app instead of going back. And that is more in line with what I wanted.

This is only a concern for the Nook Color and Nook Tablet, because as far as I can see, there is no way to hide the status bar in Android 3.0+ and the Nook HD/HD+ use Android 4.x. [import]uid: 17827 topic_id: 36004 reply_id: 143150[/import]

@thedog, Thanks for the help. My problem is when I show the status bar, it hide some of the contents in my game. I was hoping that there was a way to go back to the nook home screen when the status bar is hidden by pressing the “n” button. Do you know if I send the user back to the main menu (as shown in the code below) when the “n” button is pressed if that would be acceptable for B&N? Also how do you show the status bar for just Nook color and Nook tablet but hidden for all other Nook models? My game is compatible with all Nook models. I am stuck and not sure what to do next. Thanks again for the help.

[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

director:changeScene( “menu”, “flip” ) --send user back to main menu if status bar is hidden

return true
end
end
– Attach the listener to the Runtime object
Runtime:addEventListener( “key”, onNookPress)
[/code] [import]uid: 104131 topic_id: 36004 reply_id: 143177[/import]

I believe what Barnes & Noble wants you to do there is have it go back to your main screen, more in line with the user going Back. After going through my game, I just saw that as a problem, so I just enabled the status bar for the Nook Color and Nook Tablet.

When the status bar is displayed on a Nook, when the N button is pressed, it suspends the app instead of going back. And that is more in line with what I wanted.

This is only a concern for the Nook Color and Nook Tablet, because as far as I can see, there is no way to hide the status bar in Android 3.0+ and the Nook HD/HD+ use Android 4.x. [import]uid: 17827 topic_id: 36004 reply_id: 143150[/import]

@thedog, Thanks for the help. My problem is when I show the status bar, it hide some of the contents in my game. I was hoping that there was a way to go back to the nook home screen when the status bar is hidden by pressing the “n” button. Do you know if I send the user back to the main menu (as shown in the code below) when the “n” button is pressed if that would be acceptable for B&N? Also how do you show the status bar for just Nook color and Nook tablet but hidden for all other Nook models? My game is compatible with all Nook models. I am stuck and not sure what to do next. Thanks again for the help.

[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

director:changeScene( “menu”, “flip” ) --send user back to main menu if status bar is hidden

return true
end
end
– Attach the listener to the Runtime object
Runtime:addEventListener( “key”, onNookPress)
[/code] [import]uid: 104131 topic_id: 36004 reply_id: 143177[/import]

I believe what Barnes & Noble wants you to do there is have it go back to your main screen, more in line with the user going Back. After going through my game, I just saw that as a problem, so I just enabled the status bar for the Nook Color and Nook Tablet.

When the status bar is displayed on a Nook, when the N button is pressed, it suspends the app instead of going back. And that is more in line with what I wanted.

This is only a concern for the Nook Color and Nook Tablet, because as far as I can see, there is no way to hide the status bar in Android 3.0+ and the Nook HD/HD+ use Android 4.x. [import]uid: 17827 topic_id: 36004 reply_id: 143150[/import]

@thedog, Thanks for the help. My problem is when I show the status bar, it hide some of the contents in my game. I was hoping that there was a way to go back to the nook home screen when the status bar is hidden by pressing the “n” button. Do you know if I send the user back to the main menu (as shown in the code below) when the “n” button is pressed if that would be acceptable for B&N? Also how do you show the status bar for just Nook color and Nook tablet but hidden for all other Nook models? My game is compatible with all Nook models. I am stuck and not sure what to do next. Thanks again for the help.

[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

director:changeScene( “menu”, “flip” ) --send user back to main menu if status bar is hidden

return true
end
end
– Attach the listener to the Runtime object
Runtime:addEventListener( “key”, onNookPress)
[/code] [import]uid: 104131 topic_id: 36004 reply_id: 143177[/import]

I believe what Barnes & Noble wants you to do there is have it go back to your main screen, more in line with the user going Back. After going through my game, I just saw that as a problem, so I just enabled the status bar for the Nook Color and Nook Tablet.

When the status bar is displayed on a Nook, when the N button is pressed, it suspends the app instead of going back. And that is more in line with what I wanted.

This is only a concern for the Nook Color and Nook Tablet, because as far as I can see, there is no way to hide the status bar in Android 3.0+ and the Nook HD/HD+ use Android 4.x. [import]uid: 17827 topic_id: 36004 reply_id: 143150[/import]

@thedog, Thanks for the help. My problem is when I show the status bar, it hide some of the contents in my game. I was hoping that there was a way to go back to the nook home screen when the status bar is hidden by pressing the “n” button. Do you know if I send the user back to the main menu (as shown in the code below) when the “n” button is pressed if that would be acceptable for B&N? Also how do you show the status bar for just Nook color and Nook tablet but hidden for all other Nook models? My game is compatible with all Nook models. I am stuck and not sure what to do next. Thanks again for the help.

[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

director:changeScene( “menu”, “flip” ) --send user back to main menu if status bar is hidden

return true
end
end
– Attach the listener to the Runtime object
Runtime:addEventListener( “key”, onNookPress)
[/code] [import]uid: 104131 topic_id: 36004 reply_id: 143177[/import]