filmov
tv
Interface world (Java + Android), Level 1: Callback method

Показать описание
Interface world Java + Android, Level 1: Callback method !
* Callback method:
- "Don't call me, I'll call you".
- Main thread starts another thread to do something, when the
worker thread finishes, it calls the result back to the main thread.
* Java implement:
Step 1. Create a class as a worker.
Step 2. Create a callback interface.
Step 3. Worker class do something and call result back.
Step 4. Make callback deeper.
- Main thread doesn't know + doesn't care how and what thread is actually
did the work, it just handles the result, that's all.
* Android implement:
Step 1. Create MainActivity + a button to show custom dialog with 3 options.
Step 2. Create a custom dialog.
Step 3. Create a callback interface.
Step 4. Integrate callback and handle result.
Step 5. Make callback deeper.
- Main activity doesn't know + doesn't care how many dialogs is opened
to let user select, it just handle the final result.
Please like, share and subscribe !
* Callback method:
- "Don't call me, I'll call you".
- Main thread starts another thread to do something, when the
worker thread finishes, it calls the result back to the main thread.
* Java implement:
Step 1. Create a class as a worker.
Step 2. Create a callback interface.
Step 3. Worker class do something and call result back.
Step 4. Make callback deeper.
- Main thread doesn't know + doesn't care how and what thread is actually
did the work, it just handles the result, that's all.
* Android implement:
Step 1. Create MainActivity + a button to show custom dialog with 3 options.
Step 2. Create a custom dialog.
Step 3. Create a callback interface.
Step 4. Integrate callback and handle result.
Step 5. Make callback deeper.
- Main activity doesn't know + doesn't care how many dialogs is opened
to let user select, it just handle the final result.
Please like, share and subscribe !
Interface world (Java + Android), Level 1: Callback method
FIXED: No JAVA option in Android Studio Flamingo [2024]
Android #5 - Das Interface in Java schreiben
ANDROID - INTERFACE CALLBACK TUTORIAL IN JAVA
Running Android Studio #android #developer #python #androidstudio #java #fyp #viral
How To Create a JAVA Callback In Android Studio (Explained Step by Step)
Java constructs for real-world applications: Interfaces
This NEW Launcher is BETTER than Pojav Launcher
Minecraft PE Java UI Mod ✅ | Best Java Edition Interface for MCPE! [2025 Update + FPS Boost!]
Android Developer Roadmap #trendingshorts #coderslife #trendingnow
Creating First Application In Android Studio in 2025
Урок 12. Основы Java. Интерфейсы (interface) в java
Android Studio Java - Connecting Buttons to Code
Rating all Java Launchers in Android #minecraftjava #launcher #pojavalauncher #pojavlauncher
Android 3 Programming Tutorial. User interface Java versus Xml
My 5-Step UX/UI Design Process — From Start to Deliver
Junior vs Senior Backend developer| Beginner vs Pro | #programming #java #interview #coding #backend
Bottom Navigation Bar - Android Studio | Fragments | Java | 2023
Subscribe for more coding tips🔥#trending #python #coding #aitools #java #program
How to turn on/off screen animations in minecraft
Run Windows 10 on Android Phone
How to use desktop mode on the Samsung Galaxy Tab S9 Ultra
make your Minecraft look like java | make minecraft bedrock edition look like java
Top 5 launchers for android #top5 #launcher
Комментарии