When I change orientation application restarts and I lost my current data.. I am using activity group which contain lots of activities when i change orientation application
You could tell the system to ignore the changes with the following:
but I would suggest not doing that because this is often an indication of underlying problems that are yet to emerge.
My advice is that you simply add a new class that will handle resuming of all long operations or any activity modifications.