<?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 source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82970/android-source-code-to-communicate-via-ble-to-modify-for-my-application</link><description>Hi I have a product that uses an Nrf52810 in a Raytec slave module. I am able to successfully send and receive packets of data using your UART app in the nrf Toolbox 
 I would like to develop a custom Android phone app using a Windows 10 PC, as a cross</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jan 2022 08:10:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82970/android-source-code-to-communicate-via-ble-to-modify-for-my-application" /><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345807?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 08:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0b0849a-0ef7-4210-8929-011b9ab9e0f3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Unless you change the&amp;nbsp;versionCode so that it does not rely on Git, you need to keep the&amp;nbsp;Android-nRF-Blinky in its Git &lt;a href="https://en.wikipedia.org/wiki/Repository_(version_control)"&gt;repository&lt;/a&gt;. to do so, simply clone it via Git instead of downloading a zip.&lt;/p&gt;
&lt;p&gt;To do so, first ensure you have git installed on your computer. Then, navigate to the folder where you want to have the repository and type this in your terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;git clone https://github.com/NordicSemiconductor/Android-nRF-Blinky.git&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345740?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 16:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e2fa08d-db65-45a4-924f-70cfd1e750d1</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;I am sorry, I am not familiar with &amp;quot;repository&amp;quot;. I go to this web site...&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky"&gt;https://github.com/NordicSemiconductor/Android-nRF-Blinky&lt;/a&gt;&amp;nbsp;to get the zipped file for the software. Please explain what you mean by getting it from a repository?&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345739?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 16:25:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c17411-7ae5-487b-a8b5-1add0d202a32</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It may not be incorrect, but it is not intentional, and if you do, it will fail like you have described. If you check out the git repository instead, it will work. Alternatively you could modify build.gradle to not rely on Git for version information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345730?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 15:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065c8855-387d-4d29-b3ea-7bfd8f470a32</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;Thanks for responding. What I did was go to Github and downloaded the ZIP file for the blinky app. Was that incorrect?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345648?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 11:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a214ad6b-30e0-48ea-b45c-d68dc010cd72</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you resolve this? I am no Android developer, but looking at the code I wonder if you download the files instead of checking out the git repo? I expect that would cause problems as&amp;nbsp;versionCode is set to&amp;nbsp;getVersionCodeFromTags() in &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Blinky/blob/014316a6fad1ae024fe32f53051b59c5ea911a2c/app/build.gradle#L11"&gt;build.gradle&lt;/a&gt;, and that only works within a Git repo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345128?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 14:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cfb1a17-1b93-4b36-b129-7982061bac56</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;Okay so, I read that the UART app is not being supported any longer, so I tried The Nordic Toolbox. It runs and loads into the phone but when I try to connect the app just shuts down. I read that it would be simpler to start with the blinky app as it&amp;#39;s simpler. When I try to build that I get this error...&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Cause: android.defaultConfig.versionCode is set to -1, but it should be a positive integer&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How do i fix that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345041?ContentTypeID=1</link><pubDate>Sun, 26 Dec 2021 22:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e27ee2b-18c8-40a7-81e0-65d48276b156</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;i get this error&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;import &lt;/span&gt;android.support.v4.content.LocalBroadcastManager;&lt;/pre&gt;
&lt;pre&gt;LocalBroadcastManager doesnt&amp;#39;t exist&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/345037?ContentTypeID=1</link><pubDate>Sun, 26 Dec 2021 16:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aed00ee-ec56-433e-9680-b1e8c59ce857</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;I tried running an example project and the UART project and I can&amp;#39;t get it to build&amp;nbsp; using&amp;nbsp; the latest Android Studio. Is there a version I should run this on? I am new to Android Studio.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/344651?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 15:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60a22a13-3a29-43ff-b9a2-78b1b5878b21</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Yes, Android Studio (projects are using Gradle).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/344648?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 15:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5758e682-dc4c-41f2-8718-a50ca5cf69c8</guid><dc:creator>jerry</dc:creator><description>&lt;p&gt;Einar,&lt;/p&gt;
&lt;p&gt;Thanks, I will look at the examples. What platform do I run them on? Android Studio?&lt;/p&gt;
&lt;p&gt;Jerry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android source code to communicate via BLE  to modify for my application</title><link>https://devzone.nordicsemi.com/thread/344635?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 14:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916469ee-3bbd-48ed-b91a-e9e65a013c23</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Jerry,&lt;/p&gt;
&lt;p&gt;I recommend you look at the &lt;a href="https://github.com/NordicSemiconductor/Android-BLE-Library"&gt;Android BLE Library&lt;/a&gt;, including the &lt;a href="https://github.com/NordicSemiconductor/Android-BLE-Library/tree/master/examples"&gt;examples&lt;/a&gt;. You can also look at the &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox"&gt;nRF-Toolbox implementation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>