Android Open Source - SipgateInfo Call Utils

From Project

Back to project page SipgateInfo.


The source code is released under:

GNU General Public License

If you think the Android project SipgateInfo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.skweez.sipgate;
/*from w ww  .j ava 2  s . c o m*/
import net.skweez.sipgate.api.ECallStatus;

public class CallUtils {

   * Returns the status image for a given call status (missed, outgoing,
   * incoming).
  public static int getImage(ECallStatus status) {
    // FIXME This is a temporary hack
    if (status == null) {
      return R.drawable.ic_call_log_list_incoming_call;

    switch (status) {
    case ACCEPTED:
      return R.drawable.ic_call_log_list_incoming_call;
    case MISSED:
      return R.drawable.ic_call_log_list_missed_call;
    case OUTGOING:
      return R.drawable.ic_call_log_list_outgoing_call;
      throw new IllegalArgumentException();

Java Source Code List