Tutorial de desarrollo de Android: nuevas categorías populares de Eat It Part 19 y la mejor oferta



Donar enlaces: #EatItAndroidEDMTDev #AndroidEDMTDev #EDMTDev Facebook: Link Font: En este tutorial, te ayudaré a agregar funcionalidad completa para categorías populares y tutoriales de desarrollo de Android Best Deal, tutoriales de programación de Android, tutoriales de desarrollo de aplicaciones de Android, tutoriales de Android para principiantes, tutorial de aplicación de Android, tutorial de estudio de Android, aprender programación de Android, tutorial de desarrollador de Android, programación de Android, desarrollo de Android, tutorial de estudio de Android para principiantes, curso de Android, formación de Android, curso de desarrollo de Android, curso de desarrollo de aplicaciones de Android, aplicación restaurante múltiple, pago en línea de Android Studio, base de fuego de la aplicación de restaurante.

Compruebe también

Calculadora de IMC en Android Studio | enlace: https://youtu.be/x3tt21BZLOY #desarrollo de aplicaciones

Calculadora de IMC en Android Studio||Calculadora de IMC realizada por Android Studio @appdevelopershakib

22 comentarios

  1. em chào anh, anh cho em hỏi phút 7:00 tại sao phải gọi tới 2 lần Category mới có thể so sánh được vậy anh và nếu gọi một lần để so sánh thì có sai gì không anh?

  2. Hi sir, when i click on a popular time, i m going everytime in this else. Do you know why ?
    Code: https://prnt.sc/v9jcry
    Database: https://prnt.sc/v9je55 + https://prnt.sc/v9jeba

  3. Hey bro, Grettings, thanks for the vid and all the content you share, I'm actually facing a problem, hope you can read it:
    E/EventBus: Could not dispatch event: class com.example.clientvoutik.EventBus.BestDealItemClick to subscribing class class com.example.appname.User.HomeActivity

    java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()

    I've been reading about it and apparently this happends because Firebase downloads data asynchronously and the code lines are executed synchronously. Therefore, by the time this line
    FirebaseDatabase.getInstance()….child(event.getPopularCategoryModel().getMenuId()
    is executed, the value is still null because this hasn't happened yet.
    Should I add a check for null ( if (even == null)) or is it about my connection?

  4. when i click the best deals app crash

    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.ashina.hotelsclient, PID: 3321

    com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type com.ashina.hotelsclient.Model.FoodModel

    at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertBean(CustomClassMapper.java:436)

    at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToClass(CustomClassMapper.java:232)

    at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:80)

    at com.google.firebase.database.DataSnapshot.getValue(DataSnapshot.java:203)

    at com.ashina.hotelsclient.HomeActivity$4$1.onDataChange(HomeActivity.java:274)

    at com.google.firebase.database.Query$1.onDataChange(Query.java:179)

    at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75)

    at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63)

    at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55)

    at android.os.Handler.handleCallback(Handler.java:883)

    at android.os.Handler.dispatchMessage(Handler.java:100)

    at android.os.Looper.loop(Looper.java:237)

    at android.app.ActivityThread.main(ActivityThread.java:7948)

    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:1075)

    i re checked the code but cannot find the error pls help me

  5. Sir when i click on BestDeal or PopularItem app is going to crash its show's
    com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.example.myfood.Model.FoodModel

  6. Hi sir. I have a problem. I'm getting into this else every time. Do you have any ideea why ?

    https://i.imgur.com/d11JLT5.png

  7. Hello Sir, Where Can I see you Firebase DB(Json) file for reference. Thanks!

  8. Hello sir, I don't know why when I click on Best Deal say that the item doesn't exist but for popular category works fine

  9. sir i am getting this error
    my logcat is
    E/EventBus: Could not dispatch event: class com.example.foodordering.bestdealitemclick to subscribing class class com.example.foodordering.home

    java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()

    at com.google.firebase.database.DatabaseReference.child(com.google.firebase:firebase-database@@19.2.1:96)

    at com.example.foodordering.home.onbestdealitemclick(home.java:221)

    at java.lang.reflect.Method.invoke(Native Method)

    at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:507)

    at org.greenrobot.eventbus.EventBus.postToSubscription(EventBus.java:434)

    at org.greenrobot.eventbus.EventBus.postSingleEventForEventType(EventBus.java:411)

    at org.greenrobot.eventbus.EventBus.postSingleEvent(EventBus.java:384)

    at org.greenrobot.eventbus.EventBus.post(EventBus.java:265)

    at org.greenrobot.eventbus.EventBus.postSticky(EventBus.java:306)

    at com.example.foodordering.mybestdealadapter.lambda$bindView$0$mybestdealadapter(mybestdealadapter.java:45)

    at com.example.foodordering.-$$Lambda$mybestdealadapter$cpstnbcpIVAJjpLvqCL91I3TQWs.onClick(Unknown Source:4)

    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)

    please help me solve this error

  10. one more flawless tutorial, but while I was testing the functionality I found another "error or bug"

    This time it is like this….

    If you click on a food, any food at all, and you go down and click on the "addons" and then click outside of the Addons popup to cancel adding an addon… then the app crashes

    If you add an addon… then remove it using the X… then try to add another addon and click outside the popup… then it cancels the action normally without crashing

    I am adding a picture of the procedure as well

    https://i.imgur.com/Neyd3UV.jpg

    also the Log

    2020-04-28 16:51:44.934 6857-6857/tasos.kougkalis.androideatitv2client E/AndroidRuntime: FATAL EXCEPTION: main
    Process: tasos.kougkalis.androideatitv2client, PID: 6857
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference
    at tasos.kougkalis.androideatitv2client.ui.foodDetail.FoodDetailFragment.displayUserSelectedAddon(FoodDetailFragment.java:340)
    at tasos.kougkalis.androideatitv2client.ui.foodDetail.FoodDetailFragment.lambda$initViews$5$FoodDetailFragment(FoodDetailFragment.java:315)

  11. Khong the SignOut anh oi, bam signout roi lai dang nhap nguoc lai

  12. Please provide multiple restaurants support in this project otherwise this project is useless because no app works only on single restaurant

  13. when i submit rating, it give me below error

    Process: com.example.tousif.foodorderfirebase, PID: 22118

    java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()

    at com.google.firebase.database.DatabaseReference.child(com.google.firebase:firebase-database@@16.0.2:101)

    at com.example.tousif.foodorderfirebase.ui.FoodDetail.FoodDetailFragment.addRatingToFood(FoodDetailFragment.java:395)

    at com.example.tousif.foodorderfirebase.ui.FoodDetail.FoodDetailFragment.access$300(FoodDetailFragment.java:75)

    at com.example.tousif.foodorderfirebase.ui.FoodDetail.FoodDetailFragment$4.onComplete(FoodDetailFragment.java:385)

    at com.google.android.gms.tasks.zzj.run(Unknown Source:23)

  14. I took 2 days trying to fix the issue am facing, but I can't.
    look I've done your tutorial as same of my project, but the popular category is not working:/ i click on it but nothing happen, i checked the Run section and i it giving me (( No subscribers registered for event class EventBus.PopularCategoryClick No subscribers registered for event class org.greenrobot.eventbus.NoSubscribersEvent

  15. java.lang.NullPointerException: Can't pass null for argument 'pathString' in child()
    at com.google.firebase.database.DatabaseReference.child(com.google.firebase:firebase-database@@19.0.0:96)
    at com.hait.eatitv2client.ui.fooddetail.FoodDetailFragment.addRatingToFood(FoodDetailFragment.java:369)
    at com.hait.eatitv2client.ui.fooddetail.FoodDetailFragment.lambda$submitRatingToFirebase$8$FoodDetailFragment(FoodDetailFragment.java:361)

    at com.hait.eatitv2client.ui.fooddetail.-$$Lambda$FoodDetailFragment$ALELFcHCecbqEBkDnVSG4LjDi5k.onComplete(Unknown Source:4)

    when try to comment on food selected from popularcategories

  16. show how to make favorite List + Firebase

  17. I tried to resolve the issue of java.lang.NullPointerException: Can't pass null for argument 'pathString' in child(), however I found no mistake in the code.

  18. Hello sir! There's an issue in the application, if I am trying to rate food through home it is giving exception

  19. best deal has same content than popular category. is that normal?

  20. (PLEASE REPLY )Amazing video as you are but dear eddy did you plan to work or Flutter in future ?

  21. Hello
    I have a question about Xamarin.Android
    How can I make Editing Text into cells like a crossword puzzle? or do it in android

  22. The Content Is Very useful But why Do not speak ???

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *