<?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>Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/462/writing-to-a-characteristic-using-the-android-4-3-api</link><description>I am having a lot of trouble using the new 4.3 Android API. I am trying to develop an application for the Android that will communicate via BLE to a Nordic device. I have based my application on the example UART project provided by Nordic: 
 www.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Nov 2014 18:22:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/462/writing-to-a-characteristic-using-the-android-4-3-api" /><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2420?ContentTypeID=1</link><pubDate>Thu, 13 Nov 2014 18:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d82bc8c-4f37-4ec7-ac09-bfba563ecde3</guid><dc:creator>Akta</dc:creator><description>&lt;p&gt;Nam Pham, how do you know that Android does not support write long yet?  Does it support this in Lollipop?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2415?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2014 12:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e11344-d03b-47c9-ba7b-d7279a2c4775</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;@Nam So how to fragment? And on similar lines we should be able to send three packets of data together then? Pls refer to &lt;a href="https://devzone.nordicsemi.com/question/12416/android-sending-data-20-bytes-by-ble/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2419?ContentTypeID=1</link><pubDate>Tue, 10 Jun 2014 12:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae0e1a0-ffb2-4a7d-9b1e-29614a0a729b</guid><dc:creator>Ankit</dc:creator><description>&lt;p&gt;So how to fragment? And on similar lines we should be able to send three packets of data together then? Pls refer to &lt;a href="https://devzone.nordicsemi.com/question/12416/android-sending-data-20-bytes-by-ble/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2417?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 08:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:508faf43-fee9-4b27-bb38-71aa56f34203</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;thank Hung. your way is working fine on S3 (android 4.2) with SamSung BLE sdk. but on Nexus 4 (android 4.3), I sometimes get issues. on LogCat, I see data which is wrote successfully but my BLE accessories don&amp;#39;t receive anything. Please give me your advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2418?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 08:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc56b258-9fb7-4032-ae93-16edb3aed2ff</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;thank Hung. your way is working fine on S3 (android 4.2) with SamSung BLE sdk. but on Nexus 4 (android 4.3), I sometimes get issues. on LogCat, I see data which is wrote successfully but my BLE accessories don&amp;#39;t receive anything. Please give me your advise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2416?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 10:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd0a40ec-d798-489d-a03e-7215f7a71728</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Nam Pham: Andriod doesn&amp;#39;t support write long yet, so you would need to fragment your data into 20-byte trunk or split your characteristic to 3 characteristics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2414?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2013 11:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a474580-a763-4a44-8ace-737d1c99ea09</guid><dc:creator>Nam Pham</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also working BLE on android 4.3 with Nexus 4. I have data with 48 bytes. how to writes it on my characteristic. please help
thx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2413?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2013 13:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a93c84-82e4-45d9-aa0d-0fc1bc1aab62</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;We have a couple of sample applications for Android available, so I&amp;#39;d recommend you to take a look at one of them:
&lt;a target="_blank" href="http://www.nordicsemi.com/Products/nRFready-Demo-APPS" rel="nofollow"&gt;http://www.nordicsemi.com/Products/nRFready-Demo-APPS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You get access by making an account there and entering a product key from a kit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2412?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 08:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98783c82-2eff-432c-9f3e-62048d80c51f</guid><dc:creator>Nouman</dc:creator><description>&lt;p&gt;hi, @Ole Morten I am also working on BLE using Android 4.3 api, i have used sample BLE app it is only reading charactaristics in DeviceScanActivity.activity but i want to write charactaristics by using button send so how can i use you above code to do this.. Basical i don&amp;#39;t know the step by step procedure to write characteristics. Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2410?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5062b2ff-09c4-4300-aa4d-66ecabf373b6</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;hi, @Ole Morten I am also working on BLE using Android 4.3 api, i have used sample BLE app it is only reading charactaristics in DeviceScanActivity.activity but i want to write charactaristics by using button send so how can i use you above code to do this.. Basical i don&amp;#39;t know the step by step procedure to write characteristics. Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2411?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2013 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2647c75e-6902-41fa-b53d-0fdf41199530</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;hi, @Ole Morten I am also working on BLE using Android 4.3 api, i have used sample BLE app it is only reading charactaristics in DeviceScanActivity.activity but i want to write charactaristics by using button send so how can i use you above code to do this.. Basical i don&amp;#39;t know the step by step procedure to write characteristics. Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2409?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2013 10:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd6e85f-ef37-41ef-bba3-ed2207f49302</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I&amp;#39;m answering this with the content of your comment above, Alex, just to clear up this question:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have already solved the problem. The example I was using did not have the write permissions on both the app side and the Nordic side. After I used the Nordic UART code on BOTH sides (Nordic and app), it worked much better. thank you for the response, and if I can answer anything else for you I will&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for letting us know the solution!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2408?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2013 15:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1efff41-7217-4d91-928f-0a1dcb354566</guid><dc:creator>Alex Lynchosky</dc:creator><description>&lt;p&gt;Hung Bui,&lt;/p&gt;
&lt;p&gt;I have already solved the problem. The example I was using did not have the write permissions on both the app side and the Nordic side. After I used the Nordic UART code on BOTH sides (Nordic and app), it worked much better. thank you for the response, and if I can answer anything else for you I will&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing to a Characteristic using the Android 4.3 API</title><link>https://devzone.nordicsemi.com/thread/2407?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2013 07:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6748e1c0-7536-40af-a4c9-db6119401015</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;Sorry for a late reply. Could you give some more information on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do you have the same problem with the nRF Uart app ?&lt;/li&gt;
&lt;li&gt;Which master device have you used to test ?&lt;/li&gt;
&lt;li&gt;What error code you have when writing is not successful? Did you have the characteristic null ?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>