I'm currently feeling my way in the android framework, and I have
amassed a few questions I can't find the answer to myself. I have
tried IRC, but either my questions are ridiculously stupid or noone
knows the answers...

1. Trying to understand widgets, I tried changing the update frequency
and hijacking the update method, but it doesn't seem like it's
updating at all. I started with the Wiktionary example widget and made
these changes (and these alone):
* In res/xml/widget_word.xml i changed the update frequency line to:
    android:updatePeriodMillis="5000"
* In WordWidget.java i added a class variable:
    public static Integer i = 0;
* In the buildUpdate method i added it to the output:
     i++;
     CharSequence errorMessage = (CharSequence)
(context.getText(R.string.widget_error) + i.toString());

It works fine, but only updates when i create new widget. What am i
doing wrong?



2. I can't get debugging to work in Eclipse with widgets. It says the
following:
[2010-02-21 17:39:54 - WiktionarySimple]No Launcher activity found!
[2010-02-21 17:39:54 - WiktionarySimple]The launch will only sync the
application package on the device!
I suspect it doesn't monitor the activity after that, and as such it
doesn't trigger on my breakpoints. Is there a workaround for this?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to