-2

I'm pretty new to Android, I do know some Java though.

I want to make a launcher that can create apps and delete them based on some conditions (on the time of day, for example). So in the morning, it shows the app on screen, and at night, it deletes it.

If the app files are already there, is this possible? How would I do this, please include some example code Thanks

onepiece
  • 3,279
  • 8
  • 44
  • 63

1 Answers1

0

Well provided that you only want to toggle display of applications, start with the source code from the second answer here. That should get you started - as for time of day, that's pretty trivial to get from the system. If you want to include widgets, though, like the answer I pointed you to mentions, that doesn't seem to beexposed with the current API (although the answer here seems to indicate that its possible, I just haven't tried it).

Good luck!

Community
  • 1
  • 1
JRaymond
  • 11,625
  • 5
  • 37
  • 40