Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,I need to refresh/reload the current activity only once when the activity `oncreate()` method completes,how can i implement that process?
Posted

try
Java
finish();
startActivity(getIntent());
 
Share this answer
 
Start with an intent your same activity and close the activity.
Java
Intent refresh = new Intent(this, Main.class);
startActivity(refresh);//Start the same Activity
finish(); //finish Activity.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900