搭架子首先这次我们会主要使用IOS自带的导航Controller为一个APP建立一个简单的基石,新建一个空的Application并创建3个swift文件,分别命名为:FirstViewController,SecondViewController,ThirdViewController;同时在三个...
分类:
移动开发 时间:
2014-07-24 05:05:08
阅读次数:
10029
http://blog.csdn.net/ljianhui/article/details/29275655多线程下的单例模式是不安全的Android中的单例模式Android中存在着大量的单例类,如:InputMethodManager类,CalendarDatabaseHelper类、Edita...
分类:
移动开发 时间:
2014-07-24 00:52:57
阅读次数:
305
之前觉得滑动翻页的效果挺炫的,目前初学android,所以自己在项目中尝试实现了这个效果。数据是动态的。实现效果主要有几个步骤: 1、创建两个布局文件,一个布局文件定义viewPager组件,如? <android.support.v...
分类:
其他好文 时间:
2014-07-23 22:41:57
阅读次数:
432
MainActivity如下:
package cc.cc;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Demo描述:
*
* 一年多前遇到一个问题--->:
* 1 客户从GooglePlay上下载了我参与的开发的应用
* 2 下载完成后,...
分类:
移动开发 时间:
2014-07-23 22:38:07
阅读次数:
352
1.通过jni实现函数
//LOG宏定义
#define LOG_INFO(tag, msg) __android_log_write(ANDROID_LOG_INFO, tag, msg)
#define LOG_DEBUG(tag, msg) __android_log_write(ANDROID_LOG_DEBUG, tag, msg)
#define LOG_WARN(tag, ms...
分类:
移动开发 时间:
2014-07-23 22:36:17
阅读次数:
311
MainActivity如下:
package cc.ab;
import android.os.Bundle;
import android.provider.Settings;
import android.app.Activity;
/**
* Demo描述:
* 设置设备在睡眠期间始终保持WLAN开启.
*
* 参考资料:
* 1 http://stackoverflow....
分类:
移动开发 时间:
2014-07-23 22:33:07
阅读次数:
283
public class ZipUtil {
public ZipUtil(){
}
/**
* DeCompress the ZIP to the path
* @param zipFileString name of ZIP
* @param outPathString path to be unZIP
* @throws ...
分类:
移动开发 时间:
2014-07-23 22:31:57
阅读次数:
388
解决办法:
第一步:
打开Windows中C:\WINDOWS\system32\drivers\etc\hosts,然后添加以下内容:
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
74.125.113.121 developer.android.com
第二步:
打开Android SDK Mana...
分类:
移动开发 时间:
2014-07-23 22:31:17
阅读次数:
218
最近在做一个项目,要用到登陆框,几经波折,最后用的是直接将Activity的Theme属性设置成Dialog,然后达到了我想要的效果。下面是我的实现经历:1.首先,我是直接使用AlertDialog来实现,确定是,形状有点难看,而且获得Dialog里面的控件略显麻烦(因为我要做的登陆框有一定的布局)...
分类:
移动开发 时间:
2014-07-23 22:30:17
阅读次数:
275
进来的开发一直都很奇葩,从PC web前端到web后端再到iOS端再到Android端,每一次都是摸了点皮毛就得因为项目需求转战其他平台,想想真觉得不合适。就像从昨天其遇到的这个问题,竟然调了几个小时才确定问题。 下面废话少说了,写trouble shooting。 之前依照网上的教程已经跑...
分类:
移动开发 时间:
2014-07-23 22:29:27
阅读次数:
268