Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
07/22/13 05:04 AM (12 years ago)

Having trouble with the SP youtube android plugin

I am having trouble with the SP youtube android plugin. I downloaded the jar file and added to build. i added the two permissions and activity but it does not work. I do not know where i am making the mistake as i am complete newbie to programming. Is there any video or visual tutorial I can see to check what mistake i am making? Thanks in advance, Adnan
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/22/13 07:04 AM (12 years ago)
what error are you getting?
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/22/13 07:36 AM (12 years ago)
It says" something not right" Error loading screen ? the application had trouble understanding what to display. and then shows the below massage (please see screenshot below) https://www.buzztouch.com/applications061013/JA4E9FE696F56B935EA61C846/images/error.JPG Kindly help as i am stuck.
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/22/13 07:38 AM (12 years ago)
Did you added the plugin manually or you downloaded the source code with plugin in it present from before.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/22/13 09:33 AM (12 years ago)
I downloaded the plugin with my android project from buzztouch.com. I am using a Html pro screen with links with 6 SP YouTube android screens. it shows the Html page but not the SP YouTube android screens.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
07/22/13 12:00 PM (12 years ago)
Hi @Adnan Basra, Does the link to the video work? LA
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/22/13 02:55 PM (12 years ago)
@ LA . when I tap the link it says "something not right Error loading screen ? the application had trouble understanding what to display". and then shows the below massage (please see screenshot below) https://www.buzztouch.com/applications061013/JA4E9FE696F56B935EA61C846/images/error.JPG
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/23/13 04:46 AM (12 years ago)
This is not a issue with sp youtube pugin.. it is related to html pro plugin. The developer of that plugin could help you best in this situation.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
07/23/13 07:41 AM (12 years ago)
@Adnan Basra, The link to the video or the link in the Html pro? LA
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/23/13 07:50 AM (12 years ago)
Can you paste your BT_config.txt file? Or Dropbox it, or email it to me? That should tell a lot.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/24/13 05:32 AM (12 years ago)
@Chris I emailed you the BT_config.txt file. Kindly check and advise me. Thanks in advance, Adnan
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/24/13 06:14 AM (12 years ago)
Wel your screenshots above aren't working anymore, but you aren't using my HTML Pro plugin, so that's not the issue. I'm not at my computer at the moment, so I can't test out one of your videos on my end to see if I can duplicate it or not. I'll try to later today.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/24/13 07:31 AM (12 years ago)
@ chris Yes i removed the screen with html pro plugin and now using Menu Image Advanced plugin. When I tap the link on the Menu Image Advanced , I see the sp youtube screen with play button and my image poster. But when I tap the play button the app crashes and stops. I do not think there is any problem with your plugin but it will great if you suggest me how to get rid of the problem as I am stuck for last 4 be days on it. Thanks in advance,
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/24/13 08:19 AM (12 years ago)
What's LogCat show?
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/25/13 02:55 AM (12 years ago)
@Chris Sorry for the late reply. The LogCat shows this 07-25 12:50:31.760: W/ZZ(302): parsing7 07-25 12:50:31.760: W/ZZ(302): Cr_menu_advanced:handleItemTap loads screen with itemId: "12E8C7BB45229C88A7C31FB" 07-25 12:50:31.760: W/ZZ(302): BT_application:getScreenDataByItemId with itemId: = "12E8C7BB45229C88A7C31FB" 07-25 12:50:31.800: W/ZZ(302): BT_application:getScreenDataByItemId with itemType: "Sp_youtube_android" with nickname: "Reaching Out" 07-25 12:50:31.800: W/ZZ(302): BT_act_controller:loadScreenObject for screen with itemId: "12E8C7BB45229C88A7C31FB" and itemNickname: "Reaching Out" and itemType: "Sp_youtube_android" 07-25 12:50:31.860: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.890: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.910: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.920: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.940: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.970: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.980: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:31.990: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.002: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.010: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.030: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.040: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.050: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.060: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.072: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.090: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.100: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.110: W/ZZ(302): Cr_menu_advanced: rowLayoutType is None or TitleOnly 07-25 12:50:32.210: W/ZZ(302): Cr_menu_advanced:onPause (BASE CLASS) 07-25 12:50:32.210: W/ZZ(302): Cr_menu_advanced:onPause 07-25 12:50:32.250: W/ZZ(302): BT_activity_base:onCreate (BASE CLASS) 07-25 12:50:32.301: W/ZZ(302): Sp_youtube_android:onCreate 07-25 12:50:32.301: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "Reaching Out" 07-25 12:50:32.311: W/ZZ(302): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#000000" 07-25 12:50:32.311: W/ZZ(302): BT_viewUtilities:getNavBarForScreen building nav. bar for screen with nickname: "Reaching Out" 07-25 12:50:32.330: W/ZZ(302): Sp_youtube_android:backgroundWorkerThread this screen does not use a background image 07-25 12:50:32.360: E/dalvikvm(302): Could not find class 'com.keyes.youtube.OpenYouTubePlayerActivity', referenced from method com.bodoorfoundationandroid.Sp_youtube_android$1.onClick 07-25 12:50:32.360: W/dalvikvm(302): VFY: unable to resolve const-class 191 (Lcom/keyes/youtube/OpenYouTubePlayerActivity;) in Lcom/bodoorfoundationandroid/Sp_youtube_android$1; 07-25 12:50:32.360: D/dalvikvm(302): VFY: replacing opcode 0x1c at 0x001e 07-25 12:50:32.371: D/dalvikvm(302): VFY: dead code 0x0020-0028 in Lcom/bodoorfoundationandroid/Sp_youtube_android$1;.onClick (Landroid/view/View;)V 07-25 12:50:32.371: W/ZZ(302): Sp_youtube_android:onStart (BASE CLASS) 07-25 12:50:32.371: W/ZZ(302): Sp_youtube_android: start GPS is set to NO in the applications configuration data, not starting GPS 07-25 12:50:32.371: W/ZZ(302): Sp_youtube_android:onResume (BASE CLASS) 07-25 12:50:32.680: W/ZZ(302): Cr_menu_advanced:onStop (BASE CLASS) 07-25 12:50:32.680: W/ZZ(302): Cr_menu_advanced:onStop 07-25 12:50:38.660: D/AndroidRuntime(302): Shutting down VM 07-25 12:50:38.660: W/dalvikvm(302): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 07-25 12:50:38.671: E/AndroidRuntime(302): FATAL EXCEPTION: main 07-25 12:50:38.671: E/AndroidRuntime(302): java.lang.NoClassDefFoundError: com.keyes.youtube.OpenYouTubePlayerActivity 07-25 12:50:38.671: E/AndroidRuntime(302): at com.bodoorfoundationandroid.Sp_youtube_android$1.onClick(Sp_youtube_android.java:143) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.view.View.performClick(View.java:2408) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.view.View$PerformClick.run(View.java:8816) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.os.Handler.handleCallback(Handler.java:587) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.os.Handler.dispatchMessage(Handler.java:92) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.os.Looper.loop(Looper.java:123) 07-25 12:50:38.671: E/AndroidRuntime(302): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-25 12:50:38.671: E/AndroidRuntime(302): at java.lang.reflect.Method.invokeNative(Native Method) 07-25 12:50:38.671: E/AndroidRuntime(302): at java.lang.reflect.Method.invoke(Method.java:521) 07-25 12:50:38.671: E/AndroidRuntime(302): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 07-25 12:50:38.671: E/AndroidRuntime(302): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-25 12:50:38.671: E/AndroidRuntime(302): at dalvik.system.NativeStart.main(Native Method) 07-25 12:50:44.400: I/Process(302): Sending signal. PID: 302 SIG: 9 07-25 12:50:45.050: W/ZZ(320): bodoorfoundationandroid_appDelegate: onCreate 07-25 12:50:45.050: W/ZZ(320): bodoorfoundationandroid_appDelegate:loadAudioPlayer 07-25 12:50:45.070: W/ZZ(320): BT_application: Creating root-app object. 07-25 12:50:45.080: W/ZZ(320): BT_device: Creating root-device object. 07-25 12:50:45.080: W/ZZ(320): bodoorfoundationandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 07-25 12:50:45.080: W/ZZ(320): bodoorfoundationandroid_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 07-25 12:50:45.080: W/ZZ(320): BT_device: This device uses an Android display density of: 240dpi (dots per inch) 07-25 12:50:45.090: W/ZZ(320): BT_device: This device can take pictures. 07-25 12:50:45.090: W/ZZ(320): BT_device: This device can take videos. 07-25 12:50:45.090: W/ZZ(320): BT_device: This device can send emails. 07-25 12:50:45.120: W/ZZ(320): BT_device: This device is GPS capable. 07-25 12:50:45.120: W/ZZ(320): BT_user: Creating root-user object. 07-25 12:50:45.220: I/dalvikvm(320): Could not find method com.google.android.gcm.GCMRegistrar.checkDevice, referenced from method com.bodoorfoundationandroid.BT_activity_base.onCreate 07-25 12:50:45.230: W/dalvikvm(320): VFY: unable to resolve static method 851: Lcom/google/android/gcm/GCMRegistrar;.checkDevice (Landroid/content/Context;)V 07-25 12:50:45.230: D/dalvikvm(320): VFY: replacing opcode 0x71 at 0x0046 07-25 12:50:45.240: D/dalvikvm(320): VFY: dead code 0x0049-005d in Lcom/bodoorfoundationandroid/BT_activity_base;.onCreate (Landroid/os/Bundle;)V 07-25 12:50:45.240: I/dalvikvm(320): Could not find method com.google.android.gcm.GCMRegistrar.onDestroy, referenced from method com.bodoorfoundationandroid.BT_activity_base.onDestroy 07-25 12:50:45.240: W/dalvikvm(320): VFY: unable to resolve static method 855: Lcom/google/android/gcm/GCMRegistrar;.onDestroy (Landroid/content/Context;)V 07-25 12:50:45.240: D/dalvikvm(320): VFY: replacing opcode 0x71 at 0x0027 07-25 12:50:45.260: I/dalvikvm(320): Could not find method com.google.android.gcm.GCMRegistrar.register, referenced from method com.bodoorfoundationandroid.BT_activity_base.registerForPush 07-25 12:50:45.260: W/dalvikvm(320): VFY: unable to resolve static method 856: Lcom/google/android/gcm/GCMRegistrar;.register (Landroid/content/Context;[Ljava/lang/String;)V 07-25 12:50:45.260: D/dalvikvm(320): VFY: replacing opcode 0x71 at 0x006e 07-25 12:50:45.260: I/dalvikvm(320): Could not find method com.google.android.gcm.GCMRegistrar.isRegisteredOnServer, referenced from method com.bodoorfoundationandroid.BT_activity_base.registerForPush 07-25 12:50:45.288: W/dalvikvm(320): VFY: unable to resolve static method 854: Lcom/google/android/gcm/GCMRegistrar;.isRegisteredOnServer (Landroid/content/Context;)Z 07-25 12:50:45.288: D/dalvikvm(320): VFY: replacing opcode 0x71 at 0x007d 07-25 12:50:45.290: D/dalvikvm(320): VFY: dead code 0x0080-00a1 in Lcom/bodoorfoundationandroid/BT_activity_base;.registerForPush ()V 07-25 12:50:45.290: D/dalvikvm(320): VFY: dead code 0x00a3-00b9 in Lcom/bodoorfoundationandroid/BT_activity_base;.registerForPush ()V 07-25 12:50:45.310: W/ZZ(320): BT_activity_base:onCreate (BASE CLASS) 07-25 12:50:45.341: W/ZZ(320): Cr_menu_advanced:onCreate 07-25 12:50:45.341: D/AndroidRuntime(320): Shutting down VM 07-25 12:50:45.341: W/dalvikvm(320): threadid=1: thread exiting with uncaught exception (group=0x4001d800) 07-25 12:50:45.360: E/AndroidRuntime(320): FATAL EXCEPTION: main 07-25 12:50:45.360: E/AndroidRuntime(320): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bodoorfoundationandroid/com.bodoorfoundationandroid.Cr_menu_advanced}: java.lang.NullPointerException 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.os.Handler.dispatchMessage(Handler.java:99) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.os.Looper.loop(Looper.java:123) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-25 12:50:45.360: E/AndroidRuntime(320): at java.lang.reflect.Method.invokeNative(Native Method) 07-25 12:50:45.360: E/AndroidRuntime(320): at java.lang.reflect.Method.invoke(Method.java:521) 07-25 12:50:45.360: E/AndroidRuntime(320): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 07-25 12:50:45.360: E/AndroidRuntime(320): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-25 12:50:45.360: E/AndroidRuntime(320): at dalvik.system.NativeStart.main(Native Method) 07-25 12:50:45.360: E/AndroidRuntime(320): Caused by: java.lang.NullPointerException 07-25 12:50:45.360: E/AndroidRuntime(320): at com.bodoorfoundationandroid.BT_viewUtilities.updateBackgroundColorsForScreen(BT_viewUtilities.java:67) 07-25 12:50:45.360: E/AndroidRuntime(320): at com.bodoorfoundationandroid.Cr_menu_advanced.onCreate(Cr_menu_advanced.java:122) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 07-25 12:50:45.360: E/AndroidRuntime(320): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) 07-25 12:50:45.360: E/AndroidRuntime(320): ... 11 more
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/25/13 05:53 AM (12 years ago)
So here is where your app is crashing due to the YouTube plugin: 07-25 12:50:38.671: E/AndroidRuntime(302): FATAL EXCEPTION: main 07-25 12:50:38.671: E/AndroidRuntime(302): java.lang.NoClassDefFoundError: com.keyes.youtube.OpenYouTubePlayerActivity 07-25 12:50:38.671: E/AndroidRuntime(302): at com.bodoorfoundationandroid.Sp_youtube_android$1.onClick(Sp_youtube_android.java:143) Not sure what's at line 143 on that plugin, but whatever's there is causing problems.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/25/13 05:58 AM (12 years ago)
@ chris yes it was YouTube plugin. I got it fixed from another BuzzTouch community's wonderful forum thread. Greatly appreciate your help.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/25/13 06:00 AM (12 years ago)
Great! What was the solution? Would be nice to know for any who might stumble across this thread with your issue later on
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/25/13 06:31 AM (12 years ago)
@ chris yes it was YouTube plugin. I got it fixed from another BuzzTouch community's wonderful forum thread. Greatly appreciate your help.
 
Adnan Basra
Aspiring developer
Profile
Posts: 189
Reg: Apr 26, 2013
Salmiyah
2,940
like
07/25/13 06:35 AM (12 years ago)
The solution was suggested by Ian at the following thread https://www.buzztouch.com/forum/thread.php?tid=E118CE3E015C50158C49342&command=isSearching&currentPage=1&topicTitle=sp%20youtube&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= Error could be due to the Android Private Libraries box not being automatically checked. Right click on project --> Properties-->Order and Export--> Private Libraries should be checked. example: https://dl.dropboxusercontent.com/u/39276137/AndroidPrivateLibraries.png
 
ali
Aspiring developer
Profile
Posts: 10
Reg: Jan 07, 2013
sydney
100
like
11/16/13 01:12 PM (12 years ago)
Hay adnan i Am having problem with this plugin for months even i tried to contact the developer of this app but no response from him i am new to this plugin could u plz help me out with this from start the whole thing plz...
 

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.