I\'m trying to develop an application which silently dismiss the USSD responses. I\'ve used the code from http://commandus.com/blog/?p=58 with minor changes. I\'ve created t
Have you declared your broadcast receiver in your manifest file?
add inside your manifest:
in BootReceiver.java :
public void onReceive(Context context, Intent intent) {
context.startService(new Intent(context,ExtendedNetworkService.class));
}
in ExtendedNetworkService.java :
public class ExtendedNetworkService extends Service {
IExtendedNetworkService.Stub binder = new IExtendedNetworkService.Stub() {
public void setMmiString(String number) throws RemoteException {}
public CharSequence getMmiRunningText() throws RemoteException {
return null;
}
public CharSequence getUserMessage(CharSequence text)
throws RemoteException {
Log.d(Constants.TAG, "Message : " + text);
Log.d(Constants.TAG, "getMmiRunningTest() : " + getMmiRunningText());
return null;
}
public void clearMmiString() throws RemoteException {
}
};
return false;
}
public void onCreate() {
Log.d(Constants.TAG, "ExtendedNetworkService Started..");
super.onCreate();
}
public IBinder onBind(Intent arg0) {
Log.d(Constants.TAG, "ExtendedNetworkService got binded...");
return binder;
}
}