Ad Code

How To Use The Youtube Player In Sketchware Pro

Want to use Youtube Player and show your content on any android apk?
Read more to find out how to do it using Sketchware Pro. 

Video thumbnail

Make sure you have the most stable version of Sketchware, 6.1 - 6.4.0 rc05__ If not use this Link to download the latest version.

Open Sketchware and add a YouTube player widget onto your edit_screen, if you know what i mean. You can also decide to add a background linear under it for the purpose of having a white background for User Interface (UI).



Once done, go to Oncreate and add the 'Full Screen mode' block.


Incase you may be missing the block i used above You can Click here (mediafire link) to download an apk that will import all Mod blocks(the blocks are from Arabware). Once you import all blocks, go to any event and look for a mini tab 'Youtube blocks'  as in the lead below..




For the next step in this article, go to Onstart and drag the blocks below to completely control the youtube widget, i mean customize it.


The block getLifeCycle declares how your widget behaves when the user leaves and re-enters the Main activity. Its equally important as the block below it that you'll use to add a link to a specific Video you want to add.

â—‹ Now head back and go to tab 'components' and create a Request Network component to enable the app access Network permission from the device.

Since we already designed the UI in the beginning, we'll compile the project next and see whether it will work or not (if you've been building as you were going through the steps in the article/post).


I made this almost two years after uploading the same tutorial on Youtube Watch it .
I did so only for those that wanted the Blocks and a Project too.
👋👋👋

Post a Comment

2 Comments

  1. Thank you i need the sliding Activity please

    ReplyDelete
  2. Thank you.
    Continue 😘

    ReplyDelete

Ad Code