![]() Hold onto it.ĪccountManager am = AccountManager.Download and install the Google Photos app. I don't think the fingerprints thing is actually important, as I'm pretty sure I used the wrong one, but try to get that right anyways (Google provides instructions for it.) Under Services, you'll need to turn on two things: DRIVE API and DRIVE SDK! They are separate, one does not automatically turn the other on, and YOU MUST TURN BOTH ON! (Figuring this out wasted at least 20 hours of my time alone.) To download images or file from google drive you need a library You can not download images from google drive below are the steps to download images or files from drive. Int column_index = cursor.getColumnIndexOrThrow() StartActivityForResult(galleryIntent, void onActivityResult(int requestCode, int resultCode, Intent data) Ĭursor = activity.getContentResolver().query(uri, projection, null, null, null) Intent galleryIntent = new Intent(Intent.ACTION_PICK.Media.EXTERNAL_CONTENT_URI) Here is my code: private void pickFromGallery() How can I know when the download is finished to send the image to the cropping activity? After selecting the image I am sending the image to another activity for cropping but in case of download the image sent to the crop activity is null since the download is not finished yet. I am launching an intent to get photos from gallery and when I am using nexus google photo app in my gallery everything works fine.īut if the image is not on the phone (on the Google Photos online service) it will download it for me.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |