Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Discussion > Android Applications

Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.



Reply
 
LinkBack Thread Tools
Old November 30th, 2010, 05:00 AM   #1 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 7
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default Programmatically remove widget

Hi,

I have a widget but when I have un-installed my app, the widget still exist in the home screen with "Problem loading widget".

How do I programmatically remove the widget? It seems that many widget on Android Market also have similar problem, but really hope to get this eye sore fixed.

YEN PEI.

yenpei is offline  
Reply With Quote
Sponsors
Old November 30th, 2010, 06:23 AM   #2 (permalink)
Member
 
mike114's Avatar
 
Join Date: Sep 2010
Location: Ft Worth, TX
Posts: 200
 
Device(s): HTC Thunderbolt
Thanks: 36
Thanked 28 Times in 22 Posts
Default

You should just be able to grab and drag it to the trash bin.
__________________
Obama/Biden 2012...Because some Americans still have jobs!! ~ Mike Church
mike114 is offline  
Reply With Quote
The Following User Says Thank You to mike114 For This Useful Post:
yenpei (November 30th, 2010)
Old November 30th, 2010, 06:24 AM   #3 (permalink)
Senior Member
 
amlothi's Avatar
 
Join Date: Jul 2010
Posts: 1,170
 
Device(s):
Thanks: 33
Thanked 189 Times in 149 Posts
Default

Your launcher still thinks the widget is there on the home screen, but the widget application doesn't exist.

Just long press on the broken widget and drag it to the trash. It's the same way you'd remove any widget from your screen (without uninstalling).
amlothi is offline  
Reply With Quote
The Following 2 Users Say Thank You to amlothi For This Useful Post:
Dino80 (February 27th, 2011), yenpei (November 30th, 2010)
Old November 30th, 2010, 07:54 AM   #4 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 7
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks. I know the manual step but this is not an elegant way to clean up the widget. The widget should uninstall itself upon app uninstallation.
yenpei is offline  
Reply With Quote
Old November 30th, 2010, 09:33 AM   #5 (permalink)
Senior Member
 
BookLover's Avatar
 
Join Date: Oct 2010
Location: USA
Posts: 977
 
Device(s): Unrooted Samsung Captivate...and Proud of it!
Thanks: 58
Thanked 114 Times in 101 Posts
Default

Some folks don't use widgets, but rather shortcuts to the apps themselves for theming and to save battery and not all apps have widgets. Add to that that people use different launchers and you are asking devs to write a lot of extra code for little benefit as well as potentially introducing errors into their programs to account for all that variability. Unrealistic.
__________________
Must Reads: CapFAQ
Fav Apps: Evernote + Reqall * Folder Organizer * Smart Taskbar * Tasker + Minimalistic Text * Dropbox or Sugarsync for cloud storage
BookLover is offline  
Reply With Quote
Old November 30th, 2010, 10:23 AM   #6 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 7
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I'd think if this issue cannot be solved, it's an embarrassment to Android as this is such a visible bug, at least from developer's perspective.
yenpei is offline  
Reply With Quote
Old November 30th, 2010, 10:29 AM   #7 (permalink)
Senior Member
 
BookLover's Avatar
 
Join Date: Oct 2010
Location: USA
Posts: 977
 
Device(s): Unrooted Samsung Captivate...and Proud of it!
Thanks: 58
Thanked 114 Times in 101 Posts
Default

I completely disagree. Not an embarassment, but simple ROI. Would you pay for the feature? If yes, then contact the programmers and tell them you'd be willing to pay them to do this little thing for you.

You have to be practical. Unless you've done programming yourself, you probably won't understand.
BookLover is offline  
Reply With Quote
Old November 30th, 2010, 10:32 AM   #8 (permalink)
Member
 
lennyjew's Avatar
 
Join Date: Mar 2010
Location: Dublin, Ohio
Posts: 368
 
Device(s): Droid Eris GSB 2.8
Thanks: 9
Thanked 39 Times in 36 Posts
Default

You can't expect a dev to add in lines and lines of new code for every new home screen app that comes out to fix this when the solution is to drag and drop an inch or so.

I'll take a smaller file size in exchange for something that literally takes a second to remedy on my own.
lennyjew is offline  
Reply With Quote
Old December 1st, 2010, 12:52 AM   #9 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 7
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default

The idea is simple: "Uninstalling the app should also uninstall its associated widget".
I think this is common sense rather than any technical complication involved.
yenpei is offline  
Reply With Quote
Old December 1st, 2010, 06:52 AM   #10 (permalink)
Member
 
lennyjew's Avatar
 
Join Date: Mar 2010
Location: Dublin, Ohio
Posts: 368
 
Device(s): Droid Eris GSB 2.8
Thanks: 9
Thanked 39 Times in 36 Posts
Default

You still aren't getting it. Different people code differently. A widget might uninstall fine on one home app while it'll leave something like what you've seen on another. Now that may be an issue on the widget app side, or it might be an issue with the way the home app works.

The point is, you can't expect every widget and every home app dev to write it code to make it compatible with every other android app dev's coding. Especially when the fix takes so little time to deal with and is simple as hell to figure out.
lennyjew is offline  
Reply With Quote
The Following User Says Thank You to lennyjew For This Useful Post:
BookLover (December 1st, 2010)
Sponsors
Old December 1st, 2010, 08:36 AM   #11 (permalink)
Senior Member
 
Join Date: Dec 2009
Posts: 3,355
 
Device(s): Motorola Droid
Thanks: 0
Thanked 284 Times in 241 Posts
Default

Quote:
Originally Posted by yenpei View Post
The idea is simple: "Uninstalling the app should also uninstall its associated widget".
Everything seems simple when you aren't aware of the details involved...

The idea may be simple but ideas don't implement themselves. Ideas don't debug themselves or QA themselves.

Quote:
Originally Posted by yenpei View Post
I'd think if this issue cannot be solved, it's an embarrassment to Android as this is such a visible bug, at least from developer's perspective.
It's not any more embarrassing than Windows apps not deleting shortcuts that I create. Granted, a widget isn't a shortcut but the solution to the "embarrassment" is the same: drag it to the trash and be done with it.

As stated above, if it really bothers you then contact the developers of your apps rather than post here.
takeshi is offline  
Last edited by takeshi; December 1st, 2010 at 08:39 AM.
Reply With Quote
Old February 27th, 2011, 10:00 AM   #12 (permalink)
New Member
 
Join Date: Feb 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i'm a .net & android developer myself. i agree with your developer's point of view, but i also think yenpei has raised a valid request. valid, but maybe be worth to solve. however simply denying users requests by saying not practical or unrealistic makes developers look bad. who drives the requirements after all? yes if possible i'd like windows to prompt me to remove my shortcuts after uninstalling an application. if it's too difficult then it could be a framework problem, not mine as a user. if developers decide everything then monitors would still be 16-color i guess.
jasonkow is offline  
Reply With Quote
Old February 27th, 2011, 11:18 AM   #13 (permalink)
Senior Member
 
BookLover's Avatar
 
Join Date: Oct 2010
Location: USA
Posts: 977
 
Device(s): Unrooted Samsung Captivate...and Proud of it!
Thanks: 58
Thanked 114 Times in 101 Posts
Default

If I were to ask a developer to spend their time doing something for me, I would guarantee I would ask them to do something I have no clue how to do myself. Dragging an inactive widget to the trash, I can do easily. Sure people can ask, but I really don't see an ROI.
BookLover is offline  
Reply With Quote
The Following User Says Thank You to BookLover For This Useful Post:
alostpacket (February 27th, 2011)
Old February 27th, 2011, 11:55 AM   #14 (permalink)
Over Macho Grande?
 
alostpacket's Avatar
 
Join Date: Nov 2009
Location: NY
Posts: 7,090
 
Device(s): GalaxyNexus(LTE), NexusOne, OG Droid, GalaxyTab 10.1(LTE), Eris, Logitech Revue (fishtank)
Thanks: 4,164
Thanked 3,126 Times in 1,292 Posts
Default

Apps don't get notified when they are being uninstalled so from a technical/practical standpoint "cleaning up" isn't even possible.

This is something at the OS level, and I'm sure it will get done at some point. But as features go, I would guess this isn't high on the Android team's priority list.
alostpacket is offline  
Reply With Quote
Old February 28th, 2011, 07:19 AM   #15 (permalink)
Member
 
Join Date: Apr 2010
Posts: 344
 
Device(s):
Thanks: 6
Thanked 25 Times in 24 Posts
Default

Quote:
This is something at the OS level, and I'm sure it will get done at some point. But as features go, I would guess this isn't high on the Android team's priority list.
I believe if there are enough developers asking for it, Google will consider add new API to their SDK in their next release.

Just tell Google end users want it and we developers want to implement provided they expose API for us :P
sohguanh is offline  
Reply With Quote
Old February 28th, 2011, 07:02 PM   #16 (permalink)
Member
 
Join Date: May 2010
Posts: 351
 
Device(s):
Thanks: 12
Thanked 39 Times in 32 Posts
Default

Quote:
Originally Posted by yenpei View Post
The idea is simple: "Uninstalling the app should also uninstall its associated widget".
I think this is common sense.
I agree with this, but..........

Quote:
Originally Posted by lennyjew View Post
You can't expect a dev to add in lines and lines of new code for every new home screen app that comes out to fix this when the solution is to drag and drop an inch or so.

I'll take a smaller file size in exchange for something that literally takes a second to remedy on my own.
I also agree with this. It's really not that big a deal.
wubbie075 is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Discussion > Android Applications 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
News widget/app remove old items caball88 Droid X - Support and Troubleshooting 5 March 9th, 2011 10:04 AM
Support How to remove Widget? barryyam Sony Ericsson Xperia X8 13 November 26th, 2010 05:09 AM
Cannot remove widget HTC Desire galvinter HTC Desire 4 July 10th, 2010 12:04 PM
How to remove Widget from one of my screens? Wildcat14 Android Lounge 1 March 16th, 2010 10:24 AM
cannot remove stocks widget from screen diogenes HTC Hero 2 March 9th, 2010 01:09 AM



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