Tyler
Tyler

Reputation: 19858

How to set the time on an emulator from inside DDMS?

How do you set the time of the emulator from inside of DDMS? Is it possible?

Upvotes: 0

Views: 803

Answers (2)

Kurtis Nusbaum
Kurtis Nusbaum

Reputation: 30825

I use this shell script to set the time on my emulator:

#!/bin/bash
adb shell date $(date --date="$1" +%s)

The script takes one argument, the date that you want to set the emulator too. For more information, checkout the date command.

Upvotes: 3

Warpzit
Warpzit

Reputation: 28162

Why not just use the emulator like a normal Android device and set the time from there?

Upvotes: 0

Related Questions