text
stringlengths
3
1.18M
package com.btcapp.framework; import com.btcapp.local.data.DefaultConsts; import android.os.Bundle; import android.os.Handler; import android.os.Message; public class ReceiverHandler extends Handler { MainForActivity activity; public ReceiverHandler(MainForActivity mainForActivity...
package com.btcapp.http.base; import com.base.task.Task; public abstract class HttpTask extends Task { public HttpTask(int threadId) { super(threadId); } @Override public void run() throws Exception { } }
package com.btcapp.http.base; import com.base.task.AbstractResult; public abstract class HttpRest extends AbstractResult { abstract boolean onRespone(byte[] b, int size); }
package com.btcapp.http.result; import android.os.Bundle; import com.base.task.AbstractResult; import com.btcapp.local.data.DefaultConsts; public class LoginResult extends AbstractResult { public Bundle b; public LoginResult(Bundle b) { this.b = b; } @Override public in...
package com.btcapp.http.task; import java.util.ArrayList; import android.os.Bundle; import com.base.task.Task; import com.btcapp.bean.BtcInfo; import com.btcapp.enums.Currency; import com.btcapp.http.result.LoginResult; import com.btcapp.local.data.DefaultConsts; public class LoginTask extend...
package com.btcapp.http.action; import android.os.Bundle; import com.base.task.TaskService; import com.base.task.infc.ITaskResult; import com.btcapp.http.result.LoginResult; import com.btcapp.http.task.LoginTask; import com.btcapp.local.data.DefaultConsts; import com.btcapp.service.BaseService; public c...
package com.btcapp.http.action; import android.content.Context; import android.os.Bundle; import com.base.task.AbstractListener; import com.btcapp.service.BaseService; public abstract class AbstractAction<T extends BaseService> extends AbstractListener { T IoService; Context cont...
package com.btcapp.utils; import android.content.Context; import android.util.DisplayMetrics; /** * 设备信息集合类 */ public class ScreenUtil { public static int screenWidth; public static int screenHeight; public static float density; public static float scaleDensity; public static float xdpi; ...
package com.btcapp.utils; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.ColorMatrix; import android.gra...
package com.btcapp.utils; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParser...
package com.btcapp.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.telephony.TelephonyManager; /** * 网络类型处理类 * */ public class NetUtils { public stati...
package com.btcapp.utils; import java.io.UnsupportedEncodingException; import java.util.Random; /** * 字符串处理相关工具类 */ public class StringUtil { /** * 判断字符串是否为空或null,为空返回true * * @param str * 待判定字符串 * @return 是否为空或null */ public static boolean isEmpty(String str) { return (str == null ||...
package com.btcapp.utils; /** * @Title: ChannelType.java * @Description: 合作渠道标识常量 */ public class ChannelType { /** * 安卓市场 */ public static final String APK_HIAPK_COM = "AZ0011"; /** * 机锋市场 http://apk.gfan.com */ public static final String APK_GFAN_COM ...
package com.btcapp.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 手机号码相关匹配,判断是否手机号码,属于哪个运营商1移动2联通3电信 */ public class PhoneRegexUtil { /** * * 中国移动 * 134.135.136.137.138.139.150.151.152.157.158.159.182.183.184.187.188 * ,147(数据卡) */ public static String regex_mobile = "^1(...
package com.btcapp.utils; import android.annotation.SuppressLint; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.telephony.TelephonyManager; import android.text.TextUtils; /** * 网络工具类 */ @SuppressLint ("De...
package com.btcapp.utils; import java.io.File; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.Signature; import android....
package com.btcapp.utils; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Enumeration; import android.content.Context; import android.net.wifi.WifiInfo; import...
package com.btcapp.utils; import java.util.ArrayList; import java.util.HashMap; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.net.Uri; /** * 网络APN设置 * @au...
package com.btcapp.utils; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.text.TextUtils; /** * 反射工具类 * 通过反射获得对应函数功能 */ public class ReflectionUtil { /** * 通过类名,运行指定方法 ...
package com.btcapp.utils; import android.content.Context; import android.os.Environment; public class MultiCard { private static MultiCard instance; private String mExternalSDCardPath; private MultiCard(Context con) { } public static MultiCard getInstance(Context con) { if (in...
package com.btcapp.utils; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import android.content.C...
package com.btcapp.utils; import android.annotation.SuppressLint; import java.text.ParseException; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.Locale; import java.util.Random; /*...
package com.btcapp.security; import java.util.UUID; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; /** * 3DES加密和解密,加密密钥,长度为24字节 * * @author qfq * @date 2013-02-19 14:55:57 * @version 1.0 */ public class DES3 { private static final String Algorithm = "DESe...
package com.btcapp.security; import java.io.UnsupportedEncodingException; /** * Base64工具类 * @author yangwc * */ public class Base64 { private static final byte[] encodingTable = { (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (by...
package com.btcapp.security; import java.security.MessageDigest; /** * * @author Liu * */ public class MD5 { public static String Encrypt(String secret) { String result = null; try { MessageDigest md = MessageDigest.getInstance("MD5"); result = byte2hex(md.digest(secret.toString().g...
package com.btcapp.security; import java.io.IOException; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; public class DES { private byte[] desKey; public DES(String desKey) { ...
package com.btcapp.security; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; public class EDecoder { private static int decode(char c) { if (c >= 'A' && c <= 'Z') return ((int) c) - 65; else if (c >= 'a' && c <= 'z') return ((int) c) - 97 + 26; e...
package com.btcapp.security; import java.util.logging.Level; import java.util.logging.Logger; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; /** * DES加密解密---密钥长度8 * * @author qfq * @date 2013-01-10 11:42:00 * @version 1.0 */ public class DESUtil { private final static String ALGORITHM...
package com.btcapp.security; public class CRC32 { private long[] m_lHashTable = new long[256]; public int unsignedByteToInt(byte b) { return (int) b & 0xFF; } public int unsigned4BytesToInt(byte[] buf, int pos) { int firstByte = 0; int secondByte = 0; int thirdByte = 0; int fourthByte = ...
package com.btcapp.security; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * md5加密类 * * @author qfq * @date 2012-10-16 16:56:09 * @version 1.0 */ public class MD5Util { // private static final Logger log = Logger.getLogger...
package sta.andswtch.db; /* * Copyright (C) 2008 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 ...
package sta.andswtch.db; import android.text.format.Time; public class PowerPointRow { private Time endTime; private int hours; private int minutes; private int seconds; public PowerPointRow(Time time, int hours, int minutes, int seconds) { super(); this.endTime = time; this.hours = hours; ...
package sta.andswtch.gui; import sta.andswtch.R; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; public class OptionsMenu extends Activity { @Override public boolean onCreateOptionsMenu(Menu menu) { ...
/* * Copyright (C) 2007 The Android Open Source Project * Copyright (C) 2009 Andago Ingenieria * Author: Alvaro del Castillo, adelcastillo@andago.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 co...
/* * 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 requir...
/* * Copyright (C) 2007 The Android Open Source Project * Copyright (C) Andago Ingenieria * Author: Alvaro del Castillo adelcastillo@andago.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...
/* * Copyright (C) 2009 Andago Ingenieria * Author: Alvaro del Castillo, adelcastillo@andago.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...
/* * 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 requir...
package sta.andswtch.gui; import sta.andswtch.R; import android.os.Bundle; import android.preference.PreferenceActivity; public class Preference extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.x...
package sta.andswtch.gui; import java.util.ArrayList; import java.util.List; import sta.andswtch.R; import sta.andswtch.extensionLead.ExtensionLead; import sta.andswtch.extensionLead.ExtensionLeadManager; import sta.andswtch.gui.timepicker.Util; import android.content.Context; import android.content.Intent;...
package sta.andswtch.gui; import android.content.Context; public interface IAndSwtchViews { public Context getAppContext(); public void updateActivity(); public void showErrorMessage(int messageResourceId); }
package sta.andswtch.gui; import sta.andswtch.R; import sta.andswtch.db.PowerPointDbAdapter; import sta.andswtch.db.PowerPointRow; import sta.andswtch.extensionLead.ExtensionLead; import sta.andswtch.extensionLead.ExtensionLeadManager; import sta.andswtch.gui.timepicker.TimePicker; import sta.andswtch.gui.time...
package sta.andswtch.network; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import android.util.Log; public class Sender { private static final String TAG = Sender.class.getName(); /** * sen...
package sta.andswtch.network; public interface IConnectionManager { public abstract void errorAlert(int errorMessageId); public abstract void sendWithoutReceive(byte[] command); /** * send a string to the extensionlead * * @param command */ public abstract void sendAndReceive(String comman...
package sta.andswtch.network; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.SocketTimeoutException; import java.util.Enumeration; import org.apache.h...
package sta.andswtch.network; import java.io.IOException; import sta.andswtch.R; import sta.andswtch.extensionLead.Config; import sta.andswtch.extensionLead.ExtensionLead; import android.util.Log; public class ConnectionManager implements IConnectionManager { private static final String TAG = Connection...
package sta.andswtch.extensionLead; public class PowerPoint { private String name; private int id; private boolean enabled; private boolean on; public PowerPoint(int id, String name, boolean enable, boolean on) { this.id = id; this.name = name; this.enabled = enable; this.on = on; } p...
package sta.andswtch.extensionLead; import java.nio.ByteBuffer; import java.util.List; import android.util.Log; public class CommandGenerator { private static final String TAG = CommandGenerator.class.getName(); private static final String GET_STATUS = "wer da?"; private Config config; public Co...
package sta.andswtch.extensionLead; import java.util.ArrayList; import java.util.List; import sta.andswtch.gui.IAndSwtchViews; import sta.andswtch.network.ConnectionManager; public class ExtensionLead implements IExtensionLead { public static final int POWERPOINTCNT = 8; private static final boolean DE...
package sta.andswtch.extensionLead; public class AutoRefresh implements Runnable { private ExtensionLead extLead; private boolean isRunning = false; private Thread thread; AutoRefresh(ExtensionLead extLead) { this.extLead = extLead; } public boolean isAutoRefreshRunning() { return this.isRunn...
package sta.andswtch.extensionLead; public interface IExtensionLead { public abstract void switchState(int id); public abstract void sendState(int id, boolean on, int time); public abstract void sendStateAll(boolean on); public abstract void sendUpdateMessage(); public abstract void updateDatastr...
package sta.andswtch.extensionLead; import java.util.List; import sta.andswtch.R; import android.util.Log; public class ResponseProcessor { private static final String TAG = ResponseProcessor.class.getName(); private ExtensionLead extLead; private List<PowerPoint> powerPoints; private final int OF...
package sta.andswtch.extensionLead; import sta.andswtch.gui.IAndSwtchViews; public class ExtensionLeadManager { private static ExtensionLeadManager ExtLeadManager = null; private ExtensionLead ExtLead; private ExtensionLeadManager(IAndSwtchViews v) { this.ExtLead = new ExtensionLead(v); } publi...
package sta.andswtch.extensionLead; import sta.andswtch.R; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; public class Config extends Application { private static final String ...
package org.smherwig.wlanscanner; import java.util.TimerTask; import android.net.wifi.WifiManager; class ScanTask extends TimerTask { private WifiManager wifiManager; public ScanTask(WifiManager wifiManager) { this.wifiManager = wifiManager; } @Override public void run() { wifiManager.startScan(); } }
package org.smherwig.wlanscanner; import android.content.Context; import android.graphics.Color; import android.net.wifi.ScanResult; import android.view.ViewGroup.LayoutParams; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; public class ScanTableBuilder { private C...
package org.smherwig.wlanscanner; import java.util.Comparator; import android.net.wifi.ScanResult; public class ScanResultComparator implements Comparator<ScanResult>{ @Override public int compare(ScanResult x, ScanResult y) { if (x.level > y.level) return -1; else if (x.level == y.level) return 0; els...
package org.smherwig.wlanscanner; import java.util.Collections; import java.util.List; import java.util.Timer; import android.net.wifi.ScanResult; import android.net.wifi.WifiManager; import android.os.Bundle; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; impor...
package org.androino.prototype.server; import java.util.Date; /** * Memory register of event information. One variable for each user. * */ public class EventQueue { private String idAPlayer = "A"; private String idBPlayer = "B"; private String lastEventAPlayer = "NO"; private String lastEventBPlaye...
package org.androino.prototype.server; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class NewEventServlet extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletRe...
package org.androino.prototype.server; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CheckNewEventsServlet extends HttpServlet{ public void doGet(HttpServletRequest req, HttpS...
package org.androino.prototype.client; public class TTTServer implements iTTTEventListener{ private static TTTServer instance; private iTTTEventListener listener; private ServerConnection server; private TTTServer(){ this.server = new ServerConnection(this); } public static TTTServer getInstance(...
package org.androino.prototype.client; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; /* * NO:TS | NO:TS * CONNECT:TS | NO:TS * CONNECT:TS | CONNECT:TS * BUTTON_A3:TS | * */ public class Server...
package org.androino.prototype.client; public interface iTTTEventListener { public void eventReceived(TTTEvent event); }
package org.androino.prototype.client; import java.util.StringTokenizer; public class TTTEvent { // TODO add function getValue to recover the int value // TODO set private get/setMessage() public static final int TYPE_SERVER_ERROR = -1; public static final int TYPE_BUTTON_CLICK = 0; public static fi...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 applicabl...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 ...
/* * Copyright (C) 2011 Androino 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 applicabl...
package org.androino.prototype; import java.io.*; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Iterator; import java.util.Vector; import android.util.Log; public class FSKModule { // Experimental results // Arduino sends "a" character (97) 1100001 // The generated message ...
package org.androino.prototype; import java.util.Date; import android.app.Activity; import android.media.AudioManager; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import...
package org.androino.prototype; import java.io.FileWriter; import java.io.IOException; import android.os.Environment; import android.util.Log; public class Utility { private static String TAG = "Utility"; private static String FILENAME = "androino.log"; public static String getFilePath(){ Strin...
package org.androino.prototype; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Vector; import android.os.Handler; import android.util.Log; public class FSKDecoder extends Thread { private static int MINIMUM_BUFFER = 4; // 2 factor, 16000 acq private static int MAXIMUM_BUFFER =...
package org.androino.prototype; import android.os.Handler; import android.util.Log; public class ArduinoService implements Runnable { public static final int HANDLER_MSG_RECEIVED = 1; public static final int HANDLER_MSG_STOPPED = 2; protected Handler mClientHandler; private int mCounter =0; protect...
package org.androino.prototype; public class AndroinoException extends RuntimeException { public static final int TYPE_FSK_DECODING_ERROR = 1001; public static final int TYPE_FSK_DEBUG = 1002; private int type; private Object debugInfo; public int getType(){ return this.type; } public And...
package org.androino.prototype; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Date; import android.media.AudioFormat; import android.media.AudioManager; import android.media.AudioRecord; import android.media.AudioTrack; import android.media.MediaRecorder; import android.os.Handler...
/** Automatically generated file. DO NOT MODIFY */ package com.example.test; public final class BuildConfig { public final static boolean DEBUG = true; }
package com.example.test; 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); ...
package com.calculator; import com.calculator.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import java.text.NumberFormat; import android.util.Log; public class ACalculator extends Acti...
package com.wyl; import com.wyl.R; import android.app.Activity; import android.os.Bundle; import android.content.Intent; import android.net.Uri; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class WhereYouLiveActivity extends Activity {...
/* * Copyright 2012 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 2012 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 2012 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 2012 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 2012 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 2012 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 2012 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...