I am creating an application that needs two icons. (Is this possible?)
The main icon that is created by default, will launch the application. In this application, there is a "Enable/Disable" button (toggle button).
When this button is on enable, a 2nd icon (shortcut button to do another task) must be made visible on home screen.
And i want to code a onClickListener() on the new shortcut icon. i.e. When this new shortcut icon is clicked, without launching any activity, that particular action must be performed.
i.e. The app should not open but perform its assigned task.
Example: Activity A has a toggle button: if this button is enabled, a shortcut icon is created on homescreen. When this shortcut icon is clicked, the wallpaper of phone changes without any activity being launched.
How to change wallpaper randomly without opening any activity.
Any views about how this can be achieved?