title: In android, Empty activity launched while tapping mime type nfc tag, then fetched data from server?
body: <p>In android, I wrote mime type text/plain with package name in nfc tag. When app in closed state, if I tapped, it launched the specific activity. OnResume() called and load the data from server. In this case, it shows empty activity page,(No images or labels) then server fetched the data and displayed.</p>
  <p>Two screens shown while tapping the mime type nfc tag. I want to show the page with data retrieved from server. Please help me out for this issue. Thanks in advance.</p>
  <pre><code> if (MyUtils.isNetworkAvailable(Details.this)) {
              homeViewModel.getList();
          } else {
              List&lt;GetModelResponse.ListData&gt; listData = queries.getList();
              if (listData.size() &gt; 0) {
                  String[] separated = str.split(&quot;:&quot;);
  
                  for (int i = 0; i &lt; listData.size(); i++) {
                      if (separated[0].equalsIgnoreCase(String.valueOf(listData.get(i).getId()))) {
                          listData.get(i).setDate(MyUtils.getCurrentDate());
                          queries.insertPendingPay(listData.get(i));
                          break;
                      }
                  }
              }
  </code></pre>
  <p>Fetching data from server api.</p>