rohitjindal1184 / openintents

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

OI File Manager: crashes on launch in Android 1.5 #451

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run an Android 1.5 emulator
2. Launch OI File Manager

What is the expected output? What do you see instead?
It should launch, but instead crashes with the following errors.

I/ActivityManager(  583): Starting activity: Intent { 
action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} 
flags=0x10200000 
comp={org.openintents.filemanager/org.openintents.filemanager.FileManagerActivit
y} }
I/ActivityManager(  583): Start proc org.openintents.filemanager for activity 
org.openintents.filemanager/.FileManagerActivity: pid=744 uid=10023 gids={}
I/jdwp    (  744): received file descriptor 10 from ADB
I/ActivityThread(  744): Publishing provider 
org.openintents.filemanager.bookmarks: 
org.openintents.filemanager.BookmarksProvider
I/ActivityThread(  744): Publishing provider org.openintents.filemanager: 
org.openintents.filemanager.FileManagerProvider
D/dalvikvm(  744): Trying to load lib 
/data/data/org.openintents.filemanager/lib/libaccess.so 0x43599618
D/dalvikvm(  744): Added shared lib 
/data/data/org.openintents.filemanager/lib/libaccess.so 0x43599618
D/dalvikvm(  744): No JNI_OnLoad found in 
/data/data/org.openintents.filemanager/lib/libaccess.so 0x43599618
V/OIFM_DirScanner(  744): Scanning directory /sdcard
V/OIFM_DirScanner(  744): Counting files... (total count=0)
I/dalvikvm(  744): Failed resolving 
Lorg/openintents/filemanager/PreferenceActivity$5; interface 19 
'Landroid/content/DialogInterface$OnShowListener;'
W/dalvikvm(  744): Link of class 
'Lorg/openintents/filemanager/PreferenceActivity$5;' failed
E/dalvikvm(  744): Could not find class 
'org.openintents.filemanager.PreferenceActivity$5', referenced from method 
org.openintents.filemanager.PreferenceActivity.onCreateDialog
W/dalvikvm(  744): VFY: unable to resolve new-instance 229 
(Lorg/openintents/filemanager/PreferenceActivity$5;) in 
Lorg/openintents/filemanager/PreferenceActivity;
W/dalvikvm(  744): VFY:  rejecting opcode 0x22 at 0x0045
W/dalvikvm(  744): VFY:  rejected 
Lorg/openintents/filemanager/PreferenceActivity;.onCreateDialog 
(I)Landroid/app/Dialog;
W/dalvikvm(  744): Verifier rejected class 
Lorg/openintents/filemanager/PreferenceActivity;
W/dalvikvm(  744): threadid=15: thread exiting with uncaught exception 
(group=0x4000fe70)
E/AndroidRuntime(  744): Uncaught handler: thread Directory Scanner exiting due 
to uncaught exception
E/AndroidRuntime(  744): java.lang.VerifyError: 
org.openintents.filemanager.PreferenceActivity
E/AndroidRuntime(  744):    at 
org.openintents.filemanager.DirectoryScanner.run(DirectoryScanner.java:137)
I/Process (  583): Sending signal. PID: 744 SIG: 3
I/dalvikvm(  744): threadid=7: reacting to signal 3
I/dalvikvm(  744): Wrote stack trace to '/data/anr/traces.txt'
I/ActivityManager(  583): Displayed activity 
org.openintents.filemanager/.FileManagerActivity: 647 ms

This bug was introduced with revision 3841 by using DialogInterface 
OnShowListener which was released with API 8 (Android 2.2).   Curiously it only 
crashes with Android 1.5 (API 3) and runs okay with Android 1.6 and 2.1.

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

GoogleCodeExporter commented 8 years ago
The problem with Android 1.5 isn't only with the PreferenceActivity. There are 
a few more problems. Set Project Build Target to Android 1.5 in Properties > 
Android and you will see.

Original comment by matej...@gmail.com on 29 Dec 2011 at 6:15

GoogleCodeExporter commented 8 years ago
Setting the Project Build Target to 1.5 is not necessarily the best indicator.

Unavailable APIs can be present if it is ensured that those classes are never 
loaded in older API devices (for example through wrapper classes).

Also, there can be entries in the Manifest file that are unsupported in Android 
1.5 and lead to compile time errors, but compile in more recent API versions 
and then are simply ignored when executed on Android 1.5 platforms.

Original comment by peli0...@googlemail.com on 29 Dec 2011 at 6:24

GoogleCodeExporter commented 8 years ago
I also found that because ic_menu_star.png wasn't in /drawable/, hitting Menu 
causes it to crash.

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

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