- 浏览: 49609 次
最新评论
文章列表
package com.jleo.collectme.util;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.U ...
private void loadResources(ResourcesMapView mapView) {
ContentResolver cr = getContentResolver();
AndroidDBResourceManager resourceManager = new AndroidDBResourceManager(cr, this);
Resource[] resources = resourceManager.loadResources();
if(resources.length == 0){//first timer or corrupted ...
package com.jleo;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
imp ...
package com.jleo;
import java.util.Vector;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import and ...
package com.jleo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class NormTest {
public static double normrnd(double mu, double sigma) {
double N = 12;
double x = 0, temp = N;
do {
x = 0;
for (int i = 0; i ...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jleo" android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/i ...
package com.jleo;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
public class DisplayCurrentFix extends ...
package com.heaven;
public class NormTest {
public static double normrnd(double mu, double sigma) {
double N = 12;
double x = 0, temp = N;
do {
x = 0;
for (int i = 0; i < N; i++)
x = x + (Math.random());
x = (x - temp / 2) / (Math.sqrt(temp / 12));
x = mu + x * ...
class Device {
String deviceId
String devicePassword
static constraints = {
}
}
Device device = new Device(deviceId:'hi',devicePassword:'hi')
device.save(flush:true);
public String getAccount() {
return account;
}
public String getPasswd() {
return passwd;
}
public String getServer() {
return server;
}
private class AuthenicationHandler extends Handler {
public void handleMessage(Message msg) {
super.handleMessage(msg);
if (&q ...
package com.jleo;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPos ...
class LoginController {
def index = { }
def login = {
def loginDevice = Device.findByDeviceIdAndDevicePassword(params.deviceId, params.devicePassword)
if (loginDevice) {
render(contentType: "text/xml") {
loginResult {
result('success')
...
if (id == SERVER_ADDR_UPDATE_DIALOG) {
LayoutInflater factory = LayoutInflater.from(this);
final View textEntryView = factory.inflate(R.layout.server_addr_update, null);
final EditText newServerAddrEditText = (EditText) textEntryView.findViewById(R.id.et_server_ip);
...
package com.jleo;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.AnimationUtils;
import android.view. ...