编写 Android 应用程序时的 Eclipse 调试问题

发布于 2024-09-25 06:22:09 字数 310 浏览 2 评论 0原文

我正在为 Android 编写一个应用程序,它基本上可以在网络上抓取一张大表格的屏幕,并以更好的方式在手机上呈现它。它有 500k 的 html,通常需要大约 20 秒左右。

当我将手机连接到计算机时,我过去只需单击“运行”,我的代码就会以同样快的速度执行,而调试则需要 10 分钟才能完成。

然而,现在,单击“运行”的行为就像调试模式一样......我不想要这种开销,如何让 Eclipse 停止将我的应用程序发送到调试器?我在网上搜索过,发现有几个人有同样的问题,但简单地重新启动手机并不能解决问题,而且我还没有找到其他解决方案。

感谢您提供的任何帮助。

I have an application I am writing for Android that basically does a screen scrape of a large table on the web and presents it in a nicer way on the handset. Its 500k of html and takes about 20 seconds or so normally.

When I have my phone hooked up to the computer, I used to be able to just click on "Run" and my code would execute similiarly speedy, as opposed to Debug where it would take 10 minutes to complete.

Now, however, clicking "run" behaves just like debug mode.... I don't want this overhead, how do I get eclipse to stop sending my app to the debugger already? I have searched online and found a couple people with the same issue, but simply rebooting my phone doesn't fix it, and there have been no other solutions posted that I have found.

Thanks for any help you can give.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空宴 2024-10-02 06:22:09

在您的应用程序清单中,应用程序 XML 标记有一个“可调试”属性。确保它设置为 false。

<?xml version="1.0" encoding="utf-8"?>    
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.test">
    <application android:label="Test App>
      <activity android:name="Test"
        android:debuggable="false">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest> 

In your application manifest, there is an attribute "debuggable" for the application XML tag. Make sure it's set to false.

<?xml version="1.0" encoding="utf-8"?>    
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.test">
    <application android:label="Test App>
      <activity android:name="Test"
        android:debuggable="false">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest> 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文