简体   繁体   中英

Android Lollipop: Where to find code of “API Demos” app preinstalled in the Android Lollipop Nexus 5 emulator

I have just installed Android 5 on Android studio and Made my first run on an emulator. I've found "API Demos" app really interesting and I would like to find the code. I'm talking about this app: 在此处输入图片说明

Somebody knows where I can find it?

Thank you very much!

Go to where your SDK is installed samples/android-X/ApiDemo

For example :-sdk\\samples\\android-19\\legacy\\ApiDemos. In that you can get the source code

Try to find this path :

Finder --> go --> go to folder and enter : ~/Library/Android/sdk/samples

pick an android level, on android-8 you will find the ApiDemos on the main directory, but for android-22 you have to find legacy and then pick the ApiDemos

be sure that the sdk is installed with android sdk manager

enjoy

In latest versions of the SDK they are placing some samples in the following location:

$sdk_dir/sources/android-19/com/example/...

Depending on your SDK version you will find different samples. The Api Demos can be downloaded from here:

https://github.com/android/platform_development/tree/master/samples

Also is interesting to check for other APIs and services samples here:

https://github.com/googlesamples

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM