This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to hide Widget from the task manager application  RSS feed

 
Sarah Raf
Ranch Hand
Posts: 35
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to hide my Widget application from the task manager. Is there any way to do so? when ever i kill the widget from the Advanced task manager and create another instance of it, all the data on both the widgets gets deleted. How can I avoid this?

Regards,
Sarah
 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I don't really think there is a need to hide your application.

Save all data into a preference file before closing and populate them back on app restart. Make use of onDestroy() of Activity.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!