Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Ever since I've been able to successfully compile Scratch 2.0 for Android, I've been messing around with the concept of Scratch for Android. Over the past few days, I've been able to import Scratch into Flash Builder, and have imported some Android native extensions to do some pretty neat stuff. Here is a list of what I've added so far.
Added Blocks
(can vibrate?::extension) // Returns true if the device can vibrate________________________________________________________________
vibrate for (2000) ms::extension // Vibrates the device for said amount of ms
(has gyroscope?::extension) // Returns true if the device has a gyroscope________________________________________________________________
(gyro X::extension) // Returns X value of gyroscope. Currently pretty buggy.
(gyro Y::extension) // Returns Y value of gyroscope. Currently pretty buggy.
(gyro Z::extension) // Returns Z value of gyroscope. Currently pretty buggy.
(has GPS?::extension) // Returns true if the device supports geolocation.________________________________________________________________
(Latitude::extension) // Returns the current Latitude of the device.
(Longitude::extension) // Returns the current Longitude of the device.
show message [Message] with title [Title]::extension // Displays an Android pop-up message
send sms message to [12345556789] with message [Message]::extension // Opens the users messaging app, and prepares a message
More to come!
Other Random Additional Features
✓ Fully functional scratch (Camera, sound recording, importing/exporting projects, sprites, and sounds, etc.)
✓ Additional blocks for Android
✓ Additional “top bar” menus
More to come!
TODO
- Fix Bugs (*cough* Gyroscope *cough*)
- Add Zoom Feature (Not quite sure how this should work. Toolbar perhaps? Pinch and zoom? I need helpz wif codez.)
- Optimize for Android - HIGH PRIORITY (Need help) (Currently, it's very hard to use this application because it's not made for a small touch screen)
- Add additional GUI components (Zoom perhaps? Font size? Toolbar items? etc)
- Cloud variables?
- Exporting project as APK? (Huge task, and may require an external program and PC)
One of the biggest and most important tasks in my opinion, is optimizing this for touch screens, and smaller screens. Currently, the UI isn't very responsive to touch, it's small, and extremely hard to use. If anybody would like to help me out with this, I would be forever grateful!
FAQ's
Why Android?
It's a little bit difficult to develop and upkeep a mobile application like this for all devices (although not impossible). There's iOS, Windows Phone, and blackberry (eww) to develop for, and Android is what I've picked. At least to start, Android is going to be my primary focus. It is heavily used, and is my main device of choice.
Development Device
The device I'm using to develop and test with is a Samsung Galaxy S5.
Where Can I Download Andromeda?
Currently, I want to keep this to developers. It's not yet very stable, and is pretty buggy. If you'd like to help develop for Scratchdroid, feel free to let me know. However, at the moment, I don't have github set up for this project.
Last edited by elfin8er (Feb. 2, 2015 06:50:17)
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
I'm stoopid. Any other name suggestions? You can't use ‘Scratch’ in the name.
I might play with the code when you put it up on GitHub.
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Haha, me too. Hence the reason I chose Scratchdroid xD As soon as I can think up a name, I'll upload to github.I'm terrible at thinking of names.I'm stoopid. Any other name suggestions? You can't use ‘Scratch’ in the name.
I might play with the code when you put it up on GitHub.
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Name ideas: Muscle (Got the idea from the Flex compiler xD), GO, Move, Anywhere, BMobile (Be Mobile), Griffin (Cause why not? Also could by Gryphon), Sybaris, Hermes (god of travel?), Pluto, Cyprus
Just trying to think out loud a little bit xD
Just trying to think out loud a little bit xD
Last edited by elfin8er (Jan. 31, 2015 07:55:25)
- nathanprocks
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Go is already a programming language. Name ideas: Muscle (Got the idea from the Flex compiler xD), GO, Move, Anywhere, BMobile (Be Mobile), Griffin (Cause why not? Also could by Gryphon), Sybaris, Hermes (god of travel?), Pluto, Cyprus
Just trying to think out loud a little bit xD
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Most everything I mentioned is probably something… xDGo is already a programming language. Name ideas: Muscle (Got the idea from the Flex compiler xD), GO, Move, Anywhere, BMobile (Be Mobile), Griffin (Cause why not? Also could by Gryphon), Sybaris, Hermes (god of travel?), Pluto, Cyprus
Just trying to think out loud a little bit xD
- CatsUnited
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Hey I never knew they had centre tags. I might try it!(can vibrate?::extension) // Returns true if the device can vibrate________________________________________________________________
vibrate for (2000) ms::extension // Vibrates the device for said amount of ms(has gyroscope?::extension) // Returns true if the device has a gyroscope________________________________________________________________
(gyro X::extension) // Returns X value of gyroscope. Currently pretty buggy.
(gyro Y::extension) // Returns Y value of gyroscope. Currently pretty buggy.
(gyro Z::extension) // Returns Z value of gyroscope. Currently pretty buggy.(has GPS?::extension) // Returns true if the device supports geolocation.________________________________________________________________
(Latitude::extension) // Returns the current Latitude of the device.
(Longitude::extension) // Returns the current Longitude of the device.show message [Message] with title [Title]::extension // Displays an Android pop-up message
send sms message to [12345556789] with message [Message]::extension // Opens the users messaging app, and prepares a message
There are a couple of problems though
when green flag clicked
set [i v] to [ 1]
forever
send sms message to (i) with message [spam spam spam spam spam]::extension
change [i v] by (1)
end
And if you want cloud variables, then you'll need to remove the Lat. and Long. blocks because of
when green flag clicked
set [cloud lat v] to (Latitude::extension)
set [cloud long v] to (Longitude :: extension)
say [Thanks!] for (2) secs
And this
when [timer v] > (-1)
forever
reset timer
end
when [timer v] > (-1)
forever
vibrate for (999999999999999999999999999999999999999999) ms :: extension
end
bottom text
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
This is more of an application to use for yourself. Not necessarily to share projects with others. However, allow me to address a few of the things you've mentioned. Hey I never knew they had centre tags. I might try it!
There are a couple of problems thoughwhen green flag clicked
set [i v] to [ 1]
forever
send sms message to (i) with message [spam spam spam spam spam]::extension
change [i v] by (1)
end
And if you want cloud variables, then you'll need to remove the Lat. and Long. blocks because ofwhen green flag clicked
set [cloud lat v] to (Latitude::extension)
set [cloud long v] to (Longitude :: extension)
say [Thanks!] for (2) secs
And thiswhen [timer v] > (-1)
forever
reset timer
end
when [timer v] > (-1)
forever
vibrate for (999999999999999999999999999999999999999999) ms :: extension
end
First off, the send sms block opens up the users default messenger app and fills in the contact information and message body. It doesn't actually send the sms. The user of the application would have to manually send each and every sms message.
As of right now, the lat and lon blocks only display the location rounded to the nearest whole number. In most cases, this isn't even precise enough to find the correct city. You could get closer using an IP address.
Lastly, I'm thinking about limiting the vibrate block so that it can only vibrate for a few seconds.
I'll admit, this isn't a foolproof application. However, it's no different from using any programming language. Though what's even better, is that with Scratch, it's really easy to inspect the code and make sure nothing fishy is going on.
I've also thought about the idea of detecting when a potentially harmful block of code is used, and warning the user. Seems a little complex though…
- goldfish678
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Maybe Scrandroid? You know, as a workaround?
- MegaApuTurkUltra
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Cool! Can I help code or get a dev copy to use?
$(".box-head")[0].textContent = "committing AT crimes since $whenever"
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
When I can settle on a name, I'll create a github repo and upload there. I'm currently compiling with Flash Builder and honestly couldn't figure out how to compile with the Flex command line, so if you're not sure to compile it with only Flex, you'll need Flash Builder. Cool! Can I help code or get a dev copy to use?
- Zappy1333
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Name ideas: BlockScript, DroidScript, Blockcode/Blocode, BeatScript, Codemixer, Code++, CodeHopper, ApplePie/ApplePie++, Jade, Amber, Andromeda, Galileo, FastTalk, LongTalk, QuickTalk, Jaguar
Just brainstorming ideas, if I can think of any more I will add them
Just brainstorming ideas, if I can think of any more I will add them
Mario AI | Death Pong | Crash Bandicoot Turbo Dash | Flappy Bird Scratch | AI engine | Pokémon Catching Engine G1
Imagine, Program, Be awesome!
- QuillzToxic
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Okay, I want to get involved.
1. If you upload the swf file somewhere (assuming your using flash) I should be able to create a windows phone version that auto updates.
2. Cloud I belive is not allowed unless elfin8er hosts her own server.
3. Make a google plus beta group and allow people to join.
4. Github upload :3
1. If you upload the swf file somewhere (assuming your using flash) I should be able to create a windows phone version that auto updates.
2. Cloud I belive is not allowed unless elfin8er hosts her own server.
3. Make a google plus beta group and allow people to join.
4. Github upload :3
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
1. Yep, using Flash, however, it's using some native Android libraries, so I'm not sure if it could be ported to Windows phone or iOS. Okay, I want to get involved.
1. If you upload the swf file somewhere (assuming your using flash) I should be able to create a windows phone version that auto updates.
2. Cloud I belive is not allowed unless elfin8er hosts her own server.
3. Make a google plus beta group and allow people to join.
4. Github upload :3
2. Yep, I'm willing to possibly host cloud variables if I can figure it out.
3. I may just do this. I'll need to read more into it though.
4. Like I said, I'll upload to github as soon as I can decide on a name.
- BookOwl
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
When will it be out?
who needs signatures
- goldfish678
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
Maybe Scrandroid? You know, as a workaround?
- elfin8er
- Scratcher
100+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
I like it. I kinda want to see if there are any other suggestions.Maybe Scrandroid? You know, as a workaround?
- nathanprocks
- Scratcher
1000+ posts
☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!
I like Andromeda. Name ideas: BlockScript, DroidScript, Blockcode/Blocode, BeatScript, Codemixer, Code++, CodeHopper, ApplePie/ApplePie++, Jade, Amber, Andromeda, Galileo, FastTalk, LongTalk, QuickTalk, Jaguar
Just brainstorming ideas, if I can think of any more I will add them
I don't know much about cross-compiling, but It should work as long as we use the include the Windows and iOS libraries in the project. 1. Yep, using Flash, however, it's using some native Android libraries, so I'm not sure if it could be ported to Windows phone or iOS.
- Discussion Forums
- » Advanced Topics
- » ☎ Andromeda ☎ - Scratch 2.0 Mod For Android - Now On Github!