luke2012 Well-Known Member Licensed User Longtime User Jun 18, 2013 #1 Hi to all, I'm testing a sub on different Android versions. This is the test case : 1) Gingerbread : OK 2) ICS : OK 3) Jelly Bean 4.1.1 : Doesn't work (Java error) The code is the same in all the test. I'm using the following object to retrieve ad image from SQLite DB : Cursor1, Buffer(), InputStream1 In this moment I don't have the device that raise the error and I asking the person for the java line. Have someone any ideas about that (I'll notify the java line as soon as possible)?
Hi to all, I'm testing a sub on different Android versions. This is the test case : 1) Gingerbread : OK 2) ICS : OK 3) Jelly Bean 4.1.1 : Doesn't work (Java error) The code is the same in all the test. I'm using the following object to retrieve ad image from SQLite DB : Cursor1, Buffer(), InputStream1 In this moment I don't have the device that raise the error and I asking the person for the java line. Have someone any ideas about that (I'll notify the java line as soon as possible)?
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2013 #2 You will need to provide the error message. Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Jun 18, 2013 #3 Error message Hi Erel, the message says : An error has occurred in sub: actshowpic_vvvvvvvvvvvvvvvvvvvvvvvvvv1 (java line: 280) java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception where I can check for the source java files in my project? Upvote 0
Error message Hi Erel, the message says : An error has occurred in sub: actshowpic_vvvvvvvvvvvvvvvvvvvvvvvvvv1 (java line: 280) java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception where I can check for the source java files in my project?
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2013 #4 Under Objects\src. There is also a mapping file in the main project folder that will help you map this obfuscated sub to the original one. Upvote 0
Under Objects\src. There is also a mapping file in the main project folder that will help you map this obfuscated sub to the original one.
luke2012 Well-Known Member Licensed User Longtime User Jun 18, 2013 #5 So I check the java file and I'll let you known. It's strange because using Gingerbread & ICS all work fine. Upvote 0
So I check the java file and I'll let you known. It's strange because using Gingerbread & ICS all work fine.
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2013 #6 It is not related to the OS version. My guess is that this device has a larger screen and the result is that you are loading a larger image. Upvote 0
It is not related to the OS version. My guess is that this device has a larger screen and the result is that you are loading a larger image.
luke2012 Well-Known Member Licensed User Longtime User Jun 18, 2013 #7 Interesting hypothesis! In this case wich is the possible solution / workaround ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 18, 2013 #8 It is better to first find the Java source line. Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Jun 18, 2013 #9 Erel the 280° java line that raise error : _b.setObject((android.graphics.Bitmap)(_r.RunStaticMethod("android.graphics.Bitmap","createScaledBitmap",new Object[]{(Object)(_original.getObject()),(Object)(_width),(Object)(_height),(Object)(_filter)},new String[]{"android.graphics.Bitmap","java.lang.int","java.lang.int","java.lang.boolean"}))); Upvote 0
Erel the 280° java line that raise error : _b.setObject((android.graphics.Bitmap)(_r.RunStaticMethod("android.graphics.Bitmap","createScaledBitmap",new Object[]{(Object)(_original.getObject()),(Object)(_width),(Object)(_height),(Object)(_filter)},new String[]{"android.graphics.Bitmap","java.lang.int","java.lang.int","java.lang.boolean"})));
Erel B4X founder Staff member Licensed User Longtime User Jun 19, 2013 #10 You are getting an out of memory error on this line. Why don't you use LoadBitmapSample instead? Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Jun 19, 2013 #11 I'll try and let you known. Thanks Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Jun 24, 2013 #12 Hi Erel, I checked using LoadBitmapSample and doesn't work. In this case no message is raised. The app was crashed and closed. I tested this code on : 1) Optimus One : It works 2) Optimus Sol : It works 3) Galaxy Tab 2 : It works 4) Galaxy S3 ("Android" branded) : doesn't work It's related to the camera ? The 1,2,3 device have a MPixel < 8 Upvote 0
Hi Erel, I checked using LoadBitmapSample and doesn't work. In this case no message is raised. The app was crashed and closed. I tested this code on : 1) Optimus One : It works 2) Optimus Sol : It works 3) Galaxy Tab 2 : It works 4) Galaxy S3 ("Android" branded) : doesn't work It's related to the camera ? The 1,2,3 device have a MPixel < 8
Erel B4X founder Staff member Licensed User Longtime User Jun 24, 2013 #13 There must be an error message in the logs. Please check the logs and post the error message. You should also post the relevant code. Upvote 0
There must be an error message in the logs. Please check the logs and post the error message. You should also post the relevant code.