Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 Android 和纯 Java 项目。我想在 Android 中使用纯 java 项目中的代码 - 我应该如何使用链接源选项来执行此操作?我不希望 java 构建路径中的“项目”选项卡,因为它有时不起作用。
选择一:
选择二:只需将代码复制到您的 android 项目。
使用库项目。使用源代码在eclipse中创建一个Android项目。将其标记为库项目,其他 Android 项目将能够将该库项目添加到它们的依赖项中。
我得到了需要使用 preg match all 提取超链接标签内的值的 html 内容。我尝试了以下但我没有得到任何数据。我包含了一个示例输入数据。你们能帮我修复这段代码并在 play.asp?ID=(例如:我想从 play.asp?ID= 12345获取这个值12345)前面打印所有