virtual keys edit - Java for Android App Development

I've seen some apps that change the basic virtual keys to others. I remenber an app changing the virtual back,home and recent app buttons , to only one camera button, and after exiting the app it's back to normal
How is that possible ?
i want to remove the recent apps button.

TakisBeskos said:
I've seen some apps that change the basic virtual keys to others. I remenber an app changing the virtual back,home and recent app buttons , to only one camera button, and after exiting the app it's back to normal
How is that possible ?
i want to remove the recent apps button.
Click to expand...
Click to collapse
I don't think that is possible without root... The only thing one could do is completely hide the navigation bar with immersive mode, and then perhaps draw a custom bar on the bottom of the screen which looks just like it. But I'm interested, can you remember which app exactly had that behaviour?

SimplicityApks said:
I don't think that is possible without root... The only thing one could do is completely hide the navigation bar with immersive mode, and then perhaps draw a custom bar on the bottom of the screen which looks just like it. But I'm interested, can you remember which app exactly had that behaviour?
Click to expand...
Click to collapse
i've seen many apps doing that, but i remenber only mini-lock ( can't give link because it is on blackmart )
immersive mode is only for >=kitkat , i might have problems with that...
i might have to take a look at android's lockscreen source code

TakisBeskos said:
i've seen many apps doing that, but i remenber only mini-lock ( can't give link because it is on blackmart )
immersive mode is only for >=kitkat , i might have problems with that...
i might have to take a look at android's lockscreen source code
Click to expand...
Click to collapse
mmhh yeah now that you say that, i think it might be possible on the lockscreen if your apps is registered as a device admin, though I didn't quite find it during my quick search...

SimplicityApks said:
mmhh yeah now that you say that, i think it might be possible on the lockscreen if your apps is registered as a device admin, though I didn't quite find it during my quick search...
Click to expand...
Click to collapse
that's what i understood too by using that app, but i didn't find any way to do it in my app , or any answer on stack overflow

TakisBeskos said:
that's what i understood too by using that app, but i didn't find any way to do it in my app , or any answer on stack overflow
Click to expand...
Click to collapse
Found this one here:
You can not hide it unless you have rooted the device. But of course there is a workaround which might not fit with your requirement but several well known apps in the market at the moment using this strategy to achieve this disable menu bar feature for their apps.
Grant admin privilege.
Set password & lock the device using device admin profile api
Then load what ever the UIs on top of the native lock screen. (Of course this will show background lock screen whenever a transition happens between activities. But if logic is organized well, then it will be smooth & less noticed by the user)
When need to enable back, reset password to "" using resetPassword("", 0) of device policy manager object.
Click to expand...
Click to collapse
You can set the password and lock the screen using the DevicePolicyManager. Don't know how you would "load your UIs on top of native lock screen" though...

SimplicityApks said:
Found this one here:
You can set the password and lock the screen using the DevicePolicyManager. Don't know how you would "load your UIs on top of native lock screen" though...
Click to expand...
Click to collapse
i just want to disable the navigation bar while in my app. hide navigation flag and immersive mode didn't work

TakisBeskos said:
i just want to disable the navigation bar while in my app. hide navigation flag and immersive mode didn't work
Click to expand...
Click to collapse
mmhhh and why is immersive not working for you? You have to keep in mind that the user needs the navigation bar to exit your app anytime...

SimplicityApks said:
mmhhh and why is immersive not working for you? You have to keep in mind that the user needs the navigation bar to exit your app anytime...
Click to expand...
Click to collapse
immersive is only for kitkat and newer , and i want for ics and newer versions of android.
i want to hide the navigation bar because i am making a lockscreen. you get out of the application by unlock

Related

[Q] Can i disable the soft keys??

I know GN can use "fullscreen n toggle V2.0" to disable it.
Are there any apps can do it for N4??many thx!
MilkChan said:
I know GN can use "fullscreen n toggle V2.0" to disable it.
Are there any apps can do it for N4??many thx!
Click to expand...
Click to collapse
I had a similar post about this, this week and got no responses. Hopefully someone will actually respond to this one. Not that I have my phone anyway its somewhere between here and the black hole at the center of the milky way.
MilkChan said:
I know GN can use "fullscreen n toggle V2.0" to disable it.
Are there any apps can do it for N4??many thx!
Click to expand...
Click to collapse
GMD gesture control in the Play Store
This app does it. I have it configured to hide the soft keys with a three finger scroll down from top of the screen right under the notification bar.
If you do this I also recommend setting something to close the app and another gesture to go back inside of the app.

[Q] Hide Screen Buttons

Hey, i just saw that the Huawei Ascend D2 has on-screen buttons that you can hide easy and pop it up again http://www.youtube.com/watch?v=UH4Zt9lP23c(it's from 0:55) and just wondering if anybody could make something like that for the nexus 4?
There are a few ways to do it i believe. If you have a root a few apps will let you do it. Also AOKP has options to change it, as far as without root I'm not sure as I didn't try before i rooted my device. One of the things I have set is using Gesture Control I made swiping gestures from the area where the buttons would have been instead of having the buttons. I think it looks a lot better and for me works just as well.
download a custom rom such as cm10.1 to get this feature.
AOKP CM10.1 and PA all support this in the power menu.
Yes i know about the extended desktop, and i use it all the time. But i were thinking about a button on the soft-keys and a gesture to enable and disable it.
Jbele said:
Yes i know about the extended desktop, and i use it all the time. But i were thinking about a button on the soft-keys and a gesture to enable and disable it.
Click to expand...
Click to collapse
pa has per app expand. meaning you define app you like to jump into this and that mode and they will. if they have a quit button your bars will come back automatically.
there are apps out there can can do that with gestures. three finger gesture or whatever - not sure if they can hide the navigationbar because that would need framework changes afaik. we're working on something like that actually, its not yet 100% ready though.
molesarecoming said:
pa has per app expand. meaning you define app you like to jump into this and that mode and they will. if they have a quit button your bars will come back automatically.
there are apps out there can can do that with gestures. three finger gesture or whatever - not sure if they can hide the navigationbar because that would need framework changes afaik. we're working on something like that actually, its not yet 100% ready though.
Click to expand...
Click to collapse
Ok nice, tnx
Edit: Where can i get it without pa?
Jbele said:
Ok nice, tnx
Edit: Where can i get it without pa?
Click to expand...
Click to collapse
i Guess he means parandroid
What's this .........
http://forum.xda-developers.com/showthread.php?t=2253770
Does this help you ?
Sent from my Nexus 4

[ solved ] Nova Launcher prime - double tap to sleep - how to?

as the title says - how to enable double tap to sleep (screen off) using gestures in Nova Launcher prime?
i know it has something to do with assigning an activity via Nova Launcher gestures, but i can't find any activity that relates to screen off or sleep...
any help is appreciated...
note:
i know how to do this using an extra app "Screen Off and Lock", but i just wanted to know is there a posibility to avoid any extra apps to achieve the same thing...
Download Turn Off Screen from play store and assign it to Double Tap on Nova launcher in Gesture Settings.
https://play.google.com/store/apps/details?id=com.cmcm.screenoff
Vlad Paul said:
Download Turn Off Screen from play store and assign it to Double Tap on Nova launcher in Gesture Settings.
Click to expand...
Click to collapse
i think you posted this in the same time i was writing the "note" part in my post
I think not. If i remember, it worked well without 3rd party app, but now it is "disabled". Anyway, here is another guide:
"The Nova Launcher option
Another app that functions very similarly to the way you’d use Apex Launcher is*Nova Launcher. The same as you did for the first method, you will only be able to use this one if you also installed Greenify on the device. Therefore, you should go to the Google Play store and look for these two tools and install them.
Whenever you’re ready, check the steps below:
Open Nova Launcher and go to its Settings.Click on Gestures and Buttons and scroll down to Gestures.Select Double Tap and wait for the Choose Action menu to load.Go to Shortcuts, and then click on Hibernate and Lock Screen.
You may have noticed before that selecting the right settings in the first application is going to automatically send you to the second app you need to use. In this case,*Greenify will open*a new discussion and ask you to authorize Nova to use your screen.
You should go under the Automator and click on Allow Greenfy, and then confirm this option by pressing Activate. You’re now good to go and can test if the display is working properly by double tapping to send it to sleep."
http://techpp.com/2015/03/13/android-double-tap-screen-wake-sleep-guide/
Sent from my LG-D802 using XDA Premium 4 mobile app
krija said:
I think not. If i remember, it worked well without 3rd party app, but now it is "disabled". Anyway, here is another guide
Click to expand...
Click to collapse
thanks, but i don't use greenify and this guide is more complicated than "nova + screen off&lock" option which i already use...
Easy, you don't need to use a 3rd party app. Just doubletap the status bar to sleep
You can do this in every app, whenever you want to sleep just double tap status bar
TheHaso said:
Easy, you don't need to use a 3rd party app. Just doubletap the status bar to sleep
You can do this in every app, whenever you want to sleep just double tap status bar
Click to expand...
Click to collapse
i know that but it's not confortable enough...
i even had double tap navbar to sleep (g3twb) which worked well until i started using 5 buttons navbar making it harder to hit the blank area...
It looks like you may need first of all nova launcher prime, after that , you may need greenify as well.Here is what i did and it works.
1 . Go to Nova settings>gestures and input>double tap
2 . swipe right to the shortcuts tab and then go down you may find "hibernate + lockscreen"
3 . Assign it and it works!
double tap to sleep is working for me.
hope this helps.
EvilKing009 said:
It looks like you may need first of all nova launcher prime, after that , you may need greenify as well.Here is what i did and it works.
1 . Go to Nova settings>gestures and input>double tap
2 . swipe right to the shortcuts tab and then go down you may find "hibernate + lockscreen"
3 . Assign it and it works!
double tap to sleep is working for me.
hope this helps.
Click to expand...
Click to collapse
thanks, but please read all the posts again before posting what i (we) already know and wrote
1. i already have nova prime (else - i won't be asking because gestures don't work with free version anyway)
2. i've said that i got it working with "screen off & lock" app
cheers
Screen turns off if knocked on or close to status bar when I do it.
But what is the problem with having another app installed? Its size is ridiculous and it solves your problem, and always you can hide if u dont want to see it.
fersago said:
But what is the problem with having another app installed? Its size is ridiculous and it solves your problem, and always you can hide if u dont want to see it.
Click to expand...
Click to collapse
not a problem... just wanted to know was there a way to do it without an extra app... nothing more
Hoy could use greenify to
i love when people post without reading...
Mate,
Variant: D802
ROM: @zg8 Unofficial temasek-14.51-20150708-082930
Launcher: Nova
im using Pre-Built sLim Action Screen Off for DT2S for my AOSP ROM
60nine said:
not a problem... just wanted to know was there a way to do it without an extra app... nothing more
Click to expand...
Click to collapse
Greenify is the only solution for you if your using Stock ROM
i don't plan to use aosp rom...
people - please read the posts before you suggest something already solved or written...
From the apps that I have Tasker and GravityBox can do screen off/sleep. And if you are using them already that doesn't count as an extra app, right?
Just realized this myself, one less app in my phone. I think I will go with tasker since I already run a lot of stuff with it.
MilanStojkovic said:
And if you are using them already that doesn't count as an extra app, right?
Click to expand...
Click to collapse
i don't use any of those apps
but it's nice to see extra suggestions coming in... it will surely help someone to pick a perfect app combo for this purpose...
60nine said:
i don't use any of those apps
but it's nice to see extra suggestions coming in... it will surely help someone to pick a perfect app combo for this purpose...
Click to expand...
Click to collapse
Oh man, you should try tasker. It's what puts SMART in smartphone. Was messing around today with it. I found an old buss ticket that can work as nfc tag and put it on my phone holder on bicycle. I have set it to trigger launching Strava app, turning on GPS, setting brightness to max and forcing landscape mode for that app. And when I exit app, BAM, it reverts everything back the way it was. It's like slide and click instead of multiple actions. Might be overly excited about it right now, and definitely off topic here, but had to mention it hehe. I hope you will find a way to use that gesture the way you want, everything is possible on android
MilanStojkovic said:
I hope you will find a way to use that gesture the way you want, everything is possible on android
Click to expand...
Click to collapse
if you knew how i use my device you'd be asking "why don't i use nokia 3310 instead?"
no gps, no bluetooth, no location of any kind, no gaming, half of google services blocked etc...
no vibers, no hangouts, no skypes, no syncs - some calls, few sms messages... (i mostly communicate through google chat and emails while on pc since most of my work depends on beeing on pc anyway)
i read articles, browse and listen to music 90% of the time...
call me old fashioned - but i still love to have some "human manual control" over things on my device

Is there a way to see recent apps and switch between them?

Is there a way to see recently launched apps and switch between them?
This function should be definitely included in default system. So useful!
Can't test it now but try it with long pressing the home button
Huberer said:
Can't test it now but try it with long pressing the home button
Click to expand...
Click to collapse
that goes to the twitch thingy unfortunately.
xd4d3v said:
that goes to the twitch thingy unfortunately.
Click to expand...
Click to collapse
Ok, didn't know. Thank you
I had the same idea but did not work lol.
I am not sure what you are looking for exactly, but the list of apps on the original launcher is always reorganized to show the most recently used apps first. Or are you using a different launcher?
Sent from my SM-N900V using XDA Free mobile app
The best way of doing this is with LMT Launcher using it's Pie feature. Install it, and set up an item as Activity -> System UI -> com.android.systemui.recent.RecentsActivity. This gives you the recent apps, which is normally non-accessible on the shield. You can then add a few others as you see fit. I've added the power menu for example, which gives you the full power off, reboot and sleep options. Not found that anywhere else. All works best with a mouse, so you're best using an alternative launcher like HALauncher. But I suspect most people are doing that anyway given how restricted and awful Leanback is.
It can be downloaded here.
this is like the third or fourth thread about this

How to tuneup notifications ?

Hi guys,
I really don't understand how work permanent notifications on this device.
I'm aware we can manage them for each app from notification panel, and from "Notification Menu".
- I can't prevent a specific app to put notifications on lockscreen without disabling "All Notifications" on lockscreen from "Notification Menu",
- I can't prevent a specific app to appear in status bar :cyclops:
I've got a OP5 and I can tuneup apps like I want without problem, but not with this device.
Do you have any piece of advice or special app to use to do what I want ?
Bye.
[Edit] : Well, it seems that to be able to hide a specific app from lockscreen, I have to put a PIN/schema or some sort of security to have the option to hide on lockscreen
When you get notification, long press on it and there would be options. You can select more options, and there's an option for lockscreen.
goorek said:
When you get notification, long press on it and there would be options. You can select more options, and there's an option for lockscreen.
Click to expand...
Click to collapse
Thanks, lockscreen option appears after I put a PIN code.
Last thing I have to find is how to prevent apps to put notification in statusbar.
The same way, long press notification and block all.
goorek said:
The same way, long press notification and block all.
Click to expand...
Click to collapse
No, I don't want to block all.
I want some apps to put notification in notification panel only, but not in statusbar.
I have "services" like Tasker, Viper4Android, Mi-Fit who put permanent notification in order to stay alive (I suppose), they don't bother me in notification panel, but I don't want to see them in status bar.
chrissss91 said:
No, I don't want to block all.
I want some apps to put notification in notification panel only, but not in statusbar.
I have "services" like Tasker, Viper4Android, Mi-Fit who put permanent notification in order to stay alive (I suppose), they don't bother me in notification panel, but I don't want to see them in status bar.
Click to expand...
Click to collapse
Enable system ui tuner, enable power notifications in there and then you can set level of each app separately with long tap on notification. Exactly what you are looking for.
_mysiak_ said:
Enable system ui tuner, enable power notifications in there and then you can set level of each app separately with long tap on notification. Exactly what you are looking for.
Click to expand...
Click to collapse
Many thanks, System UI Tuner was activated but I've not seen Notification option.
Last think I've to find is how to assign ''Menu Key'' to one of the hardware keys without having to install a third-party app (actually I have ButtonMapper) .
In Titaniumbackup I can't access ''Menu'' without ButtonMapper.
chrissss91 said:
Many thanks, System UI Tuner was activated but I've not seen Notification option.
Last think I've to find is how to assign ''Menu Key'' to one of the hardware keys without having to install a third-party app (actually I have ButtonMapper) .
In Titaniumbackup I can't access ''Menu'' without ButtonMapper.
Click to expand...
Click to collapse
Yeah, it's hidden a little bit
For the button remap - it might be possible to remap the HW buttons by system files modification, though probably not worth the effort. With Button Mapper you have effectively several additional fully customizable "buttons" (double tap + long tap)..

Categories

Resources