Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android AIDL support "short" type?

Tags:

android

aidl

Does AIDL support short type ?

http://developer.android.com/guide/developing/tools/aidl.html

It said "All primitive types in the Java programming language (such as int, long, char, boolean, and so on)"

But it seems cannot use short in AIDL.

thanks !

like image 998
aquatear Avatar asked Jul 19 '11 04:07

aquatear


People also ask

Where is AIDL used in Android?

AIDL can be used between any process in Android: between platform components or between apps. However, it is never used as an API for apps. AIDL may be used to implement an SDK API in the platform, for instance, but the SDK API surface never contains AIDL APIs directly.

What is stable AIDL in Android?

Android 10 adds support for stable Android Interface Definition Language (AIDL), a new way to keep track of the application program interface (API)/application binary interface (ABI) provided by AIDL interfaces.

What is an AIDL file?

An AIDL (Android Interface Definition Language) file allows Android developers to establish communication between different apps. Based on the programming interface, both the client and service agree to communicate using interprocess communicate (IPC).


1 Answers

I think it does not :/ so use an int and cast it back to short afterwards

like image 124
Simon Avatar answered Sep 23 '22 21:09

Simon