更改内部Android模拟器的时间 [英] Changing the Internal Android Simulator's Time

查看:85
本文介绍了更改内部Android模拟器的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个充分利用时间&android中的date函数,包括AlarmManager的许多用途.不过,对于测试而言,仅更改Windows系统时钟以测试某些功能是一个很大的痛苦.

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?

推荐答案

就像在普通手机中那样做:

Just do it as you would in a normal handset:

设置->日期和时间;时间,然后禁用自动并设置日期和时间

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

这篇关于更改内部Android模拟器的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆