Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Eventhandling for dummies

    Developers
    2
    2
    1172
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • meeeh.muuuh
      meeeh.muuuh last edited by

      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

      Emil 1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @meeeh.muuuh last edited by

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post