最近在做平板项目,需要用到横屏切换,现在把属性贴出来方便以后查看。通常我们的应用只会设计成横屏或者竖屏,锁定横屏或竖屏的方法是在manifest.xml文件中设定属性android:screenOrientation为”landscape”或”portrait”: <activity
android:name="com.example.kata1.MainActivity"...
分类:
移动开发 时间:
2015-03-03 11:46:44
阅读次数:
143
找到http://www.webxml.com.cn/zh_cn/index.aspx,里面有免费提供的手机归属地查询以及天气查询的webservices服务。
使用wsimport -keep SEI地址 把对应的客户端类生成出来。也可以把SEI地址对应的wsdl文档保存到本地,再使用wsimport读取本地的wsdl文档生成客户端类代码。
天气预报:
Client...
分类:
移动开发 时间:
2015-03-03 11:46:51
阅读次数:
338
动态代码布局
如何添加代码布局
代码布局注意的问题
代码布局和XML布局的性能比较...
分类:
移动开发 时间:
2015-03-03 11:45:58
阅读次数:
317
采用下面命令编译,必须确保有对整个project做过编译
1、采用mmm命令:mmm
example: mmm framework/base
2、采用mmm -B
example: mmm -B framework/base
区别在于:-B 代表always rebuilt , 不加...
分类:
移动开发 时间:
2015-03-03 11:42:58
阅读次数:
136
如下是样本,还请根据自身实际需求调整:
For Example(Mms Apn):...
分类:
移动开发 时间:
2015-03-03 11:45:23
阅读次数:
208
一个方法,在APP需要的时候调用该方法即可:
public void createShortcutIconInHomeScreen() {
Intent addIntent = new Intent();
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, new Intent());
addIntent.putExtra(Intent...
分类:
移动开发 时间:
2015-03-03 11:42:22
阅读次数:
127
随着项目越来越多,代码的复用就变得异常重要,这时候就要进行模块化编程,就是把一些通用的组件或者类库做成单独的模块,其他项目直接进行引用就好。针对Android开发最常见的就是Android Library,在Gradle出现之前引用Android Library的方式也很繁琐,但是有了Gradle一切变得非常简单方便。
aar
何为aar?大家都知道jar文件把,如果你有一个Andro...
分类:
移动开发 时间:
2015-03-03 11:44:41
阅读次数:
148
1. 登录到 iPhone Developer Connection Portal(http://developer.apple.com/iphone/manage/overview/index.action )并点击
App IDs
2. 创建一个不使用通配符的 App ID 。通配符 ID 不能用于推送通知服务。例如, com.itotem.iphone
3. 点击App I...
分类:
移动开发 时间:
2015-03-03 11:43:09
阅读次数:
130
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_par...
分类:
移动开发 时间:
2015-03-03 11:42:19
阅读次数:
137
ShareREC for Android v1.0.4 已经发布
版本:V1.0.4 2015-02-28
1、添加对unity3d的支持
2、添加视频质量设置功能
3、添加英语资源
4、优化GLRecorder
5、提高音频视频同步程度
6、优化社区界面
7、修正断点续传超时后无法保存文件的问题
8、修正横屏模式下视频列表可能显示竖屏风格的问题
9、优化各个平台上的Demo...
分类:
移动开发 时间:
2015-03-03 11:40:09
阅读次数:
149
在iOS UILabel,UITextView,UIAlertView等控件中都可以使用
使用方法如下
NSString *s = [NSString stringWithFormat:@"This is a smiley \ue415 %C face",0xE05A];
NSLog(@"11----%@",s);
label.text=s;
以下是对应的表情编码,但是新版sdk...
分类:
移动开发 时间:
2015-03-03 11:40:50
阅读次数:
1802
No matching signing identity found No signing identities (i.e. certificate and private key pair) matching the value specified in your build settings, "Mac Developer:", were found....
分类:
移动开发 时间:
2015-03-03 11:40:22
阅读次数:
140
本文非技术类文章,博主只是想分享这样的一种实现方法,帮助有需要的开发人员减少工作量。我是学java出身的,做开发2年了,很理解一句话:工欲善其事必先利其器。
本次实现的demo,用到了第三方的开源框架:1.JazzyViewPager https://github.com/jfeinstein10/JazzyViewPager(主要用它,效果比较多)...
分类:
移动开发 时间:
2015-03-03 11:38:22
阅读次数:
1814
项目名/app/build.gradle文件分析// 声明是Android程序apply plugin: 'com.android.application'android { // 编译SDK的版本 compileSdkVersion 21 // build tools的版本 ...
分类:
移动开发 时间:
2015-03-03 11:39:11
阅读次数:
113
Android提供了常见的音频、视频的编码、解码机制。借助于多媒体类MediaPlayer的支持,开发者能够非常方便在在应用中播放音频、视频。本篇博客主要解说在Android平台下怎样播放一个音频文件。 本篇博客主要内容例如以下:MediaPlayerMediaPlayer的音频源使用Media.....
分类:
移动开发 时间:
2015-03-03 11:33:09
阅读次数:
262
1 深复制:内容拷贝,源对象和副本对象指的是两个不同的对象,源对象引用计数器不变,副本对象引用计数器为12 浅复制:指针拷贝,源对象和副本对象指的都是同一个对象,对象引用计数器+1,相当于retain3 只有不可变对象创建不可变副本(copy)才是浅复制,其它的都是深复制copy关键字的使用平时我们...
分类:
移动开发 时间:
2015-03-03 11:30:16
阅读次数:
151
Action BarIN THIS DOCUMENTAdding the Action BarRemoving the action barUsing a logo instead of an iconAdding Action ItemsHandling clicks on action item...
分类:
移动开发 时间:
2015-03-03 11:28:05
阅读次数:
309