有部分手机的影像是倒立的,如何解决这个问题呢? 请看下面
public static void setCameraDisplayOrientation(Activity activity,
int cameraId, android.hardware.Camera camera) {
android.hardware.Camera.CameraInfo info...
分类:
移动开发 时间:
2014-05-26 06:15:07
阅读次数:
401
#include
#include
#include
#include
#include
#include
using namespace std;
void display(int);//输出信息
int size=0;
class Book
{
public:
void welcome();//欢迎界面
void welcome1();
void addboo...
分类:
其他好文 时间:
2014-05-26 04:57:10
阅读次数:
344
采集jxl.jar包,网上下载,百度一下导出都是。
接下来直接贴代码:public List getValue(String fileName){
String str=ExcelOparations.readExcel(fileName).trim();
String[] str4n= str.split("\n");
List list1 =...
分类:
编程语言 时间:
2014-05-25 00:28:26
阅读次数:
432
package com.codeconch.util;
import java.lang.instrument.Instrumentation;
public class Monitor {
private static Instrumentation instrumentation;
public static void premain(String args, Instrum...
分类:
编程语言 时间:
2014-05-24 21:39:23
阅读次数:
356
/** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public
static int dip2px(Context context, float dpValue) { final float scale =
context.getResources().getDispla.....
分类:
移动开发 时间:
2014-05-24 12:46:52
阅读次数:
313
public void doSave(IProgressMonitor monitor) { //
TODO Auto-generated method stub performSave(monitor, getEditorInput());
getCommandStack()...
分类:
编程语言 时间:
2014-05-24 10:30:59
阅读次数:
365
using System;using System.Web;using
System.Drawing;using System.Web.SessionState;public class ValidateCode :
IHttpHandler,IRequiresSessionState { p...
分类:
其他好文 时间:
2014-05-24 10:00:20
阅读次数:
247
public Image GetImage(string path) { FileStream fs
= new FileStream(path, FileMode.Open, FileAccess.Read); Image ...
分类:
其他好文 时间:
2014-05-24 09:48:26
阅读次数:
233
Nhibernate 支持原生的SQL查询 : 1 /// 2 /// 使用原生的SQL查询 3
/// 4 /// 5 /// 6 public IList GetCustomersByDate...
分类:
数据库 时间:
2014-05-24 09:38:53
阅读次数:
292
分为有参数和无参数,还有THIS的使用方法,可用于传递给类,也可用于调用其它构造方法。public class Book { private String
name; public Book(){ this("this调用有参数的构造方法"); System....
分类:
编程语言 时间:
2014-05-24 09:33:45
阅读次数:
330