So here, I need two classes, broadcastReceiver( to receive sms) and Activity. But in java i can inherit only 2 classes. Since they are imported from android library, I am not getting how I can implement this. I think I cant use interfaces also.
Expand|Select|Wrap|Line Numbers
- import android.app.Activity;
- import android.content.BroadcastReceiver;
- public class SmsReceiver extends BroadcastReceiver
- {
- receive sms;
- if it satisfies some criteria,
- launch a new acivity....
- }
can anyone suggest me a way...?