<?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>nRF UART Android App [Feature Request &amp;amp; a Question]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4571/nrf-uart-android-app-feature-request-a-question</link><description>Hi Nordic, 
 I am a hardware/firmware guy without App development skills and I also lack the time to acquire these skills. I enjoyed your UART App during my development, thanks a lot for providing many useful example apps.
However, I require currently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Dec 2014 16:52:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4571/nrf-uart-android-app-feature-request-a-question" /><item><title>RE: nRF UART Android App [Feature Request &amp; a Question]</title><link>https://devzone.nordicsemi.com/thread/16197?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2014 16:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f249059-38e8-4b7e-99dc-9a530fe8ed80</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t it already send and receive raw data (bits, bytes, hex)? The raw data is then encoded using ASCII and displayed on the screen.&lt;/p&gt;
&lt;p&gt;Unfortunately, we can&amp;#39;t develop the app for you. If you want to remove the ASCII encoding you will have to do some app development yourself, or get someone else to do it.&lt;/p&gt;
&lt;p&gt;If you want to have a go at it, you should go to line 239 in MainActivity.java and replace:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;String text = new String(txValue, &amp;quot;UTF-8&amp;quot;);
String currentDateTimeString = DateFormat.getTimeInstance().format(new Date());
listAdapter.add(&amp;quot;[&amp;quot;+currentDateTimeString+&amp;quot;] RX: &amp;quot;+text);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int i = 0;                     	 
StringBuilder sb = new StringBuilder();                  	 
while(txValue[i] != &amp;#39;\n&amp;#39;)
{
    sb.append(String.format(&amp;quot;%02X &amp;quot;, txValue[i]));
    i++;
}                         	
String currentDateTimeString = DateFormat.getTimeInstance().format(new Date());
listAdapter.add(&amp;quot;[&amp;quot;+currentDateTimeString+&amp;quot;] RX: &amp;quot;+sb.toString());
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will display the data as hex, so HELLO will be 48 45 4C 4C 4F&lt;/p&gt;
&lt;p&gt;The BLE protocol is very secure and you can assume the data is uncorrupted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>