Without seeing any code or any kind of indication of what processing is being carried out it's a little difficult to help you on this.
Can the processing in question be left in a background process and the main activity left to interact with the user?