Add icon to Android's Quick Settings - android

My question is similar to this one. I'm running Android 4.4 on my device, and want to add additional options to the quick settings. I noticed that turning on/off the Alarm Clock shows/hides a tile in the quick settings, like this:
The biggest difference in the two questions is I want to know what it would take to make it work, either having the device rooted, or flashing a custom app at install or what. I've been trying to browse the source code here, but so far I haven't seen anything that stands out to me.
Sorry about the picture size, I don't know if there's an option to scale them down...

Android N introduced Quick Settings API which allow application to add status icon in quick settings. Please check Android N preview document to learn more.

I'm pretty sure you need to be rooted. I have not come across anything that will let you add tiles under completely stock android. Depending on your phone, you might be able to root it without voiding the warranty explicitly, however it will be tricky. After which you can look at installing something xposed framework and then different xposed modules (I suggest gravity box as it lets you add most options to the quick settings). But again, it's all at your own risk for voiding your warranty or soft-bricking your phone. Good luck!

Related

Hide navigation bar on rooted android device

I have a custom rooted android tablet working on Android M version. We built a kiosk application and next step is removing navigation bar completely, while our application is working. Also, when administrator close our application, navigation bar should appear again.
Before asking this question, I researched on Internet and find a lot of people have this problem. However, answers to theirs question were generally, making application to work in full-screen mode or in immersive full-screen mode.
These answers didn't help me at all, because user still can fling on screen and navigation bar would show again. These solutions are probably the best that can be done with an unrooted device, but in my case I need a better solution and my device is rooted.
Also, I saw this answer link, but after using this command my desktop went black, and couldn't reboot android system again. Happily I have recovery USB so my device is working again. :)
I found another answer link, and like others, didn't help me because I need to reboot system after adding line of code (qemu.hw.mainkeys = 1). Also, solution that I looking for is fully dynamical and done by code.
I am really convinced that this isn't mission impossible, because we had old tablet (also rooted) with button in back, which can hide and show navigation bar without rebooting it.
Any help is appreciated.
I can't help you with your problem, but provide a little more information.
The company im working for is using devices in kiosk mode, but we have custom android devices from a hardware producer, which provides a custom HAL interface. We can set the kiosk mode via that interface.
My guess is it cant be done easily, if it was easy, we would have not gone that way. Hope it helps.

How can I remove the new do-nothing "settings" control from my Marmalade Android app on HTC One (Credo only?)?

I'm working on my first (C++/IwNUI) Marmalade app, which so far works fine, but on Monday one of my devices (an HTC One Android phone, Credo Mobile) had a system update, after which my app, and only my app, now shows what seems to be a "settings" control on top of my app, which can be moved around, but does nothing but clock taps to the app where it is. It's a grey circle with three dots in it, which appears immediately when my app starts to load. Another Android test machine (Samsung Galaxy) does not show this control on my app.
Has anyone else seen this? How might I get it not to appear?
I have asked on the Marmalade forums with no response, and searched here and on the web but I haven't seen any reference to it, so I assume it may be limited to some combination of Marmalade apps, HTC One, and/or Credo Mobile Android phones.
Update: This control appears (on this phone only) on all of the Marmalade example apps I have built too, including IwUI, IwNUI, and plain demos like IwHTTPExample.
Even though this is very specific, I wonder if anyone knows a programmatic way in Marmalade C++ for me to at least get such a settings control to hide or go away?
I found a way to make it go away: "Add android:targetSdkVersion="11" (or higher) to your element." in the settings file which in my Marmalade project is called AndroidManifest.xml.
It seems like this may be a bug where it thinks there is an "overflow" of a title/menu-bar which isn't even there in these apps. By targeting a later version, it uses a newer "holo" menu, which doesn't do this.
If someone has a better explanation, I'll wait to mark that as the accepted answer.
In case it may help future people confused by all this, here's how I found this. Jared's answer led me to study my Marmalade config files, and the Android developer site where I found some general somewhat relevant info about what this is, and to search some different terms on the Marmalade forums, which got me to a relevant question I had missed on the Marmalade community answer pages, which led me to this page which had the suggestion which has the desired effect.
I am guessing you created a new project. Are you seeing this "settings"?
This is automatically added in every new app. Check your res -> menu folder. You can remove the "fake" options menu if you like.
Samsung will show this menu if you hit the menu button on the bottom left of the device.
HTC devices will show the options menu in the ActionBar/ToolBar.

Detect "left handed mode" setting

I'm looking into these docs: TelephonyManager, Preference and others, but I cannot find anything useful related to Left handed layout.
As far as I know Android 2.3 had that setting. Right now I am unsure if it was deprecated or not. Is there a way to detect if "left handed mode" is set?
Left Handed Mode is possibly similar to "Force RTL Layout Direction" In "Developer Options".
There was never an Android standard setting added to the API for a 'left handed mode'. You may have seen a manufacturer specific change to Android, but I don't know of any recent Android device that has a similar feature.
Individual Android app developers may add the option to switch to a "left handed mode" that will alter the UI to be better formatted for users who hold phones and devices in there left hands. I am an active "Lefty rights" advocate in the app world and call-out developers who could easily better accommodate left handed people. As far as a handicap/accessibility setting there is no current setting on Android for that. There is actually a RTL layout setting in "Developer options" you can enable it through these instructions, and apps like Chrome and Google Maps use it. I would think some more research would need to be done to check for that seeing how it's a developer option and not an accessibility option. My guess would be it is similar to getting the device locale and adjusting. I'm not sure if you could find the developer options in resources though. (Noting for full disclosure, the last time I programmed android was a few months ago.)
I would buy a phone that had RTL/ Lefty Mode perfectly implemented though.
Hope this helps a little.
Have an awesome day, and be well!

Disable system/combo bar Android ICS with out rooting

I have searched high and low, all the while people telling me that, "no it is impossible to completely surpress the navigation/combo bar on an ICS tablet without rooting it.. and then i find there is an app on the market called Surelock that does exactly this.. Unfortunately i am building a launcher app myself so i can't use their launcher app, but the big question is HOW do they do it? anyone?
Whatever SureLock is doing is exploiting some security hole. Someday, I will take the time to find out what they are doing and will work to get the hole fixed.

Changing devices boot time logo of android phone

I want to change the logo of my phone.
How do i change the booting logo or my android phone? For example, the samsung logo that comes up during boot.
I believe the original question pertains to the SAMSUNG (or your manufacturer's) logo that pops up first thing when booting, not the boot animation that runs afterwards. The boot animation can be changed, but the initial logo(s, as there can be two or more) seems to be somewhat evasive.
On some phones it may be found by doing a search on logo.bin ... on other phones it may be named boot.img ... on others you won't find anything.
Some devices may have a file called param.ifs - mine does not. If you find it ... this is the second splash that pops up right after the initial manufacturer's logo. This can be modified, as well as the boot animation. Know what you're doing if you want to change them.
Short answer: no.
Slightly longer answer: An application has no business changing system-wide settings like the boot logo, so even if you can, you really really shouldn't.
Even longer answer: While it is technically not possible to change the boot logo/animation in ordinary usage of the phone, it is possible to do if you have a rooted phone and don't mind installing a custom ROM. Depending on a whole lot of factors, it might be doable with just root access. For details on how to do this, visit: http://forum.xda-developers.com/showthread.php?t=1745297.
Yes you can change boot logo on samsung is on directory mmt/.lfs/logo.jpg

Categories

Resources