Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
5c9227f
Vital signs and search
saugatkarki101 Dec 8, 2020
4216702
Saugat
saugatkarki101 Dec 8, 2020
30499d8
Merge branch 'main' into vitalsigns
devasriwarrier Dec 8, 2020
50db9a2
Merge pull request #1 from jasonshamayev/vitalsigns
jasonshamayev Dec 8, 2020
7883ce5
Update HomeActivity.java
jasonshamayev Dec 8, 2020
28f6159
Adding Cesar Stuff
AdverseMeteor Dec 8, 2020
f7ffacb
Create CommunicationsActivity.java
AdverseMeteor Dec 8, 2020
472250d
Update DatabaseHelper.java
AdverseMeteor Dec 8, 2020
cea2c0a
Create DietActivity.java
AdverseMeteor Dec 8, 2020
c9bd642
Create FoodAdapter.java
AdverseMeteor Dec 8, 2020
690dd3c
Create FoodItem.java
AdverseMeteor Dec 8, 2020
f205a62
Create WeightActivity.java
AdverseMeteor Dec 8, 2020
9848c92
Create activity_communications.xml
AdverseMeteor Dec 8, 2020
56c7a2f
Create activity_diet.xml
AdverseMeteor Dec 8, 2020
921e9aa
Create activity_new_food.xml
AdverseMeteor Dec 8, 2020
536eb38
Create activity_weight.xml
AdverseMeteor Dec 8, 2020
9eb2276
Create food_spinner_row.xml
AdverseMeteor Dec 8, 2020
33c28b9
Create NewFoodActivity.java
AdverseMeteor Dec 8, 2020
90ee3c2
Notification Stuff
devasriwarrier Dec 8, 2020
60412d5
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
devasriwarrier Dec 8, 2020
d49fafc
Create apple.png
AdverseMeteor Dec 8, 2020
b4bb945
Create beans.jpg
AdverseMeteor Dec 8, 2020
d0e0206
Create blt.jpg
AdverseMeteor Dec 8, 2020
d51b6b8
Create bread.jpg
AdverseMeteor Dec 8, 2020
2fd33ee
Create chips.jpg
AdverseMeteor Dec 8, 2020
b5b3fd3
Create cookie.jpg
AdverseMeteor Dec 8, 2020
e43e1bd
Create cornbread.jpg
AdverseMeteor Dec 8, 2020
b8a50c0
Create eggs.jpg
AdverseMeteor Dec 8, 2020
8fcf52e
Create fish.jpg
AdverseMeteor Dec 8, 2020
3e8e3c5
Create hamburger.jpg
AdverseMeteor Dec 8, 2020
5a9b770
Create hotdog.jpg
AdverseMeteor Dec 8, 2020
97eedff
Create nachos.jpg
AdverseMeteor Dec 8, 2020
2c57c63
Create pancakes.jpg
AdverseMeteor Dec 8, 2020
538b896
Create phone.png
AdverseMeteor Dec 8, 2020
b49e2eb
Create pick.png
AdverseMeteor Dec 8, 2020
78aa4d2
Create pie.jpg
AdverseMeteor Dec 8, 2020
a48add5
Create pizza.jpg
AdverseMeteor Dec 8, 2020
3447871
Create popcorn.jpg
AdverseMeteor Dec 8, 2020
7bb1341
Create ravioli.jpg
AdverseMeteor Dec 8, 2020
5f25d41
Create ribs.jpg
AdverseMeteor Dec 8, 2020
f7f2d13
Create rice.jpg
AdverseMeteor Dec 8, 2020
e0d5c53
Create salad.jpg
AdverseMeteor Dec 8, 2020
8effa66
Create wings.jpg
AdverseMeteor Dec 8, 2020
df0c1db
Create wifi.png
AdverseMeteor Dec 8, 2020
300ffdb
Create waffles.jpg
AdverseMeteor Dec 8, 2020
4bceaa3
Create twinkies.jpg
AdverseMeteor Dec 8, 2020
1bde5da
Create sushi.jpg
AdverseMeteor Dec 8, 2020
dbcc4a0
Create steak.jpg
AdverseMeteor Dec 8, 2020
e2220be
Create soup.jpg
AdverseMeteor Dec 8, 2020
5604619
Create sandwich.jpg
AdverseMeteor Dec 8, 2020
113723e
Update strings.xml
devasriwarrier Dec 8, 2020
7ab3c61
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
devasriwarrier Dec 8, 2020
49009f4
Update HomeActivity.java
AdverseMeteor Dec 8, 2020
b38f809
diet home activity
devasriwarrier Dec 8, 2020
2ff95fa
fixing buttons
devasriwarrier Dec 8, 2020
7d41806
Update AndroidManifest.xml
AdverseMeteor Dec 8, 2020
82fe2c6
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
AdverseMeteor Dec 8, 2020
1d0bc17
Create README.md
devasriwarrier Dec 8, 2020
16f6964
Update README.md
devasriwarrier Dec 8, 2020
e99b4f2
hey
saugatkarki101 Dec 8, 2020
4602cbd
Merge pull request #6 from jasonshamayev/vitalsigns
devasriwarrier Dec 8, 2020
9487ed5
Update README.md
devasriwarrier Dec 8, 2020
0264ac4
home actyivity images updated
devasriwarrier Dec 8, 2020
d4483f1
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
devasriwarrier Dec 8, 2020
bceb2c0
Update README.md
jasonshamayev Dec 9, 2020
084966b
Update README.md
saugatkarki101 Dec 9, 2020
80bfa9b
Update README.md
saugatkarki101 Dec 9, 2020
3c79999
additional activity to Mon. Systems
devasriwarrier Dec 9, 2020
755ad9a
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
devasriwarrier Dec 9, 2020
d692f7d
Update README.md
devasriwarrier Dec 9, 2020
2f7d703
Update README.md
devasriwarrier Dec 9, 2020
90e625e
Update README.md
AdverseMeteor Dec 9, 2020
358ad89
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
AdverseMeteor Dec 9, 2020
e5c04e7
Update README.md
AdverseMeteor Dec 9, 2020
98315a5
Update README.md
AdverseMeteor Dec 9, 2020
2d2ef45
Update DietActivity.java
AdverseMeteor Dec 9, 2020
22eba77
Update README.md
saugatkarki101 Dec 9, 2020
3dc2189
Update README.md
saugatkarki101 Dec 9, 2020
52239a5
Update README.md
devasriwarrier Dec 9, 2020
eb4ba3a
Update README.md
AdverseMeteor Dec 9, 2020
c9cd3b8
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
AdverseMeteor Dec 9, 2020
89bbd7e
Update README.md
devasriwarrier Dec 9, 2020
4bbb47a
Update README.md
AdverseMeteor Dec 9, 2020
621260d
Merge branch 'main' of https://github.com/jasonshamayev/MyHealthApp i…
AdverseMeteor Dec 9, 2020
900ba72
Update README.md
saugatkarki101 Dec 9, 2020
2df841a
Update README.md
devasriwarrier Dec 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# MyHealthApp

Devasri Warrier: 1001536613 devasri.warrier@mavs.uta.edu, 214-529-6269
Implementation 1: Personal Information:
-Add Personal Information
-View Personal Information saved in the DB
-Update Personal Information
-Respective functions in DatabaseHelper file to store into DB

Implementation 2: Monitoring System: On time Medication: -positive affirmation
Late Medication: -NOK texted notice, -user texted reminder, -Doctor + Pharm. email prepopulated message and emails pre-filled (if logged into email app
and android permissions allowed)
-User can add a self notification message
-Medication Tracker of dosage + days left to complete medication

Implementation 3: Home Screen:
-Set up 2 layouts on home screen
-Made back buttons for navigation through app

Missing functionality: -not pulling data from DB of Personal Info. to text/email in monitoring system. Did not have time to finish implementation but harded coded works for email/texts -Medication tracker is only able to pull the 1st medication entered, not any respective medications added thereafter
-No notifications of missed medication. Only a self notify for a user to enter their own Notif to put in notification bar

Resources:
https://www.youtube.com/watch?v=tTbd1Mfi-Sk
https://www.youtube.com/watch?v=cp2rL3sAFmI&list=PLS1QulWo1RIaRdy16cOzBO5Jr6kEagA07 (playlist videos 1-5)
https://www.youtube.com/watch?v=oLngUva-Ves
https://www.codota.com/code/java/classes/android.app.DatePickerDialog //in code, works, but not combined with implementations to basically useless

Jason Shamayev: 1001627879
Implementations:
Login/Registration:
-User can register
-User can log in
-"Forgot password"
-"reset password" (security questions)
-Necessary validations if values not entered correctly
-Respective functions in DatabaseHelper file to store into DB
Medication:
-User can add medication
-User can view list of all medications entered
-Necessary validations if values not entered correctly
-Respective functions in DatabaseHelper file to store into DB
Settings:
-Log out
-Change Password
Home Screen:
-Set up the for home screen
-Made back buttons for navigation through app
Resources:
https://www.youtube.com/watch?v=d5jfNSFu45U
https://developer.android.com/studio/write

Saugat K: 1001644419, saugat.karki@mavs.uta.edu, 8174375349
Implementations:
Search:
-Missing functionality: Search function works only for vital signs and username. Reason: As we used SQL lite, every one made a seperate table to store data. So,
everyone had a separate numeric user ID to identify each user. So, I couldn't figure out a way to do extraction of data from their table for a specific user
as each table had a seperate type of unique ID to idenitify each user.
The reason search works for Vital Signs is because while creating table for storing vital signs, I just used the usernames of users as a unique
ID. So, I could later match the current user's username with the username on the table and extract the required data. Since there can't be two users with same username
in our app, the search funcionality works perfectly with vital signs.

-Users can search for their username by typing "username" in the search field.
-Users can type any vital signs names(cholesterol, heart rate, blood pressure, glucose) in the search field.
-If the Vital Signs data has been previously added or updated, users can search for any of the vital Signs. If not, a message will be printed asking user to initialize
vital signs.
-All inputs are case insensitive.

Vital Signs:
-Enter Vital Signs (glucose, cholesterol, blood pressure, heart rate)
-Necessary validations if not entered correctly
-Review information regarding vital signs
-Submit vital signs
-Update vital signs

Resources:
https://www.youtube.com/watch?v=KUq5wf3Mh0c&list=PLS1QulWo1RIaRdy16cOzBO5Jr6kEagA07&index=4
https://www.youtube.com/watch?v=NhrD_fokd7g

Cesar Rea: 1001643491
Cesar.rea2@mavs.uta.edu
Contact phone number: 2143257031


Missing Functionality:
-When going into the New Food Section of Diet, the app will not count the calories
and start from zero when back to main page of diet

-New Food Names entered will not be added to the database, so it will not shown again

Implementations:
Diet:
-Enter amount of servings
-User can pick food choice from spinner
-User can press on New Food to add custom food.
-User press on next to display current total of calories
-User press on done

Communications:
-Users can enter phone number
-Users can enter SMS
-User can press on Message or Call

Resources:
https://www.youtube.com/watch?v=KUq5wf3Mh0c&list=PLS1QulWo1RIaRdy16cOzBO5Jr6kEagA07&index=4
https://www.youtube.com/watch?v=4HkTrSkYAQ4
https://www.youtube.com/watch?v=pajvuBZc2WA
22 changes: 21 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,41 @@

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECIEVE_SMS" />
<uses-permission android:name="android.permission.CALL_PHONE" />

<application
android:name=".NotifClass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.LoginRegistration">
<activity android:name=".NotificationActivity"></activity>
<activity android:name=".TrackerResultActivity"></activity>
<activity android:name=".TrackerActivity" />
<activity android:name=".SearchResults" />
<activity android:name=".Search" />
<activity android:name=".ReviewInformation" />
<activity android:name=".VitalSigns" />
<activity android:name=".NotificationActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ChangePasswordActivity" />
<activity android:name=".ResetPasswordActivity" />
<activity android:name=".ForgotPasswordActivity" />
<activity android:name=".MonitoringSystemActivity" />
<activity android:name=".SettingsActivity" />
<activity android:name=".PersonalInfoActivity" />
<activity android:name=".WeightActivity" />
<activity android:name=".NewFoodActivity" />
<activity android:name=".CommunicationsActivity" />
<activity android:name=".DietActivity" />
<activity
android:name=".ViewMedicationActivity"
android:label="@string/title_activity_view_medication"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
package com.example.loginregistration;

import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;

import static android.Manifest.permission.CALL_PHONE;


public class CommunicationsActivity extends AppCompatActivity {

private EditText editTextNumber;
private EditText editTextMessage;

ImageView dImageViewBack;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_communications);

ActivityCompat.requestPermissions(CommunicationsActivity.this, new String[]{Manifest.permission.SEND_SMS, Manifest.permission.READ_SMS}, PackageManager.PERMISSION_GRANTED);
ActivityCompat.requestPermissions(this, new String[]{CALL_PHONE}, PackageManager.PERMISSION_GRANTED);
editTextMessage = findViewById(R.id.editText);
editTextNumber = findViewById(R.id.editTextNumber);

dImageViewBack = (ImageView)findViewById(R.id.imageView_backButtonDiet);
dImageViewBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent DietToHomeIntent = new Intent(CommunicationsActivity.this, HomeActivity.class);
startActivity(DietToHomeIntent);
}
});
}

public void sendSMS(View view){

String message = editTextMessage.getText().toString();
String number = editTextNumber.getText().toString();

SmsManager mySmsManager = SmsManager.getDefault();
mySmsManager.sendTextMessage(number,null, message, null, null);
}

@RequiresApi(api = Build.VERSION_CODES.M)
public void CallButton(View view) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (checkSelfPermission(CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(CommunicationsActivity.this, new String[]{Manifest.permission.CALL_PHONE}, 101);
return;
}
}
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + editTextNumber.getText().toString()));
startActivity(callIntent);
}
}





Loading