如何让一个activity界面在监听响应后最前端显示?挡住其它界面。
解决方案 »
- 【急】请教:把程序切到后台,过了几个小时之后,程序 不能使用了
- android有哪些可以用的chart开发包?
- System.loadLibrary 超时求教...
- RadioButton布局问题!
- 小妹求助TabHost背景图片示例!
- android系统中,连续点击按钮,界面会弹出ANR或者逻辑顺序乱掉
- 有关Android相机实时处理的问题
- android app开发 列表背景色
- android 波形图显示(需要XY轴支持并且变更XY轴位置)
- 安卓setlistadapter问题
- Could not find class 'org.ksoap2.serialization.SoapObject'
- Android实现类似微博的换肤功能
正常情况下,跳转到一个Activity后,这个Activity肯定会挡住其它的界面啊
class Listener extends PhoneStateListener {
public void onCallStateChanged(int state, String incomingNumber) {
switch (state) {
case TelephonyManager.CALL_STATE_IDLE:
break;
case TelephonyManager.CALL_STATE_OFFHOOK:
break;
case TelephonyManager.CALL_STATE_RINGING:
//从http上取得主叫相关信息
CallerInfo callerinfo = new CallerInfo(incomingNumber);
calldata = callerinfo.getCallerInfo(); //来电界面
Intent intent = new Intent();
intent.setClass(CallArr.this, ViewCallInfo.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(CallArrService.CallerInfo_Key,calldata);
startActivity(intent);
break;
}
super.onCallStateChanged(state, incomingNumber);
}
}如果去掉从http上取得主叫相关信息的代码,来电时能同步显示个性化界面;如果加上就不显示个性化界面了,被系统的来话挡住了,挂机后才会显示,不能和系统来电同步显示。