I am using below code to get time in `BroadcastReceiver` on call performed but I'm always getting the same value after making an outgoing call. Getting time with this code works well when used with `Activity` but it's throwing same value in BroadcastReceiver.

```
@Override
public void onReceive(Context context, Intent intent) {
    SimpleDateFormat s = new SimpleDateFormat("hhmmss");
    String time= s.format(new Date());  
    System.out.println(time);
}

```

### Receiver

```
<receiver android:name="com.pairdroid.Information.OutCallLogger" >
    <intent-filter>
        <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
    </intent-filter>
</receiver>

```