<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Android app: Sending connection status to Activity</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21815/android-app-sending-connection-status-to-activity</link><description>We have successfully implemented the Template app on Android. However, the architecture of the multiple services and layers is somewhat opaque. Three questions: 
 
 How does one send the Battery level to the MainActivity.java? 
 How does one send the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 May 2017 07:16:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21815/android-app-sending-connection-status-to-activity" /><item><title>RE: Android app: Sending connection status to Activity</title><link>https://devzone.nordicsemi.com/thread/85700?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 07:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80149033-aaf2-4f94-bece-99306ef8f5ec</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;To send an event to other activities, you should use the sendBroadcast(..) method.
To receive an event, you should use an instance of BroadcastReceiver.&lt;/p&gt;
&lt;p&gt;To get an overview of how BLE and works in android, I would recommend you to read the &lt;a href="https://developer.android.com/guide/topics/connectivity/bluetooth-le.html"&gt;Android &amp;quot;Bluetooth Low Energy&lt;/a&gt;&amp;quot; section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>