I am stuck. When my application starts I want to check if an alarm is alive that I previously set. If not then I want to set it.

I referred to this solution. I am trying to match the intent like this:

Intent intent = new Intent();
        intent.setAction("com.vit.upload");
        PendingIntent pIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_NO_CREATE);

But it doesn't work. What else would work?

Edit
Report