Open Sekhar0799 opened 11 months ago
Solution: Integrated the camera module into the application context and created intents for starting the camera stream after the "next" button is clicked in helper activity.
public void onClick(View v) {
// Added the camera navigation function which interm calls the camera stream activity
navigateToSecondPage();
}
private void navigateToSecondPage() {
Vibration();
// Handle navigation to the second page here
// Create a new intent for the Camera Module to start streaming.
Intent intent = new Intent(this, CameraStream.class);
startActivity(intent);
finish();
}
Detailed Description:
After we navigate to the help screen, and finish the voice instructions, the camera screen must pop, giving the user option to click phots for object recognition, but camera module is not opening.
Steps to Reproduce:
Don't create a camera intent after the second activity redirection.
Expected Behavior:
After the user has spoken, camera module must pop and must show the users image.
Actual Behavior:
The application becomes unresponsive after the voice input and not prompting the user to click image.
Before Fixing the bug:
https://github.com/priya-zha/Software-Engineering-Project/assets/104270199/3491048d-b14e-4071-9ae9-5e7354a100b2
After Fixing the Bug:
https://github.com/priya-zha/Software-Engineering-Project/assets/104270199/9e6bdef8-afcd-4860-b58c-c309ad97e250