<?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 Application crash while enable notify</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7647/android-application-crash-while-enable-notify</link><description>I have an external temperature on my nRF51 DK. I would like to read the value of the temperature on my mobile device(Android). 
 I am able to read the temperature on the MCP. But when I try to read the temperature on my Android device it will crash the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2015 07:49:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7647/android-application-crash-while-enable-notify" /><item><title>RE: Android Application crash while enable notify</title><link>https://devzone.nordicsemi.com/thread/27255?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2015 07:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb716a84-d37d-4f20-8e20-e0617df39442</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Reading is not the same thing as notification. Reading means read, I&amp;#39;m sure you can read the value, I&amp;#39;m sure the MCP just reads the value. Notification means that value changes are sent out to the client (as long as you write the code to send the notifications yourself).&lt;/p&gt;
&lt;p&gt;I would expect the MCP just does a read, notes that the characteristic does not have notifications and so it doesn&amp;#39;t try to set up for notify. In your BTLE android code you are trying to notify something which isn&amp;#39;t set up for notification. That sounds like a perfectly reasonable reason for the app crashing, I assume (is that Java) it&amp;#39;s throwing an exception at you. I suspect there is some method on the descriptor in that app code which tells you whether notifications are available and if you check it, you&amp;#39;ll find they are not.&lt;/p&gt;
&lt;p&gt;Either do reads, not notifies, or add the cccd to the descriptor to make it notifyable (and then add the code to send out notifications).&lt;/p&gt;
&lt;p&gt;The heart rate monitor service demo code shows this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>