这个问题引发的原因最初的报错是:[2013-10-14 10:01:58 - XXX] The
connection to adb is down, and a severe error has occured.[2013-10-14 10:01:58 -
XXX] You must restart...
分类:
移动开发 时间:
2014-05-19 18:30:21
阅读次数:
336
这几天面试的时候,反复被问到一个关于Service的问题。之前做了一个APP。有一个应用场景是,需要开机启动一个Service,在Service中另开一个线程,去对比用户配置中的时间,作出及时提醒。然后面试的时候在描述该做法时就被问到一个问题,如果Service被系统或者其他应用kill了怎么办?我...
分类:
移动开发 时间:
2014-05-19 15:48:37
阅读次数:
384
从github上down下来一个项目,springMVC-chat。作者全是用的注解,也就是零配置。
这可苦了我,经过千辛万苦,最终集成到现在的项目中有一点样子了,结果报出来下面的错误。红色部分。解决方法为,在web.xml中也就是springMVC的总配置文件中加上一句话:
true
这句话的位置一定要放正确,否则,一切都是徒劳。至于配置spring异步支持(其实是配置servlet异...
分类:
编程语言 时间:
2014-05-18 18:32:49
阅读次数:
499
【题目】
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with constant memory.
For example,
Given input array A ...
分类:
其他好文 时间:
2014-05-18 18:25:19
阅读次数:
272
package com.dhy.phonedial;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflate...
分类:
移动开发 时间:
2014-05-18 15:58:42
阅读次数:
342
【题目】
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
【题意】
判断给定的字符串是否是合法的...
分类:
其他好文 时间:
2014-05-18 10:08:11
阅读次数:
327
Notification的用法 --- 状态栏通知
发送一个状态栏通知必须的两个类:
1. NotificationManager --- 状态栏通知的管理类,负责发通知,清除通知等
NotificationManager : 是一个系统Service,必须通过 context.getSystemService(NOTIFICATION_SERVICE...
分类:
移动开发 时间:
2014-05-18 09:13:46
阅读次数:
471
【题目】
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
Elements in a quadruplet (a,b,c,d) must be in non-descending ord...
分类:
其他好文 时间:
2014-05-18 08:46:04
阅读次数:
227
this bundle is invalid . new apps and app updates submitted to the app store must be built with public...
分类:
移动开发 时间:
2014-05-18 04:57:16
阅读次数:
341
【题目】
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
The so...
分类:
其他好文 时间:
2014-05-18 03:15:50
阅读次数:
287