Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the Internal Android Simulator's Time

Tags:

android

time

I'm in the process of creating an android app that makes extensive use of the time & date functions in android, including many uses of AlarmManager. For testing though, it's a big pain to change windows' system clock just to test some functionality.

Is there a way to change the clock on he emulator so that it thinks it's on a different day?

like image 368
yydl Avatar asked Mar 03 '11 18:03

yydl


People also ask

How do I change the time on my Android emulator?

Open the normal settings (not the dev) and go to date & time. Uncheck "Automatic Date & time" and set the desired date below.

How do I set the time on my MEmu emulator?

Check your date and time settings To fix this issue, you need to go into your the Settings page from the home screen of MEmu. You should find “Date and Time” under “System”. Click this item and you are able to check whether your emulator is on the Automatic date and time provided by your network.

Why is Android emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How do I turn off my emulator?

Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.


1 Answers

Just do it as you would in a normal handset:

Settings -> Date & Time, then disable Automatic and set the Date and Time

like image 121
Cristian Avatar answered Sep 30 '22 07:09

Cristian