-1

i've found these Toturials for an Alarmmanager: http://michael.theirwinfamily.net/articles/android/android-creating-alarm-alarmmanager

It's one that is not using Broadcast.

But it is not saying what I should put into my Manifest-File thus an Activity starts.

I've tried the following, but none of these work:

<receiver android:name="alarm.starter.AlarmReceiverActivity"></receiver>
<receiver android:name=".AlarmReceiverActivity"></receiver>
<receiver android:name="AlarmReceiverActivity"></receiver>

Please Help

user1508609
  • 71
  • 10

2 Answers2

1

This doesn't use any BroadcastReceiver, so you don't need to add any <receiver> tags to the manifest. The alarm just starts an Activity. You just need to declare your AlarmReceiverActivity in an <activity> tag. You don't need the intent.setAction() call either.

David Wasser
  • 93,459
  • 16
  • 209
  • 274
0

u need to add action string in manifest file,, Read this answer may be it will help you

Although the code u shared just now, shows that you are not starting any receiver you are using activity so add below lines in your manifest

<activity android:name=".AlarmReceiverActivity"/>
Community
  • 1
  • 1
AAnkit
  • 27,299
  • 12
  • 60
  • 71
  • May be this makes no changes, but you will need to add it, add ut and add your code in question, have u tried setting setAction in intent. – AAnkit Jul 08 '12 at 11:36
  • Ok, Here my Files: Sorry, i coul't work with the Code-Format-Tool here. [Pastebin][1] [1]: http://pastebin.com/zJTdy4fi – user1508609 Jul 08 '12 at 11:42
  • in your code, I dint see any receiver , you are calling an activity with the alarm, should actually add your alarm receieverActivity into activity tag. I am going to edit my answer follow it. – AAnkit Jul 08 '12 at 14:23