Hi friends,
I am trying to implement time zone change in broadcast receiver but its not working .my requirment is if i change the time zone it will go to another activity using broad cast receiver can anybody give example
Thanks
Hi friends,
I am trying to implement time zone change in broadcast receiver but its not working .my requirment is if i change the time zone it will go to another activity using broad cast receiver can anybody give example
Thanks
In manifest:
<receiver android:name=".TimeZoneChangedReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.ACTION_TIMEZONE_CHANGED " />
</intent-filter>
</receiver>
In your TimeZoneChangedReceiver
class:
@Override
public void onReceive(final Context context, final Intent intent) {
Intent intent = new Intent(....);
context.startActivity(intent);
}