如何开始使用下载的示例code的Andr​​oid项目 [英] How to start an android project with downloaded sample code

查看:110
本文介绍了如何开始使用下载的示例code的Andr​​oid项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pretty的新Android和刚刚完成的设置我的环境和阅读一些教程。然后,我得到了SDK样本来自网络。好吧,我想什么你问的是,有没有办法来启动一个样本作为Eclipse的一个项目?我的意思是想一下在C#或解决方案文件的项目文件。

下面是我解压code我的文件夹, \ Android的SDK-WINDOWS \样本\ Android为8 \记事本

有三个文件夹,文件夹在一个文件中,\资源,\ SRC \测试和AndroidManifest.xml中

或者,做我需要做一个新的Andr​​oid项目并导入(或添加文件?也许)呢?

在此先感谢, yokyo

解决方案
  1. 从日食请访问:文件>新建> 项目...
  2. 选择Android的文件夹,并选择 Android项目
  3. 然后在内容部分的 顶部,单击从创建项目 现有的样本单选按钮。一旦 你从底部选择一个目标 下拉将成为可选 和你的好去。

I'm pretty new to android, and just finished setup my environment and reading some tutorials. Then I got sdk samples from the web. Okay, what I wanna ask you is that is there a way to start a sample as a project in the Eclipse? I mean like clicking a project file in c# or a solution file.

Here is my folder which I unzipped the code, \android-sdk-windows\samples\android-8\NotePad

There are three folders and one file in the folder, \res, \src, \tests, and AndroidManifest.xml

Or, do I need to make a new android project and import (or add files? maybe) them?

Thanks in advance, yokyo

解决方案

  1. From eclipse go to: File > New > Project...
  2. Select the Android Folder and pick Android Project
  3. Then in the Contents section at the top click the "Create project from existing sample" radio button. Once you pick a target from the bottom the drop down will become selectable and your good to go.

这篇关于如何开始使用下载的示例code的Andr​​oid项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆