GithubHelp home page GithubHelp logo

easymusicforrun's Introduction

EasyMusicForRun

Name: Samrudhi Sharma

Unity ID: ssharm17

Introduction:

The application being suggested is called “Easy Music For Run”. This application helps manage the nature of a music playlist such that a user has a consistent experience while being active or inactive. The application takes into account features such as internet connectivity and headphones being plugged in. To improve the application experience further we could incorporate step counters and/or ability to handle incoming phone calls.

Context Aware Features:
  1. Ability to detect if headphones connected or not.
  2. Ability to detect if internet connected or not.
  3. Ability to detect speed of runner.
  4. Ability to switch music or alter music as per internet connectivity.

Relevant Files:
MusicPlaying.java

Runtime Adaptation Features:
  1. Runner can specify the type of music he wants.

Relevant Files:
Taking inputs to populate values
Global Constants File. Must be populated by user before trying to play app.

Features Implemented:
  1. Receiver to detect if headphones connected or not.
  2. Receiver to detect if internet connectivity is there or not.
  3. Receiver to detect location, and speed of user.
  4. Views and flow for user.
  5. POJO to change values.
  6. Play a local file.
  7. Entire Workflow.
Features Left:
  1. Handle playlists, rather than playing just one song.
Installation Requirements:
  1. Clone this repository.
  2. Open in Android Studio and Click Run.
Screenshots:

Screenshots

Application Flow:
  1. The Runner must provide the details of the local file name, video id for running, and id for walking. This must be done through clicking the application settings.

  2. Next the runner will navigate back to the home page and click on Play.

  3. Depending on the context the appropriate action will happen. For example, as shown in the Screenshots, if the Wifi or LTE is not present, and headphones are connected and the user is active, a local clip will be played and a toast will be shown.

  4. Now if the the headphones are connected, Wifi is on, and the user is active a Youtube video will be displayed once the user clicks on Play again.

References:

https://stackoverflow.com/questions/574195/android-youtube-app-play-video-intent
https://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-on-android
https://stackoverflow.com/questions/25824554/how-to-make-another-activity-as-main-activitystart-up
https://stackoverflow.com/questions/13194081/how-to-open-a-second-activity-on-click-of-button-in-android-app
https://stackoverflow.com/questions/26312733/neither-user-nor-current-process-has-android-permission-access-coarse-location
https://stackoverflow.com/questions/1560788/how-to-check-internet-access-on-android-inetaddress-never-times-out?page=1&tab=votes#tab-top
https://stackoverflow.com/questions/6179906/how-can-i-receive-a-notification-when-the-device-loses-network-connectivity
https://stackoverflow.com/questions/13610258/how-to-detect-when-a-user-plugs-headset-on-android-device-opposite-of-action-a
https://stackoverflow.com/questions/15698790/broadcast-receiver-for-checking-internet-connection-in-android-app
https://inthecheesefactory.com/blog/google-awareness-api-in-action/en
https://code.tutsplus.com/tutorials/android-essentials-creating-simple-user-forms--mobile-1758
http://www.compiletimeerror.com/2013/10/playing-audio-in-android-application.html#.WDHSaKIrK34

easymusicforrun's People

Contributors

samruds1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.