Android Studio.
Java, Android.
Would like to detail about the app in this README.
Firstly, Let me explain you the structure and functionality of the code.
There are few important folders to be considered here which are as follows: App Gradle Scripts
- Manifests
- Java
- res
Manifests: AndriodManifest.xml is the file present under Manifests folder which consists of the integratory segments or modules of the food allergy project like user profile, scanner, Dashboard in a form of activities.
Java consists of the below packages in it, com.db.foodallergyapp com.db.foodallergyapp(androidTest) com.db.foodallergyapp(Test)
com.db.foodallergyapp consists of the below structured folder: Activities AndroidUtils Fragments Model RecyclerViewAdapters View
Activities consists of the functional class files which are as follows: AllFoodAllergyActivity: Functionality and back end logic of All Food Allergy is written in this class file. FoodAndNutritionActivity: Functionality and back end logic of FoodAndNutritionActivity is written in this class file. ProfileActivity: Functionality and back end logic of ProfileActivity is written in this class file. ScannerActivity: Functionality and back end logic of ScannerActivity is written in this class file. ScannerResultActivity: Functionality and back end logic of ScannerResultActivity is written in this class file. SearchInFoodActivity: Functionality and back end logic of SearchInFoodActivity is written in this class file.
View: CaptureAct: If we need to capture any activities within the project then we can use it. MainActivity: Inorder to start, to stop, for the permissions etc all the activities will be present in MainActivity. SplashActivity: If at any case any information needs to be displayed only for certain amount of time and then hide it etc, such functionality can be pass under the activity here
Res: drawable All the project design are available here layout layout design is available here menu Menu design is availabe here mipmap values xml
Build gradle: Integration of the android in the json format is present here.
Install Android studio.
Download FoodAllergyApp from Github.
Import or Open the FoodAllergyApp into Android Studio.
Right side of the panel you will be able to see Device Manager
Click on Device Manager.
Click on Virtual.
Click on Create device.
You will be seeing a Select Hardware in Virtual Device Configuration and by default Phone will be selected if not select phone and click on Next.
You will be seeing a System Image in Virtual Device Configuration and by default Sv2 will be selected if not select Sv2 and click on Next.
You will be seeing a Android Virtual Device(AVD) in Virtual Device Configuration, verify configuration and click on Finish.
Then the device will be added under Device Manager Virtual tab then click on Launch the emulator, you will be seen launching the mobile emulator.
Attaching the Functionality as follows:
Click on APP:
Click on Menu:
Click on User:
Every field is editable and back functionality is implemented in all screens. View of the main interface
After clicking on the functionalities present on the screens you will be able to run the functionality and see the things.
Every Functionality is accessable:
Click on scanner, then you will be given two operations to go ahead one is Camera and the other is Scanner functionality. Clicking on Camera will open the camera and it shall show the details of the food product along with the Symptoms associated when clicking on it you will be able to see the symptoms.
Click on scanner and recommendations, then you will be given two operations to go ahead one is Camera and the other is Scanner functionality. Click on Scanner and see it will open the sanning option and it will show the food product details along with recommendations. Here in the above functionlaity scanner functionality is static what ever user scans for now, always peanut bar details will be displayed.
Click on Foods and Nutritions there will be three options available in it which are as follows: Dairy Products, Meat Products, Baked Products and Recommendations.
Click on each options you will be able to see relevant details but when you click on recommendations you will only be able to see milk products as a suggestions it is a static recommendations providing in the app.
Click on Food Allergies then you will be able to see My Allergies, while clicking on these options you will be able to see relevant information.
In search functionality whatever you search in search bar we will give only one product details as a static information.
Click on My profile you will be able to see the information but not providing any functionality to edit and save it.
One will be able to see the functionality of the Food Allergy Scanner App by clicking the Scanner functionality, Scanner and Recommendations functionality, Foods and Nutrition, All Food Allergies. You will also be able to see Search Functionality and My Profile details.
One will see static functionalities like Search, Recommendations and User Profile section are static. In Food Scanner, camera and scanner functionality is implemented in emulator we are displaying the static information on it to show how the prototype work.