Android AIDL Explained in Detail with Practical in 15 Mins

  Рет қаралды 25,363

AOSP »» Android »» AI »» Tech News to Go

AOSP »» Android »» AI »» Tech News to Go

2 жыл бұрын

A course on AIDL, enrol in case you are interested.
www.udemy.com/course/android-...
aospguru.com/ Android AIDL Explained in Detail with Practical
#AIDL
#Theory
AIDL Theory Part 1
In this lecture, you will learn AIDL in detail.
#Practical
AIDL Lab Part 1 - Create Server App
In this first part of the tutorial, we will create an AIDL server. The server app hosts a Bound Service and contains the logic to return random colours to its client.
AIDL Lab Part 2 - Create Client App
In this second part of the tutorial, we will create an AIDL client. The server app hosts a Bound Service and contains the logic to return random colours to its client. The client app calls the service and changes the button's colour within the Main activity.
Github Link
Download the project from
github.com/tollcafe/AIDLServer
github.com/tollcafe/AIDLClient
For structured courses on aosp, please use the below links. Good Luck.
Android Mobile OS Development
---------------------------------------------------
www.udemy.com/course/android-...
Android Automotive Development
-----------------------------------------------------
www.udemy.com/course/android-...
Android Deep Analysis - Startup and Window Management
-----------------------------------------------------------------
www.udemy.com/course/android-...

Пікірлер: 56
@sumithpattar4335
@sumithpattar4335 2 жыл бұрын
One of the best and clearly explained AIDL concept video 👍🙂
@aamirhoda7363
@aamirhoda7363 Жыл бұрын
Just today for the 1st time I heard about AIDL in my life & came here searching for it. This video was just simply AMAZING!! 🤩🤩🤩🤩 This video explained AIDL very clearly, & made it look so simple. THANK YOU very much for such a wonderful explanation.
@rugvedinamdar
@rugvedinamdar Жыл бұрын
Very well expalined ! Keep uo the awesome work.👍
@pratikchawke
@pratikchawke Жыл бұрын
Perfectly Explained ! Superb 👍
@SvScibi
@SvScibi Ай бұрын
Very nicely explained
@noobgamer1615
@noobgamer1615 Жыл бұрын
really good explanation
@JJSS90
@JJSS90 9 ай бұрын
Well done brother, you did what documentation is not able to do easily. Keep it up👍
@hosseinmirzazadeh290
@hosseinmirzazadeh290 Жыл бұрын
Thank you soooooo soooooo much for the great explanation 👍🏻❤
@oliveryt7168
@oliveryt7168 Жыл бұрын
Very helpful!!
@luciodarcon
@luciodarcon Жыл бұрын
Very good man. Ty
@shubhamkumargupta3478
@shubhamkumargupta3478 2 ай бұрын
Awesome
@suniljaiswal9150
@suniljaiswal9150 Жыл бұрын
Great Explanation...superb
@fghinty7623
@fghinty7623 2 жыл бұрын
Amazing. Thank you so much
@aosp_android_tollcafe
@aosp_android_tollcafe 2 жыл бұрын
Glad you liked it! :)
@henrytan5707
@henrytan5707 2 жыл бұрын
Very good, at least I have managed to understand it.
@oliveryt7168
@oliveryt7168 Жыл бұрын
I am not a pro, nor a beginner in coding, but this isnt the easiest topic... rather abstract and has many dependencies that arent easy to understand... A little struggle is totally okay..
@akhilkrishnan615
@akhilkrishnan615 Жыл бұрын
Clearly explained. Nice video, bro! 👍 However, in the AIDL Server manifest file, we need to include android:process=":remote" attribute inside service tag for the latest Android version; otherwise, the service won't get bound in the client app. I lost a few hours trying to find that fix. Hopefully, this helps.
@ebycloudins
@ebycloudins Жыл бұрын
I am facing the same issue. Tried adding the process=":remote" still binding is not working
@Subratsss
@Subratsss Жыл бұрын
@@ebycloudins @Akhil Not able to Bind. Any Solution?
@rishankyashu1121
@rishankyashu1121 Жыл бұрын
​@@ebycloudins Add this line in your client app manifest file:
@aosp_android_tollcafe
@aosp_android_tollcafe Жыл бұрын
@Akhil Krishnan​ @rishank yashu , Thanks Guys. Will update Github.
@Isagiyochi395
@Isagiyochi395 Жыл бұрын
@@aosp_android_tollcafe can you please update this soon 🙏
@bhushansonawane5302
@bhushansonawane5302 9 ай бұрын
great , thanks
@lotaviods
@lotaviods Жыл бұрын
If i have two clients pointing to the same server, will server be just one process or will be one for each client?
@Subratsss
@Subratsss Жыл бұрын
Not able to bind. Any modification in code
@mustafaylmaz3370
@mustafaylmaz3370 Жыл бұрын
Same here. I've been trying for a few days Edit: It is about targetSdk. targetSdk must be 28. I tried 32 and 33 it didn't work but it work with 28. Anyone knows how can we use this in 32 or 33 targetSdk?
@equaliser19
@equaliser19 10 ай бұрын
thanks bro
@bjccmeh
@bjccmeh 2 жыл бұрын
Thanks for this! Can you fix your playlists? I think they are not managed accordingly per topic. Anyways, keep up the good work!
@aosp_android_tollcafe
@aosp_android_tollcafe 2 жыл бұрын
Thanks, Bro. Glad that it helped. I will organize the contents of the channel soon.
@pratyush1
@pratyush1 Жыл бұрын
Please Help!!! How to rename AIDL directory in client app. Refactoring is performing the renaming operation throughout the project.
@bisnisakhirat9945
@bisnisakhirat9945 Жыл бұрын
Hi this is really interesting, could AIDL open possibility for an app have addons/extension/plugins from 3rd party developer? just like wordpress, everybody able to create addons, and when user install the addons, our parent app will have additional feature and UI?
@aosp_android_tollcafe
@aosp_android_tollcafe Жыл бұрын
AIDL is only android internal communication between different Android Process with in the OS. afaik it does not support external sources. But there are other ways to achieve these kind functionality at the app level.
@viveknishad8280
@viveknishad8280 Жыл бұрын
Hi in my case when I try to create AIDL file but stub class is not generate .
@user-or5pg5rb4w
@user-or5pg5rb4w Жыл бұрын
hello ,i have some problem in use the aidl, when i in client use the service, the service object is null
@yhm2046
@yhm2046 Жыл бұрын
I can't rename the package name is 8:55, I try many times but it still is clinet not change to service, my android studio is Android Studio Electric Eel | 2022.1.1 Patch 1, please help me!
@Isagiyochi395
@Isagiyochi395 Жыл бұрын
For some reason my client can’t seem to find the intent from my server. I did the service and the client main activity in kotlin but used the android open source to help. I’m pretty sure that my client connects to my server and I can run the client but when I click the button it doesn’t change color. I check the Logcat and it says can’t find intent. Please help me I am so confused I have been stuck for a week on this problem
@aosp_android_tollcafe
@aosp_android_tollcafe Жыл бұрын
Could you please check the update from Akhil Krishnan below. May be its the same issue. 1. We need to include android:process=":remote" attribute inside service tag for the latest Android version; otherwise, the service won't get bound in the client app. I lost a few hours trying to find that fix. Hopefully, this helps. 2. Add this line in your client app manifest file:
@Isagiyochi395
@Isagiyochi395 Жыл бұрын
@@aosp_android_tollcafe for step 1 when I include the android:process=“:remote” where am I adding that…the way I call the intent in kotlin is (in my client Main activity): Val intent = Intent(“AIDLCOLORSERVICE”) Intent.setPackage(“com.example.aidlserver”) I will add step 2 to my intent but where do I add step one?
@Isagiyochi395
@Isagiyochi395 Жыл бұрын
@@aosp_android_tollcafe when I add It says element queries isn’t allowed here and and when I try to run it it gives an error
@Isagiyochi395
@Isagiyochi395 Жыл бұрын
@@aosp_android_tollcafe one more thing it says my server keeps stopping when I run the app on the client. I think this is for sure the issue
@WSteve-hu6cn
@WSteve-hu6cn 4 ай бұрын
chetta .. ! natil evideya...?
@prasannakumaranisetti2350
@prasannakumaranisetti2350 Жыл бұрын
I am not able to install the apk. someone please help.
@joemamauwu
@joemamauwu 8 ай бұрын
would prefer the entire ide to be seen because some parts are cut out
@oluwasegunilori5564
@oluwasegunilori5564 Жыл бұрын
Must the server app be running before communication from the client app
@dhruvakumar6964
@dhruvakumar6964 Жыл бұрын
It should be running.
@oluwasegunilori5564
@oluwasegunilori5564 Жыл бұрын
@@dhruvakumar6964 Thanks
@marcinziajkowski3870
@marcinziajkowski3870 2 жыл бұрын
Very good tutorial. Java is so fu**ed up.
@GauravKhare89
@GauravKhare89 2 жыл бұрын
In my case the java (generated) never shows up
@aosp_android_tollcafe
@aosp_android_tollcafe 2 жыл бұрын
Make sure to use Android view in Project Pane. May be you are using Project view which does not show it. 👍
@jawad1257
@jawad1257 2 жыл бұрын
Code link not working.
@aosp_android_tollcafe
@aosp_android_tollcafe 2 жыл бұрын
Hi Bro, Try again. Was doing some cleanups.
AIDL Lab  Part 1 -  Create Server App
4:13
AOSP »» Android »» AI »» Tech News to Go
Рет қаралды 5 М.
Android Framework- AIDL In Android
18:15
Dimple S
Рет қаралды 17 М.
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 36 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
Android Startup (Boot Sequence) -  Zygote Process - Code Walkthrough (AOSP)
10:23
AOSP »» Android »» AI »» Tech News to Go
Рет қаралды 6 М.
Binder - как устроена работа с несколькими процессами в Android
56:44
Android Broadcast. Все об Андроид разработке
Рет қаралды 26 М.
Digging Into Android System Services
31:58
Dave Smith
Рет қаралды 32 М.
JPEG is Dying - And that's a bad thing
8:09
2kliksphilip
Рет қаралды 57 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 36 М.
Bound Services on Android
43:00
CodingWithMitch
Рет қаралды 61 М.
Android Architecture Explained in Detail
11:18
AOSP »» Android »» AI »» Tech News to Go
Рет қаралды 47 М.
UNO!
00:18
БРУНО
Рет қаралды 3,1 МЛН