Changes between Version 16 and Version 17 of GameApp


Ignore:
Timestamp:
Apr 22, 2015, 7:36:22 PM (10 years ago)
Author:
benjialbert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GameApp

    v16 v17  
    1818Tips:
    1919* Use Android Studio!  It is by far the easiest way to create Android Apps!
     20
     21* Go through the android developer tutorial!  It goes over everything you need from creating a GUI to saving data.
     22
    2023* Do not use Android Studio's drag and drop widget feature to create a GUI because it hardcodes values instead of using ratios
    2124  which is bad practice! (this would make the app appear differently on different devices based on the screen size).
    22 * Go through the android developer tutorial!  It goes over everything you need from creating a GUI to saving data.
     25
    2326* Save to the external storage and not internal (Android names part of internal storage as external storage so that a device without
    2427  physical external storage will always be able to store data in "external storage".  Beware of this!)
     28
    2529* When you create a new file, you have to tell the Android operating system that there is a new file.  If you do not do this, it will
    2630  appear as if the program is running smoothly until you try to access the files on a computer; the files do not show up on device viewer!
     
    2933       Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(writeFile)));
    3034  where writeFile was the file I just saved.  (The full code can be seen in through this Wiki here: http://wiki.raidtech.net/browser/
     35
    3136* Use a library like GSON which makes serialization and deserialization a breeze!
     37
    3238* Although GSON will make a JSON file, you still need to represent the code in a human readable format!  For this, I use CSV which I create
    3339  without the help of a library.  I saved individual matches in CSV files and I created a file called SUPER_FILE which combines the CSV files
    3440  into one large spreadsheet.  This spreadsheet shows every team and all the teams' statistics so someone can quickly retrieve general information.
     41
    3542* Use XML to create static layouts (layouts that will stay the same) and Java to create dynamic layouts (layouts that will or may change).