What i want to know is, is there any app in android which allows me to set a time of different time zone for a reminder. For example i need to get an alert at 2:00pm London time in my phone without changing my phone's time zone.
Related
For my app functionality, I need to have a correct time set on a device. For example, I use AlarmManager to do some action at 7:00 AM. It's a tablet with Wi-Fi connection. Network-provided time works well, time & date can be set automatically over Wi-Fi, but time zone not. The device may appear in different time zones. How to solve this problem? Do I need to ask the user to set the proper time zone on the first launch of the app or it can be synced another way?
I am developing an Android application and I am planning to release this build in “Open Beta” on the Google Play Store.
I want to implement the app security logic which can ensure that the beta build won't work after certain date dd/MM/YYYY.
Currently, I can think of two approaches for this logic:
Retrieve current date from the device (using Android code to retrieve system’s time)
Issue: User can change the device date to hack the security system
Use time server to check the current date
Issue: My application don’t need internet connection and hence it will be bad user experience if I am asking for internet connection at the start of the app
I have following questions:
What alternate approaches (other then checking dates) can be used to ensure that the app won’t work after date dd/MM/YYYY?
How can I detect that the user has changed device date manually?
Other approaches to find current date even if device is offline?
EDIT:
The beta build has all the premium features free and hence I don't want beta build to work after date dd/MM/YYYY.
NEW QUESTION:
I have implemented the code to check the real date using time server at the start of the application. What possible hacks can be done by users to access app after the date dd/MM/YYYY?
Thank you in advance.
Agreed you don't wish the device to be dependent on the internet. At some point however, the device will be online (A human will never leave his/her device offline since the installation of your app). At that point you check the time stamp and proceed from there. You could disable the app or perform any action. Many apps exhibit this behavior to run an action when and only when the net is connected.
Other than the net and device clock the only other final solution you have is to run a background timer from the moment the app is installed. Good luck
The new Permissions model includes "Internet" as default (you don't need to request it specifically anymore).
If you don't want to use internet you can use following idea. Get current timestamp when running application first time and save it preferences or in external storage. check current time stamp with saved timestamp every time user launches application. please check for negative values to prevent user setting previous dates.
You can check the date, and at the time that the date exceeds the deadline, you can save a variable in preferences, so that when you enter the application, even if they change the date, the application will detect that date been exceeded.
In an Android offline application , i have been stuck in to an issue that.
if user changes the system date of android tablet/device than user is able to make some fake entries past dates.
i have tried to restrict user up to one week by taking last sync time and current time i.e user can very date for one week from current system date but if system date changes than my scenario does not work for past days.
I am developing an app that should power off nad on the device (an Android TV) at specified days of week, at a certain hour. Alarms work on time intervals; how do I set an absolute date and time for a certain action? Is it possible?
How to change the time in Digital clock view by picking the time from TimePicker Dialog??
The DigitalClock widget only shows the system time. You cannot use it to display other times. Hence, there is no way to have it display a time chosen by a user through a TimePicker.
I think this question has somehow related to Set alarm activity in previous android releases.
I see that set Alarm in android 2.3.3 is what you ask? there is a digital clock above the entered alarm time by user, so when user set the alarm time, the digital clock changed identically to alarm, the digital time has not related to system time as showed.
I think this done by coding, not by digital clock.