Tuesday, February 25, 2014

Intent.DATA_CONNECTION_CHANGED_ACTION so if there are problems with ah? Please expert guidance.


Want to achieve to receive broadcast data link status change events in judgment Receiver:

if (intent.getAction (). equals (Intent.DATA_CONNECTION_CHANGED_ACTION))

Total error: DATA_CONNECTION_CHANGED_ACTION cannot be resolved or is not a field

In Manifest.xml have defined:





Please expert guidance, is where a mistake. The same process: BOOT_COMPLETED, there is no problem, for example:

if (intent.getAction (). equals (Intent.ACTION_BOOT_COMPLETED))

No compilation errors.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
ACTION_BOOT_COMPLETED This is the system comes, and DATA_CONNECTION_CHANGED_ACTION, this is your custom Action bar, you declare dim light so that you can receive here is just a statement, not a definition, you have to define a string like the job
Reply:
Thank you! DATA_CONNECTION_CHANGED_ACTION this is the system comes. Online: android system broadcast Encyclopedia: 15.String DATA_CONNECTION_STATE_CHANGED_ACTION Radio: phone data connection status has changed.


Reply:
reference to the second floor u012499918 reply:
Thank you! DATA_CONNECTION_CHANGED_ACTION this is the system comes. Online: android system broadcast Encyclopedia: 15.String DATA_CONNECTION_STATE_CHANGED_ACTION Radio: phone data connection status has changed.

Students to prevail Oh SDK, SDK there is not the action of.
Either their own definition, or switch to other action.
http://developer.android.com/reference/packages.html
Reply:
Problem has been resolved. Ashamed, is misspelled. This action is available, the need to define themselves.

No comments:

Post a Comment