Android Question Mqtt Widget

oymyakon

Member
Licensed User
Longtime User
Hi,
I am trying to make a widget that when a button is clicked it connects to an Mqtt server publishes and then disconnects. I have done what i need bur the android system keeps stuttering and saying the app keeps closing.
any help would be appreciated.
 

Attachments

  • widget code.txt
    1.3 KB · Views: 196

oymyakon

Member
Licensed User
Longtime User
Sorry, Perhaps i do not understand the widget. Does the main activity start every time you have a widget event? My widget does what is required sometimes but the button click event is not 100%. Paul.
 

Attachments

  • B4a Error.png
    B4a Error.png
    34.2 KB · Views: 174
  • widget code.txt
    1.3 KB · Views: 179
Upvote 0
Top