Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users
    1. Home
    2. meeeh.muuuh
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    meeeh.muuuh

    @meeeh.muuuh

    0
    Reputation
    383
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    meeeh.muuuh Unfollow Follow

    Latest posts made by meeeh.muuuh

    • 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

      posted in Developers
      meeeh.muuuh
      meeeh.muuuh
    • Eventhandling for dummies :)

      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

      posted in Developers
      meeeh.muuuh
      meeeh.muuuh