Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Convert .sb2 to .apk
- karatebuilderboy
-
100+ posts
Convert .sb2 to .apk
I'm not sure how to do it with the method you described, but you could try compiling to JS with Sulfurous and then using PhoneGap Build to convert to an app. Sulfurous has screen size built in.This worked for me.
1) install adobe air sdk, android sdk, and jave jre
2) create scratch and export to .sb2 (create in turbo mode ideally)
3) convert .sb2 to .swf (auto start and turbo mode if created it in turbo mode)
-http://junebeetle.github.io/converter/online/
4) create .xml file
-looks like this http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
-but remove icons portion
5) create .p12 certificate using keytool
-cmd at C:\Program Files\Java\jre1.8.0_92\bin
-“keytool -genkey -v -keystore scratch.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000”
-more info: https://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobile.html
6) create apk
-cmd at C:\Program Files\AIR\bin
-“adt -package -target apk-captive-runtime -storetype pkcs12 -keystore scratch.p12 -storepass 123456 scratch.apk scratch.xml scratch.swf”
Thank you, it really works. But how to change ratio on 16:9 from 4:3?
- byeres
-
1 post
Convert .sb2 to .apk
Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.
It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.
Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
- jacquesimo
-
100+ posts
Convert .sb2 to .apk
Are you asking how to download the project from Phosphorus?Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.
It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.
Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
- karatebuilderboy
-
100+ posts
Convert .sb2 to .apk
Try using this tutorial I made. https://scratch.mit.edu/projects/116055504/Okay, after copious amounts of research, I have found the following.
The way I converted *.sb2 to *.apk, requires you to compile it with phosphorus (at phosphorus.github.io), put it into a GitHub repository, then run it through Adobe PhoneGap. It will create an *.apk file that you can then either sideload to your Android/Amazon device or post to the Amazon/Google Play Store.
It works, I tried it. The only reason my game isn't up is because I used sprites from an old Zelda game.
Hi
I compile it with phosphorus but I dont know how to put it into a GitHub repository
when I click the package at phosphorus.github.io, open a link to a web page that automatically runs project.
how can take package file to put into Github repository
- 123squirrel
-
55 posts
Convert .sb2 to .apk
I know that there's an .sb2 to .exe compiler, I'm wondering if there has been an .sb2 to .apk or .js compiler.
If there isn't currently one, what programming language would one have to use to create one?
:)
Pre-requisites: A GitHub account, an HTML file editor, general knowledge of computers, and NO COPYRIGHTED MATERIAL!
This is a large issue as copyrighted material (which includes sounds, sprite recolors, and even CC material that is not attributed correctly) in a commercial (and even, in some cases, non-commercial) game or app is grounds for a LAWSUIT, which I highly doubt many of us can afford.
Anyways…
I've got this figured out (well, my method, at least). If you're relatively good at computers, it's only a few simple steps.
- First, compile your game/project with Phosphorus (phosphorus.github.io).
- Second, Put your compiled project into a GitHub repository by doing the following:
- When you've compiled your project, press the button that says “Full Screen”.
Okay, now the rest.
- From this, copy the HTML code, and paste it into your Git Repo as index.html. Also, copy the phosphorus source into your repo.
- After that, use Adobe PhoneGap to compile your project into an *apk or a(n) (insert name of Apple device file here).
- Then test it on your Android(/Apple) Emulator(/Device).
- If it runs well, post it to Amazon, it's free.
Please read the rest of the forum, as other details and questions are explained and answered.[/quote
Uhhh there's an Android app called scratch2apk that's real easy to use
- GizzyGazzy360
-
87 posts
Convert .sb2 to .apk
2017 you say haha! I am from the future and you need to wait until 2019! nyehehehehPhosphorus inside Crosswalk.You could bundle How do you bundle it?
If you bothered to read the tutorials, it's not that hard.
@NitroDragon147's tut is good if you want it open source, but I'd prefer Crosswalk.This worked for me.
1) install adobe air sdk, android sdk, and jave jre
2) create scratch and export to .sb2 (create in turbo mode ideally)
3) convert .sb2 to .swf (auto start and turbo mode if created it in turbo mode)
-http://junebeetle.github.io/converter/online/
4) create .xml file
-looks like this http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
-but remove icons portion
5) create .p12 certificate using keytool
-cmd at C:\Program Files\Java\jre1.8.0_92\bin
-“keytool -genkey -v -keystore scratch.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000”
-more info: https://helpx.adobe.com/digital-publishing-suite/kb/publishing-process-android-amazon-mobile.html
6) create apk
-cmd at C:\Program Files\AIR\bin
-“adt -package -target apk-captive-runtime -storetype pkcs12 -keystore scratch.p12 -storepass 123456 scratch.apk scratch.xml scratch.swf”
This could be confusing for littler kids who want to make apps. Also, too many Adobe things! And you can just wait until 2017 for Scratch 3.0.
- Tiggy475
-
14 posts
Convert .sb2 to .apk
I Know How To Do It, Considering Scratch Projects Are Flash Games. You Can Easily Convert The .sb2 File To A SWF, & Use The SWF To Make The App
STEPS:
1. Create A Account At net2share.com
2. Click ‘Create an app’
3. Click ‘Converter’
4. Choose SWF3
3. Upload The SWF & The Icon
4. Click ‘Converter Types’ Choose ‘AIR-SWF’ Adobe Air Will Run You're App Now.
5. Now, Click ‘Advanced Settings’ & Change The Package Name, & Choose A Market (WARNING: PACKAGE NAMES CAN'T HAVE SPACES)
This Converter Has Not Been Made By Me
Thanks
Doesn't work, cause this site is gone

- snaps1
-
66 posts
Convert .sb2 to .apk
Um, NO. The whole point is so it can be offline and still playable!App Inventor, which is a more advanced drag-and-drop language that is also made by MIT, but can be used to create Android apps.And u can play web pages on it so… U can do it DAT way with phosphorus. There isn't a .sb2 to .apk, but there is
- Discussion Forums
- » Advanced Topics
-
» Convert .sb2 to .apk