Discussion Forums  >  Uncategorized

Replies: 8    Views: 370

jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
01/02/12 10:43 AM (14 years ago)

Image Gallery for Android button says Open Eclipse - Look at the BT_screen_images.java file

I have the sdk installed on my device and have been trying to set up an Image Gallery for my first Android App. What exactly should I be looking for here? Not a programmer.) Open Eclipse - Look at the BT_screen_images.java file I have both the Image Output Script & Image Upload Scripts functioning properly on pc browser from what I can tell - Not a programmer.) Also have a Jquery mobile gallery that I would like to be able to integrate so users can save images to sd card. I've tested this with the custom url on buzztoch but it shows a white nav bar on right side. I also have tested the jquery mobile gallery with the custom html but the gallery doesn't come out correctly. Any assistance is much appreciated. Not a programmer but I love learning code and Buzztouch.
 
jeffb
Lost but trying
Profile
Posts: 40
Reg: Dec 23, 2011
location unknow...
400
like
01/02/12 12:26 PM (14 years ago)
My understanding is, is that that screen, as well as some others, are not completed. It should be great once they become available. ;o)
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/02/12 01:43 PM (14 years ago)
Oh ok, I'll wait for the updates. Thanks Jeff
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/02/12 03:02 PM (14 years ago)
If you're feeling ambitious, have a look at the Image Gallery plugin on the BT server > Plugins page. Download this and look at the .java and .xml layout files. You could incorporate this code in your v1.5 project before we get time to do it. All you'll need to do is adjust the package name in the .java file to match your projects package name and I'll be it works ;-)
 
Annonymous
Profile
01/02/12 03:28 PM (14 years ago)
Search the Forum, there maybe a workaround.
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/02/12 05:36 PM (14 years ago)
David, I'll have a look into that Image Gallery Plugin and the java + xml files but if it looks way over my head I'm just going to wait patiently for the code gurus lol so I don't break any thing. Thanks for everything!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/03/12 03:22 AM (14 years ago)
@ jaymobi: Image Gallery for Android v1.5 is updated and working. Not as sweat as the iOS version but works ;-) You'll need to re-download the Android version of your project so you have the latest files.
 
jaymobi
Android Fan
Profile
Posts: 35
Reg: Nov 09, 2011
location unknow...
350
like
01/03/12 11:18 AM (14 years ago)
Sweet! Much Appreciated for that David...Where's the buy u a beer link? :~) Muchas Gracias
 
themc
Code is Art
Profile
Posts: 75
Reg: Nov 11, 2011
Tilburg
7,050
like
01/20/12 05:32 AM (14 years ago)
im trying to use the gallery for android in 1.5 and 2.0 im still stuck after a few seconds the app ends unexpectely closed. i hid some data for personal reasons but the json scripts are valid and working. the parts i hid are in (for personal reasons hidden) here is the log: 01-20 11:36:20.034: W/ZZ(306): BT_activity_root:onCreate 01-20 11:36:20.134: D/dalvikvm(306): GC_EXTERNAL_ALLOC freed 1378 objects / 92984 bytes in 65ms 01-20 11:36:20.174: W/ZZ(306): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-20 11:36:20.174: W/ZZ(306): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-20 11:36:20.174: W/ZZ(306): BT_device:updateDeviceSize This application considers this to be a small device 01-20 11:36:20.174: W/ZZ(306): BT_device:updateDeviceSize This device is in portrait orientation. 01-20 11:36:20.195: W/ZZ(306): BT_activity_root:loadAppData loading BT_config.txt from /assests folder in Eclipse project... 01-20 11:36:20.455: W/ZZ(306): BT_fileManager: readTextFileFromAssets: /BT_config.txt 01-20 11:36:20.455: I/global(306): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 01-20 11:36:20.484: W/ZZ(306): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 01-20 11:36:20.514: W/ZZ(306): BT_application: getDataURLFromAppData 01-20 11:36:20.634: W/ZZ(306): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 01-20 11:36:20.691: W/ZZ(306): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache... 01-20 11:36:20.691: W/ZZ(306): BT_application: validateApplicationData 01-20 11:36:20.694: W/ZZ(306): BT_activity_root: application data appears to be valid JSON... 01-20 11:36:20.694: W/ZZ(306): BT_application: parseJSONData 01-20 11:36:20.734: W/ZZ(306): BT_application: parsing core settings... 01-20 11:36:20.734: W/ZZ(306): BT_application: parsing themes... 01-20 11:36:20.734: W/ZZ(306): BT_application: parsing tabs... 01-20 11:36:20.734: W/ZZ(306): BT_application: parsing screens... 01-20 11:36:20.774: W/ZZ(306): BT_activity_root:transitionToAppHomeScreen 01-20 11:36:20.774: W/ZZ(306): BT_activity_root:transitionToAppHomeScreen tabbed interface (BT_activity_root_tabs). 01-20 11:36:20.904: W/ZZ(306): BT_activity_root:onCreate 01-20 11:36:21.164: W/ZZ(306): BT_device:updateDeviceConnectionType: ConnectionType: CELL 01-20 11:36:21.164: W/ZZ(306): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-20 11:36:21.164: W/ZZ(306): BT_device:updateDeviceSize This application considers this to be a small device 01-20 11:36:21.164: W/ZZ(306): BT_device:updateDeviceSize This device is in portrait orientation. 01-20 11:36:21.264: W/ZZ(306): BT_activity_root:buildInterfaceUsingAppData.. 01-20 11:36:21.264: W/ZZ(306): BT_activity_root: setting up a tabbed interface. 01-20 11:36:21.274: W/ResourceType(306): No package identifier when getting value for resource number 0x00000000 01-20 11:36:21.274: W/ZZ(306): BT_fileManager:getDrawableFromResourcesByName An exception occurred trying to get the drawable named: envelope.png 01-20 11:36:21.274: W/ZZ(306): BT_application:getScreenDataByItemId 0EACFF8BFD8C9CC6B205F50 01-20 11:36:21.274: W/ZZ(306): BT_application:getScreenDataByItemId screenType is BT_screen_customURL for screen with nickname: mobile support 01-20 11:36:21.274: W/ZZ(306): BT_activity_root:creating tab 0 with item type: BT_screen_customURL and nickname: mobile support 01-20 11:36:21.874: W/ZZ(306): BT_screen_customURL:onCreate 01-20 11:36:21.914: W/ZZ(306): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: mobile support 01-20 11:36:21.914: W/ZZ(306): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: mobile support 01-20 11:36:21.964: W/ZZ(306): BT_screen_customURL:backgroundWorkerThread this screen does not use a background image 01-20 11:36:22.164: W/ZZ(306): BT_screen_customURL: loading URL from: (for personal reasons hidden).php 01-20 11:36:22.164: W/ZZ(306): BT_screen_customURL: loadUrl 01-20 11:36:22.164: W/ZZ(306): BT_screen_customURL: start GPS is set to NO in the applications configuration data, not starting GPS 01-20 11:36:22.164: W/ZZ(306): BT_screen_customURL:reportToCloud checking for updates... 01-20 11:36:22.164: W/ResourceType(306): No package identifier when getting value for resource number 0x00000000 01-20 11:36:22.164: W/ZZ(306): BT_fileManager:getDrawableFromResourcesByName An exception occurred trying to get the drawable named: film.png 01-20 11:36:22.164: W/ZZ(306): BT_application:getScreenDataByItemId CA39349DA59FA5850533C5F 01-20 11:36:22.164: W/ZZ(306): BT_application:getScreenDataByItemId screenType is BT_screen_images for screen with nickname: alle advertenties 01-20 11:36:22.174: W/ZZ(306): BT_activity_root:creating tab 1 with item type: BT_screen_images and nickname: alle advertenties 01-20 11:36:22.174: W/ZZ(306): BT_screen_customURL:reportToCloudWorkerThread getting lastModified from reportToCloudURL http://www.vanboekel.nl/BT-server/api/app/?command=reportToCloud&appGuid=EAFF10158313DE7747AFA40BF&apiKey=2FF13263BD3BDE88AA8166C&apiSecret=A29FCE6D2F771EA46B5E68F&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId= 01-20 11:36:22.174: W/ZZ(306): BT_downloader:downloadTextData from URL: http://www.vanboekel.nl/BT-server/api/app/?command=reportToCloud&appGuid=EAFF10158313DE7747AFA40BF&apiKey=2FF13263BD3BDE88AA8166C&apiSecret=A29FCE6D2F771EA46B5E68F&deviceId=&deviceLatitude=&deviceLongitude=&deviceModel=generic-google_sdk&userId= 01-20 11:36:22.544: W/ZZ(306): b4bandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 01-20 11:36:22.604: W/ZZ(306): b4bandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 01-20 11:36:23.294: I/global(306): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 01-20 11:36:23.294: W/ZZ(306): BT_screen_customURL:handleReportToCloudResults appLastModifiedOnServer (value on server): Fri, 20 Jan 2012 10:26:30 -0800 01-20 11:36:23.304: W/ZZ(306): BT_fileManager: saveTextFileToCache: appModified.txt 01-20 11:36:23.814: W/ZZ(306): BT_screen_customURL:onPageFinished finished Loading: (for personal reasons hidden).php 01-20 11:42:50.213: D/dalvikvm(306): GC_FOR_MALLOC freed 3771 objects / 307128 bytes in 62ms 01-20 11:42:52.824: W/ZZ(306): BT_screen_images:onCreate 01-20 11:42:52.824: W/ZZ(306): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: (for personal reasons hidden) 01-20 11:42:52.824: W/ZZ(306): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: #000000 01-20 11:42:52.824: W/ZZ(306): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: (for personal reasons hidden) 01-20 11:42:52.844: W/ZZ(306): BT_screen_images:backgroundWorkerThread this screen does not use a background image 01-20 11:42:52.875: W/ZZ(306): BT_screen_images: start GPS is set to NO in the applications configuration data, not starting GPS 01-20 11:42:52.875: W/ZZ(306): BT_screen_images:onStart downloading screen data from URL 01-20 11:42:52.884: W/ZZ(306): BT_screen_images:refreshScreenData 01-20 11:42:52.904: W/ZZ(306): BT_screen_images: downloading screen data from (for personal reasons hidden)json.php 01-20 11:42:52.904: W/ZZ(306): BT_downloader:downloadTextData from URL: (for personal reasons hidden)json.php 01-20 11:42:53.384: I/global(306): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 01-20 11:42:53.654: D/dalvikvm(306): GC_FOR_MALLOC freed 1773 objects / 447120 bytes in 177ms 01-20 11:42:53.834: D/dalvikvm(306): GC_FOR_MALLOC freed 287 objects / 368536 bytes in 171ms 01-20 11:42:53.884: D/dalvikvm(306): GC_FOR_MALLOC freed 51 objects / 321544 bytes in 46ms 01-20 11:42:53.944: D/dalvikvm(306): GC_FOR_MALLOC freed 55 objects / 282664 bytes in 60ms 01-20 11:42:53.994: D/dalvikvm(306): GC_FOR_MALLOC freed 36 objects / 279152 bytes in 43ms 01-20 11:42:53.994: W/ZZ(306): BT_fileManager: saveTextFileToCache: CA39349DA59FA5850533C5F_screenData.txt 01-20 11:42:54.022: W/ZZ(306): BT_screen_images:parseScreenData 01-20 11:42:54.054: W/ZZ(306): BT_screen_images:getChildItemDrawable using image from drawables: 10.jpg 01-20 11:42:54.054: W/ResourceType(306): No package identifier when getting value for resource number 0x0000000a 01-20 11:42:54.054: W/ZZ(306): BT_fileManager:getDrawableFromResourcesByName An exception occurred trying to get the drawable named: 10.jpg 01-20 11:42:54.054: W/ZZ(306): BT_screen_images:resetImage 01-20 11:42:54.054: D/AndroidRuntime(306): Shutting down VM 01-20 11:42:54.054: W/dalvikvm(306): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 01-20 11:42:54.064: E/AndroidRuntime(306): FATAL EXCEPTION: main 01-20 11:42:54.064: E/AndroidRuntime(306): java.lang.NullPointerException 01-20 11:42:54.064: E/AndroidRuntime(306): at com.b4bandroid.BT_screen_images.resetImage(BT_screen_images.java:902) 01-20 11:42:54.064: E/AndroidRuntime(306): at com.b4bandroid.BT_screen_images.parseScreenData(BT_screen_images.java:480) 01-20 11:42:54.064: E/AndroidRuntime(306): at com.b4bandroid.BT_screen_images$1.handleMessage(BT_screen_images.java:1220) 01-20 11:42:54.064: E/AndroidRuntime(306): at android.os.Handler.dispatchMessage(Handler.java:99) 01-20 11:42:54.064: E/AndroidRuntime(306): at android.os.Looper.loop(Looper.java:123) 01-20 11:42:54.064: E/AndroidRuntime(306): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-20 11:42:54.064: E/AndroidRuntime(306): at java.lang.reflect.Method.invokeNative(Native Method) 01-20 11:42:54.064: E/AndroidRuntime(306): at java.lang.reflect.Method.invoke(Method.java:521) 01-20 11:42:54.064: E/AndroidRuntime(306): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 01-20 11:42:54.064: E/AndroidRuntime(306): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 01-20 11:42:54.064: E/AndroidRuntime(306): at dalvik.system.NativeStart.main(Native Method)
 

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.