Hello.
I'm creating an AppWidget application. It has a button which launches
external activity.
Here is code:

            Intent clickintent = new Intent(Intent.ACTION_MAIN);
            clickintent.addCategory(Intent.CATEGORY_LAUNCHER);
            clickintent.setComponent(new
ComponentName("ru.yandex.yandexmaps",
                    "ru.yandex.yandexmaps.MapActivity"));
            clickintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            PendingIntent pendingIntentClick =
PendingIntent.getActivity(
                    context, 0, clickintent, 0);

            views.setOnClickPendingIntent(R.id.trafficLevel,
                    pendingIntentClick);


The question is: why this code working ONLY after reboot of
device(testing on HTC Legend Anroid 2.1) or Emulator(2.1, 2.2. On 1.5
i can't reproduce thath)?
Before reboot just nothing happens. In LogCat i see nothing on
pressing button - no errors, warnings, infos or anything.
After reboot all works fine.

Any ideas?

-- 
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