运行程序时Warning
来源:互联网 发布:淘宝退货运费怎么算 编辑:程序博客网 时间:2024/06/06 07:22
运行程序时提出了这个一个警告:Activity not started, its current task has been brought to the front
package ying.android;import android.app.Activity;import android.os.Bundle;import android.widget.Button;import android.widget.TextView;public class Activity01 extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView myTextView = (TextView)findViewById(R.id.myText) ; Button myButton = (Button)findViewById(R.id.myButton) ; myTextView.setText("My first activity:") ; myButton.setText("My first button test.") ; }}
这应该是你的模拟器中还有东西在运行,也就是你要运行的activity已经有一个在模拟器中运行了。不要以为你的模拟器退出到桌面了就没有东西在跑了。在你调试的时候异常关闭的程序有可能就有activity在运行。解决方法project->clean。 应该就OK了
- 运行程序时Warning
- Python 运行时捕获 Warning
- 连接程序时警告误:warning LNK4089
- 运行galde编写的UI程序时报错:libglade-WARNING **: could not find signal handler 'gtk_reset'.
- 程序运行时
- 程序运行时 线程
- 程序关闭时在#pragma warning(suppress: 4985)处中断
- 程序运行时切换语言
- 程序运行时改变语言
- spark程序运行时问题
- 其实在程序运行时
- 运行时的C程序
- 程序运行时内存分布
- 程序运行时申请权限
- warning C4717: “operator>>”: 如递归所有控件路径,函数将导致运行时堆栈溢出
- android开发 项目运行时Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- 运行程序
- 程序 运行
- linux于unix shell编程指南 (1)
- Datagridview绑定数据并排序后如何获取正确的选择行数据
- linux与unix shell编程(2)
- getCurrentSession 与 openSession() 的区别
- C/C++面试题大汇总
- 运行程序时Warning
- 将下拉表单变成超链接
- suse linux 安装python Eric4
- Spring2.0注解实现事务管理
- Openfire + ConnectionManager 连接正常但客户端操作失败
- [技巧]你会做Web上的用户登录功能吗?
- C#操作数据库备份和还原
- Java IO _字符编码
- 天天想你