├── .idea
├── .name
├── vcs.xml
├── render.experimental.xml
├── misc.xml
├── runConfigurations.xml
├── gradle.xml
└── codeStyles
│ └── Project.xml
├── app
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ ├── drawable
│ │ │ │ ├── a1.png
│ │ │ │ ├── a10.png
│ │ │ │ ├── a11.png
│ │ │ │ ├── a2.png
│ │ │ │ ├── a3.png
│ │ │ │ ├── a4.png
│ │ │ │ ├── a5.png
│ │ │ │ ├── a6.png
│ │ │ │ ├── a7.png
│ │ │ │ ├── a8.png
│ │ │ │ ├── a9.png
│ │ │ │ ├── yog.png
│ │ │ │ ├── arrow.PNG
│ │ │ │ ├── bgapp.jpg
│ │ │ │ ├── health.png
│ │ │ │ ├── insta.PNG
│ │ │ │ ├── logo.jpeg
│ │ │ │ ├── slide1.png
│ │ │ │ ├── slide2.png
│ │ │ │ ├── slide3.png
│ │ │ │ ├── stetho.png
│ │ │ │ ├── wtloss.png
│ │ │ │ ├── balance.png
│ │ │ │ ├── bow_pose.png
│ │ │ │ ├── general.png
│ │ │ │ ├── picture.png
│ │ │ │ ├── beautytip.png
│ │ │ │ ├── boat_pose.png
│ │ │ │ ├── cobra_pose.png
│ │ │ │ ├── easy_pose.png
│ │ │ │ ├── excercise.png
│ │ │ │ ├── healthline.png
│ │ │ │ ├── healthtips.png
│ │ │ │ ├── ictimerbg.png
│ │ │ │ ├── image2_bg.jpg
│ │ │ │ ├── pedometer.png
│ │ │ │ ├── upward_bow.png
│ │ │ │ ├── womenyoga.jpg
│ │ │ │ ├── axissecurity.PNG
│ │ │ │ ├── balanceblack.png
│ │ │ │ ├── yoga_main_image.png
│ │ │ │ ├── time_management_iu.png
│ │ │ │ ├── downward_facing_dog.png
│ │ │ │ ├── undraw_moving_forward.png
│ │ │ │ ├── undraw_pilates_gpdb.png
│ │ │ │ ├── undraw_workout_gcguu.png
│ │ │ │ ├── undraw_fitness_tracker.png
│ │ │ │ ├── undraw_mindfulness_scgo.png
│ │ │ │ ├── undraw_working_out_6psf.png
│ │ │ │ ├── undraw_healthy_habit_bhw.png
│ │ │ │ ├── undraw_runner_start_x0uu.png
│ │ │ │ ├── undraw_stability_ball_bia.png
│ │ │ │ ├── undraw_healthy_options_sdo3.png
│ │ │ │ ├── undraw_personal_trainer_ote3.png
│ │ │ │ ├── bgbtn.xml
│ │ │ │ ├── bgbtnadd.xml
│ │ │ │ ├── bgbtnlocked.xml
│ │ │ │ ├── bgbtnremove.xml
│ │ │ │ ├── bginput.xml
│ │ │ │ ├── bgoverlay.xml
│ │ │ │ ├── bgsign.xml
│ │ │ │ ├── yoga_bg.xml
│ │ │ │ ├── side_nav_bar.xml
│ │ │ │ ├── ic_home_black_24dp.xml
│ │ │ │ ├── ic_menu_black_24dp.xml
│ │ │ │ ├── ic_person_black_24dp.xml
│ │ │ │ ├── ic_email_black_24dp.xml
│ │ │ │ ├── ic_security_black_24dp.xml
│ │ │ │ ├── ic_accessibility_black_24dp.xml
│ │ │ │ ├── ic_menu_slideshow.xml
│ │ │ │ ├── ic_menu_gallery.xml
│ │ │ │ ├── ic_format_list_numbered_black_24dp.xml
│ │ │ │ ├── ic_menu_manage.xml
│ │ │ │ ├── ic_enhanced_encryption_black_24dp.xml
│ │ │ │ ├── ic_directions_run_black_24dp.xml
│ │ │ │ ├── ic_menu_camera.xml
│ │ │ │ ├── ic_menu_share.xml
│ │ │ │ ├── ic_directions_bike_black_24dp.xml
│ │ │ │ ├── ic_launcher_foreground.xml
│ │ │ │ ├── activity_beauty_tip.xml
│ │ │ │ └── activity_general.xml
│ │ │ ├── raw
│ │ │ │ └── whistle.mp3
│ │ │ ├── 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
│ │ │ │ ├── preloaded_fonts.xml
│ │ │ │ ├── dimens.xml
│ │ │ │ ├── styles.xml
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── font_certs.xml
│ │ │ ├── anim
│ │ │ │ ├── animimgpage2.xml
│ │ │ │ ├── alphagogo2.xml
│ │ │ │ ├── btthree2.xml
│ │ │ │ ├── bttfive2.xml
│ │ │ │ ├── bttfour2.xml
│ │ │ │ ├── bttone2.xml
│ │ │ │ ├── bttsix2.xml
│ │ │ │ ├── bttwo2.xml
│ │ │ │ ├── ltr2.xml
│ │ │ │ ├── ttbone2.xml
│ │ │ │ ├── ttbtwo2.xml
│ │ │ │ ├── btteight2.xml
│ │ │ │ └── bttseven2.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ │ ├── ic_launcher.xml
│ │ │ │ └── ic_launcher_round.xml
│ │ │ ├── font
│ │ │ │ └── open_sans_semibold.xml
│ │ │ ├── layout
│ │ │ │ ├── activity_onboarding.xml
│ │ │ │ ├── activity_balance.xml
│ │ │ │ ├── activity_strenght.xml
│ │ │ │ ├── counter.xml
│ │ │ │ ├── activity_counter.xml
│ │ │ │ ├── activity_after_login.xml
│ │ │ │ ├── activity_class_section.xml
│ │ │ │ ├── activity_register.xml
│ │ │ │ ├── activity_name_roll.xml
│ │ │ │ ├── activity_login.xml
│ │ │ │ ├── activity_select.xml
│ │ │ │ ├── activity_speed.xml
│ │ │ │ ├── activity_splash.xml
│ │ │ │ ├── activity_agility.xml
│ │ │ │ ├── activity_yoga.xml
│ │ │ │ ├── activity_login_individual.xml
│ │ │ │ ├── activity_beauty_tip.xml
│ │ │ │ ├── activity_general.xml
│ │ │ │ └── activity_yoga_start_work_2nd.xml
│ │ │ └── drawable-v24
│ │ │ │ └── ic_launcher_foreground.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── saumya
│ │ │ │ └── fitofyindia
│ │ │ │ ├── General.java
│ │ │ │ ├── Beauty_tip.java
│ │ │ │ ├── Excercise.java
│ │ │ │ ├── Healthtip.java
│ │ │ │ ├── Weight_loss.java
│ │ │ │ ├── BalanceActivity.java
│ │ │ │ ├── StrenghtActivity.java
│ │ │ │ ├── SplashActivity.java
│ │ │ │ ├── Healthactivity.java
│ │ │ │ ├── Stopwatch.java
│ │ │ │ ├── SelectActivity.java
│ │ │ │ ├── AfterLogin.java
│ │ │ │ ├── IndividualMain.java
│ │ │ │ ├── CounterActivity.java
│ │ │ │ ├── OrganisationMainActivity.java
│ │ │ │ ├── YogaActivity.java
│ │ │ │ ├── LoginIndividual.java
│ │ │ │ ├── NameRollActivity.java
│ │ │ │ ├── OnboardingActivity.java
│ │ │ │ ├── LoginActivity.java
│ │ │ │ ├── RegisterActivity.java
│ │ │ │ ├── YogaEditWork.java
│ │ │ │ ├── YogaStartWork.java
│ │ │ │ ├── YogaWorkOut.java
│ │ │ │ ├── YogaStartWork_2nd.java
│ │ │ │ ├── ClassSectionActivity.java
│ │ │ │ ├── SpeedActivity.java
│ │ │ │ └── AgilityActivity.java
│ │ └── AndroidManifest.xml
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── saumya
│ │ │ └── fitofyindia
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── saumya
│ │ └── fitofyindia
│ │ └── ExampleInstrumentedTest.java
├── proguard-rules.pro
├── google-services.json
└── build.gradle
├── settings.gradle
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── Copy of Android Dev Challenge - Cover Letter.pdf
├── Copy of Android Dev Challenge - Cover Letter.docx
├── .gitignore
├── .github
└── workflows
│ └── android.yml
├── CONTRIBUTING.md
├── gradle.properties
├── README.md
├── gradlew.bat
└── gradlew
/.idea/.name:
--------------------------------------------------------------------------------
1 | FitofyIndia
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='FitofyIndia'
3 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a10.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a10.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a11.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a3.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a4.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a5.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a6.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a7.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a8.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/a9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/a9.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/yog.png
--------------------------------------------------------------------------------
/app/src/main/res/raw/whistle.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/raw/whistle.mp3
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/app/src/main/res/drawable/arrow.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/arrow.PNG
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgapp.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/bgapp.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/health.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/health.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/insta.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/insta.PNG
--------------------------------------------------------------------------------
/app/src/main/res/drawable/logo.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/logo.jpeg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/slide1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/slide1.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/slide2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/slide2.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/slide3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/slide3.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/stetho.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/stetho.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/wtloss.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/wtloss.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/balance.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/balance.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bow_pose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/bow_pose.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/general.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/general.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/picture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/picture.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/beautytip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/beautytip.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/boat_pose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/boat_pose.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/cobra_pose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/cobra_pose.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/easy_pose.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/easy_pose.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/excercise.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/excercise.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/healthline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/healthline.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/healthtips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/healthtips.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ictimerbg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/ictimerbg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/image2_bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/image2_bg.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pedometer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/pedometer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/upward_bow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/upward_bow.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/womenyoga.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/womenyoga.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/axissecurity.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/axissecurity.PNG
--------------------------------------------------------------------------------
/app/src/main/res/drawable/balanceblack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/balanceblack.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yoga_main_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/yoga_main_image.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Copy of Android Dev Challenge - Cover Letter.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/Copy of Android Dev Challenge - Cover Letter.pdf
--------------------------------------------------------------------------------
/app/src/main/res/drawable/time_management_iu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/time_management_iu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Copy of Android Dev Challenge - Cover Letter.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/Copy of Android Dev Challenge - Cover Letter.docx
--------------------------------------------------------------------------------
/app/src/main/res/drawable/downward_facing_dog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/downward_facing_dog.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_moving_forward.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_moving_forward.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_pilates_gpdb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_pilates_gpdb.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_workout_gcguu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_workout_gcguu.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_fitness_tracker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_fitness_tracker.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_mindfulness_scgo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_mindfulness_scgo.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_working_out_6psf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_working_out_6psf.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_healthy_habit_bhw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_healthy_habit_bhw.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_runner_start_x0uu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_runner_start_x0uu.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_stability_ball_bia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_stability_ball_bia.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_healthy_options_sdo3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_healthy_options_sdo3.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/undraw_personal_trainer_ote3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saumya1singh/Fitofy-India/HEAD/app/src/main/res/drawable/undraw_personal_trainer_ote3.png
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/render.experimental.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/values/preloaded_fonts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - @font/open_sans_semibold
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.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 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sun Oct 13 13:04:19 IST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgbtn.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgbtnadd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgbtnlocked.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgbtnremove.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/animimgpage2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bginput.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgoverlay.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bgsign.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/yoga_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/alphagogo2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/btthree2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/side_nav_bar.xml:
--------------------------------------------------------------------------------
1 |
3 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_home_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.github/workflows/android.yml:
--------------------------------------------------------------------------------
1 | name: Android CI
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build:
7 |
8 | runs-on: ubuntu-latest
9 |
10 | steps:
11 | - uses: actions/checkout@v1
12 | - name: set up JDK 1.8
13 | uses: actions/setup-java@v1
14 | with:
15 | java-version: 1.8
16 | - name: Build with Gradle
17 | run: ./gradlew build
18 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 | 20sp
7 | 18sp
8 | 16sp
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/font/open_sans_semibold.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/General.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.appcompat.app.AppCompatActivity;
6 |
7 | public class General extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_general);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttfive2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttfour2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttone2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttsix2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttwo2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/ltr2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/ttbone2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/ttbtwo2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Beauty_tip.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.appcompat.app.AppCompatActivity;
6 |
7 | public class Beauty_tip extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_beauty_tip);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Excercise.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.appcompat.app.AppCompatActivity;
6 |
7 | public class Excercise extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_excercise);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Healthtip.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.appcompat.app.AppCompatActivity;
6 |
7 | public class Healthtip extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_healthtip);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/btteight2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/bttseven2.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_person_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Weight_loss.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.os.Bundle;
4 |
5 | import androidx.appcompat.app.AppCompatActivity;
6 |
7 | public class Weight_loss extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_weight_loss);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/BalanceActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 |
7 | public class BalanceActivity extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_balance);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/StrenghtActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.os.Bundle;
6 |
7 | public class StrenghtActivity extends AppCompatActivity {
8 |
9 | @Override
10 | protected void onCreate(Bundle savedInstanceState) {
11 | super.onCreate(savedInstanceState);
12 | setContentView(R.layout.activity_strenght);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_email_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_security_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_accessibility_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_slideshow.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_gallery.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/test/java/com/saumya/fitofyindia/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
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 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_format_list_numbered_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_manage.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FB6917
4 | #FB6917
5 | #D81B60
6 |
7 | #ddd
8 |
9 | #aaa
10 | #fff
11 | #000
12 | #FFB266
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_enhanced_encryption_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_directions_run_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_camera.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_menu_share.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/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
22 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_onboarding.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
17 |
18 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing Guidelines
2 | You can join us [here](https://groups.google.com/d/forum/fitofy-india) .
3 | We are always here to help you in all way possible 🎉
4 |
5 | # General Guidelines
6 |
7 | * Create a branch specific to the issue you're working on, so that you send a PR from that branch instead of the base branch on your fork.
8 | * If you’d like to create a [new-issue](https://github.com/SaumyaSingh1/Fitofy-India/issues/new), please go through our [issue-list](https://github.com/SaumyaSingh1/Fitofy-India/issues) first (open as well as closed) and make sure the issues you are reporting do not replicate the existing issues.
9 | * Have a short description on what has gone wrong (like a root cause analysis and description of the fix), if that information is not already present in the issue.
10 | * If you have issues on multiple pages, report them separately. Do not combine them into a single issue.
11 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/saumya/fitofyindia/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
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 |
25 | assertEquals("com.saumya.fitofyindia", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_directions_bike_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/SplashActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.widget.Button;
7 | import android.widget.ImageView;
8 |
9 | import androidx.appcompat.app.AppCompatActivity;
10 |
11 | public class SplashActivity extends AppCompatActivity {
12 |
13 | ImageView bgone;
14 | Button btnget;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_splash);
20 |
21 | bgone = findViewById(R.id.bgone);
22 | btnget = findViewById(R.id.btnget);
23 |
24 | bgone.animate().scaleX(2).scaleY(2).setDuration(5000).start();
25 |
26 | btnget.setOnClickListener(new View.OnClickListener() {
27 | @Override
28 | public void onClick(View v) {
29 |
30 | Intent a = new Intent(SplashActivity.this, OnboardingActivity.class);
31 | startActivity(a);
32 | }
33 | });
34 |
35 | }
36 | }
--------------------------------------------------------------------------------
/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=-Xmx1536m
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 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 |
21 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_balance.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
20 |
21 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_strenght.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
20 |
21 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Healthactivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.view.View;
6 |
7 | import androidx.appcompat.app.AppCompatActivity;
8 |
9 | public class Healthactivity extends AppCompatActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(savedInstanceState);
14 | setContentView(R.layout.activity_healthactivity);
15 | }
16 |
17 | public void health_tips(View view) {
18 | Intent i= new Intent(getApplicationContext(),Healthtip.class);
19 | startActivity(i);
20 |
21 | }
22 | public void weight_loss(View view){
23 | Intent i= new Intent(getApplicationContext(),Weight_loss.class);
24 | startActivity(i);
25 |
26 | }
27 | public void excercise(View view){
28 | Intent i= new Intent(getApplicationContext(),Excercise.class);
29 | startActivity(i);
30 |
31 | }
32 | public void beauty_tip(View view){
33 | Intent i= new Intent(getApplicationContext(),Beauty_tip.class);
34 | startActivity(i);
35 |
36 | }
37 | public void general(View view){
38 | Intent i= new Intent(getApplicationContext(),General.class);
39 | startActivity(i);
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/Stopwatch.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | public class Stopwatch {
4 |
5 | private long startTime = 0;
6 | private long stopTime = 0;
7 | private boolean running = false;
8 |
9 |
10 | public void start() {
11 | this.startTime = System.currentTimeMillis();
12 | this.running = true;
13 | }
14 |
15 |
16 | void stop() {
17 | this.stopTime = System.currentTimeMillis();
18 | this.running = false;
19 | }
20 |
21 |
22 | // elaspsed time in milliseconds
23 | private long getElapsedTime() {
24 | if (running) {
25 | return System.currentTimeMillis() - startTime;
26 | }
27 | return stopTime - startTime;
28 | }
29 |
30 |
31 | // elaspsed time in seconds
32 | long getElapsedTimeSecs() {
33 | if (running) {
34 | return ((System.currentTimeMillis() - startTime) / 1000);
35 | }
36 | return ((stopTime - startTime) / 1000);
37 | }
38 |
39 |
40 | // sample usage
41 | public static void main(String[] args) {
42 | Stopwatch s = new Stopwatch();
43 | s.start();
44 | // code you want to time goes here
45 | s.stop();
46 | System.out.println("elapsed time in milliseconds: " + s.getElapsedTime());
47 | }
48 |
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/counter.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
16 |
17 |
26 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_counter.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
16 |
17 |
26 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "220513388376",
4 | "firebase_url": "https://fitofyindia.firebaseio.com",
5 | "project_id": "fitofyindia",
6 | "storage_bucket": "fitofyindia.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:220513388376:android:ee4e4fd2db6ebe5d1a472d",
12 | "android_client_info": {
13 | "package_name": "com.saumya.fitofyindia"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "220513388376-iujdg1v19m7m49i1110b75062m5uv5ks.apps.googleusercontent.com",
19 | "client_type": 1,
20 | "android_info": {
21 | "package_name": "com.saumya.fitofyindia",
22 | "certificate_hash": "8cff96e5e8b61cd5acff0d1e0f3e7268c2dda4a2"
23 | }
24 | },
25 | {
26 | "client_id": "220513388376-152sud198mfupmgs6oettlqa1nituh88.apps.googleusercontent.com",
27 | "client_type": 3
28 | }
29 | ],
30 | "api_key": [
31 | {
32 | "current_key": "AIzaSyARfhs8gXIo8WJHaHdiEA8LxrEqfDfD_XA"
33 | }
34 | ],
35 | "services": {
36 | "appinvite_service": {
37 | "other_platform_oauth_client": [
38 | {
39 | "client_id": "220513388376-152sud198mfupmgs6oettlqa1nituh88.apps.googleusercontent.com",
40 | "client_type": 3
41 | }
42 | ]
43 | }
44 | }
45 | }
46 | ],
47 | "configuration_version": "1"
48 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/SelectActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.Button;
9 | import android.widget.Toast;
10 |
11 | public class SelectActivity extends AppCompatActivity {
12 |
13 | Button btnOrganisation, btnIndividual;
14 |
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_select);
20 | btnOrganisation = findViewById(R.id.btnOrganisation);
21 | btnIndividual = findViewById(R.id.btnIndividual);
22 |
23 | btnOrganisation.setOnClickListener(new View.OnClickListener() {
24 | @Override
25 | public void onClick(View view) {
26 |
27 | /*Intent i = new Intent(getBaseContext(), LoginActivity.class);
28 | startActivity(i);
29 | finish();*/
30 | Toast.makeText(SelectActivity.this, "Organisation disabled", Toast.LENGTH_SHORT).show();
31 | }
32 | });
33 | btnIndividual.setOnClickListener(new View.OnClickListener() {
34 | @Override
35 | public void onClick(View view) {
36 | Intent i = new Intent(getBaseContext(), LoginIndividual.class);
37 | startActivity(i);
38 | finish();
39 | }
40 | });
41 |
42 |
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'com.google.gms.google-services'
3 |
4 | android {
5 | compileSdkVersion 29
6 | buildToolsVersion "29.0.2"
7 | defaultConfig {
8 | applicationId "com.saumya.fitofyindia"
9 | minSdkVersion 19
10 | targetSdkVersion 29
11 | versionCode 2
12 | versionName "1.0"
13 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14 | }
15 | buildTypes {
16 | release {
17 | minifyEnabled false
18 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
19 | }
20 | }
21 | }
22 |
23 | dependencies {
24 | implementation fileTree(dir: 'libs', include: ['*.jar'])
25 | implementation 'androidx.appcompat:appcompat:1.1.0'
26 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
27 | implementation 'de.hdodenhof:circleimageview:3.0.1'
28 | implementation 'com.google.firebase:firebase-database:19.2.0'
29 | implementation 'androidx.annotation:annotation:1.1.0'
30 | implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
31 | testImplementation 'junit:junit:4.12'
32 | androidTestImplementation 'androidx.test:runner:1.2.0'
33 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
34 | implementation 'androidx.cardview:cardview:1.0.0'
35 | implementation 'com.google.firebase:firebase-auth:19.2.0'
36 | implementation 'com.github.msayan:tutorial-view:v1.0.10'
37 | implementation 'com.google.android.material:material:1.0.0'
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/AfterLogin.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.content.SharedPreferences;
8 | import android.os.Bundle;
9 | import android.view.View;
10 | import android.widget.Button;
11 | import android.widget.TextView;
12 |
13 | public class AfterLogin extends AppCompatActivity {
14 |
15 | Button buttonView, buttonTest;
16 | TextView textViewOrganisation;
17 | SharedPreferences sharedPreferences;
18 | String organisation;
19 |
20 |
21 |
22 | @Override
23 | protected void onCreate(Bundle savedInstanceState) {
24 | super.onCreate(savedInstanceState);
25 | setContentView(R.layout.activity_after_login);
26 | buttonView = findViewById(R.id.buttonView);
27 | buttonTest = findViewById(R.id.buttonTest);
28 | textViewOrganisation = findViewById(R.id.textViewOrganisation);
29 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
30 |
31 | organisation = sharedPreferences.getString("OrgName", organisation);
32 | textViewOrganisation.setText(organisation);
33 |
34 | buttonTest.setOnClickListener(new View.OnClickListener() {
35 | @Override
36 | public void onClick(View view) {
37 |
38 | Intent i = new Intent(getBaseContext(), ClassSectionActivity.class);
39 | startActivity(i);
40 | finish();
41 |
42 | }
43 | });
44 |
45 |
46 | buttonView.setOnClickListener(new View.OnClickListener() {
47 | @Override
48 | public void onClick(View view) {
49 |
50 |
51 | }
52 | });
53 |
54 |
55 |
56 |
57 |
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Fitofy-India
2 | An android application for a Healthy and Fit Nation .
3 | Want to see video of running Application ?
4 | Click here : https://drive.google.com/open?id=1EDsmbbfC6vOWWcHLmBkHyuT21jcMMv-t
5 |
6 | # Setting up the project
7 | Step 1 : Fork, Clone and Remote
8 | Step 2 : Open project in Android Studio
9 |
10 | [Read this](https://medium.com/@singhsaumyas150/contribute-to-open-source-using-git-dd918f81e1ba) to get started 🎉
11 |
12 | # Here are some screenshots of the application
13 |
14 | 
15 | 
16 | 
17 | 
18 | 
19 | 
20 |
21 |
22 | # Contributing
23 | Get started with this simple and easy to follow project , it doesn't matter whether you are a beginner or a pro in android-development and open source !
24 | We are always here to help you out and get started .
25 | Please read our Contributing guidelines [here](https://github.com/SaumyaSingh1/Fitofy-India/blob/master/CONTRIBUTING.md) to get started 💯
26 |
27 | # Contact
28 | For more discussion on the project, You can join Slack Channel [here](https://join.slack.com/t/fitofy-saumyasingh/shared_invite/enQtOTU0OTQ0NzQ1MzYxLTljYjVmOGZhMDU4Y2I3MTAxYzkwNGU3ZWIyYTc2MjE5MWE5MTU5MmM1YjJhZmNlYTQxNmQyNGUxOWZkMzFlMmQ).
29 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_after_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
21 |
22 |
34 |
35 |
44 |
45 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_class_section.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
22 |
23 |
34 |
35 |
44 |
45 |
56 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/IndividualMain.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.LinearLayout;
9 |
10 | public class IndividualMain extends AppCompatActivity {
11 | LinearLayout llyog , llgym,llhealth, llpedo;
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_individual_main);
17 | llyog=findViewById(R.id.yoga);
18 | llgym=findViewById(R.id.llgym);
19 | llhealth=findViewById(R.id.llheath);
20 | llpedo=findViewById(R.id.llpedo);
21 | llyog.setOnClickListener(new View.OnClickListener() {
22 | @Override
23 | public void onClick(View view) {
24 |
25 | Intent intent= new Intent(getBaseContext(),YogaActivity.class);
26 | startActivity(intent);
27 |
28 | }
29 | });
30 | llgym.setOnClickListener(new View.OnClickListener() {
31 | @Override
32 | public void onClick(View v) {
33 | /*Intent intent= new Intent(getBaseContext(),GymMainActivity.class);
34 | startActivity(intent);*/
35 | //create GYMActivity
36 | }
37 | });
38 | llhealth.setOnClickListener(new View.OnClickListener() {
39 | @Override
40 | public void onClick(View view) {
41 | Intent intent= new Intent(getBaseContext(),Healthactivity.class);
42 | startActivity(intent);
43 |
44 | }
45 | });
46 | llpedo.setOnClickListener(new View.OnClickListener() {
47 | @Override
48 | public void onClick(View view) {
49 | Intent intent= new Intent(getBaseContext(),CounterActivity.class);
50 | startActivity(intent);
51 |
52 |
53 | }
54 | });
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_register.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
18 |
19 |
20 |
28 |
29 |
36 |
37 |
44 |
45 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_name_roll.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
22 |
23 |
34 |
35 |
45 |
46 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_login.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
18 |
19 |
27 |
28 |
35 |
36 |
45 |
46 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
17 |
18 |
19 |
29 |
30 |
42 |
43 |
55 |
56 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/CounterActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.content.Context;
4 | import android.hardware.Sensor;
5 | import android.hardware.SensorEvent;
6 | import android.hardware.SensorEventListener;
7 | import android.hardware.SensorManager;
8 | import android.os.Bundle;
9 | import android.widget.TextView;
10 | import android.widget.Toast;
11 |
12 | import androidx.appcompat.app.AppCompatActivity;
13 |
14 | public class CounterActivity extends AppCompatActivity implements SensorEventListener {
15 |
16 |
17 | //init views
18 | TextView steps;
19 |
20 | SensorManager sensorManager;
21 | Sensor count;
22 |
23 | boolean isSensorPresent = false;
24 |
25 | @Override
26 | protected void onCreate(Bundle savedInstanceState) {
27 | super.onCreate(savedInstanceState);
28 | setContentView(R.layout.counter);
29 | steps = findViewById(R.id.steps);
30 | sensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
31 |
32 | }
33 |
34 | @Override
35 | protected void onResume() {
36 | super.onResume();
37 |
38 | count = sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);
39 |
40 | if (count!=null){
41 | isSensorPresent = true;
42 | sensorManager.registerListener(this,count,SensorManager.SENSOR_DELAY_UI);
43 |
44 | }else
45 | {
46 | Toast.makeText(this, "Did not found any step sensor in your phone", Toast.LENGTH_SHORT).show();
47 | isSensorPresent = false;
48 | }
49 | }
50 |
51 | @Override
52 | protected void onPause() {
53 | super.onPause();
54 | if (isSensorPresent){
55 | sensorManager.unregisterListener(this);
56 | isSensorPresent =false;
57 | }
58 | }
59 |
60 | @Override
61 | public void onSensorChanged(SensorEvent sensorEvent) {
62 |
63 | if (isSensorPresent){
64 | steps.setText(String.valueOf(sensorEvent.values[0]));
65 | }
66 |
67 | }
68 |
69 | @Override
70 | public void onAccuracyChanged(Sensor sensor, int i) {
71 |
72 | }
73 | }
74 |
75 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/OrganisationMainActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.widget.ImageView;
9 |
10 | public class OrganisationMainActivity extends AppCompatActivity {
11 |
12 |
13 | ImageView imgSpeed, imageViewAgility, imageViewBalance, imgStrength;
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | super.onCreate(savedInstanceState);
17 |
18 | setContentView(R.layout.activity_organisation_main);
19 | imgSpeed = findViewById(R.id.imgSpeed);
20 | imageViewAgility = findViewById(R.id.imageViewAgility);
21 | imageViewBalance = findViewById(R.id.imageViewBalance);
22 | imgStrength = findViewById(R.id.imgStrength);
23 |
24 |
25 | imgSpeed.setOnClickListener(new View.OnClickListener() {
26 | @Override
27 | public void onClick(View view) {
28 |
29 |
30 | Intent i = new Intent(getBaseContext(), SpeedActivity.class);
31 | startActivity(i);
32 | finish();
33 | }
34 | });
35 |
36 |
37 | imageViewAgility.setOnClickListener(new View.OnClickListener() {
38 | @Override
39 | public void onClick(View view) {
40 |
41 |
42 | Intent i = new Intent(getBaseContext(), AgilityActivity.class);
43 | startActivity(i);
44 | finish();
45 | }
46 | });
47 |
48 | imageViewBalance.setOnClickListener(new View.OnClickListener() {
49 | @Override
50 | public void onClick(View view) {
51 |
52 |
53 | Intent i = new Intent(getBaseContext(), BalanceActivity.class);
54 | startActivity(i);
55 | finish();
56 | }
57 | });
58 |
59 |
60 | imgStrength.setOnClickListener(new View.OnClickListener() {
61 | @Override
62 | public void onClick(View view) {
63 |
64 |
65 | Intent i = new Intent(getBaseContext(), StrenghtActivity.class);
66 | startActivity(i);
67 | finish();
68 | }
69 | });
70 |
71 |
72 |
73 |
74 |
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/YogaActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.view.animation.Animation;
9 | import android.view.animation.AnimationUtils;
10 | import android.widget.ImageView;
11 | import android.widget.TextView;
12 |
13 | public class YogaActivity extends AppCompatActivity {
14 |
15 | TextView titlepage, subtitlepage, btnexercise;
16 | ImageView imgpage;
17 | Animation animimgpage, bttone, bttwo, btthree, ltr;
18 | View bgprogress, bgprogresstop;
19 |
20 | @Override
21 | protected void onCreate(Bundle savedInstanceState) {
22 | super.onCreate(savedInstanceState);
23 | setContentView(R.layout.activity_yoga);
24 |
25 | // load animation
26 | animimgpage = AnimationUtils.loadAnimation(this, R.anim.animimgpage2);
27 | bttone = AnimationUtils.loadAnimation(this, R.anim.bttone2);
28 | bttwo = AnimationUtils.loadAnimation(this, R.anim.bttwo2);
29 | btthree = AnimationUtils.loadAnimation(this, R.anim.btthree2);
30 | ltr = AnimationUtils.loadAnimation(this, R.anim.ltr2);
31 |
32 |
33 | // import font
34 | /* Typeface MLight = Typeface.createFromAsset(getAssets(), "fonts/MLight.ttf");
35 | Typeface MMedium = Typeface.createFromAsset(getAssets(), "fonts/MMedium.ttf");
36 | Typeface Vidaloka = Typeface.createFromAsset(getAssets(), "fonts/Vidaloka.ttf");*/
37 |
38 |
39 | titlepage = findViewById(R.id.titlepage);
40 | subtitlepage = findViewById(R.id.subtitlepage);
41 | btnexercise = findViewById(R.id.btnexercis);
42 | imgpage = findViewById(R.id.imgpage);
43 | bgprogress = findViewById(R.id.bgprogress);
44 | bgprogresstop = findViewById(R.id.bgprogresstop);
45 |
46 | // export animate
47 | imgpage.startAnimation(animimgpage);
48 | titlepage.startAnimation(bttone);
49 | subtitlepage.startAnimation(bttone);
50 |
51 |
52 | btnexercise.startAnimation(btthree);
53 | bgprogress.startAnimation(bttwo);
54 | bgprogresstop.startAnimation(ltr);
55 |
56 | // give an event to another page
57 | btnexercise.setOnClickListener(new View.OnClickListener() {
58 | @Override
59 | public void onClick(View v) {
60 | Intent a = new Intent(YogaActivity.this, YogaWorkOut.class);
61 | a.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
62 | startActivity(a);
63 | }
64 | });
65 |
66 | }
67 | }
68 |
69 |
70 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | FitofyIndia
3 |
4 | YOGA
5 | Grant Access
6 | Give Music Player access to files
7 | GYMING AT HOME
8 | HEALTH TIPS
9 | PEDOMETER
10 | Yoga is a bridge that helps you connect with your soul, mind, and body. It has given tremendous benefits to every person who has practiced it regularly. From mental health to physical health may have been benefited.
11 | There\'s something about being in a gym, sweating along with everyone else, that gives you kind of a boost.
12 | The beauty of yoga is that it can be practiced by just about anybody irrespective of things such as age, fitness, health condition, etc. Obviously, there are a few things to be kept in mind but then which exercise does not have such confines?
13 | Thank you, have fun
14 | As your small changes become habit, you can continue to add more healthy choices to your diet.
15 | Exercise is so much easier when you have lots of options to choose from. If you\'re a cardio machine person, your choices abound: the treadmill, elliptical, stairclimber, stair stepper, stationary bike, rowing machine...it goes on and on. You also have options for lifting weights.
16 | Every change you make to improve your diet matters. You don’t have to be perfect and you don’t have to completely eliminate foods you enjoy to have a healthy diet.
17 | Daily walks are one of the most important habits you can develop, because they influence many other positive habit changes.
18 | Sign in
19 | Email
20 | Password
21 | Sign in or register
22 | Sign in
23 | "Welcome !"
24 | Not a valid username
25 | Password must be >5 characters
26 | "Login failed"
27 | Required
28 |
29 |
30 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/LoginIndividual.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.os.Bundle;
8 | import android.text.TextUtils;
9 | import android.view.KeyEvent;
10 | import android.view.View;
11 | import android.view.inputmethod.InputMethod;
12 | import android.view.inputmethod.InputMethodManager;
13 | import android.widget.Button;
14 | import android.widget.EditText;
15 | import android.widget.TextView;
16 |
17 |
18 | public class LoginIndividual extends AppCompatActivity {
19 | // TextView tvMessage;
20 | EditText etPhone,etName;
21 | String phonenumber, name;
22 | Button btnNext;
23 | @Override
24 | protected void onCreate(Bundle savedInstanceState) {
25 | super.onCreate(savedInstanceState);
26 | setContentView(R.layout.activity_login_individual);
27 | etPhone=findViewById(R.id.etPhone);
28 | etName=findViewById(R.id.etName);
29 | btnNext=findViewById(R.id.btnjoin);
30 | etName.requestFocus();
31 |
32 | etPhone.setOnKeyListener(new View.OnKeyListener() {
33 | @Override
34 | public boolean onKey(View v, int keyCode, KeyEvent event) {
35 | if (keyCode == KeyEvent.KEYCODE_ENTER || keyCode == KeyEvent.KEYCODE_NAVIGATE_NEXT){
36 | login();
37 | return true;
38 | }
39 | return false;
40 | }
41 | });
42 |
43 | btnNext.setOnClickListener(new View.OnClickListener() {
44 | @Override
45 | public void onClick(View view) {
46 | login();
47 | }
48 | });
49 | }
50 | private boolean checkValid() {
51 | boolean check =true;
52 | if(TextUtils.isEmpty(phonenumber))
53 | {
54 | etPhone.setError("Required");
55 | check=false;
56 | }
57 | if(TextUtils.isEmpty(name))
58 | {
59 | etPhone.setError("Required");
60 | check=false;
61 | }
62 | if( !(phonenumber.length()==10))
63 | {
64 | etPhone.setError("Not valid");
65 | check=false;
66 | }
67 | return check;
68 | }
69 | private void login(){
70 | phonenumber=etPhone.getText().toString();
71 | name=etName.getText().toString();
72 | if(checkValid())
73 | {
74 | phonenumber="+91"+phonenumber;
75 | Intent intent = new Intent(LoginIndividual.this, IndividualMain.class);
76 | intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK|Intent.FLAG_ACTIVITY_NEW_TASK);
77 | startActivity(intent);
78 |
79 | }
80 | }
81 |
82 | }
83 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/NameRollActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.content.SharedPreferences;
8 | import android.os.Bundle;
9 | import android.util.Log;
10 | import android.view.View;
11 | import android.widget.Button;
12 | import android.widget.EditText;
13 |
14 | import com.google.firebase.database.DatabaseReference;
15 | import com.google.firebase.database.FirebaseDatabase;
16 |
17 | public class NameRollActivity extends AppCompatActivity {
18 |
19 | EditText editTextName, editTextRoll;
20 | Button buttonReady;
21 | String Name , Roll ;
22 |
23 | SharedPreferences sharedPreferences;
24 | String organisation, className, secName;
25 | FirebaseDatabase firebaseDatabase;
26 | DatabaseReference databaseReference;
27 |
28 |
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.activity_name_roll);
34 | editTextName = findViewById(R.id.editTextName);
35 | editTextRoll = findViewById(R.id.editTextRoll);
36 | buttonReady = findViewById(R.id.buttonReady);
37 |
38 |
39 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
40 | organisation = sharedPreferences.getString("OrgName", organisation);
41 | className = sharedPreferences.getString("Class", className);
42 | secName = sharedPreferences.getString("Section", secName);
43 | Log.e("Organisation", "onCreate: " + className + secName + organisation );
44 |
45 | firebaseDatabase = FirebaseDatabase.getInstance("https://fitofyindia.firebaseio.com/");
46 | databaseReference = firebaseDatabase.getReference("Organisation/" + organisation);
47 |
48 |
49 |
50 | buttonReady.setOnClickListener(new View.OnClickListener() {
51 | @Override
52 | public void onClick(View view) {
53 |
54 |
55 | Name = editTextName.getText().toString();
56 | Roll = editTextName.getText().toString();
57 |
58 | databaseReference.child(className).child(secName).child(Roll).setValue("");
59 |
60 |
61 | SharedPreferences.Editor editor = sharedPreferences.edit();
62 | //editor.putString("OrgName", className);
63 | editor.putString("Name", Name);
64 | editor.putString("Roll", Roll);
65 | editor.apply();
66 |
67 |
68 | Intent i = new Intent(getBaseContext(), OrganisationMainActivity.class);
69 | startActivity(i);
70 | finish();
71 |
72 | }
73 | });
74 |
75 |
76 |
77 |
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_speed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
21 |
22 |
33 |
34 |
43 |
44 |
53 |
54 |
66 |
67 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
24 |
25 |
26 |
39 |
40 |
53 |
54 |
55 |
69 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/OnboardingActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.content.Intent;
4 | import android.graphics.Color;
5 | import android.os.Bundle;
6 |
7 | import com.hololo.tutorial.library.Step;
8 | import com.hololo.tutorial.library.TutorialActivity;
9 |
10 |
11 | public class OnboardingActivity extends TutorialActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 |
17 |
18 | addFragment(
19 | new Step.Builder()
20 | .setTitle(getString(R.string.automatic_data))
21 | .setContent(getString(R.string.gm_finds_photos))
22 | .setBackgroundColor(Color.parseColor("#FF0957"))
23 | .setDrawable(R.drawable.undraw_mindfulness_scgo)
24 | .setSummary(getString(R.string.continue_and_learn))
25 | .build());
26 | addFragment(
27 | new Step.Builder()
28 | .setTitle(getString(R.string.choose_the_song))
29 | .setContent(getString(R.string.swap_to_the_tab))
30 | .setBackgroundColor(Color.parseColor("#00D4BA"))
31 | .setDrawable(R.drawable.undraw_personal_trainer_ote3)
32 | .setSummary(getString(R.string.continue_and_update))
33 | .build());
34 | addFragment(
35 | new Step.Builder()
36 | .setTitle(getString(R.string.edit_data))
37 | .setContent(getString(R.string.update_easily))
38 | .setBackgroundColor(Color.parseColor("#1098FE"))
39 | .setDrawable(R.drawable.undraw_healthy_options_sdo3)
40 | .setSummary(getString(R.string.continue_and_result))
41 | .build());
42 | addFragment(
43 | new Step.Builder()
44 | .setTitle(getString(R.string.result_awesome))
45 | .setContent(getString(R.string.after_updating))
46 | .setBackgroundColor(Color.parseColor("#CA70F3"))
47 | .setDrawable(R.drawable.undraw_working_out_6psf)
48 | .setSummary(getString(R.string.thank_you))
49 | .build());
50 | }
51 | @Override
52 | public void finishTutorial() {
53 |
54 |
55 | Intent i = new Intent(getBaseContext(), SelectActivity.class);
56 | startActivity(i);
57 | finish();
58 | //Toast.makeText(this, "Tutorial finished", Toast.LENGTH_SHORT).show();
59 | //finish();
60 | }
61 |
62 | @Override
63 | public void currentFragmentPosition(int position) {
64 | //Toast.makeText(this, "Position : " + position, Toast.LENGTH_SHORT).show();
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_agility.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
14 |
20 |
21 |
31 |
32 |
41 |
42 |
51 |
52 |
64 |
76 |
77 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/app/src/main/res/values/font_certs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - @array/com_google_android_gms_fonts_certs_dev
5 | - @array/com_google_android_gms_fonts_certs_prod
6 |
7 |
8 | -
9 | MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
10 |
11 |
12 |
13 | -
14 | MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEzMzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtWLgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKkedxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjAsb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/CxURaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJEqO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/Tgt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/yzKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/LoginActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.annotation.NonNull;
4 | import androidx.appcompat.app.AppCompatActivity;
5 |
6 | import android.content.Intent;
7 | import android.os.Bundle;
8 | import android.text.TextUtils;
9 | import android.util.Log;
10 | import android.view.View;
11 | import android.widget.Button;
12 | import android.widget.EditText;
13 | import android.widget.TextView;
14 | import android.widget.Toast;
15 |
16 | import com.google.android.gms.tasks.OnCompleteListener;
17 | import com.google.android.gms.tasks.Task;
18 | import com.google.firebase.auth.AuthResult;
19 | import com.google.firebase.auth.FirebaseAuth;
20 |
21 | public class LoginActivity extends AppCompatActivity {
22 |
23 | Button btnLogin;
24 | EditText etPassword, etEmail;
25 | TextView tvRegister;
26 | String email,password;
27 | FirebaseAuth auth;
28 |
29 | @Override
30 | protected void onCreate(Bundle savedInstanceState) {
31 | super.onCreate(savedInstanceState);
32 | setContentView(R.layout.activity_login);
33 | btnLogin = findViewById(R.id.btnLogin);
34 | etPassword = findViewById(R.id.etPassword);
35 | etEmail = findViewById(R.id.etEmail);
36 | tvRegister = findViewById(R.id.tvRegister);
37 | auth=FirebaseAuth.getInstance();
38 | btnLogin.setOnClickListener(new View.OnClickListener() {
39 | @Override
40 | public void onClick(View view) {
41 | email=etEmail.getText().toString();
42 | password=etPassword.getText().toString();
43 | if(checkvalidation()){
44 | auth.signInWithEmailAndPassword(email, password)
45 | .addOnCompleteListener(LoginActivity.this, new OnCompleteListener() {
46 | @Override
47 | public void onComplete(@NonNull Task task) {
48 | if(task.isSuccessful())
49 | {
50 | Log.d("tag", "signInWithEmail:success");
51 | Intent i = new Intent(getBaseContext(), AfterLogin.class);
52 | startActivity(i);
53 |
54 | finish();
55 |
56 | }
57 | else
58 | {
59 | Toast.makeText(LoginActivity.this,"Aithentication Failed",Toast.LENGTH_SHORT).show();
60 |
61 | }
62 | }
63 | });
64 | }
65 |
66 | }
67 | });
68 |
69 |
70 | tvRegister.setOnClickListener(new View.OnClickListener() {
71 | @Override
72 | public void onClick(View view) {
73 |
74 |
75 | Intent i = new Intent(getBaseContext(), RegisterActivity.class);
76 | startActivity(i);
77 | }
78 | });
79 |
80 |
81 |
82 | }
83 |
84 | private boolean checkvalidation() {
85 | boolean check=true;
86 |
87 | if (TextUtils.isEmpty(email))
88 | {
89 | etEmail.setError("Required");
90 | check=false;
91 | }
92 | if (TextUtils.isEmpty(password))
93 | {
94 | etPassword.setError("Required");
95 | check=false;
96 | }
97 | return check;
98 | }
99 |
100 | }
101 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | xmlns:android
11 |
12 | ^$
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | xmlns:.*
22 |
23 | ^$
24 |
25 |
26 | BY_NAME
27 |
28 |
29 |
30 |
31 |
32 |
33 | .*:id
34 |
35 | http://schemas.android.com/apk/res/android
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | .*:name
45 |
46 | http://schemas.android.com/apk/res/android
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | name
56 |
57 | ^$
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | style
67 |
68 | ^$
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 | .*
78 |
79 | ^$
80 |
81 |
82 | BY_NAME
83 |
84 |
85 |
86 |
87 |
88 |
89 | .*
90 |
91 | http://schemas.android.com/apk/res/android
92 |
93 |
94 | ANDROID_ATTRIBUTE_ORDER
95 |
96 |
97 |
98 |
99 |
100 |
101 | .*
102 |
103 | .*
104 |
105 |
106 | BY_NAME
107 |
108 |
109 |
110 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
15 |
17 |
19 |
21 |
22 |
24 |
27 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
53 |
55 |
57 |
59 |
61 |
63 |
65 |
67 |
69 |
71 |
73 |
75 |
76 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_yoga.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
19 |
20 |
39 |
40 |
57 |
58 |
67 |
68 |
78 |
79 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/RegisterActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.annotation.NonNull;
4 | import androidx.appcompat.app.AppCompatActivity;
5 |
6 | import android.content.Context;
7 | import android.content.Intent;
8 | import android.content.SharedPreferences;
9 | import android.os.Bundle;
10 | import android.text.TextUtils;
11 | import android.util.Log;
12 | import android.view.View;
13 | import android.widget.Button;
14 | import android.widget.EditText;
15 | import android.widget.Toast;
16 |
17 | import com.google.android.gms.tasks.OnCompleteListener;
18 | import com.google.android.gms.tasks.Task;
19 | import com.google.firebase.auth.AuthResult;
20 | import com.google.firebase.auth.FirebaseAuth;
21 | import com.google.firebase.database.DatabaseReference;
22 | import com.google.firebase.database.FirebaseDatabase;
23 |
24 |
25 | public class RegisterActivity extends AppCompatActivity {
26 | FirebaseAuth auth;
27 | String email, password , Organisation;
28 | EditText etEmail, etPassword, etOrganisation;
29 | Button btnSignUp;
30 | SharedPreferences sharedPreferences;
31 |
32 |
33 | // DatabaseReference databaseReference;
34 | FirebaseDatabase firebaseDatabase;
35 |
36 |
37 | @Override
38 | protected void onCreate(Bundle savedInstanceState) {
39 | super.onCreate(savedInstanceState);
40 | setContentView(R.layout.activity_register);
41 | etEmail = findViewById(R.id.etEmail);
42 | etPassword = findViewById(R.id.etPassword);
43 | btnSignUp = findViewById(R.id.btnSignUp);
44 | etOrganisation = findViewById(R.id.etOrganisation);
45 | auth = FirebaseAuth.getInstance();
46 |
47 |
48 | firebaseDatabase = FirebaseDatabase.getInstance("https://fitofyindia.firebaseio.com/");
49 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
50 |
51 |
52 | btnSignUp.setOnClickListener(new View.OnClickListener() {
53 | @Override
54 | public void onClick(View view) {
55 |
56 | Organisation = etOrganisation.getText().toString();
57 | email = etEmail.getText().toString();
58 | password = etPassword.getText().toString();
59 |
60 |
61 | // databaseReference = firebaseDatabase.getReference("Organisation/" );
62 | // databaseReference.child(Organisation).push();
63 |
64 |
65 | if (chekvalidation()) {
66 | auth.createUserWithEmailAndPassword(email, password)
67 | .addOnCompleteListener(RegisterActivity.this, new OnCompleteListener() {
68 | @Override
69 | public void onComplete(@NonNull Task task) {
70 | if (task.isSuccessful()) {
71 | Log.d("tag", "createUserWithEmail:success");
72 |
73 | Intent intent = new Intent(RegisterActivity.this, AfterLogin.class);
74 | startActivity(intent);
75 | finish();
76 | } else {
77 | Log.e("tag", "createUserWithEmail:failure", task.getException());
78 | Toast.makeText(RegisterActivity.this, "Authentication failed.",
79 | Toast.LENGTH_SHORT).show();
80 | }
81 | }
82 | });
83 | }
84 |
85 |
86 | SharedPreferences.Editor editor = sharedPreferences.edit();
87 | editor.putString("OrgName", Organisation);
88 | editor.apply();
89 |
90 |
91 | }
92 | });
93 |
94 |
95 | }
96 |
97 | private boolean chekvalidation() {
98 | boolean check = true;
99 | if (TextUtils.isEmpty(email)) {
100 | etEmail.setError("Required");
101 | check = false;
102 | }
103 | if (TextUtils.isEmpty(password)) {
104 | etPassword.setError("Required");
105 | check = false;
106 | }
107 |
108 | if (etOrganisation.getText().toString().isEmpty()){
109 | etOrganisation.setError("Required");
110 | check = false;
111 | }
112 | return check;
113 | }
114 | }
115 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_login_individual.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
23 |
24 |
25 |
41 |
42 |
43 |
59 |
60 |
78 |
79 |
96 |
97 |
113 |
114 |
115 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/YogaEditWork.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import android.content.Intent;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.view.animation.Animation;
7 | import android.view.animation.AnimationUtils;
8 | import android.widget.Button;
9 | import android.widget.LinearLayout;
10 | import android.widget.TextView;
11 | import android.widget.Toast;
12 |
13 | import androidx.appcompat.app.AppCompatActivity;
14 |
15 | public class YogaEditWork extends AppCompatActivity {
16 |
17 | TextView titlepage, subtitlepage, fitonetitle, fitonedesc,
18 | workvalue, fittwotitle, fittwodesc, btnexercise;
19 |
20 | Button btnlocked, btnadd, btnremove;
21 |
22 | View divpage, bgprogress;
23 |
24 | LinearLayout fitone, fittwo;
25 |
26 | Animation bttone, bttwo, bttfour, bttfive;
27 |
28 | int sumworkout = 0;
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.activity_yoga_edit_work);
34 |
35 |
36 |
37 | // load animations
38 | bttone = AnimationUtils.loadAnimation(this, R.anim.bttone2);
39 | bttwo = AnimationUtils.loadAnimation(this, R.anim.bttwo2);
40 | bttfour = AnimationUtils.loadAnimation(this, R.anim.bttfour2);
41 | bttfive = AnimationUtils.loadAnimation(this, R.anim.bttfive2);
42 |
43 | titlepage = findViewById(R.id.titlepage);
44 | subtitlepage = findViewById(R.id.subtitlepage);
45 |
46 | fitone = findViewById(R.id.fitone);
47 | fittwo = findViewById(R.id.fittwo);
48 |
49 | divpage = findViewById(R.id.divpage);
50 | bgprogress = findViewById(R.id.bgprogress);
51 |
52 | fitonetitle = findViewById(R.id.fitonetitle);
53 | fitonedesc = findViewById(R.id.fitonedesc);
54 | fittwotitle = findViewById(R.id.fittwotitle);
55 | fittwodesc = findViewById(R.id.fittwodesc);
56 |
57 | btnlocked = findViewById(R.id.btnlocked);
58 | btnadd = findViewById(R.id.btnadd);
59 | btnremove = findViewById(R.id.btnremove);
60 |
61 | workvalue = findViewById(R.id.workvalue);
62 |
63 | btnexercise = findViewById(R.id.btnexercise);
64 |
65 | // import font
66 | // Typeface MLight = Typeface.createFromAsset(getAssets(), "fonts/MLight.ttf");
67 | // Typeface MMedium = Typeface.createFromAsset(getAssets(), "fonts/MMedium.ttf");
68 | // Typeface Vidaloka = Typeface.createFromAsset(getAssets(), "fonts/Vidaloka.ttf");
69 |
70 | // customize font
71 | // titlepage.setTypeface(Vidaloka);
72 | // subtitlepage.setTypeface(MLight);
73 | // btnexercise.setTypeface(MMedium);
74 | //
75 | // fitonetitle.setTypeface(MMedium);
76 | // fitonedesc.setTypeface(MLight);
77 | // fittwotitle.setTypeface(MMedium);
78 | // fittwodesc.setTypeface(MLight);
79 | //
80 | // workvalue.setTypeface(MMedium);
81 | //
82 | // btnlocked.setTypeface(MMedium);
83 | // btnadd.setTypeface(MMedium);
84 |
85 | btnadd.setOnClickListener(new View.OnClickListener() {
86 | @Override
87 | public void onClick(View v) {
88 | sumworkout+=1;
89 | workvalue.setText(String.valueOf(sumworkout));
90 | }
91 | });
92 |
93 | btnremove.setOnClickListener(new View.OnClickListener() {
94 | @Override
95 | public void onClick(View v) {
96 | if(sumworkout <= 0){
97 | Toast.makeText(getApplicationContext(), "Sorry!", Toast.LENGTH_SHORT).show();
98 | } else {
99 | sumworkout-=1;
100 | workvalue.setText(String.valueOf(sumworkout));
101 | }
102 | }
103 | });
104 |
105 |
106 | // assign the animations
107 | titlepage.startAnimation(bttone);
108 | subtitlepage.startAnimation(bttone);
109 | divpage.startAnimation(bttone);
110 |
111 | fitone.startAnimation(bttwo);
112 | fittwo.startAnimation(bttfour);
113 |
114 | btnexercise.startAnimation(bttfive);
115 | bgprogress.startAnimation(bttfive);
116 |
117 | // give an event to another page
118 | btnexercise.setOnClickListener(new View.OnClickListener() {
119 | @Override
120 | public void onClick(View v) {
121 | Intent a = new Intent(YogaEditWork.this,YogaStartWork_2nd.class);
122 | a.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
123 | startActivity(a);
124 | }
125 | });
126 |
127 |
128 | }
129 | }
130 |
131 |
132 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/YogaStartWork.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | // import android.os.CountDownTimer;
8 | import android.view.View;
9 | import android.view.animation.Animation;
10 | import android.view.animation.AnimationUtils;
11 | import android.widget.ImageView;
12 | import android.widget.LinearLayout;
13 | import android.widget.TextView;
14 | // import android.widget.Toast;
15 |
16 | // import java.util.Locale;
17 |
18 | public class YogaStartWork extends AppCompatActivity {
19 |
20 |
21 | TextView intropage, subintropage, fitonetitle, fitonedesc, timerValue, btnexercise;
22 | View divpage, bgprogress;
23 | ImageView imgtimer;
24 | LinearLayout fitone;
25 |
26 | /* private static final long START_TIME_IN_MILLIS = 800000;
27 | private CountDownTimer countDownTimer;
28 | private boolean mTimerRunning;
29 | private long mTimeLeftInMillis = START_TIME_IN_MILLIS; */
30 |
31 | Animation btthree, bttfour, ttbone, ttbtwo, alphagogo;
32 |
33 |
34 |
35 | @Override
36 | protected void onCreate(Bundle savedInstanceState) {
37 | super.onCreate(savedInstanceState);
38 | setContentView(R.layout.activity_yoga_start_work);
39 |
40 |
41 | // load animations
42 | btthree = AnimationUtils.loadAnimation(this, R.anim.btthree2);
43 | bttfour = AnimationUtils.loadAnimation(this, R.anim.bttfour2);
44 | ttbone = AnimationUtils.loadAnimation(this, R.anim.ttbone2);
45 | ttbtwo = AnimationUtils.loadAnimation(this, R.anim.ttbtwo2);
46 | alphagogo = AnimationUtils.loadAnimation(this, R.anim.alphagogo2);
47 |
48 |
49 | // import font
50 | // Typeface MLight = Typeface.createFromAsset(getAssets(), "fonts/MLight.ttf");
51 | // Typeface MMedium = Typeface.createFromAsset(getAssets(), "fonts/MMedium.ttf");
52 | // Typeface Vidaloka = Typeface.createFromAsset(getAssets(), "fonts/Vidaloka.ttf");
53 |
54 |
55 | intropage = findViewById(R.id.intropage);
56 | subintropage = findViewById(R.id.subintropage);
57 | btnexercise = findViewById(R.id.btnexercise);
58 | fitonetitle = findViewById(R.id.fitonetitle);
59 | fitonedesc = findViewById(R.id.fitonedesc);
60 | timerValue = findViewById(R.id.timerValue);
61 | btnexercise = findViewById(R.id.btnexercise);
62 |
63 | divpage = findViewById(R.id.divpage);
64 | bgprogress = findViewById(R.id.bgprogress);
65 | fitone = findViewById(R.id.fitone);
66 | imgtimer = findViewById(R.id.imgtimer);
67 |
68 | // change customize font
69 | // intropage.setTypeface(Vidaloka);
70 | // subintropage.setTypeface(MLight);
71 | // btnexercise.setTypeface(MMedium);
72 | // timerValue.setTypeface(MMedium);
73 | // fitonedesc.setTypeface(MLight);
74 | // fitonetitle.setTypeface(MMedium);
75 | //
76 | // // assign animation
77 | btnexercise.startAnimation(bttfour);
78 | bgprogress.startAnimation(btthree);
79 | fitone.startAnimation(ttbone);
80 | intropage.startAnimation(ttbtwo);
81 | subintropage.startAnimation(ttbtwo);
82 | divpage.startAnimation(ttbtwo);
83 | timerValue.startAnimation(alphagogo);
84 | imgtimer.startAnimation(alphagogo);
85 |
86 | startTimer();
87 |
88 | // give an event to another page
89 | btnexercise.setOnClickListener(new View.OnClickListener() {
90 | @Override
91 | public void onClick(View v) {
92 | Intent a = new Intent(YogaStartWork.this, YogaWorkOut.class);
93 | a.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
94 | startActivity(a);
95 | }
96 | });
97 |
98 | }
99 |
100 | private void startTimer(){
101 | /* countDownTimer = new CountDownTimer(mTimeLeftInMillis, 1000) {
102 | @Override
103 | public void onTick(long millisUntilFinished) {
104 | mTimeLeftInMillis = millisUntilFinished;
105 | updateCountDowntText();
106 | }
107 |
108 | @Override
109 | public void onFinish() {
110 | Toast.makeText(getApplicationContext(), "Congratulations!", Toast.LENGTH_SHORT).show();
111 | }
112 | }.start();
113 | mTimerRunning = true; */
114 | }
115 |
116 | /* private void updateCountDowntText(){
117 | int minutes = (int) (mTimeLeftInMillis / 1000) / 60;
118 | int seconds = (int) (mTimeLeftInMillis / 1000) % 60;
119 |
120 | String timeLeft = String.format(Locale.getDefault(), "%02d:%02d", minutes, seconds);
121 | timerValue.setText(timeLeft);
122 | } */
123 | }
124 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/YogaWorkOut.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | import android.view.View;
8 | import android.view.animation.Animation;
9 | import android.view.animation.AnimationUtils;
10 | import android.widget.LinearLayout;
11 | import android.widget.TextView;
12 |
13 | public class YogaWorkOut extends AppCompatActivity {
14 |
15 | TextView titlepage, subtitlepage, intropage, subintropage,
16 | btnexercise, fitonetitle, fitonedesc, fittwotitle, fittwodesc,
17 | fitthreetitle, fitthreedesc, fitfourtitle, fitfourdesc;
18 |
19 | Animation bttone, bttwo, bttfour, bttfive, bttsix, bttseven, btteight;
20 |
21 | View divpage, bgprogress;
22 |
23 | LinearLayout fitone, fittwo, fitthree, fitfour;
24 |
25 |
26 | @Override
27 | protected void onCreate(Bundle savedInstanceState) {
28 | super.onCreate(savedInstanceState);
29 | setContentView(R.layout.activity_yoga_work_out);
30 |
31 |
32 | // load animations
33 | bttone = AnimationUtils.loadAnimation(this, R.anim.bttone2);
34 | bttwo = AnimationUtils.loadAnimation(this, R.anim.bttwo2);
35 | bttfour = AnimationUtils.loadAnimation(this, R.anim.bttfour2);
36 | bttfive = AnimationUtils.loadAnimation(this, R.anim.bttfive2);
37 | bttsix = AnimationUtils.loadAnimation(this, R.anim.bttsix2);
38 | bttseven = AnimationUtils.loadAnimation(this, R.anim.bttseven2);
39 | btteight = AnimationUtils.loadAnimation(this, R.anim.btteight2);
40 |
41 | // import font
42 | // Typeface MLight = Typeface.createFromAsset(getAssets(), "fonts/MLight.ttf");
43 | // Typeface MMedium = Typeface.createFromAsset(getAssets(), "fonts/MMedium.ttf");
44 | // Typeface Vidaloka = Typeface.createFromAsset(getAssets(), "fonts/Vidaloka.ttf");
45 |
46 | titlepage = findViewById(R.id.titlepage);
47 | subtitlepage = findViewById(R.id.subtitlepage);
48 | intropage = findViewById(R.id.intropage);
49 | subintropage = findViewById(R.id.subintropage);
50 | btnexercise = findViewById(R.id.btnexercise);
51 | divpage = findViewById(R.id.divpage);
52 | bgprogress = findViewById(R.id.bgprogress);
53 |
54 |
55 | // give an event to another page
56 | btnexercise.setOnClickListener(new View.OnClickListener() {
57 | @Override
58 | public void onClick(View v) {
59 | Intent a = new Intent(YogaWorkOut.this,YogaStartWork.class);
60 | a.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
61 | startActivity(a);
62 | }
63 | });
64 |
65 | // item fit layout
66 | fitone = findViewById(R.id.fitone);
67 | fittwo = findViewById(R.id.fittwo);
68 | fitthree = findViewById(R.id.fitthree);
69 | fitfour = findViewById(R.id.fitfour);
70 |
71 |
72 |
73 |
74 | // item fit
75 | fitonetitle = findViewById(R.id.fitonetitle);
76 | fitonedesc = findViewById(R.id.fitonedesc);
77 |
78 | fittwotitle = findViewById(R.id.fittwotitle);
79 | fittwodesc = findViewById(R.id.fittwodesc);
80 |
81 | fitthreetitle = findViewById(R.id.fitthreetitle);
82 | fitthreedesc = findViewById(R.id.fitthreedesc);
83 |
84 | fitfourtitle = findViewById(R.id.fitfourtitle);
85 | fitfourdesc = findViewById(R.id.fitfourdesc);
86 |
87 | // customize font
88 | // titlepage.setTypeface(Vidaloka);
89 | // subtitlepage.setTypeface(MLight);
90 | // intropage.setTypeface(Vidaloka);
91 | // subintropage.setTypeface(MLight);
92 | // btnexercise.setTypeface(MMedium);
93 |
94 | // customize font item
95 | // fitonedesc.setTypeface(MLight);
96 | // fitonetitle.setTypeface(MMedium);
97 | //
98 | // fittwodesc.setTypeface(MLight);
99 | // fittwotitle.setTypeface(MMedium);
100 | //
101 | // fitthreedesc.setTypeface(MLight);
102 | // fitthreetitle.setTypeface(MMedium);
103 | //
104 | // fitfourdesc.setTypeface(MLight);
105 | // fitfourtitle.setTypeface(MMedium);
106 |
107 | // assign the animations
108 | titlepage.startAnimation(bttone);
109 | subtitlepage.startAnimation(bttone);
110 | divpage.startAnimation(bttone);
111 |
112 | intropage.startAnimation(bttwo);
113 | subintropage.startAnimation(bttwo);
114 |
115 | fitone.startAnimation(bttwo);
116 | fittwo.startAnimation(bttfour);
117 | fitthree.startAnimation(bttfive);
118 | fitfour.startAnimation(bttsix);
119 |
120 | btnexercise.startAnimation(btteight);
121 | bgprogress.startAnimation(bttseven);
122 |
123 |
124 |
125 |
126 |
127 | }
128 | }
129 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/YogaStartWork_2nd.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Intent;
6 | import android.os.Bundle;
7 | // import android.os.CountDownTimer;
8 | import android.view.View;
9 | import android.view.animation.Animation;
10 | import android.view.animation.AnimationUtils;
11 | import android.widget.ImageView;
12 | import android.widget.LinearLayout;
13 | import android.widget.TextView;
14 | // import android.widget.Toast;
15 |
16 | // import java.util.Locale;
17 |
18 | public class YogaStartWork_2nd extends AppCompatActivity {
19 |
20 | TextView intropage2, subintropage2, fitonetitle2, fitonedesc2, timerValue2, btnexercise2;
21 | View divpage2, bgprogress2;
22 | ImageView imgtimer2;
23 | LinearLayout fitone2;
24 |
25 |
26 | /* private static final long START_TIME_IN_MILLIS = 800000;
27 | private CountDownTimer countDownTimer;
28 | private boolean mTimerRunning;
29 | private long mTimeLeftInMillis = START_TIME_IN_MILLIS; */
30 |
31 | Animation btthree, bttfour, ttbone, ttbtwo, alphagogo;
32 |
33 |
34 | @Override
35 | protected void onCreate(Bundle savedInstanceState) {
36 | super.onCreate(savedInstanceState);
37 | setContentView(R.layout.activity_yoga_start_work_2nd);
38 |
39 |
40 | // load animations
41 | btthree = AnimationUtils.loadAnimation(this, R.anim.btthree2);
42 | bttfour = AnimationUtils.loadAnimation(this, R.anim.bttfour2);
43 | ttbone = AnimationUtils.loadAnimation(this, R.anim.ttbone2);
44 | ttbtwo = AnimationUtils.loadAnimation(this, R.anim.ttbtwo2);
45 | alphagogo = AnimationUtils.loadAnimation(this, R.anim.alphagogo2);
46 |
47 |
48 | // import font
49 | // Typeface MLight = Typeface.createFromAsset(getAssets(), "fonts/MLight.ttf");
50 | // Typeface MMedium = Typeface.createFromAsset(getAssets(), "fonts/MMedium.ttf");
51 | // Typeface Vidaloka = Typeface.createFromAsset(getAssets(), "fonts/Vidaloka.ttf");
52 |
53 |
54 | intropage2 = findViewById(R.id.intropage2);
55 | subintropage2 = findViewById(R.id.subintropage2);
56 | btnexercise2 = findViewById(R.id.btnexercise2);
57 | fitonetitle2 = findViewById(R.id.fitonetitle2);
58 | fitonedesc2 = findViewById(R.id.fitonedesc2);
59 | timerValue2 = findViewById(R.id.timerValue2);
60 | btnexercise2 = findViewById(R.id.btnexercise2);
61 |
62 | divpage2 = findViewById(R.id.divpage2);
63 | bgprogress2 = findViewById(R.id.bgprogress2);
64 | fitone2 = findViewById(R.id.fitone2);
65 | imgtimer2 = findViewById(R.id.imgtimer2);
66 |
67 | // change customize font
68 | // intropage.setTypeface(Vidaloka);
69 | // subintropage.setTypeface(MLight);
70 | // btnexercise.setTypeface(MMedium);
71 | // timerValue.setTypeface(MMedium);
72 | // fitonedesc.setTypeface(MLight);
73 | // fitonetitle.setTypeface(MMedium);
74 | //
75 | // // assign animation
76 | btnexercise2.startAnimation(bttfour);
77 | bgprogress2.startAnimation(btthree);
78 | fitone2.startAnimation(ttbone);
79 | intropage2.startAnimation(ttbtwo);
80 | subintropage2.startAnimation(ttbtwo);
81 | divpage2.startAnimation(ttbtwo);
82 | timerValue2.startAnimation(alphagogo);
83 | imgtimer2.startAnimation(alphagogo);
84 |
85 | startTimer();
86 |
87 | // give an event to another page
88 | btnexercise2.setOnClickListener(new View.OnClickListener() {
89 | @Override
90 | public void onClick(View v) {
91 | Intent a = new Intent(YogaStartWork_2nd.this,YogaWorkOut.class);
92 | a.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
93 | startActivity(a);
94 | }
95 | });
96 |
97 | }
98 |
99 | private void startTimer(){
100 | /* countDownTimer = new CountDownTimer(mTimeLeftInMillis, 1000) {
101 | @Override
102 | public void onTick(long millisUntilFinished) {
103 | mTimeLeftInMillis = millisUntilFinished;
104 | updateCountDowntText();
105 | }
106 |
107 | @Override
108 | public void onFinish() {
109 | Toast.makeText(getApplicationContext(), "Congratulations!", Toast.LENGTH_SHORT).show();
110 | }
111 | }.start();
112 | mTimerRunning = true; */
113 | }
114 |
115 | /* private void updateCountDowntText(){
116 | int minutes = (int) (mTimeLeftInMillis / 1000) / 60;
117 | int seconds = (int) (mTimeLeftInMillis / 1000) % 60;
118 |
119 | String timeLeft = String.format(Locale.getDefault(), "%02d:%02d", minutes, seconds);
120 | timerValue2.setText(timeLeft);
121 | } */
122 | }
123 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/activity_beauty_tip.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
22 |
23 |
30 |
31 |
38 |
39 |
48 |
49 |
50 |
51 |
62 |
63 |
70 |
71 |
77 |
78 |
87 |
88 |
89 |
90 |
91 |
102 |
103 |
110 |
111 |
117 |
118 |
127 |
128 |
129 |
130 |
131 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_beauty_tip.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
22 |
23 |
30 |
31 |
38 |
39 |
48 |
49 |
50 |
51 |
62 |
63 |
70 |
71 |
77 |
78 |
87 |
88 |
89 |
90 |
91 |
102 |
103 |
110 |
111 |
117 |
118 |
127 |
128 |
129 |
130 |
131 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/activity_general.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
20 |
21 |
28 |
29 |
35 |
36 |
45 |
46 |
47 |
48 |
58 |
59 |
66 |
67 |
73 |
74 |
83 |
84 |
85 |
86 |
87 |
97 |
98 |
105 |
106 |
112 |
113 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_general.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
20 |
21 |
28 |
29 |
35 |
36 |
45 |
46 |
47 |
48 |
58 |
59 |
66 |
67 |
73 |
74 |
83 |
84 |
85 |
86 |
87 |
97 |
98 |
105 |
106 |
112 |
113 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/ClassSectionActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.content.SharedPreferences;
8 | import android.os.Bundle;
9 | import android.text.TextUtils;
10 | import android.util.Log;
11 | import android.view.View;
12 | import android.widget.AdapterView;
13 | import android.widget.ArrayAdapter;
14 | import android.widget.Button;
15 | import android.widget.Spinner;
16 | import android.widget.TextView;
17 |
18 | import com.google.firebase.database.DatabaseReference;
19 | import com.google.firebase.database.FirebaseDatabase;
20 |
21 | import java.util.ArrayList;
22 | import java.util.List;
23 |
24 | public class ClassSectionActivity extends AppCompatActivity {
25 |
26 |
27 | Button buttonNext;
28 | Spinner spinnerClass , spinnerSec;
29 | String className, secName;
30 |
31 | List ClassList = new ArrayList<>();
32 | List SecList = new ArrayList<>();
33 | SharedPreferences sharedPreferences;
34 |
35 | String organisation;
36 | FirebaseDatabase firebaseDatabase;
37 |
38 | DatabaseReference databaseReference;
39 |
40 | @Override
41 | protected void onCreate(Bundle savedInstanceState) {
42 | super.onCreate(savedInstanceState);
43 | setContentView(R.layout.activity_class_section);
44 |
45 | buttonNext = findViewById(R.id.buttonNext);
46 | spinnerClass=findViewById(R.id.spinnerClass);
47 | spinnerSec=findViewById(R.id.spinnerSection);
48 |
49 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
50 | organisation = sharedPreferences.getString("OrgName", organisation);
51 |
52 | firebaseDatabase = FirebaseDatabase.getInstance("https://fitofyindia.firebaseio.com/");
53 | databaseReference = firebaseDatabase.getReference("Organisation/" + organisation);
54 |
55 |
56 | ClassList.add("Select Class");
57 | ClassList.add("1");
58 | ClassList.add("2");
59 | ClassList.add("3");
60 | ClassList.add("4");
61 | ClassList.add("5");
62 | ClassList.add("6");
63 | ClassList.add("7");
64 | ClassList.add("8");
65 | ClassList.add("9");
66 | ClassList.add("10");
67 | ClassList.add("11");
68 | ClassList.add("12");
69 | SecList.add("Select Section");
70 | SecList.add("A");
71 | SecList.add("B");
72 | SecList.add("C");
73 | SecList.add("D");
74 |
75 |
76 |
77 | ArrayAdapter dataClassAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item,ClassList );
78 | ArrayAdapter dataSecAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, SecList);
79 |
80 | dataClassAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
81 | dataSecAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
82 | spinnerSec.setAdapter(dataSecAdapter);
83 | spinnerClass.setAdapter(dataClassAdapter);
84 |
85 | spinnerSec.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
86 | @Override
87 | public void onItemSelected(AdapterView> adapterView, View view, int i, long l) {
88 | // selected item SecList.get(i);
89 | secName = SecList.get(i);
90 | }
91 |
92 | @Override
93 | public void onNothingSelected(AdapterView> adapterView) {
94 |
95 | }
96 | });
97 |
98 | spinnerClass.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
99 | @Override
100 | public void onItemSelected(AdapterView> adapterView, View view, int i, long l) {
101 | //selected item ClassList.get(i);
102 | className = ClassList.get(i);
103 | }
104 |
105 | @Override
106 | public void onNothingSelected(AdapterView> adapterView) {
107 |
108 | }
109 | });
110 | buttonNext.setOnClickListener(new View.OnClickListener() {
111 | @Override
112 | public void onClick(View view) {
113 | if(validation()) {
114 |
115 | Log.e("check sec class", "onClick: " + className + secName );
116 | SharedPreferences.Editor editor = sharedPreferences.edit();
117 | //editor.putString("OrgName", className);
118 | editor.putString("Class", className);
119 | editor.putString("Section", secName);
120 | editor.apply();
121 |
122 |
123 | Intent i = new Intent(getBaseContext(), NameRollActivity.class);
124 |
125 | i.putExtra("class", className);
126 | i.putExtra("section", secName);
127 | startActivity(i);
128 |
129 | finish();
130 | }
131 |
132 | }
133 | });
134 |
135 | }
136 |
137 | private boolean validation() {
138 | boolean check = true;
139 |
140 | if (TextUtils.isEmpty(className)) {
141 | TextView errorText = (TextView) spinnerClass.getSelectedView();
142 | errorText.setError("");
143 | errorText.setText(getResources().getString(R.string.reqd));//changes the selected item text to this
144 |
145 | check = false;
146 | }
147 | if (TextUtils.isEmpty(secName)) {
148 |
149 | TextView errorText = (TextView) spinnerClass.getSelectedView();
150 | errorText.setError("");
151 | errorText.setText(getResources().getString(R.string.reqd));//changes the selected item text to this
152 |
153 | check = false;
154 | }
155 | return check;
156 | }
157 |
158 | }
159 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/SpeedActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.annotation.NonNull;
4 | import androidx.appcompat.app.AppCompatActivity;
5 |
6 | import android.annotation.SuppressLint;
7 | import android.content.Context;
8 | import android.content.SharedPreferences;
9 | import android.media.MediaPlayer;
10 | import android.os.Bundle;
11 | import android.os.Handler;
12 | import android.os.Message;
13 | import android.text.TextUtils;
14 | import android.view.View;
15 | import android.widget.Button;
16 | import android.widget.EditText;
17 | import android.widget.TextView;
18 |
19 | import com.google.firebase.database.DatabaseReference;
20 | import com.google.firebase.database.FirebaseDatabase;
21 |
22 | public class SpeedActivity extends AppCompatActivity {
23 |
24 | MediaPlayer md;
25 | TextView textViewTimer;
26 | Button buttonStartTimer,buttonStopTimer;
27 |
28 | EditText editTextDistance;
29 | Long distance ;
30 | String distString;
31 | TextView textViewSpeed;
32 | SharedPreferences sharedPreferences;
33 | String organisation, className,secName,Name,Roll;
34 | Long speed;
35 | Long time ;
36 | FirebaseDatabase firebaseDatabase;
37 | DatabaseReference databaseReference;
38 | final int MSG_START_TIMER = 0;
39 | final int MSG_STOP_TIMER = 1;
40 | final int MSG_UPDATE_TIMER = 2;
41 |
42 | Stopwatch timer = new Stopwatch();
43 | final int REFRESH_RATE = 100;
44 |
45 | @SuppressLint("HandlerLeak")
46 | Handler mHandler = new Handler()
47 | {
48 | @Override
49 | public void handleMessage(@NonNull Message msg) {
50 | super.handleMessage(msg);
51 | switch (msg.what) {
52 | case MSG_START_TIMER:
53 | timer.start(); //start timer
54 | mHandler.sendEmptyMessage(MSG_UPDATE_TIMER);
55 | break;
56 |
57 | case MSG_UPDATE_TIMER:
58 | textViewTimer.setText(String.valueOf(timer.getElapsedTimeSecs()));
59 | mHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIMER,REFRESH_RATE); //text view is updated every second,
60 | break; //though the timer is still running
61 | case MSG_STOP_TIMER:
62 | mHandler.removeMessages(MSG_UPDATE_TIMER); // no more updates.
63 | timer.stop();//stop timer
64 | textViewTimer.setText(String.valueOf(timer.getElapsedTimeSecs()));
65 | break;
66 |
67 | default:
68 | break;
69 | }
70 | }
71 | };
72 |
73 |
74 | @Override
75 | protected void onCreate(Bundle savedInstanceState) {
76 | super.onCreate(savedInstanceState);
77 | setContentView(R.layout.activity_speed);
78 |
79 | textViewTimer = findViewById(R.id.textViewTimer);
80 | buttonStartTimer = findViewById(R.id.buttonStartTimer);
81 | buttonStopTimer = findViewById(R.id.buttonStopTimer);
82 | editTextDistance = findViewById(R.id.editTextDistance);
83 | textViewSpeed = findViewById(R.id.textViewSpeed);
84 | buttonStopTimer.setVisibility(View.GONE);
85 |
86 |
87 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
88 |
89 | organisation = sharedPreferences.getString("OrgName", organisation);
90 | className = sharedPreferences.getString("Class",className);
91 | secName = sharedPreferences.getString("Section",secName);
92 | Name = sharedPreferences.getString("Name",Name);
93 | Roll = sharedPreferences.getString("Roll", Roll);
94 |
95 | firebaseDatabase = FirebaseDatabase.getInstance("https://fitofyindia.firebaseio.com/");
96 | databaseReference = firebaseDatabase.getReference("Organisation/" + organisation);
97 |
98 |
99 | md = new MediaPlayer();
100 | textViewSpeed.setVisibility(View.GONE);
101 | buttonStartTimer.setOnClickListener(new View.OnClickListener() {
102 | @Override
103 | public void onClick(View view) {
104 | distString=editTextDistance.getText().toString();
105 |
106 | if(checkValid()){
107 | md = MediaPlayer.create(SpeedActivity.this, R.raw.whistle);
108 | md.start();
109 |
110 | mHandler.sendEmptyMessage(MSG_START_TIMER);
111 | buttonStartTimer.setVisibility(View.GONE);
112 | buttonStopTimer.setVisibility(View.VISIBLE);
113 |
114 | }
115 |
116 |
117 | }
118 | });
119 |
120 | buttonStopTimer.setOnClickListener(new View.OnClickListener() {
121 | @Override
122 | public void onClick(View view) {
123 |
124 | distance = Long.parseLong(distString);
125 |
126 |
127 | md = MediaPlayer.create(SpeedActivity.this, R.raw.whistle);
128 | md.start();
129 | mHandler.sendEmptyMessage(MSG_STOP_TIMER);
130 | time=Long.parseLong(textViewTimer.getText().toString());
131 | speed=distance/time;
132 |
133 | databaseReference.child(className).child(secName).child(Roll).child("Speed").setValue(speed);
134 | textViewSpeed.setVisibility(View.VISIBLE);
135 | textViewSpeed.setText(String.format("Speed Of %s Is %s m/sec", Name, speed));
136 | buttonStopTimer.setVisibility(View.GONE);
137 | buttonStartTimer.setVisibility(View.VISIBLE);
138 | }
139 | });
140 |
141 | }
142 | private boolean checkValid() {
143 | boolean check =true;
144 | if(TextUtils.isEmpty(distString))
145 | {
146 | editTextDistance.setError("Required");
147 | check=false;
148 | }
149 |
150 | return check;
151 | }
152 | }
153 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/app/src/main/java/com/saumya/fitofyindia/AgilityActivity.java:
--------------------------------------------------------------------------------
1 | package com.saumya.fitofyindia;
2 |
3 | import androidx.annotation.NonNull;
4 | import androidx.appcompat.app.AppCompatActivity;
5 |
6 | import android.annotation.SuppressLint;
7 | import android.content.Context;
8 | import android.content.SharedPreferences;
9 | import android.media.MediaPlayer;
10 | import android.os.Bundle;
11 | import android.os.Handler;
12 | import android.os.Message;
13 | import android.text.TextUtils;
14 | import android.view.View;
15 | import android.widget.Button;
16 | import android.widget.EditText;
17 | import android.widget.TextView;
18 |
19 | import com.google.firebase.database.DatabaseReference;
20 | import com.google.firebase.database.FirebaseDatabase;
21 |
22 | public class AgilityActivity extends AppCompatActivity {
23 |
24 | MediaPlayer md;
25 | TextView textViewTimer;
26 | Button buttonStartTimer,buttonStopTimer;
27 |
28 | EditText editTextDistance,obstracle;
29 | Long distance ;
30 | String distString,obstraclestring;
31 | TextView textViewSpeed;
32 | SharedPreferences sharedPreferences;
33 | String organisation, className,secName,Name,Roll;
34 | Long speed;
35 | Long time ;
36 | FirebaseDatabase firebaseDatabase;
37 | DatabaseReference databaseReference;
38 | final int MSG_START_TIMER = 0;
39 | final int MSG_STOP_TIMER = 1;
40 | final int MSG_UPDATE_TIMER = 2;
41 |
42 | Stopwatch timer = new Stopwatch();
43 | final int REFRESH_RATE = 100;
44 |
45 | @SuppressLint("HandlerLeak")
46 | Handler mHandler = new Handler()
47 | {
48 | @Override
49 | public void handleMessage(@NonNull Message msg) {
50 | super.handleMessage(msg);
51 | switch (msg.what) {
52 | case MSG_START_TIMER:
53 | timer.start(); //start timer
54 | mHandler.sendEmptyMessage(MSG_UPDATE_TIMER);
55 | break;
56 |
57 | case MSG_UPDATE_TIMER:
58 | textViewTimer.setText(String.valueOf(timer.getElapsedTimeSecs()));
59 | mHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIMER,REFRESH_RATE); //text view is updated every second,
60 | break; //though the timer is still running
61 | case MSG_STOP_TIMER:
62 | mHandler.removeMessages(MSG_UPDATE_TIMER); // no more updates.
63 | timer.stop();//stop timer
64 | textViewTimer.setText(String.valueOf(timer.getElapsedTimeSecs()));
65 | break;
66 |
67 | default:
68 | break;
69 | }
70 | }
71 | };
72 |
73 |
74 | @Override
75 | protected void onCreate(Bundle savedInstanceState) {
76 | super.onCreate(savedInstanceState);
77 | setContentView(R.layout.activity_agility);
78 | textViewTimer = findViewById(R.id.textViewTimer);
79 | buttonStartTimer = findViewById(R.id.buttonStartTimer);
80 | buttonStopTimer = findViewById(R.id.buttonStopTimer);
81 | editTextDistance = findViewById(R.id.editTextDistance);
82 | obstracle=findViewById(R.id.editTextObstracle);
83 | textViewSpeed = findViewById(R.id.textViewSpeed);
84 | buttonStopTimer.setVisibility(View.GONE);
85 |
86 |
87 | sharedPreferences = getSharedPreferences("Organisation", Context.MODE_PRIVATE);
88 |
89 | organisation = sharedPreferences.getString("OrgName", organisation);
90 | className = sharedPreferences.getString("Class",className);
91 | secName = sharedPreferences.getString("Section",secName);
92 | Name = sharedPreferences.getString("Name",Name);
93 | Roll = sharedPreferences.getString("Roll", Roll);
94 |
95 | firebaseDatabase = FirebaseDatabase.getInstance("https://fitofyindia.firebaseio.com/");
96 | databaseReference = firebaseDatabase.getReference("Organisation/" + organisation);
97 |
98 |
99 | md = new MediaPlayer();
100 | textViewSpeed.setVisibility(View.GONE);
101 | buttonStartTimer.setOnClickListener(new View.OnClickListener() {
102 | @Override
103 | public void onClick(View view) {
104 | distString=editTextDistance.getText().toString();
105 | obstraclestring=obstracle.getText().toString();
106 |
107 |
108 | if(checkValid()){
109 | md = MediaPlayer.create(AgilityActivity.this, R.raw.whistle);
110 | md.start();
111 |
112 | mHandler.sendEmptyMessage(MSG_START_TIMER);
113 | buttonStartTimer.setVisibility(View.GONE);
114 | buttonStopTimer.setVisibility(View.VISIBLE);
115 |
116 | }
117 |
118 |
119 | }
120 | });
121 |
122 | buttonStopTimer.setOnClickListener(new View.OnClickListener() {
123 | @Override
124 | public void onClick(View view) {
125 |
126 | distance = Long.parseLong(distString);
127 |
128 |
129 | md = MediaPlayer.create(AgilityActivity.this, R.raw.whistle);
130 | md.start();
131 | mHandler.sendEmptyMessage(MSG_STOP_TIMER);
132 | time=Long.parseLong(textViewTimer.getText().toString());
133 | speed=distance/time;
134 |
135 | databaseReference.child(className).child(secName).child(Roll).child("Agility").setValue(time);
136 | textViewSpeed.setVisibility(View.VISIBLE);
137 | textViewSpeed.setText(String.format("Obstracle completed by %s In %s sec", Name, time));
138 | buttonStopTimer.setVisibility(View.GONE);
139 | buttonStartTimer.setVisibility(View.VISIBLE);
140 | }
141 | });
142 |
143 | }
144 | private boolean checkValid() {
145 | boolean check = true;
146 | if(TextUtils.isEmpty(distString))
147 | {
148 | editTextDistance.setError("Required");
149 | check=false;
150 | }
151 |
152 | if(TextUtils.isEmpty(obstraclestring)){
153 | obstracle.setError("Required");
154 | check=false;
155 | }
156 | return check;
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_yoga_start_work_2nd.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
24 |
25 |
30 |
31 |
37 |
38 |
45 |
46 |
54 |
55 |
56 |
57 |
58 |
59 |
72 |
73 |
86 |
87 |
88 |
89 |
100 |
101 |
102 |
115 |
116 |
117 |
129 |
130 |
131 |
140 |
141 |
155 |
156 |
157 |
--------------------------------------------------------------------------------