Author Topic: 1.5.7-27-dev1.3  (Read 11133 times)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: 1.5.7-27-dev1.3
« Reply #15 on: April 26, 2015, 10:31:39 pm »
No, that's not it -- it doesn't narrow down the list of installed apps to just Google Drive ("setPackageName").
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: 1.5.7-27-dev1.3
« Reply #16 on: April 27, 2015, 08:08:15 pm »
Dont use intent.setType for ACTION_PICK.

My test app works (I removed code for setType)
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: 1.5.7-27-dev1.3
« Reply #17 on: April 28, 2015, 12:09:53 am »
>> Dont use intent.setType for ACTION_PICK.

I wasn't going to.

>> My test app works (I removed code for setType)

Um, interesting, can you post the entire snippet? Do you use intent.setPackageName to narrow down just to Google Drive?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: 1.5.7-27-dev1.3
« Reply #18 on: April 28, 2015, 04:49:36 pm »
I just tried simple code:

Intent intent = new Intent(Intent.ACTION_PICK);
intent.setPackage("com.google.android.apps.docs");
startActivity(intent);

Google Drive started in "picking file" mode. When I picked the file, it was downloaded and view was returned to my simple test app.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: 1.5.7-27-dev1.3
« Reply #19 on: April 29, 2015, 01:04:14 am »
It works!

Tested on a Nexus 5 with 5.1, a Samsung with 4.4, and a Samsung with 5.0.

Now adding support for Google Drive is a no-brainer.

Thank you, thank you, thank you!

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/