SipManager.newInstance不工作的安卓姜饼 [英] SipManager.newInstance not working for android Gingerbread
问题描述
我试图使用运行Android 2.3的模拟器一个简单的SIP计划。
I am trying to run a simple SIP program using android 2.3 emulator.
当我想创建SipManager的实例,我得到一个返回值为空(这意味着SIP API不支持)。
When i am trying to create an instance of SipManager i get a return value as null(which means the SIP API isn't supported).
PLS建议我怎么可以在模拟器上测试SIP。
Pls suggest how i can test SIP in emulator.
推荐答案
我得到这个工作对我来说由于下面的问题列表链接:
I got this working for me thanks to the Issues list link below :
HTTP://$c$c.google。 COM / P /安卓/问题/详细信息?ID = 13037
和它为我工作的事情是在这个线程子链接。
and the thing which worked for me is in sub link in this thread.
- 请在系统分区写入。打开cmd窗口,然后输入以下:
模拟器-avd -partition尺寸128 亚行外壳安装邻重新装载,RW -t YAFFS2的/ dev /块/ mtdblock1 /系统
emulator -avd -partition-size 128 adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
- 在启用SIP的支持:
复制2 XMLS从AOSP成文本文件:android.software.sip.xml,android.software.sip.voip.xml,并复制到XMLS模拟器:
Copy 2 XMLs from AOSP into text files: android.software.sip.xml, android.software.sip.voip.xml, and copy XMLs to the emulator:
亚行推android.software.sip.voip.xml /系统的/ etc /权限 亚行推android.software.sip.xml /系统的/ etc /权限
adb push android.software.sip.voip.xml /system/etc/permissions adb push android.software.sip.xml /system/etc/permissions
- 禁用config_sip_wifi_only config.xml中:假
在重新包装资源文件可以在这里找到。它复制到仿真器:
The repacked resource file can be found here. Copy it to the emulator:
亚行推框架res.apk /系统/框架
adb push framework-res.apk /system/framework
- 关闭模拟器,并在正常模式下重新启动它。
或者......一个步骤:下载AVD system.img,并复制到....机器人\ AVD \ .avd文件夹
Or... these steps in one: download the AVD system.img and copy into the ....android\avd\.avd folder.
已知问题:来电都还没有成型
Known issue: incoming calls are not working yet.
这篇关于SipManager.newInstance不工作的安卓姜饼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!