I am trying to make a widget that acts like a container for a group of apps. So when the widget is pressed it opens a view showing all the apps assigned to it. From here any of the apps can be started. This widget will be placed on the home screen. Is this achievable on android? If so, how? Please help!
Thanks
Related
I have a nicely working widget.
I have an idea to add an option for the users to launch any (previously installed) app from the widget by pressing the dedicated button. So I want users to be able to choose 1-2 apps from their installed apps in the widget configuration part and be able to launch them from the widget.
Is there any way to add this functionality without declaring this widget a launcher?
If yes, could I get any hints, maybe some tuts, please?
I really appreciate any help you can provide.
Adam
I have searched many results from GOOGLE, only find to do this is to use app widget. After I learned how to write a widget, but a new problem appeared. How can I add an app widget to home screen automatically? Why some third party app can do this? I just confused about it. Is anyone can help me to resolve the problem?
You can't add widgets programatically to home screen. But you can create a widget host yourself and let user add widgets to that.
Since Android does not directly have icon badges I would like to use app widget as a reminder.
The idea behind this is that if a user wants to remind her/himself to do a certain task within my app the app widget should show it, otherwise either the app widget is not on the screen (if that is possible at all) or the widget just shows by its nature that everything is OK.
Ideally I would like to have an app, (not a widget) that just shows a widget as a reminder.
Is this the "recommended" way to do this or do I just need to make a widget that changes its look and forget about the app?
Can I actually make an app widget appear and disappear from within an app?
Many thanks!
Can I actually make an app widget appear and disappear from within an app?
If by "disappear" you mean "draw nothing but take up space", sure. Use a RemoteViews that has transparent contents, then update the app widget with that RemoteViews.
Personally, I don't like the UX of this, and I would suggest that perhaps you allow the user to choose between "invisible" or "default" app widget contents when there is no reminder.
I have been searching around and learning about android widget programming. I am wondering about interaction in android widget. Is it possible for me to create a home screen widget that allow users to drag and drop other application icons to my widget? (behave like folder) If so, could you provide me some useful resources or examples of how to do it.
Thanks in advance.
Edited: I have found a widget called Semi Folder is similar to what I am looking for but this widget still not allow users to drag and drop to itself. It allows users to select and store applications via activity. Therefore, I still look for the solution of drag and drop to my widget.
I'm currently developing a simple android HomeScreen with just 1 page.
I would like to know how to enable my HomeScreen to run and display widgets like this free widget.
Thanks so much in advance!
The best way you can use it, just get sources of Launcher application and find how AppWidgetHost added to view hierarchy and how it is maintaining AppWidgetHostView instances.
Launcher sources you can get here:
Laucnher.git
The home screen widgets are added by users based on the free-space they have and where they want the widget to be placed in their home-screen. As a developer you can only provide a widget, but adding that to the home-screen is purely in the control of the user.