text stringlengths 3 1.18M |
|---|
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
/**
* @author Michael A. MacDonald
*
*/
class Large... |
package android.androidVNC;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.ActivityManager.MemoryInfo;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import and... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.FieldAccessor;
import com.antlersoft.android.db.TableInterface;
/**
* @author Michael A. MacDonald
*
*/
@TableInterface(TableName="META_LIST",ImplementingIsAbstract=false,ImplementingClassName="MetaList"... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.view.KeyEvent;
import android.view.MotionEvent;
/**
* The VncCanvasActivity has several different ways of handling input from the touchscreen,
* keyboard, buttons and trackball. These will be represented by different impl... |
//
// Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved.
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Map.Entry;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInt... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.util;
/**
* Synchronized object pool
* @author Michael A. MacDonald
*
*/
public abstract class SafeObjectPool<R> extends ObjectPool<R> {
/* (non-Javadoc)
* @see com.antlersoft.util.ObjectPool#release(com.antlersoft.util.ObjectPool.Entry)... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.util;
/**
* A pool of reusable object of a given type. You get the object from a Entry, which you get
* by calling reserve(). When you are done with the object, you call release() passing the Entry.
* <p>
* Failing to call release() does n... |
/**
*
*/
package com.antlersoft.util;
/**
* @author Michael A. MacDonald
*
*/
public class ByteBufferStack {
private byte[] m_buffer;
private int[] m_offsets;
private int m_depth;
private int m_max_depth;
private int m_max_size;
public static final int MAX_DEPTH = 20;
public static final int MAX_SIZE = ... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.drawing;
import android.graphics.Rect;
import java.util.ArrayList;
import com.antlersoft.util.ObjectPool;
/**
* A list of rectangular regions that together represent an area of interest. Provides
* a set of operations that apply to... |
package com.antlersoft.android.drawing;
import com.antlersoft.util.ObjectPool;
import com.antlersoft.util.SafeObjectPool;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
public class OverlappingCopy
{
private static SafeObjectPool<Rect> oc... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.content.Context;
/**
* Create interface implementations appropriate to the current version of the SDK;
* implementations can allow use of higher-level SDK calls in .apk's that will still run
* on lower-level SDK's
... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.View;
import android.view.HapticFeedbackConstants;
/**
* Implementation for SDK version >= 3
* @author Michael A. MacDonald
*/
class BCHapticDefault implements IBCHaptic {
/* (non-Javadoc)
* @see com.antle... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.MotionEvent;
/**
* Pre-sdk 5 version; add fake multi-touch sensing later?
*
* @author Michael A. MacDonald
*
*/
class BCMotionEvent4 implements IBCMotionEvent {
/* (non-Javadoc)
* @see com.antlersoft.an... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.MotionEvent;
/**
* @author Michael A. MacDonald
*
*/
class BCMotionEvent5 implements IBCMotionEvent {
/* (non-Javadoc)
* @see com.antlersoft.android.bc.IBCMotionEvent#getPointerCount(android.view.MotionEve... |
/* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.app.ActivityManager;
/**
* @author Michael A. MacDonald
*/
public interface IBCActivityManager {
public int getMemoryClass(ActivityManager am);
}
|
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.content.Context;
import java.io.File;
/**
* Provides a way to access the directory on external storage as returned by
* Context.getExternal... added in API 8 that will work with earlier API releases.
* @author Mic... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.View;
/**
* Access the Haptic interfaces added in version 3 without breaking compatibility
* @author Michael A. MacDonald
*/
public interface IBCHaptic {
public boolean performLongPressHaptic(View v);
/**
... |
/**
* Copyright (c) 2011 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import java.io.File;
import android.content.Context;
import android.os.Environment;
/**
* @author Michael A. MacDonald
*
*/
public class BCStorageContext7 implements IBCStorageContext {
/* (non-Javadoc)
* @see com.antlersof... |
/* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.content.Context;
import android.view.GestureDetector;
/**
* Create a gesture detector in a version friendly way, avoiding incompatible API on older version
* and deprecated API on newer version
*
* @author Michae... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import java.io.File;
import android.content.Context;
/**
* @author Michael A. MacDonald
*
*/
class BCStorageContext8 implements IBCStorageContext {
/* (non-Javadoc)
* @see com.antlersoft.android.bc.IBCStorageContext#getExter... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.app.ActivityManager;
/**
* @author Michael A. MacDonald
*/
class BCActivityManagerDefault implements IBCActivityManager {
/* (non-Javadoc)
* @see com.antlersoft.android.bc.IBCActivityManager#getMemoryClass(andro... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.content.Context;
import android.view.GestureDetector;
import android.view.GestureDetector.OnGestureListener;
/**
* @author Michael A. MacDonald
*/
public class BCGestureDetectorDefault implements IBCGestureDetector ... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.app.ActivityManager;
/**
* @author Michael A. MacDonald
*/
public class BCActivityManagerV5 implements IBCActivityManager {
/* (non-Javadoc)
* @see com.antlersoft.android.bc.IBCActivityManager#getMemoryClass(and... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.MotionEvent;
/**
* Access to SDK-dependent features of MotionEvent
*
* @see android.view.MotionEvent
*
* @author Michael A. MacDonald
*
*/
public interface IBCMotionEvent {
/**
* Obtain the number of ... |
/*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
... |
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Thi... |
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Thi... |
package android.androidVNC;
import java.io.IOException;
public enum COLORMODEL {
C24bit, C256, C64, C8, C4, C2;
public int bpp() {
switch (this) {
case C24bit:
return 4;
default:
return 1;
}
}
public int[] palette() {
switch (this) {
case C24bit:
return null;
case C256... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
/**
* @author Michael A. MacDonald
*
*/
class MetaKeyBase implements Comparable<MetaKeyBase> {
int keySym;
int mouseButtons;
int keyEvent;
String name;
boolean isMouse;
boolean isKeyEvent;
MetaKeyBase(int mouseButtons, String na... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.widget.ImageView.ScaleType;
/**
* @author Michael A. MacDonald
*/
class OneToOneScaling extends AbstractScaling {
/**
* @param id
* @param scaleType
*/
public OneToOneScaling() {
super(R.id.itemOneToOne,ScaleTyp... |
package android.androidVNC;
public class ColorModel8 {
public final static int [] colors;
static {
colors = new int[256];
colors[0]=0xff000000;
colors[1]=0xff0000ff;
colors[2]=0xff00ff00;
colors[3]=0xff00ffff;
colors[4]=0xffff0000;
colors[5]=0xffff00ff;
colors[6]=0xffffff00;
color... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package android.androidVNC;
import android.graphics.PointF;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.MotionEvent;
/**
* Input handlers delegate to this class to handle keystrokes; this detects keystrokes
* from the DPad and uses ... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.widget.ImageView;
/**
* @author Michael A. MacDonald
*
* A scaling mode for the VncCanvas; based on ImageView.ScaleType
*/
abstract class AbstractScaling {
private static final int scaleModeIds[] = { R.id.itemFitToScre... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.FieldAccessor;
import com.antlersoft.android.db.TableInterface;
/**
* @author Michael A. MacDonald
*
*/
@TableInterface(TableName="META_KEY",ImplementingClassName="AbstractMetaKeyBean")
public interface ... |
package android.androidVNC;
class BitmapImplHint {
static final long AUTO = 0L;
static final long FULL = 1L;
static final long TILE = 2L;
}
|
package android.androidVNC;
public class ColorModel256 {
public final static int [] colors;
static {
colors = new int[256];
colors[0]=0xff000000;
colors[1]=0xff240000;
colors[2]=0xff490000;
colors[3]=0xff6d0000;
colors[4]=0xff920000;
colors[5]=0xffb60000;
colors[6]=0xffdb0000;
col... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
/**
* @author Michael A. MacDonald
*
*/
class CompactBitmapData extends AbstractBi... |
/*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import java.util.Arrays;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
import android.widget.ImageView;
/**
* @author Michael A. MacDonal... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.DrawableContainer;
/**
* @author Michael A. MacDonald
*
*/
public class A... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.*;
/**
* @author Michael A. MacDonald
*
*/
@TableInterface(ImplementingClassName="AbstractConnectionBean",TableName="CONNECTION_BEAN")
interface IConnectionBean {
@FieldAccessor
long get_Id();
@FieldA... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.graphics.PointF;
import android.os.Handler;
import android.os.SystemClock;
import android.util.Log;
/**
* Handles panning the screen continuously over a period of time
* @author Michael A. MacDonald
*/
class Panner implem... |
/**
*
*/
package android.androidVNC;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
/**
* @author Mic... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.FieldAccessor;
import com.antlersoft.android.db.TableInterface;
/**
* Interface specification for table storing sent text; the last N text items sent are stored in a table
* and will be recalled on demand... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import java.util.ArrayList;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.... |
package android.androidVNC;
public class ColorModel64 {
public final static int [] colors;
static {
colors = new int[256];
colors[0]=0xff000000;
colors[1]=0xff000055;
colors[2]=0xff0000aa;
colors[3]=0xff0000ff;
colors[4]=0xff005500;
colors[5]=0xff005555;
colors[6]=0xff0055aa;
colo... |
/**
* Copyright 2010 Michael A. MacDonald
*/
package android.androidVNC;
import android.os.Handler;
import android.os.SystemClock;
import android.view.MotionEvent;
/**
* Specialization of panner that moves the mouse instead of panning the screen
*
* @author Michael A. MacDonald
*
*/
class MouseMover extends P... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import android.widget.ImageView.ScaleType;
import com.antlersoft.android.dbimpl.NewInstance;
import java.lang.Comparable;
/**
* @author Michael A. MacD... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* @author Michael A. MacDonald
*
*/
class VncDatabase extends SQLiteOpenHelper ... |
//
// Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved.
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.... |
package android.androidVNC;
// CRYPTO LIBRARY FOR EXCHANGING KEYS
// USING THE DIFFIE-HELLMAN KEY EXCHANGE PROTOCOL
// The diffie-hellman can be used to securely exchange keys
// between parties, where a third party eavesdropper given
// the values being transmitted cannot determine the key.
// Implemented by Lee Gri... |
package android.androidVNC;
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) a... |
/**
*
*/
package android.androidVNC;
/**
* @author mike
*
*/
interface ConnectionSettable {
void setConnection(ConnectionBean connection);
}
|
//
// This DES class has been extracted from package Acme.Crypto for use in VNC.
// The bytebit[] array has been reversed so that the most significant bit
// in each byte of the key is ignored, not the least significant. Also the
// unnecessary odd parity code has been removed.
//
// These changes are:
// Copyright (... |
//
// Copyright (C) 2001-2004 HorizonLive.com, Inc. All Rights Reserved.
// Copyright (C) 2001-2006 Constantin Kaplinsky. All Rights Reserved.
// Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
//
// This is free software; you ... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package android.androidVNC;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.antlersoft.android.bc.BCFactory;
... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.widget.ImageView.ScaleType;
/**
* @author Michael A. MacDonald
*/
class FitToScreenScaling extends AbstractScaling {
/**
* @param id
* @param scaleType
*/
FitToScreenScaling() {
super(R.id.itemFitToScreen, Scale... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import com.antlersoft.android.bc.BCFactory;
import com.antlersoft.android.bc.IBCScaleGestureDetector;
import com.antlersoft.android.bc.OnScaleGe... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.*;
/**
* @author Michael A. MacDonald
*
*/
@TableInterface(TableName="MOST_RECENT",ImplementingIsAbstract=false,ImplementingClassName="MostRecentBean")
public interface IMostRecentBean {
@FieldAccessor
... |
package android.androidVNC;
/**
* Keys for intent values
*/
public class VncConstants {
public static final String CONNECTION = "android.androidVNC.CONNECTION";
}
|
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.widget.ImageView;
/**
* Abstract interface between the VncCanvas and ... |
//
// Copyright (C) 2010 Michael A. MacDonald
// Copyright (C) 2004 Horizon Wimba. All Rights Reserved.
// Copyright (C) 2001-2003 HorizonLive.com, Inc. All Rights Reserved.
// Copyright (C) 2001,2002 Constantin Kaplinsky. All Rights Reserved.
// Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
// ... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.util.ArrayList;
import java.util.HashMap;
import com.antlersoft.android.dbimpl.NewInstance;
import android.view.KeyEvent;
/**
* @author Michael A. MacDonald
*
*/
class MetaKeyBean extends AbstractMetaKeyBean implements Com... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.io.IOException;
import com.antlersoft.android.drawing.OverlappingCopy;
import com.antlersoft.android.drawing.RectList;
import com.antlersoft.util.ObjectPool;
import android.graphics.Bitmap;
import android.graphics.Canvas;
impo... |
package android.androidVNC;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.ActivityManager.MemoryInfo;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import and... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import com.antlersoft.android.db.FieldAccessor;
import com.antlersoft.android.db.TableInterface;
/**
* @author Michael A. MacDonald
*
*/
@TableInterface(TableName="META_LIST",ImplementingIsAbstract=false,ImplementingClassName="MetaList"... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.graphics.Matrix;
import android.util.Log;
import android.widget.ImageView.ScaleType;
/**
* @author Michael A. MacDonald
*/
class ZoomScaling extends AbstractScaling {
static final String TAG = "ZoomScaling";
private M... |
/**
* Copyright (c) 2010 Michael A. MacDonald
*/
package android.androidVNC;
import android.app.Activity;
import android.app.Dialog;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.text.Html;
impo... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.view.KeyEvent;
import android.view.MotionEvent;
/**
* The VncCanvasActivity has several different ways of handling input from the touchscreen,
* keyboard, buttons and trackball. These will be represented by different impl... |
//
// Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved.
//
// This is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Map.Entry;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInt... |
/*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.moneyorganizer.elementos;
import android.content.ContentValues;
import com.moneyorganizer.db.ConstantesBD.ColumnaIngresos;
public class Ingreso {
int id;
int tipo;
String fecha;
int dia;
int mes;
int anio;
float monto;
String fuente;
String detalle;
public Ingreso() {
super();
}
public I... |
package com.moneyorganizer.elementos;
import com.moneyorganizer.db.ConstantesBD.ColumnaGastos;
import android.content.ContentValues;
public class Gasto {
int id;
int tipo;
String fecha;
int dia;
int mes;
int anio;
float monto;
String lugar;
String detalle;
public Gasto() {
super();
}
public Gasto(i... |
package com.moneyorganizer;
import android.os.Bundle;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.view.Menu;
public class PantallaPrincipal extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCrea... |
package com.moneyorganizer;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.moneyorganizer.db.ControladorBD;
import com.moneyorganizer.elementos.Gasto;
import android.os.AsyncTask;
import android.os.Bundle;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.conte... |
package com.moneyorganizer;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.view.Menu;
import android.view.View;
/*
* Lista de categorias:
* 1.Salario
* 2.Alquileres
* 3.Inversio... |
package com.moneyorganizer;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.view.Menu;
import android.view.View;
/*
* Lista de categorias:
* 1.Transportes
* 2.Servicios
* 3.Alimen... |
package com.moneyorganizer.conexion;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apa... |
package com.moneyorganizer.conexion;
import com.moneyorganizer.conexion.DataParser;
public class XPPDataParser implements DataParser {
public TipoCambio parseUser(char[] in) {
TipoCambio tipoCambio = new TipoCambio();
String s=new String(in);
String []a= s.split("NUM_VALOR");
s=a[1].... |
package com.moneyorganizer.conexion;
public interface DataParser {
public static final String TAG = "DataParser";
public TipoCambio parseUser(char[] in);
}
|
package com.moneyorganizer.conexion;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.widget.Toast;
public class ConnectionChangeReceiver extends BroadcastReceiver {
... |
package com.moneyorganizer.conexion;
public class TipoCambio {
private String num_valor;
public String getValor() {
return num_valor;
}
public void setValor(String valor) {
this.num_valor = valor;
}
@Override
public String toString() {
return "TipoCambio... |
package com.moneyorganizer.conexion;
public class Location {
private String city;
private String state;
private String country;
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() ... |
package com.moneyorganizer;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.moneyorganizer.db.ControladorBD;
import com.moneyorganizer.elementos.Ingreso;
import android.os.AsyncTask;
import android.os.Bundle;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.con... |
package com.moneyorganizer;
import android.os.Bundle;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
supe... |
package com.moneyorganizer.db;
import java.util.ArrayList;
import java.util.List;
import com.moneyorganizer.elementos.Gasto;
import com.moneyorganizer.elementos.Ingreso;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
/**
* @aut... |
package com.moneyorganizer.db;
public interface ConstantesBD {
String TABLA_INGRESOS = "ingresos";
String TABLA_GASTOS = "gastos";
static interface ColumnaIngresos {
String ID = "id";
String TIPO = "tipo";
String FECHA = "fecha";
String DIA = "dia";
String MES = "mes";
String ANIO = "anio";
String M... |
package com.moneyorganizer.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class OpenHelper extends SQLiteOpenHelper implements ConstantesBD {
private static final int DATABASE_VERSION = 1;
private st... |
package com.moneyorganizer;
import java.util.ArrayList;
import java.util.List;
import com.moneyorganizer.db.ControladorBD;
import com.moneyorganizer.elementos.Gasto;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.con... |
/** Automatically generated file. DO NOT MODIFY */
package com.moneyorganizer;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.hello;
import com.zykj.android.common.http.HttpMessage;
public interface Hello {
public HttpMessage getMessage(String parm,Integer count);
public HttpMessage exit();
}
|
package com.hello;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class AndroidService extends HttpServlet {
/**
*
*/
private static final long serialVersionUID = 1L;
public void doGet(HttpServletReque... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.