![]() ![]() These games may look a little bit crude, but with a little imagination, they can still be very fun. Upload the apk, using google drive, and download it on to your phone.Make a signed apk by going to the build menu in Android Studio.If you have done this correctly, you will see the assets in android studio.įinally you will make the Android package. I have some code that I think should be working but it isnt. Open the activity file being renamed in step 5, remove the comment in front the statement in method onCreate and assign the class object of your world class to the variableĭroidfootActivity.worldClass (DroidfootActivity.worldClass = SpaceInvadersWorld.class Ĭopy the folders images and sounds which contain the images and sounds of your Greenfoot scenario into the folder DFTemplate/src/main/assets. I am trying to create a simple mp3 player in green foot and use buttons to control the volume. Please note that you will have to edit all java-files to define the corresponding package-statement as the first statement ( package ).Įliminate all errors in your java-files which can occur due to the differences between the original and the Android Greenfoot class library (see chapter 2). package="" )Ĭopy the java-files of your Greenfoot scenario into the package being renamed in step 4. Open the file AndroidManifest.xml and rename the package-attribute (second line) corresponding to the renaming in step 4 (e.g. ![]() Rename the file/class DFTemplateActivity in folder src in the package being renamed in step 4 (bspw. Open the file strings.xml in folder DFTemplate/src/main/res/values and replace the name DFTemplate by the name of your scenario (e.g. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |