Android 4.4.4 and 5.0 power menu add flashlight toturial - Android Themes

Sometime you need use flashlight in a emergency, find a long time in the drawer, and also not find, it’s very inconvenient .
In fact, the official preset a code in the power menu, you can press the power button in a long time, in the power menu, you can find the switch.
Modify tutorial as follow:
Open system/customize/ACC/default.xml, find the follow code.
1. <item type="boolean" name="quicklaunch_flashlight">false</item>
Copy the code
Modify false to true, then can open

Related

reboot shortcut and remove the time on the notification bar

Is it possible if I want to create a shortcut for reboot by using better cut app? and also how do I remove the time field located on the notification bar?
Im not sure how/if Better cut can create a shortcut to reboot feature.
Depend on the rom you are using, hold down power key for 3 seconds and there might be reboot feature in there
If not you need to get Gscript
or
You can also buy a great programnamed: Root Booter
I don't think the time can be removed yet out of the bar.

[Q] Open camera with hardweare button

Is it possible to set hardware button (or combination of buttons) to lunch camera application? I would like to be able to take a picture without use of touch screen. I tried camera zoom FX in which you can set volume button for shutter. To lunch application I have used S-voice, but it is very unreliable and requires internet connection. So I’m looking for other ideas.
Try another apps and if not I think we need a new kernel with this feature
Sent from my GT-I8190 using Tapatalk 2
No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity
dariolob said:
No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity
Click to expand...
Click to collapse
Thank you for your answer. I'm not familiar with apktool, so I did some more search on the play store and I found an application Home2 Shortcut. With this app you can reassign double click of menu key to start any application. Now with double click of menu button I lunch the Camera zoom FX and with volume button I take a picture. Now I'm able to take a picture with my winter biking gloves on.

Need help about add power icon to notification bar

Hi all
Follow the guide from one guy about mod adding power icon to notification bar i did it and successful but i have some little problem need your help.
when i touch and hold the power icon the power menu option display then disappear and then display immediately again. what i want here is the power menu appear when i hold power icon and remain here.
And 1 question when i touch status bar only (not swipe down) the menu scroll down but the power icon not completely show, i want it scroll down more some pixel so only the power icon can display full. please see the first picture.
Here is the step :
1. decompile SystemUI.apk, open file ids.xml in dir "res/values/" , add this line at the end of file : "<item type="id" name="screen_lock_button">false</item>
2. Open file status_bar_expanded_header.xml in "res/layout " Find the line begin with code : <com.android.systemui.statusbar.policy.Clock
Add this code above previous line : <com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/screen_lock_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginTop="1.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />
3. Add a picture PNG named : ic_sysbar_lock.png to dir "drawable-xhdpi" then Recompile SystemUI.apk
Please help
Add picture and video about my mod.
http://youtu.be/MnElP9Gt_i8
NO expert guys out there are willing to help me.
there is a method to add power button in the up right corner
a transparent png covers on clock
or to add it in the softkey bar
Leo said:
there is a method to add power button in the up right corner
a transparent png covers on clock
or to add it in the softkey bar
Click to expand...
Click to collapse
you can use it
PowerButtonOnStatusBar
http://www.fshare.vn/file/IQ8VSLRI8F/
PowerButtonOnNaviBar
http://www.fshare.vn/file/AW54H2MA92/
thanks all

clicking button give +1 point

How can i make an button and if i press the button it gives my 1 point if i press it another time 2....... than 3 .....
and i want an counter howmuch points i have can someone send my codes? i would love that!
I find that if you search it you will learn it better then us doing the work for you but here's some pointers:
1)Create a button in the XML
2)Set an onClick attribute in the XML calling a Java method
3)In your Java class create the method you just called in your XML
4) create an integer outside of that method
5) in the method you created add 1 to the method.
Hope this helps

[Ask] Create or add volume keys on navigation bar ?

hello
I want to add volume buttons on navigation bar for my handy daughter.
for ex:
volume (-) on left
classic navbar buttons (on center)
volume (+) on right
(She have a Teclast T30 with Android 9)
I try custom navigation bar app but it have some issues (buttons disappearing when rotate)
I try systemui tuner but no navigation bar entries
So for now, i want to try with tasker but i'm a noob
Can somebody help me to create this profil ?
thx for all
Nobody to help me ?
Let me start by saying that if you have zero experience with Tasker, please help yourself by working through some beginner tutorials found in excess online.
You will need to decide what type of profile should trigger the task containing the following actions. Maybe when specific apps are launched (video, music, ...). Or maybe you want them displayed always which means an "on boot" event. Or something else
This is straightforward using the built in "settings -> custom setting" action. If the device is not rooted, you will need to give write secure settings permissions to tasker through ADB.
Reference the "Using Shell Commands" section (scroll down pretty far) of How to Add Left/Right Keyboard Cursors to the Nav Bar during Text Input post.
It's very similar except instead of using the keycodes for left and right cursor movement (21, 22), we're using the keycodes for volume up and volume down (24,25).
We are also using volume up/down icons instead of left/right. The link to the website to get the icons is on that same page, in the same section. The links to the pages containing the 64x64 icons I used are: Volume Up and Volume Down.
And most importantly, instead of using a run shell command action, we're taking advantage of the relatively new custom setting action. As described above, you don't need a rooted device for this as long as you give the permissions through ADB.
I created a folder under the Tasker folder called "NavIcons" to hold icons for tasks like this. You may need to try different icon sizes to find a size that suits your device.
There is a nice summary of keycodes here.
add volume +/- buttons
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: key(25:file:///storage/emulated/0/Tasker/NavIcons/volume-down-64.png),back;home;key(24:file:///storage/emulated/0/Tasker/NavIcons/volume-up-64.png)
Use Root: Off
Read Setting To:
remove volume +/- buttons (without recent button)
Code:
A1: Custom Setting [
Type: Secure
Name:sysui_nav_bar
Value: space,back;home;menu_ime
Use Root: Off
Read Setting To:
remove volume +/- buttons (with recent button)
Code:
A1: Custom Setting [
Type: Secure
Name: sysui_nav_bar
Value: space,back;home;recent,menu_ime
Use Root: Off
Read Setting To:
Thanks for all !!
I understood how to and it work !
I launch this task on event "home launcher" because on "on start" don't work
Many thx !!

Categories

Resources