Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Eventhandling for dummies :)

    Developers
    1
    1
    785
    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 programming and i think the answer should be quite simple for some experienced programmers:
      I am able to connect to the button and detect events for single, double and hold events, so far so good..

      But now i want my MainActivity to get informed and do some stuff when the button is pressed. What is the easiest way to do that?

      Let's assume for simplicity my project consists of only these 2 classes:

      • MainActivity.java
      • ExampleBroadcastReceiver.java (kinda copy&paste from the example)

      Thanks in advance

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