Unable to import sample project from sdk - android

I want to study the sample code in android sdk which is cubelivewallpaper..
So i decided to import it. But it has a problem. i am not able to click finish because it is disabled.. here:
and here is i am trying to import.
Anyone can help me how to import sdk project wihout getting this error?
Thank you..

To import sample project follow the following steps:
Click on File ---> New ---> other, new project wizard will be opened.
Now under android option click on the "android sample project" and press next.
Select the build target e.g. android 4.1 and press next.
Now you will get list of sample projects available. Select the one you want say "CubeLiveWallpaper" and press finish. You are done

That project exists in the sample projects.(CubeLiveWallpaper)
Try Creating a sample project. No need to import it.

You shouldn't import but Create New project from exists derictory and choose this project. Good luck!

As far as I know, the SDK examples aren't Eclipse projects so you can't use the Import function. Whenever I've wanted to try any of the samples, I've created the project manually in Eclipse, and then just copied the contents (res, src and AndroidManifest.xml) from the SDK folder into the new Eclipse project.

Related

android studio how to import custom java class from other module(package)?

i'm trying to use opensource android project
https://github.com/ksoichiro/Android-ObservableScrollView
so i cloned library module(there exist ObservableGridView, ...)
but i can't import that libraries... i don't know what is is and how to do. please help me.
but... i don't know how can i show my problem. i'm working in develop company so this code should not be shown...
1) First of all keep library parallel with your android project
For eg: My library name is mylibs and it is located under D:\Android_Workspace
So My project must be located under D:\Android_Workspace and my android project's name is MyApp
But both will be parally located
2) Ill recommend you to see this video => https://www.youtube.com/watch?v=1MyBO9z7ojk
It will explain all steps clearly
Try
Go to File -> New Module, a new dialog 'Create New Model' will be opened
Select 'Import Gradle project'
Press Next button
Select source directory
Finish

How to add library project to an existing android project in AndroidStudio

how can I add a custom library project (in my example the CuXtomCam library) to an existing android project using Android Studio 1.1?
I've read about changing the build.gradle file. But where should I place the library ressources?
Thank you in advance for all answers and comments!
To import library into Android Studio:
select File > Import, and then select the directory containing the project to import.
a wizard will open and guide you through the rest of the import process.
When the project import has finished, it will open up a file called "import-summary.txt" which lists all the steps taken during import and suggestions for next steps. For example, it may note files that were not migrated, it may note missing components in your SDK install, and so on.
Just right click on the project then New>Module. from the new window select Import existing project. Give the directory. I think this will help

Install ActionBar-PullToRefresh on eclipse without gradle

I'm trying to install the ActionBar-PullToRefresh whithout the gradle. I download the source and I go on Import->Existing Android Code Into Workspace but for a reason I don't know it doesn't let me to import it (see image below). I see other posts and the solution was to import it like this way but for me doesn't work. I'm new and I'm sorry for this dump question. Thanks :)
Because you already have projects named main and MainActivity in your workspace.
Click on every projects path and then click on it's name and change it.

I have an android project source code, but eclipse can't detect it to import

-I have this source code of project and i uploaded it on Dropbox.
Project Source Code
-What i want to do to make exlipse to detect it and i import it to my projects list but nothing is showing in detections in both import projects and existing android code
I'm using adt-bundle-windows-x86_64-20140321
I'm sorry if this a noob question and thanks in advance.
I tried it in my pc and it works well. The project is not the problem.
A common mistake is to copy the project in your workspace and try to import it in Eclipse from there. I don't know if it is a bug or not but it won't work.
Try to unzip the project in a folder on your Desktop and try to import it from there. When you select it, check the box "Copy project into workspace" if you want to have it in your workspace folder.
Have you tried to create a new : "Android project from existing source" ?
I suppose you did but to be sure, here is the way to make it :
http://techforpassion.blogspot.fr/2013/03/Eclipse-create-project-from-existing-source.html
Hope this can help

Why can't I import google play services into eclipse?

I am trying to import the google-play-services_lib into Eclipse but I am not able to import it as I am getting the following warning no projects are found to import. Can anyone suggest a solution to this? Please give step by step instructions as I am a newbie.
You can import android project in two ways,
In your case I suggest you to use 2nd way.
Note, the Android project which doesnt contain .class file, .project file can be import using 2nd option. In all other cases 1st option is better.
Delete project (google_play_services) from SDK Manager then reinstall project (google_play_services) and import.
You should choose option to 'Create project from existing source' from File->New->Android Project

Categories

Resources