I want to develop an app which user cant open after given days time or will pop up activity that time span is over .
I want to design an app. which user can use for 15 days after that user cant use its functionality.
For “normal” software a solution is to read the install date and add the time span. Then check on every start or resume the date. If the time is over show a dialog and finish app.
I know this is not really save solution if the customer knows it, so please don’t discuss about this. But is maybe a better solution than building two apps?
Related
This question might seem irrelevant but I really need help. I need to implement those floating animations that explain actions that a user can take in a particular activity. They are usually shown when an app is launched for the first time and the user can dismiss them to continue interacting with the app. I have provided 2 pictures showing what I am trying to achieve. I have searched all over the internet but what I keep getting are just gestures.shows user that they can scroll left or right!shows the user where notifications are ]1
You can do the whole stuff manually. Or use a prebuilt library called ShowcaseView.
You'll find details, code and guide here http://www.xda-developers.com/android/create-holo-themed-demo-overlays-with-showcaseview/
I'm creating an android application that gets the current time in a different country/time-zone. I'm making it as there aren't many other apps on the marketplace that do the same job.
I've got an digitalClock underneath on my app, how do I change the time on the clock - take on or off a number of hours? For example, I may want the clock to display the time in another country.
Please excuse the simple questions!
I'm building an app that will be bundled with an equipment. I want to block all access to Android settings, there is not physical button to go back, only touchscreen. So this won't help: startActivity(new Intent(android.provider.Settings.ACTION_DATE_SETTINGS));
I want to change time and date of the device through the Application. I researched a lot and every solution I've found to change time and date programatically in Android seems to be over complicated (putting the app inside system/app or something).
As I've come to know, having superuser access and declaring SET_TIME on AndroidManifest only doesn't help.
The application must display hh:mm dd/mm/yyyy
In my App settings, the user may set the date as being 13/01/2014 (dd-mm-yyyy), but let's say today is 10/01/2013. In my app I would do something like this today+offset (3 days). The same goes for the clock.
I was thinking in creating a thread that keeps track of the current time to update the text field with the current time (+offset defined by the user) every minute and another to update the date (the machine may work for a very long time), where I format it using the offset the user configured in the App. I don't like this solution, however I'm not sure if Android has another more efficient way to do this kind of task.
So the question: Is there a better way to do it other than using threads?
I was thinking in using a thread with postAtTime(), I guess it's more efficient than being inside a loop and checking if the time/date has changed from time to time.
I found out the answer I needed here: Setting system time of ROOTED phone
My Android device is rooted and using CrazyCoder solution worked. Although it will not work on Android emulator, but with rooted device.
I'm starting a project, which is a work out log on Android. I want the app to use a calender and when the user clicks on a the box of the date they want edited, they are able to add an exercise and how many reps and sets they completed. My question is do I have to create a calender from scratch or is there a way to use one built into Android?
I have used TimesSquare before. It should work really well for what you are trying to do.
I want to give permission to user, you have not select future time and date.
I want to make that is unable to pick data from the current time.How to how to hide plus sign if we add more time from the current time.
If Current time: May 8, 2013
+ + +
May 8 2013
- - -
Now I want to click + sign, then then it is not activable. So how to code this. please give some ideas.
I have a feeling you're asking multiple questions.
You want to make DatePicker a required input field
You want to make sure the user doesn't pick the initial default value, because this would imply that the user didn't even bother reading the form.
You want to make sure that the user inputs the date manually, instead of using the built-in buttons, because using buttons would make it too easy for the user to just click a button randomly a couple of times just to get rid of the form.
Am I correct?
If so, I'd suggest not even using DatePicker in the first place. There are other controls you can use to achieve the effect you're looking for.