Reputation: 19858
How do you set the time of the emulator from inside of DDMS? Is it possible?
Upvotes: 0
Views: 803
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
Reputation: 28162
Why not just use the emulator like a normal Android device and set the time from there?
Upvotes: 0