


Intent performs the following three tasks mainly: 1. These messages allow application components to request required functionalities from other components of the application. In other words, we can understand them as asynchronous messages. Intent in Android enables communication between components of the same as well as different applications. Now, for their activation, we use messages known as Intents. Import offer you a brighter future with FREE online courses Start Now!!Īs we know, the core components of Android are Services, Activities, and Broadcast Receivers. Since it's a very simple project I will just copy the 4 parts it consists of right here: I'd be really greatful if someone could come up with a working solution. I know I might be asking a bit too much but I'm quite desperate at this point. If someone could tell me what to modify / add / change or even do it for me and write back here (it's a really simple project) I would be extremely grateful, I'm wasting a ton of time and I just can't seem to hit the right key. While the phone screen is ON everything works just fine, but as soon as I lock the screen and put my phone in my pocket, depending on the phone I'm testing on, it starts to fail. When clicking the button I start a new process from the activity. I have a MAIN acticity with a single START button.

I've tried a million things, but here, I've just gone back to a very basic example so I can showcase it and ask for help: I should end up with a file with 1200 lines with a timestamp per sample. I want to have a counter add +1 every second for 1200 seconds (20 minutes) and write to a file every time it counts. I'm working on a bigger project, but here I'm just trying to get a very simple example to work which I can later adapt to my project.

I've been trying to achieve something for several days now and I literally don't know what else to try, I've basically tried everything I found online and it still doesn't work but I have the feeling that once I find the solution it must be something quite simple.
