移动开发

Android Studio介绍

04-29
参考资料:http://www.cnblogs.com/smyhvae/p/4390905.html 第一次使用Android Studio时你应该知道的一切配置 ? as是一种不错的开发Android程序的IDE 移植: 我们之前一般都是在eclipse上面开发Android程序,所用的编译工具都是ant与ivy,现在在as里面,我们一般用 gradle,它是新的Android build 系统所用的build工具.谷歌通过提供Android gradle Plugin ,可以很方便的实现以前

android 49 广播接收者中启动其他组件

04-26
main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <Button android:id

APP纯黑盒测试—某些可以试试的操作

04-23
一.多次快速点击一处功能入口: 该测试方法可以在某些应用中打开俩次目标界面,举一些具体一点的例子: 1.比如现在很多APP需要登陆,如果打开了俩次登录页面,就容易造成登录成功后应用跳转界面又是登录界面,第二次登录造成的后果未知,最简单的后果就是,用户会觉得该应用需要登录俩次,不宜用 2.输入用户名密码后俩次点击登录按钮,某些应用会打开俩次登录成功界面,这个时候如果需要设置手势密码,那么就会做俩次设置操作,后果未知,因对应程序逻辑不同而导致后果不同 3.多次打开某一界面A后又多次打开该界面中某一元

iOS开发容错处理--YRClassSafeCategory

04-23
YRClassSafeCategory 最近发现还是有很多朋友在问类似解析时容错问题怎么解决,想了想,就把几年前做的,一直在使用的小容错库开源出来. YRClassSafeCategory:https://github.com/YueRuo/YRClassSafeCategory iOS开发中,经常遇到解析字典或其他转换的情况,比如下面这个dictionary: NSDictionary *dictionary = @{@"num1":@1, @"num2":@&q

FreeBSD ipfw App配置Examples

04-22
Step # 1: Enabling IPFW Open /etc/rc.conf file # vi /etc/rc.conf Append following settings: firewall_enable="YES" firewall_script="/usr/local/etc/ipfw.rules" Save and close the file.. Step # 2 Write a Firewall Rule Script You need to p

vector android:fillType gradient android:endX attribute not found

04-22
<vector xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:aapt="http://schemas.android.com/aapt"    android:width="108dp"    android:height="108dp"    android:viewportHeight="108"    a

ios合并静态库

04-22
lipo -create SQY/iOS/iphoneos/libGamePlusAPI.a SQY/iOS/iphonesimulator/libGamePlusAPI.a -output SQY/iOS/libGamePus.a 其中SQY/iOS/iphoneos/libGamePlusAPI.a //为真机库. SQY/iOS/iphonesimulator/libGamePlusAPI.a //为模拟器库 -output SQY/iOS/libGamePus.a //为两个合并后存放的

Android Service Notification Back To App

04-21
Service: private NotificationManager manager; manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); private void showNotification(String beaconid) { TaskStackBuilder stackBuilder = TaskStackBuilder.create(getApplicationConte

Android 特殊符号的转码

04-21
项目中要在string.xml 中显示特殊符号,如@号冒号等,直接写肯定不行啦..只能考虑使用ASCII码进行显示: <string name="password">密    码</string> @号 @:号 :空格   以下为常见的ASCII十进制交换编码: --> <-- 这边是空格 !-->!<-- "-->"<-- xml中需要在前面加入\ #-->#<-- $-->$<-

iOS特定的一个controller横屏--iOS7

04-18
首先在这个viewContoller里面设定只支持横向 //iOS 7 above -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationLandscapeLeft; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape;

android 源码自带的Demo BluetoothChat

04-18
聊天的主页面 /* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *  

Android 横屏时禁止输入法全屏

04-17
最近在做751手机的 通讯录横屏时候 输入法是全屏的 一 是在源码里进行修改.frameworks/base/core/Java/Android/inputmethodservice/InputMethodService.java     找到updateFullscreenMode方法,将boolean isFullscreen = mShowInputRequested && onEvaluateFullscreenMode();直接修正为boolean isFullscreen=fa

Detecting iOS

04-17
Detecting iOS I am not a fan of User Agent sniffing, but here is how you would do it: var iOS = /iPad|iPhone|iPod/.test(navigator.platform); Another way, relying on the userAgent: var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.M

iOS--开发常用软件

04-17
漏了请大家补充: 1.TextMate:编辑数据用的.    http://macromates.com/download 2.BBedit:功能和上面一样.  http://www.barebones.com/

[Apple官方文档翻译]: NSURLSession Programming Guide

04-17
关于URL加载系统 这个文档描述了Foundation框架中的与URL交互的一些类和与服务器交互的标准互联网协议. 这些类统一称为URL加载系统. URL加载系统是一个一些类和协议组成的允许应用通过URL来访问内容的合集. 其中核心的类就是NSURL,它负责产生出URL和资源的位置. 为了支持这些类的运行,Foundation框架提供了很多类来使用,比如:加载内容,上传数据到服务器,管理cookie,控制返回数据缓存,处理凭证管理和认证. URL加载系统提供支持以下协议: 文件传输协议(ftp:

android-destroying-activities-killing-processes

04-17
http://stackoverflow.com/questions/14375720/android-destroying-activities-killing-processes(介绍android Activity 被杀死进程后的样子) http://stackoverflow.com/questions/11365301/how-to-simulate-android-killing-my-process/(介绍如何模拟Android 如何杀死App)

Android LaunchMode

04-17
source code :https://github.com/fantasyRqg/MytestApp/tree/AndroidLaunchModeTest

android-spinner 样式实现

04-15
这里主要是在theme中实现spinner的样式,如下  <style name="Theme.Funui" parent="Theme.Holo.Light">      <item name="spinnerStyle">?android:attr/dropDownSpinnerStyle</item> <item name="dropDownSpinnerStyle">@a

ios 获得指定url的cookie

04-15
NSArray *myCookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage]cookiesForURL:[NSURL URLWithString:@"https://www.mywebsite.com"]]];

shopnc 手机网站配置

04-15
完整版SHOPNC下载地址:http://www.fenxiangweb.com/thread-7643-1-1.html SHOPNC手机wap版安装教程 1.进入根目录下mobile/readme,将mobile_2014.sql导入数据库2.进入根目录下"wap"目录,修改文件js/config.js SiteUrl 地址为B2B2C商城地址,例如:http://www.fenxiangweb.comApiUrl          地址为B2B2C商城地址加上mobile,例如: