Android Mobile Food Ordering App For Restaurant – Project Idea Source Code

This is part of the android student’s project idea. I have received many request on Android Mobile Food Ordering App for Restaurant from readers on how to create it in android.

This is not a complete project for anybody working on a related topics but rather it is for learning purpose. By going through the source code you can learn how to implement a feature(s) you might need in your project.

This project will give you an insight on how to create android food ordering application and you can use the source code as a foundation to achieve your project requirement.

The application comes with different features. You can easily customize it the way you want.

This project comes with source code, documentation, Database Schema, Use Case Diagram and Web admin panel in Php and Mysql.

BUY NOW

 

I also have custom android and iOS applications I have develop that will be of help to students planning their thesis, dissertation or course project in mobile related fields.

Below are some of the screen-shots associated with this project.

Login and Registration Section

shot1 shot2

Menu Category and Menu Items

menusection

Order History, Favorite and Hot Deals

sectiontwo

Cart, Checkout, Payment and Order Confirmation

payment1 payment2

Database EER Diagram

dbdesign

Sample Code Snippet from the project

codes

Server Side Web Admin Panel

panel

 

APK File for testing purposes.

Please note that the latest changes might not reflect in the apk file. Kindly ask me any question with respect to that.

 

Package Includes

1 Android Java Source code

2. Web Admin Panel (Php and MYSQL)

3. Database file (.sql file)

4. Documentation

 

Link to documentation and setup questions

 

Promotion Price : $10

 

If you do not have any experience with android or Slim 3 Php framework then this source code is not for you. But if you still need to and will like me to set it up for you then you can contain for the setup price.

How to create Rating Bar in Android xml layout

In this android programming source code example, we are going to create Rating Bar in Android xml layout.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to create Rating Bar in Android xml layout.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar13">


    <TextView
        android:id="@+id/textView26"
        android:layout_gravity="center_horizontal"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="24sp"
        android:text="RatingBar" />

    <RatingBar
        android:id="@+id/ratingBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;


public class Seekbar13 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar13);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to dynamically create Rating Bar in Android

In this android programming source code example, we are going to dynamically create Rating Bar in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to dynamically create Rating Bar in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar14"
    android:orientation="vertical"
    android:id="@+id/linearLayout">

    <TextView
        android:id="@+id/textView27"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Create RatingBar Programmatically" />
</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;
import android.widget.RatingBar;


public class Seekbar14 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar14);

        LinearLayout linearLayout = findViewById(R.id.linearLayout);
        RatingBar ratingBar = new RatingBar(this);
        linearLayout.addView(ratingBar);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to disable Drag feature in android rating bar

In this android programming source code example, we are going to disable Drag feature in android rating bar.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to disable Drag feature in android rating bar.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar15">


    <TextView
        android:id="@+id/textView26"
        android:layout_gravity="center_horizontal"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="24sp"
        android:text="RatingBar Drag Feature Disabled" />

    <RatingBar
        android:id="@+id/ratingBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.RatingBar;


public class Seekbar15 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar15);

        RatingBar ratingBar = findViewById(R.id.ratingBar);
        ratingBar.setEnabled(false);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

How to set Rating Bar default value in Android

In this android programming source code example, we are going to set Rating Bar default value in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to set Rating Bar default value in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar17">


    <TextView
        android:id="@+id/textView26"
        android:layout_gravity="center_horizontal"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textSize="24sp"
        android:text="Set RatingBar Default Value" />

    <RatingBar
        android:id="@+id/ratingBar"
        android:rating="5"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.RatingBar;


public class Seekbar17 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar17);

        RatingBar ratingBar = findViewById(R.id.ratingBar);
        ratingBar.setRating(2.0f);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to get the value of a Rating Bar in Android

In this android programming source code example, we are going to get the value of a Rating Bar in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to get the value of a Rating Bar in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar18"
    android:layout_margin="8dp"
    android:padding="4dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:text="RatingBar Get Value"/>

    <RatingBar
        android:id="@+id/ratingBar4"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <TextView
        android:id="@+id/getValue"
        android:textColor="@color/colorAccent"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.RatingBar;
import android.widget.TextView;


public class Seekbar18 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar18);

        TextView seekbarValue = findViewById(R.id.getValue);
        RatingBar ratingBar = findViewById(R.id.ratingBar4);
        ratingBar.setProgress(3);
        seekbarValue.setText(String.valueOf(ratingBar.getProgress()));
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to add Rating Bar in Alert Dialog in Android

In this android programming source code example, we are going to add Rating Bar in Alert Dialog in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to add Rating Bar in Alert Dialog in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar19"
    android:paddingTop="40dp">

    <Button
        android:layout_gravity="center_horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Show RatingBar"
        android:id="@+id/ratingBar_Button"/>

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;


public class Seekbar19 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar19);

        Button button = findViewById(R.id.ratingBar_Button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // Create a alert dialog builder.
                final AlertDialog.Builder builder = new AlertDialog.Builder(Seekbar19.this);
                // Set icon value.
                builder.setIcon(R.mipmap.ic_launcher);
                // Set title value.
                builder.setTitle("Alert Dialog with RatingBar");

                // Get custom login form view.
                final View customView = getLayoutInflater().inflate(R.layout.ratingbar, null);
                // Set above view in alert dialog.
                builder.setView(customView);
                builder.setCancelable(true);

                final AlertDialog alertdialog = builder.create();
                alertdialog.show();
            }

        });
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to change SeekBar thumb drawable in Android

In this android programming source code example, we are going to change SeekBar thumb drawable in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to change SeekBar thumb drawable in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar12"
    android:layout_margin="8dp"
    android:padding="4dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:text="Seekbar Thumb"/>

    <SeekBar
        android:id="@+id/seekBar"
        android:thumb="@android:drawable/gallery_thumb"
        style="@style/Widget.AppCompat.SeekBar.Discrete"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:max="10"
        android:progress="3" />

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;


public class Seekbar12 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar12);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to enable or disable SeekBar in Android

In this android programming source code example, we are going to enable or disable SeekBar in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to enable or disable SeekBar in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar11"
    android:layout_margin="8dp"
    android:padding="4dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:text="Seekbar Enable/Disable"/>

    <SeekBar
        android:id="@+id/seekBar"
        style="@style/Widget.AppCompat.SeekBar.Discrete"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:max="10"
        android:progress="3" />

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.SeekBar;


public class Seekbar11 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar11);

        SeekBar seekBar = findViewById(R.id.seekBar);
        seekBar.setEnabled(false);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to programmatically set Rating Bar Style in Android

In this android programming source code example, we are going to programmatically set Rating Bar Style in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to programmatically set Rating Bar Style in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/linearLayout"
    tools:context=".seekbar.Seekbar20">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/colorAccent"
        android:textSize="20sp"
        android:text="Change RatingBar Style Programmatically"
        android:padding="10dp"/>

</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;
import android.widget.RatingBar;


public class Seekbar20 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar20);

        LinearLayout linearLayout = findViewById(R.id.linearLayout);

        RatingBar ratingBar = new RatingBar(this, null, android.R.attr.ratingBarStyleSmall);
        linearLayout.addView(ratingBar);

    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.

 

How to dynamically create SeekBar in Android

In this android programming source code example, we are going to dynamically create SeekBar in Android.

You can copy and adopt this source code example to your android project without reinventing the wheel.

Below is a step by step source code to dynamically create SeekBar in Android.

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:id="@+id/linearLayout"
    android:layout_height="match_parent"
    tools:context=".seekbar.Seekbar10"
    android:layout_margin="8dp"
    android:padding="4dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="16sp"
        android:text="Create Seekbar Programmatically"/>


</LinearLayout>

MainActivity.java

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.LinearLayout;
import android.widget.SeekBar;


public class Seekbar10 extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_seekbar10);

        LinearLayout linearLayout = findViewById(R.id.linearLayout);
        SeekBar seekBar = new SeekBar(this);
        linearLayout.addView(seekBar);
    }
}

If you have any question or suggestions kindly use the comment box or you can contact us directly through our contact page below.