Click here to Skip to main content
Click here to Skip to main content

The Body Trainer

, 3 Sep 2013
Rate this:
Please Sign up or sign in to vote.
Complete Body training app with consultancy to nearby firms !!

Please note

This article is an entry in our AppInnovation Contest. Articles in this sub-section are not required to be full articles so care should be taken when voting.

Platform

Tablet(Health Care)

Introduction

A fit body comes from hard work on the basic exercises in a disciplined way , proper diet intake, exercise on lower reps, taking each set to at least failure. It also comes from proper recovery and proper nutrition/supplementation. This routine is ideal for natural bodybuilders and people with busy schedules, but anyone can use it with great results. This is an app for improving the body checks in a efficient way and generally for different age groups either they are children ,adult or old persons this is an app for everyone and helpful in making a complete control on daily functional activities through an app .

The Body Trainer is a WPF desktop application and will be developed using C#, XAML integrated with Bing Map API's , SQL Azure Database and WCF services.

Goal

Everyone knows exercise plays an important role in our general health, but whether its a lack of motivation, the need to travel to the gym, the cost of equipment, or simply know-how, these supposed obstacles often stand in our way. In reality, all you need is yourself. Here's how you can get a full-body workout with nothing but your body through a software with some cool demonstrations of every exercise related to different body parts and diet control tips and how to follow it on daily basis in efficient way . It also comprises the consultancy facility that user can easily consult to the nearby doctors and he can visit with help of the device and GPS navigation system .

For whom it would work and description.

Generally it is for everyone and it has some set of algorithms that would work according to the user and i have divided this app into two category -

1. Body Training-

In this section user can register and can create an account and after that can enter with by providing name , age, sex and weight and after that according to the data provided several list of exercises with their body positions and a video demo will be shown out and after their complete details are as follow

  1. Types of exercises- In this section various types of exercises will be shown out like cardio ,body weight squats, push-ups, walking lunges, triceps dips, back extensions, bicycle crunches and reverse crunches and running pattern etc. So according to this user can follow the instruction and see the demonstration which will be in our database and can learn various tips related to positions and fatigue compensation and can make a daily routine which will be very beneficial for the trainee.
  2. How to do it - There will be detailed description regarding various pattern which should be followed and performed while doing these exercises and complete description of each and every exercise and its benefit will be shown out.
  3. Diet Precautions- Diet precautions is very necessary part while doing exercises , there will be complete description of diet intake process and its benefit will be shown out.
  4. Frequency- Frequency is all about the number of times you have to perform the exercise and its benefit, for example add intervals to your program to induce faster fat loss. Try running as fast as you can for 30 seconds, then slip back into a walk or slow jog for the next 30 to 60 seconds. Repeat eight to 12 times for best results etc.
  5. Time Period- Its all about the time period that user has to perform the exercise .
  6. Change in pattern - It will show some list of other exercises related to some body parts and after that what changes that would be needed after performing some sets of defined exercises. It will about the variations and changes that trainee must apply under the training period .

2.Consultancy -

Health care management consulting is very important in ones life. Every human being needs to consult health care management consultancies to have a better, bright and healthier future. The definition encompasses physical, mental, and social well-being. Fastest growing health care consultancy works to improve the design and delivery of good health services. Health care management consulting people take good care of the people who visit their centers for a consultation. Health consultant makes aware of all the healthy foods that have to be taken by human beings. This app will provide the near consultancy firm like doctors health clinic and gym for better consultancy services through GPS locator on maps, first this app will ask user's location and after that it will show the nearby consultancy firms and doctors clinic according to the user's request .

Innovation And Features

  1. Complete Body Training through an app which provides several instructions for different exercises and its proper implementation method with different body positions and though demos for people of different age groups and their mode of food intake with some modern algorithms according to age, sex and daily routine work.
  2. Database has more than 200 videos which will simply help in making complete trainer app.
  3. Location of different hospitals and clinic for treatment and consultancy related to health and it can be located though GPS locator integrated with Bing Map API's.
  4. It has a scheduler which will remind about the training time and and frequency of exercises under the given time it also indicate and show the food intake charts and how to apply some changes according to time.
  5. Clear UI and user friendly options with better navigation system to different parts of application and performance.

Back-end and Architecture

  1. C# 4.0 ,XAML a complete WPF application
  2. SQL Azure for database.
  3. WCF Service
  4. Bing Maps API's.

Using the code

Here I am just going to include some of my apps code which helps in basic modelling of this app and i have used C# and XAML and included Bing map APIs with some WCF services and complete database at windows azure SQL database.

1. Code to show the body positions

<Window x:Class="Body_Trainer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Exercise" Height="300" Width="300">
    
   <Grid>
        <Grid.Background>
            <ImageBrush Stretch="None" 
              ImageSource="Images/Exercise_top.png" AlignmentY="Top" AlignmentX="Center"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="500" />
            <RowDefinition Height="500" />
        </Grid.RowDefinitions>
    </Grid>
</Window>

2. Code to construct the media element and included some option play, pause and stop the video.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="320*" />
        <RowDefinition Height="50*" />
    </Grid.RowDefinitions>
    <Border BorderBrush="GhostWhite"  BorderThickness="1">
        <Border.Effect>
            <DropShadowEffect ShadowDepth="2" />
        </Border.Effect>
        <MediaElement Name="Screen" Grid.Row="0" MinWidth="500" Margin="0,0,0,0" />
    </Border>
    <StackPanel Orientation="Horizontal" Grid.Row="1">
        <Button Name="play" Content="Play" Height="25" Margin="5" BorderBrush="Gray" Click="play" />
        <Button Name="stop" Content="Stop" Height="25" Margin="5" BorderBrush="Gray" Click="stop" />
        <Button Name="pause" Content="Pause" Height="25" Margin="5" BorderBrush="Gray" Click="pause" />
        <Label Name="videoContent" />
        <Button Name="load" Content="Load File" Height="25" Margin="150,5,0,5" Click="load_Click" />
    </StackPanel>
</Grid>

3. Code to make active media element.

namespace Body_Trainer
{    
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Screen.LoadedBehavior = MediaState.Manual;
            Screen.UnloadedBehavior = MediaState.Manual;
        }
        private void load_Click(object sender, RoutedEventArgs e)
        {
            Screen.Pause();
            OpenFileDialog open = new OpenFileDialog();
            open.Filter = "Video File (*.avi) | *.avi";
            if (open.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Screen.Source = new Uri(open.FileName);
                Screen.Play();
            }
            else
            {
                Screen.Play();
            }
        }
        private void play(object sender, RoutedEventArgs e)
        {
            Screen.Play();
        }
        private void stop(object sender, RoutedEventArgs e)
        {
            Screen.Stop();
        }
        private void pause(object sender, RoutedEventArgs e)
        {
            Screen.Pause();
        }
    }
}

4.Code to use geolocation through BING MAP API's.

public static async Task<Bing.Maps.Location> GetCurrentLocationAsync()
{
    Geolocator geo = new Geolocator();
    geo.DesiredAccuracy = PositionAccuracy.Default;
    Geoposition currentPosition = null;
    currentPosition = await geo.GetGeopositionAsync();
    return new Bing.Maps.Location()
    {
        Latitude = currentPosition.Coordinate.Latitude,
        Longitude = currentPosition.Coordinate.Longitude
    };
}

My Previous Work

I am a Student and i work on windows phone and windows 8 and blackberry .

My windows phone Apps- http://www.windowsphone.com/en-in/search?q=sudhanshu%20gupta

My Windows 8 Apps-

  1. Learn Alphabets and Numbers-http://apps.microsoft.com/windows/app/learn-alphabets-numbers/88a28cf3-9aad-405a-8379-54bb7b028003
  2. Hitball-http://apps.microsoft.com/windows/app/hit-ball/deec5ced-172d-4f16-95e3-1331d9897a01
  3. Quick Ball-http://apps.microsoft.com/windows/app/quick-ball/76c9a2c5-63d9-4705-8d7f-cbd8089c3fc4

History

  • First post !!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sudhanshu SP Gupta
Software Developer
India India
Hello
I am a student currently studying Computer Science & Engineering in BIET Jhansi, and a Microsoft Student Partner.
I have worked on ASP.NET, windows phone and windows 8 and part time on Blackberry.I have been developing apps for windows phone from past 2years and windows 8 from 1 year and i like to develop games and some of my games are here which I have developed for windows phone and windows 8.
My windows phone Apps- http://www.windowsphone.com/en-in/search?q=sudhanshu%20gupta
 
My Windows 8 Apps-
 
1. Learn Alphabets and Numbers-http://apps.microsoft.com/windows/app/learn-alphabets-numbers/88a28cf3-9aad-405a-8379-54bb7b028003
 
2. Hitball-http://apps.microsoft.com/windows/app/hit-ball/deec5ced-172d-4f16-95e3-1331d9897a01
 
3.Quick Ball-http://apps.microsoft.com/windows/app/quick-ball/76c9a2c5-63d9-4705-8d7f-cbd8089c3fc4
Follow on   Twitter   Google+

Comments and Discussions

 
QuestionMy vote of 5 PinprofessionalOjasSinha4-Sep-13 4:41 
AnswerRe: My vote of 5 PinmemberSudhanshu SP Gupta4-Sep-13 4:53 
GeneralMy vote of 5 PinmemberVolynsky Alex4-Sep-13 2:04 
GeneralRe: My vote of 5 PinmemberSudhanshu SP Gupta4-Sep-13 2:56 
GeneralRe: My vote of 5 PinmemberVolynsky Alex4-Sep-13 3:16 
QuestionGreat! PinprofessionalTalha Naqvi4-Sep-13 1:11 
AnswerRe: Great! PinmemberSudhanshu SP Gupta4-Sep-13 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 3 Sep 2013
Article Copyright 2013 by Sudhanshu SP Gupta
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid