Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i want to detect that some application has started in android, such as when you have started YouTube application
Did you think of using a service that would be running all the time in background and would send a broadcast for the current running application.
Hope this thread solves your problem somehow.
Determining the current foreground application from a background task or service
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i want to do is that if my application is closed from the task manager my service won't stop and if stops another package that is also running and checking the application process will turn my service ON how can i do it
If you want to make sure that your service should keep running or should get recreated again after killed then you should return start_sticky from your onStartCommand() method which will make sure to recreate your service as soon as memory is free. check the following link for more detail. http://developer.android.com/reference/android/app/Service.html#START_STICKY
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Hey friends,i am doing one android application:
-in that i want to read value from the users during an installation of application.
if any code for that please share a code and steps
Thank you.
in that i want to read value from the users during an installation of application.
This is not possible. Your app will not run at all until the user runs it from the home screen's launcher. At that point, you are welcome to prompt the user to supply you with information.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I want to upload some data using web services, I have created a service, but when phone is switch off services are getting kill and data are not uploaded, please guide me on how to create a service which run even after switch of and on android, and will they persist data which is passed in intent to start service.
You can use Broadcast Receiver on reboot. Then re-start your background server.
see this question Broadcast receivers on reboot?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm planning to make a Android Widget with some countdown based on current date, but would be perfect if I could do that as a Background instead.
I googled a little and didn't found any information on this matter.
Thanks!
There is an excellent tutorial on CodeProject that demonstrates exactly how to do this.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In my application i have a share option. when i clicked on that will show a list of applications, If i selected on of the application then that application will be stated.
Now from that application if user select share and touch my app icon then that shared information needs to be shown in my activity is this scenario possible in android? if possible what is the best of doing this.
Here are three easy lessons: Sharing Content.