Welcome back to GTKA, everyone's favorite investigative series where we learn all about the newest version of Android (with a heavy emphasis on "all")...
分类:
移动开发 时间:
2015-10-13 18:35:07
阅读次数:
257
#undefAS_SINGLETON #defineAS_SINGLETON(__class)\ +(__class*)sharedInstance; #undefDEF_SINGLETON #defineDEF_SINGLETON(_...
分类:
移动开发 时间:
2015-10-13 18:35:31
阅读次数:
197
import?android.os.Bundle;
import?android.app.Activity;
import?android.app.Notification;
import?android.app.NotificationManager;
import?android.app.PendingIntent;
import?android.content.Conte...
分类:
移动开发 时间:
2015-10-13 17:25:06
阅读次数:
291
package?com.example.test;
?
import?android.app.Activity;
import?android.content.Context;
import?android.graphics.Color;
import?android.os.Bundle;
import?android.view.Gravity;
import?android...
分类:
移动开发 时间:
2015-10-13 17:24:44
阅读次数:
211
问题一,在android源码中添加自己的app源码,并能够编译,只需要把app源码拷贝到packages/apps/ 下面,里面需要添加一个android.mk 文件,可一看其他app 写出android.mk 我这样写的 LOCAL_PATH:= $(call my-dir) ...
分类:
移动开发 时间:
2015-10-13 17:24:51
阅读次数:
1415
前段时间,和公司的一个安卓程序员配合开发一款简单的APP,因为第一次写,时间也紧张,总感觉写的不是那么的完美,趁着这段时间好好总结一下经验。 对于APP的请求,服务器返回的数据类型一般是json和xml...
分类:
移动开发 时间:
2015-10-13 17:22:50
阅读次数:
170
在开源中国上面有一个答案,http://www.oschina.net/question/2307266_237220下面是我的执行步骤首先在iTunes Connect中找到要更换开发者账号的app,点击其中的转让app点进去之后出现了一些注意事项,大概看了一下,貌似没有什么不符合的,提示大概三个...
分类:
移动开发 时间:
2015-10-13 17:18:09
阅读次数:
222
项目需要进行大文件的读写,调查测试的结果使我决定使用MappedByteBuffer及相关类进行文件的操作,效果不是一般的高。网上参考资源很多,如下两篇非常不错:1、花1K内存实现高效I/O的RandomAccessFile类2、Java中Stream和Memory-mapped File的I/O性...
分类:
移动开发 时间:
2015-10-13 17:14:55
阅读次数:
229
主要还是说返回键把,home键如果处理比较流氓,而且Android也不想我们去处理。第一种(如果手机也有其他的各种物理键都可以在这个方法里面处理):1 @Override2 public boolean onKeyDown(int keyCode, KeyEvent event) {3 ...
分类:
移动开发 时间:
2015-10-13 17:09:19
阅读次数:
194
原文:Visual Studio 2015中创建C#的Android项目提示"Value cannot be null"的解决方法选择C# > Android创建一个Blank App时提示如下错误: Value cannot be null. Parameter name: path1 由于之前本...
分类:
移动开发 时间:
2015-10-13 17:06:03
阅读次数:
208
//设置按钮里面图片和文字的间距 btn.titleEdgeInsets=UIEdgeInsetsMake(0, 20, 0, 0); button.imageEdgeInsets = UIEdgeInsetsMake(5,13,21,button.titleLabel.bounds.siz...
分类:
移动开发 时间:
2015-10-13 16:58:40
阅读次数:
174
在ArcGIS9.1之前桌面版ArcGIS都是采用整数存储的,是为了效率,将浮点型转为整数型存储,但9.2之后随着硬件的提升,浮点型的效率已经得到提高了,所以不再转换。但移动GIS设备还是要转整数型。不仅如此,由于移动GIS设备硬件的原因,复杂的GIS功能将不被支持,比如剪断线、缓冲区等,但可以连通...
分类:
移动开发 时间:
2015-10-13 16:56:09
阅读次数:
157
最近刚刚学习ios的快速开发框架beeframework就遇到了个棘手的问题,在iOS 9.1下面会报类似的错*** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /Bui...
分类:
移动开发 时间:
2015-10-13 16:55:47
阅读次数:
255
iOS开发UI篇—CALayer简介一、简单介绍在iOS中,你能看得见摸得着的东西基本上都是UIView,比如一个按钮、一个文本标签、一个文本输入框、一个图标等等,这些都是UIView。其实UIView之所以能显示在屏幕上,完全是因为它内部的一个图层,在创建UIView对象时,UIView内部会自动...
分类:
移动开发 时间:
2015-10-13 16:53:01
阅读次数:
269
手机端链接是这样的:mqqwpa://im/chat?chat_type=wpa&uin=386807630&version=1&src_type=web&web_src=oicqzone.comweb端 : tencent://Message/?Uin=800079052&websiteName=...
分类:
移动开发 时间:
2015-10-13 16:52:40
阅读次数:
2354
在xcode中创建swift项目:1.主函数c,c++ 都有个主函数main函数,而swift项目的代码中没有,但是它有个main.swift的文件,它就相当于个main函数从此处开始运行,而且文件不能删除,如果删除程序不能运行2.常量和变量:定义变量:var a=5 注:变量的值可以改变定义常.....
分类:
移动开发 时间:
2015-10-13 16:50:22
阅读次数:
213
JPushInterface.addLocalNotification(cordova.getActivity().getApplication().getApplicationContext(), ln);String regId = JPushInterface.getRegistrationI...
分类:
移动开发 时间:
2015-10-13 16:52:26
阅读次数:
280