简体   繁体   English

如何从AWT将类导入我的Android项目?

[英]How can I import a class from AWT into my Android project?

I want to import the java.awt.geom.Ellipse2D class because it has got the nice collision detection function .intersect(Rectangle) Can I use that class in my Android project or won't it work because my project is gonna be an android app? 我想导入java.awt.geom.Ellipse2D类,因为它具有不错的碰撞检测功能.intersect(Rectangle)我可以在我的Android项目中使用该类,还是不能工作,因为我的项目将是一个android应用程序吗?

How can I use that class in my project / how can I import that class to eclipse ?(I dont want to import the whole rt.jar file from the java libs folder) 我如何在我的项目中使用该类/如何将该类导入eclipse?(我不想从java libs文件夹中导入整个rt.jar文件)

Can I legaly use that class? 我可以合法使用该课程吗? Has it got a cc license? 它有CC许可证吗?

Android有自己的图形库(android.graphics)。我认为无法导入Ellipse2D ,您必须尝试使用​​android的库,也可以检查awt-android-compat项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM