这个错误是和调用相机摄像头相关的。产生这个错误的原因主要在于代码控制分辨率的显示和真机测试分辨率不一样。 一:解决办法WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE);Display display...
分类:
移动开发 时间:
2014-07-11 23:59:27
阅读次数:
418
1、错误描述
严重:Exception sending context initialized event to listener instance of class
org.springframework.web.util.Log4jConfigListener
java.lang.IllegalStateException:Web app roo...
分类:
其他好文 时间:
2014-07-09 12:36:49
阅读次数:
200
Spring MVC, 你使用了多久呢? 在使用中有没有遇到一样让你困惑的问题呢?
以下是我总结的在使用Spring MVC时需要注意的陷阱
(虽然已经使用它3年多了,但有时还是会犯错)
1. 固定特殊bean的id
2. DispatchServlet配置的路径
3."两个Spring Context"...
分类:
编程语言 时间:
2014-07-09 10:38:02
阅读次数:
188
Spring 的骨骼架构Spring 总共有十几个组件,但是真正核心的组件只有几个,下面是 Spring 框架的总体架构图:图 1 .Spring 框架的总体架构图从上图中可以看出 Spring 框架中的核心组件只有三个:Core、Context 和 Beans。它们构建起了整个 Spring 的骨...
分类:
编程语言 时间:
2014-07-09 00:39:30
阅读次数:
262
public class MResource {
public static int getIdByName(Context context, String className, String name) {
String packageName = context.getPackageName();
Class r = null;
int id = 0;
try {
r...
分类:
其他好文 时间:
2014-07-08 20:49:55
阅读次数:
189
为了解决ListView中Item里的Button独立事件响应,可以采用以下方法:
在BaseAdapter的getview里添加红色代码:
@Override
public View getView(int position, View view, ViewGroup arg2) {
view = layoutInflater.from(context).inflate(...
分类:
其他好文 时间:
2014-07-08 13:15:00
阅读次数:
176
点击一个控件后,在屏幕中央弹出一个类似menu菜单栏packagecom.example.contextmenu;importandroid.app.Activity;importandroid.content.Context;importandroid.content.res.Resources;importandroid.os.Bundle;importandroid.util.Log;importandroid.view.Menu;importandroid...
分类:
其他好文 时间:
2014-07-08 08:59:28
阅读次数:
281
今天来按照apidemos提供的方法来实现slow loading的效果.
Main.java
import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view...
由查找session IP 展开---函数、触发器、包
一、userenv函数、sys_context函数
--查看当前客户端会话的session IP信息
SQL>select sys_context('userenv','ip_address') from dual;
SYS_CONTEXT('USERENV','IP_ADDRESS')
-------------...
分类:
其他好文 时间:
2014-07-06 10:40:35
阅读次数:
161
Camera2 AP Framewok中有三个比较重要的组件:CameraManager、CameraDevice、ICameraService,他们的对应关系如下:
一个Context中会有一个CameraManager实例,
一个CameraManager实例又可以有多个CameraDevice实例(具体能有多少个是由CameraService.MAX_CAMERAS决...
分类:
其他好文 时间:
2014-07-05 23:42:24
阅读次数:
423