Change the time in android through code [duplicate] - android

This question already has answers here:
How to set mobile system time and date in android?
(6 answers)
Closed 8 years ago.
Well I searched quit a lot on the new, and I found no good answer for that, unless your phone is rooted.
I am pretty sure you can do this in bash codes, but I have no idea where even to read about that.
I want to make an app with 2 buttons.
1st button will change the date of my phone 1 day forword
2nd button will change the hour of my phone 1 hour backword.
I want that the button will change the clock in the settings of phone
thank you all:)

Impossible for non-system apps that don't have a special permission.
Check out this question

Related

How to access Android hardware by pressing volume key [duplicate]

This question already has answers here:
Listen to volume buttons in background service?
(14 answers)
Closed 5 years ago.
I am making an application and I want to make app in such a way that user directly open that by using volume key, suppose user click twice the volume+ or volume- buttom and the app will directly open without home screen or without any interuption.
I want to add this functionality using the code in Android Studio. If anyone know how to add this, please help...
What you are asking for is not App/Code nor Android Studio related but device related, If the Original Equipment Manufacturer will allow a device to have a shortcut button it could be possible to achieve that on those devices.
Cheers.

How to create a help screen like one which comes when we set up an Android Device for the very first time? [duplicate]

This question already has answers here:
Overlay image to make tutorial in Android app
(4 answers)
Closed 8 years ago.
I am developing an App for which I want to create a help screen like one which comes when we setup an Android Device for the very first time.
Something like these:
There are two libraries you can use to achieve this effect which are:
ShowcaseView
Robodemo
Try going through their samples and read about how to use them on their respective pages. If you still need any help, do let me know.

How i can get the screenshot of current page of an android application? [duplicate]

This question already has answers here:
How to programmatically take a screenshot on Android?
(26 answers)
Closed 8 years ago.
How i can get the screenshot of current page of an android application ?? PLease anyone help me for that. Thanks in Advance.
It depends on your device, but generally you can just press the Volume Down and Power buttons at the same time, hold them for a second, and your phone will take a screenshot.
It Depends on how you want to take screenshot
if you want to take screenshot from eclipse then..
Goto DDMS->Devices->Select your Device-> click on Camera(Screen Capture) icon on Right side -> save.
But if you want to take snapshot programmatic this answer could be useful to you..
How to programmatically take a screenshot in Android?

how to keep app active or restart when killed? [duplicate]

This question already has answers here:
How to prevent an android activity to get killed
(3 answers)
Closed 9 years ago.
I'm trying to create an app that sets an alarm if the screen is off for too long. This will be checked in the background every 5 minutes. Unfortunately android kills my app sometimes and I need to keep my app active in the background. What is the best way to do this?
I was also thinking about restarting every 5 minutes if the app is killed. Is this a better way to keep my app mostly active in the background? How to do this? Or is there a better solution for me?
Maybe restarting the way like Facebook does?
I would recommend having a look at Mark Murphy's WakefulIntentService.
I think i fixed it by using a simple service that does nothing except for an infiit loop of logging.

Android save screenshot [duplicate]

This question already has answers here:
How to programmatically take a screenshot on Android?
(26 answers)
Closed 10 years ago.
i trying to do an application to take screenshot for android tablet every 1 second and view the image in desktop application. i got a help to do it but it takes the screenshot for my app only . what i need is to take screenshot even the user minimize the application so in the desktop application it will keep tracking what the user is doing on the tablet.
appreciate your help.
Thanks.
You can check android-screenshot-library, which should work without a root access; however it still have some limitations
Also AndroSS is another option for Tegra-based Android phones

Categories

Resources