1. Download our Official Android App: Forums for Android!

Support HTC Explorer android.net.sip support for developing apps

Discussion in 'Android Devices' started by heartbyte101, May 31, 2012.

  1. heartbyte101

    heartbyte101 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 31, 2012

    May 31, 2012
    2
    0
    5
    Can anyone please tell me if the phone HTC Explorer(HTC Explorer Product Overview - HTC Smartphones) allows the use of the android.net.sip API. What I mean is, will writing an application using that API work out of the box on that phone, without having to root the phone or modify android OS system files?

    If anyone has this phone and would be kind enough to try a demo application like SipDemo or better yet try calling the static methods isApiSupported and isVoipSupported of the SipManager class to see if the API can be accessed, I would appreciate it very much.

    To spare you some time, this is an activity that logs if the API is accessible or not:

    Code (Text):
    1.  
    2. package voip.test;
    3.  
    4. import android.app.Activity;
    5. import android.net.sip.SipManager;
    6. import android.os.Bundle;
    7. import android.util.Log;
    8. import android.widget.Toast;
    9.  
    10. public class SipTestActivity extends Activity {
    11.  
    12.     private static final String TAG = "voip_test";
    13.  
    14.     @Override
    15.     public void onCreate(Bundle savedInstanceState) {
    16.         super.onCreate(savedInstanceState);
    17.         setContentView(R.layout.main);
    18.  
    19.         if (SipManager.isApiSupported(this) && SipManager.isVoipSupported(this)) {
    20.             Log.d(TAG, "supported");
    21.             Toast.makeText(this, "supported", Toast.LENGTH_LONG).show();
    22.         } else {
    23.             Log.d(TAG, "not supported");
    24.             Toast.makeText(this, "not supported", Toast.LENGTH_LONG).show();
    25.         }
    26.     }
    27. }
    28.  
    I have also attached a zip archive containing a self-signed application that uses the previous activity code and when run, logs and toasts the status of the API.

    Any help with this, would be much appreciated! Thanks
     

    Attached Files:


    Advertisement

  2. Rush

    Rush {<>}~{<>}
    Rank:
    None
    Points:
    1,043
    Posts:
    18,741
    Joined:
    Jan 31, 2011

    Jan 31, 2011
    18,741
    3,162
    1,043
    Male
    Entrepreneur / Business Owner - Freelance Writer
    Loganville, GA
    Hello and welcome aboard. Thanks for being apart of the community.

    I've moved your thread over to its area of support for some better responses. :)
     
    heartbyte101 likes this.
  3. heartbyte101

    heartbyte101 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 31, 2012

    May 31, 2012
    2
    0
    5
    Thanks, any help regarding my question would also be appreciated :)
     
Tags:

Share This Page

Loading...