# Nav Back button and Android

**URL:** <https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [November 6, 2011, 6:30pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255 "2011-11-06T18:30:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave\_Pemberton](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dave_pemberton/32/317_2.png) [@Dave\_Pemberton](https://techcommunity.softwareag.com/u/Dave_Pemberton)\
**Post date:** [November 6, 2011, 6:30pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255/1 "2011-11-06T18:30:02Z")

</div>

Is there any know reason as to why when I add a Nav Back button onto my app, that it suddenly has issues with Y position of the UI components when I run this in Android?

E.g. it should look like this:

but in Android when I run it, it comes out like this… with every UI component positioned at Y=0.

If I comment out the folling code so the nav back button isn’t aded to the page, i.e. I remove this:

nUINavbuttonElement ne = new nUINavbuttonElement(NUIID\_FAILURE\_BACK\_BUTTON, “Back”, null);  
ne.setType(nUINavbuttonElement.TYPE\_BACK);  
page.add(ne);

Then it renders properly in the android version, i.e.

The downside then is that the hardware/emulator back button doesn’t work anymore and I’d have to add a button to get back which I didn’t really want to do.

Any clues as to what is causing this?

Kind regards  
Dave

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [November 7, 2011, 4:09pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255/2 "2011-11-07T16:09:39Z")

</div>

Hi Dave,

I don’t know if you’re doing it already, but can you ensure that the  
Back Navbutton is the last element added to the page - there’s an issue  
in the system right now about that. If that’s the case already, can you  
send us over some source for repro at our end.

Thanks,

Nick.

---

<div class="post-metadata">

**Author:** ![Dave\_Pemberton](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dave_pemberton/32/317_2.png) [@Dave\_Pemberton](https://techcommunity.softwareag.com/u/Dave_Pemberton)\
**Post date:** [November 7, 2011, 4:31pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255/3 "2011-11-07T16:31:25Z")

</div>

Thanks Nick,

It definitely wasn’t the last component added - I’ll give this a try and  
see if it resolves the issue!

Kind regards  
Dave

---

<div class="post-metadata">

**Author:** ![Dave\_Pemberton](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dave_pemberton/32/317_2.png) [@Dave\_Pemberton](https://techcommunity.softwareag.com/u/Dave_Pemberton)\
**Post date:** [November 7, 2011, 5:28pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255/4 "2011-11-07T17:28:30Z")

</div>

Thank you Nick.

It’s now the last component added and it’s working properly now in  
Android!  
Much appreciated.

That’s definitely one to remember!

Kind regards  
Dave

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/nav-back-button-and-android/100255/5 "2021-04-02T15:01:48Z")

</div>


