<?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>customize the nrf toolbox app from github</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56381/customize-the-nrf-toolbox-app-from-github</link><description>I have customized the nrf toolbox app , facing the issues as below 
 1. I have created two pages , first page is used to scan and connect and second page is used to enter the data manually by user, respective data has to be sent to the device 
 2. issue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 13:20:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56381/customize-the-nrf-toolbox-app-from-github" /><item><title>RE: customize the nrf toolbox app from github</title><link>https://devzone.nordicsemi.com/thread/228574?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 13:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72bafb94-cfa5-46c8-9ae1-73a5d3ec5075</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;First of all, a lot depends on your implementation. Remember that your Activity may be destroyed when switched to another one. Same with Fragment. You may either keep your connection in the service (you need to promote it to foreground service if you want to keep the connection also when the activity is not visible, otherwise Android 8+ may kill your service), or on ViewModel (see Architecture Components), but then you have to make sure the ViewModel is not dismissed as well. For example, you could hold your connection in a ViewModel bound to the Activity and use it in 2 fragments: one for scanning/connection, other for entering the data.&lt;/p&gt;
&lt;p&gt;There is number of possible solutions, each has pros and cons. I would recommend checking Android documentation regarding ViewModels, Services and our example in nRF Toolbox (RSC profile).&lt;/p&gt;
&lt;p&gt;Regards, Aleksander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>