rockingmaster / openintents

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

OI File Manager: crashes in Details dialog on Android 2.2 and earlier #439

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use an Android 2.2 or 2.1.
2. Open OI File Manager
3. Long press on any file/folder.
4. Press Details.

What is the expected output? What do you see instead?
Should get the Details dialog.   Instead it crashes with the following log.

W/dalvikvm(  253): threadid=3: thread exiting with uncaught exception 
(group=0x4001b188)
E/AndroidRuntime(  253): Uncaught handler: thread main exiting due to uncaught 
exception
E/AndroidRuntime(  253): java.lang.NoSuchMethodError: java.io.File.canExecute
E/AndroidRuntime(  253):    at 
org.openintents.filemanager.FileManagerActivity.onPrepareDialog(FileManagerActiv
ity.java:1490)
E/AndroidRuntime(  253):    at android.app.Activity.showDialog(Activity.java:2487)
E/AndroidRuntime(  253):    at 
org.openintents.filemanager.FileManagerActivity.onContextItemSelected(FileManage
rActivity.java:1188)
E/AndroidRuntime(  253):    at 
android.app.Activity.onMenuItemSelected(Activity.java:2174)
E/AndroidRuntime(  253):    at 
com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelec
ted(PhoneWindow.java:2731)
E/AndroidRuntime(  253):    at 
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
E/AndroidRuntime(  253):    at 
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:85
5)
E/AndroidRuntime(  253):    at 
com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:12
9)
E/AndroidRuntime(  253):    at 
com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertControll
er.java:884)
E/AndroidRuntime(  253):    at 
android.widget.AdapterView.performItemClick(AdapterView.java:284)
E/AndroidRuntime(  253):    at 
android.widget.ListView.performItemClick(ListView.java:3285)
E/AndroidRuntime(  253):    at 
android.widget.AbsListView$PerformClick.run(AbsListView.java:1640)
E/AndroidRuntime(  253):    at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(  253):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(  253):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  253):    at 
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(  253):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(  253):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  253):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(  253):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(  253):    at dalvik.system.NativeStart.main(Native Method)
I/Process (   64): Sending signal. PID: 253 SIG: 3
I/dalvikvm(  253): threadid=7: reacting to signal 3

It's crashing from code from revision 3764.

Original issue reported on code.google.com by rmce...@gmail.com on 24 Dec 2011 at 5:52

GoogleCodeExporter commented 8 years ago
Groups thread:
http://groups.google.com/group/openintents/browse_thread/thread/92e110347bd0afd2

GCI Task:
http://www.google-melange.com/gci/task/view/google/gci2011/7234233

Temporary Fix (Maybe Permanent?): 
String perms = (mContextFile.canRead() ? "R" : "-") + 
                (mContextFile.canWrite() ? "W" : "-") + 
                ((Build.VERSION.SDK_INT > 9) ? (mContextFile.canExecute() ? 
"X" : "-") : "-"); 

Original comment by philipha...@gmail.com on 24 Dec 2011 at 11:38

Attachments:

GoogleCodeExporter commented 8 years ago
Correction: 
String perms = (mContextFile.canRead() ? "R" : "-") + 
                (mContextFile.canWrite() ? "W" : "-") + 
                ((Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD) ? (mContextFile.canExecute() ? 
"X" : "-") : "-");

Original comment by philipha...@gmail.com on 26 Dec 2011 at 7:43

Attachments:

GoogleCodeExporter commented 8 years ago
http://www.google-melange.com/gci/task/view/google/gci2011/7120275

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

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

Original comment by rmce...@gmail.com on 29 Dec 2011 at 6:59