text stringlengths 3 1.18M |
|---|
package oss.ngocminh.fw;
import java.util.regex.Pattern;
import oss.ngocminh.fw.data.Post;
import android.content.Context;
import android.text.Html;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
... |
package oss.ngocminh.fw.data;
import java.util.ArrayList;
import java.util.List;
public class Thread {
private Long id;
private String title;
private String baseUrl;
private String threadId;
private int pageCount;
private List<Post> posts = new ArrayList<Post>();
public Thread(Long id,String title, String ba... |
package oss.ngocminh.fw.data;
import java.util.Date;
public class Post {
private String postId;
private String userName;
private Date postDate;
private String title;
private String content;
public Post(String id, String userName, Date postDate, String title, String content) {
super();
this.postId = id;
... |
package oss.ngocminh.fw.data;
public class Subscription {
private Long id;
private String userName;
private String password;
private Thread thread;
private String lastReadPostId;
public Subscription() {
}
public Subscription(Long id, String userName,
String password, Thread thread, String lastReadPostI... |
package oss.ngocminh.fw;
import oss.ngocminh.fw.dao.DatabaseHelper;
import oss.ngocminh.fw.dao.SubscriptionDAO;
import oss.ngocminh.fw.dao.ThreadDAO;
import oss.ngocminh.fw.data.Subscription;
import oss.ngocminh.fw.data.Thread;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import and... |
package oss.ngocminh.fw.dao;
import java.util.ArrayList;
import java.util.List;
import oss.ngocminh.fw.data.Thread;
import android.content.ContentValues;
import android.database.Cursor;
public class ThreadDAO {
private static final String TABLE_NAME = "thread";
private static final String ID = "_ID";
private sta... |
package oss.ngocminh.fw.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.database.Cursor;
import oss.ngocminh.fw.data.Subscription;
public class SubscriptionDAO {
private static final String ID = "_ID";
public static final String THREAD_ID = "thread_id"... |
package oss.ngocminh.fw.dao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DatabaseHelper extends SQLiteOpenHelper {
public DatabaseHelper(Context context) {
super(context, "fw", null, 1);
}
@Override
public void o... |
package oss.ngocminh.fw.forum;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.apache.http.client.HttpClient;
import oss.ngocminh.fw.data.Post;
import oss.ngocm... |
package oss.ngocminh.fw.forum;
import java.util.ArrayList;
import java.util.List;
import oss.ngocminh.fw.data.Post;
public class RememberCallback implements PostLoadingCallback {
private int count;
private List<Post> posts;
@Override
public void postsLoaded(List<Post> newPosts) {
if (count == 0) {
posts ... |
package oss.ngocminh.fw.forum;
import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
import org.apache.http.client.HttpClient;
import oss.ngocminh.fw.data.Post;
import oss.ngocminh.fw.data.Thread;
/**
* Interact with a real forum such as lamchame.com.
* @author... |
package oss.ngocminh.fw.forum;
import java.io.IOException;
import java.io.Reader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
impo... |
package oss.ngocminh.fw.forum;
import java.io.IOException;
import java.io.Reader;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
public class AdapterUtils ... |
package oss.ngocminh.fw.forum;
import java.util.List;
import oss.ngocminh.fw.data.Post;
public interface PostLoadingCallback {
void postsLoaded(List<Post> posts);
}
|
package oss.ngocminh.fw.forum;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Pattern;
import or... |
package oss.ngocminh.fw;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.ListIterator;
import oss.ngocminh.fw.dao.DatabaseHelper;
import oss.ngocminh.fw.dao.SubscriptionDAO;
import oss.ngocminh.fw.dao.ThreadDAO;
im... |
package vcard.io;
import java.io.IOException;
/**
* A Base64 Encoder/Decoder.
*
* <p>
* This class is used to encode and decode data in Base64 format as described in RFC 1521.
*
* <p>
* This is "Open Source" software and released under the <a href="http://www.gnu.org/licenses/lgpl.html">GNU/LGPL</a> license.<br>
* It... |
package vcard.io;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.Pendi... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
package vcard.io;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.view.View;
import android.view.Win... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the additio... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the additio... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation with the addit... |
import java.applet.Applet;
import java.awt.Color;
import java.awt.Event;
import java.awt.Graphics2D;
import java.awt.TexturePaint;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.util.Random;
import java.util.Vector;
@SuppressWarnings(... |
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Set;
public class Optimizer {
public static v... |
/** Automatically generated file. DO NOT MODIFY */
package game.spaceplane.asteroids;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package game.spaceplane.activity;
import game.spaceplane.asteroids.R;
import game.spaceplane.network.NetworkEngine;
import game.spaceplane.view.MultiplayerClientView;
import game.spaceplane.view.MultiplayerHostView;
import java.net.InetAddress;
import java.util.ArrayList;
import android.app.Activity;
impo... |
package game.spaceplane.activity;
import game.spaceplane.asteroids.R;
import game.spaceplane.asteroids.R.id;
import game.spaceplane.asteroids.R.layout;
import game.spaceplane.asteroids.R.menu;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
... |
package game.spaceplane.activity;
import game.spaceplane.asteroids.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
public class SettingsActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
//run parent code
super.onCreate(sa... |
package game.spaceplane.activity;
import game.spaceplane.asteroids.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Tex... |
package game.spaceplane.activity;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Window;
import android.view.WindowManager;
import game.spaceplane.view.SinglePlayerView;
public class SingleplayerActivity extends Activity {
... |
package game.spaceplane.activity;
import android.app.Activity;
public class TestActivity extends Activity {
}
|
package game.spaceplane.view;
import game.spaceplane.activity.MultiplayerActivity;
import game.spaceplane.asteroids.R;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.drawing.StarField;
import game.spaceplane.helpers.BoundingBoxHelper;
import game.spaceplane.network.NetworkEngine;
import game.spa... |
package game.spaceplane.view;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import game.spaceplane.activity.SingleplayerActivity;
import game.spaceplane.asteroids.R;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.drawing.StarField;
import game.spaceplane.helpers.Boun... |
package game.spaceplane.view;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import game.spaceplane.activity.MultiplayerActivity;
import game.spaceplane.activity.SingleplayerActivity;
import game.spaceplane.asteroids.R;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.d... |
package game.spaceplane.helpers;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import game.spaceplane.physics.Body;
public class BoundingBoxHelper {
public static void drawBoundingBox(Body b, Canvas c, Paint p){
p.setCol... |
package game.spaceplane.helpers;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
public class BinaryHelper {
//Makes a 2-byte big endian array from a short
public static byte[] makeBytesBigEndian(short s){
ByteBuffer bb = ByteBuffer.allocate(2);
bb.order(ByteOrder.BIG_ENDIAN);
bb.putShort... |
package game.spaceplane.helpers;
import java.util.List;
public class PackageHelper {
public static byte[] MakeByteArray(List<Byte> byteList){
byte [] result = new byte[byteList.size()];
for(int i = 0; i < byteList.size(); i++){
result[i] = byteList.get(i);
}
return result;
}
}
|
package game.spaceplane.thread;
import game.spaceplane.activity.GameOverActivity;
import game.spaceplane.activity.MultiplayerActivity;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.physics.AsteroidL;
import game.spaceplane.physics.Body;
import game.spaceplane.physics.Engine;
import game.spacepl... |
package game.spaceplane.thread;
import game.spaceplane.activity.GameOverActivity;
import game.spaceplane.activity.MultiplayerActivity;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.physics.AsteroidL;
import game.spaceplane.physics.Body;
import game.spaceplane.physics.GunAttack;
import game.spac... |
package game.spaceplane.thread;
import game.spaceplane.activity.GameOverActivity;
import game.spaceplane.drawing.Sprite;
import game.spaceplane.physics.AsteroidL;
import game.spaceplane.physics.Body;
import game.spaceplane.physics.Engine;
import game.spaceplane.physics.GunAttack;
import game.spaceplane.physics... |
package game.spaceplane.physics;
public class AsteroidL extends Asteroid {
static int spawn = 0;
public double acceleration;
public AsteroidL(int posX, int posY) {
width = 130;
height = 130;
mass = 500;
type = 1;
name = "Asteroid";
setNew(true);
setPosition(new Vector(posX, pos... |
package game.spaceplane.physics;
import android.graphics.Point;
public class PointD {
public double X; //X - coordinate of the point
public double Y; //Y - coordinate of the point
//Basic constructor that takes in X and Y and stores them.
public PointD(double x, double y)
... |
package game.spaceplane.physics;
public class Ufo extends Body {
private boolean gameOver = false;
private Vector velocity;
private double mass;
protected int width;
protected int height;
protected Vector acceleration;
protected Vector position;
protected Vector forwardDirecti... |
package game.spaceplane.physics;
//not that methods in Java are implicitly virtual already(so the word 'virtual was removed)
public abstract class Body {
private boolean gameOver = false;
private boolean isNew;
protected Vector velocity;
protected Vector momentum;
protected Vector acc... |
package game.spaceplane.physics;
public class AsteroidM extends Asteroid{
public AsteroidM(Body b, Body gun, int direction)
{
width = 115;
height = 115;
mass = 250;
type = 2;
setNew(true);
if(direction == 1)//left asteroid
... |
package game.spaceplane.physics;
public class Vector {
PointD head;
PointD tail;
PointD vector;
PointD unitVector;
double length;
double angle;
/// <summary>
/// Constructor
/// </summary>
/// <param name="head">@param
/// a Point object representing the hea... |
package game.spaceplane.physics;
/**
*
* @author Alexandra Kabak The spaceships attack. Takes in the spaceship to
* utilise it's position and velocity to make sure it's leaving the ship
* in the correct direction.
*
*/
public class GunAttack extends Body {
/**
* Should take in S... |
package game.spaceplane.physics;
public class Spaceship extends Body{
//Engine engine1;
//Engine engine2;
private boolean gameOver = false;
private Vector velocity;
private double mass;
protected int width;
protected int height;
protected Vector acceleration;
protected Vector p... |
package game.spaceplane.physics;
public class AsteroidS extends Asteroid{
public AsteroidS(Body b,Body gun, int direction)
{
width = 65;
height = 65;
mass = 125;
type = 3;
setNew(true);
collidedThisIteration = true;
if(dir... |
package game.spaceplane.physics;
import android.graphics.*;
public class Rect extends Body {
public Rect(int w, int h)
{
width = w;
height = h;
}
}
|
package game.spaceplane.physics;
public abstract class Asteroid extends Body {
protected int type;
protected Vector forwardDirection;
public boolean isGun()
{
return false;
}
public boolean isDestroyed()
{
return nullified;
}
public void setDes... |
package game.spaceplane.physics;
import java.util.ArrayList;
import java.util.List;
//import java.awt.Panel;
import java.io.Console;
//import javax.swing.JPanel;
/***
*
* @author Alex/Chris
*
* Porting changes to note:
* -All Lists have changed to ArrayLists (there was no other way)
* -readon... |
package game.spaceplane.physics;
import android.graphics.Point;
public class PhysMath {
//Returns head-tail
public static PointD GetVector(PointD tail, PointD head)
{
return new PointD(head.X - tail.X, head.Y - tail.Y);
}
//Calculates length (assumes p represents a vector)
... |
package game.spaceplane.physics;
class Thruster{
//Force thrust;
public Thruster(){
}
public void addVectorToThrust(Vector add){
}
} |
package game.spaceplane.physics;
import android.graphics.*;
public class Wall extends Body {
PointD top;
PointD bottom;
public Wall(PointD top, PointD bottom, int width)
{
this.top = top;
this.bottom = bottom;
this.width = width;
position = new Vector((t... |
package game.spaceplane.drawing;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
public class ExplosionAnimation {
private static final String TAG = ExplosionAnimation.class.getSimpleName();
private Bitmap bitmap; // the animation sequence
private Rect sou... |
package game.spaceplane.drawing;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
/**
* A single particle that is a rectangle.
* Alternatively, we can use images, circles, or other shapes.
* */
public class Particle {
publ... |
package game.spaceplane.drawing;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.util.Log;
public class Explosion {
private static final String TAG = Explosion.class.getSimpleName();
public static final int STATE_ALIVE = 0; // at least 1 particle is alive
public static fin... |
package game.spaceplane.drawing;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
i... |
package game.spaceplane.drawing;
import java.util.ArrayList;
import java.util.List;
import game.spaceplane.asteroids.R;
import game.spaceplane.activity.SettingsActivity;
import game.spaceplane.activity.TestActivity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bi... |
package game.spaceplane.drawing;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
public class StarField {
public List<Point> stars;
public int star... |
package game.spaceplane.drawing;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
... |
package game.spaceplane.drawing;
import game.spaceplane.asteroids.R;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.C... |
package game.spaceplane.drawing;
import game.spaceplane.asteroids.R;
import game.spaceplane.physics.GunAttack;
import game.spaceplane.physics.PointD;
import game.spaceplane.physics.Spaceship;
import game.spaceplane.physics.Vector;
import java.util.ArrayList;
import java.util.List;
import android.content.C... |
package game.spaceplane.network;
import java.io.IOException;
import java.net.*;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedQueue;
public class ClientSocketMonitor extends SocketMonitor{
DatagramSocket socket;
DatagramPacket packet = new DatagramPacket(buffer, buffer.le... |
package game.spaceplane.network;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.util.concurrent.ConcurrentLinkedQueue;
public class DummyClient extends Thread{
InetAddress localhost;
ConcurrentLinkedQueue<DatagramPacket> queue;
private volatile boolean running = true;
byte [] b... |
package game.spaceplane.network;
import java.io.IOException;
import java.net.*;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedQueue;
public class HostSocketMonitor extends SocketMonitor{
List<DatagramSocket> socketList;
DatagramPacket packet = new DatagramPacket(buffer,... |
package game.spaceplane.network;
import game.spaceplane.helpers.PackageHelper;
import game.spaceplane.physics.Asteroid;
import game.spaceplane.physics.AsteroidL;
import game.spaceplane.physics.AsteroidM;
import game.spaceplane.physics.AsteroidS;
import game.spaceplane.physics.Body;
import game.spaceplane.physi... |
package game.spaceplane.network;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.util.List;
import java.util.concurrent.ConcurrentLinkedQueue;
public abstract class SocketMonitor ... |
/** Automatically generated file. DO NOT MODIFY */
package com.jc.androidapp;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.jc.androidapp;
import android.graphics.Canvas;
import android.graphics.Point;
import java.util.ArrayList;
import java.util.List;
import com.jc.androidapp.Polygon;
public class Sprite {
public int width;
public int height;
public Polygon shape; // First shape
public boolean visible; // ... |
package com.jc.androidapp;
import android.graphics.Point;
import android.graphics.Rect;
import java.util.ArrayList;
import java.util.List;
public class Polygon {
protected Rect bounds;
int npoints;
public List<Point> points = null;
public Polygon() {
points = new ArrayList<Point>();
}
public... |
package com.jc.androidapp;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.util.AttributeSet;
import andro... |
package com.jc.androidapp;
import com.jc.androidapp.Drawing;
import com.jc.androidapp.R;
import android.os.Bundle;
import android.app.Activity;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/*
* Thanks to Rizwan for his test c... |
/** Automatically generated file. DO NOT MODIFY */
package com.msi.getwebpage;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.msi.getwebpage;
import android.app.Activity;
import android.os.Bundle;
// used for interacting with user interface
import android.widget.Button;
import android.widget.TextView;
import android.widget.EditText;
import android.view.View;
// used for passing data
import android.os.Handler;
import android.os.M... |
/** Automatically generated file. DO NOT MODIFY */
package tests.udptester;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package tests.udptester;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import android.util.Log;
public class Server implements Runnable {
public static final String SERVERIP = "127.0.0.1"; // 'Within' the emulator!
public static final int ... |
package tests.udptester;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import android.util.Log;
public class Client implements Runnable {
@Override
public void run() {
try {
// Retrieve the ServerName... |
package tests.udptester;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... |
/** Automatically generated file. DO NOT MODIFY */
package com.example.asteroidstest;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.example.asteroidstest;
import com.ra.drawing.GameBoard;
import com.example.asteroidstest.R;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;... |
package com.ra.drawing;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
public class ExplosionAnimation {
private static final String TAG = ExplosionAnimation.class.getSimpleName();
private Bitmap bitmap; // the animation sequence
private Rect sourceRect; ... |
package com.ra.drawing;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import and... |
package com.ra.drawing;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import and... |
package com.example.asteroidstest;
import java.util.Random;
import com.ra.drawing.GameBoard;
import com.example.asteroidstest.R;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.graphics.Point;
import android.view.MotionEvent;
import android.view.View;
impor... |
/** Automatically generated file. DO NOT MODIFY */
package tests.messagesender;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package tests.messagesender;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import java.io.IOException;
import java.net.*;
public class Message extends Activity {
DatagramSocket socket;
MulticastSocket broadc... |
package com.istabs;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.MotionEvent;
import android.widget.ImageView;
public class SplashScreen extends Activity {
/**
* The thread to process splas... |
package com.istabs.services;
import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.map.MappingIterator;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.web.client.RestTemplate;
import com.istabs.beans.Categoria;
import com.istabs... |
package com.istabs;
import java.util.Arrays;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import androi... |
package com.istabs;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.AsyncTask;
import and... |
package com.istabs;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.Intent;
import android.os.AsyncTask;
import and... |
package com.istabs.beans;
import java.io.Serializable;
public class Promocion implements Serializable {
private int id;
private String descripcion;
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @return the descripcion
*/
public String getDescrip... |
package com.istabs.beans;
import java.io.Serializable;
import org.codehaus.jackson.annotate.JsonProperty;
public class Categoria implements Serializable {
private int id;
private String nombre;
private Categoria padre;
@JsonProperty("tiene-subcategorias")
private boolean tieneSubcategorias;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.