0 Replies - 572 Views - Last Post: 27 May 2017 - 12:18 AM

#1 Student000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 21-July 16

Triggering BroadcastReceiver Object

Posted 27 May 2017 - 12:18 AM

I was wondering if it was possible to trigger a broadcast receiver object in an activity from a nonactivity class. Flow of execution will still run through the non activity class, though I want to trigger the Broadcast receiver object.

Activity:
protected void onCreate() {
  BroadcastReceiver = new Broadcast(){

            @Override
            public void onReceive(Context context, Intent intent) {
                super.onReceive(context, intent);

              // Want this to be triggered 

            }
        };
}


This post has been edited by Student000: 27 May 2017 - 12:20 AM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1