diff --git a/Qwerty/DoctorAppointment-master/Executable/app-debug.apk b/Qwerty/DoctorAppointment-master/Executable/app-debug.apk new file mode 100644 index 00000000..38f00e75 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Executable/app-debug.apk differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Booking screen.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Booking screen.jpeg new file mode 100644 index 00000000..1a6252ec Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Booking screen.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Hamburger screen.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Hamburger screen.jpeg new file mode 100644 index 00000000..735017ef Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Hamburger screen.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Main screen.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Main screen.jpeg new file mode 100644 index 00000000..6f9a6041 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Main screen.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Share screen.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Share screen.jpeg new file mode 100644 index 00000000..12f5d658 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Share screen.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Sign in screen.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Sign in screen.jpeg new file mode 100644 index 00000000..34b41e8e Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Sign in screen.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/Screenshots/Signuo.jpeg b/Qwerty/DoctorAppointment-master/Screenshots/Signuo.jpeg new file mode 100644 index 00000000..c228ad16 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/Screenshots/Signuo.jpeg differ diff --git a/Qwerty/DoctorAppointment-master/app/build.gradle b/Qwerty/DoctorAppointment-master/app/build.gradle new file mode 100644 index 00000000..dbcf66d1 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/build.gradle @@ -0,0 +1,48 @@ +apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.2" + + defaultConfig { + applicationId "com.blogspot.priyabratanaskar.firebaselogin" + minSdkVersion 21 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.1' + implementation 'com.google.firebase:firebase-auth:19.3.2' + + //Dependency for Firebase realtime database + implementation 'com.google.firebase:firebase-database:19.3.1' + + //Dependency for FirebaseUI for firebase realtime database + implementation 'com.firebaseui:firebase-ui-database:6.2.1' + + //adding glide library + implementation 'com.github.bumptech.glide:glide:3.7.0' + + implementation 'com.google.firebase:firebase-storage:19.1.1' + testImplementation 'junit:junit:4.13' + androidTestImplementation 'androidx.test.ext:junit:1.1.2' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' + implementation 'com.google.android.material:material:1.2.0' +} diff --git a/Qwerty/DoctorAppointment-master/app/google-services.json b/Qwerty/DoctorAppointment-master/app/google-services.json new file mode 100644 index 00000000..324595f5 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/google-services.json @@ -0,0 +1,40 @@ +{ + "project_info": { + "project_number": "414557573944", + "firebase_url": "https://fir-login-priyabrata.firebaseio.com", + "project_id": "fir-login-priyabrata", + "storage_bucket": "fir-login-priyabrata.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:414557573944:android:858bda02d0b093be5667cd", + "android_client_info": { + "package_name": "com.blogspot.priyabratanaskar.firebaselogin" + } + }, + "oauth_client": [ + { + "client_id": "414557573944-t6i0641arg6hkb19i5f32vp6b4huonvu.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBGLaVrO1Bsra_DundvB9nUgumQGyNxPxQ" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "414557573944-t6i0641arg6hkb19i5f32vp6b4huonvu.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/proguard-rules.pro b/Qwerty/DoctorAppointment-master/app/proguard-rules.pro new file mode 100644 index 00000000..f1b42451 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/Qwerty/DoctorAppointment-master/app/src/androidTest/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleInstrumentedTest.java b/Qwerty/DoctorAppointment-master/app/src/androidTest/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleInstrumentedTest.java new file mode 100644 index 00000000..8415f02f --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/androidTest/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleInstrumentedTest.java @@ -0,0 +1,27 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + + assertEquals("com.blogspot.priyabratanaskar.firebaselogin", appContext.getPackageName()); + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/AndroidManifest.xml b/Qwerty/DoctorAppointment-master/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..73016e1e --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Constants.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Constants.java new file mode 100644 index 00000000..180940be --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Constants.java @@ -0,0 +1,15 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +/** + * Created by Priyabrata Naskar on 06-04-2021. + */ +public class Constants { + public static final String doctorName = "name"; + public static String imageResource = "image"; + public static String doctorExperience = "experience"; + public static String doctorQualification = "qualification"; + public static String tag ="tag"; + public static String position ="position"; + public static String fees ="fees"; + public static String about ="about"; +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Doctor.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Doctor.java new file mode 100644 index 00000000..0ab71b31 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/Doctor.java @@ -0,0 +1,75 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +public class Doctor { + //Member variables representing doctor detail + private String imageResource; + private String doctorName; + private String doctorExperience; + private String doctorQualification; + private String tag; + private String about; + private String fees; + public Doctor() { + //Required Empty Constructor for Firebase UI + } + +// public Doctor(int imageResource, String doctorName, String doctorExperience, String doctorQualification) { +// this.imageResource = imageResource; +// this.doctorName = doctorName; +// this.doctorExperience = doctorExperience; +// this.doctorQualification = doctorQualification; +// } + + public String getDoctorName() { + return doctorName; + } + + public String getDoctorExperience() { + return doctorExperience; + } + + public String getDoctorQualification() { + return doctorQualification; + } + + public String getImageResource() { + return imageResource; + } + + public String getTag(){ return tag;} + + public String getAbout() { + return about; + } + + public String getFees() { + return fees; + } + + public void setImageResource(String imageResource) { + this.imageResource = imageResource; + } + + public void setDoctorName(String doctorName) { + this.doctorName = doctorName; + } + + public void setDoctorExperience(String doctorExperience) { + this.doctorExperience = doctorExperience; + } + + public void setDoctorQualification(String doctorQualification) { + this.doctorQualification = doctorQualification; + } + public void setTag(String tag){ + this.tag = tag; + } + + public void setAbout(String about) { + this.about = about; + } + + public void setFees(String fees) { + this.fees = fees; + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorAdapter.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorAdapter.java new file mode 100644 index 00000000..a5db91e3 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorAdapter.java @@ -0,0 +1,83 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ImageView; +import android.widget.TextView; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import java.util.ArrayList; + +class DoctorAdapter extends RecyclerView.Adapter { + private ArrayList mDoctorData; + private Context mContext; + + /** + * Constructor that passes doctor data to the context + * @param mDoctorData + * @param mContext + */ + public DoctorAdapter(ArrayList mDoctorData, Context mContext) { + this.mDoctorData = mDoctorData; + this.mContext = mContext; + } + + @NonNull + @Override + public DoctorAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + return new ViewHolder(LayoutInflater.from(mContext).inflate(R.layout.doctor_list,parent,false)); + } + + /** + * Bind data to the view holder + * @param holder + * @param position + */ + @Override + public void onBindViewHolder(@NonNull DoctorAdapter.ViewHolder holder, int position) { + Doctor currentDoctor = mDoctorData.get(position); + holder.bindTo(currentDoctor); + } + + @Override + public int getItemCount() { + return mDoctorData.size(); + } + class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener{ + + private TextView doctorNameText; + private TextView doctorQualificationText; + private TextView doctorExperienceText; + private ImageView doctorImage; + + ViewHolder(@NonNull View itemView) { + super(itemView); + doctorImage = itemView.findViewById(R.id.doctor_image); + doctorNameText = itemView.findViewById(R.id.doctor_name); + doctorQualificationText = itemView.findViewById(R.id.doctor_qualification); + doctorExperienceText = itemView.findViewById(R.id.doctor_experience); + + //set onClickListener + itemView.setOnClickListener(this); + } + + @Override + public void onClick(View v) { + Doctor currentDoctor = mDoctorData.get(getAdapterPosition()); + + //opening doctor detail activity + } + + void bindTo(Doctor currentDoctor) { + doctorNameText.setText(currentDoctor.getDoctorName()); + doctorQualificationText.setText(currentDoctor.getDoctorQualification()); + doctorExperienceText.setText(currentDoctor.getDoctorExperience()); + + //Load doctor image + } + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailActivity.java new file mode 100644 index 00000000..296e7ffb --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailActivity.java @@ -0,0 +1,140 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import android.content.Intent; +import android.os.Bundle; +import android.provider.ContactsContract; +import android.view.View; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import android.widget.Toast; + +import com.bumptech.glide.Glide; +import com.bumptech.glide.load.resource.drawable.GlideDrawable; +import com.bumptech.glide.request.RequestListener; +import com.bumptech.glide.request.target.Target; +import com.firebase.ui.database.FirebaseRecyclerOptions; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DatabaseReference; +import com.google.firebase.database.FirebaseDatabase; + +public class DoctorDetailActivity extends AppCompatActivity { + ImageView doctorImage; + ProgressBar progressBar; + TextView doctorName; + TextView specializationTextView; + TextView doctorFees; + TextView doctorAbout; + + FirebaseAuth mAuth; + + private RecyclerView mRecyclerView; + //private ArrayList mDoctorData; + //private DoctorAdapter mDoctorAdapter; + private FireBaseDoctorDetailAdapter firebaseDoctorDetailAdapter; + private DatabaseReference databaseReference; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_doctor_detail); + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + doctorImage = findViewById(R.id.doctor_image); + progressBar = findViewById(R.id.doctor_image_progress); + doctorName = findViewById(R.id.name); + specializationTextView = findViewById(R.id.specialization); + doctorFees =findViewById(R.id.fees); + doctorAbout = findViewById(R.id.about); + + Intent intent = getIntent(); + Doctor doctor = new Doctor(); + String imageRes = intent.getStringExtra(Constants.imageResource); + String name = intent.getStringExtra(Constants.doctorName); + String qualification = intent.getStringExtra(Constants.doctorQualification); + String tag = intent.getStringExtra(Constants.tag); + int position = intent.getIntExtra(Constants.position,0); + String experience = intent.getStringExtra(Constants.doctorExperience); + String fees = intent.getStringExtra(Constants.fees); + String about = intent.getStringExtra(Constants.about); + doctor.setDoctorExperience(experience); + doctor.setDoctorName(name); + doctor.setDoctorQualification(qualification); + doctor.setImageResource(imageRes); + doctor.setTag(tag); + + Glide.with(this).load(imageRes).listener(new RequestListener() { + @Override + public boolean onException(Exception e, String model, Target target, boolean isFirstResource) { + Toast.makeText(doctorImage.getContext(),e.getMessage(),Toast.LENGTH_SHORT).show(); + return false; + } + + @Override + public boolean onResourceReady(GlideDrawable resource, String model, Target target, boolean isFromMemoryCache, boolean isFirstResource) { + progressBar.setVisibility(View.GONE); + return false; + } + }).centerCrop().into(doctorImage); + + doctorName.setText(name); + specializationTextView.setText(qualification + " " + experience + "+ years of experience"); + doctorFees.setText(fees); + doctorAbout.setText(about); + + //Get Firebase Ref + mAuth = FirebaseAuth.getInstance(); + try { + databaseReference = FirebaseDatabase.getInstance().getReference("doctor_detail/"+ "doctor_id_" + position); + //Toast.makeText(this,"Position" + position,Toast.LENGTH_SHORT).show(); + + } catch (Exception e) { + Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); + } + //storageReference = FirebaseStorage.getInstance().getReference().child("DoctorImages/"); + mRecyclerView = findViewById(R.id.recycler_view); + mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); + + //It's a class provided by FirebaseUI to make a query to fetch appropriate data + try { + FirebaseRecyclerOptions options = new FirebaseRecyclerOptions + .Builder().setQuery(databaseReference, DoctorDetailModel.class).build(); + + + firebaseDoctorDetailAdapter = new FireBaseDoctorDetailAdapter(options); + mRecyclerView.setAdapter(firebaseDoctorDetailAdapter); + + //Toast.makeText(this,options.getSnapshots().get(0).getDay_name(),Toast.LENGTH_SHORT).show(); + + //mDoctorData = new ArrayList<>(); + } catch (Exception e) { + Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); + } + } + + @Override + protected void onStart() { + super.onStart(); + // Check if user is signed in (non-null) and update UI accordingly. + if (mAuth.getCurrentUser() == null) { + Intent intent = new Intent(this, LoginActivity.class); + startActivity(intent); + finish(); + } else { + firebaseDoctorDetailAdapter.startListening(); + } + } + + @Override + protected void onStop() { + super.onStop(); + firebaseDoctorDetailAdapter.stopListening(); + } + +} \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailModel.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailModel.java new file mode 100644 index 00000000..d889a749 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/DoctorDetailModel.java @@ -0,0 +1,46 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +/** + * Created by Priyabrata Naskar on 07-04-2021. + */ +public class DoctorDetailModel { + private String day_name; + String start_time; + String end_time; + String location; + + public DoctorDetailModel() { + } + + public String getDay_name() { + return day_name; + } + + public void setDay_name(String day_name) { + this.day_name = day_name; + } + + public String getStart_time() { + return start_time; + } + + public void setStart_time(String start_time) { + this.start_time = start_time; + } + + public String getEnd_time() { + return end_time; + } + + public void setEnd_time(String end_time) { + this.end_time = end_time; + } + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FireBaseDoctorDetailAdapter.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FireBaseDoctorDetailAdapter.java new file mode 100644 index 00000000..6c6a32db --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FireBaseDoctorDetailAdapter.java @@ -0,0 +1,74 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CheckBox; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import com.firebase.ui.database.FirebaseRecyclerAdapter; +import com.firebase.ui.database.FirebaseRecyclerOptions; +import com.google.android.material.chip.Chip; + +/** + * Created by Priyabrata Naskar on 07-04-2021. + */ +public class FireBaseDoctorDetailAdapter extends FirebaseRecyclerAdapter { + /** + * Initialize a {@link RecyclerView.Adapter} that listens to a Firebase query. See + * {@link FirebaseRecyclerOptions} for configuration options. + * + * @param options + */ + public FireBaseDoctorDetailAdapter(@NonNull FirebaseRecyclerOptions options) { + super(options); + } + + @Override + protected void onBindViewHolder(@NonNull final FirebaseDoctorDetailViewHolder holder, int position, @NonNull DoctorDetailModel model) { + holder.bindTo(model); + //Toast.makeText(holder.itemView.getContext(),model.getDayName(),Toast.LENGTH_SHORT).show(); + holder.itemView.findViewById(R.id.booking_button).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + CheckBox checkBox = holder.itemView.findViewById(R.id.booking_button); + checkBox.setChecked(false); + Toast.makeText(checkBox.getContext(),"Booking Successful", Toast.LENGTH_SHORT).show(); + } + }); + } + + @NonNull + @Override + public FirebaseDoctorDetailViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.schedule_item,parent,false); + //Toast.makeText(parent.getContext(),"Test",Toast.LENGTH_SHORT).show(); + return new FireBaseDoctorDetailAdapter.FirebaseDoctorDetailViewHolder(view); + } + + public class FirebaseDoctorDetailViewHolder extends RecyclerView.ViewHolder { + private TextView dayName; + private Chip timeTextView; + //private TextView endTimeTextView; + private TextView locationTextView; + public FirebaseDoctorDetailViewHolder(@NonNull View itemView) { + super(itemView); + dayName = itemView.findViewById(R.id.day_name_text); + timeTextView = itemView.findViewById(R.id.timing_chip); + locationTextView = itemView.findViewById(R.id.location); + dayName = itemView.findViewById(R.id.day_name_text); + + } + + void bindTo(DoctorDetailModel model) { + //Toast.makeText(dayName.getContext(),"Name: " + model.getDay_name(),Toast.LENGTH_SHORT).show(); + dayName.setText(model.getDay_name()); + timeTextView.setText(model.getStart_time() + " - "+ model.getEnd_time()); + locationTextView.setText(model.getLocation()); + } + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FirebaseDoctorAdapter.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FirebaseDoctorAdapter.java new file mode 100644 index 00000000..b971172f --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/FirebaseDoctorAdapter.java @@ -0,0 +1,101 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Intent; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CheckBox; +import android.widget.ImageView; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.recyclerview.widget.RecyclerView; + +import com.bumptech.glide.Glide; +import com.firebase.ui.database.FirebaseRecyclerAdapter; +import com.firebase.ui.database.FirebaseRecyclerOptions; +import com.google.android.material.chip.Chip; + +public class FirebaseDoctorAdapter extends FirebaseRecyclerAdapter { + /** + * Initialize a {@link RecyclerView.Adapter} that listens to a Firebase query. See + * {@link FirebaseRecyclerOptions} for configuration options. + * + * @param options + */ + public FirebaseDoctorAdapter(@NonNull FirebaseRecyclerOptions options) { + super(options); + } + + @Override + protected void onBindViewHolder(@NonNull final FirebaseDoctorViewHolder holder, final int position, @NonNull final Doctor model) { + holder.bindTo(model); + + //Handles click on ListItem + holder.itemView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + //Toast.makeText(holder.doctorExperienceText.getContext(), String.valueOf(position),Toast.LENGTH_LONG).show(); + Intent intent = new Intent(v.getContext(),DoctorDetailActivity.class); + intent.putExtra(Constants.doctorName,model.getDoctorName()); + intent.putExtra(Constants.doctorExperience,model.getDoctorExperience()); + intent.putExtra(Constants.doctorQualification,model.getDoctorQualification()); + intent.putExtra(Constants.imageResource,model.getImageResource()); + intent.putExtra(Constants.position, position); + intent.putExtra(Constants.fees,model.getFees()); + intent.putExtra(Constants.about,model.getAbout()); + v.getContext().startActivity(intent); + } + }); + + holder.itemView.findViewById(R.id.share_check_box).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + //Toast.makeText(view.getContext(),"Sharing",Toast.LENGTH_SHORT).show(); + Intent intent = new Intent(); + intent.setAction(Intent.ACTION_SEND); + intent.setType("text/plain"); + intent.putExtra(Intent.EXTRA_TEXT, model.getDoctorName() + "\n" + model.getDoctorQualification() + + "\n" + model.getDoctorExperience()+ "\n" + model.getTag()); + + view.getContext().startActivity(Intent.createChooser(intent,"Share Using")); + CheckBox checkBox = holder.itemView.findViewById(R.id.share_check_box); + checkBox.setChecked(false); + } + }); + } + + @NonNull + @Override + public FirebaseDoctorViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { + View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.doctor_list,parent,false); + return new FirebaseDoctorAdapter.FirebaseDoctorViewHolder(view); + } + + public class FirebaseDoctorViewHolder extends RecyclerView.ViewHolder{ + private TextView doctorNameText; + private TextView doctorQualificationText; + private TextView doctorExperienceText; + private ImageView doctorImage; + private Chip materialChip; + public FirebaseDoctorViewHolder(@NonNull View itemView) { + super(itemView); + + doctorImage = itemView.findViewById(R.id.doctor_image); + doctorNameText = itemView.findViewById(R.id.doctor_name); + doctorExperienceText = itemView.findViewById(R.id.doctor_experience); + doctorQualificationText = itemView.findViewById(R.id.doctor_qualification); + materialChip = itemView.findViewById(R.id.doctor_chip); + } + void bindTo(Doctor currentDoctor) { + doctorNameText.setText(currentDoctor.getDoctorName()); + doctorExperienceText.setText(currentDoctor.getDoctorExperience() + " years Experience"); + doctorQualificationText.setText(currentDoctor.getDoctorQualification()); + materialChip.setText(currentDoctor.getTag()); + //Load doctor image + //Loading image from Glide library. + Glide.with(doctorImage.getContext()).load(currentDoctor.getImageResource()).centerCrop().into(doctorImage); + } + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/LoginActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/LoginActivity.java new file mode 100644 index 00000000..033a206a --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/LoginActivity.java @@ -0,0 +1,153 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.util.Patterns; +import android.view.View; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; + +import com.google.android.gms.tasks.OnCompleteListener; +import com.google.android.gms.tasks.Task; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +import com.google.firebase.auth.AuthResult; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.auth.FirebaseUser; + +public class LoginActivity extends AppCompatActivity implements View.OnClickListener { + MaterialButton signUp; + MaterialButton logIn; + TextInputLayout passwordTextInput; + TextInputEditText passwordEditText; + + TextInputLayout emailTextInput; + TextInputEditText emailEditText; + + FirebaseAuth mAuth; + private static String TAG="com.blogspot.priyabratanaskar.firebaselogin.LoginActivity"; + + @Override + protected void onStart() { + super.onStart(); + Log.e("LoginActivity","OnStart"); + //Check if user is signed in (non-null) and update UI accordingly. + //FirebaseUser currentUser = mAuth.getCurrentUser(); + if(mAuth.getCurrentUser() != null){ + Log.e("LoginActivity","OnStart inside if"); + finish(); + startActivity(new Intent(this,MainActivity.class)); + } + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_login); + + mAuth = FirebaseAuth.getInstance(); + signUp = findViewById(R.id.login_sign_up_new); + signUp.setOnClickListener(this); + + logIn = findViewById(R.id.login_sign_in); + logIn.setOnClickListener(this); + + passwordTextInput = findViewById(R.id.login_password_text_input); + passwordEditText = findViewById(R.id.login_password_edit_text); + + emailTextInput = findViewById(R.id.login_email_text_input); + emailEditText = findViewById(R.id.login_email_edit_text); + } + + public void signInWithEmail(String email,String password){ + //Invalid email will show Error + boolean validEmail = isEmailValid(email); + boolean validPassword = isPasswordValid(password); + //If any thing is Invalid it will return + if(!(validEmail && validPassword)){ + return; + } + mAuth.signInWithEmailAndPassword(email, password) + .addOnCompleteListener(this, new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + // Sign in success, update UI with the signed-in user's information + Log.d(TAG, "signInWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + Intent intent = new Intent(LoginActivity.this,MainActivity.class); + startActivity(intent); + finish(); + //updateUI(user); + } else { + // If sign in fails, display a message to the user. + Log.w(TAG, "signInWithEmail:failure", task.getException()); + Toast.makeText(LoginActivity.this, task.getException().getMessage(), + Toast.LENGTH_LONG).show(); + //updateUI(null); + // ... + } + + // ... + } + }); + } + @Override + public void onClick(View v) { + switch (v.getId()) { + case R.id.login_sign_up_new: + Intent intent = new Intent(this, SignUpActivity.class); + startActivity(intent); + finish(); + break; + case R.id.login_sign_in: + signInWithEmail(emailEditText.getText().toString(), passwordEditText.getText().toString()); + break; + case R.id.login_forget_password: + break; + } + } + + /** + * Checks if password is valid or not + * + * @param text + * @return boolean + */ + private boolean isPasswordValid(@NonNull String text) { + if (text.length() > 7 && text.length() < 14) { + passwordTextInput.setError(null); + return true; + } else { + passwordTextInput.setError(getText(R.string.dr_error_length_password)); + return false; + } + } + + /** + * Checks if Email Valid or Not + * + * @param text + * @return boolean + */ + private boolean isEmailValid(@NonNull String text) { + if (text.toString().isEmpty()) { + //error + emailTextInput.setError("Email Can't be Empty"); + return false; + } + if (Patterns.EMAIL_ADDRESS.matcher(text).matches()) { + //success + return true; + } else { + //error enter valid email + emailTextInput.setError("Invalid Email!"); + return false; + } + } + +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/MainActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/MainActivity.java new file mode 100644 index 00000000..e8f2c648 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/MainActivity.java @@ -0,0 +1,122 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Intent; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import com.firebase.ui.database.FirebaseRecyclerOptions; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.database.DatabaseReference; +import com.google.firebase.database.FirebaseDatabase; + +public class MainActivity extends AppCompatActivity { + FirebaseAuth mAuth; + + private RecyclerView mRecyclerView; + //private ArrayList mDoctorData; + //private DoctorAdapter mDoctorAdapter; + private FirebaseDoctorAdapter firebaseDoctorAdapter; + private DatabaseReference databaseReference; + + //private StorageReference storageReference; + // Folder path for Firebase Storage. + //String Storage_Path = "DoctorImages/"; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + mAuth = FirebaseAuth.getInstance(); + try { + databaseReference = FirebaseDatabase.getInstance().getReference("doctor"); + } catch (Exception e) { + Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); + } + //storageReference = FirebaseStorage.getInstance().getReference().child("DoctorImages/"); + mRecyclerView = findViewById(R.id.recycler_view); + mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); + + //It's a class provided by FirebaseUI to make a query to fetch appropriate data + try { + FirebaseRecyclerOptions options = new FirebaseRecyclerOptions + .Builder().setQuery(databaseReference, Doctor.class).build(); + + + firebaseDoctorAdapter = new FirebaseDoctorAdapter(options); + mRecyclerView.setAdapter(firebaseDoctorAdapter); + //mDoctorData = new ArrayList<>(); + } catch (Exception e) { + Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show(); + } + //mDoctorAdapter = new DoctorAdapter(mDoctorData,this); + //mRecyclerView.setAdapter(mDoctorAdapter); + + //initializeData(); + } + +// private void initializeData() { +// mDoctorData.clear(); +// for(int i = 0; i<12;i++) { +// Random random = new Random(); +// int years = random.nextInt(5); +// mDoctorData.add(new Doctor(0, "Dr. Name " + (i+1), String.valueOf(years) + "+" + "years", "MBBS")); +// } +// mDoctorAdapter.notifyDataSetChanged(); +// } + + @Override + protected void onStart() { + super.onStart(); + // Check if user is signed in (non-null) and update UI accordingly. + if (mAuth.getCurrentUser() == null) { + Intent intent = new Intent(this, LoginActivity.class); + startActivity(intent); + finish(); + } else { + firebaseDoctorAdapter.startListening(); + } + } + + @Override + protected void onStop() { + super.onStop(); + firebaseDoctorAdapter.stopListening(); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + super.onCreateOptionsMenu(menu); + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.main, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(@NonNull MenuItem item) { + super.onOptionsItemSelected(item); + switch (item.getItemId()) { + case R.id.menu_log_out: + FirebaseAuth + .getInstance().signOut(); + Intent intent = new Intent(this, LoginActivity.class); + startActivity(intent); + finish(); + break; + case R.id.menu_my_profile: + startActivity(new Intent(this, ProfileActivity.class)); + break; + } + return true; + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/NewsActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/NewsActivity.java new file mode 100644 index 00000000..13aab300 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/NewsActivity.java @@ -0,0 +1,14 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; + +public class NewsActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_news); + } +} \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/ProfileActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/ProfileActivity.java new file mode 100644 index 00000000..d96d32ca --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/ProfileActivity.java @@ -0,0 +1,44 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import androidx.appcompat.app.AppCompatActivity; + +import android.os.Bundle; +import android.view.View; +import android.widget.AdapterView; +import android.widget.ArrayAdapter; +import android.widget.Spinner; + +public class ProfileActivity extends AppCompatActivity implements View.OnClickListener, AdapterView.OnItemSelectedListener { + Spinner genderSpinner; + private static final String[] spinnerResourceString = {"Male", "Female", "Other"}; + String gender; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_profile); + + genderSpinner = findViewById(R.id.gender); + ArrayAdapter adapter = new ArrayAdapter(ProfileActivity.this, + android.R.layout.simple_spinner_item,spinnerResourceString); + + adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + genderSpinner.setAdapter(adapter); + genderSpinner.setOnItemSelectedListener(this); + + } + + @Override + public void onClick(View v) { + + } + + @Override + public void onItemSelected(AdapterView parent, View view, int position, long id) { + gender = spinnerResourceString[position]; + } + + @Override + public void onNothingSelected(AdapterView parent) { + + } +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/SignUpActivity.java b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/SignUpActivity.java new file mode 100644 index 00000000..ecd15251 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/java/com/blogspot/priyabratanaskar/firebaselogin/SignUpActivity.java @@ -0,0 +1,188 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.util.Patterns; +import android.view.View; +import android.widget.Toast; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; + +import com.google.android.gms.tasks.OnCompleteListener; +import com.google.android.gms.tasks.Task; +import com.google.android.material.button.MaterialButton; +import com.google.android.material.textfield.TextInputEditText; +import com.google.android.material.textfield.TextInputLayout; +import com.google.firebase.auth.AuthResult; +import com.google.firebase.auth.FirebaseAuth; +import com.google.firebase.auth.FirebaseAuthUserCollisionException; +import com.google.firebase.auth.FirebaseUser; + +import java.util.Objects; + +public class SignUpActivity extends AppCompatActivity implements View.OnClickListener { + + TextInputLayout passwordTextInput; + TextInputEditText passwordEditText; + + TextInputLayout usernameTextInput; + TextInputEditText usernameEditText; + + TextInputLayout emailTextInput; + TextInputEditText emailEditText; + + MaterialButton signUpButton; + + MaterialButton alreadyHaveAccountSignIn; + + private FirebaseAuth mAuth; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_sign_up); + + passwordTextInput = findViewById(R.id.password_text_input); + passwordEditText = findViewById(R.id.password_edit_text); + + usernameTextInput = findViewById(R.id.username_text_input); + usernameEditText = findViewById(R.id.username_edit_text); + + emailTextInput = findViewById(R.id.email_text_input); + emailEditText = findViewById(R.id.email_edit_text); + + signUpButton = findViewById(R.id.sign_up); + signUpButton.setOnClickListener(this); + + alreadyHaveAccountSignIn = findViewById(R.id.already_have_account); + alreadyHaveAccountSignIn.setOnClickListener(this); + + mAuth = FirebaseAuth.getInstance(); + } + + //Handles click events on Views + @Override + public void onClick(View v) { + switch (v.getId()) { + case R.id.already_have_account: + Intent intent = new Intent(this,LoginActivity.class); + startActivity(intent); + finish(); + break; + case R.id.sign_up: + registerUser(); + break; + } + } + + /** + * Create FireBase User Account + * @param emailId + * @param password + */ + private void createAccount(String emailId, String + password){ + mAuth.createUserWithEmailAndPassword(emailId, password) + .addOnCompleteListener(this, new OnCompleteListener() { + @Override + public void onComplete(@NonNull Task task) { + if (task.isSuccessful()) { + emailTextInput.setError(null); + // Sign in success, update UI with the signed-in user's information + //Log.d(TAG, "createUserWithEmail:success"); + FirebaseUser user = mAuth.getCurrentUser(); + //updateUI(user); + Intent intent = new Intent(SignUpActivity.this, MainActivity.class); + startActivity(intent); + finish(); + } + else if(task.getException() instanceof FirebaseAuthUserCollisionException){ + Toast.makeText(getApplicationContext(), "Email Already Used", + Toast.LENGTH_LONG).show(); + emailTextInput.setError("Email Already in Use"); + } + else { + // If sign in fails, display a message to the user. + //Log.w(TAG, "createUserWithEmail:failure", task.getException()); + Toast.makeText(getApplicationContext(), "Authentication failed.", + Toast.LENGTH_SHORT).show(); + //updateUI(null); + } + + // ... + } + }); + } + + /** + * Register User if Password && Email && Username valid + * + * @return + */ + private void registerUser() { + boolean validEmail = isEmailValid(Objects.requireNonNull(emailEditText.getText()).toString()); + boolean validPassword = isPasswordValid(Objects.requireNonNull(passwordEditText.getText()).toString()); + boolean validUserName = isUsernameValid(Objects.requireNonNull(usernameEditText.getText()).toString()); + if (validEmail && validPassword && validUserName) { + + //create new account with valid email & password + createAccount(emailEditText.getText().toString(),passwordEditText.getText().toString()); + } + } + + /** + * Checks if password is valid or not + * + * @param text + * @return boolean + */ + private boolean isPasswordValid(@NonNull String text) { + if (text.length() > 7 && text.length() < 14) { + passwordTextInput.setError(null); + return true; + } else { + passwordTextInput.setError(getText(R.string.dr_error_length_password)); + return false; + } + } + + /** + * Checks if Email Valid or Not + * + * @param text + * @return boolean + */ + private boolean isEmailValid(@NonNull String text) { + if (text.toString().isEmpty()) { + //error + emailTextInput.setError("Email Can't be Empty"); + return false; + } + if (Patterns.EMAIL_ADDRESS.matcher(text).matches()) { + //success + return true; + } else { + //error enter valid email + emailTextInput.setError("Invalid Email!"); + return false; + } + } + + /** + * Check for valid username + * + * @param userName + * @return + */ + private boolean isUsernameValid(@NonNull String userName) { + if (userName.isEmpty()) { + usernameTextInput.setError("Username Can't be Empty"); + return false; + } else { + usernameTextInput.setError(null); + return true; + } + } + +} diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..2b068d11 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_logo.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_logo.xml new file mode 100644 index 00000000..5da33268 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_logo.xml @@ -0,0 +1,15 @@ + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_person.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_person.xml new file mode 100644 index 00000000..eed58775 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/dr_person.xml @@ -0,0 +1,5 @@ + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_baseline_location.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_baseline_location.xml new file mode 100644 index 00000000..0a48765c --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_baseline_location.xml @@ -0,0 +1,5 @@ + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_launcher_background.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..07d5da9c --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/logo.PNG b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/logo.PNG new file mode 100644 index 00000000..883549bc Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/drawable/logo.PNG differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_doctor_detail.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_doctor_detail.xml new file mode 100644 index 00000000..1b71f82d --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_doctor_detail.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_login.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_login.xml new file mode 100644 index 00000000..ae6a8a0a --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_login.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_main.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_main.xml new file mode 100644 index 00000000..cbf4b8e0 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_news.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_news.xml new file mode 100644 index 00000000..fb74d387 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_news.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_profile.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_profile.xml new file mode 100644 index 00000000..c19c9d56 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_profile.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_sign_up.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_sign_up.xml new file mode 100644 index 00000000..e44679c9 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/activity_sign_up.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/doctor_list.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/doctor_list.xml new file mode 100644 index 00000000..3acb7e75 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/doctor_list.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/news_item.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/news_item.xml new file mode 100644 index 00000000..61a4490a --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/news_item.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/layout/schedule_item.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/schedule_item.xml new file mode 100644 index 00000000..8f293cb3 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/layout/schedule_item.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/menu/main.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/menu/main.xml new file mode 100644 index 00000000..d1001291 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/menu/main.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..a571e600 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..61da551c Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..c41dd285 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..db5080a7 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..6dba46da Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..da31a871 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..15ac6817 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..b216f2d3 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..f25a4197 Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..e96783cc Binary files /dev/null and b/Qwerty/DoctorAppointment-master/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/values/colors.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/values/colors.xml new file mode 100644 index 00000000..7bb7cd3e --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/values/colors.xml @@ -0,0 +1,11 @@ + + + #6200EE + #DADCE0 + #E0E0E0 + #FFFFFF + #FFFFFF + #FFFFFF + ?attr/colorControlNormal + @android:color/darker_gray + diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/values/dimens.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/values/dimens.xml new file mode 100644 index 00000000..a6b3daec --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/values/dimens.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/values/strings.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..f4ffe516 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/values/strings.xml @@ -0,0 +1,31 @@ + + + Life + + + Email + Password + Username + Next + Cancel + Password must contain be between 8 to 13 characters + Forget Password? + New Member? Sign Up + Sign In + Sign Up + Already have account? Sign In + Log Out + View Profile + + + + Filter + Search + Title + Secondary text + Settings + Age + Last Name + First Name + Health News + \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/app/src/main/res/values/styles.xml b/Qwerty/DoctorAppointment-master/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..ce53bcfe --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/main/res/values/styles.xml @@ -0,0 +1,17 @@ + + + + + + + + diff --git a/Qwerty/DoctorAppointment-master/app/src/test/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleUnitTest.java b/Qwerty/DoctorAppointment-master/app/src/test/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleUnitTest.java new file mode 100644 index 00000000..4c04a33a --- /dev/null +++ b/Qwerty/DoctorAppointment-master/app/src/test/java/com/blogspot/priyabratanaskar/firebaselogin/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.blogspot.priyabratanaskar.firebaselogin; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/Qwerty/DoctorAppointment-master/build.gradle b/Qwerty/DoctorAppointment-master/build.gradle new file mode 100644 index 00000000..6a4a3b52 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/build.gradle @@ -0,0 +1,30 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + + repositories { + google() + jcenter() + + } + dependencies { + classpath 'com.android.tools.build:gradle:3.6.3' + classpath 'com.google.gms:google-services:4.3.3' + + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + google() + jcenter() + + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/Qwerty/DoctorAppointment-master/gradle.properties b/Qwerty/DoctorAppointment-master/gradle.properties new file mode 100644 index 00000000..199d16ed --- /dev/null +++ b/Qwerty/DoctorAppointment-master/gradle.properties @@ -0,0 +1,20 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true + diff --git a/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.jar b/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..f6b961fd Binary files /dev/null and b/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.jar differ diff --git a/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.properties b/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..51844f93 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Jul 29 19:15:29 IST 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip diff --git a/Qwerty/DoctorAppointment-master/gradlew b/Qwerty/DoctorAppointment-master/gradlew new file mode 100644 index 00000000..cccdd3d5 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/Qwerty/DoctorAppointment-master/gradlew.bat b/Qwerty/DoctorAppointment-master/gradlew.bat new file mode 100644 index 00000000..f9553162 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/Qwerty/DoctorAppointment-master/settings.gradle b/Qwerty/DoctorAppointment-master/settings.gradle new file mode 100644 index 00000000..cfe55d39 --- /dev/null +++ b/Qwerty/DoctorAppointment-master/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name='FireBaseLogin' +include ':app' diff --git a/Qwerty/Qwerty.md b/Qwerty/Qwerty.md new file mode 100644 index 00000000..5a9a14cd --- /dev/null +++ b/Qwerty/Qwerty.md @@ -0,0 +1,120 @@ +# Life + +**“Life”** - Your healthcare assistant + +# Description + +**“Life”** is an Android healthcare assistant application specifically designed to help users book appointments both online and offline. With it's intelligent chat system you can resolve queries, know about doctors, their timings and get health advices + +# Features + +This app does the following: + +1. **Appointment booking** - You can book one-on-one appointments with your doctor over the app (online) or in your nearest clinic. + +2. **Doctor finder** - Find doctors of your choice in your region, their clinic timings and make bookings. + + +3. **Health articles** - Stay updated on latest healthcare news and get daily advice on living healthy. +4. **Friendly chatbot** - Chat with your chatbot friend to resolve queries, find doctors and get health tips. + +# Version + +v1.1 (in prototype development) + +# Installation + +For your ease, we have included the original apk of the product so that you may simply download it and install... + +1. Head over to the project repo +2. Clone the entire project into your smartphone +3. Head to the Executable folder +4. Install the "Life" app (You may have to override some system warning) +5. Follow the intuitive UI +6. Enjoy! + +# Supported android versions + +Android 5.0 (Lolipop) and above + +# Directory tree + +
+DoctorAppointment-master
+├───.idea
+│ └───codeStyles
+├───app
+│ └───src
+│ ├───androidTest
+│ │ └───java
+│ │ └───com
+│ │ └───blogspot
+│ │ └───priyabratanaskar
+│ │ └───firebaselogin
+│ ├───main
+│ │ ├───java
+│ │ │ └───com
+│ │ │ └───blogspot
+│ │ │ └───priyabratanaskar
+│ │ │ └───firebaselogin
+│ │ └───res
+│ │ ├───drawable
+│ │ ├───drawable-v24
+│ │ ├───layout
+│ │ ├───menu
+│ │ ├───mipmap-anydpi-v26
+│ │ ├───mipmap-hdpi
+│ │ ├───mipmap-mdpi
+│ │ ├───mipmap-xhdpi
+│ │ ├───mipmap-xxhdpi
+│ │ ├───mipmap-xxxhdpi
+│ │ └───values
+│ └───test
+│ └───java
+│ └───com
+│ └───blogspot
+│ └───priyabratanaskar
+│ └───firebaselogin
+├───Executable
+├───gradle
+│ └───wrapper
+└───Screenshots
+
+ + +# Example Screenshots + +### **Booking Screen** +![Booking screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Booking%20screen.jpeg) + +### **Hamburger screen** + +![Hamburger screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Hamburger%20screen.jpeg) + +### **Main screen** + +![Main screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Main%20screen.jpeg) + +### **Share screen** + +![Share screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Share%20screen.jpeg) + +### **Sign in screen** + +![Sign in screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Sign%20in%20screen.jpeg) + +### **Sign up screen** + +![Sign up screen](https://github.com/Nawaz2000/CISHack-UITBU/blob/main/Qwerty/DoctorAppointment-master/Screenshots/Signuo.jpeg) + +# Project Status + +In Development mode + +# Future Scope + +Some features which we have though of implementing in the near future... + +1. **Health record** - to keep every persons health record stored in an encrypted form so that information is transferred between patients and doctors. +2. **Patient’s lounge** - here you will be able to meet patients like you, chat with them and share your problems. +3. **Pill reminder** - so that you may never miss a pill. diff --git a/Qwerty/Qwerty.pptx b/Qwerty/Qwerty.pptx new file mode 100644 index 00000000..69227ee6 Binary files /dev/null and b/Qwerty/Qwerty.pptx differ diff --git a/Qwerty/Qwerty.txt b/Qwerty/Qwerty.txt new file mode 100644 index 00000000..41ad6c2f --- /dev/null +++ b/Qwerty/Qwerty.txt @@ -0,0 +1,60 @@ +Problem Statement: Healthtech + + +Idea brief: + + +“Life” is an Android healthcare assistant application specifically designed to help users book appointments both online and offline. This app does the following: + + +1. Helps you ask your health care and medical questions to specialists for diagnosis, treatment and medical advice + + +2. Find doctors in your region their offline timing location and visit fees + + +3. One on one consultation/ chat system + + +4. Articles about common healthcare problems and their remedies + + +Future scope: + + +1. Medical health record + + +2. Patient’s lounge (meet similar patients) + + + + +Tech Stack: + + +Java, Android application and Artificial intelligence + + +Positive and unique solutions of our idea: + + +1. Online + Offline- “Life” not only lets users book online appointments over video or chat-based system but also lets users find doctors in their city and book offline appointments through its user-friendly intuitive user interface + +2. Physical + mental- Other apps in the market only focus on contacting doctors relating to physical pain but “Life” also puts emphasis on mental health wherein users can also book appointments with psychologists and therapists. + + +3. Awareness- “Life” provides users with articles on various health related issues to keep them regularly updated with what’s trending in the health department and ways to healthy lifestyle. + + +4. Medical forms- “Life” uniquely brings doctors of different alternative medicine systems such as Allopathy, Homeopathy, Ayurveda etc., so that users have the option to pick their form of medicine. + + +Is this your first hackathon? If No, then please share your past experience and achievement with us. + + +Yes. + + +Our PPT presentation Link: +https://drive.google.com/file/d/1N-gVfpIdiiMUTShll5aMMBwhJQpnq0-9/view?usp=sharing \ No newline at end of file