<?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 number of packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10362/android-number-of-packets</link><description>Hi, 
 I&amp;#39;m developing an Android application that uses Android DFU Library and I want to set the number of packets that are sent every notification interval to 1. I couldn&amp;#39;t find an example of how this can be achieved. 
 The closest thing that I found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2015 21:40:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10362/android-number-of-packets" /><item><title>RE: Android number of packets</title><link>https://devzone.nordicsemi.com/thread/38443?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 21:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c8ce63-3ac2-42d8-bd5b-9d628b9e57a9</guid><dc:creator>Natan</dc:creator><description>&lt;p&gt;I&amp;#39;ve found how to solve this issue: you have to save the number of packets on your app shared preferences before starting the DFU upload.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;final SharedPreferences preferences = getSharedPreferences(getPackageName() + &amp;quot;_preferences&amp;quot;, Context.MODE_PRIVATE);
preferences.edit().putString(DfuSettingsConstants.SETTINGS_NUMBER_OF_PACKETS, &amp;quot;1&amp;quot;).apply();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>