Does anyone know how I should go about disabling all the phones notifications in code from within my app? I've been Googling for a bit but haven't really found anything related to what I want to do. I would like to be able to change the Android settings(like ringer volume or vibrate settings.) Any help would be greatly appreciated.
Here is some code that does just that:
https://code.google.com/r/sergeymishkovskiy-timeriffic/source/browse/#hg%2FTimerifficBase%2Fsrc%2Fcom%2Frdrrlabs%2Ftimeriffic%2Fapp
Related
I would like to create/update the FDN list programmatically. Any idea where this journey should begin?
Maybe somebody before me had similar issue and can help me with this.
For any code examples which will push my work forward I will be very greatful.
I am adding the screenshot (android emulator API17) to make it clear what option I am asking about android API 17 - FDN options.
To get to this menu you need to tap Phone->"open Menu"->Settings->Fixed Dialing Numbers.
I successfully implemented FDN management. You need to know that turning on/off is impossible from code but list management is possible for 100 percent.
Please review my code : https://github.com/papcio28/lib-contacts/blob/master/contactmodule/src/main/java/pl/urban/android/lib/contactmodule/fdn/FdnProvider.java
I want to set a password for my application which it will require at the time of execution. I want that it should be like lock screen patterns, is it possible?
If yes please help me out to find some helpful material to design lock screen as I have absolutely no idea how to start with it. I've read touch event of Developer.android.com but don't how to proceed further.
This should help you:
https://code.google.com/p/android-lockpattern/source/browse/src/group/pals/android/lib/ui/lockpattern/widget/LockPatternUtils.java?r=7470bc287cba61198430e3d8aff32196bb5824a0
Please, give an information whether it works or not. :)
I want to develop an android application that will be an alternative lockscreen.
I searched a lot and i couldn't found an explanation about how to make an app to work like a lockscreen. I understand that there is no official android API for lockscreens, but there must be way, because there are a lot of alternative lockscreens applications in the market.
Does someone know how could i make my app work like a lockscreen? Or if there is a basic code out there of lockscreen app that i can learn from it how to do it?
Thanks a lot (:
The way this is usually accomplished is creating an app that becomes the home application and then when the screen is turned on display your custom lockscreen and hide it when the user successfully unlocks it so they can use the device.
Make sure to take a look at the numerous questions on SO that are very similar to this.
Just like the "Invisible Lock Widget" and "Screen Off and Lock" I want to make my android app gotosleep.
Does anyone have any sample code or guide for doing this?
Thank you.
Realized that I can to this by using the same function in DeviceAdminSample.java
It is actually not using goToSleep function, it can be done in different way.
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html
I want to add an item in android builtin settings, for my application.
Can any body guide me through any tutorial or code that how can i acheive this?
Thanks a bunch in advance!
Something tells me this is not what you want... I don't know how to achieve it but I have a feeling if it is even possible, it wouldn't work on all devices. I'd stick to an in app settings menu like everything else. At least that way you know it's possible and will work on all devices.