text
stringlengths
3
1.18M
package cn.mimessage.and.sdk.sdcard; import java.io.IOException; public interface IPersistentStore { public static final int PERSISTENT_STORE_FULL = 254; public static final int PERSISTENT_STORE_WRITE_FAILED = 255; public long getFreeSpace(int type); // 系统属性部分 public void clearPrefer...
package cn.mimessage.and.sdk.sdcard; public interface IMemoryStore<T> { public void holdInMemory(String name, T obj); public T getFromMemory(String name); }
package cn.mimessage.and.sdk.sdcard.exception; import java.io.IOException; @SuppressWarnings("serial") public class ExternalStorageFullException extends IOException { public ExternalStorageFullException() { } public ExternalStorageFullException(String detailMessage) { super...
package cn.mimessage.and.sdk.sdcard.exception; @SuppressWarnings("serial") public class AuthoritationException extends Exception { public AuthoritationException(String string) { super(string); } }
package cn.mimessage.and.sdk.sdcard.exception; import java.io.IOException; @SuppressWarnings("serial") public class InternalStorageFullException extends IOException { public InternalStorageFullException() { } public InternalStorageFullException(String detailMessage) { super...
package cn.mimessage.and.sdk.sdcard.exception; import java.io.IOException; @SuppressWarnings("serial") public class ExternalStorageUnmountedException extends IOException { public ExternalStorageUnmountedException() { } public ExternalStorageUnmountedException(String detailMessage) {...
package cn.mimessage.and.sdk.sdcard; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; import java.util.ArrayList; import java.util.LinkedList; i...
package cn.mimessage.and.sdk.sqlite; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class DBOperator implements IDBOperator { private List<IDBEditor> mEditors; private List<IDBObserver> mObservers; public DBOperator(SQLiteHelper helper) { if ...
package cn.mimessage.and.sdk.sqlite; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import cn.mimessage.and.sdk.util.log.LogX; public abstract class SQLiteH...
package cn.mimessage.and.sdk.sqlite; public interface IDBObserver { public int RESULT_SUCCESS = 4; public int RESULT_ERROR = 5; public void onChange(boolean result, IDBEditor editor, int operation); }
package cn.mimessage.and.sdk.sqlite; public abstract class DBEditor implements IDBEditor { protected static SQLiteHelper mSQLiteHelper; @Override public boolean onAdd(Object bundle) { return false; } @Override public boolean onDelete(Object bundle) { ret...
package cn.mimessage.and.sdk.sqlite; public interface IDBOperator { public boolean activateEditor(IDBEditor editor); public boolean unRegistEditor(IDBEditor editor); public IDBEditor getEditor(Class<?> editor); public boolean registObserver(IDBObserver ob); public boolean unRegistOb...
package cn.mimessage.and.sdk.sqlite; public interface IDBEditor { public static final int OP_ADD = 0; public static final int OP_DEL = 1; public static final int OP_UPDATE = 2; public static final int OP_QUERY = 3; public static final int OP_BROADCAST = 4; public static final int OP_ON...
package cn.mimessage.and.sdk.util; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.Outp...
package cn.mimessage.and.sdk.util.log; import android.util.Log; import cn.mimail.misdk.BuildConfig; public class LogX extends Thread { /** * 日志名 */ private static final String TAG = "== LogTrace =="; public static void e(Object object, String err) { if (BuildConfig.DEB...
package cn.mimessage.and.sdk.util.log; public interface LogAdapter { public void logHttpFailure(ConnectionLoggingInfo connectionLoggingInfo); public void logHttpSuccess(ConnectionLoggingInfo connectionLoggingInfo); public void logHttpTimeout(ConnectionLoggingInfo connectionLoggingInfo); }
package cn.mimessage.and.sdk.util.log; public interface ConnectionLoggingInfo { public static final int PROTOCOL_HTTP = 1; public static final int PROTOCOL_HTTPS = 2; public static final int PROTOCOL_TCP = 0; public static final int PROTOCOL_UNDEFINED = 255; public long getConnectTime(); ...
package cn.mimessage.and.sdk.util; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; import java.net.URLEncoder; import java.util.List; import java.util.Timer; import java.util.TimerTask; import org.apache.htt...
package cn.mimessage.and.sdk.util.audio; import java.io.IOException; import android.content.Context; import android.content.res.AssetFileDescriptor; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; import cn.mimessage.and.sdk.util.log.LogX; public class AudioPlayer...
package cn.mimessage.and.sdk.util.audio; public interface IAudioPlayer { public static final int PLAYING = 3; public static final int READY = 2; public static final int STOP = 4; public static final int UNREALIZED = 0; public void destroy(); public int getStatus(); public bo...
package cn.mimessage.and.sdk.profile; public class DeviceInfos { public static String CARRIER; public static String PHONE_NUMBER; public static String PHONE_IMEI; public static String SDK_VERSION; public static String MODEL; public static String CPU_ABI; public static String DEVIC...
package cn.mimessage.and.sdk.profile; import cn.mimessage.and.sdk.net.IHttpConnectionFactory; import cn.mimessage.and.sdk.sdcard.IPersistentStore; import cn.mimessage.and.sdk.thread.IThreadPool; public abstract class Config { public static final String BUILD_NUMBER = "1000"; protected static final St...
package cn.mimessage.and.sdk.thread; public interface TaskController { /** * States of task. */ public static final int TASK_STATE_INITIALIZE = 0; public static final int TASK_STATE_WAITING = 1; public static final int TASK_STATE_RUNNING = 2; public static final int TASK_S...
package cn.mimessage.and.sdk.thread; public class TaskWarpper implements TaskController { /** * Task Queue holding serial runnable. */ private ThreadPool mThreadPool = null; /** * runnable of a user task */ private PoolRunnable mPoolRunnable = null; /** * c...
package cn.mimessage.and.sdk.thread; import java.util.TimerTask; public class TimeoutTask extends TimerTask { private ThreadPool taskQueue = null; private TaskWarpper mTaskWrapper = null; private TaskObserver mTaskObserver = null; protected TimeoutTask(ThreadPool taskQueue, TaskWarpper ...
package cn.mimessage.and.sdk.thread; public interface ITunnelThread { /** * add a task to thread pool * * @param task * @return */ public TaskController addTask(PoolRunnable task); /** * add a task with task observer to thread pool * * @param task ...
package cn.mimessage.and.sdk.thread; public interface IThreadPool { /** * 添加一个常规任务 * * @param task * @return */ public TaskController addTask(PoolRunnable task); /** * 添加一个带观察者的常规任务 * * @param task * @param ob * @return */ pub...
package cn.mimessage.and.sdk.thread; import java.util.ArrayList; import java.util.Iterator; import java.util.List; final public class ThreadPool implements IThreadPool { /** * serial task queue */ final private TaskQueue<TaskWarpper> mTaskQueue; /** * Thread pool */ ...
package cn.mimessage.and.sdk.thread; import java.util.TimerTask; public interface TaskObserver { /** * The states of a task */ public static final int RESPONSE_SUCCESS = 0; public static final int RESPONSE_TIMEOUT_PRE_RUN = 1; public static final int RESPONSE_TIMEOUT_RUNNING =...
package cn.mimessage.and.sdk.thread; import cn.mimessage.and.sdk.util.log.LogX; public class TunneledThread extends TaskThread implements ITunnelThread { private static final int MAX_TASK_COUNT = 100; private final long createTime; private final boolean isForceStarted; private final Tas...
package cn.mimessage.and.sdk.thread; import cn.mimessage.and.sdk.util.log.LogX; public class TaskThread extends Thread { protected ThreadPool mThreadPool = null; protected TaskObserver mObserver; protected boolean isTerminate = false; protected TaskThread(ThreadPool threadPool, TaskObserver...
package cn.mimessage.and.sdk.thread; import java.util.Iterator; import java.util.LinkedList; public class TaskQueue<E extends TaskWarpper> extends LinkedList<TaskWarpper> { private static final long serialVersionUID = 1L; /** * add a new task at last of the queue */ TaskController p...
package cn.mimessage.and.sdk.thread; public interface PoolRunnable { /** * Starts executing the active part of the class' code in thread pool. This * method is called when a thread is started that has been created with a * class which implements PoolRunnable. * * @throws Interrup...
package cn.mimessage.and.sdk.net.bridge; import org.apache.http.HttpEntity; import cn.mimessage.and.sdk.net.parser.Parser; public abstract class HttpListenerAdapter implements IHttpListener { public static final int PARSE_ERROR = -1000; private Parser mParser; public void setParser(Parser parser) { ...
package cn.mimessage.and.sdk.net.bridge; import org.apache.http.HttpEntity; public interface IHttpListener { public void onHttpFailure(int errorCode, String why, Object... bindObj); public void onHttpSuccess(HttpEntity entity, Object... bindObj); }
package cn.mimessage.and.sdk.net.bridge; import cn.mimessage.and.sdk.net.parser.json.IMarkedJSONParseOverListener; import cn.mimessage.and.sdk.net.parser.json.MarkedJSONParser; public class MarkedJSONListener extends HttpListenerAdapter { public MarkedJSONListener(IMarkedJSONParseOverListener listener) { se...
package cn.mimessage.and.sdk.net.bridge; import cn.mimessage.and.sdk.net.parser.json.DefaultJSONParser; import cn.mimessage.and.sdk.net.parser.json.IJSONParseOverListener; public class DefaultJSONListener extends HttpListenerAdapter { public DefaultJSONListener(IJSONParseOverListener listener) { setParser(n...
package cn.mimessage.and.sdk.net; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import javax.net.ssl.SSLHandshakeException; import org.apache.http.Header; import org.apache.http.Htt...
package cn.mimessage.and.sdk.net; import java.util.Observable; import cn.mimessage.and.sdk.util.log.LogAdapter; public interface IConnectionFactory { public static final int NETWORK_IS_AVAILABLE = 1; public static final int NETWORK_MAY_BE_AVAILABLE = 2; public static final int NETWORK_NOT_AVAILABLE = 0; ...
package cn.mimessage.and.sdk.net; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import java.util.Date; import javax.net.ssl.TrustManager; import ...
package cn.mimessage.and.sdk.net; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.List; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.entity.mime.JsonEntity; import...
package cn.mimessage.and.sdk.net; import java.io.IOException; import org.apache.http.HttpHost; public interface IHttpConnectionFactory extends IConnectionFactory { /** * 创建一个链接 * * @param url * @param isHttpPost * @return * @throws IOException * @throws SecurityException */ public ...
package cn.mimessage.and.sdk.net; import java.util.Observable; import cn.mimessage.and.sdk.profile.Config; import cn.mimessage.and.sdk.sdcard.IPersistentStore; import cn.mimessage.and.sdk.util.log.LogAdapter; public abstract class BaseConnectionFactory implements IConnectionFactory { private boolean hasPre...
package cn.mimessage.and.sdk.net.request; import cn.mimessage.and.sdk.net.IHttpConnectionFactory; import cn.mimessage.and.sdk.profile.Config; import cn.mimessage.and.sdk.thread.ITunnelThread; import cn.mimessage.and.sdk.thread.PoolRunnable; import cn.mimessage.and.sdk.thread.TaskController; public abstract cl...
package cn.mimessage.and.sdk.net.request.json; import java.io.IOException; import java.net.SocketTimeoutException; import java.util.Iterator; import java.util.List; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.json.JSONArray; import cn...
/* * $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/BasicNameValuePair.java $ * $Revision: 604625 $ * $Date: 2007-12-16 06:11:11 -0800 (Sun, 16 Dec 2007) $ * * ==================================================================== * Li...
package cn.mimessage.and.sdk.net.parser; import org.apache.http.HttpEntity; public abstract class Parser { public abstract void parser(HttpEntity entity, Object... bindObj) throws Exception; public void parserError(int errorCode, String why, Object... bindObj) { } }
package cn.mimessage.and.sdk.net.parser.json; import java.util.Map; import cn.mimessage.and.sdk.net.parser.json.DefaultJSONParser.JSONDataHolder; public interface IMarkedJSONParseOverListener extends IJSONListener { public void onParseOver(Map<String, JSONDataHolder> jsonParcel, Object... bindObj); publi...
package cn.mimessage.and.sdk.net.parser.json; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.http.HttpEntity; import org.apache.http.ParseException; import org.apache.http.util.Entit...
package cn.mimessage.and.sdk.net.parser.json; import java.util.Map; import cn.mimessage.and.sdk.net.parser.json.DefaultJSONParser.JSONDataHolder; public interface IJSONParseOverListener extends IJSONListener { public void onParseOver(Map<String, JSONDataHolder> jsonParcel); public void parserJSONError(in...
package cn.mimessage.and.sdk.net.parser.json; public interface IJSONListener { }
package cn.mimessage.and.sdk.net.parser.json; import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.ParseException; import org.json.JSONException; import cn.mimessage.and.sdk.net.parser.Parser; public abstract class JSONParser extends Parser { public static final int JSON...
package cn.mimessage.and.sdk.net.parser.json; import java.util.Map; public class MarkedJSONParser extends DefaultJSONParser { public MarkedJSONParser(IMarkedJSONParseOverListener listener) { super(listener); } @Override protected void parseOver(Map<String, JSONDataHolder> jsonParcel, Object... bind...
package cn.mimessage.and.sdk.net; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache Lic...
package cn.mimessage.and.sdk.net; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.SocketException; import java.net.URI; import java.net.URLEncoder; import java.net.UnknownHostExcepti...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.taveloper.http.test; import com.google.api.client.util.ClassInfo; import com.google.api.client.util.FieldInfo; import com.google.api.client.util.GenericData; import com.google.api.client.util.Key;...
package com.taveloper.http.test; import java.io.FileInputStream; import java.security.KeyStore; import com.google.api.client.http.HttpMethods; import com.google.api.client.http.HttpRequest; import com.google.api.client.http.HttpRequestFactory; import com.google.api.client.http.HttpResponse; import com.google.api.clie...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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.taveloper.http.test; import java.io.IOException; import java.security.GeneralSecurityException; import java.util.List; import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; import com.google.api.client.http.HttpMeth...
/* * Copyright 2013 ZhangZhenli <Taveloper@gmail.com>. * * 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 appl...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Name JsonReaderable.java * Author ZhangZhenli * Created on 2012-10-31, 下午3:50:00 * * Copyright (c) 2012 NanJing YiWuXian Network Technology Co., Ltd. All rights reserved * */ package com.taveloper.http.json; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.cor...
/* * Name JsonWriterable.java * Author ZhangZhenli * Created on 2012-10-31, 下午4:17:16 * * Copyright (c) 2012 NanJing YiWuXian Network Technology Co., Ltd. All rights reserved * */ package com.taveloper.http.json; import java.io.Writer; /** * 类通过实现 {@link JsonReaderable } 接口以启用其Json序列化功能。 * ...
/* * Copyright 2013 ZhangZhenli <zhangzhenli@live.com>. * * 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...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
/* * Copyright (C) 2011 Google Inc. * * 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 to ...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Activity1 extends Activity { private sta...
/* * Name InitialActivity.java * Author Zawn * Created on 2012-10-22, 上午11:57:58 * * Copyright (c) 2012. All rights reserved * */ package com.example.t1; import java.util.Iterator; import java.util.List; import java.util.Set; import android.app.Activity; import android.content.Context; import...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Activity4 extends Activity { private sta...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Activity3 extends Activity { private sta...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class DialogActivity extends Activity { privat...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; public class Activity5 extends Activity { private static final String TAG = "Activity5"; @Override protected void onActivi...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Activity6 extends Activity { private sta...
package com.example.t1; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class Activity2 extends Activity { private sta...
/* * Copyright (c) 2009, 2012 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ...
/* * Copyright (c) 2009, 2012 IBM Corp. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ...