是不是manifest需要声明权限,或者这个api就是不能用的

解决方案 »

  1.   

    http://univasity.iteye.com/blog/998795
      

  2.   

    或者是activity的包路径写错了?
      

  3.   

    仅供参考:http://hi.baidu.com/gaogaf/item/c2165abf1a073b42bb0e1240
      

  4.   


    可能是这个api不能用,因为我是想去访问alarm的数据库了。
      

  5.   

    我也遇到同样的问题 
    E/AndroidRuntime( 1797): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.com.ssprd.srt.tphone/com.example.com.ssprd.srt.tphone.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.settings.timerpower.AlarmProvider from ProcessRecord{41596740 1797:com.example.com.ssprd.srt.tphone/10056} (pid=1797, uid=10056) that is not exported from uid 1000请问你是怎么解决的?谢谢
      

  6.   

    需在<provider>标签里加上属性android: exported = "true"
      

  7.   

    需在<provider>标签里加上属性android: exported = "true"   加上这个语句就ok了
      

  8.   

    不错解决了http://androiddev.lofter.com/post/1cc96d92_3c02916