text
stringlengths
3
1.18M
package eu.lighthouselabs.obd.reader.command; public class MassAirFlowObdCommand extends ObdCommand { private double maf = -9999.0; public MassAirFlowObdCommand() { super("0110","Mass Air Flow","g/s","g/s"); } public MassAirFlowObdCommand(MassAirFlowObdCommand other) { super(other); } public String formatRe...
package eu.lighthouselabs.obd.reader.command; public class TroubleCodesObdCommand extends ObdCommand { protected final static char[] dtcLetters = {'P','C','B','U'}; private StringBuffer codes = null; public TroubleCodesObdCommand() { super("03","Trouble Codes","",""); codes = new StringBuffer(); } public Tro...
package eu.lighthouselabs.obd.reader.command; public class TimingAdvanceObdCommand extends ObdCommand { public TimingAdvanceObdCommand() { super("010E","Timing Advance","deg","deg"); } public TimingAdvanceObdCommand(TimingAdvanceObdCommand other) { super(other); } public String formatResult() { String res ...
package eu.lighthouselabs.obd.reader.command; public class IntObdCommand extends ObdCommand { protected int intValue = -9999; public IntObdCommand(String cmd, String desc, String resType, String impType) { super(cmd, desc, resType, impType); } public IntObdCommand(IntObdCommand other) { super(other); } publ...
package eu.lighthouselabs.obd.reader.command; import eu.lighthouselabs.obd.reader.config.ObdConfig; public class FuelEconomyObdCommand extends ObdCommand { public static final double AIR_FUEL_RATIO = 14.64; public static final double FUEL_DENSITY_GRAMS_PER_LITER = 720.0; protected double fuelEcon = -9999.0; pub...
package eu.lighthouselabs.obd.reader.command; public class FuelEconomyCommandedMAPObdCommand extends FuelEconomyObdCommand { public static final double AIR_FUEL_RATIO = 14.64; public static final double FUEL_DENSITY_GRAMS_PER_LITER = 720.0; public FuelEconomyCommandedMAPObdCommand() { super("","Fuel Economy Cm...
package eu.lighthouselabs.obd.reader.command; public class DtcNumberObdCommand extends ObdCommand { private int codeCount = -1; private boolean milOn = false; public DtcNumberObdCommand() { super("0101","DTC Status","",""); } public DtcNumberObdCommand(DtcNumberObdCommand other) { super(other); } public St...
package eu.lighthouselabs.obd.reader.command; public class FuelTrimObdCommand extends IntObdCommand { public FuelTrimObdCommand(String cmd, String desc, String resType) { super(cmd,desc,resType,resType); } public FuelTrimObdCommand(FuelTrimObdCommand other) { super(other); } public FuelTrimObdCommand() { ...
package eu.lighthouselabs.obd.reader.command; public class FuelPressureObdCommand extends PressureObdCommand{ public FuelPressureObdCommand() { super("010A","Fuel Press","kPa","atm"); } public FuelPressureObdCommand(FuelPressureObdCommand other) { super(other); } public int transform(int b) { return b*3; ...
package eu.lighthouselabs.obd.reader.command; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.HashMap; import eu.lighthouselabs.obd.reader.io.ObdConnectThread; public class ObdCommand extends Thread { protected InputStream in = null;...
package eu.lighthouselabs.obd.reader.command; public class IntakeManifoldPressureObdCommand extends PressureObdCommand { public IntakeManifoldPressureObdCommand() { super("010B","Intake Manifold Press","kPa","atm"); } public IntakeManifoldPressureObdCommand(IntakeManifoldPressureObdCommand other) { super(other...
package eu.lighthouselabs.obd.reader.command; import java.io.IOException; public class ObdMultiCommand extends ObdCommand { private String[] cmds; public ObdMultiCommand(String[] cmds, String desc, String resType, String impType) { super(null, desc, resType, impType); this.cmds = cmds; } public ObdMultiComm...
package eu.lighthouselabs.obd.reader.command; import eu.lighthouselabs.obd.reader.config.ObdConfig; public class EngineRunTimeObdCommand extends ObdCommand { public EngineRunTimeObdCommand() { super("011F",ObdConfig.RUN_TIME,"",""); } public EngineRunTimeObdCommand(EngineRunTimeObdCommand other) { super(oth...
package eu.lighthouselabs.obd.reader.command; public class PressureObdCommand extends IntObdCommand { public PressureObdCommand(String cmd, String desc, String resType, String impType) { super(cmd,desc,resType,impType); } public PressureObdCommand(PressureObdCommand other) { super(other); } public String for...
package eu.lighthouselabs.obd.reader.command; import eu.lighthouselabs.obd.reader.config.ObdConfig; public class FuelEconomyMAPObdCommand extends FuelEconomyObdCommand { public static final double AIR_FUEL_RATIO = 14.64; public static final double FUEL_DENSITY_GRAMS_PER_LITER = 720.0; public FuelEconomyMAPObdCo...
package eu.lighthouselabs.obd.reader.command; import eu.lighthouselabs.obd.reader.config.ObdConfig; public class SpeedObdCommand extends IntObdCommand { public SpeedObdCommand() { super("010D",ObdConfig.SPEED,"km/h","mph"); } public SpeedObdCommand(SpeedObdCommand other) { super(other); } @Override public ...
package eu.lighthouselabs.obd.reader.network; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.Iterator; import java.util.Map; import org.apache.http.client.HttpClient; import org.apache.http....
package eu.lighthouselabs.obd.reader.drawable; import eu.lighthouselabs.obd.reader.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.D...
package eu.lighthouselabs.obd.reader.drawable; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.util.AttributeSet; i...
package eu.lighthouselabs.obd.reader.drawable; import eu.lighthouselabs.obd.reader.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.D...
package eu.lighthouselabs.obd.reader.activity; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.UUID; import eu.lighthouselabs.obd.reader.R; import eu.lighthouselabs.obd.reader.command.ObdCommand; import eu.lighthouselabs.obd.reader.command.ObdMultiCommand; import eu.lighth...
package eu.lighthouselabs.obd.reader.activity; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import eu.lighthouselabs.obd.reader.R; import eu.lighthouselabs.obd.reader.command.ObdCommand; import eu.lighthouselabs.obd.reader.config.ObdConfig; impo...
package eu.lighthouselabs.obd.reader.activity; import java.util.ArrayList; import java.util.Set; import eu.lighthouselabs.obd.reader.R; import eu.lighthouselabs.obd.reader.command.ObdCommand; import eu.lighthouselabs.obd.reader.config.ObdConfig; import android.app.Activity; import android.bluetooth.BluetoothAdapter;...
package eu.lighthouselabs.obd.reader.io; import java.io.PrintWriter; import java.io.StringWriter; import java.util.ArrayList; import java.util.Map; import eu.lighthouselabs.obd.reader.R; import eu.lighthouselabs.obd.reader.activity.ObdReaderConfigActivity; import eu.lighthouselabs.obd.reader.command.ObdCommand; impo...
package eu.lighthouselabs.obd.reader.io; import android.content.ComponentName; import android.content.ServiceConnection; import android.os.IBinder; public class ObdReaderServiceConnection implements ServiceConnection { private ObdReaderService service = null; public void onServiceConnected(ComponentName name, IBin...
package eu.lighthouselabs.obd.reader.io; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import j...
package eu.lighthouselabs.obd.reader.io; import java.util.Map; import eu.lighthouselabs.obd.reader.network.DataUploader; public class ObdUploadThread extends Thread { private String urlString = null; private Map<String,String> dataMap = null; private ObdReaderService service = null; public ObdUploadThread(Strin...
package eu.lighthouselabs.obd.reader.io; import eu.lighthouselabs.obd.reader.activity.ObdReaderCommandActivity; import eu.lighthouselabs.obd.reader.command.ObdCommand; import eu.lighthouselabs.obd.reader.config.ObdConfig; import android.bluetooth.BluetoothDevice; public class ObdCommandConnectThread extends ObdConne...
package keni.html.android.framework.metadata; public class PageLoadingParameters { }
package keni.html.android.framework.metadata; public class DataFieldMetadata extends ElementBase { }
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.List; public class CarouselMetadata extends FieldContainer { List<PanelMetadata> panels=new ArrayList<PanelMetadata>(); public List<PanelMetadata> getPanels() { return panels; } }
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import keni.html.android.framework.util.Con...
package keni.html.android.framework.metadata; public class DataViewMetadata extends FieldContainer { }
package keni.html.android.framework.metadata; public class ValidationsMetadata extends ElementBase { }
package keni.html.android.framework.metadata; import java.util.HashMap; import java.util.Map; import keni.html.android.framework.util.Constants; import org.json.JSONException; import org.json.JSONObject; public class ElementBase { private Map<String, String> propertities=new HashMap<String, Strin...
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.List; import keni.html.android.framework.connectionChannel.ChannelBase; public class DataSyncMetadata { private String serverUrl; private String synchronizerClassName; public DataSyncMetadata(String serverU...
package keni.html.android.framework.metadata; import keni.html.android.framework.util.Constants; public class FieldMetadata extends ElementBase { public String getDataSourceFieldName() { String dataSourceMapping =getProperities().get(Constants.MetadataTagName.DATASOURCEMAPPING); return dataSourceMappi...
package keni.html.android.framework.metadata; public class FieldSetMetadata extends FieldContainer { }
package keni.html.android.framework.metadata; public class AssociationMetadata extends ElementBase { public String getElementId() { return ""; } }
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.List; import keni.html.android.framework.util.Constants; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class PageMetadata extends FieldContainer { public Stri...
package keni.html.android.framework.metadata; public class NavigationMetadata { }
package keni.html.android.framework.metadata; import java.io.IOException; import java.util.Hashtable; import java.util.Map; import java.util.Stack; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import keni.html.android.framework.util.Constants; import keni.html.formFlo...
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.List; import keni.html.android.framework.util.Constants; public class DataModel extends ElementBase { List<DataFieldMetadata> fields=new ArrayList<DataFieldMetadata>(); List<ValidationsMetadata> validationsMetadat...
package keni.html.android.framework.metadata; import java.util.ArrayList; import java.util.List; import keni.html.android.framework.util.Constants; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class PanelMetadata extends FieldContainer { List<FieldS...
package keni.html.android.framework.synchronizer; public class DataSyncHandlerBase { }
package keni.html.android.framework.synchronizer; import java.util.ArrayList; import java.util.List; import keni.html.android.framework.connectionChannel.ChannelBase; public class Synchronizer { public void upload() {} public void download() {} }
package keni.html.android.framework.synchronizer; public interface IDataSyncHandler { void onUpload(DataSyncArg arg); void onDownload(DataSyncArg arg); IDataSyncHandler getNextHandler(); }
package keni.html.android.framework.synchronizer; public class DataSyncArg { }
package keni.html.android.framework.contentProvider; public class GenericContentProvider { }
package keni.html.android.framework.UI; import java.util.Iterator; import keni.html.android.framework.util.Constants; import org.json.*; import android.content.ContentResolver; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.net.Uri; ...
package keni.html.android.framework.UI; import java.util.Map; import com.phonegap.DroidGap; import keni.html.android.framework.metadata.MetadataParser; import keni.html.android.framework.metadata.PageMetadata; import keni.html.formFlow.R; import android.os.Bundle; import android.util.Log; import android.webkit.WebCh...
package keni.html.android.framework.UI; import java.util.Hashtable; import java.util.Map; import keni.html.android.framework.util.Constants; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.co...
package keni.html.android.framework.UI; import org.json.JSONException; import org.json.JSONObject; import android.R.string; import keni.html.android.framework.metadata.PageMetadata; public class JsInterfaceOfMetadata { PageMetadata pageMetadata; public JsInterfaceOfMetadata(PageMetadata pageMetadata) ...
package keni.html.android.framework.UI; public class MetadataFactory { // public static FormMetadata getFormMetadata(String formId) { // return null; // } }
package keni.html.android.framework.util; public class NamedGraphNode extends GraphNode { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } }
package keni.html.android.framework.util; import java.util.LinkedList; public final class TopologicalSortAlgo { public static IVertex[] Sort(IVertex[] graphNodes) { ColorsSet colors = new ColorsSet(graphNodes); TimestampSet discovery = new TimestampSet(); TimestampSet finish = new TimestampSet()...
package keni.html.android.framework.util; public interface IVertex { IVertex[] getAdjacencies() ; }
package keni.html.android.framework.util; import java.util.ArrayList; import java.util.List; public class GraphNode implements IVertex { private List<GraphNode> outgoing; public void AddDependent(GraphNode node) { if (outgoing == null) { outgoing = new ArrayList<GraphNode>...
package keni.html.android.framework.util; public final class Constants { public static final class Http { public static final String METHOD = "method"; public static final String POST = "POST"; public static final String GET = "GET"; public static final String JSON = "JsonParseException"; } ...
package keni.html.android.framework.util; import java.util.Hashtable; import java.util.Map; class ColorsSet { private Map<IVertex, VertexColor> items = new Hashtable<IVertex, VertexColor>(); public ColorsSet(IVertex[] items) { for (IVertex item : items) { Set(item, VertexColor.White); } ...
package keni.html.android.framework.connectionChannel; import java.io.InputStream; public class ResponseMessage extends Message { InputStream responseStream=null; public void setResponseStream(InputStream stream) { responseStream=stream; } public InputStream getResponseStream() { ...
package keni.html.android.framework.connectionChannel; import java.io.InputStream; import java.util.HashMap; import java.util.Map; public class RequestMessage extends Message { Map<String, InputStream> inputFiles=new HashMap<String, InputStream>(); public Map<String, InputStream> GetFileStreams() { ...
package keni.html.android.framework.connectionChannel; public interface IChannel { String getChannelName(); int getChannelPriority(); void pushNewChannelSink(IChannelSink channelSink); void doRequest(RequestMessage message,Header header); ResponseMessage getResponseMessage(); Header getResponse...
package keni.html.android.framework.connectionChannel; import java.util.Stack; public abstract class ChannelBase implements IChannel { Stack<IChannelSink> channelSinks=new Stack<IChannelSink>(); public void pushNewChannelSink(IChannelSink channelSink) { if(!channelSinks.isEmpty()){ IChannelSink...
package keni.html.android.framework.connectionChannel; import java.util.HashMap; import java.util.Map; public class Message { Map<String, String> properties=new HashMap<String, String>(); public void addProperty(String key, String value) { properties.put(key, value); } public Map<String, String> getP...
package keni.html.android.framework.connectionChannel.http; import java.io.IOException; import java.io.InputStream; import java.util.Map; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods...
package keni.html.android.framework.connectionChannel; import java.util.HashMap; import java.util.Map; public class Header { String contentType; String requestUri; Map<String, String> parameters=new HashMap<String, String>(); public String GetContentType() { return contentType; } public...
package keni.html.android.framework.connectionChannel; public abstract class SinkBase implements IChannelSink { IChannelSink previous; IChannelSink next; public void setPreviousChannelSink(IChannelSink previous) { this.previous=previous; } public void setNextChannelSink(IChannelSink next) { thi...
package keni.html.android.framework.connectionChannel; import java.util.Map; public interface IChannelSink { void setPreviousChannelSink(IChannelSink previous); void setNextChannelSink(IChannelSink next); Map<String, String> getProperties(); IChannelSink getNextChannelSink(); IChannelSink getPreviou...
package keni.html.android.framework.offlineContentProvider.database; public class DatabaseHelper { }
package keni.html.android.framework.offlineContentProvider.database.sqlite; public class SqliteContentProvider { }
package keni.html.android.framework.offlineContentProvider.database; import android.content.ContentValues; import keni.html.android.framework.util.Constants; public class DbCommandMetadata { Constants.PersistenceAction action; String tableName; ContentValues contentValues = new ContentValues(); Str...
package keni.html.android.framework.offlineContentProvider.database; import java.util.ArrayList; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import keni.html.a...
package keni.html.android.framework.offlineContentProvider.database; import java.util.ArrayList; import java.util.Hashtable; import java.util.List; import java.util.Map; public class DatatableMetadata { String tableName; String primaryKey; Map<String, String> foreignKeyAndParentTable= new Hashtable<...
package keni.html.android.framework.onlineContentProvider; public class OnlineContentProvider { }
package tw.cheyingwu; public class ZhuYinIMEDBTSI { public static void main(String[] args){ WordsDBTSI wdbtsi = new WordsDBTSI(); wdbtsi.make(); } }
package tw.cheyingwu; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.P...
package tw.cheyingwu; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; public class ConvertCIN { /** * @param args * @throws IOException */...
package tw.cheyingwu; public class ZhuYinIMEDB { public static void main(String[] args){ WordsDB wdb = new WordsDB(); wdb.make(); } }
package tw.cheyingwu; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.S...
/* * Copyright (C) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
/* * 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) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
/* * 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 required by applicable law o...
/* * Copyright (C) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
/* * Copyright (C) 2008-2009 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 ...
package tw.cheyingwu.zhuyin; import java.util.ArrayList; import java.util.Locale; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteCursor; import android.database.sqlite.SQLiteDatabase; import android.provider.UserDictionary.Words; import android.util.Log;...
package tw.cheyingwu.zhuyin; //import com.android.inputmethod.latin.CandidateView; import java.io.FileDescriptor; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import com.android.inputmethod.latin.CandidateView; import com.android.inputmethod.latin.CandidateViewContainer; im...
package tw.cheyingwu.zhuyin; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; /** * Class used to maintain settings. */ public class ZhuYinIMESettings { private static final String ANDPY_CONFS_KEYSOUND_KEY = "Sound"; private static final String ANDPY_CONFS_VIBRATE_...
package tw.cheyingwu.zhuyin; import java.util.List; import tw.cheyingwu.zhuyin.R; import android.os.Bundle; import android.preference.CheckBoxPreference; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceGr...
package tw.cheyingwu.zhuyin; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.sql.SQLException; import java.util.HashMap; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import...
package My.project.Util; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationExce...
package My.project.Util; import java.io.DataOutputStream; import java.io.FileInputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.List; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import or...
package My.project.Util; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import android.os.Environment; /** * Responsible for saving file to local. * @author Bell * */ public class SaveFile { public static final int MEDIA_TYPE_IMAGE = 1; public static final int MED...
package My.project.Entity; /** * The entity represents the user of the application, * and is responsible for determining whether the user is log in. * @author Bell * */ public class User { private static String uid = null; public static String getUid() { return uid; } public static void s...