TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
09/25/13 03:18 AM (12 years ago)

Do I need to change the image name in buzztouch for use in Adroid

Hi there, When running the codes in Android, I recognized no image or icon showed. I only import the source code to the new project, did not add any folder for image. As I researched, look like I need to create a new folder under Res > Drawable folder ? What is the name of the folder and what image I need to put there ? Btw, the image name only a-z and 0-9, but in my buzztouch, I uploaded image name like 123-abc-xyz.jpg, so do I need to rename it to "123abcxyz.jpg" and reupload the image ? If so, will it effect the app on iphone that I already released ?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/25/13 03:35 AM (12 years ago)
In android, you never start a file with a number. Bad Juju. You must start with a lowercase character. They must all be lower case, or a numeral, or an underscore. ThisWontWork.png <-- Not Good 2MuchTroubleIfYouDoThis.png <-- Not Good this-wont-work-either.png <-- Not Good mycoolimage.png <-- works fine mycoolimage2.png <-- works fine my_cool_image.png <-- works fine If you've already done this for iOS, then you may be forced into creating a new project for Android, or you could 'move' your images (via the control panel) to a server to be reloaded and cached on the device using the dataURL option. Cheers! -- Smug
 
TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
like
09/25/13 03:46 AM (12 years ago)
I understand the first option, to create a new project for Android. The second option you said I don't quite understand clearly. Which one is more painful to do ?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/25/13 04:10 AM (12 years ago)
The short answer is "Building a new Android Project is less painful, in the long run". When you go to update your iOS app you can combine them again. Cheers! -- Smug
 
TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
like
09/25/13 04:15 AM (12 years ago)
I am building the new Project for Android. My question is after having all the image name in the right format, do I need to create the folder to for them in the source code downloaded and imported to eclipse? If yes, then where and what is the name ?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/25/13 04:21 AM (12 years ago)
If you follow along the 'instructions.pdf' that is included in the download package, you'll see where it instructs you to put your images into the 'res/drawable' directory, in a similar fashion as you did for xcode (although in xcode you added them to BT_images). Be sure that a dialog box pops up, and when it does be sure to check the 'copy' box so it copies the images into your /res/drawable, and not just a 'reference'. The res/drawable folder already exists; you just need to add your resources to it. If you want to get 'really' fancy, there are several drawable folders, one for each Android resolution. so if you wanted to supply four resolutions (low-med-high-xhigh) there are facilities for that. The 'res/drawable' directory is the default directory it will get images from, if the other directories do not have images to match the device resolution. Cheers! -- Smug
 
TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
like
09/25/13 04:26 AM (12 years ago)
That is pretty clear for me at the moment! I will finish up my new project and try what you suggested. Thank you very much ! BR, Toot
 
TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
like
09/25/13 04:56 AM (12 years ago)
I made the new project, put the code in the eclipse and copied the images as suggested. But when i run, I get this error: 09-15 19:06:24.369: E/AndroidRuntime(898): FATAL EXCEPTION: main 09-15 19:06:24.369: E/AndroidRuntime(898): java.lang.RuntimeException: Unable to instantiate application com.newappandroid.newappandroid_appDelegate: java.lang.ClassNotFoundException: com.newappandroid.newappandroid_appDelegate in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar://app/com.newappandroid-1.apk] 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.LoadedApk.makeApplication(LoadedApk.java:466) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3264) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.ActivityThread.access$2200(ActivityThread.java:117) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.os.Handler.dispatchMessage(Handler.java:99) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.os.Looper.loop(Looper.java:130) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.ActivityThread.main(ActivityThread.java:3687) 09-15 19:06:24.369: E/AndroidRuntime(898): at java.lang.reflect.Method.invokeNative(Native Method) 09-15 19:06:24.369: E/AndroidRuntime(898): at java.lang.reflect.Method.invoke(Method.java:507) 09-15 19:06:24.369: E/AndroidRuntime(898): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 09-15 19:06:24.369: E/AndroidRuntime(898): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 09-15 19:06:24.369: E/AndroidRuntime(898): at dalvik.system.NativeStart.main(Native Method) 09-15 19:06:24.369: E/AndroidRuntime(898): Caused by: java.lang.ClassNotFoundException: com.newappandroid.newappandroid_appDelegate in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar://app/com.newappandroid-1.apk] 09-15 19:06:24.369: E/AndroidRuntime(898): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240) 09-15 19:06:24.369: E/AndroidRuntime(898): at java.lang.ClassLoader.loadClass(ClassLoader.java:551) 09-15 19:06:24.369: E/AndroidRuntime(898): at java.lang.ClassLoader.loadClass(ClassLoader.java:511) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.Instrumentation.newApplication(Instrumentation.java:942) 09-15 19:06:24.369: E/AndroidRuntime(898): at android.app.LoadedApk.makeApplication(LoadedApk.java:461) 09-15 19:06:24.369: E/AndroidRuntime(898): ... 11 more
 
TooT
I hate code!
Profile
Posts: 87
Reg: May 12, 2013
Singapore
870
like
09/25/13 05:24 AM (12 years ago)
Ok, I find out it is because I copied the images to the folder in computer. The correct way is drag and drop the images to the res\drawable in eclipse and choose "copy" option. Thank you !
 

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.