Tutorial de desarrollo de Android: Mi restaurante, parte 9 Ver detalles de la comida



Donar enlaces: #MyRestaurantAndroidEDMTDev #AndroidEDMTDev #EDMTDev Facebook: Documentos de la API de enlace: Activos de enlace: En la lección de hoy, le mostraré cómo ver toda la información detallada del tutorial de desarrollo de Android Food, tutorial de programación de Android, tutorial de desarrollo de aplicaciones de Android, tutorial 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, estudio de Android de pago en línea, aplicación de restaurante nodejs.

Compruebe también

Terraria Mobile & Console 2020 Noticias / Actualizaciones [PS4, XBox One, Switch, Android, iOS]

Terraria Mobile & Console 2020 Noticias / Actualizaciones [PS4, XBox One, Switch, Android, iOS] — …

22 comentarios

  1. Sir you have been making very beautiful apps tutorial.. If you could give the voices on it. Thanks..
    Best will be English.

  2. teacher in the tutorial at 36:00 min the error that does not load the GROUPBOX in the SECTION OF PIZZA I get an error and does not load the GROUPBOX with the data any help ???

    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

    at java.lang.StringBuilder.<init>(StringBuilder.java:113)

    at com.example.androidmyrestaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:45)

    at com.example.androidmyrestaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:26)

  3. Em bị lỗi [LOAD ADDON] HTTP 404 NOT FOUND, em có check API vẫn OK , em chỉ biết có thể đường dẫn Url sai nhưng không biết khắc phục sau.

  4. Hello Edmt Please i just Found a bug!! Please note it down!!
    For example when we click more info for Pizza which has addon and Size….try to select some addon but dont click add to cart! just click on view cart and then click back! once you go back to food detail youll find that the price went Up!!! pls fix

  5. hello Sir. i have a problem with pizza.when i click on pizza detail the app crash. kindly help to me to fix this problem. log cat is here..
    2019-12-18 16:30:21.079 16490-16490/? I/oidmyrestauran: Not late-enabling -Xcheck:jni (already on)

    2019-12-18 16:30:21.105 16490-16490/? E/oidmyrestauran: Unknown bits set in runtime_flags: 0x8000

    2019-12-18 16:30:21.106 16490-16490/? W/oidmyrestauran: Unexpected CPU variant for X86 using defaults: x86

    2019-12-18 16:30:21.459 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: JIT profile information will not be recorded: profile file does not exits.

    2019-12-18 16:30:21.461 16490-16490/com.amitesh.androidmyrestaurant I/chatty: uid=10115(com.amitesh.androidmyrestaurant) identical 10 lines

    2019-12-18 16:30:21.461 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: JIT profile information will not be recorded: profile file does not exits.

    2019-12-18 16:30:21.492 16490-16490/com.amitesh.androidmyrestaurant I/InstantRun: starting instant run server: is main process

    2019-12-18 16:30:21.712 16490-16524/com.amitesh.androidmyrestaurant D/OpenGLRenderer: Skia GL Pipeline

    2019-12-18 16:30:21.716 16490-16525/com.amitesh.androidmyrestaurant D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.

    2019-12-18 16:30:21.717 16490-16525/com.amitesh.androidmyrestaurant W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)

    2019-12-18 16:30:21.705 16490-16490/com.amitesh.androidmyrestaurant W/RenderThread: type=1400 audit(0.0:5838): avc: denied { write } for name="property_service" dev="tmpfs" ino=8365 scontext=u:r:untrusted_app:s0:c115,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0

    2019-12-18 16:30:21.737 16490-16525/com.amitesh.androidmyrestaurant E/vndksupport: Could not load /vendor/lib/egl/libGLES_emulation.so from sphal namespace: dlopen failed: library "/vendor/lib/egl/libGLES_emulation.so" not found.

    2019-12-18 16:30:21.737 16490-16525/com.amitesh.androidmyrestaurant E/libEGL: load_driver(/vendor/lib/egl/libGLES_emulation.so): unknown

    2019-12-18 16:30:21.835 16490-16525/com.amitesh.androidmyrestaurant D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so

    2019-12-18 16:30:21.844 16490-16522/com.amitesh.androidmyrestaurant D/NetworkSecurityConfig: No Network Security Config specified, using platform default

    2019-12-18 16:30:21.892 16490-16525/com.amitesh.androidmyrestaurant D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so

    2019-12-18 16:30:21.898 16490-16525/com.amitesh.androidmyrestaurant D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so

    2019-12-18 16:30:22.025 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Verification of androidx.appcompat.view.ActionMode androidx.appcompat.app.AppCompatDelegateImpl.startSupportActionModeFromWindow(androidx.appcompat.view.ActionMode$Callback) took 103.307ms

    2019-12-18 16:30:22.123 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection)

    2019-12-18 16:30:22.124 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (greylist, reflection)

    2019-12-18 16:30:22.196 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (greylist, reflection)

    2019-12-18 16:30:22.399 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection)

    2019-12-18 16:30:22.399 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection)

    2019-12-18 16:30:22.399 16490-16490/com.amitesh.androidmyrestaurant W/oidmyrestauran: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection)

    2019-12-18 16:30:22.451 16490-16490/com.amitesh.androidmyrestaurant D/AndroidRuntime: Shutting down VM

    2019-12-18 16:30:22.453 16490-16490/com.amitesh.androidmyrestaurant E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.amitesh.androidmyrestaurant, PID: 16490

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.amitesh.androidmyrestaurant/com.amitesh.androidmyrestaurant.MenuActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.amitesh.androidmyrestaurant.Model.User.getUserPhone()' on a null object reference

    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3113)

    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3249)

    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:81)

    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1940)

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

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

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

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

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:486)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.amitesh.androidmyrestaurant.Model.User.getUserPhone()' on a null object reference

    at com.amitesh.androidmyrestaurant.MenuActivity.countCartByRestaurant(MenuActivity.java:88)

    at com.amitesh.androidmyrestaurant.MenuActivity.onCreate(MenuActivity.java:76)

    at android.app.Activity.performCreate(Activity.java:7658)

    at android.app.Activity.performCreate(Activity.java:7647)

    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1295)

    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3088)

    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3249) 

    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:81) 

    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 

    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1940) 

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

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

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

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

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:486) 

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)

  6. Hello sir,
    I have done all coding like this tutorial but I can't see the size radio group when I run the app and sir my app is not crash but I can't see the size radio group. So please sir help me with this.

  7. display size is bug,bacause when you click button view card and if you back activity food detail ,radio button will duplicate in view

  8. addonList.get(position).getName() => addonList is null . how to fix this? Where do i have to make changes?

  9. Sir my app crashes on clicking PIZZA

    Line 26:public class MyAddonAdapter extends RecyclerView.Adapter<MyAddonAdapter.MyViewHolder>

    Line 45:holder.ckb_addon.setText (new StringBuilder(addonList.get(position).getName() )

    Here's my logcat
    22500/com.example.restaurant E/RecyclerView: No adapter attached; skipping layout
    2019-08-15 17:23:17.744 22500-22500/com.example.restaurant E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.restaurant, PID: 22500
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
    at java.lang.StringBuilder.<init>(StringBuilder.java:113)
    at com.example.restaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:45)
    at com.example.restaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:26)
    at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
    at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823)
    at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752)
    at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019)
    at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858)
    at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854)
    at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230)
    at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1557)
    at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
    at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
    at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
    at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3336)
    at android.view.View.measure(View.java:23355)
    at androidx.core.widget.NestedScrollView.measureChildWithMargins(NestedScrollView.java:1502)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at androidx.core.widget.NestedScrollView.onMeasure(NestedScrollView.java:556)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at androidx.cardview.widget.CardView.onMeasure(CardView.java:260)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
    at android.view.View.measure(View.java:23355)
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    at android.view.View.measure(View.java:23355)
    at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:143)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
    2019-08-15 17:23:17.745 22500-22500/com.example.restaurant E/AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6758)
    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    at com.android.internal.policy.DecorView.onMeasure(DecorView.java:717)
    at android.view.View.measure(View.java:23355)
    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2917)
    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1747)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2040)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1635)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7795)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1172)
    at android.view.Choreographer.doCallbacks(Choreographer.java:984)
    at android.view.Choreographer.doFrame(Choreographer.java:809)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1158)
    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:6863)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
    2019-08-15 17:23:17.747 22500-22500/com.example.restaurant E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.restaurant, PID: 22500
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
    at java.lang.StringBuilder.<init>(StringBuilder.java:113)
    at com.example.restaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:45)
    at com.example.restaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:26)
    at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781)
    at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823)
    at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752)
    at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019)

  10. sir i have problem –> when i click on medium it added 2 that's fine and when i clicked large it makes it 23 that is it minus 4 what is my problem

  11. Hello EDMT, I know I am troubling you with my problem, but I have found a very strange thing in my problem. When I click on img_detail of other snacks, it does not crash. But when I click img_detail of Pizza, the app crashes. I check it in Pasta, but it works fine, but Add On does not expand. What could be the issue?

  12. Hello EDMT, I checked your videos again and again, but I still cannot find the issue. Could you please tell me how to resolve step by step?

  13. Hello EDMT, I have a problem. The app is crashing when I click on the img_detail. The error is

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.game.adarsh.myrestaurant.Model.User.getUserPhone()' on a null object reference

    at com.game.adarsh.myrestaurant.MenuActivity.countCartByRestaurant(MenuActivity.java:87)

    at com.game.adarsh.myrestaurant.MenuActivity.onCreate(MenuActivity.java:76)

    It is pointing at this line cartDataSource.countItemInCart(Common.currentUser.getUserPhone(),

    Please help me.

  14. Sir see iin min 38:36 in medium + addon cost 32 and large cost 28 is bug 🙁

  15. Hi again. After watching tutorials 7-8-9 again and again and re-doing them all over again I still get the same errors:

    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: akad.fastfood.androidmyrestaurant, PID: 13676
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
    at java.lang.StringBuilder.<init>(StringBuilder.java:113)
    at akad.fastfood.androidmyrestaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:44)
    at akad.fastfood.androidmyrestaurant.Adapter.MyAddonAdapter.onBindViewHolder(MyAddonAdapter.java:25)

    https://i.ibb.co/x81F2Ph/logcat.jpg

    and this one:

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String akad.fastfood.androidmyrestaurant.Model.User.getUserPhone()' on a null object reference
    at akad.fastfood.androidmyrestaurant.MenuActivity.countCartByRestaurant(MenuActivity.java:86)
    at akad.fastfood.androidmyrestaurant.MenuActivity.onCreate(MenuActivity.java:76)

    https://i.ibb.co/pfHmrDx/logcat-2.jpg

    The error only appears when I click on PIZZA DETAILS and it is caused from the ADDON which can not load and it crashes the app

    This time I used a saved file from completed and working tutorial 6 and wrote all the code again to make sure I didn't do anything wrong… but I still have the error

    If anyone can send me here the working code from his files… I would really appreciate it… or someone tell me what code to add and where… even better if you can send me a picture of it

    Thank you

  16. Good afternoon, I have a problem, you add the name in the addon box, and the name is not added in the backend, and that creates a crash. in which part do you put the name ??

  17. Sir in the video bug price of size see 😀 and other bug is that when app is in 2cond plane in food detail design is bad :c

  18. Sir, please make playstore like app.

  19. Keep up the good work! Thank you so much!!

  20. thanks for your video Iearning by watching your video

  21. Hello, what if every ten minutes the tutorial application is tested to run, making it easier for me if there is an error from my code. thanks for the tutorials

  22. hello, can you provide API script to develop same . thank you

Deja una respuesta

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