Friday, February 28, 2014

Novice


Today when learning ContentProvider encountered a problem when the test has been given,


Thanks for help to see rookie Daniel once again<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
  
package = "com.example.db"
android: versionCode = "1"
android: versionName = "1.0">

android: minSdkVersion = "8"
android: targetSdkVersion = "18" />

android: allowBackup = "true"
android: icon = "@ drawable / ic_launcher"
android: label = "@ string / app_name"
android: theme = "@ style / AppTheme">

android: name = "com.example.db.MainActivity"
android: label = "@ string / app_name">








android: authorities = "com.zsq.providers.personprovider" />




android: targetPackage = "com.example.db" />






This is provided manifest.xml data provider configuration information items
Reply:
Nobody Dinga how big God help their top novice. . . Thank you
Reply:
Zaiding. . . Daniel it?
Reply:
Brother, log write very clearly, wood has authority ah
Reply:
references, 4th Floor winteror reply:
brother, log write very clearly, wood has authority ah
I know, that is not know what additional permissions. . Plus a look at what you give permission
Reply:
references, 5th Floor zhouren1314 reply:
Quote: references to the 4th floor winteror reply:

Brother, log write very clearly, wood has authority ah
I know, just do not know what additional permissions. . Plus a look at what you give permission
permission to see the manifest yet, and will not be a problem for unit testing, will complain directly to run it?
Reply:
Landlord critical error log back print did not see ah?
Should be on the phone more than 4.0 debug it?
 android: authorities = "com.zsq.providers.personprovider" /> 

Add an attribute: android: exported = "true"
Becomes:
 android: exported = "true" 
android: authorities = "com.zsq.providers.personprovider" />

Try again!
Reply:
reference to the 7th floor ncepu307 reply:
landlord behind the critical error log print did not see ah?
Should be on the phone more than 4.0 debug it?
 android: authorities = "com.zsq.providers.personprovider" /> 

Add an attribute: android: exported = "true"
Becomes:
 android: exported = "true" 
android: authorities = "com.zsq.providers.personprovider" />

Try again!
solved by saying thank you
Reply:
Permissions problem. . . . . .

No comments:

Post a Comment