i am developing an android app that fetches an RSS feed, now i want it to update itself after every X time ..i.e restart the activity , i tired using Alarm manager but no success . im new to android app. i dont know where to put the restart code in the mainactivity.
i goggled and found this
COde:
Intent intent = getIntent();
finish();
startActivity(intent);
if reloading the activity is not a good choice for this work then how to update it in background
I would suggest you to use ListView to display feeds, and to reload the list use method: