I wanted to write a Service, do not want Activity, no interface, boot receive the broadcast starts. . Internet to find a few ways:
First, write a very simple procedure, it is an Activity, refers to this Activity title bar to remove the background transparent, then this will finish himself Activity's OnCreate () away, without doing anything, as long as stated in the Manifest.xml Power service is OK, then switched services in response to this internal procedures.
Second, do not Activity, and direct the program written in a Widgets ...... (that do not know)
Third, the system-level applications can be received boot broadcasting. (I verified different too)
I hope to achieve a third request colleagues to help. . .<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: No activity may be a matter of course
/ ** * @ Author coolszy * @ Date 2011-6-14 * @ Blog http://blog.csdn.net/coolszy * /
public class BootCompletedReceiver extends BroadcastReceiver {
Reply: Which started broadcasting service on the line Reply: Do you have to start over in the 4.0 environment? Reply: Oh, 4.0 seems to be changed Reply:
Which started broadcasting service on the line
Do you have to start over in the 4.0 environment?
Oh, 4.0 seems to be changed
Yes, but thank you. Reply: http://www.eoeandroid.com/thread-263042-1-1.html hope for your help Reply: tmd, with system-level testing, yesterday can be successful. Today to see service class naming is not standardized, it took a long name. Unexpected problem arises at this length. Naming said to have a limited length. Oh, and a waste of a morning. . Reply: Will the landlord seeking advice how to achieve Reply:
ask the landlord how to achieve seek advice
This is in my root privileges oh. Press this to http://www.eoeandroid.com/thread-263042-1-1.html, there are questions you can ask me Reply:
http://www.eoeandroid.com/thread-263042-1-1.html hope for your help
Thank you, I follow you get. Reply:
Which started broadcasting service on the line
Do you have to start over in the 4.0 environment?
Oh, 4.0 seems to be changed
Yes, but thank you.
That is in the 4.0 environment, said the second floor is not feasible? ? ? Reply: Yes, the second floor is not feasible, while the above said method also allowed to system-level signature, not his own rom how can this signature ah, ha ha ha, honest added activity it Reply:
Which started broadcasting service on the line
Do you have to start over in the 4.0 environment?
Oh, 4.0 seems to be changed
Yes, but thank you.
That is in the 4.0 environment, said the second floor is not feasible? ? ?
ah, need activity. Reply: Will the landlord with this post http://www.eoeandroid.com/thread-263042-1-1.html The first of several programs to address the problem ah.
No comments:
Post a Comment