Is there any way we can launch the android widget from our application immediately application installation or by showing button(eg:- 'Add Widget') within the application. So it like automatically add widget to our home screen using code.
Thanks Prakhs
I'm not sure I understand the question fully, but I'll give it a try:
There is no way to start an application automatically after it was installed.
There is the ACTION_PACKAGE_ADDED Broadcast Intent, but the application being installed doesn't receive this.
Android applications can not add App Widgets to the home screen. Applications can define App Widgets, but user has to add them manually to the home screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With