Making Inter Process Communication (IPC) via Android Interface Definition Language (AIDL) that helps to communicate between two or more different apps that are running on different processes.
The other ways of communicating with other apps are using android intents, broadcasts and content providers based on the scenarios.
-
Install Server and Client app apks on the device.
-
Launch client app and perform login, sign-up, deposit and withdrawal operations. These operations are handled with AIDL Binders that are shared with client applications by server application.
-
Server app runs a BankService, a service that shares AIDL binders with the client applications which are all bound with the service.
-
Server app stores and maintains user credentials in a Database.
-
Connector library has AIDL interfaces that are commonly shared with server and client app.
-
Client app binds with the BankService with the help of BankServiceController and BankServiceConnector from Connector library that handles service connections, requests and responses with the BankService.
please note that, due to background restrictions on Android running API level 30 and above, third-party application can no longer start or bind with the service that belongs to another process or app.
If you are developing system level android apps for a custom android system, there will be no restrictions applied.
Data Binding Library
-> for updating, handling views from layouts with ViewModels.
Lifecycle Components
-> LiveData for observing changes and ViewModel for MVVM Architecture.
Room Persistence Storage
-> An ORM for SQLite Database.
Hilt DI
-> Dependency Injection Library for Android.
Kotlin Coroutines Library
-> A light-weight concurrency thread handles async and blocking works.
If you've found an error in this sample, please file an issue: https://github.com/LiteKite/Android-AIDL/issues
Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
Copyright 2021 LiteKite Startup
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.