<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Eventhandling for dummies :)]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I am new to android programming and i think the answer should be quite simple for some experienced programmers:<br />
I am able to connect to the button and detect events for single, double and hold events, so far so good..</p>
<p dir="auto">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?</p>
<p dir="auto">Let's assume for simplicity my project consists of only these 2 classes:</p>
<ul>
<li>MainActivity.java</li>
<li>ExampleBroadcastReceiver.java (kinda copy&amp;paste from the example)</li>
</ul>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://community.flic.io/topic/17188/eventhandling-for-dummies</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 23:30:54 GMT</lastBuildDate><atom:link href="https://community.flic.io/topic/17188.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Oct 2017 14:18:56 GMT</pubDate><ttl>60</ttl></channel></rss>