求助 !!!!!!!
帮忙分析下啥问题
在2.3和4.2上试过都不行 一单击按钮就停止运行了
帮忙分析下啥问题
在2.3和4.2上试过都不行 一单击按钮就停止运行了
解决方案 »
- 百分求助。在线等。如何获取外接键盘的连接状态
- listview中item添加OnGestureListener监听
- 自定义View编译失败。Binary XML file line #255: Error inflating
- 跨平台开发环境(UDE)最新版本出炉啦!!!
- 请教: android 如何获取手机的当前信号强度
- 在模拟器上可以读取网络上的内容,但手机上不行
- 如何响应 乐phone的默认“返回”按钮
- 求教MonoForAndroid的基础问题!
- Gson 解析数据问题 !!! 求解决阿!!
- 同样的TextView,为什么设置的background不同,导致显示的text也不同了
- Email的铃声一直响
- 很诡异,空指针异常
public void onClick(View view)
{
Intent i=new Intent(getApplicationContext(),AllProductsActivity.class);
Log.e("log_tag","View Product Intent reading...");
startActivity(i); //就是这块的问题
Log.e("log_tag","View Product Intent ok...");
}
});
另外
new Intent(getApplicationContext(),AllProductsActivity.class);
改成
new Intent(this,AllProductsActivity.class);
好像getApplicationContext()在某些情况下启动不了activity来着……