想了解如何在LinphoneAndroid中启用G729的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于Android3.0Honeycomb:如何在ActionBar中启用/禁用菜单
想了解如何在Linphone Android中启用G729的新动态吗?本文将为您提供详细的信息,此外,我们还将为您介绍关于Android 3.0 Honeycomb:如何在Action Bar中启用/禁用菜单项?、android – WifiConfiguration在Lollipop中启用网络、android – 如何在Linux上的BIOS和KVM模块中启用VT-x?、android – 如何在ListView onItemLongClick上显示/启用按钮的新知识。
本文目录一览:- 如何在Linphone Android中启用G729
- Android 3.0 Honeycomb:如何在Action Bar中启用/禁用菜单项?
- android – WifiConfiguration在Lollipop中启用网络
- android – 如何在Linux上的BIOS和KVM模块中启用VT-x?
- android – 如何在ListView onItemLongClick上显示/启用按钮
如何在Linphone Android中启用G729
G729 codec for Linphone Android
并将.so文件添加到libs目录中.
我们可以在实际设备上构建Android应用程序,并在设置屏幕中看到G729设置.
但是当我们禁用除G729之外的所有音频编解码器时,我们再也无法拨打电话了.
你能帮我构建和集成G729到Linphone Android吗?
解决方法
希望这对你有用.
Android 3.0 Honeycomb:如何在Action Bar中启用/禁用菜单项?
<item android:id="@+id/men_1" android:title="@string/men_1" android:showAsAction="ifRoom|withText" android:icon="@drawable/ic_menu_1" android:enabled="false"/>
通过< 3.0应用程序上的代码更改它也很容易:
@Override public boolean onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); MenuItem item = menu.findItem(R.id.men_1); item.setEnabled(false); return true; }
但是如何在Android 3.x上执行此操作?
我想根据显示的片段禁用菜单选项.
亲切的问候,
海蜇
解决方法
@Override public void onPrepareOptionsMenu(Menu menu) { MenuItem item= menu.findItem(R.id.men_1); item.setEnabled(false); super.onPrepareOptionsMenu(menu); }
所以片段负责使菜单充气
编辑注意需要调用setHasOptionsMenu(true)
android – WifiConfiguration在Lollipop中启用网络
在kitkat和以下它正在成功工作,但在Lollipop它不工作.
这是代码:
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration wifiConfiguration = new WifiConfiguration(); wifiConfiguration.SSID = "\"testSSID\""; wifiConfiguration.hiddenSSID = true; wifiConfiguration.status = WifiConfiguration.Status.ENABLED; wifiConfiguration.allowedKeyManagement .set(WifiConfiguration.KeyMgmt.NONE); netId = wifiManager.addNetwork(wifiConfiguration); Log.d("WifiPreference","add Network returned " + netId); boolean checkEnableWifi = wifiManager.enableNetwork(netId,true); Log.d("WifiPreference","enableNetwork returned " + checkEnableWifi);
我的测试设备是nexus 5 build number LRX21O,在我的代码或Lollipop上的错误中有什么问题吗?
解决方法
手动禁用其他网络,然后重新连接的WiFi管理器解决了这个问题.
boolean enableNework(String ssid,Context cxt) { boolean state = false; WifiManager wm = (WifiManager) cxt.getSystemService(Context.WIFI_SERVICE); if (wm.setWifiEnabled(true)) { List<WifiConfiguration> networks = wm.getConfigurednetworks(); Iterator<WifiConfiguration> iterator = networks.iterator(); while (iterator.hasNext()) { WifiConfiguration wifiConfig = iterator.next(); if (wifiConfig.SSID.equals(ssid)) state = wm.enableNetwork(wifiConfig.networkId,true); else wm.disableNetwork(wifiConfig.networkId); } wm.reconnect(); } return state; }
android – 如何在Linux上的BIOS和KVM模块中启用VT-x?
我的戴尔Inspiron 15 5000系列笔记本电脑包含英特尔酷睿i5 6200U处理器.我使用的是Windows 10家庭版.它有虚拟化设备,我已经在BIOS中检查了虚拟化,该虚拟化已启用.
但在android studio中,当我运行AVD管理器时,我收到此错误.
Enable VT-x in your BIOS security settings, ensure that you Linux
distro has working KVM modules.
@R_301_5609@:
据我了解,您已经在BIOS中启用了VT-x选项.那很好.因为您已将Linux作为操作系统,所以现在需要安装和配置KVM.
说明:https://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-emulator
KVM Installation
I referred the instructions from Ubuntu community documentation page.
to get KVM installed.To see if your processor supports hardware
virtualization, you can review the output from this command:
$egrep -c '(vmx|svm)' /proc/cpuinfo
If the output is 0 it means that your cpu doesn’t support hardware
virtualization.Next is to install cpu checker:
$sudo apt-get install cpu-checker
Now you can check if your cpu supports kvm:
$sudo kvm-ok
and insert root password
If you see:
“INFO: Your cpu supports KVM extensions KVM acceleration can be used”
这意味着您可以使用KVM更快地运行虚拟机
扩展.
如果你看到:
“INFO: KVM is disabled by your BIOS HINT: Enter your BIOS
setup and enable Virtualization Technology (VT), and then hard
poweroff/poweron your system KVM acceleration can NOT be used”
您需要进入BIOS设置并启用VT.
使用64位内核
建议在主机操作系统上运行64位内核
因为谷歌不再提供对32位内核的支持..这允许
为您的VM提供超过2GB的RAM.另外,一个64位
系统可以托管32位和64位来宾. 32位系统可以
仅托管32位客人.要查看您的处理器是否为64位,您可以
运行此命令:
$egrep -c’lm’/ proc / cpuinfo
如果打印0,则表示您的cpu不是64位.如果1或更高,
它是.注意:lm代表长模式,相当于64位cpu.
现在看看你运行的内核是否是64位,只需发出以下命令即可
命令:
$uname -m
x86_64表示正在运行的64位内核.如果你看到i386,i486,i586
或者i686,你正在运行一个32位内核.
安装KVM
对于Ubuntu Lucid(12.04 LTS Precise)或更高版本:
$sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
如果显示,您可以忽略下面的Postfix配置
选择“无配置”
接下来是将您的帐户添加到组kvm和libvirtd
$sudo adduser your_user_name kvm
$sudo adduser your_user_name libvirtd
安装后,您需要重新登录以便您的用户帐户
成为kvm和libvirtd用户组的有效成员.该
该组的成员可以运行虚拟机.
验证安装您可以测试安装是否成功
使用以下命令:
$sudo virsh -c qemu:///系统列表希望有所帮助.
编辑:由于您可能正在运行Windows而不是Linux,请按照此帖子中的说明进行操作:https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
android – 如何在ListView onItemLongClick上显示/启用按钮
OnItemLongClickListener listener = new OnItemLongClickListener(){ public boolean onItemLongClick(AdapterView<?> av,View v,int position,long id) { Account a = null; a = (Account) av.getItemAtPosition(position); Toast.makeText(AccountActivity.this,"Long Clicked : " + a.getAccountName(),Toast.LENGTH_LONG).show(); //instead of the toast,I need to show/enable a button here... } }; getListView().setonItemLongClickListener(listener);
解决方法
OnItemLongClickListener listener = new OnItemLongClickListener(){ public boolean onItemLongClick(AdapterView<?> av,long id) { Account a = null; a = (Account) av.getItemAtPosition(position); v.findViewById(R.id.btnid).setVisiBility(View.VISIBLE); } };`
关于如何在Linphone Android中启用G729的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于Android 3.0 Honeycomb:如何在Action Bar中启用/禁用菜单项?、android – WifiConfiguration在Lollipop中启用网络、android – 如何在Linux上的BIOS和KVM模块中启用VT-x?、android – 如何在ListView onItemLongClick上显示/启用按钮等相关内容,可以在本站寻找。
本文标签: