Reputation: 37
I am making an app which needs the time at which the alarm has been set on the alarm app of an Android phone, as well as the time that the alarm has been set for.
That is, if I set the alarm for 8.00 AM at 2.00 AM, then I want both 2.00 AM and 8.00 AM.
How do I get this data? I want to use the standard alarm app that comes on Android phones.
Upvotes: 0
Views: 218
Reputation: 75646
Basically you can't because alarm application is not part of the Android. It just ships with Android and this makes huge difference. And since many vendors customize shipped version of Android, application shipped varies and if you get two "Android devices" these may significantly vary in lists of available built-in applications (i.e. see stock Nexus vs something from HTC).
But if you still insist you need to dig in private data of particular application (like alarm app), then you still cannot do that unless device is rooted, as every application is sandboxed and by default it is not allowed to access other apps' data.
Upvotes: 1
Reputation: 1007228
How do I get this data?
Sorry, but there is nothing in the Android SDK for this.
I want to use the standard alarm app that comes on Android phones.
There is more than one such app. Device manufacturers can and do replace the AOSP alarm clock app with their own.
Upvotes: 0