[ anebojsa @ 17.01.2012. 10:53 ] @
android u uspeo sam da aktiviram vibraciju na telefonu, ali mi je potrebno da aktiviram i alarm AlarmController.java http://developer.android.com/r.../apis/app/AlarmController.html napravio sam: OneShotAlarm.java RepeatingAlarm.java AlarmController.java nisam napravio alarm_controller.xml ovaj deo mi nije jasan jel moram kreirati neki xml pod nekim imenom tipa (alarm_controller.xml) gde ga smestiti sta da stoji u tom xml fajlu cemu sluzi /** * Example of scheduling one-shot and repeating alarms. See * {@link OneShotAlarm} for the code run when the one-shot alarm goes off, and * {@link RepeatingAlarm} for the code run when the repeating alarm goes off. * <h4>Demo</h4> App/Service/Alarm Controller <h4>Source files</h4> <table class="LinkTable"> <tr> <td class="LinkColumn">src/com.example.android.apis/app/AlarmController.java</td> <td class="DescrColumn">The activity that lets you schedule alarms</td> </tr> <tr> <td class="LinkColumn">src/com.example.android.apis/app/OneShotAlarm.java</td> <td class="DescrColumn">This is an intent receiver that executes when the one-shot alarm goes off</td> </tr> <tr> <td class="LinkColumn">src/com.example.android.apis/app/RepeatingAlarm.java</td> <td class="DescrColumn">This is an intent receiver that executes when the repeating alarm goes off</td> </tr> <tr> <td class="LinkColumn">/res/any/layout/alarm_controller.xml</td> <td class="DescrColumn">Defines contents of the screen</td> </tr> </table> */ |