在Android Eclipse项目运行主 [英] Run main in an Android Eclipse project

查看:120
本文介绍了在Android Eclipse项目运行主的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用了Android包HTML解析一些code。有一个简单的方法来运行在Eclipse中使用的主要方法code,而不与模拟器大惊小怪?

I have some code that uses the android packages for HTML parsing. Is there a simple way to run the code in Eclipse using a main method without fussing with an emulator?

推荐答案

如果你确实想在你的code运行主(让我们说,你有一个常规的运行):
创建另一个Eclipse项目引用了Android code,把你的主要那里。你可以调用不依赖于模拟器的任何类。

If you really do want to run a main over your code (let's say, you got a routine to run): Create another Eclipse project referencing the Android code and put you main there. You'll be able to call any class that do not depend on an emulator.

这篇关于在Android Eclipse项目运行主的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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