How To Use Onnewintent While Displaying List View?
How do I use onNewIntent inside a ListView activity? Actually I am displaying a ListView, while displaying I got an event or status from the server side and then I need to make som
Solution 1:
Mark your activity as android:launchMode="singleTop" in AndroidManifest.xml and then override onNewIntent() to capture new intents. Afterwards, perform your changes in list's data and finally call yourAdapter.notifyDataSetChanged() to apply changes.
Post a Comment for "How To Use Onnewintent While Displaying List View?"