├── .gitignore
├── AsynTaskImage
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── ScreenshotAsyncTask.jpg
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── asyntaskimage
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── asyntaskimage
│ │ │ │ ├── AsyncTaskImageDownloader.java
│ │ │ │ ├── AsyncTaskImageDownloaderClean.java
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-mdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-v24
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── drawable-xhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable
│ │ │ └── ic_launcher_background.xml
│ │ │ ├── layout
│ │ │ └── activity_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-anydpi-v33
│ │ │ └── ic_launcher.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── values-night
│ │ │ └── themes.xml
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ ├── data_extraction_rules.xml
│ │ │ └── network_security_config.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── asyntaskimage
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── AsyncTask2024
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── compiler.xml
│ ├── deploymentTargetDropDown.xml
│ ├── gradle.xml
│ ├── migrations.xml
│ └── misc.xml
├── app
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── asynctask2024
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── asynctask2024
│ │ │ │ ├── AsyncTaskImageDownloader.java
│ │ │ │ ├── FirstFragment.java
│ │ │ │ ├── LongOperation.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── SecondFragment.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── scharff.9.png
│ │ │ ├── drawable-mdpi
│ │ │ └── scharff.9.png
│ │ │ ├── drawable-xhdpi
│ │ │ └── scharff.9.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── scharff.9.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── scharff.9.png
│ │ │ ├── drawable
│ │ │ ├── ic_launcher_background.xml
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── content_main.xml
│ │ │ ├── fragment_first.xml
│ │ │ └── fragment_second.xml
│ │ │ ├── menu
│ │ │ └── menu_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ └── ic_launcher.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_adaptive_back.png
│ │ │ └── ic_launcher_adaptive_fore.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_adaptive_back.png
│ │ │ └── ic_launcher_adaptive_fore.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_adaptive_back.png
│ │ │ └── ic_launcher_adaptive_fore.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_adaptive_back.png
│ │ │ └── ic_launcher_adaptive_fore.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_adaptive_back.png
│ │ │ └── ic_launcher_adaptive_fore.png
│ │ │ ├── navigation
│ │ │ └── nav_graph.xml
│ │ │ ├── values-land
│ │ │ └── dimens.xml
│ │ │ ├── values-night
│ │ │ └── themes.xml
│ │ │ ├── values-v23
│ │ │ └── themes.xml
│ │ │ ├── values-w1240dp
│ │ │ └── dimens.xml
│ │ │ ├── values-w600dp
│ │ │ └── dimens.xml
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ └── data_extraction_rules.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── asynctask2024
│ │ └── ExampleUnitTest.java
├── build.gradle.kts
├── christelleasyntask2024.apk
├── employees.json
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── screenshot1.png
├── screenshot2.png
└── settings.gradle.kts
├── Firebase
├── Employee.java
├── README.md
└── employees.json
├── Firebase2024
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── compiler.xml
│ ├── deploymentTargetDropDown.xml
│ ├── gradle.xml
│ ├── inspectionProfiles
│ │ └── Project_Default.xml
│ ├── kotlinc.xml
│ ├── migrations.xml
│ └── misc.xml
├── README.md
├── app
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── firebase2024
│ │ │ └── ExampleInstrumentedTest.kt
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── firebase2024
│ │ │ │ ├── MainActivity.kt
│ │ │ │ ├── employees.json
│ │ │ │ └── ui
│ │ │ │ └── theme
│ │ │ │ ├── Color.kt
│ │ │ │ ├── Theme.kt
│ │ │ │ └── Type.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_launcher_background.xml
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ └── data_extraction_rules.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── firebase2024
│ │ └── ExampleUnitTest.kt
├── build.gradle.kts
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle.kts
├── HelloToast
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── .name
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── hellotoast
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-playstore.png
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── hellotoast
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── ic_launcher_background.xml
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── layout-land
│ │ │ └── activity_main.xml
│ │ │ ├── layout-sw600dp
│ │ │ └── activity_main.xml
│ │ │ ├── layout
│ │ │ └── activity_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── values-night
│ │ │ └── themes.xml
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── ic_launcher_background.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ └── data_extraction_rules.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── hellotoast
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── HelloWorld
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── .name
│ ├── compiler.xml
│ ├── gradle.xml
│ └── misc.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── helloworld
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── helloworld
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-mdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-v24
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── drawable-xhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── cat.9.png
│ │ │ ├── drawable
│ │ │ └── ic_launcher_background.xml
│ │ │ ├── layout
│ │ │ └── activity_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-anydpi-v33
│ │ │ └── ic_launcher.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── values-night
│ │ │ └── themes.xml
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ └── data_extraction_rules.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── helloworld
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── helloworld.apk
└── settings.gradle
├── Kotlin
├── newtryingkotlin.kts
└── tryingkotlin.kts
├── MyFirstApp
├── .gitignore
├── .idea
│ ├── .gitignore
│ ├── .name
│ ├── compiler.xml
│ ├── deploymentTargetDropDown.xml
│ ├── gradle.xml
│ └── misc.xml
├── README.md
├── app-debug.apk
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── myfirstapp
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── myfirstapp
│ │ │ │ ├── FirstFragment.java
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── SecondFragment.java
│ │ └── res
│ │ │ ├── drawable-v24
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── drawable
│ │ │ └── ic_launcher_background.xml
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── content_main.xml
│ │ │ ├── fragment_first.xml
│ │ │ └── fragment_second.xml
│ │ │ ├── menu
│ │ │ └── menu_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-anydpi-v33
│ │ │ └── ic_launcher.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.webp
│ │ │ └── ic_launcher_round.webp
│ │ │ ├── navigation
│ │ │ └── nav_graph.xml
│ │ │ ├── values-land
│ │ │ └── dimens.xml
│ │ │ ├── values-night
│ │ │ └── themes.xml
│ │ │ ├── values-w1240dp
│ │ │ └── dimens.xml
│ │ │ ├── values-w600dp
│ │ │ └── dimens.xml
│ │ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── themes.xml
│ │ │ └── xml
│ │ │ ├── backup_rules.xml
│ │ │ └── data_extraction_rules.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── myfirstapp
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── screen1.jpg
├── screen2.jpg
├── screenfloatingbutton.jpg
├── screentoast.jpg
└── settings.gradle
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | Skip to content
3 | Pull requests
4 | Issues
5 | Codespaces
6 | Marketplace
7 | Explore
8 | @scharffc
9 | scharffc /
10 | testandroid
11 | Public
12 |
13 | Fork your own copy of scharffc/testandroid
14 |
15 | Code
16 | Issues
17 | Pull requests
18 | Actions
19 | Projects
20 | Wiki
21 | Security
22 | Insights
23 |
24 | Settings
25 |
26 | testandroid/.gitignore
27 | @scharffc
28 | scharffc Initial commit
29 | Latest commit 59548d3 Feb 17, 2023
30 | History
31 | 1 contributor
32 | 85 lines (68 sloc) 1.4 KB
33 | # Built application files
34 | *.apk
35 | *.aar
36 | *.ap_
37 | *.aab
38 |
39 | # Files for the ART/Dalvik VM
40 | *.dex
41 |
42 | # Java class files
43 | *.class
44 |
45 | # Generated files
46 | bin/
47 | gen/
48 | out/
49 | # Uncomment the following line in case you need and you don't have the release build type files in your app
50 | # release/
51 |
52 | # Gradle files
53 | .gradle/
54 | build/
55 |
56 | # Local configuration file (sdk path, etc)
57 | local.properties
58 |
59 | # Proguard folder generated by Eclipse
60 | proguard/
61 |
62 | # Log Files
63 | *.log
64 |
65 | # Android Studio Navigation editor temp files
66 | .navigation/
67 |
68 | # Android Studio captures folder
69 | captures/
70 |
71 | # IntelliJ
72 | *.iml
73 | .idea/workspace.xml
74 | .idea/tasks.xml
75 | .idea/gradle.xml
76 | .idea/assetWizardSettings.xml
77 | .idea/dictionaries
78 | .idea/libraries
79 | # Android Studio 3 in .gitignore file.
80 | .idea/caches
81 | .idea/modules.xml
82 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you
83 | .idea/navEditor.xml
84 |
85 | # Keystore files
86 | # Uncomment the following lines if you do not want to check your keystore files in.
87 | #*.jks
88 | #*.keystore
89 |
90 | # External native build folder generated in Android Studio 2.2 and later
91 | .externalNativeBuild
92 | .cxx/
93 |
94 | # Google Services (e.g. APIs or Firebase)
95 | google-services.json
96 |
97 | # Freeline
98 | freeline.py
99 | freeline/
100 | freeline_project_description.json
101 |
102 | # fastlane
103 | fastlane/report.xml
104 | fastlane/Preview.html
105 | fastlane/screenshots
106 | fastlane/test_output
107 | fastlane/readme.md
108 |
109 | # Version control
110 | vcs.xml
111 |
112 | # lint
113 | lint/intermediates/
114 | lint/generated/
115 | lint/outputs/
116 | lint/tmp/
117 | # lint/reports/
118 | Footer
119 | © 2023 GitHub, Inc.
120 | Footer navigation
121 |
122 | Terms
123 | Privacy
124 | Security
125 | Status
126 | Docs
127 | Contact GitHub
128 | Pricing
129 | API
130 | Training
131 | Blog
132 | About
133 |
134 | testandroid/.gitignore at main · scharffc/testandroid
135 |
--------------------------------------------------------------------------------
/AsynTaskImage/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/AsynTaskImage/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/AsynTaskImage/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AsynTaskImage/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
--------------------------------------------------------------------------------
/AsynTaskImage/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/AsynTaskImage/ScreenshotAsyncTask.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/ScreenshotAsyncTask.jpg
--------------------------------------------------------------------------------
/AsynTaskImage/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/AsynTaskImage/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | namespace 'com.example.asyntaskimage'
7 | compileSdk 33
8 |
9 | defaultConfig {
10 | applicationId "com.example.asyntaskimage"
11 | minSdk 24
12 | targetSdk 33
13 | versionCode 1
14 | versionName "1.0"
15 |
16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 | }
24 |
25 | debug {
26 | manifestPlaceholders.cleartextTrafficPermitted ="true"
27 | }
28 | }
29 | compileOptions {
30 | sourceCompatibility JavaVersion.VERSION_1_8
31 | targetCompatibility JavaVersion.VERSION_1_8
32 | }
33 | }
34 |
35 | dependencies {
36 |
37 | implementation 'androidx.appcompat:appcompat:1.6.1'
38 | implementation 'com.google.android.material:material:1.8.0'
39 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
40 | testImplementation 'junit:junit:4.13.2'
41 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
42 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
43 | }
--------------------------------------------------------------------------------
/AsynTaskImage/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/androidTest/java/com/example/asyntaskimage/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.asyntaskimage;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.example.asyntaskimage", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/java/com/example/asyntaskimage/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.asyntaskimage;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 |
7 | public class MainActivity extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_main);
13 |
14 | // Call of AsyncTask class
15 | // Creation of the AsyncTask
16 | // Execution with a random image from picsum.photos
17 | AsyncTaskImageDownloader imgDownloader = new AsyncTaskImageDownloader(this);
18 | // Call without a file type
19 | imgDownloader.execute("https://picsum.photos/300");
20 | // Call with a file type
21 | // imgDownloader.execute("https://picsum.photos/200/300.jpg");
22 | }
23 | }
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-hdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/drawable-hdpi/cat.9.png
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-mdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/drawable-mdpi/cat.9.png
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-xhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/drawable-xhdpi/cat.9.png
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-xxhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/drawable-xxhdpi/cat.9.png
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/drawable-xxxhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/drawable-xxxhdpi/cat.9.png
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
29 |
30 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | AsynTaskImage
3 | An image
4 | Loading...
5 | Random image to load
6 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/main/res/xml/network_security_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | localhost
5 |
6 |
7 |
--------------------------------------------------------------------------------
/AsynTaskImage/app/src/test/java/com/example/asyntaskimage/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.asyntaskimage;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/AsynTaskImage/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '7.4.0' apply false
4 | id 'com.android.library' version '7.4.0' apply false
5 | }
--------------------------------------------------------------------------------
/AsynTaskImage/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Enables namespacing of each library's R class so that its R class includes only the
19 | # resources declared in the library itself and none from the library's dependencies,
20 | # thereby reducing the size of the R class for that library
21 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/AsynTaskImage/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsynTaskImage/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/AsynTaskImage/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Feb 25 06:50:50 EST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/AsynTaskImage/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/AsynTaskImage/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "AsynTaskImage"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/AsyncTask2024/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/deploymentTargetDropDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/migrations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/AsyncTask2024/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/AsyncTask2024/app/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | }
4 |
5 | android {
6 | namespace = "com.example.asynctask2024"
7 | compileSdk = 34
8 |
9 | defaultConfig {
10 | applicationId = "com.example.asynctask2024"
11 | minSdk = 24
12 | targetSdk = 34
13 | versionCode = 1
14 | versionName = "1.0"
15 |
16 | testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | isMinifyEnabled = false
22 | proguardFiles(
23 | getDefaultProguardFile("proguard-android-optimize.txt"),
24 | "proguard-rules.pro"
25 | )
26 | }
27 | }
28 | compileOptions {
29 | sourceCompatibility = JavaVersion.VERSION_1_8
30 | targetCompatibility = JavaVersion.VERSION_1_8
31 | }
32 | buildFeatures {
33 | viewBinding = true
34 | }
35 | }
36 |
37 | dependencies {
38 |
39 | implementation("androidx.appcompat:appcompat:1.6.1")
40 | implementation("com.google.android.material:material:1.11.0")
41 | implementation("androidx.constraintlayout:constraintlayout:2.1.4")
42 | implementation("androidx.navigation:navigation-fragment:2.7.7")
43 | implementation("androidx.navigation:navigation-ui:2.7.7")
44 | testImplementation("junit:junit:4.13.2")
45 | androidTestImplementation("androidx.test.ext:junit:1.1.5")
46 | androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
47 | }
--------------------------------------------------------------------------------
/AsyncTask2024/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/androidTest/java/com/example/asynctask2024/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.example.asynctask2024", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
17 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/java/com/example/asynctask2024/FirstFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import android.os.Bundle;
4 | import android.util.Log;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 |
9 | import androidx.annotation.NonNull;
10 | import androidx.fragment.app.Fragment;
11 | import androidx.navigation.fragment.NavHostFragment;
12 |
13 | import com.example.asynctask2024.databinding.FragmentFirstBinding;
14 |
15 | public class FirstFragment extends Fragment {
16 |
17 | private FragmentFirstBinding binding;
18 |
19 | @Override
20 | public View onCreateView(
21 | LayoutInflater inflater, ViewGroup container,
22 | Bundle savedInstanceState
23 | ) {
24 | Log.i("FIRSTFRAGMENT","In OnCreateView");
25 | binding = FragmentFirstBinding.inflate(inflater, container, false);
26 | return binding.getRoot();
27 |
28 | }
29 |
30 | public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
31 | super.onViewCreated(view, savedInstanceState);
32 |
33 | Log.i("FIRSTFRAGMENT","In OnCreateCreated");
34 |
35 | AsyncTaskImageDownloader imgDownloader = new AsyncTaskImageDownloader(this.getActivity());
36 | imgDownloader.execute("https://picsum.photos/300");
37 | // https://en.wikipedia.org/wiki/PNG#/media/File:PNG_transparency_demonstration_1.png
38 |
39 | LongOperation lop = new LongOperation();
40 | lop.execute("Hello");
41 | try {
42 | Integer myResult = lop.get();
43 | }
44 | catch(Exception e){
45 | e.printStackTrace();
46 | }
47 |
48 |
49 | binding.buttonFirst.setOnClickListener(new View.OnClickListener() {
50 | @Override
51 | public void onClick(View view) {
52 | NavHostFragment.findNavController(FirstFragment.this)
53 | .navigate(R.id.action_FirstFragment_to_SecondFragment);
54 | }
55 | });
56 | }
57 |
58 | @Override
59 | public void onDestroyView() {
60 | super.onDestroyView();
61 | binding = null;
62 | }
63 |
64 | }
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/java/com/example/asynctask2024/LongOperation.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import android.os.AsyncTask;
4 |
5 | public class LongOperation extends AsyncTask {
6 |
7 | @Override
8 | protected Integer doInBackground(String... strings) {
9 | return null;
10 | }
11 |
12 | @Override
13 | protected void onProgressUpdate(Void... values) {
14 | super.onProgressUpdate(values);
15 | }
16 |
17 | @Override
18 | protected void onPostExecute(Integer integer) {
19 | super.onPostExecute(integer);
20 | }
21 |
22 | @Override
23 | protected void onPreExecute() {
24 | super.onPreExecute();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/java/com/example/asynctask2024/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import android.os.Bundle;
4 |
5 | import com.google.android.material.snackbar.Snackbar;
6 |
7 | import androidx.appcompat.app.AppCompatActivity;
8 |
9 | import android.view.View;
10 |
11 | import androidx.core.view.WindowCompat;
12 | import androidx.navigation.NavController;
13 | import androidx.navigation.Navigation;
14 | import androidx.navigation.ui.AppBarConfiguration;
15 | import androidx.navigation.ui.NavigationUI;
16 |
17 | import com.example.asynctask2024.databinding.ActivityMainBinding;
18 |
19 | import android.view.Menu;
20 | import android.view.MenuItem;
21 |
22 | public class MainActivity extends AppCompatActivity {
23 |
24 | private AppBarConfiguration appBarConfiguration;
25 | private ActivityMainBinding binding;
26 |
27 | @Override
28 | protected void onCreate(Bundle savedInstanceState) {
29 | super.onCreate(savedInstanceState);
30 |
31 | binding = ActivityMainBinding.inflate(getLayoutInflater());
32 | setContentView(binding.getRoot());
33 |
34 | setSupportActionBar(binding.toolbar);
35 |
36 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
37 | appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build();
38 | NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
39 |
40 | binding.fab.setOnClickListener(new View.OnClickListener() {
41 | @Override
42 | public void onClick(View view) {
43 | Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
44 | .setAnchorView(R.id.fab)
45 | .setAction("Action", null).show();
46 | }
47 | });
48 | }
49 |
50 | @Override
51 | public boolean onCreateOptionsMenu(Menu menu) {
52 | // Inflate the menu; this adds items to the action bar if it is present.
53 | getMenuInflater().inflate(R.menu.menu_main, menu);
54 | return true;
55 | }
56 |
57 | @Override
58 | public boolean onOptionsItemSelected(MenuItem item) {
59 | // Handle action bar item clicks here. The action bar will
60 | // automatically handle clicks on the Home/Up button, so long
61 | // as you specify a parent activity in AndroidManifest.xml.
62 | int id = item.getItemId();
63 |
64 | //noinspection SimplifiableIfStatement
65 | if (id == R.id.action_settings) {
66 | return true;
67 | }
68 |
69 | return super.onOptionsItemSelected(item);
70 | }
71 |
72 | @Override
73 | public boolean onSupportNavigateUp() {
74 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
75 | return NavigationUI.navigateUp(navController, appBarConfiguration)
76 | || super.onSupportNavigateUp();
77 | }
78 | }
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/java/com/example/asynctask2024/SecondFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import android.os.Bundle;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import androidx.annotation.NonNull;
9 | import androidx.fragment.app.Fragment;
10 | import androidx.navigation.fragment.NavHostFragment;
11 |
12 | import com.example.asynctask2024.databinding.FragmentSecondBinding;
13 |
14 | public class SecondFragment extends Fragment {
15 |
16 | private FragmentSecondBinding binding;
17 |
18 | @Override
19 | public View onCreateView(
20 | LayoutInflater inflater, ViewGroup container,
21 | Bundle savedInstanceState
22 | ) {
23 |
24 | binding = FragmentSecondBinding.inflate(inflater, container, false);
25 | return binding.getRoot();
26 |
27 | }
28 |
29 | public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
30 | super.onViewCreated(view, savedInstanceState);
31 |
32 | binding.buttonSecond.setOnClickListener(new View.OnClickListener() {
33 | @Override
34 | public void onClick(View view) {
35 | NavHostFragment.findNavController(SecondFragment.this)
36 | .navigate(R.id.action_SecondFragment_to_FirstFragment);
37 | }
38 | });
39 | }
40 |
41 | @Override
42 | public void onDestroyView() {
43 | super.onDestroyView();
44 | binding = null;
45 | }
46 |
47 | }
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable-hdpi/scharff.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/drawable-hdpi/scharff.9.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable-mdpi/scharff.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/drawable-mdpi/scharff.9.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable-xhdpi/scharff.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/drawable-xhdpi/scharff.9.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable-xxhdpi/scharff.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/drawable-xxhdpi/scharff.9.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable-xxxhdpi/scharff.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/drawable-xxxhdpi/scharff.9.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
19 |
20 |
21 |
22 |
23 |
24 |
32 |
33 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/layout/content_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
19 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/layout/fragment_first.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
23 |
24 |
33 |
34 |
43 |
44 |
52 |
53 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/layout/fragment_second.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
23 |
24 |
34 |
35 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_back.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-hdpi/ic_launcher_adaptive_fore.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_back.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-mdpi/ic_launcher_adaptive_fore.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_back.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xhdpi/ic_launcher_adaptive_fore.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_back.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_adaptive_fore.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_back.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_adaptive_fore.png
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/navigation/nav_graph.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
17 |
18 |
23 |
24 |
27 |
28 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 48dp
3 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values-v23/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values-w1240dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 200dp
3 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values-w600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 48dp
3 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FF000000
4 | #FFFFFFFF
5 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 16dp
3 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/AsyncTask2024/app/src/test/java/com/example/asynctask2024/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.asynctask2024;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/AsyncTask2024/build.gradle.kts:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id("com.android.application") version "8.2.2" apply false
4 | }
--------------------------------------------------------------------------------
/AsyncTask2024/christelleasyntask2024.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/christelleasyntask2024.apk
--------------------------------------------------------------------------------
/AsyncTask2024/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Enables namespacing of each library's R class so that its R class includes only the
19 | # resources declared in the library itself and none from the library's dependencies,
20 | # thereby reducing the size of the R class for that library
21 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/AsyncTask2024/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/AsyncTask2024/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Feb 24 07:51:09 EST 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/AsyncTask2024/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/AsyncTask2024/screenshot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/screenshot1.png
--------------------------------------------------------------------------------
/AsyncTask2024/screenshot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/AsyncTask2024/screenshot2.png
--------------------------------------------------------------------------------
/AsyncTask2024/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 |
16 | rootProject.name = "AsyncTask2024"
17 | include(":app")
18 |
--------------------------------------------------------------------------------
/Firebase/Employee.java:
--------------------------------------------------------------------------------
1 | package com.pace.examplefirebase;
2 |
3 | public class Employee {
4 |
5 | private String lastName, firstName;
6 |
7 | Employee(){
8 | this.lastName = "empty";
9 | this.firstName = "empty";
10 | }
11 |
12 | Employee(String lName, String fName){
13 | this.lastName = lName;
14 | this.firstName = fName;
15 | }
16 |
17 | public String getFirstName() {
18 | return firstName;
19 | }
20 |
21 | public String getLastName() {
22 | return lastName;
23 | }
24 |
25 | public void setFirstName(String firstName) {
26 | this.firstName = firstName;
27 | }
28 |
29 | public void setLastName(String lastName) {
30 | this.lastName = lastName;
31 | }
32 | }
--------------------------------------------------------------------------------
/Firebase/README.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Firebase/employees.json:
--------------------------------------------------------------------------------
1 | {"employees":[
2 | { "firstName":"John", "lastName":"Doe" },
3 | { "firstName":"Anna", "lastName":"Smith" },
4 | { "firstName":"Peter", "lastName":"Jones" }
5 | ]}
6 |
--------------------------------------------------------------------------------
/Firebase2024/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/deploymentTargetDropDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/kotlinc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/migrations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Firebase2024/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Firebase2024/README.md:
--------------------------------------------------------------------------------
1 | * Kotlin code
2 | * Read and write data from Firebase
3 | * Use of employee.json
4 | * google-services.json not pushed to repo
5 |
--------------------------------------------------------------------------------
/Firebase2024/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/Firebase2024/app/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | id("org.jetbrains.kotlin.android")
4 | id("com.google.gms.google-services")
5 | }
6 |
7 | android {
8 | namespace = "com.example.firebase2024"
9 | compileSdk = 34
10 |
11 | defaultConfig {
12 | applicationId = "com.example.firebase2024"
13 | minSdk = 24
14 | targetSdk = 34
15 | versionCode = 1
16 | versionName = "1.0"
17 |
18 | testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
19 | vectorDrawables {
20 | useSupportLibrary = true
21 | }
22 | }
23 |
24 | buildTypes {
25 | release {
26 | isMinifyEnabled = false
27 | proguardFiles(
28 | getDefaultProguardFile("proguard-android-optimize.txt"),
29 | "proguard-rules.pro"
30 | )
31 | }
32 | }
33 | compileOptions {
34 | sourceCompatibility = JavaVersion.VERSION_1_8
35 | targetCompatibility = JavaVersion.VERSION_1_8
36 | }
37 | kotlinOptions {
38 | jvmTarget = "1.8"
39 | }
40 | buildFeatures {
41 | compose = true
42 | }
43 | composeOptions {
44 | kotlinCompilerExtensionVersion = "1.5.1"
45 | }
46 | packaging {
47 | resources {
48 | excludes += "/META-INF/{AL2.0,LGPL2.1}"
49 | }
50 | }
51 | }
52 |
53 | dependencies {
54 |
55 | implementation("androidx.core:core-ktx:1.12.0")
56 | implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
57 | implementation("androidx.activity:activity-compose:1.8.2")
58 | implementation(platform("androidx.compose:compose-bom:2023.08.00"))
59 | implementation("androidx.compose.ui:ui")
60 | implementation("androidx.compose.ui:ui-graphics")
61 | implementation("androidx.compose.ui:ui-tooling-preview")
62 | implementation("androidx.compose.material3:material3")
63 | implementation("com.google.firebase:firebase-database:20.3.1")
64 | testImplementation("junit:junit:4.13.2")
65 | androidTestImplementation("androidx.test.ext:junit:1.1.5")
66 | androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
67 | androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
68 | androidTestImplementation("androidx.compose.ui:ui-test-junit4")
69 | debugImplementation("androidx.compose.ui:ui-tooling")
70 | debugImplementation("androidx.compose.ui:ui-test-manifest")
71 | implementation(platform("com.google.firebase:firebase-bom:32.8.1"))
72 | implementation("com.google.firebase:firebase-analytics")
73 |
74 | }
--------------------------------------------------------------------------------
/Firebase2024/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/Firebase2024/app/src/androidTest/java/com/example/firebase2024/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.firebase2024
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("com.example.firebase2024", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
15 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/java/com/example/firebase2024/employees.json:
--------------------------------------------------------------------------------
1 | {"employees":[
2 | { "firstName":"John", "lastName":"Doe" },
3 | { "firstName":"Anna", "lastName":"Smith" },
4 | { "firstName":"Peter", "lastName":"Jones" }
5 | ]}
6 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/java/com/example/firebase2024/ui/theme/Color.kt:
--------------------------------------------------------------------------------
1 | package com.example.firebase2024.ui.theme
2 |
3 | import androidx.compose.ui.graphics.Color
4 |
5 | val Purple80 = Color(0xFFD0BCFF)
6 | val PurpleGrey80 = Color(0xFFCCC2DC)
7 | val Pink80 = Color(0xFFEFB8C8)
8 |
9 | val Purple40 = Color(0xFF6650a4)
10 | val PurpleGrey40 = Color(0xFF625b71)
11 | val Pink40 = Color(0xFF7D5260)
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/java/com/example/firebase2024/ui/theme/Theme.kt:
--------------------------------------------------------------------------------
1 | package com.example.firebase2024.ui.theme
2 |
3 | import android.app.Activity
4 | import android.os.Build
5 | import androidx.compose.foundation.isSystemInDarkTheme
6 | import androidx.compose.material3.MaterialTheme
7 | import androidx.compose.material3.darkColorScheme
8 | import androidx.compose.material3.dynamicDarkColorScheme
9 | import androidx.compose.material3.dynamicLightColorScheme
10 | import androidx.compose.material3.lightColorScheme
11 | import androidx.compose.runtime.Composable
12 | import androidx.compose.runtime.SideEffect
13 | import androidx.compose.ui.graphics.toArgb
14 | import androidx.compose.ui.platform.LocalContext
15 | import androidx.compose.ui.platform.LocalView
16 | import androidx.core.view.WindowCompat
17 |
18 | private val DarkColorScheme = darkColorScheme(
19 | primary = Purple80,
20 | secondary = PurpleGrey80,
21 | tertiary = Pink80
22 | )
23 |
24 | private val LightColorScheme = lightColorScheme(
25 | primary = Purple40,
26 | secondary = PurpleGrey40,
27 | tertiary = Pink40
28 |
29 | /* Other default colors to override
30 | background = Color(0xFFFFFBFE),
31 | surface = Color(0xFFFFFBFE),
32 | onPrimary = Color.White,
33 | onSecondary = Color.White,
34 | onTertiary = Color.White,
35 | onBackground = Color(0xFF1C1B1F),
36 | onSurface = Color(0xFF1C1B1F),
37 | */
38 | )
39 |
40 | @Composable
41 | fun Firebase2024Theme(
42 | darkTheme: Boolean = isSystemInDarkTheme(),
43 | // Dynamic color is available on Android 12+
44 | dynamicColor: Boolean = true,
45 | content: @Composable () -> Unit
46 | ) {
47 | val colorScheme = when {
48 | dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
49 | val context = LocalContext.current
50 | if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
51 | }
52 |
53 | darkTheme -> DarkColorScheme
54 | else -> LightColorScheme
55 | }
56 | val view = LocalView.current
57 | if (!view.isInEditMode) {
58 | SideEffect {
59 | val window = (view.context as Activity).window
60 | window.statusBarColor = colorScheme.primary.toArgb()
61 | WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme
62 | }
63 | }
64 |
65 | MaterialTheme(
66 | colorScheme = colorScheme,
67 | typography = Typography,
68 | content = content
69 | )
70 | }
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/java/com/example/firebase2024/ui/theme/Type.kt:
--------------------------------------------------------------------------------
1 | package com.example.firebase2024.ui.theme
2 |
3 | import androidx.compose.material3.Typography
4 | import androidx.compose.ui.text.TextStyle
5 | import androidx.compose.ui.text.font.FontFamily
6 | import androidx.compose.ui.text.font.FontWeight
7 | import androidx.compose.ui.unit.sp
8 |
9 | // Set of Material typography styles to start with
10 | val Typography = Typography(
11 | bodyLarge = TextStyle(
12 | fontFamily = FontFamily.Default,
13 | fontWeight = FontWeight.Normal,
14 | fontSize = 16.sp,
15 | lineHeight = 24.sp,
16 | letterSpacing = 0.5.sp
17 | )
18 | /* Other default text styles to override
19 | titleLarge = TextStyle(
20 | fontFamily = FontFamily.Default,
21 | fontWeight = FontWeight.Normal,
22 | fontSize = 22.sp,
23 | lineHeight = 28.sp,
24 | letterSpacing = 0.sp
25 | ),
26 | labelSmall = TextStyle(
27 | fontFamily = FontFamily.Default,
28 | fontWeight = FontWeight.Medium,
29 | fontSize = 11.sp,
30 | lineHeight = 16.sp,
31 | letterSpacing = 0.5.sp
32 | )
33 | */
34 | )
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Firebase2024
3 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/Firebase2024/app/src/test/java/com/example/firebase2024/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package com.example.firebase2024
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/Firebase2024/build.gradle.kts:
--------------------------------------------------------------------------------
1 | buildscript {
2 | dependencies {
3 | classpath("com.google.gms:google-services:4.4.1")
4 | }
5 | }
6 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
7 | plugins {
8 | id("com.android.application") version "8.2.2" apply false
9 | id("org.jetbrains.kotlin.android") version "1.9.0" apply false
10 | id("com.google.gms.google-services") version "4.4.1" apply false
11 | }
--------------------------------------------------------------------------------
/Firebase2024/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
20 | # Enables namespacing of each library's R class so that its R class includes only the
21 | # resources declared in the library itself and none from the library's dependencies,
22 | # thereby reducing the size of the R class for that library
23 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/Firebase2024/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/Firebase2024/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/Firebase2024/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Apr 20 07:42:29 EDT 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/Firebase2024/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/Firebase2024/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 |
16 | rootProject.name = "Firebase2024"
17 | include(":app")
18 |
--------------------------------------------------------------------------------
/HelloToast/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/HelloToast/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/HelloToast/.idea/.name:
--------------------------------------------------------------------------------
1 | Hello Toast
--------------------------------------------------------------------------------
/HelloToast/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HelloToast/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/HelloToast/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/HelloToast/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/HelloToast/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | namespace 'com.example.hellotoast'
7 | compileSdk 33
8 |
9 | defaultConfig {
10 | applicationId "com.example.hellotoast"
11 | minSdk 27
12 | targetSdk 33
13 | versionCode 1
14 | versionName "1.0"
15 |
16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | compileOptions {
26 | sourceCompatibility JavaVersion.VERSION_1_8
27 | targetCompatibility JavaVersion.VERSION_1_8
28 | }
29 | }
30 |
31 | dependencies {
32 |
33 | implementation 'androidx.appcompat:appcompat:1.6.1'
34 | implementation 'com.google.android.material:material:1.8.0'
35 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
36 | testImplementation 'junit:junit:4.13.2'
37 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
38 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
39 | }
--------------------------------------------------------------------------------
/HelloToast/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/HelloToast/app/src/androidTest/java/com/example/hellotoast/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.hellotoast;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.example.hellotoast", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/HelloToast/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/java/com/example/hellotoast/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.hellotoast;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.net.Uri;
7 | import android.os.Bundle;
8 | import android.view.View;
9 | import android.widget.TextView;
10 | import android.widget.Toast;
11 |
12 | public class MainActivity extends AppCompatActivity {
13 |
14 | private int mCount = 0;
15 | private TextView mShowCount;
16 |
17 | @Override
18 | protected void onCreate(Bundle savedInstanceState) {
19 | super.onCreate(savedInstanceState);
20 | setContentView(R.layout.activity_main);
21 | mShowCount = (TextView)findViewById(R.id.show_count);
22 | }
23 |
24 | public void showToast(View view) {
25 | Toast toast = Toast.makeText(this, R.string.toast_message,Toast.LENGTH_SHORT);
26 | toast.show();
27 | final Intent myIntent = new Intent(Intent.ACTION_SENDTO);
28 | myIntent.setData(Uri.parse("smsto:" + Uri.encode("12123461016")));
29 | myIntent.putExtra("sms_body", "hello world");
30 | startActivity(myIntent);
31 | }
32 |
33 | public void countUp(View view) {
34 | mCount++;
35 | if (mShowCount != null){
36 | mShowCount.setText(Integer.toString(mCount));
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
11 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/layout-land/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
30 |
31 |
45 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/layout-sw600dp/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
31 |
32 |
46 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
30 |
31 |
45 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #DCC23D
4 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello Toast
3 | 0
4 | Count
5 | Toast
6 | Hello Toast!
7 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/HelloToast/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/HelloToast/app/src/test/java/com/example/hellotoast/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.hellotoast;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/HelloToast/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '7.4.0' apply false
4 | id 'com.android.library' version '7.4.0' apply false
5 | }
--------------------------------------------------------------------------------
/HelloToast/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Enables namespacing of each library's R class so that its R class includes only the
19 | # resources declared in the library itself and none from the library's dependencies,
20 | # thereby reducing the size of the R class for that library
21 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/HelloToast/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloToast/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HelloToast/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Feb 17 23:27:03 EST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/HelloToast/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/HelloToast/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "Hello Toast"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/HelloWorld/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/HelloWorld/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/HelloWorld/.idea/.name:
--------------------------------------------------------------------------------
1 | Hello World
--------------------------------------------------------------------------------
/HelloWorld/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HelloWorld/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/HelloWorld/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/HelloWorld/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/HelloWorld/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | namespace 'com.example.helloworld'
7 | compileSdk 33
8 |
9 | defaultConfig {
10 | applicationId "com.example.helloworld"
11 | minSdk 26
12 | targetSdk 33
13 | versionCode 1
14 | versionName "1.0"
15 |
16 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | compileOptions {
26 | sourceCompatibility JavaVersion.VERSION_1_8
27 | targetCompatibility JavaVersion.VERSION_1_8
28 | }
29 | }
30 |
31 | dependencies {
32 |
33 | implementation 'com.android.support:appcompat-v7:28.0.0'
34 | implementation 'com.android.support.constraint:constraint-layout:2.0.4'
35 | testImplementation 'junit:junit:4.13.2'
36 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
37 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
38 | }
--------------------------------------------------------------------------------
/HelloWorld/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/HelloWorld/app/src/androidTest/java/com/example/helloworld/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.helloworld;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23 | assertEquals("com.example.helloworld", appContext.getPackageName());
24 | }
25 | }
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
14 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/java/com/example/helloworld/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.helloworld;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.util.Log;
6 |
7 | public class MainActivity extends AppCompatActivity {
8 |
9 | private static final String LOG_TAG = MainActivity.class.getSimpleName();
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_main);
15 |
16 | Log.d(LOG_TAG, "Hello World Christelle");
17 | }
18 | }
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-hdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/drawable-hdpi/cat.9.png
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-mdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/drawable-mdpi/cat.9.png
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-xhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/drawable-xhdpi/cat.9.png
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-xxhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/drawable-xxhdpi/cat.9.png
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/drawable-xxxhdpi/cat.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/drawable-xxxhdpi/cat.9.png
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
28 |
29 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello World
3 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/HelloWorld/app/src/test/java/com/example/helloworld/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.helloworld;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/HelloWorld/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '7.4.0' apply false
4 | id 'com.android.library' version '7.4.0' apply false
5 | }
--------------------------------------------------------------------------------
/HelloWorld/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # Enables namespacing of each library's R class so that its R class includes only the
15 | # resources declared in the library itself and none from the library's dependencies,
16 | # thereby reducing the size of the R class for that library
17 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/HelloWorld/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/HelloWorld/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Feb 17 22:45:37 EST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/HelloWorld/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/HelloWorld/helloworld.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/HelloWorld/helloworld.apk
--------------------------------------------------------------------------------
/HelloWorld/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "Hello World"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/MyFirstApp/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/MyFirstApp/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/MyFirstApp/.idea/.name:
--------------------------------------------------------------------------------
1 | My First App
--------------------------------------------------------------------------------
/MyFirstApp/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/MyFirstApp/.idea/deploymentTargetDropDown.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/MyFirstApp/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/MyFirstApp/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/MyFirstApp/README.md:
--------------------------------------------------------------------------------
1 | Build your first Android app
2 |
3 | Tutorial
4 |
5 | * https://developer.android.com/codelabs/build-your-first-android-app#0
6 |
7 | Important links
8 |
9 | * GitHub from Google about this tutorial https://github.com/google-developer-training/first-android-app/issues
10 |
11 | * safe_args https://developer.android.com/jetpack/androidx/releases/navigation#safe_args
12 |
13 | * Navigation argument https://stackoverflow.com/questions/69546786/cannot-resolve-symbol-actionfirstfragmenttosecondfragment/69548894#69548894
14 |
--------------------------------------------------------------------------------
/MyFirstApp/app-debug.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app-debug.apk
--------------------------------------------------------------------------------
/MyFirstApp/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/MyFirstApp/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | namespace 'com.example.myfirstapp'
7 | compileSdk 33
8 |
9 | defaultConfig {
10 | applicationId "com.example.myfirstapp"
11 | minSdk 24
12 | targetSdk 33
13 | versionCode 1
14 | versionName "1.0"
15 |
16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | compileOptions {
26 | sourceCompatibility JavaVersion.VERSION_1_8
27 | targetCompatibility JavaVersion.VERSION_1_8
28 | }
29 | buildFeatures {
30 | viewBinding true
31 | }
32 | }
33 |
34 | apply plugin: 'androidx.navigation.safeargs'
35 |
36 | dependencies {
37 |
38 | implementation 'androidx.appcompat:appcompat:1.6.0'
39 | implementation 'com.google.android.material:material:1.8.0'
40 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
41 | implementation 'androidx.navigation:navigation-fragment:2.5.3'
42 | implementation 'androidx.navigation:navigation-ui:2.5.3'
43 | testImplementation 'junit:junit:4.13.2'
44 | androidTestImplementation 'androidx.test.ext:junit:1.1.5'
45 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
46 | }
47 |
48 |
--------------------------------------------------------------------------------
/MyFirstApp/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/MyFirstApp/app/src/androidTest/java/com/example/myfirstapp/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.example.myfirstapp;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.example.myfirstapp", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/java/com/example/myfirstapp/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.myfirstapp;
2 |
3 | import android.os.Bundle;
4 |
5 | import com.google.android.material.snackbar.Snackbar;
6 |
7 | import androidx.appcompat.app.AppCompatActivity;
8 |
9 | import android.view.View;
10 |
11 | import androidx.navigation.NavController;
12 | import androidx.navigation.Navigation;
13 | import androidx.navigation.ui.AppBarConfiguration;
14 | import androidx.navigation.ui.NavigationUI;
15 |
16 | import com.example.myfirstapp.databinding.ActivityMainBinding;
17 |
18 | import android.view.Menu;
19 | import android.view.MenuItem;
20 |
21 | public class MainActivity extends AppCompatActivity {
22 |
23 | private AppBarConfiguration appBarConfiguration;
24 | private ActivityMainBinding binding;
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 |
30 | binding = ActivityMainBinding.inflate(getLayoutInflater());
31 | setContentView(binding.getRoot());
32 |
33 | setSupportActionBar(binding.toolbar);
34 |
35 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
36 | appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build();
37 | NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration);
38 |
39 | binding.fab.setOnClickListener(new View.OnClickListener() {
40 | @Override
41 | public void onClick(View view) {
42 | Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
43 | .setAction("Action", null).show();
44 | }
45 | });
46 | }
47 |
48 | @Override
49 | public boolean onCreateOptionsMenu(Menu menu) {
50 | // Inflate the menu; this adds items to the action bar if it is present.
51 | getMenuInflater().inflate(R.menu.menu_main, menu);
52 | return true;
53 | }
54 |
55 | @Override
56 | public boolean onOptionsItemSelected(MenuItem item) {
57 | // Handle action bar item clicks here. The action bar will
58 | // automatically handle clicks on the Home/Up button, so long
59 | // as you specify a parent activity in AndroidManifest.xml.
60 | int id = item.getItemId();
61 |
62 | //noinspection SimplifiableIfStatement
63 | if (id == R.id.action_settings) {
64 | return true;
65 | }
66 |
67 | return super.onOptionsItemSelected(item);
68 | }
69 |
70 | @Override
71 | public boolean onSupportNavigateUp() {
72 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment_content_main);
73 | return NavigationUI.navigateUp(navController, appBarConfiguration)
74 | || super.onSupportNavigateUp();
75 | }
76 | }
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/java/com/example/myfirstapp/SecondFragment.java:
--------------------------------------------------------------------------------
1 | package com.example.myfirstapp;
2 |
3 | import android.os.Bundle;
4 | import android.util.Log;
5 | import android.view.LayoutInflater;
6 | import android.view.View;
7 | import android.view.ViewGroup;
8 | import android.widget.TextView;
9 |
10 | import androidx.annotation.NonNull;
11 | import androidx.fragment.app.Fragment;
12 | import androidx.navigation.fragment.NavHostFragment;
13 |
14 | import com.example.myfirstapp.databinding.FragmentSecondBinding;
15 |
16 | import java.util.Random;
17 |
18 | public class SecondFragment extends Fragment {
19 |
20 | private FragmentSecondBinding binding;
21 |
22 | @Override
23 | public View onCreateView(
24 | LayoutInflater inflater, ViewGroup container,
25 | Bundle savedInstanceState
26 | ) {
27 |
28 | binding = FragmentSecondBinding.inflate(inflater, container, false);
29 | return binding.getRoot();
30 |
31 | }
32 |
33 | public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
34 | super.onViewCreated(view, savedInstanceState);
35 |
36 | // Retrieving the value of the passed argument
37 | Integer count = SecondFragmentArgs.fromBundle(getArguments()).getMyArg();
38 | Log.i("SECONDFRAGMENT", "count " + count);
39 | // Get the string and format it with the count (use of the %d)
40 | String countText = getString(R.string.random_heading, count);
41 | // Set the textview header
42 | TextView headerView = view.getRootView().findViewById(R.id.textview_header);
43 | headerView.setText(countText);
44 |
45 | binding.buttonSecond.setOnClickListener(new View.OnClickListener() {
46 | @Override
47 | public void onClick(View view) {
48 | NavHostFragment.findNavController(SecondFragment.this)
49 | .navigate(R.id.action_SecondFragment_to_FirstFragment);
50 | }
51 | });
52 |
53 | // Showing the random number between 0 and count
54 | Random random = new java.util.Random();
55 | Integer randomNumber = 0;
56 | if (count > 0) {
57 | randomNumber = random.nextInt(count + 1);
58 | }
59 | TextView randomView = view.getRootView().findViewById(R.id.textview_random);
60 | randomView.setText(randomNumber.toString());
61 | }
62 |
63 | @Override
64 | public void onDestroyView() {
65 | super.onDestroyView();
66 | binding = null;
67 | }
68 |
69 | }
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
20 |
21 |
22 |
23 |
24 |
25 |
33 |
34 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/layout/content_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
19 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/layout/fragment_first.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
24 |
25 |
34 |
35 |
44 |
45 |
54 |
55 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/layout/fragment_second.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
25 |
26 |
37 |
38 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/menu/menu_main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-anydpi-v33/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/navigation/nav_graph.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
14 |
17 |
18 |
19 |
24 |
25 |
28 |
31 |
32 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 48dp
3 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values-w1240dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 200dp
3 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values-w600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 48dp
3 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 | #6200EE
11 | #3700B3
12 | #03DAC5
13 | #2196F3
14 | #BBDEFB
15 | #26C6DA
16 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 16dp
3 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | My First App
3 | Settings
4 |
5 | First Fragment
6 | Second Fragment
7 | Random
8 | Previous
9 | Toast
10 | 0
11 | Count
12 | Here is a random number between 0 and %d
13 | Help
14 | R
15 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
12 |
13 |
19 |
--------------------------------------------------------------------------------
/MyFirstApp/app/src/test/java/com/example/myfirstapp/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.myfirstapp;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/MyFirstApp/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | google()
5 | }
6 | dependencies {
7 | def nav_version = "2.6.0-alpha05"
8 | classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
9 | }
10 | }
11 |
12 | plugins {
13 | id 'com.android.application' version '7.4.0' apply false
14 | id 'com.android.library' version '7.4.0' apply false
15 | }
16 |
17 |
18 |
--------------------------------------------------------------------------------
/MyFirstApp/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Enables namespacing of each library's R class so that its R class includes only the
19 | # resources declared in the library itself and none from the library's dependencies,
20 | # thereby reducing the size of the R class for that library
21 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/MyFirstApp/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/MyFirstApp/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Feb 15 10:13:24 EST 2023
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/MyFirstApp/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/MyFirstApp/screen1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/screen1.jpg
--------------------------------------------------------------------------------
/MyFirstApp/screen2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/screen2.jpg
--------------------------------------------------------------------------------
/MyFirstApp/screenfloatingbutton.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/screenfloatingbutton.jpg
--------------------------------------------------------------------------------
/MyFirstApp/screentoast.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/scharffc/cs639androiddev/c0b4b7876c6d27dce0d9b017d6e5e4ac5784eb7f/MyFirstApp/screentoast.jpg
--------------------------------------------------------------------------------
/MyFirstApp/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | gradlePluginPortal()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "My First App"
16 | include ':app'
17 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # cs639
2 |
3 | ## Mobile App Development
4 |
5 | This repository is created for CS 374 / CS 639 at Pace University.
6 |
7 |
8 |
--------------------------------------------------------------------------------