Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

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
expand button
Transcribed Image Text: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
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
expand button
Transcribed Image Text: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
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education