Android Studio Tutorial - Order Foods Part 13 (Order Management)

Share
Embed
  • Published on Sep 12, 2017
  • Link donate : www.paypal.me/edmtdev
    #OrderFoodAndroidEDMTDev #AndroidEDMTDev #EDMTDev
    Facebook : facebook.com/edmtdev
    Link database : ceesty.com/wMz6Lt
    Welcome back ! In this tutorial , you will learn how to manage order like : Update / Edit order
    And we will make Client side receive update Notification when Order is update !
    I will show you in this tutorial :
    - Load Orders
    - Custom Alert Dialog
    - Material Spinner
    - Service


    android development tutorial,
    android programming tutorial,
    android app development tutorial,
    android tutorial for beginners ,
    android app tutoria,
    android studio tutorial,
    learn android programming ,
    android developer tutorial ,
    android programming,
    android development,
    android studio tutorial for beginners,
    android course,
    android training,
    android development course,
    android app development course

Comments • 624

  • Muhammad Arslan
    Muhammad Arslan 2 months ago +5

    for those who are still getting the error in the notification and can't load the foodList in client side:-
    have a look down here:-


    in android orio api level 26 or above there is an update in the notification that you have to create a channel for this ...
    just replace the few lines of codes with your showNotification method.. and your codes runn like a charm
    **************************************************************************************************
    private void showNotification(String key, Request request) {
    Intent intent=new Intent(getBaseContext(), OrderStatus.class);
    intent.putExtra("userPhone",request.getPhone()); //we need put user phone
    PendingIntent contentIntent=PendingIntent
    .getActivity(getBaseContext(),0,intent,PendingIntent.FLAG_UPDATE_CURRENT);

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){
    NotificationChannel channel=
    new NotificationChannel("foodStatus","foodStatus",NotificationManager.IMPORTANCE_DEFAULT);
    NotificationManager notificationManager=getSystemService(NotificationManager.class);
    notificationManager.createNotificationChannel(channel);

    }

    NotificationCompat.Builder builder=new NotificationCompat.Builder(getBaseContext(),"foodStatus");
    builder.setAutoCancel(true)
    .setDefaults(Notification.DEFAULT_ALL)
    .setWhen(System.currentTimeMillis())
    .setTicker("food")
    .setContentInfo("your order was updated")
    .setContentText("Order #"+key+" was updated to "+ Common.convertCodeToStatus(request.getStatus()))
    .setContentIntent(contentIntent)
    .setContentInfo("Info")
    .setSmallIcon(R.mipmap.ic_launcher);

    NotificationManager notificationManager=(NotificationManager)getBaseContext().getSystemService(Context.NOTIFICATION_SERVICE);
    notificationManager.notify(1,builder.build());

    }
    **********************************************************************************************************
    from reference :- developer.android.com/training/notify-user/build-notification

    and for those who are getting white screen can't open the view in foodList just make sure you have used "menuId" istead of "MenuId" in loadSuggest()....startSearch()..... loadListFood() ---->FoodList.java in client sides :)

    • Anastasios Kougkalis
      Anastasios Kougkalis Month ago

      Thanks man. I watched the video 3 times to find out what I did wrong and couldn't get notifications to work... and see foods in client side...

    • muhammad Mouaz
      muhammad Mouaz 2 months ago

      Thank you E''

    • cristian anaya
      cristian anaya 2 months ago

      in StartSearch() would change the Name to name ?

    • Muhammad Arslan
      Muhammad Arslan 2 months ago

      Thanx

    • EDMT Dev
      EDMT Dev  2 months ago +1

      Good job ! I've pin your comment

  • Hashim Alade
    Hashim Alade 9 hours ago

    How do i connect the two apps to 1 firebase Database, Currently i am using different DB

  • HolyTea69- roi shenkar
    HolyTea69- roi shenkar 4 days ago +1

    Alert dialog not showing, when i press on the long click update button nothing happens btw i watched part 13 like 4 times and redone the code ad nothing happens, please help meee im in a hurrryyyy

    • HolyTea69- roi shenkar
      HolyTea69- roi shenkar 3 days ago

      EDMT Dev thanks for the help it seems that in the orderviewholder the “long click menu “ had 2 updates and not 1 update and 1 delete so I changed it and it worked

    • EDMT Dev
      EDMT Dev  3 days ago

      Please put break point on your code and trace it , make sure it can stop at your break point because if it don't stop , that mean your event not be fired

    • HolyTea69- roi shenkar
      HolyTea69- roi shenkar 4 days ago +1

      @EDMT Dev in the end of the show update dialog function I put the alert dialog.show

    • HolyTea69- roi shenkar
      HolyTea69- roi shenkar 4 days ago

      EDMT Dev I did it still nothing when I click update

  • HolyTea69- roi shenkar
    HolyTea69- roi shenkar 4 days ago +1

    are the server side and the client side conntected by the end of the video (if i delete category in server side will it be deleted in client side too?
    ?

    • EDMT Dev
      EDMT Dev  4 days ago

      @HolyTea69- roi shenkar No , need same project too

    • EDMT Dev
      EDMT Dev  4 days ago

      @HolyTea69- roi shenkar No , need same project too

    • EDMT Dev
      EDMT Dev  4 days ago

      @HolyTea69- roi shenkar No , need same project too

    • EDMT Dev
      EDMT Dev  4 days ago

      @HolyTea69- roi shenkar No , need same project too

    • EDMT Dev
      EDMT Dev  4 days ago

      @HolyTea69- roi shenkar No , need same project too

  • Aryan Gupta
    Aryan Gupta 7 days ago +1

    Hi, I am facing one issue that is Order status is getting updated but I am not getting the notification of updating order status in the device notification bar so can you please help me out in this?

    • EDMT Dev
      EDMT Dev  5 days ago

      ^^ That mean some reason
      1. Your Token is not true
      2. Your app can't send notification by POST REQUEST with TOKEN
      Please check

  • Adarsh Jain
    Adarsh Jain 14 days ago +1

    Hello EDMT Dev, I have a problem. My status of changes in the server app and is shown in firebase, but I am not able to get the notification in the client app. What could be the problem?

    • Adarsh Jain
      Adarsh Jain 13 days ago

      @EDMT Dev So the code mentioned in part 13 video is deprecated and will not work? Because I read that NotificationCompat which imports v7 library is deprecated and you are using this mentioned in the video.

    • EDMT Dev
      EDMT Dev  13 days ago

      @Adarsh Jain I've decalre in IFCMService , the interface you will use Retrofit to post request notification to FCM

    • Adarsh Jain
      Adarsh Jain 13 days ago +1

      @EDMT Dev I checked your video and I couldn't find any POST request in your part 13 video.

    • EDMT Dev
      EDMT Dev  13 days ago

      That mean your code where you use to send notification between app is not work. Check your sendNotification code , make sure it can send success POST request to FCM Services

  • Ronny Effendi
    Ronny Effendi 20 days ago +1

    why my notification not coming out?

    • EDMT Dev
      EDMT Dev  20 days ago

      That mean your FCM not work. Please watch single tutorial about it : ru-clip.net/video/QXPgMUSfYFI/video.html

  • Hamza Mughal
    Hamza Mughal Month ago +1

    populateViewHolder is not showing ..help?

    • EDMT Dev
      EDMT Dev  Month ago

      Because you use newer FirebaseUI than me :D

  • Hamza Mughal
    Hamza Mughal Month ago

    i'm not using FirebaseRecycler ui , i'm doing it in old simple way
    can you tell how i can get adapter.getRef(item.getOrder()).getKey;
    and by this which value trying to get?

  • Yuan Li
    Yuan Li Month ago +1

    sir i already redo the tutorial 13 3 times, but the Client Orders still is empty. but from notification, the orders is correct. can get some suggestion?

    • Yuan Li
      Yuan Li Month ago +1

      sir, i try to remove if (getIntent() == null)
      loadOrders(Common.currentUser.getPhone());
      else
      loadOrders(getIntent().getStringExtra("userPhone"));
      and only keep loadOrders(Common.currentUser.getPhone());
      the orders in client can work correctly...

  • Ghazwa Alqahtani
    Ghazwa Alqahtani Month ago +1

    Did anyone got issues when running the client app after registering the Service on the Home page? because, mine even in the Manifest file the automatic declaration for the service having a red underline it? HELP PLEASE

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      Like I get the status updated on the client side but I don't get the notification that is changed

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      @EDMT Dev I have it in the right path as yours, under the Java pacakge of the app

    • EDMT Dev
      EDMT Dev  Month ago +1

      Make sure you have service file in right path , my dear

  • Ghazwa Alqahtani
    Ghazwa Alqahtani Month ago +1

    Sir, can you please help me, cause I did everything as the tutorial, and I registered the service on the home Java on the client side, and now when I run the client side app and press Log-in the app crashes. The logcat gives me this erro 'explicit class can't be accessed and did you initialise it on Manifiest file?!

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      @EDMT Dev Please sir my submission is after 12 hours I only need this feature to work! I searched a lot about the problem I am facing I applied every solution I have read and none is working! Can you please help me. And sorry in advance if I annoyed you

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      @EDMT Dev Sir, I do not mean to spam but I really need to make the service to work! I followed the tutorial carefully twice and I still get the same issue that I showed the logcat for. PLEASE REPLY ASAP

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      @EDMT Dev
      This is it
      Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.alqahtag.orderassistant/com.example.alqahtag.orderassistant.Service.ListenOrder}; have you declared this activity in your AndroidManifest.xml?
      at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2112)
      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1757)
      at android.app.Activity.startActivityForResult(Activity.java:4781)
      at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
      at android.app.Activity.startActivityForResult(Activity.java:4721)
      at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
      at android.app.Activity.startActivity(Activity.java:5142)
      at android.app.Activity.startActivity(Activity.java:5110)
      at com.example.alqahtag.orderassistant.Home.onCreate(Home.java:103)

    • EDMT Dev
      EDMT Dev  Month ago +1

      Show me your log cat when your app is crash , my dear :D

  • omar abu sabha
    omar abu sabha Month ago +1

    hi sir , i hope u are okay , i have problem, orders in server side doesn't show to me

    • Hamza Mughal
      Hamza Mughal Month ago +1

      issue is in your xml in which recycleview is placed...

    • omar abu sabha
      omar abu sabha Month ago

      @EDMT Dev i do it step by step , but i have error {E/RecyclerView: No adapter attached; skipping layout} whats that mean !? and thank u alot ^_^

    • EDMT Dev
      EDMT Dev  Month ago +1

      Please watch my tutorial step by step , and make sure you load order from Firebase , with right reference name :D

  • Ghazwa Alqahtani
    Ghazwa Alqahtani Month ago +1

    When I press login on the Client App I get this error in the Logacat:
    Unable to find explicit activity class

    • EDMT Dev
      EDMT Dev  Month ago

      Please watch my tutorial step by step , my dear

  • Ahtasham Ali
    Ahtasham Ali Month ago +1

    Hi sir i need help i still facing some error like in client side .Service.LisenOrder not declare

    • EDMT Dev
      EDMT Dev  Month ago

      You're welcome my dear :D

    • Ahtasham Ali
      Ahtasham Ali Month ago

      Hehe i resolved the problem we using the starActivity but the solution is use startserves

    • Ahtasham Ali
      Ahtasham Ali Month ago

      Sir when I register the services i face this issue

  • Fahmida Tasnim Lisa
    Fahmida Tasnim Lisa Month ago +1

    it would've been of great help if the source code was given

    • EDMT Dev
      EDMT Dev  Month ago +1

      All source code available in my tutorial , please watch and get it my dear !

  • Célio manso
    Célio manso Month ago +1

    notification.builder is deprecated, i cant receive notification on cliente-side when i change the order status on server-side. help me please

    • Ghazwa Alqahtani
      Ghazwa Alqahtani Month ago

      @Célio manso How did you solve it? becuase I have a probel on the Home.java page when I register service by using Intent. The login button doesn't allow it to go to Home?
      SOME help PLEASE this is my logact:
      Unable to find explicit activity class {com.example.alqahtag.orderassistant/com.example.alqahtag.orderassistant.Service.ListenOrder}; have you declared this activity in your AndroidManifest.xml?

    • Célio manso
      Célio manso Month ago

      @EDMT Dev its working now :D :D .... I feel relieved! i can go to tutorial14# now :D

    • Célio manso
      Célio manso Month ago

      i had to do this @Override
      public ComponentName startService(Intent service) {

      service=new Intent(HomeActivity.this, ListenOrder.class);
      return super.startService(service);
      }
      but its not working. please help

    • Célio manso
      Célio manso Month ago

      one more thing :D it's showing an error when i startService(service) on Home.java . it says Invalid method declaration; return type required Missing method body, or declare abstract what should i do? thanks in advance

    • EDMT Dev
      EDMT Dev  Month ago +1

      Deprecated is just warning , it still show notification for you if your FCM is work
      Your problem becuz your FCM is not work :D

  • wham syria
    wham syria Month ago +1

    Hi thank you for this lesson but I have a problem
    I can not change the situation
    Do you have a solution

    • EDMT Dev
      EDMT Dev  Month ago +1

      @wham syria

    • EDMT Dev
      EDMT Dev  Month ago +1

      @wham syria

    • EDMT Dev
      EDMT Dev  Month ago +1

      @wham syria

    • wham syria
      wham syria Month ago +1

      @EDMT Dev Haha Thank you I wanted to have a problem and found the solution Thank you

    • EDMT Dev
      EDMT Dev  Month ago +1

      @.@ Sorry i don't understand your comment my dear :D

  • Anonymous Giraffe
    Anonymous Giraffe Month ago +1

    after adding
    //load order by phone from Common
    if (getIntent()== null)
    loadOrders(Common.currentUser.getPhone());

    else
    loadOrders(getIntent().getStringExtra("userPhone"));
    my order not appearing anymore, i tried checking "userPhone" and end up it is null, how do i fix this?

    • Shyam Patel
      Shyam Patel Month ago

      Even I got the same error but I resolved anyways and I have to see the what changed i made... Come to teamviewer will work on it shyampatel801@gmail.com

  • Brandon Ekbatani
    Brandon Ekbatani Month ago +1

    Also just noticed that when I click on the Order on the Client Side the Client Side App Crashes, Below is log cat after clicking on an order
    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.stuft_pizza_v3, PID: 6734
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.stuft_pizza_v3.Interface.ItemClickListener.onClick(android.view.View, int, boolean)' on a null object reference
    at com.example.stuft_pizza_v3.ViewHolder.OrderViewHolder.onClick(OrderViewHolder.java:37)
    at android.view.View.performClick(View.java:6597)
    at android.view.View.performClickInternal(View.java:6574)
    at android.view.View.access$3100(View.java:778)
    at android.view.View$PerformClick.run(View.java:25885)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6669)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
    I/Process: Sending signal. PID: 6734 SIG: 9
    Application terminated.

    • EDMT Dev
      EDMT Dev  Month ago

      You forgot to implement recycler click event on onBindViewHolder , please check my tutorial again :D

    • Shyam Patel
      Shyam Patel Month ago

      @Brandon Ekbatani ya bro if you couldn't solve the error just mail me @ shyampatel801@gmail.com
      I'll try to figure out your error

    • Brandon Ekbatani
      Brandon Ekbatani Month ago

      @Shyam Patel really thanks couldnt tell from the logcat

    • Shyam Patel
      Shyam Patel Month ago

      You have an error at line no 37 in orderViewHolder.java file :)

  • Brandon Ekbatani
    Brandon Ekbatani Month ago +1

    Hello EDMT Dev, I have followed all 12 previous videos and everything is perfect and working properly. However, I have finished this video and both apps run and work perfectly. No errors in either logcat/run output. Yet, when I change the status of the order on the server side there is no notification appearing on the client side. And I cannot figure out why as there are no errors being displayed. I have followed the tutorial slowly, and implemented the fix from "Muhammad Arslan" and still no notifications on client side. Any suggestions?... I also have noted that video 22 is labeled 'Notifcation Fixes' Would that be the solution? I mean I have no crashes, or errors. I would like to jump to that video as Im not sure when I will be able to get to that video. Please leave me any suggestions.

    • EDMT Dev
      EDMT Dev  Month ago

      @Brandon Ekbatani Yes you need

    • EDMT Dev
      EDMT Dev  Month ago

      @Brandon Ekbatani Yes you need

    • EDMT Dev
      EDMT Dev  Month ago

      @Brandon Ekbatani Yes you need

    • Brandon Ekbatani
      Brandon Ekbatani Month ago +1

      EDMT Dev do I need to set up FCM? I don’t remember that being apart of this tutorial

    • EDMT Dev
      EDMT Dev  Month ago +1

      Try debug your code and make sure Retrofit can submit your POST request to FCM API endpoint and your notification has been success to send :D

  • Vishal Pawar
    Vishal Pawar Month ago +1

    ThankYou Very Much EDMTDev :* :)

  • Angel Marie Salvador
    Angel Marie Salvador Month ago +1

    Hi Sir! Why I can't receive notification in the client side? Can you help me please?

    • EDMT Dev
      EDMT Dev  Month ago

      First , make sure your notification can be send success
      Second , make sure your app can retrieve notification by check FirebaseServiceMessaging :D

  • Carlo BERMUNDO
    Carlo BERMUNDO 2 months ago +1

    Hi again Sir. the order status is changing from both sides, the only problem is that I can't receive notifications from the client side of the app. i tried using app.v4.notifcation and just like in your tutorial which is app.v7.notifcation compat but the result is the same. Can you help me to fix this sir?

    • Carlo BERMUNDO
      Carlo BERMUNDO Month ago

      ​@EDMT Dev so should i implement FCM in my app sir? if so, will you please teach me how?

    • EDMT Dev
      EDMT Dev  Month ago

      @Carlo BERMUNDO FCM = Firebae Cloud Messaging

    • Carlo BERMUNDO
      Carlo BERMUNDO Month ago +1

      @EDMT Dev what is FCM sir?

    • EDMT Dev
      EDMT Dev  2 months ago

      Notification is send / receive by Firebase Cloud Messaging. Your problem need check FCM first , make sure it success to send / receive

  • Prathamesh Choukekar
    Prathamesh Choukekar 2 months ago +1

    @EDMT Dev also,can we make database tables of firebase? I mean,I am doing this as my university project and I am supposed to enter it's database tables too, but I dont find any tutorial regarding how to make tables...I mean,I know requests,food,categories,users are tables but what are the primary keys and foreign keys inside them?

    • EDMT Dev
      EDMT Dev  Month ago +1

      @Prathamesh Choukekar Hi , you can call me Eddy Lee ^^

    • Prathamesh Choukekar
      Prathamesh Choukekar 2 months ago +1

      @EDMT Dev and bro,what's ur real name? I wud like to give both your channel name,and real name in my project's acknowledgement.... You have been a great help

    • EDMT Dev
      EDMT Dev  2 months ago +1

      This is noSQL , my dear !

  • Igor Lerinc
    Igor Lerinc 2 months ago +1

    I checked manifestz file and it contains but still wont install app

    Failed to finalize session : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl550492207.tmp/base.apk (at Binary XML file line #29): does not have valid android:name

    • EDMT Dev
      EDMT Dev  2 months ago

      This is not error my dear , please show me more :D

  • Fayaz Rahman
    Fayaz Rahman 2 months ago +2

    @EDMT Dev Have you fixed the dark green screen error, sir? If you have, please tell me the solution. Really appreciate your work, thank you.

    • EDMT Dev
      EDMT Dev  2 months ago +1

      Please continue watch next part tutorial my dear ! All error is solve until end part :)

  • Rafael Cardoso
    Rafael Cardoso 3 months ago +1

    Gostaria de ver o código fonte do AndroidManifest.xml

    • Rafael Cardoso
      Rafael Cardoso 2 months ago

      because my aplication have a problem in activity Login

    • Rafael Cardoso
      Rafael Cardoso 2 months ago

      I would if possible take a look at the source code of AndroidManifest.xml

    • EDMT Dev
      EDMT Dev  2 months ago

      Please use English my bro :D

  • Jason 226
    Jason 226 3 months ago +1

    hi sir where to setup the delete dialog? since the dialog is 2 update...

    • EDMT Dev
      EDMT Dev  3 months ago

      Please watch my tutorial kindly my dear

  • hùng trần
    hùng trần 3 months ago +1

    do you have statistics management? thanks

    • EDMT Dev
      EDMT Dev  3 months ago

      I don't have , sorry my dear :D

  • Seihan Noriega
    Seihan Noriega 3 months ago

    Android resource linking failed
    C:\Users\Seihan\AndroidStudioProjects\Administracion\app\src\main\res\layout\activity_food_list.xml:11: error: 'match parent' is incompatible with attribute layout_width (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294].
    error: failed linking file resources.

    • Seihan Noriega
      Seihan Noriega 3 months ago

      I can soluted this problema with versión u r the Best sir :')

    • EDMT Dev
      EDMT Dev  3 months ago

      T_T Please check your code kindly , 'match_parent' not 'match parent'

    • Seihan Noriega
      Seihan Noriega 3 months ago

      i have problems whit recyclerview

    • Seihan Noriega
      Seihan Noriega 3 months ago

  • Seihan Noriega
    Seihan Noriega 3 months ago +1

    Plz i cnat see orders in admin app this is my code private void loadOrders(String phone) { Query getOrderByUser=requests.orderByChild("phone")
    .equalTo(phone);
    FirebaseRecyclerOptions orderOptions=new FirebaseRecyclerOptions.Builder()
    .setQuery(getOrderByUser,Request.class)
    .build();
    adapter=new FirebaseRecyclerAdapter(orderOptions) {
    @Override
    protected void onBindViewHolder(@NonNull OrderViewHolder viewholder, int position, @NonNull Request model) {
    viewholder.txtOrderId.setText(adapter.getRef(position).getKey());
    viewholder.txtOrderStatus.setText(Common.convertCodeToStatus(model.getStatus()));
    viewholder.txtOrderAddress.setText(model.getAddress());
    viewholder.txtOrderPhone.setText(model.getPhone());
    viewholder.setItemClickListener(new ItemClickListener() {
    @Override
    public void onClick(View view, int position, boolean isLongClick) {
    }
    });

    }

    • Fayaz Rahman
      Fayaz Rahman 2 months ago

      Hey man, I fixed it. just replace "requests.orderByChild("phone") .equalTo(phone);" with just "requests". Might have happened when you copy pasted this stuff. You don't want the requests of a particular phone to show up, you want them all. So here is the solution.

    • Fayaz Rahman
      Fayaz Rahman 2 months ago

      I got the same problem and I found the reason. But I can't solve it. The thing is that if you login with the same account on both client and server side, and make an order from client side, then it comes up on server side. It shows all of 'your' orders and not of anybody else's. Please put forward the solution if you have found it.

    • Seihan Noriega
      Seihan Noriega 3 months ago

      i copy and paste in client server to admin server and i cant see orders in admin server

    • Seihan Noriega
      Seihan Noriega 3 months ago

      Yes :/

    • EDMT Dev
      EDMT Dev  3 months ago

      Make sure in your Firebase , in Request Reference , you have Order data in there

  • Jason 226
    Jason 226 3 months ago +1

    hi sir in video 13:54 when i chick in to the order the app will close this is a locat said java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at com.example.user.androidbookstoreadmin.Common.Common.convertCodeToStatus(Common.java:15)
    at com.example.user.androidbookstoreadmin.OrderStatus$1.populateViewHolder(OrderStatus.java:65)
    at com.example.user.androidbookstoreadmin.OrderStatus$1.populateViewHolder(OrderStatus.java:60)

    • EDMT Dev
      EDMT Dev  3 months ago

      You have an null string at Common line 15 , please check again

  • Kenny Redosendo
    Kenny Redosendo 3 months ago +1

    Hi sir, is there any way I can sort order by status?
    UPDATE: I already got it in server side, but I'm having a problem with client side.

    • Kenny Redosendo
      Kenny Redosendo 3 months ago

      @EDMT Dev in Server side OrderStatus, I managed to sort out orders by status with this code:
      adapter = new private void loadOrders() {
      adapter = new FirebaseRecyclerAdapter(
      Request.class,
      R.layout.order_layout,
      OrderViewHolder.class,
      requests.orderByChild("status")
      )
      So, my problem is How can I also do this in Client side:
      private void loadOrders(String phone) {
      adapter = new FirebaseRecyclerAdapter(
      Request.class,
      R.layout.order_layout,
      OrderViewHolder.class,
      requests.orderByChild("phone").equalTo(phone)
      )

    • EDMT Dev
      EDMT Dev  3 months ago

      What problem with you ? :D

  • Work Shop
    Work Shop 3 months ago +1

    i am facing a problem
    D/Notification: allPendingIntents
    and no show notification

    • EDMT Dev
      EDMT Dev  3 months ago

      Please watch my tutorial and do step by step

  • Shaima AlGhamdi
    Shaima AlGhamdi 3 months ago

    Not allowed to start service Intent { cmp=com.example.assus.orderline/.Service.ListenOrder }: app is in background uid UidRecord{16c7a9b u0a85 TPSL idle procs:1 seq(0,0,0)}
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2913)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6669)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
    Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.example.assus.orderline/.Service.ListenOrder }: app is in background uid UidRecord{16c7a9b u0a85 TPSL idle procs:1 seq(0,0,0)}
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1577)
    at android.app.ContextImpl.startService(ContextImpl.java:1532)
    at android.content.ContextWrapper.startService(ContextWrapper.java:664)
    at com.example.assus.orderline.Home.onCreate(Home.java:94)

    Line 94: startService(service);

    • EDMT Dev
      EDMT Dev  3 months ago

      stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten
      See here , my dear :D

    • Shaima AlGhamdi
      Shaima AlGhamdi 3 months ago

      The notification is not showing in user side

  • Akshay Nair
    Akshay Nair 3 months ago +1

    How to show notification when new order is received by the restaurant

    • EDMT Dev
      EDMT Dev  3 months ago

      It's already design in this tutorial series , my dear :D

  • Acoustic Puneet
    Acoustic Puneet 3 months ago +1

    endAllActiveAnimators on 0x7bd803f100 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bf15beaa0

    i m getting this when clicked on update or delete button no drop down menu showing plz help sir

    • EDMT Dev
      EDMT Dev  3 months ago

      Please watch my tutorial step by step , my bro :D

  • Enriico chiiesa
    Enriico chiiesa 4 months ago

    Hi sir, I have a few question for you, and I need your help:
    1. Please create Sign out code in Order Management please, I can't create Sign out function. I've been trying to like part 6 and didn't work :(
    2. You don't create history activity for order food ?

    • Enriico chiiesa
      Enriico chiiesa 3 months ago

      I just need Sign out function for order management sir, which part you add sir ?

    • EDMT Dev
      EDMT Dev  3 months ago

      You just watch part 13 :) Please finish all part of this series and show me what is missing :D

  • prashant bhalekar
    prashant bhalekar 4 months ago +1

    every thing is perfect
    but when i see orders from client side
    it doesnt show my orders

    • prashant bhalekar
      prashant bhalekar 4 months ago

      @Enriico chiiesa ya it works thanks

    • Enriico chiiesa
      Enriico chiiesa 4 months ago +1

      Write this :
      if (getIntent().getExtras() == null)
      loadOrders(Common.currentUser.getPhone());
      maybe this can help you :)

    • prashant bhalekar
      prashant bhalekar 4 months ago

      @EDMT Dev when i am using if else condition which is at 35:10
      then this problem occur
      otherwise it show the order from client side
      but then it crash when click on notification bar

    • EDMT Dev
      EDMT Dev  4 months ago

      Check your app and make sure your app can rtrieve data from Firebase , and check your condition filter order

  • 鄭亦淳
    鄭亦淳 4 months ago +1

    why when i close the client
    I will don't get any notification???

    • Enriico chiiesa
      Enriico chiiesa 4 months ago

      don't close the client app bro. it will didn't show your notification :D

    • EDMT Dev
      EDMT Dev  4 months ago

      Show me your log cat when your app is crash , my dear

  • Abd Alkarim Albeik
    Abd Alkarim Albeik 4 months ago +1

    Question:
    why didn't you change rules in database in "MenuId" to "menuId" and "Name" to "name" ?

    • EDMT Dev
      EDMT Dev  4 months ago

      To compare with code my dear ! You can change in code instead of Firebase :)

  • Abd Alkarim Albeik
    Abd Alkarim Albeik 4 months ago +2

    my code work fine , but when i click notification and go to OrderStatus activity,
    i can't see any orders , i checked "userPhone" and it is right
    what is solve ????

    • Shaima AlGhamdi
      Shaima AlGhamdi 3 months ago +1

      @Abd Alkarim Albeik Thank u bro. Worked!

    • hen dika
      hen dika 3 months ago +1

      @Abd Alkarim Albeik thanks bro

    • Enriico chiiesa
      Enriico chiiesa 4 months ago +1

      thanks bro to fix it

    • Enriico chiiesa
      Enriico chiiesa 4 months ago

      this is work bro ? I can't see any orders too in my order food. do you fix it ?

    • Abd Alkarim Albeik
      Abd Alkarim Albeik 4 months ago +2

      @EDMT Dev thanks for your interest :
      i check the condition and i write like that :
      if (getIntent().getExtras() == null)
      loadOrders(Common.currentUser.getPhone());
      else
      loadOrders(getIntent().getStringExtra("userPhone"));
      and it work FINE ❤❤❤

  • ROHSHEAN V KAMARAJA
    ROHSHEAN V KAMARAJA 4 months ago +1

    Sir the device im using is api 28 but my android version for my application in android studio is android 7 do i need to do the notification channel to show notification in my device? and if yes which part of your video do u explain about it?

    • EDMT Dev
      EDMT Dev  4 months ago

      If you use Android from Oreo or higher , you should add Notification Channel ru-clip.net/video/CVI4CfdtbkA/video.html

  • MD Naimur Rahman
    MD Naimur Rahman 4 months ago +1

    I have problem in loading orders in server app... Whenever I click on order , app got crashed.. Here is my logcat... ( Your Home activity is my MainActivity )
    01-28 12:52:30.129 30543-30543/? E/Zygote: no v2
    01-28 12:52:33.001 30543-30543/com.sdmgapl1a0501.naimur.jpadmin E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.sdmgapl1a0501.naimur.jpadmin, PID: 30543
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sdmgapl1a0501.naimur.jpadmin/com.sdmgapl1a0501.naimur.jpadmin.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.sdmgapl1a0501.naimur.jpadmin.Model.User.getName()' on a null object reference
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
    at android.app.ActivityThread.-wrap17(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.sdmgapl1a0501.naimur.jpadmin.Model.User.getName()' on a null object reference
    at com.sdmgapl1a0501.naimur.jpadmin.MainActivity.onCreate(MainActivity.java:102)
    at android.app.Activity.performCreate(Activity.java:6904)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
    at android.app.ActivityThread.-wrap17(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:7325)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    • EDMT Dev
      EDMT Dev  4 months ago

      You're welcome my dear

    • MD Naimur Rahman
      MD Naimur Rahman 4 months ago +1

      @EDMT Dev Thank u so much.. My problem is solved now.. and Thank u very much for your all tutorials . All tutorials are very helpful for the students like us.

    • EDMT Dev
      EDMT Dev  4 months ago

      java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.sdmgapl1a0501.naimur.jpadmin.Model.User.getName()' on a null object reference
      =>
      You have an User object is null at MainActivity line 102 , make sure you have assign value for this view before

  • King arthur Prest
    King arthur Prest 4 months ago +1

    can i use normal spinner

  • King arthur Prest
    King arthur Prest 4 months ago +1

    implementation 'com.jaredrummler:material-spinner:1.1.0'
    Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.jaredrummler:material-spinner:1.1.0.
    Open File
    Show Details


    Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.jaredrummler:material-spinner:1.1.0.
    Open File
    Show Details
    it not working and i have upgrade it any solutions

    • King arthur Prest
      King arthur Prest 4 months ago

      it not working even if i start a totally new projexct can i use another spinner

    • King arthur Prest
      King arthur Prest 4 months ago

      @EDMT Dev tried that it also doesnt work

    • EDMT Dev
      EDMT Dev  4 months ago

      implementation 'com.jaredrummler:material-spinner:1.3.1'

  • arma dahackerz
    arma dahackerz 5 months ago +1

    NOTIFICATION IS NOT SHOW AT CLIENT APP
    for someone who have problem why notification is not show at clinet app, this because : NotificationCompat.Builder deprecated in Android O
    you may check at showNotification in your ListOrder class
    and follow instruction from this website, change your code.
    stackoverflow.com/questions/45462666/notificationcompat-builder-deprecated-in-android-o

    • arma dahackerz
      arma dahackerz 5 months ago

      thanks for reply mr.@EDMT Dev but part 34 is far away from me, right now, i'm still at tutorial Part 15 (Check Internet Connection and Delete Cart's item) :D
      anyway thanks sir

    • EDMT Dev
      EDMT Dev  5 months ago

      ru-clip.net/video/mRswwMAwRoI/video.html&lc=UgwjkDUCIycIswFYnll4AaABAg
      :D Part 34 already fix this problem my dear :D

  • Aditya Jaiswal
    Aditya Jaiswal 5 months ago +2

    Hlo edmtdev sir notification client side pr show nhi ho raha h please help me

    • Evan Chatterjee
      Evan Chatterjee 4 months ago +1

      EDMT Dev Sir he is saying that notification is not appearing in client side please help

    • EDMT Dev
      EDMT Dev  5 months ago +1

      Please use English my dear T_T

  • Aditya Jaiswal
    Aditya Jaiswal 5 months ago +1

    Hlo sir food order ke 13 pe part me Jo notification jaa raha h server side to client side .Maine same prosses kiya h but notification nhi aaraha h please help me

    • EDMT Dev
      EDMT Dev  5 months ago

      Please check your client side - FirebaseMessagingService and make sure it work :) Try debug and make sure when server send notification , this event is fired

    • Aditya Jaiswal
      Aditya Jaiswal 5 months ago

      Please help me sir

    • Aditya Jaiswal
      Aditya Jaiswal 5 months ago +1

      The notification on the client side is not being shown. The messages that are being sent from the server side And all the working applications are not just a notification show

    • EDMT Dev
      EDMT Dev  5 months ago

      English , please T_T

  • ZHEN WEI
    ZHEN WEI 5 months ago +1

    Dear sir, I have some problems in both sides. Actually I finished notification in your video (Notification fixes).So I can receive message from both of them. But when I check my app,I found :
    1. In client,my order page show nothing but order can be updated in firebase.
    2. In my server, my order page only show 1 order details even I use recyclerView.
    Hope you can tell me where are problems.
    Thanks.

    • EDMT Dev
      EDMT Dev  5 months ago

      1. Make sure you have entered right path for Firebase Database Refenrences to retrieve data from Order table
      2. Order detail only show 1 detail of 1 order

  • Java Pr
    Java Pr 5 months ago +1

    when i open the client apps and change the status order the notification is working fine, but when i close the apps the notification id not working, anybody can help me????
    ListenOrder.java
    public class ListenOrder extends Service implements ChildEventListener{

    FirebaseDatabase database;
    DatabaseReference requests;

    public ListenOrder() {
    }

    @Override
    public IBinder onBind(Intent intent) {
    return null;
    }

    @Override
    public void onCreate() {
    super.onCreate();
    database = FirebaseDatabase.getInstance();
    requests = database.getReference("Requests");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
    requests.addChildEventListener(this);
    return super.onStartCommand(intent, flags, startId);

    }

    @Override
    public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {

    }

    @Override
    public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
    Request request = dataSnapshot.getValue(Request.class);
    assert request != null;
    showNotification(dataSnapshot.getKey(),request);
    }

    private void showNotification(String key, Request request) {
    Intent intent = new Intent(getBaseContext(), OrderStatus.class);
    intent.putExtra("userPhone",request.getPhone());
    PendingIntent contentIntent = PendingIntent.getActivity(getBaseContext(),0,intent,PendingIntent.FLAG_UPDATE_CURRENT);

    NotificationCompat.Builder builder =new NotificationCompat.Builder(getBaseContext());

    builder.setAutoCancel(true)
    .setDefaults(Notification.DEFAULT_ALL)
    .setWhen(System.currentTimeMillis())
    .setTicker("EMDTDev")
    .setContentInfo("Your Order Was Updated")
    .setContentText("Order #" + key+ " was updated status to "+ Common.convertCodeToStatus(request.getStatus()))
    .setContentIntent(contentIntent)
    .setContentInfo("Info")
    .setSmallIcon(R.mipmap.ic_launcher);

    NotificationManager notificationManager=(NotificationManager)getBaseContext().getSystemService(Context.NOTIFICATION_SERVICE);
    assert notificationManager != null;
    notificationManager.notify(1,builder.build());
    }

    @Override
    public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {

    }

    @Override
    public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {

    }

    @Override
    public void onCancelled(@NonNull DatabaseError databaseError) {

    }
    }
    Home.Java but only in part
    public class Home extends AppCompatActivity
    implements NavigationView.OnNavigationItemSelectedListener {

    FirebaseDatabase database;
    DatabaseReference category;
    TextView txtFullName;
    RecyclerView recycler_menu;
    RecyclerView.LayoutManager layoutManager;
    FirebaseRecyclerAdapter adapter;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_home);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    toolbar.setTitle("Menu");
    setSupportActionBar(toolbar);

    //Init Database
    database = FirebaseDatabase.getInstance();
    category = database.getReference("Category");


    Paper.init(this);

    FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
    Intent intent = new Intent(Home.this,Cart.class);
    startActivity(intent);
    }
    });

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
    this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.addDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);

    //Set Nama User
    View headerView = navigationView.getHeaderView(0);
    txtFullName = headerView.findViewById(R.id.txtFullName);
    txtFullName.setText(Common.currentUser.getName());

    //Load Menu
    recycler_menu = findViewById(R.id.recycler_menu);
    recycler_menu.setHasFixedSize(true);
    layoutManager = new LinearLayoutManager(this);
    recycler_menu.setLayoutManager(layoutManager);


    if (Common.isConnectedToInternet(this))
    loadMenu();
    else{
    Toast.makeText(this, "Please Check Your Internet Connection", Toast.LENGTH_SHORT).show();
    return;
    }

    Intent service = new Intent(Home.this, ListenOrder.class);
    startService(service);

    }

    • EDMT Dev
      EDMT Dev  5 months ago

      IF you want to retrieve notification when app is closed , you need use 'data payload' to sent :) Not send by Title and Content

  • orange FOX
    orange FOX 5 months ago +1

    hi edmt! merry christmas!
    my problem is when i tap the notification, orders are displayed , but in client side , orders are not displayed

    • EDMT Dev
      EDMT Dev  5 months ago

      Hi , that mean your notification in Server side is good :D So just do samething with your Client :D

  • ZHEN WEI
    ZHEN WEI 5 months ago +1

    Thanks for sharing,sir. But I have a problem about spinner in server side and I try to figure out the problems one day. But I failed. The problem shown in logcat :
    Process: com.example.canteenstaffserver, PID: 17677
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.jaredrummler.materialspinner.MaterialSpinner.setItems(java.lang.Object[])' on a null object reference
    I always try to compare with your code but I am think they are same. So please help me! Thanks!

    • Muhammad Ashraf
      Muhammad Ashraf 3 months ago

      spinner = (MaterialSpinner)view.findViewById(R.id.statusSpinner);

    • EDMT Dev
      EDMT Dev  5 months ago

      You have an MaterialSpinner is null , please make sure you have call findViewById for it before

  • a2s city
    a2s city 5 months ago +1

    if you got error while run "META-INF/proguard/androidx-annotations.pro" add android{ packagingOptions { exclude 'META-INF/proguard/androidx-annotations.pro' }} in build.gradle to solve

    • EDMT Dev
      EDMT Dev  5 months ago

      You're welcome my bro

  • Danish riaz
    Danish riaz 6 months ago +1

    35:25 when i do this
    if (getIntent() == null)
    loadOrders(Common.currentUser.getPhone());
    else
    loadOrders(getIntent().getStringExtra("userPhone"));
    then in customer panel customer can not check their order status.

    • Danish riaz
      Danish riaz 6 months ago

      @EDMT Dev Without
      if (getIntent() == null)

      else
      loadOrders(getIntent().getStringExtra("userPhone"));
      OrderStatus show to the customer...why?
      i store order by user phone

    • EDMT Dev
      EDMT Dev  6 months ago

      Make sure in your Firebase , you store order status by userPhone my dear :)

  • TheSTUDIOKONDI
    TheSTUDIOKONDI 6 months ago +4

    If your list of foods doesn't shows up on client side make sure to change MenuId to menuId because the names of fields in db has changed :)

    • Hamza Maqsood
      Hamza Maqsood 2 months ago

      @orange FOX did you fix this ?

    • Enriico chiiesa
      Enriico chiiesa 4 months ago

      which part is it bro ? i can't find it

    • orange FOX
      orange FOX 5 months ago +1

      @EDMT Dev hi edmt! merry christmas!
      my problem is when i tap the notification, orders are displayed , but in client side , orders are not displayed

    • EDMT Dev
      EDMT Dev  6 months ago

      You're welcome my bro :D

  • Kapil jain
    Kapil jain 6 months ago +1

    Client side service ListenOrder error input.putExtra("userPhone",request.getPhone); getPhone is red color error

    • Kapil jain
      Kapil jain 6 months ago

      i know but not solve this pblm

    • Kapil jain
      Kapil jain 6 months ago

      @EDMT Dev please sir send full code getPhone

    • EDMT Dev
      EDMT Dev  6 months ago

      T_T getPhone you missing () => should be : getPhone() => This is basic syntax of Java , you shouldn't forget it !

    • Kapil jain
      Kapil jain 6 months ago +1

      public class Request {
      private String phone;
      private String name;
      private String address;
      private String total;
      private String status;
      private List foods; //List of food order
      public Request() {
      }
      public Request(String phone, String name, String address, String total, List foods) {
      this.phone = phone;
      this.name = name;
      this.address = address;
      this.total = total;
      this.foods = foods;
      this.status = "0"; //Default is 0 , 0: Placed , 1: Shipping , 2: Shipped
      }
      public String getStatus() {
      return status;
      }
      public void setStatus(String status) {
      this.status = status;
      }
      public String getPhone() {
      return phone;
      }
      public void setPhone(String phone) {
      this.phone = phone;
      }
      public String getName() {
      return name;
      }
      public void setName(String name) {
      this.name = name;
      }
      public String getAddress() {
      return address;
      }
      public void setAddress(String address) {
      this.address = address;
      }
      public String getTotal() {
      return total;
      }
      public void setTotal(String total) {
      this.total = total;
      }
      public List getFoods() {
      return foods;
      }
      public void setFoods(List foods) {
      this.foods = foods;
      }
      }

  • rahul jha
    rahul jha 6 months ago +1

    Sir you make notification manager in client side or server side.

    • EDMT Dev
      EDMT Dev  6 months ago +2

      I made both Client and Server side are have same system : send / receive notification

  • Kenneth M.
    Kenneth M. 6 months ago +1

    Hellou teacher!, i have a question. when are we going to be able to see what the order is? (see the foodlist of the order), because till now i can change status but i dont even know what am i deliverying hahahha
    Thank you alot teacher!

    • EDMT Dev
      EDMT Dev  6 months ago +1

      Continue watch next part my dear , i don't remember exactly :D

    • Adrian Loh
      Adrian Loh 6 months ago +1

      EDMT Dev which part is it sir? Can’t find

    • EDMT Dev
      EDMT Dev  6 months ago +1

      Continue watch next part my dear , i have already made features see order detail from Server app :D

  • rahul jha
    rahul jha 6 months ago +1

    Sir i don't get any notification

    • arma dahackerz
      arma dahackerz 5 months ago

      NotificationCompat.Builder deprecated in Android O
      you may check at showNotification in your ListOrder class
      and follow instruction from this website, change your code.
      stackoverflow.com/questions/45462666/notificationcompat-builder-deprecated-in-android-o

    • EDMT Dev
      EDMT Dev  6 months ago +1

      Try watch my tutorial step by step my dear :D

  • Meet Mehta
    Meet Mehta 7 months ago +1

    Can i get this whole project .. so i can check it out what things are missing in my project...

    • EDMT Dev
      EDMT Dev  7 months ago

      Sorry my dear :) This project can't be share source :D You can write it by yourself

  • Sham Joe
    Sham Joe 7 months ago +1

    Hello sir. I need help.im having a problem which my client orders wont show with food list. But my server shows everything. Im run it theres no error and the part 13 has done perfectly

    • EDMT Dev
      EDMT Dev  7 months ago

      Hi , check your Order ADapter and make sure it have Food detail here :D Try to debug

  • Codder IT
    Codder IT 7 months ago +1

    Hello , i have a problem when i send notification to client side , i'm not have a notification in client side

    • arma dahackerz
      arma dahackerz 5 months ago

      NotificationCompat.Builder deprecated in Android O
      you may check at showNotification in your ListOrder class
      and follow instruction from this website, change your code.
      stackoverflow.com/questions/45462666/notificationcompat-builder-deprecated-in-android-o

    • EDMT Dev
      EDMT Dev  7 months ago

      Hi , please watch my tutorial step by step my dear ! If you can't receive notification in client side , try check your send notification code and make sure notificaction has been sended

  • jay mangal Singh
    jay mangal Singh 7 months ago +1

    i haven't received any notification on client app,but order is updated,when we see in order list.
    Please Help me sir

    • arma dahackerz
      arma dahackerz 5 months ago

      NotificationCompat.Builder deprecated in Android O
      you may check at showNotification in your ListOrder class
      and follow instruction from this website, change your code.
      stackoverflow.com/questions/45462666/notificationcompat-builder-deprecated-in-android-o

    • EDMT Dev
      EDMT Dev  7 months ago

      That mean your Firebase Messaging system on Cllient app have problem , check it please

  • Naveen Raj
    Naveen Raj 7 months ago +1

    Hi Sir,
    I am getting the below error while running the app
    11-03 18:09:05.380 1136-6354/? E/NuPlayerDecoder: Failed to open AudioSink on format change for OMX.google.vorbis.decoder (err=-19)
    11-03 18:09:05.381 1136-6351/? E/NuPlayer: received error(0xffffffed) from audio decoder, flushing(0), now shutting down
    11-03 18:09:05.382 2871-2888/com.android.systemui E/MediaPlayer: error (1, -19)
    11-03 18:09:05.382 2871-6349/com.android.systemui E/MediaPlayer: Error (1,-19)

    Can you please help me.
    Thanks inadvance

    • EDMT Dev
      EDMT Dev  6 months ago

      No my dear , don't worry about deprecated messaage , if you can't receive notification , please check your code where you send and receive notification

    • Naveen Raj
      Naveen Raj 6 months ago +1

      @EDMT Dev Hi sir,
      For me it is showing depreciation for "NotificationCompact Builder"
      Is because of the above reason ,I am not getting notifications?
      Please help me.
      Thanks,

    • EDMT Dev
      EDMT Dev  7 months ago

      This is useless logcat and i can make sure with you, this is not error

    • Naveen Raj
      Naveen Raj 7 months ago

      Thanks for your quick reply sir....
      But sir,
      I am not getting any other errors and I am not able to receive notifications also
      What to do sir?
      Thanks.

    • EDMT Dev
      EDMT Dev  7 months ago

      This is useless logcat my dear , please show me red log cat

  • mohan dattu
    mohan dattu 7 months ago +2

    i am facing a problem in the server side whenver i long press the order i am getting the update and delete ,but when i am clicking the update its not showing the orderstatus dialogue .

    • EDMT Dev
      EDMT Dev  7 months ago

      :D Don't matter my dear , just watch new tutorial , i will not use long press method on next tutorial

  • Jinang Gandhi
    Jinang Gandhi 8 months ago +1

    Can somebody help, In client side, whenI go to Orders I get a list of orders and when I click on any one of then the app crashes
    This is the logcat: (p.s. The app's name is anna)
    10-18 19:08:18.720 7042-7042/com.example.anna E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.anna, PID: 7042
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.anna.Interface.ItemClickListener.onClick(android.view.View, int, boolean)' on a null object reference
    at com.example.anna.ViewHolder.OrderViewHolder.onClick(OrderViewHolder.java:32)
    at android.view.View.performClick(View.java:6297)
    at android.view.View$PerformClick.run(View.java:24797)
    at android.os.Handler.handleCallback(Handler.java:790)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6626)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)

    • Jinang Gandhi
      Jinang Gandhi 7 months ago

      Okay will do that. Thanks a lot!

    • EDMT Dev
      EDMT Dev  7 months ago +1

      You forgot to implement itemClickListener in your Adapter onBindViewHolder() , that why when you click on item , you will got crash

  • Manh Tuong Ta
    Manh Tuong Ta 8 months ago +1

    Hi man, just wanna say thank you for the series it helps me a lot !
    BTW, I got a problem where the context menu does not show up when I click on the item. I have checked the video many times but could not find the answer (No error logcat, click on the order and it show ViewPostIme pointer 0 ). Can you tell me how I can fix that problem?
    thanks a lot

    • EDMT Dev
      EDMT Dev  8 months ago +1

      Skip and continue watch next tutorial , i will remove Context Menu in next video
      P/s : If you still want to show context menu like tutorial , check your ViewHolder in Adapter and make sure you register context menu there !

  • pradosh chakra
    pradosh chakra 8 months ago +1

    When i clicked on order in menu section it crashed. Plz help me anyone. I always beg help but no one would help me. Humanity is not alive. Plz help me anyone. Plz it was part of my project

    • pradosh chakra
      pradosh chakra 8 months ago

      @Osama Mohammed plz sir give me your number.

    • pradosh chakra
      pradosh chakra 8 months ago

      Plz sir help me. Give me ur whatsapp no

    • pradosh chakra
      pradosh chakra 8 months ago

      @Osama Mohammed sir i have no Skype. Plz air teamview me

    • Osama Mohammed
      Osama Mohammed 8 months ago

      give me your skype account @pradosh chakra

    • pradosh chakra
      pradosh chakra 8 months ago

      Sir plz help me. Plz give me ur number or teamview me. Plz sir

  • Abdul Rehman
    Abdul Rehman 8 months ago +1

    sir i am at part13 now but in client app nav draw clicking on orders i donot see my orders please help me further on updating orders i recieve notifcations again and again please help me out

    • Abdul Rehman
      Abdul Rehman 8 months ago

      ok sir Thanks but in my client or server app images are not showing please can u help

    • EDMT Dev
      EDMT Dev  8 months ago +1

      Try watch my tutorial step by step my dear ! Make sure your app can retrieve order from Request table

  • Osama Othman
    Osama Othman 8 months ago +1

    Hello Sir
    What is the difference between on my way and shipping?

  • jayanta adhikary
    jayanta adhikary 8 months ago +1

    You are great man

    • jayanta adhikary
      jayanta adhikary 8 months ago

      could you able to make a video how to backup these data into mysql. So that the admin can get the report of every transaction as he wanted to see.

    • EDMT Dev
      EDMT Dev  8 months ago

      You're welcome my bro

  • mohan dattu
    mohan dattu 8 months ago +2

    whenever i click the update button the spinner is not working in the server side , i had cross checked the code but still the result is the same .Can anyone say how to resolve this issue and also whenever i press the orders the app crashes in the client side, is there any solution to this in further videos , if not then anyone say how to fix that

    • MHDZ. MHDZ.
      MHDZ. MHDZ. 4 months ago

      mohan dattu
      , Could you solve it?

    • EDMT Dev
      EDMT Dev  8 months ago +1

      So debug your Spinner code my dear

    • mohan dattu
      mohan dattu 8 months ago +1

      D/EGL_emulation: eglMakeCurrent: 0xdf603780: ver 2 0 (tinfo 0xe748f8d0) thsi what i am getting in log cat every time i press the update button thats it no spinner showing up.

    • mohan dattu
      mohan dattu 8 months ago +1

      EDMT Dev specifically i am not getting any error message in the log cat but the spinner is not working i am just getting the dialog box update and when i click it,it doesn't show the spinner to select the 3 options,so is there any dependency problem i.e any new updates or what is the reason i am unable to understand

    • EDMT Dev
      EDMT Dev  8 months ago

      Show me your log cat when your app crash
      P/s : If you receive result not same as tutorial , please wattch my tutorial again

  • Zyad Elkhadir
    Zyad Elkhadir 8 months ago +1

    i got java.lang.NullPointerException in the function onContextItemSelected() in the line (if (item.getIntent().equals("update")))

    • Zyad Elkhadir
      Zyad Elkhadir 8 months ago

      @EDMT Dev it should be item.getTitle() ☺

    • EDMT Dev
      EDMT Dev  8 months ago

      So maybe your item.getIntent() is null my dear

  • Majid Ali
    Majid Ali 9 months ago +1

    'com.jaredrummler:material-spinner:1.1.0' i cannot add .. pls help

    • EDMT Dev
      EDMT Dev  9 months ago

      implementation'com.jaredrummler:material-spinner:1.2.5'

  • Kang Kung
    Kang Kung 9 months ago +1

    where i can find ItemClickListener class ?

    • EDMT Dev
      EDMT Dev  9 months ago

      This is an interface my dear :) If you watch my tutorial step by step

  • Leehom Lam
    Leehom Lam 9 months ago +3

    I can't receive the notification, it prompt "Developer warning for package Failed to post notification on channel "null" See log for more details." Please let me know what happen and how to fix it, thanks!

    • EDMT Dev
      EDMT Dev  9 months ago +1

      To send notification on Device use API level 28 , you need implement Notification Channel , in this series i have tutorial about that

  • Code SA
    Code SA 9 months ago +2

    Can anybody help me ...
    When foo debug on my g3 bike my application gets really slow.
    But if I debug the z2 bike the app will not crash.
    Someone with the same problem?

  • Arturo Filio Villa
    Arturo Filio Villa 9 months ago +1

    Hi, I have checked the code over an over again and My "showNotification()" method in ListenOrder.java file doesn't send the notification. I also see displayed in the "Toast" message the following: 'Failed to post notification on channel null'. Everything else is working perfectly though, I just want to know if there is something I have to fix to the 'showNotification()' method. Awesome videos as always!

    • Arturo Filio Villa
      Arturo Filio Villa 9 months ago

      @EDMT Dev ok, thank you for the reply and ok I will keep on watching thanks for the help :)

    • EDMT Dev
      EDMT Dev  9 months ago +1

      Continue watch series because you will see part update notification for Eat It project

    • Arturo Filio Villa
      Arturo Filio Villa 9 months ago +1

      Ok, I saw the video and I understand what's happening, when I am trying to implement it to the project, I can't get to display the notification because I am probably not setting it up right. I have no errors though, and I understand that for API level 26 or above I have to implement NotificationChannels.

    • EDMT Dev
      EDMT Dev  9 months ago +1

      Becuz you show notification from Android 8.0 , so you need improve Notification Channels ru-clip.net/video/CVI4CfdtbkA/video.html
      I also have part for this problem , please see in my playlist

  • karan srisataworn
    karan srisataworn 9 months ago +1

    Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.bambam.perfume1/com.example.bambam.perfume1.Service.ListenOrder}; have you declared this activity in your AndroidManifest.xml?
    Error Home.java

    Intent service = new Intent(Home.this, ListenOrder.class);
    startActivity(service);

    • Sherif Hisham
      Sherif Hisham 3 months ago

      startService(service); not startActivity(service);

    • EDMT Dev
      EDMT Dev  9 months ago

      :) You forgot declare activity in Manifest file :D Please check it

  • karan srisataworn
    karan srisataworn 9 months ago

    //Register Service
    Intent service = new Intent(Home.this, ListenOrder.class);
    startActivity(service);
    SignIn Cash please Help me

  • Andri Rizki
    Andri Rizki 10 months ago +1

    hello sir, if I enter an order with a different phone in the client app, why i can't display phone number, (phone = null) in the order server form?

    • Andri Rizki
      Andri Rizki 10 months ago

      Problem solved, thanks guru !!

    • EDMT Dev
      EDMT Dev  10 months ago

      :-? You need login first , and after login need get phone -> assign to global variable

  • WWE Reality
    WWE Reality 10 months ago +1

    Sir i'm facing problem with Common.java
    logcat Error --> E/UncaughtException: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at com.lol.ecommerceserversidemaster.Common.Common.convertCodeToStatus(Common.java:20)
    at com.lol.ecommerceserversidemaster.OrderStatus$1.populateViewHolder(OrderStatus.java:54)
    at com.lol.ecommerceserversidemaster.OrderStatus$1.populateViewHolder(OrderStatus.java:50)
    at com.firebase.ui.database.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:184)
    at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6482)
    at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6515)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    public static String convertCodeToStatus(String code)//Error in this method
    {
    if (code.equals("0"))
    return "Order Placed";
    else if (code.equals("1"))
    return "Ready to Ship";
    else
    return "Out For Delivery";
    }
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Sir please help me
    i'm watching this series 4th time.

    • WWE Reality
      WWE Reality 10 months ago

      @EDMT Dev yeah but where I can declare?

    • EDMT Dev
      EDMT Dev  10 months ago +1

      You have null object at Common line 20
      I think your "string code" is null , please check it !

  • subsoho
    subsoho 10 months ago +1

    I had this error:
    E / NotificationService: No Channel found for pkg = com.example.usuari.androidatit, channelId = null, id = 1, tag = null, opPkg = com.example.usuari.androidatit, callingUid = 10080, userId = 0, incomingUserId = 0, notificationUid = 10080, notification = Notification (channel = null pri = 0 contentView = null vibrate = default sound = default tick defaults = 0xffffffff flags = 0x11 color = 0x00000000 vis = PRIVATE)
    as it says here:
    developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels
    "Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear. By categorizing notifications into channels, users can disable specific notification channels for your app (instead of disabling all your notifications), and users can control the visual and auditory options for each channel-all from the Android system settings (figure 11). Users can also long-press a notification to change behaviors for the associated channel. "
    This app is lvl 26, so the error occurs ...
    my solution has been modify the client:
    minSdkVersion 26
    and :
    private void showNotification (String key, Request request) {
    Intent intent = new Intent (getBaseContext (), OrderStatus.class);
    intent.putExtra ("userPhone", request.getPhone ());
    PendingIntent contentIntent = PendingIntent.getActivity (getBaseContext (), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
    // The id of the channel.
    String CHANNEL_ID = "my_channel_01";
    CharSequence name = "my_channel";
    String Description = "This is my channel";
    int importance = NotificationManager.IMPORTANCE_HIGH;
    NotificationChannel mChannel = new NotificationChannel (CHANNEL_ID, name, importance);
    mChannel.setDescription (Description);
    mChannel.enableLights (true);
    mChannel.setLightColor (Color.RED);
    mChannel.enableVibration (true);
    mChannel.setVibrationPattern (new long [] {100, 200, 300, 400, 500, 400, 300, 200, 400});
    mChannel.setShowBadge (false);

    NotificationCompat.Builder builder = new NotificationCompat.Builder (getBaseContext ());
    builder.setAutoCancel (true)
    .setDefaults (Notification.DEFAULT_ALL)
    .setWhen (System.currentTimeMillis ())
    .setTicker ("EDMTDev")
    .setContentInfo ("Your order was updated")
    .setContentText ("Order #" + key + "was updated status to" + Common.convertCodeToStatus (request.getStatus ()))
    .setContentIntent (contentIntent)
    .setContentInfo ("Info")
    .setChannelId (CHANNEL_ID)
    .setSmallIcon (R.mipmap.ic_launcher);

    NotificationManager notificationManager = (NotificationManager) getBaseContext (). GetSystemService (Context.NOTIFICATION_SERVICE);
    notificationManager.createNotificationChannel (mChannel); //
    notificationManager.notify (1, builder.build ());
    }
    I do not know why I'm the only one who has this error.
    I hope this can help ...

    • subsoho
      subsoho 10 months ago

      is it in this video ? am sry but still can't find where is it...

    • EDMT Dev
      EDMT Dev  10 months ago

      Please watch my tutorial of carefully and do step by step. Declare your Channel id with your appp package :(

  • Vincent Tieng
    Vincent Tieng 10 months ago +1

    Seems like there are a little problem, at 33:32, we have "Update" twice instead of "DELETE" (option).
    Anyone know how to correct ?

    • EDMT Dev
      EDMT Dev  10 months ago

      Don't worry , just follow my tutorial because in newer part , you will learn how to swipe to delete item :D

  • Shruti Sharma
    Shruti Sharma 10 months ago +1

    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at com.example.sharma.digimenuserver.Common.Common.convertCodeToStatus(Common.java:16)
    at com.example.sharma.digimenuserver.OrderStatus$1.onBindViewHolder(OrderStatus.java:75)
    at com.example.sharma.digimenuserver.OrderStatus$1.onBindViewHolder(OrderStatus.java:61) getting this error on Server side

    • Shruti Sharma
      Shruti Sharma 10 months ago

      it is giving error here
      if (status.equals("0"))

    • EDMT Dev
      EDMT Dev  10 months ago

      You have String variable is null at Common line 16

  • Durga gallery
    Durga gallery 11 months ago +1

    hello bro..
    i have completed this tutorial and working fine on server side but when i tried to open food list in client side it is showing only search bar at the top and the remaining screen is empty... pls help bro.. here is the logcat
    07-12 20:14:05.626 13440-13445/com.example.vamsireddys.foodapp I/zygote: Do full code cache collection, code=248KB, data=182KB
    07-12 20:14:05.631 13440-13445/com.example.vamsireddys.foodapp I/zygote: After code cache collection, code=248KB, data=137KB
    07-12 20:14:05.829 13440-13487/com.example.vamsireddys.foodapp V/FA: Connection attempt already in progress
    07-12 20:14:05.836 13440-13440/com.example.vamsireddys.foodapp I/Choreographer: Skipped 112 frames! The application may be doing too much work on its main thread.
    07-12 20:14:05.880 13440-13487/com.example.vamsireddys.foodapp D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=SignIn, firebase_previous_id(_pi)=9198950853471853216, firebase_screen_class(_sc)=Home, firebase_screen_id(_si)=9198950853471853217}]
    07-12 20:14:05.894 13440-13445/com.example.vamsireddys.foodapp I/zygote: Do partial code cache collection, code=249KB, data=139KB
    07-12 20:14:05.902 13440-13445/com.example.vamsireddys.foodapp I/zygote: After code cache collection, code=249KB, data=139KB
    Increasing code cache capacity to 1024KB
    07-12 20:14:06.041 13440-13487/com.example.vamsireddys.foodapp V/FA: Connection attempt already in progress
    07-12 20:14:06.047 13440-13487/com.example.vamsireddys.foodapp V/FA: Activity resumed, time: 13234480
    07-12 20:14:06.457 13440-13445/com.example.vamsireddys.foodapp I/zygote: JIT allocated 71KB for compiled code of void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int)
    07-12 20:14:06.458 13440-13445/com.example.vamsireddys.foodapp I/zygote: Compiler allocated 4MB to compile void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int)
    07-12 20:14:06.461 13440-13440/com.example.vamsireddys.foodapp I/Choreographer: Skipped 35 frames! The application may be doing too much work on its main thread.
    07-12 20:14:06.461 13440-13487/com.example.vamsireddys.foodapp D/FA: Connected to remote service
    07-12 20:14:06.462 13440-13487/com.example.vamsireddys.foodapp V/FA: Processing queued up service tasks: 4
    07-12 20:14:06.494 13440-13470/com.example.vamsireddys.foodapp D/EGL_emulation: eglMakeCurrent: 0xe5b65100: ver 2 0 (tinfo 0xddc2c640)
    07-12 20:14:06.976 13440-13440/com.example.vamsireddys.foodapp W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
    07-12 20:14:11.827 13440-13487/com.example.vamsireddys.foodapp V/FA: Inactivity, disconnecting from the service
    07-12 20:14:11.922 13440-13487/com.example.vamsireddys.foodapp V/FA: Recording user engagement, ms: 6112
    07-12 20:14:11.923 13440-13487/com.example.vamsireddys.foodapp V/FA: Connecting to remote service
    07-12 20:14:11.968 13440-13487/com.example.vamsireddys.foodapp V/FA: Activity paused, time: 13240589
    07-12 20:14:12.096 13440-13440/com.example.vamsireddys.foodapp V/FA: onActivityCreated
    07-12 20:14:12.268 13440-13487/com.example.vamsireddys.foodapp D/FA: Logging event (FE): user_engagement(_e), Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=6112, firebase_screen_class(_sc)=Home, firebase_screen_id(_si)=9198950853471853217}]
    07-12 20:14:12.469 13440-13440/com.example.vamsireddys.foodapp D/Tag: 01
    07-12 20:14:12.477 13440-13487/com.example.vamsireddys.foodapp V/FA: Connection attempt already in progress
    07-12 20:14:12.581 13440-13487/com.example.vamsireddys.foodapp V/FA: Connection attempt already in progress
    Activity resumed, time: 13241256
    07-12 20:14:12.637 13440-13487/com.example.vamsireddys.foodapp D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=Home, firebase_previous_id(_pi)=9198950853471853217, firebase_screen_class(_sc)=FoodList, firebase_screen_id(_si)=9198950853471853218}]
    07-12 20:14:13.047 13440-13487/com.example.vamsireddys.foodapp V/FA: Connection attempt already in progress
    07-12 20:14:13.189 13440-13487/com.example.vamsireddys.foodapp D/FA: Connected to remote service
    07-12 20:14:13.190 13440-13487/com.example.vamsireddys.foodapp V/FA: Processing queued up service tasks: 4
    07-12 20:14:13.206 13440-13470/com.example.vamsireddys.foodapp D/EGL_emulation: eglMakeCurrent: 0xe5b65100: ver 2 0 (tinfo 0xddc2c640)
    07-12 20:14:13.248 13440-13470/com.example.vamsireddys.foodapp D/EGL_emulation: eglMakeCurrent: 0xe5b65100: ver 2 0 (tinfo 0xddc2c640)
    07-12 20:14:13.372 13440-13470/com.example.vamsireddys.foodapp D/EGL_emulation: eglMakeCurrent: 0xe5b65100: ver 2 0 (tinfo 0xddc2c640)
    07-12 20:14:18.528 13440-13487/com.example.vamsireddys.foodapp V/FA: Inactivity, disconnecting from the service

    • EDMT Dev
      EDMT Dev  11 months ago

      Show me only red logcat , this is useless logcat my bro

  • fajar faisaldy
    fajar faisaldy 11 months ago +1

    how can the server know the details of the food ordered?

    • EDMT Dev
      EDMT Dev  11 months ago

      In each request we will include all order detail (food detail)

  • Diego Theman
    Diego Theman 11 months ago +1

    There is no function for deleting order sir ? I've fully watch your video but there is no part for the delete option. There are only two update button.

    • EDMT Dev
      EDMT Dev  11 months ago

      Okay i will try to add , sorry about that :D

  • Diego Theman
    Diego Theman 11 months ago +1

    I have one question. Where the symbol variable listOrders came from ? I have an error cannot find symbol variable listOrders

    • EDMT Dev
      EDMT Dev  11 months ago

      Please watch my tutorial kindly and do step by step. It is RecyclerView from XML layout

  • Renato Sousa
    Renato Sousa Year ago +1

    Hello teacher, It would be interesting to create a configuration with the possibility of enabling or disabling the view of the client-side category. because it may happen that the category is finished.

    • EDMT Dev
      EDMT Dev  Year ago +1

      ^^Thank you for your idea

  • Arjun Adhikari
    Arjun Adhikari Year ago +1

    Only staff members orders are show in server side app ...help??

    • EDMT Dev
      EDMT Dev  Year ago

      No , all order can be show in Server app

  • Alex Pacioaga
    Alex Pacioaga Year ago +1

    Everything working well. Can you tell me when you used putExtra("userPhone") ... what is that userPhone? how can we call it like that? where do we find that id with that name(userPhone)?

    • Alex Pacioaga
      Alex Pacioaga Year ago

      In User Model we have only "Phone" field, that's why I asked, is there a link between items and Phone is userPhone?

    • EDMT Dev
      EDMT Dev  Year ago

      In my tutorial , userPhone is field of User model , and User model will be receive as soon as user login in to app or use Auto Login system

    • Alex Pacioaga
      Alex Pacioaga Year ago +1

      I meant what is that userPhone? do we use it in firebase or?

    • EDMT Dev
      EDMT Dev  Year ago

      When you receive userPhone from what activity ? Just check previous activity for get putExtras method my dear :)

  • KOFI BAIDOO
    KOFI BAIDOO Year ago

    Please Sir am having this error, dont seem to understand.
    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.phiiphiroberts.ueat, PID: 4459
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.phiiphiroberts.ueat/com.example.phiiphiroberts.ueat.Home}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.phiiphiroberts.ueat/com.example.phiiphiroberts.ueat.Service.ListenOrder}; have you declared this activity in your AndroidManifest.xml?
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2348)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410)
    at android.app.ActivityThread.access$800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5345)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
    Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.phiiphiroberts.ueat/com.example.phiiphiroberts.ueat.Service.ListenOrder}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1777)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
    at android.app.Activity.startActivityForResult(Activity.java:3760)
    at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
    at android.app.Activity.startActivityForResult(Activity.java:3721)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
    at android.app.Activity.startActivity(Activity.java:4033)
    at android.app.Activity.startActivity(Activity.java:3999)
    at com.example.phiiphiroberts.ueat.Home.loadMenu(Home.java:139)
    at com.example.phiiphiroberts.ueat.Home.onCreate(Home.java:103)
    at android.app.Activity.performCreate(Activity.java:6012)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410)
    at android.app.ActivityThread.access$800(ActivityThread.java:151)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1313)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5345)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)

    • KOFI BAIDOO
      KOFI BAIDOO Year ago

      please have seen it Sir. thank you

    • KOFI BAIDOO
      KOFI BAIDOO Year ago

      Please Sir what should i do? Please have tried everything, have gone through your tutorial over and over. Please help me out. thanks

    • EDMT Dev
      EDMT Dev  Year ago

      ListenOrder is Service but you start it as Activity , this is your error

    • KOFI BAIDOO
      KOFI BAIDOO Year ago +1

      Please this my manifest

  • Fayaz Rahman
    Fayaz Rahman Year ago +2

    Is there a way to view the requests from client side in server side? Or is there already a video? Viewing requests in firebase won't be a good idea, right?

    • EDMT Dev
      EDMT Dev  Year ago

      Why you think this is not good idea ? my bro ?

  • Sourav Das
    Sourav Das Year ago +1

    hello sir.. my data's are in live server(not in firebase). how can i do it for live server data chages?
    TIA

    • Sourav Das
      Sourav Das Year ago

      EDMT Dev sir can u provide some code or share any resources for it?
      Thanks in advance

    • EDMT Dev
      EDMT Dev  Year ago

      You should use Socket system , becuz RESTAPI do not support live notify when data change

  • hong lay
    hong lay Year ago +1

    hello,sir can u tell me where can i copy client side...?

    • EDMT Dev
      EDMT Dev  Year ago

      From Client app my dear :D

  • Amir Afzal
    Amir Afzal Year ago

    Sir! Thank you so much for wonderful tutorials. Keep it up.
    Sir both the client and server apps are running fine, but the issue is that when I update the "order status" from server side no Notification is received to any of the client side user.
    Sir Kindly help me regarding this problem. Once Again Thanks.

  • Wildan Haitami
    Wildan Haitami Year ago +1

    Hello, Sir.. i still cannot show my menu inside my category on Client app, but on Server app the menu is shown. can u help me? Thankyou :))

    • EDMT Dev
      EDMT Dev  Year ago

      :) Check again on your Client , watch my tutorial kindly and do step by step my dear