Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to call Android Kitkat Class?

I am not able call KitKat class like when I am going to call Intent.ACTION_OPEN_DOCUMENT. I am getting a error

ACTION_OPEN_DOCUMENT cannot be resolved or is not a field

and for takePersistableUriPermission(Uri, int)

The method takePersistableUriPermission(Uri, int) is 
undefined for the type ContentResolver
like image 404
KousiK Avatar asked Jan 11 '23 20:01

KousiK


1 Answers

Double check that your project target build is using Android 4.4 (SDK 19), in Eclipse this can be done by:

Right clicking the project and click "Properties". Then select "Android" from the tree on the left. You can then select the target version on the right.

If you don't see 4.4 as an option, open up the SDK manager and make sure you have installed Android 4.4 KitKat

like image 107
Pixel Crunch Avatar answered Jan 24 '23 07:01

Pixel Crunch