• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Using Sample Code

bcap

Lurker
Hi,

I am a newbie so thank you for your patience in advance.

I am using Eclipse and trying to run one of the examples. However, when I do, it generates many errors.

I am trying to test using the AlarmController.java file. Do I need to create a project with all the same names and classes within this java file? Or is there a project already created somewhere in the SDK I should be trying to run?

Any thoughts and/or advice is much appreciated.

Thank you for you help!
 
Being new myself I understand your frustration. It always helps if you post the code you are working with. Just make sure to use the code tags
 
Hi,

Do you know where can I find the source code the Clock App is based on? The file below does not seem to be what I need actually. I have downloaded the SDK but am having a hard time finding it.
 
Hard to tell without the actual error message :)

The way to run sample projects is


In Eclipse: New -> Project -> Android Project.

You now have to select "create project from existing source" and select the root directory of the sample project (the one with AndroidManifest.xml). This step will create the eclipse project files for an android project and everything that is needed to build the sample.
 
Back
Top Bottom