You can force the phone from going to sleep with PhoneWakeState:
Basic4android - Phone
Once the device is sleeping you will not be able to run your application.
Another possible solution is to periodically start a service with StartServiceAt, acquire the wake lock, find the GPS fix and release the lock.