yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] laehmic:
Thanks to a number of requests, I have added a feature list to OP:)
[Android Apps and Games] BBEgo:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Can you add a 'Beats' toggle for us HTC guys/gals?

Thanks,

BBEgo

Sent from my HTC DNA
[Android Apps and Games] laehmic:
I have HTC to but i'm not going to add that sorry
[Android Apps and Games] cyrusalmighty:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Out of curiousty, Did you build this as an app from scratch using sdk/jdk? Is that how you made this for all brands? I figure it would be so much harder to simply port it for all brands from a HTC apk. Either way great job on it.:)

Darklord Development Team
[Android Apps and Games] laehmic:
Yes i've build this from scratch using android-sdk and eclipse. Sense 5 has no quick settings out of the box so not much to port
[Android Apps and Games] MaartenXDA:
Hey, just one more question :)

When I try to create a simple intent to launch an app, using this code:

@Override
public boolean onOptionsItemSelected(MenuItem item) {

switch (item.getItemId()) {
case R.id.action_settings:

return true;
case R.id.test_options:
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.android.settings");
startActivity(LaunchIntent);
return true;
default:
return super.onOptionsItemSelected(item);
}
}

I get this error on the getPackageManager(): "Cannot make a static reference to the non-static method getPackageManager() from the type ContextWrapper"

So, what can I do?

And I've followed your advise, I'm learning a lot about java now, so thanks for the help :)
[Android Apps and Games] laehmic:
You should use this code for open Settings

Intent intent = new Intent( Settings.ACTION_SETTINGS );
startActivity(intent);
[Android Apps and Games] piratz:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Hye..

Why everytime i restart my phone, i must reactivate the notification shortcut..
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

I tried it myself and can confirm it, I'll see what I can do about that
[Android Apps and Games] -CALIBAN666-:
cool last one gives no more forceclose on galaxy y gingerbread 2.3.6,i make more tests and send report later. :good:
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Yes, works since 1.2 for galaxy y. I'll look into the text on switch not being black
[Android Apps and Games] milowke:
Thnx for this.

But i have a problem. I have downloaded the root one

But whebn i try to reboot or anything else, even the button screen off doesn't work for me

I get a FC when i click on one of the reboot / screen off buttons.

I have root on my phone, root app = superuser.
[Android Apps and Games] laehmic:
Have you tried installing as system app?
[Android Apps and Games] milowke:
How can I do this?
[Android Apps and Games] laehmic:
Uninstall current apk, put apk in system/app, change apk's permissions to rw-r-r, reboot.
[Android Apps and Games] lesscro:
no credits in your OP ?
[Android Apps and Games] milowke:
Thnx, I don't get a FC anymore except for the screen off isn't working, it still gives a FC

Recovery doesn't make my phone go in recovery mode, it just reboots the phone.

Reboot bootleader doesn't work aswell

Is there a way to fix this?
[Android Apps and Games] laehmic:
Screen off apparently doesn't work on some devices allthough the code i used is official supported by google. Is Hot reboot working?

Can you provide logcat of reboot recovery and bootloader? Please google how to do this. If you can't provide please use the No Power options version
[Android Apps and Games] laehmic:
Thanks for your efford, appreciate it:) I think you'll need to flash custom recovery and install busybox for getting it to work
[Android Apps and Games] milowke:
I have installed busybox (I already have CWM) but it didn't helped me out :(
[Android Apps and Games] laehmic:
To be honest, i don't know what's going wrong, i did find some errors in your logcats but afaik no such errors are caused by my app:(

Only thing i can come up with is some sort of security implented by your manufacture, meaning this'll only work when i sign my app with own but same firmware as framework. could be wrong though:confused:

errors recovery logcat

E/su ( 3961): sudb - Opening database
E/su ( 3961): sudb - Database opened
E/su ( 3961): sudb - Database closed
E/RestStorages( 3419): using folders=/mnt/sdcard/Music/
E/audioplayer.Application( 3419): ACTION_SHUTDOWN
E/SimService( 4105): : onStartCommand(): FileNotFoundException: No such file or directory
E/MountService( 1989): Failed to get sd card path, java.io.FileNotFoundException: No such storage volume

errors hot reboot logcat

E/su ( 4130): sudb - Opening database
E/su ( 4130): sudb - Database opened
E/su ( 4130): sudb - Database closed
E/installd( 1475): eof
E/installd( 1475): failed to read size
E/InputQueue-JNI( 2134): channel '4271b170 com.android.systemui.ImageWallpaper (client)' ~ Publisher closed input channel or an error occurred. events=0x8
E/InputQueue-JNI( 2134): channel '426e67e8 RecentsPanel (client)' ~ Publisher closed input channel or an error occurred. events=0x8
E/InputQueue-JNI( 2134): channel '42b2a000 StatusBarExpanded (client)' ~ Publisher closed input channel or an error occurred. events=0x8
E/InputQueue-JNI( 2134): channel '42713ee0 StatusBar (client)' ~ Publisher closed input channel or an error occurred. events=0x8
E/InputQueue-JNI( 2134): channel '42b4e7f8 TrackingView (client)' ~ Publisher closed input channel or an error occurred. events=0x8
E/InputQueue-JNI( 2403): channel '42730158 com.anddoes.launcher/com.anddoes.launcher.Launcher (client)' ~ Publisher closed input channel or an error occurred.events=0x8
E/InputQueue-JNI( 3684): channel '42b55448 com.laehmic.quicksettings/com.laehmic.quicksettings.Main (client)' ~ Publisher closed input channel or an error occur red. events=0x8
[Android Apps and Games] milowke:
Well, thnx for trying :)

I'll use other reboot options than ;)

Further I like this one :)

Only 1 thing left, how does it come that the GPS and mobile data aren't working?
[Android Apps and Games] laehmic:
Google made these 2 secure settings, meaning special permissions are required for enabling/disabling. Explaination by Google (source):

"A permission that the system grants only if the requesting application is signed with the same certificate as the application that declared the permission. If the certificates match, the system automatically grants the permission without notifying the user or asking for the user's explicit approval"

There are workarounds though, GPS for example, can be toggled by exploiting a bug in the power manager widget but i prefer to use code only official supported by Google. These workarounds are security holls and Google will fix it sooner or later. Some prefer using it, i don't.
[Android Apps and Games] MaartenXDA:
Hey again, terribly sorry for spamming this thread with all my noob questions, but I just can't seem to find this:

I'm trying to get root access in my app, but using this:

String command[]={"su", "-c"};

when clicking a button doesn't work, it just FC's. What can I do?
[Android Apps and Games] laehmic:
And again you're using an example without understanding what exactly the content means.

Start learning the basic stuff! (again)

I'm not a bad guy so i'll give you the proper code but really man, you should not start developing apps the way you're doing right now

try { Process process = Runtime.getRuntime().exec(new String[]{ "su", "-c", "doyourthinghere"}); process.waitFor(); }
catch (Exception ex) { ex.printStackTrace(); }
[Android Apps and Games] MaartenXDA:
Really, a huge thanks. But I actually found that myself, that wasn't an example. And I've learned some of the basics, written some stuff in my app myself. So I don't just copy paste everything :)
[Android Apps and Games] laehmic:
Big difference between finding and understanding Point is, if you had learned the basics properly, you wouldn't had to ask the question you asked. Don't get me wrong i'm happy to help but if you don't learn the basics properly, you're going to face a lot more problems like this.
[Android Apps and Games] MaartenXDA:
Oh, okay I understand. Sorry for bothering you, I'll learn some more :)
[Android Apps and Games] saiz136:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Now testing! Thanks for this.

------------------------------------------

The Kraken GLU Cheats

Sent from Prada 3.0 CM10.1 JB4.2.2
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.6 - for ALL brands

Just out of curiosity, what kind of app you're building?

You're welcome:)
[Android Apps and Games] MaartenXDA:
"About SkyDragon", includes information about my SkyDragon ROM, appreciation section and personalization. I've included one mod for now in the personalization section, so my app can now switch the amount of panels in Rosie. For now it can only set them to 7 and 5.

Thanks for your help :)

And I just LOVE those HTC Ones in the OP :D
[Android Apps and Games] laehmic:
Ok cool:) I've no experience working with rosie so can't help you with that but have you tried using the Sense api's(source)? Never tried it myself but mayb it'll be usefull for you, assuming your app is for HTC only.

Haha me to, wish they were real:angel:
[Android Apps and Games] MaartenXDA:
Yeah I've tried but failed installing it. Don't want to work with that for now, but might add it later to theme my app sense 4/5 style.
[Android Apps and Games] laehmic:
Uploaded new version:)

changelog v1.7

- fixed on/off text not being black/ english on some devices

- fixed notification shortcut being gone when reopen app after reboot while switch still on

- added new option; Transparent mode for both default and dark theme
[Android Apps and Games] Michxda:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Awesome! Love the transparency
[Android Apps and Games] AllSeeyinEye:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Transparency is nice but useless in it's current form. You should consider a 50% transparent background, otherwise you can't read the toggles (unless you've got a single colored wallpaper and no widgets)

Sent from my GT-I9100
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

It's not ment to be usefull, just extra theme option. You can't read the toggles? No transparency is ever set to the toggles:rolleyes:. I've tried a lot different transparent levels and this looks best imo, either you like it or not:)
[Android Apps and Games] Michxda:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Assuming you mean the text being unreadable, it's really not that bad, if you don't like it just don't use it

Maybe you can add extra option for semi transparency? I like your work anyway:thumbup:
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

I'll see what I can do:)
[Android Apps and Games] COMSyndicateTeam:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Amazing but if there was a action to bring it up it would be better
[Android Apps and Games] PopaStefanx:
Good App, little question is possible for you to include beats audio on/off set??? thanks
[Android Apps and Games] laehmic:
What excactly are you suggesting?

I'm not going to add that sorry
[Android Apps and Games] MaartenXDA:
Is there a way you could add an option to set a gesture to launch the app?

Oh and one question: With the theme, do you just launch a new activity with the same layout, except for the colours?
[Android Apps and Games] laehmic:
You can use a gesture app for that, i'm not going to add that. No i change views within activity, no need for launching new one..
[Android Apps and Games] Namoi:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Hi,

Thanks for the app. It si very nice but i recon i have a bug here on sgs 2 using stock jb xwlsd rom rooted.

When clicking screen of the app force close. Gonna try to post a logcat.
[Android Apps and Games] PenguinxEnjoi:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

What if this app had themes, like Touch Wiz theme to make it look like SGS3, or Jelly Bean theme to make it look like GNex/Next or even iOS theme to make it look like iPhone? That'd be awesome, but probably won't happen will it?
[Android Apps and Games] saliharda:
Ynt: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Thanks good programs

Evo 3D GSM cihazımdan Tapatalk 2 ile gönderildi
[Android Apps and Games] Namoi:
Here is a logcat from the bug i reported two posts ago.
[Android Apps and Games] laehmic:
That's not going to happen, i'll consider different versions though, not sure yet.

Thanks,

E/AndroidRuntime(20571): FATAL EXCEPTION: main
E/AndroidRuntime(20571): java.lang.SecurityException: Neither user 10043 nor current process has android.permission.DEVICE_POWER.
E/AndroidRuntime(20571):	at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime(20571):	at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime(20571):	at android.os.IPowerManager$Stub$Proxy.goToSleep(IPowerManager.java:458)
E/AndroidRuntime(20571):	at android.os.PowerManager.goToSleep(PowerManager.java:494)
E/AndroidRuntime(20571):	at com.laehmic.quicksettings.Main$15.onClick(Main.java:1484)
E/AndroidRuntime(20571):	at android.view.View.performClick(View.java:4232)
E/AndroidRuntime(20571):	at android.view.View$PerformClick.run(View.java:17298)
E/AndroidRuntime(20571):	at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime(20571):	at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(20571):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(20571):	at android.app.ActivityThread.main(ActivityThread.java:4921)
E/AndroidRuntime(20571):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(20571):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(20571):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
E/AndroidRuntime(20571):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
E/AndroidRuntime(20571):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:106)
E/AndroidRuntime(20571):	at dalvik.system.NativeStart.main(Native Method)
E/android.os.Debug( 2599): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error

You can try install as system app, if stll fc it's not going to work for your device unless i create own firmware with system certificates and i'm not planning to do that sorry to say:(
[Android Apps and Games] Namoi:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

I just tried, it doesn't work.

I didn't reboot though. Will try tomorrow and hope :)
[Android Apps and Games] alansmathew:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Hey,

This quick settings is absolutely brilliant ! I I installed the latest version 1.7 but im sorry to say that after a reboot, the notification icon doesn't re-appear. I have to manually open the app and then disable and then re-enable notification icon. Any suggestions would be greatly appreciated

Thanks

Sent from my HTC Wildfire S powered by Jelly King v2.0
[Android Apps and Games] laehmic:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

I fixed that for sure, I've tried your scenario and works like should. Can you please try to clear apps data? After reboot you'll need to open app once from drawer for reacticate shortcut.
[Android Apps and Games] alansmathew:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

Clearing app data has done the trick ! It works fine now as mentioned in OP. Thank you very much.... its brilliant!

Suggestion: is it possible to make the icon appear automatically after reboot without actually opening the app from drawer ?

Sent from my HTC Wildfire S
[Android Apps and Games] laehmic:
I'm currently working on that, i've got it working for android 3 and lower but I'm still searching for a solution to make it work for all versions i do support. For now this is best i can do
[Android Apps and Games] nandong:
Superb job laehmic.
[Android Apps and Games] MaartenXDA:
Re: [APP][2.2+] - Sense 5 Quick settings v1.7 - for ALL brands

+1

Just wanted to thank you laehmic, I've finally finished my app and uploaded it with my ROM.

Couldn't have done it without you :)

Sent from my awesome fridge
[Android Apps and Games] laehmic:
Thanks

Well done:)
[Android Apps and Games] laehmic:
New version ready for download:)

changelog v1.8

- fixed haptic feedback bug when touching text/images for some devices

- added option Semi transparent mode

- added option to lock app in portrait mode

- added option to show/hide scrollbar

- added option to show/hide switches on/off text

- added show/hide function for hide optionals by touching image/text
[Android Apps and Games] greatdaneduke:
Re: [APP][2.2+] - Sense 5 Quick settings v1.8 - for ALL brands

Awesome app
[Android Apps and Games] l3oeff:
Re: [APP][2.2+] - Sense 5 Quick settings v1.8 - for ALL brands

Just one word comes up after playing with your app, wow! No bugs found at all, tested on android 4.1.1 Sense 4.1. Looking forward to future updates. Thank you for this:thumbup:
[Android Apps and Games] laehmic:
Thank you

Thanks, good to hear that:)
[Android Apps and Games] abderrezak:
are this work on other drivers like smg sl i9003
[Android Apps and Games] Dragonkind:
Uhh...How do you make your screenshot have the style of New HTC One?

Please teach me!!
[Android Apps and Games] atrix4g18:
Re: [APP][2.2+] ★ Sense 5 Quick settings v1.8 ★ All brands ★

Photoshop.

Layer for the phone.

Layer for screenshot.

Layer for light/screen reflection (transparent).

Go on YouTube and watch some Photoshop tutorials.

Just a guess.
[Android Apps and Games] PenguinxEnjoi:
Re: [APP][2.2+] ★ Sense 5 Quick settings v1.8 ★ All brands ★

There is an app for that, and is on xda, I'll edit this post when I figure out /remember what it is.

It's called screen maker.
[Android Apps and Games] jassi32:
please add Update option in app :) :) :)

i will still rate the app 5/5 ;)
[Android Apps and Games] laehmic:
No need for update option imo, thanks:)
[Android Apps and Games] Namoi:
Test it ;)

But on my i9100 some toggles doesn't work and the screen off make the app FC... pitty, but HTC and Samsung frameworks are not compatible.

Edit: so maybe the tittle thread should be tempered a little as it claim to be for all brands which is in fact not totally true ;)

Regards and keep the good work as the app is still usefull though.
[Android Apps and Games] laehmic:
This app is build following guidelines provided by Google, which supports all brands. If some brands change things to their liking i can't do much about that. What excactly is your reason to say this app isn't compatible with HTC and Samsung frameworks? I've got HTC and all works fine:confused:
[Android Apps and Games] greatdaneduke:
Samsung sg3 all ok.
[Android Apps and Games] :
Wow really looking great. Is it also working on a International HTC One X+? :angel:
[Android Apps and Games] Dragonkind:
But Screen Maker seems not to have the image of New HTC One...

I can just see One X+ and Droid DNA there...
[Android Apps and Games] PenguinxEnjoi:
It might be pro version of the app for HTC One.

---------- Post added at 09:04 PM ---------- Previous post was at 08:58 PM ----------

Lol, using Samsung right now and it works perfectly. I also have been using this app since like version 0.2, just look through towards beginning of thread if you wanna know, and it has always worked for me. The only toggle that doesn't work for me is the unknown sources toggle, but I'm not rooted so that is probably the problem. And besides that, the only the other thing that didn't work was the brightness slider, but it was fixed some time ago, so I never even needed to make a post about it. So idk why you say it no work with Samsung.
[Android Apps and Games] Chund3r:
Excellent app! This has surpassed every other quick settings app I've tried in functionality and design. The newest version has fixed my only complaint of the app not starting upon reboot.

The only thing I could suggest would be to add a flashlight quick toggle to turn the LED flash on and off. Besides that the app is perfect. I see myself using this on my devices for a very long time! Keep up the great work.

Side note, any plans to add the app to Google play? It seems ready for prime time. :)

Sent from my HTC One X+
[Android Apps and Games] basuraunak:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Dunno as i am using this build only and just a fc happns
[Android Apps and Games] rkmiks:
I m also getting force closes on galaxy y for version 0.4 beta. Never tried earlier versions.

But Thank you for this app. Hope it works for me soon.
[Android Apps and Games] laehmic:
please try this, download here

edit: if test 1 fc to, please test this version download here
[Android Apps and Games] basuraunak:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Will test and report asap:thumbup::thumbdown::thumbup::thumbup:

Link 1 ---- fc!!!

Link 2------fc!!!!....:rolleyes:

In bothways....system app or user it iz giving fc:(
[Android Apps and Games] rkmiks:
Both the versions in the new links are force closing. But they seem to start for sometime and then force close. While the version 0.4 did not open at all.
[Android Apps and Games] laehmic:
Ok thanks for testing so quick sorry for inconvenience. I will dig into it, mayb i've included some deprecated api's.

edit: new test version download here
[Android Apps and Games] Wasimk32:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Had tried beta 0.3 on HTC wildfire,it worked with froyo(sense),fc with gb and ics(aosp).

Beta 0.4 and all test apks are fcing on ics.
[Android Apps and Games] laehmic:
Thanks for your feedback. Add to todo list. Also i want to ask all of you to upload logcat of fc. It'll be lot easier for me and less test versions needed hopefully, thanks in advance :)
[Android Apps and Games] gunfromsako:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Oops...I'm slow 4.1.1 I alreay have HTC quick settings but I figured I would try it out.

Flowed from my Jewel using Tapatalk 2
[Android Apps and Games] gunfromsako:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Hate to double post but is anyone's else text appear grey?

Flowed from my Jewel using Tapatalk 2
[Android Apps and Games] laehmic:
Please test this; download
[Android Apps and Games] andikicker:
Hello

I can help you with the German translation if you want to bring it in several languages.
[Android Apps and Games] basuraunak:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Well i am srry to say that again the same a white screen with app name written on top comes...and then FC
[Android Apps and Games] gunfromsako:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Yep...:D

Flowed from my Jewel using Tapatalk 2
[Android Apps and Games] Gregor250385:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Great :thumbup:
[Android Apps and Games] laehmic:
Thanks appreciate it! I'll let you know when it's time

Ok thanks for testing, i really need to ask a logcat from you. I've tested app on emulator without any errors. Because app is showing up short, there is something going wrong when syncing all on/off states on initial start.

Great! glad it's fixed, wil include in v0.5 beta

Thanks :good:
[Android Apps and Games] NiCk.JaY:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Amazing, subscribed :)
[Android Apps and Games] basuraunak:
Re: [APP][2.2+][Beta] - Sense 5 Quick settings v0.4 - for ALL brands

Well i am always availabpe for testing jzt tell me:D