Hi Folks,
I do not know whats wrong in my code. here is the code snippet..

In the below code, I am broadcasting  the intent.

This is a class derived from Service.

private ContentObserver mMyFavesDbObserver = new ContentObserver(
new Handler()) {
@Override
 public boolean deliverSelfNotifications() {
return true;
}

@Override
public void onChange(boolean selfChange) {
                         Intent intent = new
Intent(HappeningLoop.UPDATE_ACTION);
intent.addCategory(Intent.CATEGORY_DEFAULT);
sendBroadcast(intent);
  }
 };


Here is the broadcast receiver::

public class DBReciever extends BroadcastReceiver{
 private long mActiveId;
private Context mContext;
 public DBReciever(Context context, long activeId) {
mActiveId = activeId;
 mContext = context;
}

@Override
 public void onReceive(Context context, Intent arg1) {
Log.v("Manjunatha", "Received result from Broadcast recvr");
 Intent intent = new Intent(Loop.Intents.ACTION_UPDATE_CHIP);
intent.setType(Loop.getMimeType(mContext.getPackageName()));
 intent.putExtra(Loop.Intents.sExtraActiveId, mActiveId);
intent.putExtra(Loop.Intents.sExtraPackageName, mContext.getPackageName());
 context.sendBroadcast(intent);
 }


How do i link both classes :( please help..

-- 
Regards,
Manjunatha

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to