Faced the following problem:
I use ListActivity to display the list, when I click on an element, another activity opens with the characteristics of the element, but when you press the back button and go to the main activity where there should be a list, it does not exist. Those. the array from which the list is built is present; everything is fine with it, but the list is not displayed.
In the onResume method the following:
// Initializes list view adapter. mLeDeviceListAdapter = new LeDeviceListAdapter(); setListAdapter(mLeDeviceListAdapter); scanLeDevice(true); In the onPause method:
mLeDeviceListAdapter.clear(); The rest of the code did not find where the list could be affected.
Where can there be a problem, and why the list may not be displayed?
thank