Go Back   Android Forums > Android Phones > HTC Explorer

 
 
LinkBack Thread Tools
Old May 31st, 2012, 05:52 AM  
New Member
Thread Author (OP)
 
Join Date: May 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation HTC Explorer android.net.sip support for developing apps

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:
package voip.test;

import android.app.Activity;
import android.net.sip.SipManager;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class SipTestActivity extends Activity {

    private static final String TAG = "voip_test";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        if (SipManager.isApiSupported(this) && SipManager.isVoipSupported(this)) {
            Log.d(TAG, "supported");
            Toast.makeText(this, "supported", Toast.LENGTH_LONG).show();
        } else {
            Log.d(TAG, "not supported");
            Toast.makeText(this, "not supported", Toast.LENGTH_LONG).show();
        }
    }
}
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
File Type: zip SipTest.apk.zip (35.3 KB, 2 views)

Advertisements
heartbyte101 is offline  
sponsored links
Old May 31st, 2012, 06:36 AM  
{<>}~{<>}
 
Rush's Avatar
 
Join Date: Jan 2011
Location: Loganville, GA
Gender: Male
Posts: 18,663
 
Device(s): HTC One M7 / HTC One M8
Carrier: Sprint One

Thanks: 2,928
Thanked 3,165 Times in 2,380 Posts
Default

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.
__________________
"Accept the things you cannot change, have the courage to change the things you can ...And have the Wisdom to know the difference".


Rush is offline  
The Following User Says Thank You to Rush For This Useful Post:
heartbyte101 (May 31st, 2012)
Old May 31st, 2012, 07:15 AM  
New Member
Thread Author (OP)
 
Join Date: May 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rush Lindsay View Post
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.
Thanks, any help regarding my question would also be appreciated
heartbyte101 is offline  
 

HTC Explorer
Current Rating:
Rate this Phone:

The HTC Explorer is an Android 2.3.5 device featuring a 3.2-inch HVGA display, 3MP camera, and 600MHz processor. Not a blazing powerhouse by any means, the Explorer looks to cut into the segment of the smartphone market dominated by low-cost altern... Read More

Tags
explorer, htc, sip

Go Back   Android Forums > Android Phones > HTC Explorer
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:04 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.