首页 > 移动平台
Android学习笔记-常用控件
单选按钮Radio<RadioGroup android:id="@+id/genderGroup" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <RadioButton android:id="@+id/femaleButton" android:layout_width="wrap_content" android:..
分类:移动平台   时间:2014-11-19 02:16:12    收藏:0  评论:0  赞:0  阅读:327
Android学习笔记-Handler的使用
点击Start按钮,每隔3秒在Logcat里打印一句话<Button android:id="@+id/startButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Start"/> <Button android:id="@+id/endButton" android:layout_width="fill_parent" a..
分类:移动平台   时间:2014-11-19 02:06:23    收藏:0  评论:0  赞:0  阅读:204
【Android】Android中AlertDialog用法大全
Android中AlertDialog用法大全...
分类:移动平台   时间:2014-11-19 01:57:41    收藏:0  评论:0  赞:0  阅读:535
Android天气预报+百度天气接口
首先 在准备编写程序之前有几点准备工作 1首先需要调节Android的DNS地址。(这个我会在末尾提及) http://www.eoeandroid.com/forum.php?mod=viewthread&tid=309756&page=1#pid3230430 2Android中的SMS短信的控制。(这个我会在末尾提及) http://blog.csdn.net/xieqibao/...
分类:移动平台   时间:2014-11-19 01:57:01    收藏:0  评论:0  赞:0  阅读:346
android圆角View实现及不同版本这间的兼容
在做我们自己的APP的时候,为了让APP看起来更加的好看,我们就需要将我们的自己的View做成圆角的,毕竟主流也是将很多东西做成圆角,和苹果的外观看起来差不多,看起来也还不错。 要将一个View做成圆角的也很容易,只需要建立一个自定义的Drawable就可以了。 我们在res/drawable下面建立一个shape的drawable,代码如下: [ht...
分类:移动平台   时间:2014-11-19 01:56:41    收藏:0  评论:0  赞:0  阅读:205
android4.x环境搭建
(一)、工具准备 1.下载JDK         JDK即Java Development Kit(Java开发工具包),包括JAVA运行环境,基础类库和JAVA工具,是JAVA运行的基础。 网址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 找到下载JDK的链接:(2013年7月)...
分类:移动平台   时间:2014-11-19 01:56:11    收藏:0  评论:0  赞:0  阅读:321
Android应用检查更新总结
每一个应用在进入主界面之间应该有一个界面用来显示公司或者团队的信息,介绍软件,并检查更新,及时提醒用户更新最新版本,获得更多更好的用户体验。本文将对该实现进行总结,以后用到就不要到处找自己写的项目了。 习惯上我们把实现该功能的类定义为splashActivity。 进入该界面就应该初始化一些数据,比如复制文件到系统目录,复制打包的数据库到系统目录,检查软件版本是否进行更新等。 1、复制文件到...
分类:移动平台   时间:2014-11-19 01:55:41    收藏:0  评论:0  赞:0  阅读:329
ohasd failed to start: Inappropriate ioctl for device
今天同事在安装GI的时候出现问题,让我帮忙看一下。下面记录如下: 问题现象: 在安装gi的时候执行root.sh报如下错误; Finished running generic part of root.sh script. Now product-specific root actions will be performed. 2014-11-18 15:19:34: Checking ...
分类:移动平台   时间:2014-11-19 01:53:41    收藏:0  评论:0  赞:0  阅读:539
巧用Drawable 实现Android UI 元素间距效果
在进行Android开发的时候,常常要用到View 的margin 属性。但有时候界面的UI元素需要根据业务逻辑来确定隐藏或者显示的状态时,之前设置margin会破坏之前的对齐效果。那么,这个时候该如何设置Android UI元素之间的间距呢?...
分类:移动平台   时间:2014-11-19 01:52:51    收藏:0  评论:0  赞:0  阅读:287
关于iphone6/5/4s 在iOS8.0系统下 只读@3x图片
've tried in a sample project to use standard, @2x and @3x images, and the iPhone 6+ simulator uses the @3x image. So it would seem that there are @3x images to be done (if the simulator actually replicates the device's behavior). But the strange thing is ...
分类:移动平台   时间:2014-11-19 01:50:41    收藏:0  评论:0  赞:0  阅读:340
如何在系统终端app获得root权限
最新因为要调试USB OTG的东西,这样导致USB口被占用,这样,虽然我是工程版本,但是不能执行adb shell,导致无法debug了。 于是我现在了一个系统终端的apk,程序 http://download.csdn.net/detail/zangcf/8172151,解包提取so文件libExec.so,放到system/lib下面,源代码放到。./alps/vendor/mediatek...
分类:移动平台   时间:2014-11-19 01:49:11    收藏:0  评论:0  赞:0  阅读:320
ANDROID版本号和版本名称的重要性介绍
转载请注明出处,来自【http://blog.csdn.net/y150481863】 当我们在刚开始学习ANDROID的时候,可能不会过多的关注这个位于manifest.xml文件中的versionCode和versionName。 但是其实一个好的版本控制,对于我们有至关重要的作用。 现在打算写一点基础的东西,突然想到这个知识点,所以就记录下来,作为笔记。有不够详尽或者错误的地方欢迎指教...
分类:移动平台   时间:2014-11-19 01:48:31    收藏:0  评论:0  赞:0  阅读:288
itween抛物线线性移动
一直以来没时间写博客。今天记录一下itween的抛物线移动用法。...
分类:移动平台   时间:2014-11-19 01:46:41    收藏:0  评论:0  赞:0  阅读:681
android ListView优化
android ListView优化是通过复用历史缓存实现的。listview对应的数据适配器一般用自定义的BaseAdapter子类,复用历史缓存提高性能。示例代码如下: 1、listView数据适配器 /** * 待处理请假信息的数据适配器类 * @author yqq * */ private class LeaveInfoAdapter extends BaseAd...
分类:移动平台   时间:2014-11-19 01:46:21    收藏:0  评论:0  赞:0  阅读:257
JFrame实现批量获取Android安装包安全证书MD5
今天遇到一个需求,获取所有apk的签名的MD5,下面是我使用Java SE实现的一个工具,贴出核心源代码,希望给有需要的朋友有所帮助。界面如下:只需要制定.apk文件所在的目录即可,核心代码如下:public class ReadCmdLine { private static MD5Window window; private static String inputPath; publi...
分类:移动平台   时间:2014-11-19 01:45:32    收藏:0  评论:0  赞:0  阅读:331
android 导航总结
1、继承TabActivity package com.example.yqqmobilesafe; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import...
分类:移动平台   时间:2014-11-19 01:44:01    收藏:0  评论:0  赞:0  阅读:334
android 2048游戏实现
android 的2048小游戏完整实现:GridLayout布局(android 4.0及以上)。 package com.example.y2048; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.ut...
分类:移动平台   时间:2014-11-19 01:41:41    收藏:0  评论:0  赞:0  阅读:407
android百度地图错误---手机显示只有一个框架,没有地图内容。
安卓新手开发百度地图,刚开始就碰到了一个问题,就是里面没有地图信息,只有一个框架而已。如图: 上网寻找说是key的问题,然后重新申请,还是不行。 最后再次看了自己的Manifest文件,发现自己的有问题,放在了新写的Application标签里。应该放在自带的Application里面。然后,就解决了。 部分的Manifest文件: <application ...
分类:移动平台   时间:2014-11-19 01:39:51    收藏:0  评论:0  赞:0  阅读:327
IOS JSON/XML解析
/*---------------------------XML_SAX解析-------------------------------*/ //XML SAX解析 - (IBAction)XML_SAX:(id)sender { NSData *da = [[NSData alloc] initWithContentsOfFile:[[NSBundle mainBundle] pat...
分类:移动平台   时间:2014-11-19 01:38:31    收藏:0  评论:0  赞:0  阅读:261
IOS 网络解析
网络解析同步异步 /*------------------------get同步-------------------------------------*/ - (IBAction)GET_TB:(id)sender {     //1.创建url     NSURL *url = [NSURL URLWithString:@"http://project.lanou3g.com/...
分类:移动平台   时间:2014-11-19 01:37:41    收藏:0  评论:0  赞:0  阅读:357
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!