erik
erik

Reputation: 4948

removing or overriding certain items from action bar

Below is an image of the action bar on a Samsung Tab2 action bar running 4.0.3 android ICS

enter image description here

from left to right we have the "back, home, recent apps, screenshot, mini-app launcher, and system menu" buttons. Im certain i am not using the correct names for all these which is why i listed them from left to right along with the above image.

I know i can override the the functionality of "back" using:

@Override
    public void onBackPressed() {
          // Do something custom here
    } 

i also know that i can NOT override or remove the home button but i was wondering if i could remove or override the "recent apps", "take screen shot", and "mini app launcher"

would be nice if i could remove the back as well..

Upvotes: 0

Views: 2101

Answers (1)

323go
323go

Reputation: 14274

We just rolled out almost 100 GTab2s and have another 1,000 on order. This is something we've looked into extensively, especially in regards to screenshot and the minitab bloat. You can not remove the screenshot button, nor minitab, unless you root the device and modify the system image. (in short: you can't). You could "remove" the home button by implementing your own launcher and getting rid of touchwiz.

FWIW, Samsung's B2B folks have been very helpful in supporting our efforts, even at our relatively small quantities. If you were building, say, a kiosk app around the GTab2, you might be able to get them to supply you with a less bloated image.

static public final String[] pkgs_GT_P3113_LH2 = new String[] { "com.kobobooks.samsung.android", 
                                                                "com.netflix.mediaclient",
                                                                "com.nim.discovery",
                                                                "com.osp.app.signin",
                                                                "com.peel.app",
                                                                "com.samsung.mediahub",
                                                                "com.samsung.music",
                                                                "com.sec.android.app.gamehub",
                                                                "com.sec.android.app.minimode.res",
                                                                "com.sec.android.app.music",
                                                                "com.sec.android.app.readershub",
                                                                "com.sec.android.app.samsungapps",
                                                                "com.sec.android.app.sns3",
                                                                "com.sec.android.daemonapp.ap.yahoonews",
                                                                "com.sec.android.daemonapp.ap.yahoostock.stockclock",
                                                                "com.sec.android.widgetapp.ap.yahoonews",
                                                                "com.sec.android.widgetapp.at.yahoostock.stockclock",
                                                                "com.sec.android.widgetapp.minipaper",
                                                                "com.sec.chaton",
                                                                "com.sec.minimode.music",
                                                                "com.sec.pcw",
                                                                "com.tgrape.android.radar",
                                                                "com.zinio.samsung.android" };

Upvotes: 1

Related Questions