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!
You will need to make sure the SDK samples are installed:
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:
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 thesamples
subdirectory.On Win8: you import samples using Android SDK Manager and they are going to be in this folder (this is the folder with android-sdk):
C:\Users\YourUserName\AppData\Local\Android\sdk\samples
This worked for me
The latest (and most convenient way) to do it is:
Also see http://developer.android.com/samples/index.html
It's in the directory where you've installed the Android SDK. If you're running on Windows, it probably looks like
C:\android-sdk
. Inside it there's a subdirectory calledsamples
. That's where they are. Note however, that they don't come pre-installed with the SDK, you need to actually download samples via the Android SDK first. Just launch it, check the "samples" for the android platform you want and start the download.