Discuss Scratch

karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

Do you know if there's a way to change the icon of the app? I tried http://stackoverflow.com/questions/8230810/app-icon-for-android-in-phonegap, but I couldn't get it to work.

EDIT: Nevermind! After downloading the apk, you can open it with WinRar (or 7zip, etc) and change the icon.

Last edited by karatebuilderboy (July 8, 2016 18:29:12)

-Excelsior-
New Scratcher
8 posts

Convert .sb2 to .apk

Something I've been thinking about through this…

Since an Android screen likely does not have an aspect ratio of 4:3 (like a Scratch project) how would the phone display one of these projects?
Just curious, as I have not yet fully compiled/downloaded a project yet.
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

-Excelsior- wrote:

Something I've been thinking about through this…

Since an Android screen likely does not have an aspect ratio of 4:3 (like a Scratch project) how would the phone display one of these projects?
Just curious, as I have not yet fully compiled/downloaded a project yet.
I haven't tried on a physical device yet, but in Android Studio, the unused space is filled with black.
-Excelsior-
New Scratcher
8 posts

Convert .sb2 to .apk

karatebuilderboy wrote:

-Excelsior- wrote:

Something I've been thinking about through this…

Since an Android screen likely does not have an aspect ratio of 4:3 (like a Scratch project) how would the phone display one of these projects?
Just curious, as I have not yet fully compiled/downloaded a project yet.
I haven't tried on a physical device yet, but in Android Studio, the unused space is filled with black.
Okay, that's what I would expect.
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

I went to publish my app on the amazon app store, but I got an error. How would I edit the package name of my app?
-Excelsior-
New Scratcher
8 posts

Convert .sb2 to .apk

karatebuilderboy wrote:

I went to publish my app on the amazon app store, but I got an error. How would I edit the package name of my app?
I remember there being something in PhoneGap about including a certain file in your repo that would set the name of the app along with other qualities… I forget what it was called, but I can't imagine it's hard to find.
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

-Excelsior- wrote:

karatebuilderboy wrote:

I went to publish my app on the amazon app store, but I got an error. How would I edit the package name of my app?
I remember there being something in PhoneGap about including a certain file in your repo that would set the name of the app along with other qualities… I forget what it was called, but I can't imagine it's hard to find.
I know that many Phonegap apps have config.xml, but I don't know how to make one.
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

Does anyone know how to create a config.xml?

EDIT: Found it! http://docs.build.phonegap.com/en_US/2.9.0/configuring_basics.md.html

Last edited by karatebuilderboy (July 8, 2016 20:00:17)

happyland440
Scratcher
1000+ posts

Convert .sb2 to .apk

If you're an Android junkie, you can run Phosphorus inside WebView.
NitroDragon147
Scratcher
84 posts

Convert .sb2 to .apk

The remaining space is black in the index.html file, but can be changed.
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

NitroDragon147 wrote:

The remaining space is black in the index.html file, but can be changed.
I'm assuming that would be in Index.css?
karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

How does one generate the key for making an ios app?
happyland440
Scratcher
1000+ posts

Convert .sb2 to .apk

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.

Last edited by happyland440 (July 11, 2016 23:16:35)

karatebuilderboy
Scratcher
100+ posts

Convert .sb2 to .apk

happyland440 wrote:

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.
A developer licence for ios? Afterwards, how do I generate the key?
happyland440
Scratcher
1000+ posts

Convert .sb2 to .apk

karatebuilderboy wrote:

happyland440 wrote:

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.
A developer licence for ios? Afterwards, how do I generate the key?

You need Xcode and Mac.
NitroDragon147
Scratcher
84 posts

Convert .sb2 to .apk

happyland440 wrote:

karatebuilderboy wrote:

happyland440 wrote:

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.
A developer licence for ios? Afterwards, how do I generate the key?

You need Xcode and Mac.
Keep in mind a developer's license for Apple costs, if I'm not mistaken, $100/yr.
But, Mac and Xcode can be emulated on Windows!

Last edited by NitroDragon147 (July 12, 2016 18:34:11)

NitroDragon147
Scratcher
84 posts

Convert .sb2 to .apk

karatebuilderboy wrote:

NitroDragon147 wrote:

The remaining space is black in the index.html file, but can be changed.
I'm assuming that would be in Index.css?
Nope, it can be changed in index.html with <body style=“background-color:#XXXXXX”>. (Replace the X's with the hex value of your color of choice)
-Excelsior-
New Scratcher
8 posts

Convert .sb2 to .apk

NitroDragon147 wrote:

happyland440 wrote:

karatebuilderboy wrote:

happyland440 wrote:

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.
A developer licence for ios? Afterwards, how do I generate the key?

You need Xcode and Mac.
Keep in mind a developer's license for Apple costs, if I'm not mistaken, $100/yr.
But, Mac and Xcode can be emulated on Windows!
Isn't that technically illegal?
NitroDragon147
Scratcher
84 posts

Convert .sb2 to .apk

-Excelsior- wrote:

NitroDragon147 wrote:

happyland440 wrote:

karatebuilderboy wrote:

happyland440 wrote:

karatebuilderboy wrote:

How does one generate the key for making an ios app?

Android Studio. You need to buy a developer licence.
A developer licence for ios? Afterwards, how do I generate the key?

You need Xcode and Mac.
Keep in mind a developer's license for Apple costs, if I'm not mistaken, $100/yr.
But, Mac and Xcode can be emulated on Windows!
Isn't that technically illegal?
Assuming you legitimately own a Mac OS, no.
You can't escape the price of the Developer's Account using Windows. I was just saying you don't have to drop $1.5K on a Mac if you already have a Windows and want to post to the App Store.
gregoryshapovalov
Scratcher
5 posts

Convert .sb2 to .apk

lttlgames wrote:

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?

Last edited by gregoryshapovalov (Oct. 24, 2016 16:48:22)

Powered by DjangoBB