Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 26    Views: 52

benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
12/03/14 02:13 AM (9 years ago)

E-mail Image

@GoNorthWest, Just a quick question about E-mail Image I want to translate the menu: Options Close, Clear Image, Email Image, Take New Image, Select Image. Where should I do it, I found those words in many places in the plug in I don't know which is it. Once you take a picture with your plugin, where does it store it? i want to put an image in it with a guide so first time users don't get scared, because the one showing up now is the camera with the red sign around it and it looks like something went wrong. by the way, this is the first plugin that i've used that worked out of the box, didn't need to do anything to it. Only issue i see, but it's too early to say it's the plug in, in android if i hit Select Image, the gallery will open and if i select an image all is fine, but if i hit the back button (android, don't know ios) the app crashes, is this a known thing or is it me?
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/03/14 06:52 AM (9 years ago)
OK translations done, i found the file. But my app is still crashing if go to select image and then hit the android physical back button. any idea?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/03/14 07:22 AM (9 years ago)
Howdy, Sorry I didn't get back to you. But glad you found the file! I can't diagnose the crash unless I have some sort of debug data to look at. Can you post what it says in LogCat when the crash happens? To do that, you'll either need to be running in an emulator, or have your device hooked up to Eclipse. Then the debug output will be in the LogCat tab. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/03/14 11:09 AM (9 years ago)
i don't really know what to give you, maybe this? 12-03 18:59:33.624: E/stp_dump(141): table == NULL || table->table == NULL 12-03 18:59:33.632: E/wpa_supplicant(9499): Add randomness: count=173 entropy=83
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/03/14 11:12 AM (9 years ago)
12-03 19:04:14.315: E/AndroidRuntime(12101): FATAL EXCEPTION: main 12-03 19:04:14.315: E/AndroidRuntime(12101): java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:1, request=1, result=0, data=null} to activity {com.demarinisviaggi/com.demarinisviaggi.BT_activity_host}: java.lang.NullPointerException 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread.deliverResults(ActivityThread.java:3488) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3531) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread.access$1100(ActivityThread.java:156) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.os.Handler.dispatchMessage(Handler.java:99) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.os.Looper.loop(Looper.java:153) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread.main(ActivityThread.java:5297) 12-03 19:04:14.315: E/AndroidRuntime(12101): at java.lang.reflect.Method.invokeNative(Native Method) 12-03 19:04:14.315: E/AndroidRuntime(12101): at java.lang.reflect.Method.invoke(Method.java:511) 12-03 19:04:14.315: E/AndroidRuntime(12101): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) 12-03 19:04:14.315: E/AndroidRuntime(12101): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) 12-03 19:04:14.315: E/AndroidRuntime(12101): at dalvik.system.NativeStart.main(Native Method) 12-03 19:04:14.315: E/AndroidRuntime(12101): Caused by: java.lang.NullPointerException 12-03 19:04:14.315: E/AndroidRuntime(12101): at com.demarinisviaggi.Email_image.onActivityResult(Email_image.java:365) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.Activity.dispatchActivityResult(Activity.java:5315) 12-03 19:04:14.315: E/AndroidRuntime(12101): at android.app.ActivityThread.deliverResults(ActivityThread.java:3484) 12-03 19:04:14.315: E/AndroidRuntime(12101): ... 11 more
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/03/14 01:35 PM (9 years ago)
Thanks! That second part is what I was looking for. I'll spend some time investigating tonight. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/03/14 04:13 PM (9 years ago)
Email_image.onActivityResult(Email_image.java:365) This is the only thing i see that it might be, but you know better, anyways thanks and no rush.
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/04/14 05:19 AM (9 years ago)
Mark I received an e-mail telling me that there was a new post from you, but it's not here, i don't know if you posted something or not, first time it happens. So if you did please repost, if you didn't, sorry.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/04/14 07:25 AM (9 years ago)
Nope, didn't post anything! I'll try to get to some debug today. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/04/14 09:24 AM (9 years ago)
ok thanks, strange i received that e-mail.
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/09/14 09:01 AM (9 years ago)
did you get a chance to look into your plugin?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/09/14 09:07 AM (9 years ago)
Not yet...very sorry. Been super busy with work and life. I'm traveling the next few days, so I might have some time in the hotel. Appreciate your patience! Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/09/14 12:05 PM (9 years ago)
ok thanks i'll be waiting.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/10/14 10:05 PM (9 years ago)
Hello! So, I've done some extensive testing on my Nexus 7 tablet, and cannot get it to crash at all. I followed the repro steps you mention above, and everything works as expected. I tried everything I could to crash it, but to no avail. Can you let me know what device you are running and what version of Android you have on it? I haven't received this crash report from anybody else, so I'm thinking it might be specific to your device. But we'll see if we can figure it out! Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/11/14 02:55 AM (9 years ago)
ok, i will try on different devices and let you know, my device is android 4.2.1 Star7589 (GT-N7102). I didn't try on emulator because for some reason mine doesn't work and i didn't spend any time to try to solve it.
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/11/14 07:25 AM (9 years ago)
I made a new test app with only your plugin, tested it on my device and a tablet Voyo Q101 android 4.2.2, still the same error, they both use the same usb driver, could this be a problem? Do you happen to know if the andyroid.net can be used as emulator?
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/11/14 07:34 AM (9 years ago)
Ok tested on andy as emulator and i get the same crash 12-11 15:24:01.548: E/AndroidRuntime(9208): FATAL EXCEPTION: main 12-11 15:24:01.548: E/AndroidRuntime(9208): java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=0, data=null} to activity {com.testmail/com.testmail.BT_activity_host}: java.lang.NullPointerException 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread.deliverResults(ActivityThread.java:3319) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread.access$1100(ActivityThread.java:141) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.os.Handler.dispatchMessage(Handler.java:99) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.os.Looper.loop(Looper.java:137) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread.main(ActivityThread.java:5041) 12-11 15:24:01.548: E/AndroidRuntime(9208): at java.lang.reflect.Method.invokeNative(Native Method) 12-11 15:24:01.548: E/AndroidRuntime(9208): at java.lang.reflect.Method.invoke(Method.java:511) 12-11 15:24:01.548: E/AndroidRuntime(9208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 12-11 15:24:01.548: E/AndroidRuntime(9208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 12-11 15:24:01.548: E/AndroidRuntime(9208): at dalvik.system.NativeStart.main(Native Method) 12-11 15:24:01.548: E/AndroidRuntime(9208): Caused by: java.lang.NullPointerException 12-11 15:24:01.548: E/AndroidRuntime(9208): at com.testmail.Email_image.onActivityResult(Email_image.java:365) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.Activity.dispatchActivityResult(Activity.java:5297) 12-11 15:24:01.548: E/AndroidRuntime(9208): at android.app.ActivityThread.deliverResults(ActivityThread.java:3315) 12-11 15:24:01.548: E/AndroidRuntime(9208): ... 11 more the andy emulator says model GT-P5200 Android 4.2.2
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/14 08:34 AM (9 years ago)
Howdy, I'm not quite sure what to say about this. Without having access to an actual device that it's failing on, it's very hard to debug, even with the good stuff that you've posted. And the fact that others have used this plugin without issue makes me thing that it's somehow related to your particular environment. Are you using self-hosted or buzztouch.com? Have you downloaded the project recently to ensure you are getting the most recent files? Can you expand on why you hit the back button after selecting an image? That "should" take you back to the previous plugin screen. I'm assuming that means you decided against sending the image, or doing anything else with it? Thanks, and sorry you're having so much difficulty with this plugin. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/11/14 08:48 AM (9 years ago)
Yes self hosted, the project it's totally new. I don't hit the back button after selecting an image. I open you plugin, touch the screen, the option menu comes out, hit select image and i've changed my mind i don't want to select one anymore, so i hit back and boom (Unfortunately, App name has stopped) i'll set up my mac with eclipse and try from there and let you know
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/14 08:51 AM (9 years ago)
OK, cool. I'll try and repro again tonight, and will try with an emulator as well (if I can get one running). Have you ensured that the plugin is at the latest level? Just trying to cover all the bases. Thanks! Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/11/14 02:12 PM (9 years ago)
yes i just bought the plugin, still no go, and i don't know what else to try, i've also removed java and installed it fresh, i've fixed the emulator on eclipse and trying with more than one emulator, still didn't work, plus i've installed it on mac, with emulator and exactly the same problem, i've made 2 new apps with only the your plugin and still the same, advice what else can i try? I've also signed an apk and tried installing it without eclipse and still the same, here is the .apk if you want to try it on your device: files.benedettoapp.it/forum-files/testmail.apk
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/14 02:18 PM (9 years ago)
Cool...thanks for the apk. I'll give it a test when I get home tonight. That way I can hook it up to a debugger and see what's up. Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/11/14 10:58 PM (9 years ago)
So, this is weird, and I'll start by saying I have no idea what the problem is, from a coding perspective. But I'll see if I can get some help on that, but it will take time, given work, the holidays, etc. I was able to immediately reproduce the problem using the apk you provided. For some reason, my initial debug thought was that this has something to do with the fact that you used that plugin as the main screen of the app. Typically people use a menu or something to start with. So, I modified an app that had the plugin in it, and that I tested when you initially brought up the issue, and which I knew worked. I changed the home screen to the Email Image plugin, and it crashed like yours did. I then switched back to the way I had it, and it kept crashing. I went into settings, cleared the data for the app, fired it up, and it crashed again. Throwing the dice, I powered down my tablet. Powered it back up, gave the plugin a spin, and everything works just like expected! I'm not suggesting that users will have to go through all that. I am suggesting that you try to make the plugin come under something else, so it's not the home screen. Then, go into Settings > Apps on your device, find the app, and clear the data. Then power cycle your device, and see what happens. It seems like there's something in cache or somewhere that's hanging onto bad data. If all that doesn't work, I honestly don't know what to say, but I will keep working at it. But, like I said above, its gonna take some time. For what it's worth, nobody else has reported this issue, and lots of people successfully use the plugin. So, we'll get you up and running as quickly as we can. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/12/14 03:11 AM (9 years ago)
The plugin is on the home screen only because that is a test and i didn't want anything else to interfere, the main app i have the problem is not on the main screen, it does come up under something else. I did all your steps and more, to clear data, cache, reboot, power off but it's still crashing. well thanks for your help i will continue making the app, leaving the plugin as is, once i publish i will see what happens. Just a question, once you cleared the data, and you didn't have the problem with your own apk, did you retry with mine? and did it not crash?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/12/14 08:50 AM (9 years ago)
I figured you probably weren't going to use that plugin on the first screen of your app, I was just suggesting that might be part of the issue in this case. I did try clearing data, etc, with your app and it still crashed. The difference is that in my app, I move the plugin off the main screen and into a sub screen. So that was the difference that I think "fixed" the issue. Mark
 
benedettoapp
Lost but trying
Profile
Posts: 139
Reg: Jun 22, 2013
Italy
6,340
like
12/12/14 09:24 AM (9 years ago)
When i'm almost done with my app I will send it to you first, so you can have a last look at it to see if you can find something with your debugging tools.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/12/14 10:15 AM (9 years ago)
Sounds like a plan! You can send it to mrkfleming at gmail dot com. Mark
 

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.