text stringlengths 3 1.18M |
|---|
/**
*
*/
package com.rinvay.network.access;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import com.rinvay.network.http.conn.HttpConnection;
/**
* @author rinvay
* @date 2012-12-23 下午11:28:52
*/
public clas... |
package com.rinvay.network.access;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
import com.rinvaylabs.utils.IpAddressUtils;
/**
* 网络连接
* @author Rinvay.T
* @date 2012-7-19
* @time 下午5:38:22
*/
public class NetworkAccessState
{
private s... |
/**
*
*/
package com.rinvay.network.filedownload;
/**
* Created by Eclipse
* @author Rinvay.T
* @date 2013-3-23 上午12:52:08
*/
public class Config
{
/**
* 同时运行的最大任务数
*/
public static int MAX_DOWNLOADING_TASK = 1;
}
|
package com.rinvay.network.filedownload;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.rinvay.network.filedownload.model.DownloadTask... |
package com.rinvay.network.filedownload;
public interface FileDownloadListener
{
public void onDownloadProcessing(String uuid);
public void onDownloadTransferred(String uuid);
public void onDownloadFailed(String uuid);
}
|
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* 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 c... |
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* 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 c... |
package com.rinvay.network.filedownload;
import com.rinvay.network.http.conn.HttpConnectionListener;
public interface FileDownloadHttpConnectionListener extends HttpConnectionListener
{
public void onTransProgress(String uuid);
public void onTransferred(String uuid);
public void onTran... |
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* 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 c... |
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* 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 c... |
package com.rinvaylabs.utils;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
import java.util.Enumeration;
/**
* IP address utility functions
*
*/
public class IpAddressUtils {
/**
* Returns the local... |
package com.rinvay.utils;
import java.io.UnsupportedEncodingException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.net.Uri;
import android.webkit.MimeTypeMap;
public class URLUtil
{
public static final String guessFileName2(String url,
String conte... |
package com.rinvay.asdownloader.service;
import java.util.ArrayList;
import java.util.Iterator;
import com.rinvay.asdownloader.core.Core;
import com.rinvay.asdownloader.core.network.NetworkManager;
import com.rinvay.asdownloader.persistent.DownloadTaskDAO;
import com.rinvay.asdownloader.platform.AndroidFactor... |
package com.rinvay.asdownloader.app;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.lang.Thread.UncaughtExceptionHandler;
import java.lang.reflect.Field;
import java.text.DateFormat;
import java.text.SimpleDate... |
package com.rinvay.asdownloader.app;
import com.rinvay.asdownloader.persistent.DownloadTaskDAO;
import com.rinvay.asdownloader.platform.logger.AndroidAppender;
import com.rinvay.utils.logger.Appender;
import com.rinvay.utils.logger.Log;
import android.app.Application;
public class AsdApplication extends App... |
/**
*
*/
package com.rinvay.asdownloader.app;
/**
* @author rinvay
* @date 2013-3-4 下午10:52:30
*/
public class AppConfig
{
}
|
package com.rinvay.asdownloader.core.network;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.rinvay.asdownloader.core.Core;
import... |
package com.rinvay.asdownloader.core.access;
/**
* Abstract network access
*
*/
public abstract class NetworkAccess {
/**
* Local IP address given to the network access
*/
protected String ipAddress = null;
/**
* Type of access
*/
protected String type = null;
/**
* Con... |
package com.rinvay.asdownloader.core.access;
import com.rinvay.asdownloader.platform.AndroidFactory;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
/**
* Wifi access network
*
*/
public class WifiNetworkAccess extends NetworkAccess {
/**
*... |
package com.rinvay.asdownloader.core.access;
import com.rinvay.asdownloader.platform.AndroidFactory;
import android.content.Context;
import android.telephony.TelephonyManager;
/**
* Mobile access network
*
*/
public class MobileNetworkAccess extends NetworkAccess {
/**
* Telephony manager
*/
... |
package com.rinvay.asdownloader.core;
import com.rinvay.asdownloader.core.network.NetworkManager;
import com.rinvay.asdownloader.persistent.DownloadTaskDAO;
import com.rinvay.network.filedownload.FileDownloadManager;
public class Core
{
private static Core instance;
private NetworkManager netwo... |
package com.rinvay.asdownloader.ui;
import com.rinvay.asdownloader.R;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class SettingsActivity extends PreferenceActivity
{
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceS... |
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* 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 c... |
/*******************************************************************************
* Software Name : Android Simple Downloader
*
* Copyright © 2012 Rinvay Tang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... |
package com.rinvay.asdownloader.ui;
import java.util.ArrayList;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.ProgressBar;
import an... |
package com.rinvay.asdownloader.ui;
import com.rinvay.asdownloader.R;
import android.app.Activity;
import android.os.Bundle;
public class CategoryActivity extends Activity
{
public static final String ACTION_SELECT_CATEGORY = "setting_select_category";
protected void onCreate(Bundle savedIn... |
package com.rinvay.asdownloader.persistent;
import com.rinvay.utils.logger.Log;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class FileDownloadHelper extends SQLiteOpenHelper
{
private static final String TAG = "F... |
package com.rinvay.asdownloader.persistent;
import java.util.ArrayList;
import com.rinvay.network.filedownload.model.DownloadTask;
import com.rinvay.utils.logger.Log;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLit... |
package com.rinvay.asdownloader.persistent;
import android.provider.BaseColumns;
public final class DownloadTaskData implements BaseColumns
{
public static final String KEY_UUID = "uuid";
public static final String KEY_URL = "url";
public static final String KEY_DIRECTORY = "directory";
publi... |
package com.rinvay.asdownloader.persistent;
import java.io.IOException;
import java.io.StringReader;
import java.util.List;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import com.rinvay.network.filedownload.model.DownloadTas... |
package com.rinvay.asdownloader.platform;
import android.content.Context;
/**
* Android platform
*
*/
public class AndroidFactory {
/**
* Android application context
*/
private static Context context = null;
/**
* Returns the application context
*
* @return Context
*/
public ... |
package com.rinvay.asdownloader.platform.logger;
import com.rinvay.utils.logger.Appender;
import android.util.Log;
/**
* android 平台中日志输出
* @author Rinvay.T
* @date 2012-8-17
* @time 下午4:33:27
*/
public class AndroidAppender extends Appender
{
public synchronized void printTrace(String tag,... |
package com.rinvay.asdownloader.platform;
/**
* Factory exception
*
*/
public class FactoryException extends java.lang.Exception {
static final long serialVersionUID = 1L;
/**
* Constructor
*
* @param error Error message
*/
public FactoryException(String error) {
super(error);
}
}... |
package com.android.game.synonymwordgame;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Menu;
import android.widget.ImageView;
public class EnterGameActivity extends Activity {
ImageView firstImage;
@Override
public voi... |
package com.android.game.synonymwordgame;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class QuestionAndAnswer {
public List<String> allAnswers;
public String answer;
public String question;
public String selectedAnswer;
public int s... |
package com.android.game.synonymwordgame;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListene... |
package com.android.game.synonymwordgame;
import java.util.Currency;
import android.app.Activity;
import android.app.Dialog;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;
public class CustonAns... |
package com.android.game.synonymwordgame;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.... |
package com.android.game.synonymwordgame;
import android.app.Activity;
import android.app.Dialog;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
public class CustomDialogs extends Activity {
void aboutQuizGameDialog() {
final Dialog dialog = new Dia... |
package com.banyingli.trans;
import android.app.Activity;
import android.os.Bundle;
public class TestActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(... |
package com.demo;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import ... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
public class TokenMetaData implements ITokenMeta {
public static final int HOTP_TOKEN = 0;
public static final int TOTP_TOKEN = 1;
String tokenName;
int tokenType;
String secretBase32;
int digits;
int timeStep;
int counter;
public TokenMetaData(Str... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token.zxing;
/**
* <p>Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.</p>
*
* @author Sean Owen
*/
public final class IntentResult {
private final String contents;
private final String formatName;
IntentResult(String conte... |
/*
* Copyright 2009 ZXing authors
*
* 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 applicable law or agreed ... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the License, or
... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
public class OtpAuthUriException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
String err;
public OtpAuthUriException()
{
super(); // call superclass constructor
err = "unknown";
}
/... |
package uk.co.bitethebullet.android.token;
public interface ITokenMeta {
public String getName();
public int getTokenType();
public String getSecretBase32();
public int getDigits();
public int getTimeStep();
public int getCounter();
}
|
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
///////////////////////////////////////
//this is not used!!
//////////////////////////////////////
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import... |
package uk.co.bitethebullet.android.token.util;
import java.util.ArrayList;
public class Base32 {
private static final String DEF_ENCODING_TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
private static final char DEF_PADDING = '=';
private String eTable; //Encoding table
private char padding;
... |
/**
* <p>Encodes and decodes to and from Base64 notation.</p>
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
*
* <p>Example:</p>
*
* <code>String encoded = Base64.encode( myByteArray );</code>
* <br />
* <code>byte[] myByteArray = Base64.decode( encoded );</code>
*
* <... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2011
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the License, or
... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
public class TokenMetaData implements ITokenMeta {
public static final int HOTP_TOKEN = 0;
public static final int TOTP_TOKEN = 1;
String tokenName;
int tokenType;
String secretBase32;
int digits;
int timeStep;
int counter;
public TokenMetaData(Str... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token.zxing;
/**
* <p>Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.</p>
*
* @author Sean Owen
*/
public final class IntentResult {
private final String contents;
private final String formatName;
IntentResult(String conte... |
/*
* Copyright 2009 ZXing authors
*
* 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 applicable law or agreed ... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the License, or
... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
public class OtpAuthUriException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
String err;
public OtpAuthUriException()
{
super(); // call superclass constructor
err = "unknown";
}
/... |
package uk.co.bitethebullet.android.token;
public interface ITokenMeta {
public String getName();
public int getTokenType();
public String getSecretBase32();
public int getDigits();
public int getTimeStep();
public int getCounter();
}
|
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
package uk.co.bitethebullet.android.token;
///////////////////////////////////////
//this is not used!!
//////////////////////////////////////
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import... |
package uk.co.bitethebullet.android.token.util;
import java.util.ArrayList;
public class Base32 {
private static final String DEF_ENCODING_TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
private static final char DEF_PADDING = '=';
private String eTable; //Encoding table
private char padding;
... |
/**
* <p>Encodes and decodes to and from Base64 notation.</p>
* <p>Homepage: <a href="http://iharder.net/base64">http://iharder.net/base64</a>.</p>
*
* <p>Example:</p>
*
* <code>String encoded = Base64.encode( myByteArray );</code>
* <br />
* <code>byte[] myByteArray = Base64.decode( encoded );</code>
*
* <... |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2011
*
* This file is part of Android Token.
*
* Android Token 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 3 of the Licens... |
/** Automatically generated file. DO NOT MODIFY */
package com.example.myfirstapp;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.example.myfirstapp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class DisplayMessageActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setCont... |
package com.example.myfirstapp;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
public class MainActivity extends Activity {
public static String EXTRA_MESSAGE;
@Override
protected void onCr... |
package com.ls.la;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.content.ContentUris;
import android... |
/** Automatically generated file. DO NOT MODIFY */
package com.projet.np.taskmanager;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
package com.skins;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBManager extends SQLiteOpenHelper{
public DBManager(Context context){
super(context, "skins.db",null,1);
}
public void onCreate(SQLiteData... |
package com.skins;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class choice extends Activity {
ImageView iv;
ImageView moret;
@Override
public void onCreate(Bundle savedInstanceState) {
sup... |
package com.skins;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Bundle;
import android.view.View;
import android.view.Vi... |
package com.skins;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class StartActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedIn... |
package com.skins;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
public class Main... |
package com.skins;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class dbActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInsta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.