Discussion Forums  >  Images, Documents, File Locations

Replies: 5    Views: 69

Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
08/26/12 04:55 AM (13 years ago)

more Android woes!

im having difficulty getting images to display in my custom url screens on Android. I placed images in the res/drawable folder but they are not recognised? Later tried putting images in bt_docs folder but the emulator crashes????
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/26/12 07:56 AM (13 years ago)
Post the image file name. BTv? In BTv2.0 all non-HTML images go into the res > drawable folder. I use the Custom URL to display images without a problem. Fred
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
08/26/12 08:23 AM (13 years ago)
its not any single image its all of them. All are png formatted lowercase BT2.0 self hosted Which dir do you have your html images? I tried copying them over to BT_Docs but then eclipse crashes when trying to open the page. Same files work fine in Xcode
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
08/26/12 08:30 AM (13 years ago)
ok, moving files over to BT_Docs folder and previewing the html page in eclipse displays the images so thats the correct file location. However the emulator still seems to crash when trying to display the same page, strange?
 
Walms
Code is Art
Profile
Posts: 235
Reg: Aug 24, 2011
Derby
3,300
like
08/26/12 09:33 AM (13 years ago)
debug data: 08-26 17:28:18.995: E/dalvikvm(305): VM aborting 08-26 17:28:21.526: W/ZZ(328): Creating ultimatefishingguideandroid_appDelegate object. 08-26 17:28:21.526: W/ZZ(328): ultimatefishingguideandroid_appDelegate:loadAudioPlayer 08-26 17:28:21.545: W/ZZ(328): BT_application: Creating root-app object. 08-26 17:28:21.545: W/ZZ(328): BT_device: Creating root-device object. 08-26 17:28:21.545: W/ZZ(328): BT_device: This device uses an Android display density of: 240dpi (dots per inch) 08-26 17:28:21.545: W/ZZ(328): BT_device: This device can take pictures. 08-26 17:28:21.545: W/ZZ(328): BT_device: This device can take videos. 08-26 17:28:21.545: W/ZZ(328): ultimatefishingguideandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 08-26 17:28:21.545: W/ZZ(328): ultimatefishingguideandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 08-26 17:28:21.555: W/ZZ(328): BT_device: This device can send emails. 08-26 17:28:21.565: W/ZZ(328): BT_device: This device is GPS capable. 08-26 17:28:21.565: W/ZZ(328): BT_user: Creating root-user object. 08-26 17:28:21.695: D/dalvikvm(328): GC_FOR_MALLOC freed 2624 objects / 176424 bytes in 64ms 08-26 17:28:21.695: W/ZZ(328): BT_screen_menuButtons:onCreate 08-26 17:28:21.695: D/AndroidRuntime(328): Shutting down VM 08-26 17:28:21.705: W/dalvikvm(328): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 08-26 17:28:21.715: E/AndroidRuntime(328): FATAL EXCEPTION: main 08-26 17:28:21.715: E/AndroidRuntime(328): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ultimatefishingguideandroid/com.ultimatefishingguideandroid.BT_screen_menuButtons}: java.lang.NullPointerException 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.os.Handler.dispatchMessage(Handler.java:99) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.os.Looper.loop(Looper.java:123) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-26 17:28:21.715: E/AndroidRuntime(328): at java.lang.reflect.Method.invokeNative(Native Method) 08-26 17:28:21.715: E/AndroidRuntime(328): at java.lang.reflect.Method.invoke(Method.java:521) 08-26 17:28:21.715: E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 08-26 17:28:21.715: E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-26 17:28:21.715: E/AndroidRuntime(328): at dalvik.system.NativeStart.main(Native Method) 08-26 17:28:21.715: E/AndroidRuntime(328): Caused by: java.lang.NullPointerException 08-26 17:28:21.715: E/AndroidRuntime(328): at com.ultimatefishingguideandroid.BT_viewUtilities.updateBackgroundColorsForScreen(BT_viewUtilities.java:40) 08-26 17:28:21.715: E/AndroidRuntime(328): at com.ultimatefishingguideandroid.BT_screen_menuButtons.onCreate(BT_screen_menuButtons.java:123) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 08-26 17:28:21.715: E/AndroidRuntime(328): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 08-26 17:28:21.715: E/AndroidRuntime(328): ... 11 more
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
10/21/12 10:06 AM (13 years ago)
@Walms, did you get this sorted? I've started getting the same force close with the BT_screen_menuButtons...
 

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.