I want to send a broadcast from a new thread is start.
This is what i tried :
new Thread(new Runnable() {
public void run() {
//some other code for timing.
// ..
// ..
Intent broadcastIntent = new Intent();
broadcastIntent.setAction(Intent.ACTION_ANSWER);
this.sendBroadcast(broadcastIntent);
}
}).start();
But ofcourse i need context..this won't work. How can i handle this.