如何在不同的设备上运行终止于Android的放映应用程序 [英] How to terminate app in Android Studio-- app running on separate device

查看:237
本文介绍了如何在不同的设备上运行终止于Android的放映应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该应用程序运行很好,但似乎没有一种方法来终止它。有一个终止应用程序按钮,但它是灰色的,因为在这里看到:

The app runs great, but there doesn't seem to be a way to terminate it. There is a "Terminate Application" button, but it's greyed out, as seen here:

我已经试过pressing的家庭和对设备多次后退按钮,没有效果。

I've tried pressing the Home and the Back buttons on the device many times, to no effect.

该应用程序是从第二个教训在Android Studio的教程,所以它是code(这是世界您好后一节课),最低限度的金额。该问题是,有没有的OnClose()事件,所以它只是保持运行?

The app is from the second lesson in the Android Studio tutorials, so it's the bare minimum amount of code (it's one lesson after Hello World). Is the problem that there's no onClose() event, so it just keeps running?

编辑:我要补充一点,我认为它仍然在运行,因为消息是通过调试还来。虽然它只是想到我 - 是调试器只是听设备,并且这些消息不会从我的节目来了,但都只是背景信息从设备?

I should add that I think it's still running because messages are still coming through the debugger. Although, it's just occurred to me-- is the debugger simply listening to the device, and those messages aren't coming from my program, but are just background messages from the device?

EDIT2:解决感谢德克斯特。您需要终止按钮,前选择进程名(com.mycompany.myfirstapp)将被激活。

Solved thanks to dexter. You need to select the process name (com.mycompany.myfirstapp) before the terminate button will become active.

推荐答案

您需要选择过程 com.mycompany.myfirstapp <​​/ code>然后preSS在终止应用程序按钮。

这篇关于如何在不同的设备上运行终止于Android的放映应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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