Search code examples
androidandroid-6.0-marshmallowappcompatactivity

Does AppCompatActivity do not have the new Android M permissions methods


I want to add Android M support to our apps and i followed the Google tutorial

for checking permissions and the requesting them. But i get an error, that those methods are not known by my Activity. My Activity is extending AppCompatActivity.

Could it be, that this class have not implemented yet those new methods?


Solution

  • In the latest source code of AppCompatActivity you can find that there are no methods yet like checkSelfPermission() or requestPermissions().
    So your assumption is right.