Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 68    Views: 127

KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
12/21/13 08:42 AM (11 years ago)

Email Image Plugin Crashes

when you touch the Email Image Plugin to open it in an app, the app freezes, crashes and force close (using BT v3). Why is that?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/21/13 09:27 AM (11 years ago)
iOS or Android?
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/21/13 09:54 AM (11 years ago)
Android dear!
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/21/13 10:11 AM (11 years ago)
What does logcat show?
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/21/13 10:32 AM (11 years ago)
in eclipse, - problems: shows nothing, - console: shows nothing, - LogCat: shows nothing, everything seems fine but when you open it (Email Image Plugin) in your device, the app freezes and crash closes (using BT v3 Android)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/21/13 10:52 AM (11 years ago)
LogCat shows nothing at all? There's something wrong with your adb then. Need to do a kill-server / start-server. If that doesn't work, restart your computer
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/21/13 02:07 PM (11 years ago)
what you mean you by "Need to do a kill-server / start-server"?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/21/13 02:45 PM (11 years ago)
that's how you restart adb via command line. On OSX it looks like this: ./adb kill-server ./adb start-server If you're not familiar with command line tools, a restart of your computer would be easier.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/21/13 04:38 PM (11 years ago)
even after restarting my computer, reopening eclipse and re-uploading the project when I open it (Email Image Plugin) in my device, the app freezes and crash closes (using BT v3 Android) other plugins work well except the Email Image Plugin. I think this crash is similar to the Menu Image Advanced plugin crash (Android projects where clicking on header image was causing a crash ) before you fix it last time, remember?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/21/13 05:30 PM (11 years ago)
Need to see logcat to know what's going on
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/21/13 06:35 PM (11 years ago)
Yep, we need to see some LogCat data for sure. Without it we're just guessing at what the issue is. You can hook up your device to your system while Eclipse is running, and LogCat output for the device should show up. That would help us a ton. Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/23/13 03:05 PM (11 years ago)
Hi @chris1 and @GoNorthWest, I am quite new in app development, I have tried the Email Image Plugin several times in one of my android app and each time you touch it, app freezes and crash closes saying "Unfortunately, App_Title has stopped.", believe me and fix please...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/23/13 06:19 PM (11 years ago)
Hi Kennedy, I tried the Email Image Plugin yesterday to see if I could get it to crash, and it doesn't on my device. So, there's something unknown still. We do believe you that it crashes, but we literally cannot help you without any additional information. Please check out this How-To on basic debugging and problem reporting: http://www.buzztouch.com/files/howtos/Problem_Reporting_and_Basic_Debug_v1.0.pdf We're eager to help, but we simply need more info! Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/24/13 12:44 PM (11 years ago)
Hmmm... Thanks anyway!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/24/13 01:03 PM (11 years ago)
I hope that doesn't mean you are giving up?! There are so many of us here willing to help out, but we need more information. What you've given us so far is like saying your car won't start, please fix it, but we can't see or touch the car! There are SO many reasons for apps to crash - sometimes it's a misconfigured color, or page curl, or misplaced apostrophe - that it can be literally hundreds of things. The info is there...we just need you to provide it to us! Happy Holidays! Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/24/13 04:37 PM (11 years ago)
Happy Holidays! @GoNorthWest I just can't give up! I actually tried it on another app and it opened first time then when I really wanted to start to use it's core features, then it crashes and continue to freeze and crash when you touch to open it.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/24/13 05:22 PM (11 years ago)
Hi Kennedy! Glad you're not giving up! We still need the LogCat output! Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
12/25/13 04:57 AM (11 years ago)
the LogCat contain so much content, you want me to paste all that here on forum?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/25/13 08:23 AM (11 years ago)
There should be several lines in red toward the bottom. Start copying a few lines above that, through the end of the red
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
01/01/14 11:15 AM (11 years ago)
Hey Folks - Happy New Year! As this thread is already in progress, I thought I might reach out to the experts. Crazy thing is happening on my BT Hosted IOs email plugin control panel: 1) I tried to update the Email Field 2) When changing from the default, I received this error: An error ocurred in running the fnExecuteNonQuery() method in utilityFunctions.php (6) Any ideas on what might be causing this, or how to fix it? Thanks & Happy '14!
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
01/01/14 11:38 AM (11 years ago)
Resolved - I was using commas & apostrophes in the subject line - disregard the previous post & happy to have it up in running!!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/01/14 04:42 PM (11 years ago)
Rock and roll, @aquilla198! Those commas and apostrophes will get you every time! Mark
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/03/14 09:27 PM (11 years ago)
Here is the logcat from my experience. With the emulator running my application, I choose to pick an image from the gallery. Since there is no image in the gallery, I use the back button, the application freezes. 01-03 21:50:19.328: W/ZZ(1536): BT_screen_menuListSimple:onSaveInstanceState Screen Id: "2A07FD78B9A72DE36CBB4DC" 01-03 21:50:19.328: W/ZZ(1536): BT_screen_menuButtons:onSavedInstanceState JSON itemId: "29FF77F1C60C497FD8178CF" itemType: "BT_screen_menuButtons" itemNickname: "Second Menu" 01-03 21:50:19.468: W/ZZ(1536): BT_screen_menuButtons:onSavedInstanceState JSON itemId: "5A74CC14B40C926FCE4AE30" itemType: "BT_screen_menuButtons" itemNickname: "freevideo" 01-03 21:50:19.468: W/ZZ(1536): Email_image:onSavedInstanceState JSON itemId: "51D695D97FD1CAA47DD078B" itemType: "Email_image" itemNickname: "EmailPhoto" 01-03 21:50:19.468: W/ZZ(1536): Email_image:onStop JSON itemId: "51D695D97FD1CAA47DD078B" itemType: "Email_image" itemNickname: "EmailPhoto" 01-03 21:50:19.468: W/ZZ(1536): BT_activity_host:onStop 01-03 21:50:19.488: W/ZZ(1536): powerupforprofits_appDelegate: onTrimMemory with level: 20 01-03 21:50:27.968: W/ZZ(1536): Email_image:onActivityResult requestCode: 1 resultCode: 0 01-03 21:50:27.968: D/AndroidRuntime(1536): Shutting down VM 01-03 21:50:27.968: W/dalvikvm(1536): threadid=1: thread exiting with uncaught exception (group=0xb3af8ba8) 01-03 21:50:28.008: E/AndroidRuntime(1536): FATAL EXCEPTION: main 01-03 21:50:28.008: E/AndroidRuntime(1536): Process: com.powerupforprofits, PID: 1536 01-03 21:50:28.008: E/AndroidRuntime(1536): java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:3, request=1, result=0, data=null} to activity {com.powerupforprofits/com.powerupforprofits.BT_activity_host}: java.lang.NullPointerException 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread.deliverResults(ActivityThread.java:3365) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3408) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread.access$1300(ActivityThread.java:135) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.os.Handler.dispatchMessage(Handler.java:102) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.os.Looper.loop(Looper.java:136) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread.main(ActivityThread.java:5017) 01-03 21:50:28.008: E/AndroidRuntime(1536): at java.lang.reflect.Method.invokeNative(Native Method) 01-03 21:50:28.008: E/AndroidRuntime(1536): at java.lang.reflect.Method.invoke(Method.java:515) 01-03 21:50:28.008: E/AndroidRuntime(1536): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 01-03 21:50:28.008: E/AndroidRuntime(1536): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 01-03 21:50:28.008: E/AndroidRuntime(1536): at dalvik.system.NativeStart.main(Native Method) 01-03 21:50:28.008: E/AndroidRuntime(1536): Caused by: java.lang.NullPointerException 01-03 21:50:28.008: E/AndroidRuntime(1536): at com.powerupforprofits.Email_image.onActivityResult(Email_image.java:365) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.Activity.dispatchActivityResult(Activity.java:5427) 01-03 21:50:28.008: E/AndroidRuntime(1536): at android.app.ActivityThread.deliverResults(ActivityThread.java:3361) 01-03 21:50:28.008: E/AndroidRuntime(1536): ... 11 more
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/03/14 10:48 PM (11 years ago)
Interesting...I'll look into that. Sorta makes sense given that it expects an an image to exist, but there isn't one. However, there should be some error checking for that condition. I'll check it out. Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
01/03/14 11:48 PM (11 years ago)
Thanks @Patrickmotox for finally reporting the error that has persisted, now Mark can rise to fix.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/03/14 11:53 PM (11 years ago)
I found this line very interesting. 01-03 21:50:27.968: W/ZZ(1536): Email_image:onActivityResult requestCode: 1 resultCode: 0 and thanks
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/04/14 03:31 PM (11 years ago)
Created a very simple Application to test. this is what is happening. I start up app. click button to start email_image. It allows me to take the image, and after hitting save, the screen locks up. this is on a samsung note. 01-04 14:24:32.750: D/memalloc(476): ion: Mapped buffer base:0x5c36b000 size:4096000 offset:0 fd:65 01-04 14:24:32.900: D/CLIPBOARD(476): Hide Clipboard dialog at Starting input: finished by someone else... ! 01-04 14:24:32.920: D/memalloc(476): ion: Unmapping buffer base:0x5bc83000 size:4096000 01-04 14:24:33.641: W/ZZ(476): BT_activity_host:handleReportToCloudResults appLastModifiedOnServer (value on server): Sat, 04 Jan 2014 22:19:28 -0800 01-04 14:24:33.641: W/ZZ(476): BT_fileManager: saveTextFileToCache: appModified.txt 01-04 14:24:37.965: W/ZZ(476): BT_screen_menuButtons:button clicked 01-04 14:24:37.975: W/ZZ(476): BT_screen_menuButtons:handleItemTap loads screen with itemId: "88ADD44CA843A91095502D7" 01-04 14:24:37.975: W/ZZ(476): BT_application:getScreenDataByItemId itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.975: W/ZZ(476): BT_screen_menuButtons:loadScreenObject. Loading screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.975: W/ZZ(476): BT_activity_host:initPluginWithScreenData. Calling helper method in BT_application 01-04 14:24:37.975: W/ZZ(476): BT_application:initPluginWithScreenData. Creating plugin with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.975: W/ZZ(476): Email_image:setScreenData JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.975: W/ZZ(476): BT_activity_host:showFragmentForPlugin. Showing plugin with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.975: W/ZZ(476): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-04 14:24:37.995: W/ZZ(476): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:37.995: W/ZZ(476): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.015: D/memalloc(476): ion: Mapped buffer base:0x5c753000 size:4096000 offset:0 fd:51 01-04 14:24:38.165: W/ZZ(476): BT_screen_menuButtons:onPause JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-04 14:24:38.165: W/ZZ(476): BT_screen_menuButtons:onStop JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-04 14:24:38.165: W/ZZ(476): Email_image:onAttach JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.165: W/ZZ(476): Email_image:onCreateOptionsMenu JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.165: W/ZZ(476): Email_image:onCreate JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.165: W/ZZ(476): Email_image:onCreateView JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.295: W/ZZ(476): Email_image:onActivityCreated JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.295: W/ZZ(476): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-04 14:24:38.295: W/ZZ(476): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.295: W/ZZ(476): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.295: W/ZZ(476): Email_image:onStart JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.295: W/ZZ(476): Email_image:onResume JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "RIGHT HERE" 01-04 14:24:38.305: I/System.out(476): Not a DRM File, opening notmally 01-04 14:24:38.305: I/System.out(476): buffer returned 01-04 14:24:38.355: E/dalvikvm-heap(476): Out of memory on a 31961104-byte allocation. 01-04 14:24:38.355: I/dalvikvm(476): "main" prio=5 tid=1 RUNNABLE 01-04 14:24:38.355: I/dalvikvm(476): | group="main" sCount=0 dsCount=0 obj=0x40bf8460 self=0xb3eca8 01-04 14:24:38.355: I/dalvikvm(476): | sysTid=476 nice=0 sched=0/0 cgrp=default handle=1074734472 01-04 14:24:38.355: I/dalvikvm(476): | schedstat=( 0 0 0 ) utm=62 stm=22 core=0 01-04 14:24:38.355: I/dalvikvm(476): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 01-04 14:24:38.365: I/dalvikvm(476): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587) 01-04 14:24:38.365: I/dalvikvm(476): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:389) 01-04 14:24:38.365: I/dalvikvm(476): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:418) 01-04 14:24:38.375: I/dalvikvm(476): at com.hereiam.Email_image.onResume(Email_image.java:140) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:873) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.BackStackRecord.run(BackStackRecord.java:622) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:426) 01-04 14:24:38.375: I/dalvikvm(476): at android.os.Handler.handleCallback(Handler.java:605) 01-04 14:24:38.375: I/dalvikvm(476): at android.os.Handler.dispatchMessage(Handler.java:92) 01-04 14:24:38.375: I/dalvikvm(476): at android.os.Looper.loop(Looper.java:137) 01-04 14:24:38.375: I/dalvikvm(476): at android.app.ActivityThread.main(ActivityThread.java:4511) 01-04 14:24:38.375: I/dalvikvm(476): at java.lang.reflect.Method.invokeNative(Native Method) 01-04 14:24:38.375: I/dalvikvm(476): at java.lang.reflect.Method.invoke(Method.java:511) 01-04 14:24:38.375: I/dalvikvm(476): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976) 01-04 14:24:38.375: I/dalvikvm(476): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 01-04 14:24:38.375: I/dalvikvm(476): at dalvik.system.NativeStart.main(Native Method) 01-04 14:24:38.375: D/skia(476): --- decoder->decode returned false 01-04 14:24:38.375: W/dalvikvm(476): threadid=1: thread exiting with uncaught exception (group=0x40bf71f8) 01-04 14:24:38.385: E/AndroidRuntime(476): FATAL EXCEPTION: main 01-04 14:24:38.385: E/AndroidRuntime(476): java.lang.OutOfMemoryError 01-04 14:24:38.385: E/AndroidRuntime(476): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:389) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:418) 01-04 14:24:38.385: E/AndroidRuntime(476): at com.hereiam.Email_image.onResume(Email_image.java:140) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:873) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.BackStackRecord.run(BackStackRecord.java:622) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:426) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.os.Handler.handleCallback(Handler.java:605) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.os.Handler.dispatchMessage(Handler.java:92) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.os.Looper.loop(Looper.java:137) 01-04 14:24:38.385: E/AndroidRuntime(476): at android.app.ActivityThread.main(ActivityThread.java:4511) 01-04 14:24:38.385: E/AndroidRuntime(476): at java.lang.reflect.Method.invokeNative(Native Method) 01-04 14:24:38.385: E/AndroidRuntime(476): at java.lang.reflect.Method.invoke(Method.java:511) 01-04 14:24:38.385: E/AndroidRuntime(476): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976) 01-04 14:24:38.385: E/AndroidRuntime(476): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 01-04 14:24:38.385: E/AndroidRuntime(476): at dalvik.system.NativeStart.main(Native Method)
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
01/04/14 03:55 PM (11 years ago)
Exactly what I have been talking about, @Patrickmotox thanks for reporting this.
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
01/05/14 10:31 AM (11 years ago)
<sorry/repost>
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/06/14 03:50 PM (11 years ago)
the following is the latest logcat, and it shows some debug statements I put in to see where the error was happening. here is the part that seems to hang. it gets to onResume but no further. Could be happening else where but this is what I have been able to ascertain so far //onResume @Override public void onResume() { super.onResume(); BT_debugger.showIt(fragmentName + ":onResume did we resume"); <--------- //if we did this before, set the image... File file = new File(pathToImage); if(file.exists()){ Bitmap bitmap = BitmapFactory.decodeFile(pathToImage); selectedImage = bitmap; updateImageView(bitmap); BT_debugger.showIt(fragmentName + ":onResume did we set the image"); <-----------doesn't get to here }else{ Drawable d = BT_fileManager.getDrawableByName("email_image_pickimage.png"); imageViewForEmailedImage.setImageDrawable(d); BT_debugger.showIt(fragmentName + ":onResume new file path or ?"); } 01-05 02:02:21.699: W/ZZ(24159): Email_image:onResume JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.699: W/ZZ(24159): Email_image:onResume did we resume <--------- 01-05 02:02:21.699: I/System.out(24159): Not a DRM File, opening notmally 01-05 02:02:21.699: I/System.out(24159): buffer returned 01-05 02:02:21.759: E/dalvikvm-heap(24159): Out of memory on a 31961104-byte allocation. Here is a larger snippet of the logcat ending in FATAL EXCEPTION. 01-05 02:02:21.689: W/ZZ(24159): Email_image:onCreateView we referenced the imageview that holds the image 01-05 02:02:21.689: W/ZZ(24159): Email_image:onCreateView we set the no image selected 01-05 02:02:21.689: W/ZZ(24159): Email_image:onActivityCreated JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.689: W/ZZ(24159): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-05 02:02:21.699: W/ZZ(24159): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.699: W/ZZ(24159): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.699: W/ZZ(24159): Email_image:onStart 01-05 02:02:21.699: W/ZZ(24159): Email_image:onStart JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.699: W/ZZ(24159): Email_image:onResume JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-05 02:02:21.699: W/ZZ(24159): Email_image:onResume did we resume 01-05 02:02:21.699: I/System.out(24159): Not a DRM File, opening notmally 01-05 02:02:21.699: I/System.out(24159): buffer returned 01-05 02:02:21.759: E/dalvikvm-heap(24159): Out of memory on a 31961104-byte allocation. 01-05 02:02:21.759: I/dalvikvm(24159): "main" prio=5 tid=1 RUNNABLE 01-05 02:02:21.759: I/dalvikvm(24159): | group="main" sCount=0 dsCount=0 obj=0x40bda460 self=0x1e18ca8 01-05 02:02:21.759: I/dalvikvm(24159): | sysTid=24159 nice=0 sched=0/0 cgrp=default handle=1074742664 01-05 02:02:21.759: I/dalvikvm(24159): | schedstat=( 0 0 0 ) utm=88 stm=21 core=0 01-05 02:02:21.759: I/dalvikvm(24159): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method) 01-05 02:02:21.759: I/dalvikvm(24159): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587) 01-05 02:02:21.759: I/dalvikvm(24159): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:389) 01-05 02:02:21.759: I/dalvikvm(24159): at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:418) 01-05 02:02:21.759: I/dalvikvm(24159): at com.hereiam.Email_image.onResume(Email_image.java:141) 01-05 02:02:21.759: I/dalvikvm(24159): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:873) 01-05 02:02:21.759: I/dalvikvm(24159): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032) 01-05 02:02:21.769: I/dalvikvm(24159): at android.app.BackStackRecord.run(BackStackRecord.java:622) 01-05 02:02:21.769: I/dalvikvm(24159): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382) 01-05 02:02:21.769: I/dalvikvm(24159): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:426) 01-05 02:02:21.769: I/dalvikvm(24159): at android.os.Handler.handleCallback(Handler.java:605) 01-05 02:02:21.769: I/dalvikvm(24159): at android.os.Handler.dispatchMessage(Handler.java:92) 01-05 02:02:21.769: I/dalvikvm(24159): at android.os.Looper.loop(Looper.java:137) 01-05 02:02:21.769: I/dalvikvm(24159): at android.app.ActivityThread.main(ActivityThread.java:4511) 01-05 02:02:21.769: I/dalvikvm(24159): at java.lang.reflect.Method.invokeNative(Native Method) 01-05 02:02:21.769: I/dalvikvm(24159): at java.lang.reflect.Method.invoke(Method.java:511) 01-05 02:02:21.769: I/dalvikvm(24159): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:976) 01-05 02:02:21.769: I/dalvikvm(24159): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 01-05 02:02:21.769: I/dalvikvm(24159): at dalvik.system.NativeStart.main(Native Method) 01-05 02:02:21.769: D/skia(24159): --- decoder->decode returned false 01-05 02:02:21.769: W/dalvikvm(24159): threadid=1: thread exiting with uncaught exception (group=0x40bd91f8) 01-05 02:02:21.769: E/AndroidRuntime(24159): FATAL EXCEPTION: main 01-05 02:02:21.769: E/AndroidRuntime(24159): java.lang.OutOfMemoryError
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 12:54 AM (11 years ago)
Don't know if this helps, but I am running the email Image plugin and it is working on a t-mobile running android 4.1 - ice cream sandwich. There is one strange thing though. When you get to the point where you can choose options, like after taking a photo or choosing a photo this is what it shows. Options Close Clear Image Clear Image Take New Image Select Image If you choose the bottom "Clear Image" it sends you to the choice of email, messenging, blue tooth, etc.... and you can email the image. Don't understand the two "Clear Image" texts. I still can't get it to run on the Samsung Note (running 4.0). It always crashes with the memory error.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/09/14 07:14 AM (11 years ago)
Looks like you're having memory issues. What happens if you use a smaller image?
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 10:54 AM (11 years ago)
Smaller image? This can/will crash even before I have selected an image or taken a picture. Don't know what image it is trying to access. This issue happens as soon as I push the button on the main menu that directs to the plugin. So once it get's to onResume in the code of the plugin it crashes, as shown above. Very Interesting.... but confounding, he he.....
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 11:08 AM (11 years ago)
Added a SD card..... same....
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/09/14 11:12 AM (11 years ago)
SDCard wouldn't do much - Android apps have a limit placed on them for memory. That amount differs by device, too, which is even more frustrating. Also, the memory is RAM, not storage.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 11:36 AM (11 years ago)
Ah got it. ok. This is what I found with some debug statements in the Email_image.java. Since it is always stopping at onResume.... //onResume @Override public void onResume() { super.onResume(); BT_debugger.showIt(fragmentName + ":onResume"); //if we did this before, set the image... File file = new File(pathToImage); BT_debugger.showIt(fragmentName + ":onResume set the new file"); <------- Gets to here and blows up. if(file.exists()){ Bitmap bitmap = BitmapFactory.decodeFile(pathToImage); BT_debugger.showIt(fragmentName + ":onResume decode file path to image"); selectedImage = bitmap; BT_debugger.showIt(fragmentName + ":onResume selected image"); updateImageView(bitmap); BT_debugger.showIt(fragmentName + ":onResume updated the imageview"); }else{ Drawable d = BT_fileManager.getDrawableByName("email_image_pickimage.png"); BT_debugger.showIt(fragmentName + ":onResume drawable d"); imageViewForEmailedImage.setImageDrawable(d); BT_debugger.showIt(fragmentName + ":onResume set image drawable d2"); } } Just trying to find out where and when, what is happening. hee hee.. I don't know, I am new to this. Ha ha... Is it a pathing problem????? 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:configureEnvironment start GPS is set to NO (set to 0) in the applications configuration data, not starting GPS 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:setupTabs (0 tabs) 01-09 10:27:34.147: W/ZZ(5197): BT_application: getHomeScreenData 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:setupTabs (no tabs, finding home screen) 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:showAppHomeScreen 01-09 10:27:34.147: W/ZZ(5197): BT_application: getHomeScreenData 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:initPluginWithScreenData. Calling helper method in BT_application 01-09 10:27:34.147: W/ZZ(5197): BT_application:initPluginWithScreenData. Creating plugin with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.147: W/ZZ(5197): BT_screen_menuButtons:setScreenData JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:showFragmentForPlugin. Showing plugin with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.147: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:34.177: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.177: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.177: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:34.187: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.187: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.288: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:34.298: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.308: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.318: W/ZZ(5197): BT_screen_menuButtons:onAttach JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.318: W/ZZ(5197): BT_screen_menuButtons:onCreate JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.328: W/ZZ(5197): BT_screen_menuButtons:onCreateView JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.588: W/ZZ(5197): BT_fileManager:deleteFile 5CEAF026F3D30721BAE063C_screenData.txt 01-09 10:27:34.598: W/ZZ(5197): BT_screen_menuButtons:onActivityCreated JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.598: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:34.598: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.598: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.608: W/ZZ(5197): BT_activity_host:onStart 01-09 10:27:34.608: W/ZZ(5197): BT_activity_host: start GPS is set to NO in the applications configuration data, not starting GPS 01-09 10:27:34.608: W/ZZ(5197): BT_screen_menuButtons:onStart JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.608: W/ZZ(5197): BT_activity_host:onResume 01-09 10:27:34.608: D/SensorManager(5197): registerListener :: handle = 0 name= K3DH Acceleration Sensor delay= 200000 Listener= com.hereiam.BT_activity_host@4192b6d8 01-09 10:27:34.608: W/ZZ(5197): BT_activity_host:reportToCloud 01-09 10:27:34.608: W/ZZ(5197): BT_screen_menuButtons:onResume JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.608: W/ZZ(5197): BT_screen_menuButtons:onStart using data from app's configuration file 01-09 10:27:34.608: W/ZZ(5197): BT_screen_menuButtons:parseScreenData 01-09 10:27:34.608: W/ZZ(5197): BT_screen_menuButtons:layoutButtons 01-09 10:27:34.618: W/ZZ(5197): BT_screen_menuButtons: using button image from project bundle: "smearedcloudhole.png" 01-09 10:27:34.628: W/ZZ(5197): BT_activity_host:reportToCloudWorkerThread getting lastModified from reportToCloudURL https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA712235E363F7E2DCE7328A1&apiKey=8723708536EF2327DB4E685&apiSecret=F4298CA10BCC6EC710B9F1C&deviceId=359100040924230&deviceLatitude=&deviceLongitude=&deviceModel=samsung-SAMSUNG-SGH-I717&userId=&currentMode=Design 01-09 10:27:34.628: W/ZZ(5197): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA712235E363F7E2DCE7328A1&apiKey=8723708536EF2327DB4E685&apiSecret=F4298CA10BCC6EC710B9F1C&deviceId=359100040924230&deviceLatitude=&deviceLongitude=&deviceModel=samsung-SAMSUNG-SGH-I717&userId=&currentMode=Design 01-09 10:27:34.668: W/ZZ(5197): BT_viewUtilities:getRoundedImage rounding image with radius: "25" 01-09 10:27:34.688: W/ZZ(5197): BT_screen_menuButtons: using button image from project bundle: "musicnotes2.png" 01-09 10:27:34.758: W/ZZ(5197): BT_viewUtilities:getRoundedImage rounding image with radius: "25" 01-09 10:27:34.798: W/ZZ(5197): BT_screen_menuButtons: using button image from project bundle: "camera.png" 01-09 10:27:34.828: W/ZZ(5197): BT_viewUtilities:getRoundedImage rounding image with radius: "25" 01-09 10:27:34.848: W/ZZ(5197): BT_screen_menuButtons:onCreateOptionsMenu JSON itemId: "5CEAF026F3D30721BAE063C" 01-09 10:27:34.848: W/ZZ(5197): BT_screen_menuButtons:onCreateOptionsMenu JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:34.918: D/memalloc(5197): ion: Mapped buffer base:0x5cbee000 size:4096000 offset:0 fd:66 01-09 10:27:35.068: D/CLIPBOARD(5197): Hide Clipboard dialog at Starting input: finished by someone else... ! 01-09 10:27:35.088: D/memalloc(5197): ion: Unmapping buffer base:0x5bc1c000 size:4096000 01-09 10:27:35.088: D/memalloc(5197): ion: Unmapping buffer base:0x5c20c000 size:4096000 01-09 10:27:35.519: W/ZZ(5197): BT_activity_host:handleReportToCloudResults appLastModifiedOnServer (value on server): Thu, 09 Jan 2014 06:49:07 -0800 01-09 10:27:35.519: W/ZZ(5197): BT_fileManager: readTextFileFromCache: "appModified.txt" 01-09 10:27:35.519: W/ZZ(5197): BT_activity_host:handleReportToCloudResults previousModified (value on device): Thu, 09 Jan 2014 06:49:07 -0800 01-09 10:27:35.519: W/ZZ(5197): BT_fileManager: saveTextFileToCache: appModified.txt 01-09 10:27:35.549: W/ZZ(5197): BT_activity_host:handleReportToCloudResults server data not changed, no refresh needed 01-09 10:27:39.042: W/ZZ(5197): BT_screen_menuButtons:button clicked 01-09 10:27:39.042: W/ZZ(5197): BT_screen_menuButtons:handleItemTap loads screen with itemId: "88ADD44CA843A91095502D7" 01-09 10:27:39.042: W/ZZ(5197): BT_application:getScreenDataByItemId itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.052: W/ZZ(5197): BT_screen_menuButtons:loadScreenObject. Loading screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.052: W/ZZ(5197): BT_activity_host:initPluginWithScreenData. Calling helper method in BT_application 01-09 10:27:39.052: W/ZZ(5197): BT_application:initPluginWithScreenData. Creating plugin with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.052: W/ZZ(5197): Email_image:setScreenData JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.052: W/ZZ(5197): BT_activity_host:showFragmentForPlugin. Showing plugin with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.052: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:39.062: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.062: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.072: D/memalloc(5197): ion: Mapped buffer base:0x5c20a000 size:4096000 offset:0 fd:51 01-09 10:27:39.232: W/ZZ(5197): BT_screen_menuButtons:onPause JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:39.232: W/ZZ(5197): BT_screen_menuButtons:onStop JSON itemId: "5CEAF026F3D30721BAE063C" itemType: "BT_screen_menuButtons" itemNickname: "NEVER LOST" 01-09 10:27:39.232: W/ZZ(5197): Email_image:onAttach JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.232: W/ZZ(5197): Email_image:onCreateOptionsMenu JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.242: W/ZZ(5197): Email_image:onCreate JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.242: W/ZZ(5197): Email_image:onCreateView JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.463: W/ZZ(5197): Email_image:onActivityCreated JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.463: W/ZZ(5197): BT_activity_host:configureNavBarAndBackgroundForScreen Calling helper methods in BT_viewUtilities... 01-09 10:27:39.473: W/ZZ(5197): BT_viewUtilities:updateBackgroundColorsForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.473: W/ZZ(5197): BT_viewUtilities:updateBackgroundImageForScreen. Screen with JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.473: W/ZZ(5197): Email_image:onStart JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.473: W/ZZ(5197): Email_image:onResume JSON itemId: "88ADD44CA843A91095502D7" itemType: "Email_image" itemNickname: "righthere" 01-09 10:27:39.473: W/ZZ(5197): Email_image:onResume 01-09 10:27:39.473: W/ZZ(5197): Email_image:onResume set the new file <-------- Right Here.... 01-09 10:27:39.473: I/System.out(5197): Not a DRM File, opening notmally 01-09 10:27:39.473: I/System.out(5197): buffer returned
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 12:19 PM (11 years ago)
I cropped the image in emailImage directory where the plugin is storing the image to a smaller size and now it does not crash (I do now remember the plugin did work once, when I took a pic and it stored it there). Seems the Galaxy Note is taking some huge Images.So it appears the path is good, just to big of an image. Now how to resize. Hmmmm. back to it. hee hee. Yes, the problem is the size of the image. Without the image being resized in a Samsung Note, it takes very big pictures, the plugin fails. I found some code to resize, but am not skilled enough or know where to put it in the plugin to make it work. I did get the plugin to work perfectly if I choose the right size images from my gallery, ones the Note hasn't taken. Here is the code if anyone knows where to put it or ?????? I edited to try and match the email_Image plugin, but don't know where to use it. private Bitmap cropImage(Bitmap selectedImage) { int width = selectedImage.getWidth(); int height = selectedImage.getHeight(); float scale = (float) 350/selectedImage.getHeight(); Matrix matrix = new Matrix(); matrix.postScale(scale, scale); matrix.postRotate(90); // recreate the new Bitmap Bitmap resizedBitmap = Bitmap.createBitmap(selectedImage, 0, 0, width, height, matrix, true); int bmpHtWidth = resizedBitmap.getWidth(); int bmpHeight = resizedBitmap.getHeight(); int bmpTop = (bmpHeight - bmpHtWidth) / 2; return selectedImage;}
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/09/14 04:04 PM (11 years ago)
Go figure - Samsung makes a device that takes pictures so big it crashes the apps that might want to use them. Reason #4328 why I hate Android... Check with GoNorthWest, the author of this plugin. He'll probably be able to direct you where to put the code.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/09/14 05:05 PM (11 years ago)
Thanks, and yea. 3.6 mb photos.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/10/14 10:16 AM (11 years ago)
Hi Everybody, Sorry for my absence in this post...I've not been feeling well lately, so I haven't been doing much of anything. I'll work on getting this addressed and and update out as soon as possible. To be completely honest, it'll be at least a week, as I'm still a bit under the weather. But I'll see what can be done. Thanks! Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
01/10/14 10:24 AM (11 years ago)
OK @GoNorthWest waiting, wish you quick recovery!
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/10/14 03:26 PM (11 years ago)
Yes, take care.....Not a problem. Here is what I have found with the email image plugin on a Samsung note. If, when I am taking a picture, I use the front facing camera, I have no problems. If I use the 13 mpx rear camera, it takes pictures so big that they overflow the memory. That has been the primary problem with my app. If the image could be cropped or resolution changed, that might solve it. another note, and I don't know why, yet. With the options, I get two options that are the same. Clear Image. The list is as so on both the Samsung note, and a T-Mobile prism. The options list - Cancel, Clear Image, Clear Image, Take New Image, and Select Image. The first Clear Image, when clicked, opens up the selection page for email. It appears this is really the Email Image button but is labeled Clear Image. The second Clear Image, does just that. Hmmmm. things that make you go Hmmmm.... still investigating. I also noticed that the image is saved and then when displayed, it is displayed sideways, and gets sent that way in email/messenger, etc. That is on the Samsung Note, using the forward camera. The T-Mobile only has a rear facing camera and doesn't have that issue, sends a nice photo. I likey. So the issue of sideways photo could be related to the Samsung forward facing camera itself. Well, hoping you feel better... kind regards Patrick
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/10/14 07:40 PM (11 years ago)
Well for my Samsung note, I implemented this. It works well for the Samsung but not the T-mobile. At least I am taking pics with the big Camera. Yippee. The output X and Y are configurable. //takeNewImage... public void takeNewImage(){ BT_debugger.showIt(fragmentName + ":takeNewImage"); if(optionsDialog.isShowing()){ optionsDialog.dismiss(); } //launch camera intent... File photo = new File(pathToImage); Intent photoPickerIntent = new Intent("android.media.action.IMAGE_CAPTURE"); photoPickerIntent.putExtra("crop", "true"); photoPickerIntent.putExtra("outputX", 1550); <---------- adjust for crop photoPickerIntent.putExtra("outputY", 1550); <---------- adjust for crop photoPickerIntent.putExtra("aspectX", 1); photoPickerIntent.putExtra("aspectY", 1); photoPickerIntent.putExtra("scale", true); photoPickerIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo)); photoPickerIntent.putExtra("outputFormat", Bitmap.CompressFormat.JPEG.toString()); startActivityForResult(photoPickerIntent, 2); //pass a "2" so we can determine where we came from after user snaps new photo... Having Fun...... Will have to see whats up with the T-Mobile.... and try on these other phones
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/11/14 04:28 PM (11 years ago)
Well, found out that the plugin as I am using it had to be modified in this regard for the option button. had to change the (getString(R.string.imageEmail)) to (getString(R.string.email)) //Email button... final Button btnEmailImage = new Button(this.getActivity()); btnEmailImage.setText(getString(R.string.email)); btnEmailImage.setOnClickListener(new OnClickListener(){ public void onClick(View v){ optionsDialog.cancel(); emailImage(); } }); options.add(btnEmailImage); } Other wise, the button would show Clear Image. Even the documentation in R.java shows this, public static final int imageClear=0x7f07002f; public static final int imageEmail=0x7f070030; for what ever reason it was not showing Email Image, but was showing Clear Image. Changing it to - public static final int email=0x7f07005b; worked great.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/12/14 12:07 AM (11 years ago)
Good stuff...thanks, Patrick! Mark
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
01/18/14 08:19 PM (11 years ago)
With the Samsung and maybe other phones, the "cure" for the issue I was having is to reduce the size of the image that is being saved in the standard camera settings before using the app. Once I had set the image up to a smaller size it works every time. The cropping method works, but not on all cameras so isn't feasible. A note to the users in the app to adjust the size of image captured is now a requirement, but not a detriment. Have to work out a way to "view" the picture after taking so that it is not sideways. It doesn't mail it sideways but the view before sending has it at full resolution and sideways so it is not very pretty at the moment. More work.... ":^)
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/23/14 02:34 PM (11 years ago)
Hi, Not sure if it helps: I had a similar issue, I could take a picture but not email it. Turns out that in the options the second "clear" button should say "email". If I tap on it the image get attached. Got to figure out how to label this button now. Cheers, Farcat
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/23/14 02:40 PM (11 years ago)
Hey Farcat, Download your project files again...the strings.xml file has been updated to reflect Send instead of Cancel. Or, you can change line 26 in the strings.xml file to Send instead of Cancel. Mark
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/23/14 02:47 PM (11 years ago)
Thanks Mark, Sorry for the noob question, where can I locate the strings.xml file? I can't find it anywhere. Farcat
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/23/14 02:49 PM (11 years ago)
It's in your Android package, in res > values. Mark
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
01/23/14 02:56 PM (11 years ago)
Got it now :) and it works well now, thanks for the fix. Farcat
 
Sherry
Lost but trying
Profile
Posts: 137
Reg: Jan 05, 2013
South Africa
11,670
like
01/27/14 01:42 PM (11 years ago)
Thanks for the posts above, I was getting a bit worried because every time I tested the email image option on a Samsung phone it crashed the app but Patrick's posts about image size of photos solved that problem. Just tested it and no crash, I'll definitely add that to the instruction pdf I've included for my users. Also thanks for notes above on a fix via strings.xml it fixed the button issue and I didn't have to download source again :)
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 10:02 AM (11 years ago)
Can someone make me understand all these fixes and where to fix in the code? The app still crashes when I click save after taking photo.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/07/14 10:06 AM (11 years ago)
The strings.xml issue is fixed at buzztouch.com, and will be reflected in any new package you download. The crash related to too large an image has still not been fixed. Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 10:22 AM (11 years ago)
I think my problem is the crash related to too large an image that has still not been fixed. So how do I fix now? This plugin is a must in my new app...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/07/14 10:29 AM (11 years ago)
@Patrickmottox above gave this workaround. You might have to document it for your users: "With the Samsung and maybe other phones, the "cure" for the issue I was having is to reduce the size of the image that is being saved in the standard camera settings before using the app. Once I had set the image up to a smaller size it works every time. The cropping method works, but not on all cameras so isn't feasible. A note to the users in the app to adjust the size of image captured is now a requirement, but not a detriment. Have to work out a way to "view" the picture after taking so that it is not sideways. It doesn't mail it sideways but the view before sending has it at full resolution and sideways so it is not very pretty at the moment. More work.... ":^)"
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 10:39 AM (11 years ago)
where in the code do I set the camera size? and what size should I use?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/07/14 10:49 AM (11 years ago)
I don't believe he's doing it in the code, but rather having the user do it on the device before they take the picture.
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 02:40 PM (11 years ago)
Oh I see now, its done in the device before taking the picture: first problem, I noticed that any size setting above 3.2M 2048x1536 in my Samsung S111 crashes the app; second problem, I noticed that when you click save, the image rotate left.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/07/14 02:45 PM (11 years ago)
The first problem is something I need to fix. The second is likely due to your email program on the device. I've seen that happen on multiple devices not even using this plugin. Mark
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 03:06 PM (11 years ago)
Ok I see, if you can fix the crash related to too large an image this plugin will be great. When will you fix?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/07/14 03:09 PM (11 years ago)
Will try to get it done in the next month. Got tons going on at the moment!
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/07/14 03:21 PM (11 years ago)
Ok dear, please remember Android plugins in your ...tons going on at the moment! LOL.
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
02/08/14 05:44 PM (11 years ago)
I noticed before even choosing to email the image it is displayed in the fragment sideways. The picture is taken, I click to accept it, it is then displayed in the fragment full resolution and sideways. Maybe the camera saving it that way??, until it does some magic in the gallery??? I don't know, but it appears that right here..... //photo from camera... if(requestCode == 2 && resultCode != 0){ //load and remember image... selectedImage = BitmapFactory.decodeFile(pathToImage); //update view... updateImageView(selectedImage); <--------- which is calling this public void updateImageView(Bitmap imageToShow){ BT_debugger.showIt(fragmentName + ":updateImageView"); if(imageToShow != null){ imageViewForEmailedImage.setImageBitmap(imageToShow); ......} When I take a regular picture with the camera, the pic just slides off to the side, and I find it in the gallery normally. When I use the plugin in my app, and take the picture, it saves it in the emailimage directory and it is sideways. Confused..... I did notice with a smaller phone, smaller camera, the pic is displayed and saved normally. So this could be another SAMSUNK thing. hee hee.
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
02/12/14 05:09 AM (11 years ago)
Hey guys, Just to add to the conversation. My client has tested my latest app on 2 devices and they witnessed the same behavior as you described @Patrickmotox. Both devices were Samsung Galaxy S3. I have a Samsung Google phone and the plugin works well. I'll try implementing @Patrickmotox solution and test again. Cheers, Farcat
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
02/12/14 03:31 PM (11 years ago)
Well all the same, one major problem is left- the crash related to too large an image- and @GoNorthWest has promised to fix next month.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
05/16/14 05:49 PM (11 years ago)
Did the large image problem get fixed for the plugin on Buzztouch.com? -- Niraj
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
05/16/14 09:15 PM (11 years ago)
Not yet :-(
 
Patrickmotox
Aspiring developer
Profile
Posts: 89
Reg: Dec 10, 2013
Cameron Park, C...
7,090
like
05/18/14 10:43 PM (11 years ago)
I found and implemented this for the image being sideways in preview. I had to make some changes to work with Buzztouch, but it works great. Add this to the Email plugin. With the errors, just add the imports it is complaining about. You will have to add some variables. I added. boolean isPreviewRunning; Camera mCamera; SurfaceHolder mSurfaceHolder; I also removed all the // updateImageView(null); Actually commented them out, as you see. Works great on Samsungs and on the phones T-mobile and Hauwei Prism, that didn't have the problem. See if it works for you. Tested on android 4.1, 4.2, 4.4... public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { if (isPreviewRunning) { mCamera.stopPreview(); } Parameters parameters = mCamera.getParameters(); Display display = ((WindowManager)getActivity().getSystemService(getActivity().WINDOW_SERVICE)).getDefaultDisplay(); if(display.getRotation() == Surface.ROTATION_0) { parameters.setPreviewSize(height, width); mCamera.setDisplayOrientation(90); } if(display.getRotation() == Surface.ROTATION_90) { parameters.setPreviewSize(width, height); } if(display.getRotation() == Surface.ROTATION_180) { parameters.setPreviewSize(height, width); } if(display.getRotation() == Surface.ROTATION_270) { parameters.setPreviewSize(width, height); mCamera.setDisplayOrientation(180); } mCamera.setParameters(parameters); previewCamera(); } public void previewCamera() { try { mCamera.setPreviewDisplay(mSurfaceHolder); mCamera.startPreview(); isPreviewRunning = true; } catch(Exception e) { } }
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.