Eventhandling for dummies



  • Hi,
    i am new to android development and i have no clue how to get my MainActivity notified when i pressed the button.

    I can connect to the button quite fine and i receive the events (single, double, hold) with the class ExampleBroadcastReceiver (kinda like in the Android example).

    What is the easiest way to notify my MainActivity so it can do some stuff?

    Thanks in advance


  • FlicTeam

    @meeeh-muuuh you can send an Intent to the MainActivity


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.