how can i disable bottom bar of tab - android

I want to disable bottom bar of android tab. I don't want it to be disabled permanently (using sure lock). I just want it to be disabled for an app because I have buttons in my app which will take the user back and home. I tried this but no use.
getWindow().getDecorView()
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

There is no straightforward way to do that.
We have developed a restaurant e-menu app which required us to hide the action-bar completely. We started with surelock but later switched to our own solution. I can not disclose it completely here but can give you some hints.
Android action-bar is provided by a system process. Terminating it will remove the action-bar. Android is actually a Linux flavor. So you can write a simple Linux program in C and send a KILL signal to action-bar process. Your program should then listen on a port and when your activity (or application) exit, it should write to that port. Your background program should then relaunch action-bar process or provide an alternative for that.
You will need root access
You need to compile for ARM

Related

What is significance of systemui APK in android?

Sorry for very basic question but could not find the exact answer for it.
Using one application called AppXplore I am able to see one application systemui.apk (com.android.systemui) on my Nexus5. I want to know what is the use of this APK? What does this apk actually do?
Thanks in advance!
SystemUI is the application that controls all the window decor you see on your device. It is a core application running as part of the system framework. The following items are handled/drawn by SystemUI:
Top status bar
Notification window shade (and the notifications inside)
Bottom software navigation buttons (HOME, BACK, RECENTS), if the device has them
System-level dialogs (e.g. USB Connection Permission or Power Off)
The file has a lot of icons for customizability. You can edit this (through some app or coding ,not sure though) to change the look and feel of your mobile. How to edit this can be found on http://forum.xda-developers.com/showthread.php?t=2203166.
Cheers

How to block an app from launching in android at system level?

I want to know the exact method which invokes/starts all the apps. I basically want to block a certain set of apps using xposed module. Its ok if the app icon is visible but the app should not be launched after clicking on it. To be precise nothing should happen when the user clicks on the app icon.
So I want to know where the source code which invokes the apps.
PS : I would also like to know if there is any way to hide the icon of the app as well.
Make your own launcher app and replace it with the ones running on mobile phones.
You can check the sources of Laucher and Laucher2 currently running on Android system.

Can an Android app interact with another app?

I want to be able to tap the statusbar and the contents in the displayed app to be scrolled up to the top.
Is it technically possible that an app intercept my tap and send the appropriate command to the active app? I have noticed for example that AntTek quick settings shows a drop-down window when swiping down from statusbar. While using the app I did also notice that even by just tapping the statusbar (before beginning to move the finger down), the app seems to already interact with the touch as it dims the screen brightness in preparation to display it's "window" (sorry I use the MS Windows term), so clearly a statusbar tap CAN be sensed by an app.
Starting from this, I wonder if such an app could then send a message to the active program telling it to scroll up.
Is that possible? And if yes, the message must be customized to a particular app (let's say the browser as the most important) or is it standardized so the apps speak the same language between themselves?
I am not a programmer so answers with codesamples might be less helpful than a plain english explanation. Finding out that is possible would lead rather to pursuing a programmer to implement the idea rather than starting to develop it myself.
Thanks :-)
There is an XPosed-module which seems to do exactly what you want.
To use XPosed-modules, you'll need to root your phone and install the XPosed-framework.
The XPosed-module is called "Statusbar Scroll to Top" and its repository can be found here:
http://repo.xposed.info/module/com.mohammadag.statusbarscrolltotop
This will work for almost all app-lists, but for example won't work for browser-content.
If you want to scroll to the top of the page in a browser, then you'll probably do best to get a browser which can do that on its own. (For example Habit Browser has it built-in and respective plugins are available for Firefox.)
Yes it is possible. HiroMacro and Frep can do this, but it requires root. https://play.google.com/store/apps/details?id=com.prohiro.macro&hl=en
(how do they simulate mouse and keyboard interactions on other applications? i have no clue :/ anyone?)
Is it technically possible that an app intercept my tap and send the appropriate command to the active app?
No. One app cannot send fake input to another app, for security reasons.
An android app comprises of several activities. Each activity display a GUI that allows the user to perform a specific task. To take the user from one activity to another, app must use an Intent to define our app’s intent to do something.
An intent can be explicit in order to start a specific component (a specific Activity instance) or implicit in order to start any component that can handle the intended action.
Interacting one app to other app in android
google docs link

how to permanently override android soft keys behaviour and display through

I am relatively new to android and want to create an application that permanently overrides androids basic softkey behaviour and view (for devices with soft keys).
Some functionalities I want to implement are changing the size of the softkeys window at the bottom, change its images, and possibly change its functionality.
For example, the user can set the size to of the softkey to be "large", "medium" or "small". And I can change the functionality of the back button to open say a particular application instead of going "back".
I'm basically looking for a high level answer as to how to do this, a basic direction of what I should read/study in order to be able to accomplish this. I realise this may require root access.
Please note that I want this behaviour to change not only in my application but I want the effect to exist on all applications. If this requires the application to be running atleast at the backend, that is fine.
After doing some decent amount of search, it seems I will have to make changes in the systemUI.apk, or possibly get its source code and modify it. Is this correct?
Thanks in advance.
I don't think even root is going to be enough for the type of changes you are describing. You're going to need to edit the Android source code and build your own system image.
Well you can't override system resources because they are part of the system image.
What you are looking for is called Home Application which can be developed like any other android app no need for root , you can find an example for it in your sdk samples.
Home Sample Application.
your app would be responsible to have UI components to send the user to all of the phone functionalities which includes:
Place for wegits
Place for apps listing (menue)
Access telephony functionality (call, phone history ...)
Access settings.

Android Apps: Exit vs Minimize

Is there an Android standard or coding convention / best practice that says whether or not an app should Exit (not running in background) or minimize (running in background) when the user "backs-out" of an app?
For example, you are on the home page of an app. What is the best-practice for handling the back press?
The obvious answer is to let android handle it's own back button press, which in turn exits the app. But is it okay to override and minimize?
Maybe this will help
"App follows Android Design guidelines and uses common UI patterns and icons:
App does not redefine the expected function of a system icon (such as the Back button)".
Android Core Standard Policies
That depends on the kind of application you are making in my opinion.
If for example you have an application that needs to save something to a database or whatever when the user clicks the back button, I would agree you just minimize the app. But even then, after the app has done saving, it should exit.
But if possible I would suggest you exit the application, this will also let the phone free up memory/CPU which can be used by other applications etc. It will also save battery.
And of course, this is the expected behaviour for an Android user: If you go back, you close the application. You don't want to confuse your users ;-)

Categories

Resources