tags:

views:

37

answers:

1

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

A: 

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);
}
radek-k
It not going to other activity when i change the time zone