How to remove native bar in kindle devices

I am using native camera in my app to capture photo on kindle devices. But I am not able to capture photo because a native bar of device and capture button of camera are overlapping each other. Due to overlapping of these two, capture button can’t be clicked. 

Can anyone tell me how to hide that bar otherwise give me an alternative to this.

Thank you.

Hi @tasneemshaikh1206,

There is no Corona API to remove the bottom navigation bar on Android. You would need to determine the height of the bottom navigation bar by looking at the device model name and then re-layout your app to fit. Also, you’d need to capture the bounds that is shown. Amazon documents the bottom bar’s height in pixels for all device models here here…

https://developer.amazon.com/public/solutions/devices/kindle-fire/specifications/03-ux-specifications

You can convert pixels to content coordinates in corona via the following…

[lua]

local bottomBarHeight = heightInPixels * display.contentScaleY

[/lua]

Note that the entire process isn’t much easier for native developers. This is why Amazon documents these bar heights.

Hope this helps,

Brent

Hi @tasneemshaikh1206,

There is no Corona API to remove the bottom navigation bar on Android. You would need to determine the height of the bottom navigation bar by looking at the device model name and then re-layout your app to fit. Also, you’d need to capture the bounds that is shown. Amazon documents the bottom bar’s height in pixels for all device models here here…

https://developer.amazon.com/public/solutions/devices/kindle-fire/specifications/03-ux-specifications

You can convert pixels to content coordinates in corona via the following…

[lua]

local bottomBarHeight = heightInPixels * display.contentScaleY

[/lua]

Note that the entire process isn’t much easier for native developers. This is why Amazon documents these bar heights.

Hope this helps,

Brent