Android Developers: Eliminate the Back-Bar in Your 10.2.1. App

Android Development

Editor’s note: below is a blog post from Justin Jasmann, Android Application Development Consultant. Follow him on Twitter at JustinJasmann.

Back-Bar Y U No Hide By Default

Are you an Android developer that’s transitioning your app to BlackBerry 10? Are you tired of that pesky back-bar showing up every time you open the app, reducing the available screen real estate and forcing your users to hide it? If so, we have a solution for you.

All new for Android apps in OS 10.2.1, is the ability to eliminate the back-bar entirely (on a per-app basis). Yes, you heard me right.

It’s quite simple actually. All that is required is the addition of a small configuration file during the repackaging process.

     android.cfg
<?xml version="1.0" encoding="utf-8"?>
<android>
  <config>
    <overridenavbar />
  </config>
</android>

When and where you should add this file is important, so let’s walk through it together.

  1. Convert your APK using blackberry-apkpackager.

Back-Bar Screen Shot_1

  1. Open the BAR file for editing using the utility of your choice.

Back-Bar Screen Shot_2

  1. Place the android.cfg file inside YourApp.bar/android.

Back-Bar Screen Shot_3

  1. Save your changes back.

Back-Bar Screen Shot_4

  1. Sign the BAR using blackberry-signer.

Back-Bar Screen Shot_5

  1. Deploy!

Back-Bar Screen Shot_6

  1. Voila!

Back-Bar Screen Shot_7

Remember that the additional configuration file will only take effect on operating systems 10.2.1 and greater.

About Donny Halliwell

Donny is a Senior Product Marketing Manager at BlackBerry and Former Editor-in-Chief for the Inside BlackBerry blogs. There's no disputing, #TeamBlackBerry is awesome. I'm pumped to have the opportunity to talk with you and bring you the latest and greatest from Inside BlackBerry every day. In my spare time, I can be found helping entrepreneurs and startup companies grow their business. I spend the rest, obsessing over the auto industry, or enjoying music. Follow me on Twitter or Google+

Join the conversation

Show comments Hide comments
+ -
  • http://www.szederblog.hu/?p=4113 Az Android fejlesztők elrejthetik a „vissza” gomb sávját BlackBerry OS 10.2.1 alatt « szederblog.hu | mobil verzió

    […] a dolog hogyanjára kíváncsi, az itt megtekintheti a technikai részleteket. Szintén érdeklődésre tarthat számot, hogy a BlackBerrytől remek összefoglaló készült az […]

  • http://blackberrydeveloper.com.br/categorias/androidjava/desenvolvedores-android-remova-a-back-bar-do-seu-app-no-blackberry-10-2-1/ Desenvolvedores Android: remova a “Back-bar” do seu app no BlackBerry 10.2.1 | BlackBerry Dev Groups Brasil
  • http://rapidmobile.biz/blackberry/android-developers-can-eliminate-the-back-bar-in-10-2-1-apps/ Android Developers can Eliminate the Back-Bar in 10.2.1 Apps | Rapid Mobile

    […] Via […]

  • http://www.berryreview.com/2013/12/13/android-developers-can-hide-back-bar-on-blackberry-os-10-2-1/ Android Developers Can Hide Back Bar on BlackBerry OS 10.2.1 - BerryReview - Mobile Edition

    […] you are interested in how its done check out the details here. Also of interest is BlackBerry posting a replay of the Android Runtime for BlackBerry 10 Live […]

blog comments powered by Disqus