The Homework aims to implement an Android application for restaurants administrators and customers. Two main actors of the application are the Restaurant administrator and the Restaurant customer. The Restaurant customer should be able to: - Register to the application by creating an account/login/logout - Search for restaurants based on food specialty, nearest location, best ratings, etc. When a restaurant is selected among the result list, the restaurant description page is opened where the customer could browse photos, food menus, prices and customers' comments about the restaurants. - Add comment and rate the restaurant. The restaurant administrator should be able to : - Register to the application by creating an account/login/logout - Add/Edit/Delete the restaurant information/location/photos/food menus and information - Access the customers rates and reviews
The Homework aims to implement an Android application for restaurants administrators and customers. Two main actors of the application are the Restaurant administrator and the Restaurant customer.
The Restaurant customer should be able to:
- Register to the application by creating an account/login/logout
- Search for restaurants based on food specialty, nearest location, best ratings, etc. When a restaurant is selected among the result list, the restaurant description page is opened where the customer could browse photos, food menus, prices and customers' comments about the restaurants.
- Add comment and rate the restaurant.
The restaurant administrator should be able to :
- Register to the application by creating an account/login/logout
- Add/Edit/Delete the restaurant information/location/photos/food menus and information
- Access the customers rates and reviews
![File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help
Projects483 - MainActivity.java [Projects483.app]
Projects483
app
src
main
java
com
example projects483
LoginScreen
a app -
Pixel 4 API 29 ▼
Android
a activity_main.xml
© MainActivity.java
app
import android.app.Activity;
O 120 A 32 X 14 A v
>manifests
import android.app.Dialog;
java
import android.content.Intent;
v D com.example.projects483
v © MainActivity.java
© LoginScreen
D com.example.projects483 (androidTest)
> D com.example.projects483 (test)
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
6
7
8
import android.graphics.Point;
>
import android.graphics.drawable. Animatable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
10
> E res
11
> A Gradle Scripts
12
import android.os.Handler;
13
import android.util.Patterns;
import android.view.Display;
import android.view. GestureDetector;
14
15
16
import android.view.MotionEvent;
import android.view.View;
import android.view.WindowManager;
17
18
19
import android.widget. AutoCompleteTextView; import android.widget.Button;
20
import android.widget. CheckBox;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;
21
22
23
24
public class LoginScreen extends Activity implements View.OnClickListener, GestureDetector.OnGesturelistener{
25
26
Button LoginAccesaButton, MainLoginButton, RegisterButton;
27
AutoCompleteTextView LoginEmail;
EditText FirstName, LastName, Mobile, Email, Password, ConfirmPassword, LoginPassword;
CheckBox CheckInC;
28
29
ImageView LoginBackgroundImage, LoginBottomimage;
GestureDetector gestureDetector;
30
31
32
private static SQLLiteHelperProducts sqliteHelper;
33
public Dialog loginDialog; //creating a new instance of the Dialog class object and specifying its context, the current class
34
Problems:
Current File 166
Project Errors 120
O Cannot resolve symbol 'sqLiteHelper' :129
O Cannot resolve symbol 'sqLiteHelper' :130
Cannot resolve symbol 'This' :132
O Cannot resolve symbol 'UserMenu' :132
O Cannot resolve symbol 'Uaerld' :133
O Cannot resolve method 'clearEditTextValues' in 'LoginScreen' :135
O 'else' without 'if' :141
O ' expected :149
O Expression expected :149
O ' expected :149
OVenasted 152
E TODO
O Problems
2 Terminal
E Logcat
K Build
a Profiler
I App Inspection
إخفاء
إيقاف المشاركة
go.room.sh dlii li d, Lày. ||
Q Event Log
a Layout Inspector
O Gradle sync finished in 4 s 401 ms (moments ago)
11:26 LF UTF-8 4 spaces 1
* Gradle
Emulator O Device File Explorer .
O' O o
» Resource Manager Project
K Build Variants * Favorites . Structure](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fef9f7f49-838d-4c78-b1b0-ddfcf00348b8%2Fac7fda2b-80b9-42aa-bfab-c4f25ec788e9%2Fb94hsdc_processed.png&w=3840&q=75)
![File Edit View Navigate Code Analyze Refactor Build Run Iools VCS Window Help
Projects483 - MainActivity.java [Projects483.app]
Projects483
app
src
main
java
com
example projects483
LoginScreen
a app
Pixel 4 API 29 ▼
Android
a activity_main.xml
MainActivity.java
app
34
public Dialog loginDialog; //creating a new instance of the Dialog class object and specifying its context,the current class
O 120 A 32 X 14 A V
>manifests
35
java
36
@0verride
v D com.example.projects483
v © MainActivity.java
© LoginScreen
D com.example.projects483 (androidTest)
> D com.example.projects483 (test)
protected void onCreate(Bundle savedInstanceState) {
super.onCreate (savedInstancestate);
setContentView (R.layout.activity_login_screen);
//this is to prevent this keyboard from shoving when the app starts
37 ot
38
39
>
40
this.getWindow(().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
initializeComponents ();
initializelisteners ();
41
> E res
42
> A Gradle Scripts
43
initializeAnimators();
initializeGeatures();
44
45
sqlliteDB();
setbackgroundImage();
}
46
47
48
49
// initializing the button and Views that is being used in this class
50
51
private void initializeComponents() {
52
//nitializing and declaring button to this java class by referring to the button 10 specified in the XML
LoginAccessButton = findViewById(R.id.btnLogin);
RegisterButton = findViewById(R.id.btnRegister);
53
54
LoginbottomImage = findViewById(R.id.login_bottom_image);
LoginBackground Image = findviewById(R.id.loginbackgroundImage);
55
56
//used to initialize the animations that in used in this activity
private void initializeAnimators(){
Drawable drawable = LoginBottomimage.getDrawable();
if (drawable instanceof Animatable){
((Animatable) drawable).start();
57
58
59
60
61
62
}
63
}
//setting a clicle event listener to these buttons
private void initializeListeners() {
64
65
Problems:
Current File 166
Project Errors 120
O Cannot resolve symbol 'login_bottom_image' :55
O Cannot resolve symbol 'LoginBackground' :56
O Cannot resolve symbol 'loginbackgroundlmage' :56
O ' expected :58
O Expression expected :58
O ' expected :58
O ' expected :65
O Expression expected :65
O ' expected :65
O ' expected :71
O Ernror-ion ovnocted 71
e Problems
E TODO
O Gradle sync finished in 4 s 401 ms (a minute ago)
2 Terminal
E Logcat
K Build
a Profiler
{ App Inspection
إخفاء
إيقاف المشاركة
| | يشارك شاشتك go.ro om.sh
Q Event Log
a Layout Inspector
35:5 LF UTF-8 4 spaces 1 O A
K Build Variants * Favorites Structure
» Resource Manager Project
O' O O](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fef9f7f49-838d-4c78-b1b0-ddfcf00348b8%2Fac7fda2b-80b9-42aa-bfab-c4f25ec788e9%2F6d099md_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)