I need to get the current time for my android app. The time should be operator's time and not the local time set by the user.
TelephonyManager telephonyManager =((TelephonyManager)Context.getSystemService(Context.TELEPHONY_SERVICE));
String operatorName = telephonyManager.getNetworkOperatorName();
This is to get the operator's name programmatically. But how to get the operator's current time? If the user has changed the time manually, then the app will change it to operator's current time.
I did a google search too :
Unable to find a better one. If its already asked on stackoverflow, excuse and please provide the link.
EDIT:
I forgot to mention that it is an offline app where i am not getting the internet permission from the user.
Thanks.