Hi

I'm trying to open the date/time settings in responds to a click event
in an app widget.
My code looks like this:

        Intent AlarmClockIntent = new Intent
(android.provider.Settings.ACTION_DATE_SETTINGS);
        AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER);

        PendingIntent pendingIntent = PendingIntent.getActivity(context,
0, AlarmClockIntent, 0);
        views.setOnClickPendingIntent(R.id.clockimage, pendingIntent);


Unfortunately it doesn't work. But I have no problems opening the
general settings with the almost identical code shown below:

        Intent AlarmClockIntent = new Intent
(android.provider.Settings.ACTION_SETTINGS);
        AlarmClockIntent.addCategory(Intent.CATEGORY_LAUNCHER);

        PendingIntent pendingIntent = PendingIntent.getActivity(context,
0, AlarmClockIntent, 0);
        views.setOnClickPendingIntent(R.id.clockimage, pendingIntent);

I would be happy if somebody could help me out and tell what i'm doing
wrong :-)
Thanks in advanced


Best Regards,
Martin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to