• 大小: 42KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-11
  • 语言: Java
  • 标签:

资源简介

voip应用上层UIjava代码voip应用上层UIjava代码

资源截图

代码片段和文件信息

/*
* Filename   : com.android.VoIPPhone.AllVideoCallEndScreen.java
* Copyright  :
* Description: End call screen for VoIPPhone app
* Author     :
*/
package com.android.VoIPPhone;

import android.app.Activity;
import android.os.Bundle;
import android.text.format.DateUtils;
import android.util.Log;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import android.widget.Toast;
import android.app.ActivityManager.RunningAppProcessInfo;
import java.util.List;

public class AllVideoCallEndScreen extends Activity {
    /** Called when the activity is first created. */
    private static final String TAG = “AllVideoCallEndScreen“;
    private static final boolean DBG = true;
    private TextView mCallTime;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Hidetitle();
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.video_call_end_screen);

        if (AllVideoCallingScreen.getInstance() != null)
            AllVideoCallingScreen.getInstance().finish();
        if (AllVoiceCallingScreen.getInstance() != null)
            AllVoiceCallingScreen.getInstance().finish();
        if (AllVideoScreen.getInstance() != null)
            AllVideoScreen.getInstance().finish();
        if (AllVoiceScreen.getInstance() != null)
            AllVoiceScreen.getInstance().finish();
        if (AllVideoComingScreen.getInstance() != null)
            AllVideoComingScreen.getInstance().finish();
        if (AllVoiceComingScreen.getInstance() != null)
            AllVoiceComingScreen.getInstance().finish();

        mCallTime = (TextView) findViewById(R.id.calltime);
        mCallTime.setText(DateUtils.formatElapsedTime(SIPPhoneApp.mStartTime));
        SIPPhoneApp.mStartTime = 0;
        SIPPhoneApp.callOver = true;
        // SIPPhoneApp.hangupflag = false;
       // log(“----------------AllVideoCallEndScreen---+==========-----------“);

        checkBusyLine();
        checkerviceUnavailable();
        SIPPhoneApp.serviceunavailableFlag = false;
        SIPPhoneApp.busyLineFlag = false;
        new Thread() {
            public void run() {
                try {
                    Thread.sleep(4000);
                } catch (Exception e) {
                } finally {
                    AllVideoCallEndScreen.this.finish();

                    android.os.Process.killProcess(android.os.Process.myPid());
                }
            }
        }.start();
    }

    private void checkBusyLine() {
        if (SIPPhoneApp.busyLineFlag == true) {
        
            Toast toast = Toast.makeText(AllVideoCallEndScreen.this R.string.str_busyline
                    Toast.LENGTH_LONG);
            toast.setGravity(Gravity.CENTER 0 0);
            toast.show();
        }
    }

    private void checkerviceUnavailable() {
        if (SIPPhoneApp.serviceunavailableFlag == true) {
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      34717  2011-10-20 14:32  voiip\AllVoiceCallingScreen.java

     文件       7562  2011-10-20 14:32  voiip\AllVoiceComingScreen.java

     文件       6418  2011-10-20 14:32  voiip\AllVoiceScreen.java

     文件       4618  2011-10-20 14:32  voiip\ButtonGridLayout.java

     文件       4834  2011-10-20 14:32  voiip\CallCard.java

     文件       2533  2011-10-20 14:32  voiip\CallTime.java

     文件        720  2011-10-20 14:32  voiip\Common.java

     文件       9898  2011-10-20 14:32  voiip\IpIncallScreen.java

     文件      14122  2011-10-20 14:32  voiip\PhoneUtils.java

     文件       1540  2011-10-20 14:32  voiip\ProcessUtils.java

     文件       2640  2011-10-20 14:32  voiip\SearchMP3.java

     文件      20818  2011-10-20 14:32  voiip\SIPPhoneApp.java

     文件       4134  2011-10-20 14:32  voiip\VoipPreference.java

     文件       3411  2011-10-20 14:32  voiip\AllVideoCallEndScreen.java

     文件      45842  2011-10-20 14:32  voiip\AllVideoCallingScreen.java

     文件       8002  2011-10-20 14:32  voiip\AllVideoComingScreen.java

     文件       6473  2011-10-20 14:32  voiip\AllVideoScreen.java

     目录          0  2011-11-14 22:12  voiip

----------- ---------  ---------- -----  ----

               178282                    18


评论

共有 条评论

相关资源