Discussion Forums  >  Uncategorized

Replies: 12    Views: 269

jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
01/03/12 05:07 PM (14 years ago)

Image Gallery for Android on BT Server getting force close

When tapping the image gallery link on my device I get a message that says: Sorry the application myappname (process com.myappname) has stopped unexpectedly. please try again. Force close I have the Image Output Script on my server to pull images and think maybe I have the data url wrong or something.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/03/12 06:46 PM (14 years ago)
Was it working in the Android simulator? any logcat errors there?
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/03/12 06:54 PM (14 years ago)
The app opens fine on my device until tapping on image gallery, haven't tested on the Android simulator. Just checked logcat and no errors showing.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/03/12 07:01 PM (14 years ago)
So logcat is showing nothing when app force closes? no 'unable to start activity' or something? I'll get a look soon, i had some other errors earlier trying to sort out. :)
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/03/12 07:07 PM (14 years ago)
No, app works fine until tap on the image gallery then the force close window pops up and am forced to close on my device.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/03/12 07:10 PM (14 years ago)
Right but when that happens logcat must be telling you something about what caused the force close?
 
Bing Quan
Aspiring developer
Profile
Posts: 94
Reg: Jun 01, 2011
Singapore
5,340
like
01/04/12 01:03 AM (14 years ago)
I got the same problem, but in Buzztouch v1.5 for android, tap on the image gallery, then force closes
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/04/12 06:36 AM (14 years ago)
I've not been able to re-produce this but for sure it's something broken. Like @ianjamespiano mentioned, I would be very very surprised if the Android console (logCat) didn't show an error. Crashes will always be in red and list all sorts of goodies about what went wrong. Does dragging also crash? Single tap? Double tap? Pinch / Zoom?
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/05/12 09:13 AM (14 years ago)
Hi David, I'm not getting any errors inside logCat but am not running the emulator due to slowing down my ancient windows pc. I'm pretty sure I have my data url set up correctly along with the Sample script to pull images. Seems I'm having similar problem as Bing Quan, When tapping on image gallery - shows a loading icon in the middle - suddenly stops - freezes - force closes.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/15/12 11:31 AM (14 years ago)
I'm getting the same issue. Just start playing with the Image Gallery and it's giving the same message 'Sorry the application myappname (process com.myappname) has stopped unexpectedly. please try again. Force close.' Looks like the flickr api is causing the issues. Here's the logcat: 01-15 09:39:24.232: W/ZZ(447): BT_fileManager: saveTextFileToCache: 4E8E916760A9B6304673613_screenData.txt 01-15 09:39:24.232: W/ZZ(447): BT_fileManager: An exception occurred trying to save a text file to the cache? java.io.FileNotFoundException: /data/data/com.jimnielsen/files/4E8E916760A9B6304673613_screenData.txt (Permission denied) 01-15 09:39:24.242: W/ZZ(447): BT_screen_images:parseScreenData 01-15 09:39:24.242: W/ZZ(447): BT_screen_images:parseScreenData EXCEPTION org.json.JSONException: Value jsonFlickrApi( of type java.lang.String cannot be converted to JSONObject 01-15 09:39:24.242: D/AndroidRuntime(447): Shutting down VM 01-15 09:39:24.242: W/dalvikvm(447): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-15 09:39:24.262: E/AndroidRuntime(447): FATAL EXCEPTION: main 01-15 09:39:24.262: E/AndroidRuntime(447): java.lang.ArrayIndexOutOfBoundsException 01-15 09:39:24.262: E/AndroidRuntime(447): at java.util.ArrayList.get(ArrayList.java:313) 01-15 09:39:24.262: E/AndroidRuntime(447): at com.jimnielsen.BT_screen_images.parseScreenData(BT_screen_images.java:478) 01-15 09:39:24.262: E/AndroidRuntime(447): at com.jimnielsen.BT_screen_images$1.handleMessage(BT_screen_images.java:1220) 01-15 09:39:24.262: E/AndroidRuntime(447): at android.os.Handler.dispatchMessage(Handler.java:99) 01-15 09:39:24.262: E/AndroidRuntime(447): at android.os.Looper.loop(Looper.java:123) 01-15 09:39:24.262: E/AndroidRuntime(447): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-15 09:39:24.262: E/AndroidRuntime(447): at java.lang.reflect.Method.invokeNative(Native Method) 01-15 09:39:24.262: E/AndroidRuntime(447): at java.lang.reflect.Method.invoke(Method.java:521) 01-15 09:39:24.262: E/AndroidRuntime(447): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 01-15 09:39:24.262: E/AndroidRuntime(447): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-15 09:39:24.262: E/AndroidRuntime(447): at dalvik.system.NativeStart.main(Native Method) 01-15 09:39:28.753: I/Process(447): Sending signal. PID: 447 SIG: 9
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/18/12 07:42 AM (14 years ago)
same here. it works for iphone but the android part does not work. halfway loading the gallery i get unexpected close every time. both in simulator and phone.
 
zarnie
Android Fan
Profile
Posts: 3
Reg: Jan 13, 2012
chicago
30
like
01/19/12 10:00 PM (14 years ago)
Same here. Android emulator. Everything loads find but when I tap the image gallery I get force close. No errors show, it just closes the app and returns to home screen.
 
zarnie
Android Fan
Profile
Posts: 3
Reg: Jan 13, 2012
chicago
30
like
01/20/12 05:19 PM (14 years ago)
Finally, the errors showed up in logcat, but similar to MGoBlue's above (I think, I'm new at this): This force close issue not related to Flickr though, default values in buzztouch. 01-20 18:09:16.003: E/AndroidRuntime(378): FATAL EXCEPTION: main 01-20 18:09:16.003: E/AndroidRuntime(378): java.lang.ArrayIndexOutOfBoundsException 01-20 18:09:16.003: E/AndroidRuntime(378): at java.util.ArrayList.get(ArrayList.java:313) 01-20 18:09:16.003: E/AndroidRuntime(378): at com.myapp.BT_screen_images.parseScreenData(BT_screen_images.java:495) 01-20 18:09:16.003: E/AndroidRuntime(378): at com.myapp.BT_screen_images$1.handleMessage(BT_screen_images.java:1252) 01-20 18:09:16.003: E/AndroidRuntime(378): at android.os.Handler.dispatchMessage(Handler.java:99) 01-20 18:09:16.003: E/AndroidRuntime(378): at android.os.Looper.loop(Looper.java:123) 01-20 18:09:16.003: E/AndroidRuntime(378): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-20 18:09:16.003: E/AndroidRuntime(378): at java.lang.reflect.Method.invokeNative(Native Method) 01-20 18:09:16.003: E/AndroidRuntime(378): at java.lang.reflect.Method.invoke(Method.java:521) 01-20 18:09:16.003: E/AndroidRuntime(378): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 01-20 18:09:16.003: E/AndroidRuntime(378): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-20 18:09:16.003: E/AndroidRuntime(378): at dalvik.system.NativeStart.main(Native Method) 01-20 18:09:16.102: W/ActivityManager(82): Force finishing activity com.myapp/.BT_activity_root_tabs 01-20 18:09:16.742: W/ActivityManager(82): Activity pause timeout for HistoryRecord{44f6a9f0 com.myapp/.BT_activity_root_tabs} 01-20 18:09:27.665: I/Process(378): Sending signal. PID: 378 SIG: 9 01-20 18:09:28.193: W/ActivityManager(82): Activity destroy timeout for HistoryRecord{44f6a9f0 com.myapp/.BT_activity_root_tabs} 01-20 18:09:28.425: I/WindowManager(82): WIN DEATH: Window{450b6048 com.myapp/com.myapp.BT_activity_root_tabs paused=false} 01-20 18:09:28.463: I/WindowManager(82): WIN DEATH: Window{45163590 com.myapp/com.myapp.BT_screen_images paused=false} 01-20 18:09:28.472: I/WindowManager(82): WIN DEATH: Window{45071598 com.myapp/com.myapp.BT_screen_images paused=false} 01-20 18:09:28.483: I/ActivityManager(82): Process com.myapp (pid 378) has died.
 

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.