首页 > 移动平台
android----RadioGroup
XML代码: java代码:manRadio=(RadioButton)findViewById(R.id.manRadio); womanRadio=(RadioButton)findViewById(R.id.womanRadio); sexGroup=(RadioGroup)findViewB...
分类:移动平台   时间:2014-02-19 21:14:54    收藏:0  评论:0  赞:0  阅读:376
Android 界面设计 java.lang.NullPointerException 异常的解决方法
如果升级到最新的SDK 19后 ,有可能在界面设计那,出现这些异常。java.lang.NullPointerException at com.android.layoutlib.bridge.impl.RenderSessionImpl.getDefaultProperties(RenderSes...
分类:移动平台   时间:2014-02-19 20:58:48    收藏:0  评论:0  赞:0  阅读:1413
转:Windows下载Android源码
原文来自于:http://blog.csdn.net/hlf48641715/article/details/7188450下载msysgit,安装官方下载:http://code.google.com/p/msysgit/downloads/list,打开Git Bash,执行命令cd D:git...
分类:移动平台   时间:2014-02-19 20:28:24    收藏:0  评论:0  赞:0  阅读:410
AbstractRefreshableConfigApplicationContext
/** * Resolve the given path, replacing placeholders with corresponding * system property values if necessary. Applied to config locations. * @param p...
分类:移动平台   时间:2014-02-19 19:46:19    收藏:0  评论:0  赞:0  阅读:465
Android实现本地推送通知的解决方案
废话不多说,直接进入正题.一、自己写代码创建通知,可以参考以下代码: NotificationManager nm=(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); String title = "通知标题" ...
分类:移动平台   时间:2014-02-19 19:39:00    收藏:0  评论:0  赞:0  阅读:448
Android4.4 如何控制闪光灯
最近刚开始学习Android应用开发,最近突然想写一个简洁的手电筒程序自用,通过网上的示例让我很轻松的写出了一个简单的小程序,只有简单的开关闪光灯的功能,通过Camera控制的闪光灯,相信大家都可以很容易的在网上看到相关代码,这里就不进行赘述了。如果你碰到了在4.4的手机上无法开启闪光灯的问题,那这...
分类:移动平台   时间:2014-02-19 19:37:35    收藏:0  评论:0  赞:0  阅读:251
Android Intent 总结
1、调用拨号程序:1 // 给移动客服10086拨打电话2 Uri uri = Uri.parse("tel:10086");3 Intent intent = new Intent(Intent.ACTION_DIAL, uri);4 startActivity(intent);2、调用彩信或短信...
分类:移动平台   时间:2014-02-19 19:36:23    收藏:0  评论:0  赞:0  阅读:277
目前的Android恶意软件分类
Current Android Malware Here is the full list of Android-Malware-Families with their corresponding reports from our mobile-sandbox-system. We will try to keep this table up-to-date. We took one sa...
分类:移动平台   时间:2014-02-19 18:45:48    收藏:0  评论:0  赞:0  阅读:677
Android作为HTTP服务器--NanoHTTPD源码分析
欢迎访问个人开发论坛:http://jwzhangjie.com 专注盒子开发 @jwzhangjie NanoHTTPD源码以及解释 package com.jwzhangjie.shafa.market.remotesetup; import java.io.BufferedReader; import java.io.ByteArrayInputStream; impo...
分类:移动平台   时间:2014-02-19 18:51:10    收藏:0  评论:0  赞:0  阅读:898
[转]Android学习笔记之AndroidManifest.xml文件解析
一、关于AndroidManifest.xmlAndroidManifest.xml 是每个android程序中必须的文件。它位于整个项目的根目录,描述了package中暴露的组件(activities, services, 等等),他们各自的实现类,各种能被处理的数据和启动位置。 除了能声明程序中...
分类:移动平台   时间:2014-02-19 18:35:08    收藏:0  评论:0  赞:0  阅读:321
[转]Android详细的对话框AlertDialog.Builder使用方法
我们在平时做开发的时候,免不了会用到各种各样的对话框,相信有过其他平台开发经验的朋友都会知道,大部分的平台都只提供了几个最简单的实现,如果我们想实现自己特定需求的对话框,大家可能首先会想到,通过继承等方式,重写我们自己的对话框。当然,这也是不失为一个不错的解决方式,但是一般的情况却是这样,我们重写的...
分类:移动平台   时间:2014-02-19 18:33:19    收藏:0  评论:0  赞:0  阅读:369
Android 控件在布局中按比例放置[转]
转自:http://netsky1990.blog.51cto.com/2220666/997452在Android开发中常用到线性布局LinearLayout对界面进行具体的创建,其中android:layout_weight这个属性很重要,它可以按照程序员的控制,根据终端屏幕的大小,以相应的比例...
分类:移动平台   时间:2014-02-19 18:17:13    收藏:0  评论:0  赞:0  阅读:342
EF6 Code First & Auto Migration on Appharbor
之前不小心看到EF的code first在appharbor上进行migration的时候比较麻烦,今天碰巧也要更新数据库了,顺便试试。modify modelpublic class SiteInfo : Entity{ [JsonProperty("id")] public string Use...
分类:移动平台   时间:2014-02-19 18:13:32    收藏:0  评论:0  赞:0  阅读:513
android dialog 原来dialog对话框也有自己的按键监听事件 onKeyDown方法
探讨在一个activity中按menu键时弹出自己定义的dialog(自定义菜单对话框)时,再按一次手机的menu键发现这个自定义的dialog菜单并没有关闭,原来是这个dialog内部也有onKeyDown监听方法,当dialog在最上层也就是处于焦点的时候,activity中的onKeyDown...
分类:移动平台   时间:2014-02-19 18:11:33    收藏:0  评论:0  赞:0  阅读:3005
android dialog点击其他区域消失
只需调用dialog对象的setCanceledOnTouchOutside方法,传入参数为true即可。如下代码实现://点击其他区域dialog消失menuDialog.setCanceledOnTouchOutside(true);
分类:移动平台   时间:2014-02-19 18:12:04    收藏:0  评论:0  赞:0  阅读:428
Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml
解决方法来源:http://www.cnblogs.com/kaka-bing/archive/2012/10/31/2747490.html问题描述:使用Android SDK Manager检查在线更新,提示一下错误:"Failed to fetch URL https://dl-ssl.goo...
分类:移动平台   时间:2014-02-19 18:07:04    收藏:0  评论:0  赞:0  阅读:497
mono for android 用ISharedPreferences 进行状态保持 会话保持 应用程序首选项保存
由于项目需要 要保持用户登录状态 要进行状态保持 用途就好像asp.net的session一样登录的时候进行保存ISharedPreferences shared = GetSharedPreferences("UserName", FileCreationMode.Private); string...
分类:移动平台   时间:2014-02-19 17:34:27    收藏:0  评论:0  赞:0  阅读:400
Android开发实践:Java层与Jni层的数组传递
Android开发中,经常会在Java代码与Jni层之间传递数组(byte[]),一个典型的应用是Java层把需要发送给客户端的数据流传递到Jni层,由Jni层的Socket代码发送出去,当然,Jni层也需要把从Socket接收到的数据流返回给Java层。我简单地总结了一下,从Java层到Jni层,从Jni层到JAVA..
分类:移动平台   时间:2014-02-19 18:05:23    收藏:0  评论:0  赞:0  阅读:419
Android style 的继承
对于Android的style的XML文件同样也可以继承比如下面的CodeFont的style样式:<?xmlversion="1.0"encoding="utf-8"?><resources><stylename="CodeFont"parent="@android:style/TextAppearance.Medium"><itemname="android:layout_width">fill_parent<..
分类:移动平台   时间:2014-02-19 17:57:46    收藏:0  评论:0  赞:0  阅读:373
安卓开发中碰到的一些常见问题
1.findViewById()找到非空控件的前提条件1)必须在setContentView(R.layout.xxx);之后执行2)传入参数id必须在xxx布局中存在2.Unabletoresolvetarget‘android-16‘不能解决编译版本16的目标文件的编译问题3.XXX类名cannotberesolvedtoatype在jar包中找不到XXX类
分类:移动平台   时间:2014-02-19 17:56:27    收藏:0  评论:0  赞:0  阅读:296
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!