Android notifications on defined time and date - android

I want my application to remind user to watch a tv-show weekly... Is it possible to make notification to popup every week in desired time?
Thanks in advance!

Yes. Setup your calender for a reminder on the day/time in questions, and then just set it up to remind weekly. its an option on there. it might be easier for you to set it up from the web version of google calender, but it is just as easy on your phone.

Related

Security of an Android application

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.

How to set notifications on selected date and time in Android

I already know how to create notifications . My problem is that i have to click a button for it to pop up in the status bar. What i want is that the notifications pop up based on user selected time and date. I have time picker and date picker in the layout. I want to use this method for like a reminder app. To remind the users of the tasks.
Do you know how? I tried to search some notes in Google. I couldn't find any. All of the Codes i found for the problem has this function -> notifications.setLatestEventInfo() and this function wont work. It wont recognize the function. So it doesn't help solve my problem.
I would appreciate it greatly if you could help me with this problem.
The thing you are missing is Alarm Manager. This class allows you to schedule some events, like notifcation. Below you have full documentation about alarm manager:
http://developer.android.com/reference/android/app/AlarmManager.html
And the example implementation:
http://www.e-nature.ch/tech/android-sdk-add-a-repeating-alarmmanager-to-the-autostart-displaying-messages-in-the-notification-bar/

Can MDM restrict user to change date time settings

Through MDM policy prevent user to change the date time settings? Can Device date and time should be controlled from server ?
MDM protocol/Configuration profiles doesn't have such functionality.
Potentially, you can find some private API's which can help you with that. However, it's time consuming (to find such a thing) and you can't release such things to App Store.
MDM does not support such functionality as Ram mentioned. In case you need to know if the user has changed time then following can help.
Date and time change listener in Android?
Please register the broad cast receiver in static way.

How to make notifications at specific date in android application?

I want to make android application that notify the user at specific dates without caring about time ? how can i do it? please ,can anyone help?

Android Digital Clock time change using TimePicker

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.

Categories

Resources