photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
09/21/12 08:50 AM (13 years ago)

My android app doesn't refresh and no jpgs

I have done a lot of Ios apps with success on Ios and I'm now doing my first android apps. I followed the various tutorials to install the eclipse environment on my mac and I'm testing my first app on eclipse, but I have several problems: 1. I use menu list with photos, and there is no photos, I did bring them into the project by copying them with the finder and hitting refresh and they appear the Bt_docs file in eclipse, but doesn't appear in the simulator. 2. When I make a change in the screen and menus, it doesn't reflect in the simulator, because I get : "do you want to refresh ?"(after I changed something in Buzztouch), I say yes and then I get There was a problem loading the app's configuration data. See the LogCat (Console) output in Eclipse Here is LogCat : (I see for example that he doesn't my jpg saying there are not in the assest folder, but they are there in assest -> BT_doccs (in Eclipse) 09-21 17:36:50.237: W/ZZ(304): Creating photoshopcs6quickstartandroid_appDelegate object. 09-21 17:36:50.237: W/ZZ(304): photoshopcs6quickstartandroid_appDelegate:loadAudioPlayer 09-21 17:36:50.247: W/ZZ(304): BT_application: Creating root-app object. ######### Edit, removed long output console text...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/21/12 11:06 AM (13 years ago)
Hi Serge, First of all, fantastic interview on the Buzzcast! Very, very interesting! Now, you're going to hate the rest of my answer. For Android, all images need to be in the res > drawable folder of your project. Furthermore, and this is the part you're gonna hate, they need to be in the a_z0_9 format, which means no capital letters, dashes, spaces, or special characters. Essentially just lower case with numbers and/or an underscore. I see that many of your images don't follow that convention. To make sure that this is indeed the problem, rename one of your images to follow the convention, put it in res > drawable, and see if that works. Make sure you also rename the image in your control panel. If you are using the same control panel as your iOS project, this will be a difficult endeavor unfortunately. Mark
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/21/12 11:28 AM (13 years ago)
Hello Mark, Tks very much ! got it on the photos, that's easy to correct. Do you have an idea why I cannot refresh my app. For example I was trying to change the font size and when I refresh I get this error msg : There was a problem loading the app's configuration data. See the LogCat (Console) output in Eclipse By the way this 1.5 app. Tks again for the help, my first time around Eclipse. Serge
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/21/12 12:49 PM (13 years ago)
Hi Serge, Does your emulator have access to the network? Try opening up the dataURL from your BT_Config.txt file in the browser on your emulator and see what happens. If that works, can you post the LogCat output right at the time of the refresh? Mark
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/21/12 01:49 PM (13 years ago)
Hello Mark, I don't quite understand what you mean by Try opening up the dataURL from your BT_Config.txt file in the browser on your emulator and see what happens. But I tryed to google on the google chrome app on the emulator to see if it can go on Internet and it works. Then I did the refresh procedure and here is what I got in the LogCat : 09-21 22:44:56.777: D/dalvikvm(322): GC_FOR_MALLOC freed 3759 objects / 307624 bytes in 62ms 09-21 22:44:56.777: W/ZZ(322): BT_activity_root:loadAppData reading cachedAppConfig.txt from the applications download cache... 09-21 22:44:56.777: W/ZZ(322): BT_activity_root:loadAppData ignoring BT_config.txt file in Eclipse project... 09-21 22:44:56.777: W/ZZ(322): BT_application: validateApplicationData 09-21 22:44:56.827: W/ZZ(322): BT_activity_root: application data appears to be valid JSON... 09-21 22:44:56.827: W/ZZ(322): BT_application: parseJSONData 09-21 22:44:56.887: W/ZZ(322): BT_application: parsing core settings... 09-21 22:44:56.887: W/ZZ(322): BT_application: parsing themes... 09-21 22:44:56.887: W/ZZ(322): BT_application: parsing tabs... 09-21 22:44:56.887: W/ZZ(322): BT_application: parsing screens... 09-21 22:44:56.897: W/ZZ(322): BT_activity_root:loadAppDataWorkerThread downloading app data from: https://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA4625A7BB905F3762B452882&apiKey=E6003A6B1E76639C563CF2D 09-21 22:44:56.897: W/ZZ(322): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA4625A7BB905F3762B452882&apiKey=E6003A6B1E76639C563CF2D 09-21 22:44:56.907: I/global(322): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 09-21 22:44:56.907: W/ZZ(322): BT_activity_root:loadAppData An exception occurred. java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/21/12 01:51 PM (13 years ago)
Hello Mark, I pressed submit a bit too fast, looks like something is wrong with java ? Maybe I need to install something there ? Serge
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/21/12 02:06 PM (13 years ago)
Hi Serge, Never mind my dataURL suggestion....your browser test accomplished the same thing. This is very weird! I don't think it's a java problem, but it could be related to all your images not following the naming convention. Android is super picky about that. In any event, let me see if I can get @David's eyes on this for you. Mark
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/22/12 02:31 AM (13 years ago)
Hello Mark, So I did change all he jpg file name and put it in the res drawable folder, that didn't work the console still says that he could find the jpg. I then put it in the BT_Images files and that worked, the jpg in the menu list appeared being named correctly ! However I still have 3 main issues : 1. still cannot update the app in the simulator when I press refresh I get this error in the Logcat : (I changed the API value for security reasons) 09-22 11:21:24.084: W/ZZ(343): BT_activity_root:loadAppDataWorkerThread downloading app data from: https://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA4625A7BB905F3762B452882&apiKey=E6003E76639C563CF2D 09-22 11:21:24.084: W/ZZ(343): BT_downloader:downloadTextData from URL: https://www.buzztouch.com/appdata/v1.5.php?command=getAppData&appGuid=EA4625A7BB905F3762B452882&apiKey=E6003E76639C563CF2D 09-22 11:21:24.094: I/global(343): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required. 09-22 11:21:24.094: W/ZZ(343): BT_activity_root:loadAppData An exception occurred. java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 2. When I click and try to launch a video as streaming, I get this error : first a message in the simulator : Open Eclipse (Look at the BT_screen_video jave file" and an ok button, I click OK and then nothing and the log cat says : 09-22 11:16:54.064: W/ZZ(343): BT_screen_video:startVideo loading: http://www.photoserge.com/v/pscs6quickstart/Intro.m4v 09-22 11:16:54.084: W/ZZ(343): BT_screen_video playVideo ERROR loading video from: http://www.photoserge.com/v/pscs6quickstart/Intro.m4v EXCEPTION: java.lang.IllegalArgumentException 3. When I went to go to the tab of a photo galery I made I get this error from the emulator : "Sorry ! The application Photoshop CS 6 Quickstart Android has stopped unexpectedly please try again. Don't know what to do, tks for the help ! Serge
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/23/12 10:25 AM (13 years ago)
Hi Serge, Sorry for the delay...was away from my computer a lot yesterday! Not sure what's going on in the first issue. I'll see if I can get @David's eyes on it. For the second one, when you see the "Open Eclipse (Look at..." message, it means that screen is not supported (not finished) for that version of buzztouch. :-( For the last, there should be a LogCat entry right at the time it crashes. Can you post that? Mark
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/23/12 03:43 PM (13 years ago)
Hello Mark, Ok got it one 1, hope David has a clue. On point 2. I don't understand what you mean by screen is not supported (not finished) for that version of buzztouch. Is it not possible to use the video screen with streaming in Android ? I had in the past payed someone to convert some of ios app done on buzztouch with Android and there was some youtube streaming and it was working (this time it is streaming from my server). Please hep me clarify that point I dont quite get it. On point 3. Here is what I get when I click on the gallery Icon (sorry its a bit long ): 09-24 00:38:43.370: W/ZZ(306): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Gallery" 09-24 00:38:43.380: W/ZZ(306): BT_viewUtilities:getNavBarForScreen: setting nav-bar color to: "#333333" 09-24 00:38:43.400: W/ZZ(306): BT_screen_images:backgroundWorkerThread this screen does not use a background image 09-24 00:38:43.410: W/ZZ(306): BT_fileManager:deleteFile 681FB016A2AA8527A5B4367_screenData.txt 09-24 00:38:43.410: W/ZZ(306): BT_fileManager:deleteFile 681FB016A2AA8527A5B4367_screenData.txt does not exist 09-24 00:38:43.430: W/ZZ(306): BT_screen_images: start GPS is set to NO in the applications configuration data, not starting GPS 09-24 00:38:43.430: W/ZZ(306): BT_screen_images:onStart using data from app's configuration file 09-24 00:38:43.430: W/ZZ(306): BT_screen_images:parseScreenData 09-24 00:38:43.700: W/ZZ(306): BT_screen_images:getChildItemDrawable using image from drawables: "cover3.jpg" 09-24 00:38:43.710: W/ZZ(306): BT_screen_images:resetImage 09-24 00:38:43.720: D/AndroidRuntime(306): Shutting down VM 09-24 00:38:43.720: W/dalvikvm(306): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 09-24 00:38:43.830: E/AndroidRuntime(306): FATAL EXCEPTION: main 09-24 00:38:43.830: E/AndroidRuntime(306): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.photoshopcs6quickstartandroid/com.photoshopcs6quickstartandroid.BT_screen_images}: java.lang.NullPointerException 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2503) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:651) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.widget.TabHost.setCurrentTab(TabHost.java:323) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:129) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:453) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.view.View.performClick(View.java:2408) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.view.View$PerformClick.run(View.java:8816) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.os.Handler.handleCallback(Handler.java:587) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.os.Handler.dispatchMessage(Handler.java:92) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.os.Looper.loop(Looper.java:123) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.ActivityThread.main(ActivityThread.java:4627) 09-24 00:38:43.830: E/AndroidRuntime(306): at java.lang.reflect.Method.invokeNative(Native Method) 09-24 00:38:43.830: E/AndroidRuntime(306): at java.lang.reflect.Method.invoke(Method.java:521) 09-24 00:38:43.830: E/AndroidRuntime(306): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 09-24 00:38:43.830: E/AndroidRuntime(306): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 09-24 00:38:43.830: E/AndroidRuntime(306): at dalvik.system.NativeStart.main(Native Method) 09-24 00:38:43.830: E/AndroidRuntime(306): Caused by: java.lang.NullPointerException 09-24 00:38:43.830: E/AndroidRuntime(306): at com.photoshopcs6quickstartandroid.BT_screen_images.setTitleBarAndDescriptionText(BT_screen_images.java:411) 09-24 00:38:43.830: E/AndroidRuntime(306): at com.photoshopcs6quickstartandroid.BT_screen_images.resetImage(BT_screen_images.java:941) 09-24 00:38:43.830: E/AndroidRuntime(306): at com.photoshopcs6quickstartandroid.BT_screen_images.parseScreenData(BT_screen_images.java:497) 09-24 00:38:43.830: E/AndroidRuntime(306): at com.photoshopcs6quickstartandroid.BT_screen_images.onStart(BT_screen_images.java:289) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.Activity.performStart(Activity.java:3781) 09-24 00:38:43.830: E/AndroidRuntime(306): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2636) 09-24 00:38:43.830: E/AndroidRuntime(306): ... 18 more Tks so much for your help Mark I appreciate it ! Serge
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/23/12 04:16 PM (13 years ago)
Hi Serge, For #2, it means that in buzztouch v1.5, @David has not finished coding that screen, and it's not supported. This is for Android only. All screens available in v1.5 for iOS are fully supported (finished) and working. But David began the port over to Android...finished most, but not all the stuff...then started working on buzztouch v2.0. For #3...can't say for sure! Hopefully David can shed some light there as well. Mark
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/23/12 05:34 PM (13 years ago)
Yup... @GoNorthWest is right... Android v1.5 doesn't support several things that iOS does. Image Galleries and Video's are some of them. Issues like this are the main reason we moved to the new Plugin setup with 2.0. With that being said, you could get the Video screens working by using the code in the Video Player in the plugin market. It's designed for 2.0 apps (1.5 apps don't use the plugin architecture) but is basically the same thing. You may also consider updating your v1.5 apps Video code with that Video Player, it's a bit more polished? There is not an image gallery in the market for Android so this is going to be much harder to implement. We tried a few times last year to get an image gallery going in Android with no success. I've heard that @MacApple plans to update his existing image gallery (in market) to support Android but haven't heard any details about this.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/23/12 06:44 PM (13 years ago)
Dang! Totally missed that it was an image gallery in there! I'm so embarrassed! Any thoughts on not being able to load the config data file?
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/24/12 12:28 AM (13 years ago)
Hello David and Mark, Tks for the clarification. So if videos and image galeries are not supported in 1.5, I decided to try for the first time 2.0. The only plug in that I found for playing video in 2.0 is the AT53 video player https://www.buzztouch.com/plugins/plugin.php?pid=3C06F75263AE92A0B802F44 I bought it and installed it. and made a very simple app with just a menu list and a video page to test if the video is working and when I import in eclipse I have an error on that plug in, see the screen shot below, any idea ? : http://cl.ly/image/3S3A200S2o2v Tks for all your guys help, I really want to release on the Android market my apps that have been so much succesful on IOS, but I must say it's not as easy ! Serge
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/24/12 12:42 AM (13 years ago)
Hi Serge, I think you must be the first person to use this on Android (besides us during testing). This is a typo! I have fixed it on the download server and you can either... a) Re download your project OR b) Fix some basic lines of code in the At53_video_player.java file. Search for all occurances (I suspect there will be one) of "davidfriday_appDelegate" and replace it with your app's delegate name. "davidfriday" is the name of the app I was using as a test the other day! This should get you going :-)
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/24/12 12:59 AM (13 years ago)
Hello david, Wow working late ! Tks that worked it took care of the error, now I have another trouble when I went to test the video, I get an error msg and this in the log cat 09-24 09:53:07.239: W/ZZ(309): At53_video_player:playVideo 09-24 09:53:07.269: W/ZZ(309): At53_video_player:playVideo loading from: http://www.photoserge.com/v/pscs6quickstart/Intro.mov 09-24 09:53:07.389: D/MediaPlayer(309): Couldn't open file on client side, trying server side 09-24 09:53:11.710: D/MediaPlayer(309): getMetadata 09-24 09:53:11.719: W/ZZ(309): At53_video_player:videoViewPreparedListener 09-24 09:53:11.740: E/MediaPlayer(309): error (1, -2147483648) 09-24 09:53:11.790: E/MediaPlayer(309): Attempt to call getDuration without a valid mediaplayer 09-24 09:53:11.790: E/MediaPlayer(309): error (-38, 0) 09-24 09:53:11.840: E/MediaPlayer(309): Attempt to call getDuration without a valid mediaplayer 09-24 09:53:11.840: E/MediaPlayer(309): error (-38, 0) 09-24 09:53:11.850: E/MediaPlayer(309): Error (1,-2147483648) 09-24 09:53:11.860: D/VideoView(309): Error: 1,-2147483648 09-24 09:53:11.860: W/ZZ(309): At53_video_player:videoViewErrorListener 09-24 09:53:12.039: W/ZZ(309): At53_video_player:stopVideo Tks for all the help ! Serge
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/24/12 01:19 AM (13 years ago)
late...yup...almost done. Hmm...looks like the videoViewErrorListener was trigged. This event is triggered by Android when something goes haywire. It's almost always related to the player not being able to "load" or "initialize" the video content. Lots of things could cause this...maybe check.. --it's location in the project. Drag it to the BT_Video folder then Refresh the Eclipse project if it's not already there. --it's location online if coming from a URL --it's compression type. I'm not a video expert but HandBrake (your awesome suggestion!) may be able to provide more info about this? Or, the Android docs? I know there are a few different flavors of each file format and each one is handled a bit different. I know for a fact that very very few Android devices can play .mov files so for sure that will need changed. I'll check this post tomorrow and see how you did :-)
 
photoserge
Aspiring developer
Profile
Posts: 146
Reg: Jan 01, 2012
paris
5,410
like
09/25/12 05:01 AM (13 years ago)
Hello David, tks for the answer, I'm checking around to see what video format will stream on Android. Tks for your help ! Serge
 

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.