public static synchronized VolleyRequestController getInstance() { if (sInstance == null) { sInstance = new VolleyRequestController(); Volle...
分类:
其他好文 时间:
2014-07-19 17:16:18
阅读次数:
250
using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace BZ.Web.QiYe.Handler{ /// /// Handler1 的摘要说明 /// ...
分类:
其他好文 时间:
2014-07-19 17:02:49
阅读次数:
168
先说说我的遇到的问题:1. 我在activity里写一个 fragment2.这个fragment里有个imageView ,用于显示图片。我使用 asyncTask获得图片,并准备在这个imageView 中显示该图片的缩略图,我准备使用ThumbnailUtils.extractThumbnai...
分类:
移动开发 时间:
2014-07-19 00:13:12
阅读次数:
234
var EventUtil = { addHandler: function(elem,type,handler){ if (elem.addEventListener) { elem.addEventListener...
分类:
其他好文 时间:
2014-07-18 20:21:46
阅读次数:
184
Orientation
调整屏幕方向的操作。
package io.appium.android.bootstrap.handler;
import android.os.RemoteException;
import com.android.uiautomator.core.UiDevice;
import io.appium.android.bootstrap.*;
...
分类:
其他好文 时间:
2014-07-18 18:00:25
阅读次数:
309
在Android开发过程中,有时候会遇到这样的情况,在一个线程中,执行A操作,B操作需要等A操作结束后才进行,因此需要wait,在java中可以如下代码实现
Handler mBlueHandler = new Handler(Looper.getMainLooper());
Task task = new Task();
mBlueHandler...
分类:
移动开发 时间:
2014-07-18 13:34:17
阅读次数:
323
网上提到最多的就是利用AsyncTask进行异步下载,用android-async-http第三方库的也比较多。这里写点注意事项。先说说android-async-http,这个库发送请求利用threadpool,也就是不在主线程做发送了,但是需要注意的是,如果你在主线程调用发送函数,发送是不在主线...
分类:
移动开发 时间:
2014-07-18 13:33:46
阅读次数:
247
(上篇文章写完才发现,说好的按顺序但是回头一看完全不是按顺序的)明明WaitForIdle才是第一个。哎,老了,后脑勺不行了。
WaitForIdle
package io.appium.android.bootstrap.handler;
import com.android.uiautomator.core.UiDevice;
import io.appium.andro...
分类:
其他好文 时间:
2014-07-18 12:34:28
阅读次数:
276
上一篇文章中讲了bootstrap的工作流程,这篇文章来研究一下bootstrap可以接受哪些指令(从源码的角度来看,由于appium的项目现在还处在持续更新中,所以有的指令已经实现,某些或许未来会实现,从源码来看的好处是你知道以后或许未来appium能做到哪些功能)。
在bootstrap项目中的io.appium.android.bootstrap.handler包中的类都是对应的相...
分类:
其他好文 时间:
2014-07-18 11:32:43
阅读次数:
191
在后台下载图片,下载完成后更新UI是一个很常见的需求。在没有AsyncTask类之前,我们需要写许多thread和Handler的代码去实现这个功能,有了AsyncTask,一切变得简单了。下面摘抄谷歌官方介绍:AsyncTask is designed to be a helper class a...
分类:
移动开发 时间:
2014-07-17 22:37:48
阅读次数:
308