rockingmaster / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI File Manager: Force close on optional command #330

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
User report:
"Long pressing on a photo and choosing "Google Mail" leads to a force close, 
not that I know what is supposed to happen when choosing that alternative. I'm 
guessing it attaches the picture in a new mail in the Gmail application, but 
then another way of doing so is by choosing "Send" followed by "Gmail". So what 
does "Gallery Photo" and "Google Mail" actually do?"

What is the expected output? What do you see instead?
Probably missing permissions cause the crash. The application should not crash 
but show an error message.

Original issue reported on code.google.com by peli0...@googlemail.com on 13 Mar 2011 at 9:09

GoogleCodeExporter commented 8 years ago
please let me know how to reproduce, I did not see force close. it works for me.

Original comment by jzs...@gmail.com on 28 Dec 2011 at 3:27

GoogleCodeExporter commented 8 years ago
How to reproduce this on a Nexus One (Android 2.3.6):
In OI File Manager, long-press on an image file,
select "More",
(possibly) accept the Warning "Some of the following options may not work",
select "Google Mail".

-> Application crashes.

Adding the permission to OI File Manager is NOT the desired solution, because 
this does not scale well.

Ideally, there should be a warning dialog that a particular permission is 
required, but not available.

(Later there could be an option to download the corresponding "OI Permission 
for Auto-send", which would be a separate application, which would forward this 
permission).

-----
W/ActivityManager(   96): Permission Denial: starting Intent { 
dat=file:///mnt/sdcard/download/DSC00297.jpeg typ=image/jpeg 
cmp=com.google.android.gm/.AutoSendActivity } from ProcessRecord{40533a10 
23046:org.openintents.filemanager/10060} (pid=23046, uid=10060) requires 
com.google.android.gm.permission.AUTO_SEND
[...]
E/AndroidRuntime(23046):    at 
org.openintents.filemanager.FileManagerActivity$25.onClick(FileManagerActivity.j
ava:1571)
[...]

Original comment by peli0...@googlemail.com on 28 Dec 2011 at 9:37

GoogleCodeExporter commented 8 years ago
I am still trying to reproduce, I did not see Google mail from the list, only 
see the "Messaging", any setting I need to do to add Gmail to the list? please 
let me know.

Original comment by jzs...@gmail.com on 28 Dec 2011 at 4:59

GoogleCodeExporter commented 8 years ago
You need to have the corresponding application "Google Mail" installed. Most 
probably this will not work on the emulator.

A related issue is issue 343.

Original comment by peli0...@googlemail.com on 29 Dec 2011 at 9:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r3947.

Original comment by rmce...@gmail.com on 29 Dec 2011 at 8:09