Where can I find android samples?

I checked the Google developers site for some exercises and examples in Android Development, and I found this web page: http://developer.android.com/tools/samples/index.html that says

When the download is complete, you can find the source code for all the samples in this place: / samples / android -

I did not find this place! What should I do? And if you know how best a beginner can learn to learn, let me know, please!

+6
source share
4 answers

You will need to make sure that the SDK samples are installed: enter image description here

This is an image from the SDK manager. After you check the samples for the APIs you need and everything is installed, you can easily create an Eclipse project:

File β†’ New β†’ Other β†’ Android Application Example

Or you can go directly to the path. You can see from my screenshot that for me it is located in Program Files\Android\android-sdk with the samples in the samples subdirectory.

+7
source

Last (and most convenient way):

  • open studio android
  • If the project is open, close it (file β†’ close project)
  • On the next screen, select "Import Sample Android Code."

enter image description here

Also see http://developer.android.com/samples/index.html

+4
source

This is in the directory where you installed the Android SDK. If you are running Windows, this is similar to C:\android-sdk . Inside there is a subdirectory called samples . This is where they are. Please note, however, that they are not pre-shipped with the SDK, you must first download the samples via the Android SDK. Just run it, check the β€œsamples” for the required Android platform and start the download.

0
source

In Win8: you import samples using the Android SDK Manager, and they will be in this folder (this is the folder with android-sdk):

C: \ Users \ username \ AppData \ Local \ Android \ SDK \ Samples

It worked for me

0
source

All Articles