I’m building a small app that requieres the IntentReceiver.
Actually, I am a newb at Android development and am doing the switch after iOS development.
I have the following code:
package com.TheIntent;
import android.content.*; //I added this AFTER I got the error message
public class ReceiveSMS extends IntentReceiver {
}
But is giving me the error I put in the title. I’m following the code as it is written in the book I’m reading about Android development, and after googling for a while I found I have to include android.content.IntentReceiver. But like you can see, it’s not working.
I am working with the SDK 2.3.3.
Thanks for any help you may provide!
Read this thread – basically
IntentReceiverhas been removed (a long time ago), and replaced withBroadcastReceiver.(If you’re following a tutorial or book which refers to
IntentReceiver, it sounds like you may want to get a more recent one.)