Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old March 11th, 2010, 01:36 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debug AppWidget

Hello,

I need to know how can we debug an AppWidget. It is easy to debug any code which has an activity that is launched every time we run the application. But AppWidget does not have an activity and thus is not launched from eclipse. It just gets synced on the device and then we can run this widget by clicking on its name in the widget menu on the emulator. I believe that after syncing over to the emulator there is no connection whatsoever between eclipse and emulator. Is there any other way which can help me debug appWidget?

Thanks
Deepak

dpak23in is offline  
Reply With Quote
Sponsors
Old March 14th, 2010, 08:41 PM   #2 (permalink)
New Member
 
Zero's Avatar
 
Join Date: Oct 2009
Posts: 11
 
Device(s):
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You debug it the same way as you would with an activity. Set breakpoint, start the debugger on the process and do something to which causes the code with breakpoints to run. E.g. put the breakpoint on the first line after onUpdate() and add your widget to the homescreen.
Zero is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppWidget refresh vittochan Application Development 0 November 24th, 2010 03:22 AM
How to get contact's photo for appwidget? intsurfer Application Development 0 October 31st, 2010 12:55 AM
How to get contact's photo in appwidget? intsurfer Introductions 2 October 31st, 2010 12:45 AM
App into AppWidget (need help) abun Application Development 3 May 26th, 2010 09:01 AM
Debug AppWidget dpak23in Application Requests 0 March 11th, 2010 01:50 AM



All times are GMT -5. The time now is 08:49 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.