Question: How can I set a web application to have an infinite session, so that the user doesn't get logged out after some time, even if the web application stays open for years ?

Answer: 
```
I think you have to try this following code it works for me....

```

Animation animation1 = AnimationUtils.loadAnimation(getapplicationContext(), R.anim.anim1);

instead of

Animation animation1 = AnimationUtils.loadAnimation(this, R.anim.anim1);

may be it works for u.
please change to like

```
Animation animation1 = AnimationUtils.loadAnimation(MainFragment.this, R.anim.anim1);

```