I too have been experimenting with widgets... I don't have an answer for number one yet. I currently have my widget set to update manually when clicking a button on the widget. I should be adding auto-update functionality soon though, so if this hasn't been answered yet and I come across a solution I will post it here.
As for number two though, I do have a workaround. I put all of my code that does the work in a service class and I have found that by doing that I can debug my widget. However, my app has two parts, a normal app and a widget. So when I run the debugger it launches my app. After exiting out of my app though, I can still step through the code in the service class when I do something with the widget. Hope that helps, Justin MagouyaWare Dev ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Sun, Feb 21, 2010 at 9:50 AM, Daniel <[email protected]> wrote: > 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]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- 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

