Changes between Version 24 and Version 25 of GameApp
- Timestamp:
- Aug 8, 2015, 11:39:54 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GameApp
v24 v25 1 = = Game App ==2 This group will be working on the game app for this year's game and developing and maintaining the infrastructure for the team website.1 = Game App = 2 This team annually develops a professional, scouting app for this year's game. 3 3 4 Team Mentor: 4 '''Team Mentor''' 5 5 * [mailto://blairlc@verizon.net Blair Chisholm] 6 6 7 Student Members: 7 '''Student Members''' 8 8 * [mailto://benjialbert2@gmail.com Benji Albert] 9 9 * [mailto://genius.ryan.bowers@gmail.com Ryan Bowers] 10 10 11 Resource Downloads: 11 == Resources 12 * [http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Oracle JDK Platform] 12 13 * [http://developer.android.com/sdk/index.html Android Studio] 13 * [http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Oracle JDK Platform]14 14 15 ---------------------------------------------------------------------------------------------------- 16 Tips: 15 == Tips & Tricks 17 16 18 17 General: … … 24 23 GUIs: 25 24 26 * Do notuse Android Studio's drag and drop widget feature to create a GUI because it hardcodes values instead of using ratios27 which is bad practice! ( this would make the app appear differently on different devices based on the screen size).25 * Do ''not'' use Android Studio's drag and drop widget feature to create a GUI because it hardcodes values instead of using ratios 26 which is bad practice! (This would make the app appear differently on different devices based on the screen size.) 28 27 29 28 * Use XML to create static layouts (layouts that will stay the same) and Java to create dynamic layouts (layouts that will or may change). … … 37 36 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! 38 37 I was able to tell Android that there was a new file created using this code: 38 {{{#!java 39 39 ApplicationContextProvider.getContext().sendBroadcast(new Intent( 40 40 Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(writeFile))); 41 where writeFile was the file I just saved. (The full code can be seen through this Wiki here: 42 http://wiki.raidtech.net/browser/gameapp/app/src/main/java/net/raidtech/first/gameapp43 41 }}} 42 where writeFile was the file I just saved. (The full code can be seen through this Wiki [http://wiki.raidtech.net/browser/gameapp/app/src/main/java/net/raidtech/first/gameapp here]. 43 44 44 * Use a library like GSON which makes serialization and deserialization a breeze! 45 45 … … 51 51 52 52 * Instead of distributing via cable, upload the apk--which can be found in the Android Studio Project files--to google drive so scouts can 53 download and install it on their phones. This is faster and less prone to error.53 download and install it on their phones. This is faster and less error-prone.