魅力程序猿

  • 首页
  • Java
  • Android
  • APP
    • 扑克计分器
    • Video Wallpaper
  • 联系我
  • 关于我
  • 资助
道子
向阳而生
Android

RadioGroup Checked Child

int _RadioButtonId = mRadioButtonGroup.getCheckedRadioButtonId(); View _RadioButton = mRadioButtonGroup.findViewById(_RadioButtonId ); int _Idx = mRadioButtonGroup.indexOfChild(_RadioButton); ((RadioButton)mRadioButtonGroup.getChildAt(_Idx)).setChecked(true); …

2016年3月31日 2条评论 3937点热度 0人点赞 daozi 阅读全文
Android

MediaRecorder no record audio

MediaRecorder进行录屏或摄像是怎么关闭声音?那是关闭Mic?不是的,这样根本不起作用。其实,最简单的方法就是不进行设置声音相关参数,就OK了。 pMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); pMediaRecorder.setAudioSamplingRate(44100); pMediaRecorder.setAudioEncodingBitRate(96000); pMediaRecorder.setAudioEncode…

2016年3月31日 2条评论 5003点热度 0人点赞 daozi 阅读全文
Android

RecyclerView IndexOutOfBoundsException: Inconsistency detected. Invalid item position

RecyclerView notifyItemRangeChanged(0, pChannels.size()); 出现下面异常: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{f1265e3 position=4 id=-1, oldPos=1, pLpos:1 scrap [attachedScrap] tmpDetached no paren…

2016年3月22日 6条评论 13718点热度 0人点赞 daozi 阅读全文
Android

Android 显示触摸操作代码

搜索关键字“Android 显示触摸操作代码”,结果都是进入设置页面的开发者模式下进行打开。其实,想用代码进行控制。那就搜索“android  show visual feedback for touches”,OK,这就可以找到想要的结果了。 代码如下: To enable show touches: Settings.System.putInt(context.getContentResolver(), "show_touches", 1); To disable show touches: Settings.…

2016年3月18日 0条评论 7559点热度 0人点赞 daozi 阅读全文
Android

PreferenceFragment public void onAttach(Context pContext) not work

public class FragmentSetting extends PreferenceFragment {} @Override public void onAttach(Context pContext) { //not working super.onAttach(pContext); if (pContext instanceof AppCompatActivity){ mActivity = (AppCompatActivity)pContext; } } @Override public void…

2016年3月17日 0条评论 4432点热度 0人点赞 daozi 阅读全文
Android

Starting EasterEgg intent in Android

adb: adb root adb shell am start -n android/com.android.internal.app.PlatLogoActivity is ok __________________________________________________________ intent: Intent _intent = new Intent(Intent.ACTION_MAIN); _intent.setClassName("android", "com.android.interna…

2016年3月2日 0条评论 5598点热度 0人点赞 daozi 阅读全文
Android

Android Normal and Dangerous Permissions

只是备注一下。 原文地址:http://developer.android.com/intl/zh-cn/guide/topics/security/permissions.html System permissions are divided into several protection levels. The two most important protection levels to know about are normal and dangerous permissions: Normal permi…

2016年3月2日 1条评论 4294点热度 0人点赞 daozi 阅读全文
搜索
联系方式

QQ群:179730949
QQ群:114559024
欢迎您加入Android大家庭
本人QQ:136049925

赐我一丝安慰
给我一点鼓励

最新 热点 随机
最新 热点 随机
解决Android 7及以上Notification.contentView为null问题 彻底解决git命令免密问题 隐藏ScrollView、RecyclerView等滚动条和去掉滑动到边界阴影的方案 Android Studio 3.4 编译Release版本广点通所有广告不显示 Android中使用System的getProperty()方法及获取Android内核版本信息 弄清楚INSTALL FAILED CONFLICTING PROVIDER问题
colorAccent,colorPrimary,colorPrimaryDark……来这里你就明白了 Android的Binder机制 解决Android 7及以上Notification.contentView为null问题 Android面试题2--Activity数据的保存和恢复 对Android Studio 生成的包自动重命名 解决Unity执行mUnityPlayer.quit() 导致APP退出
最近评论
宝宝 发布于 7 年前(02月27日) 哈哈哈哈
GPU Mining 发布于 7 年前(02月19日) I am just starting to learn about all of this. Tha...
Timothynix 发布于 7 年前(02月08日) Your place is valueble for me. Thanks!… http:...
趣头条 发布于 7 年前(02月08日) 鸟儿叫,花儿笑,一年一季春来到!
xing1982 发布于 7 年前(02月04日) 不错不错!内容感觉好极了!

COPYRIGHT © 2023 魅力程序猿. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15000477号