FAQ Database Discussion Community


Docker recreates directories on host after reboot

directory,docker,reboot,docker-compose,recreate
I created some containers on my system (ubuntu 14.04) using docker-compose which mounted directories from the host into the containers. Now, every time I reboot the host, these directories are recreated, even though the containers do not longer exist (and I therefore deleted the directory). Example: I had a container...

Re-create session scoped JSF managed bean programmatically

jsf,jsf-2,managed-bean,session-scope,recreate
I'm using Mojarra 2.1.29 and have a session scoped JSF managed bean @ManagedBean @SessionScoped public class UserContext{ //staff } and a spring bean: public class UserReproducer{ private User user; public void reporoduce(){ if(user == null){ //Here I need to recreate the userContext managed bean //do some other staff } }...

Does a recreated activity remember the original intent started it?

android,android-activity,recreate
While checking the documentation about using onSaveInstanceState, a question popped up. Let's say I'm using an app with several activities and now I'm in a specific activity that got started by a previous one. The current activity accepts extra values from the previous one. If I get a phone call...

Restoring instance variables in Android upon activity recreation

android,android-activity,tabs,fragment,recreate
I have an Android project for which I am creating a custom tab view. I have structured the main Activity (FragmentActivity) in such a way that it has a tab bar at the bottom of the screen with a FrameLayout above it. Each option on the tab creates a new...

Trying to reload an Android activity from itself not working

android,crash,recreate
My problem is: I can't figure out a way to restart my activity from itself. For example in a game, if you die, there's a menu with an option to retry, which restart the stage instantly. That's exactly the case. As i have read from a lot of others answers...