My main activity is continuously receiving data from client. It has three menu items on top right corner which are About , Settings and Home . These three menu tabs are visible in all the three screens i.e. Home Screen(MainActivity class), About page and Settings page. On click of Home menu item , I have written following code
case R.id.menu_Home: Intent intent = new Intent(this, MainActivity.class); startActivity(intent);My question is if I click Home menu item from any screen , am I restarting my activity? If yes then please provide me some guidance on how to go to main activity screen on clicking Home menu item without restarting it, as I can not afford to loose data by restarting the activity again and again .
ليست هناك تعليقات:
إرسال تعليق