Mac android emulator command line

broken image
broken image

So, I read the documentation and searched the web (ok Stackoverflow! I mean :) ) and found a simple command that let us set the time via command line. Setting time manually is also tedious work particularly the fact that you need to do it every time you launch your emulator. As Android TV emulator does not display the date on its main screen then you might not be aware of this problem. The problem is, my Android emulator always displays a time that belongs to a few days ago although 'Automatic Date & Time' option of the device has set to 'use network-provided time'.

broken image

Recently, I am working on an API and this API needs a Token that generates based on the current time of the Android device.