Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can the android samples be found?

Tags:

android

sample

I checked google developers website for some exercises and examples in Android Development and I found this webpage: http://developer.android.com/tools/samples/index.html which says

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

I didn't find that location! What should I do? And if you know a better practicing way for a beginner to learn,let me know please!

like image 298
Siyno Avatar asked Mar 05 '13 23:03

Siyno


People also ask

What is app sample?

Sample apps are examples of working code that you can browse, run, and learn from to get started developing your own Google Cast app.

What is Android SDK example?

The Android SDK is a software development kit that includes a comprehensive set of development tools. These include a debugger, libraries, a handset emulator based on QEMU, documentation, sample code, and tutorials.


2 Answers

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

This image is from the SDK Manager. Once you check off the samples for the APIs you want, and everything is installed, you can easily make an Eclipse project:

File -> New -> Other -> Android Sample Project

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

like image 194
A--C Avatar answered Oct 17 '22 16:10

A--C


The latest (and most convenient way) to do it is:

  1. open android studio
  2. if a project is currently opened, close it (file -> close project)
  3. on the following screen choose "Import an Android code sample".

enter image description here

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

like image 4
icyerasor Avatar answered Oct 17 '22 16:10

icyerasor