I am trying to complete an android application where the phone will start off awake, attempt to gather a sample from a sensor via NFC, go to sleep, wake up, and repeat. If no sample is gathered (i.e. the sensor runs out of battery life) the application should cease data collection.
My question is, can the phone utilize its NFC capability while in sleep mode, or does the screen have to physically be awake to gather data? Also, which of these implementations if not both would be better in accomplishing the aforementioned process, and are there any examples of similar applications in existence?