text
stringlengths
3
1.18M
package modelo; public interface ProductoModelo { boolean registrar(); }
package modelo; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.SQLSyntaxErrorException; import java.util.logging.Level; import java.util.logging.Logger; import facade.SQLSencillo; public abstract class ConexionBD implements ProductoModelo{ protected Conn...
package modelo; import java.lang.String; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.LinkedList; import java.util.LinkedList; import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; public class Producto extends ConexionBD imp...
package modelo; import java.util.LinkedList; public interface ProductoCategoria { LinkedList<Categoria> consultarGeneral(); }
package net.srcz.android.screencast.client; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import android.os.IBinder; import android.os.RemoteException; import android.os.ServiceMa...
package net.srcz.android.screencast.client; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public class Main { static boolean debug = false; int port; public Main(int port, boolean debug) { this.port = port; this.debug = debug; } public void exe...
package net.srcz.android.screencast.api.file; import java.io.File; import net.srcz.android.screencast.api.AndroidDevice; public class FileInfo { public AndroidDevice device; public String path; public String attribs; public boolean directory; public String name; public File downloadTemporary() { try { ...
package net.srcz.android.screencast.api; import java.io.ByteArrayOutputStream; import java.io.File; import java.lang.reflect.Method; import java.util.List; import java.util.Vector; import net.srcz.android.screencast.api.file.FileInfo; import net.srcz.android.screencast.api.injector.NullSyncProgressMonitor; import net...
package net.srcz.android.screencast.api; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class StreamUtils { public static void transfert(InputStream is, OutputStream os) { try { while(true) { int val = is.rea...
package net.srcz.android.screencast.api.injector; import java.io.File; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import java.net.UnknownHostException; import net.srcz.android.screencast.api.AndroidDevice; import net.srcz.android.screencast.api.StreamUtils; import com...
package net.srcz.android.screencast.api.injector; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.swing.SwingUtilities; import net.srcz.android.screencast.api.recording.QuickTimeOutputStream; import com.android.ddmlib.IDevice; import com....
package net.srcz.android.screencast.api.injector; public class ConstEvtKey { // Field descriptor #13 I public static final int KEYCODE_UNKNOWN = 0; // Field descriptor #13 I public static final int KEYCODE_SOFT_LEFT = 1; // Field descriptor #13 I public static final int KEYCODE...
package net.srcz.android.screencast.api.injector; import java.awt.event.KeyEvent; public class KeyCodeConverter { public static int getKeyCode(KeyEvent e) { char c = e.getKeyChar(); int code = 0; if(Character.isLetter(c)) code = ConstEvtKey.KEYCODE_A + (Character.toLowerCase(c)-'a'); if(Charac...
package net.srcz.android.screencast.api.injector; import com.android.ddmlib.SyncService.ISyncProgressMonitor; public class NullSyncProgressMonitor implements ISyncProgressMonitor { public void advance(int arg0) { } public boolean isCanceled() { return false; } public void start(int arg0) { } ...
package net.srcz.android.screencast.api.injector; public class ConstEvtMotion { // Field descriptor #10 I public static final int ACTION_DOWN = 0; // Field descriptor #10 I public static final int ACTION_UP = 1; // Field descriptor #10 I public static final int ACTION_MOVE = 2; ...
package net.srcz.android.screencast.api.injector; import java.io.IOException; import java.io.OutputStream; import com.android.ddmlib.IShellOutputReceiver; public class OutputStreamShellOutputReceiver implements IShellOutputReceiver { OutputStream os; public OutputStreamShellOutputReceiver(OutputStrea...
package net.srcz.android.screencast.api.recording; import java.io.*; import javax.imageio.stream.ImageOutputStream; public class FilterImageOutputStream extends FilterOutputStream { private ImageOutputStream imgOut; public FilterImageOutputStream(ImageOutputStream iOut) { super(null); thi...
package net.srcz.android.screencast.api.recording; import java.awt.image.BufferedImage; import java.awt.image.WritableRaster; import java.io.*; import java.util.Date; import java.util.LinkedList; import javax.imageio.*; import javax.imageio.stream.*; public class QuickTimeOutputStream { /** * Output stream ...
package net.srcz.android.screencast.api.recording; import java.io.*; import java.util.Date; import java.util.GregorianCalendar; public class DataAtomOutputStream extends FilterOutputStream { protected static final long MAC_TIMESTAMP_EPOCH = new GregorianCalendar(1904, GregorianCalendar.JANUARY, 1).getTimeInMilli...
package net.srcz.android.screencast.app; import java.lang.Thread.UncaughtExceptionHandler; public class Application { public Application() { Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { close(); } }); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler()...
package net.srcz.android.screencast.app; import java.io.PrintWriter; import java.io.StringWriter; import javax.swing.SwingUtilities; import javax.swing.UIManager; import net.srcz.android.screencast.ui.JDialogError; public class SwingApplication extends Application { JDialogError jd = null; public SwingApplicati...
package net.srcz.android.screencast; import java.io.IOException; import net.srcz.android.screencast.api.injector.Injector; import net.srcz.android.screencast.app.SwingApplication; import net.srcz.android.screencast.ui.JDialogDeviceList; import net.srcz.android.screencast.ui.JFrameMain; import net.srcz.android...
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.io.PrintWriter; import java.io.StringWriter; import javax.swing.JDialog; import javax.swing.JTextArea; public class JDialogError extends JDialog { public JDialogError(Throwable ex) { getRootPane().setLayout(new BorderLa...
package net.srcz.android.screencast.ui.pm; public class JFrameApps { }
package net.srcz.android.screencast.ui; import java.awt.Dimension; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Rectangle; import java.util.StringTokenizer; import javax.swing.Icon; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.SwingConstants; impor...
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JTextField; public class JDialogUrl extends JDialog { JTextField jtfUrl = new JTextField(); JBut...
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.KeyEventDispatcher; import java.awt.KeyboardFocusManager; import java.awt.Point; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.e...
package net.srcz.android.screencast.ui.worker; /* * $Id: AccumulativeRunnable.java,v 1.3 2008/07/25 19:32:29 idk Exp $ * * Copyright � 2005 Sun Microsystems, Inc. All rights * reserved. Use is subject to license terms. */ import java.util.*; import javax.swing.SwingUtilities; /** * An abstract cla...
/* * $Id: SwingWorker.java,v 1.6 2008/07/25 19:32:29 idk Exp $ * * Copyright � 2005 Sun Microsystems, Inc. All rights * reserved. Use is subject to license terms. */ package net.srcz.android.screencast.ui.worker; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; impo...
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import javax.swing.BorderFactory; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JWindow; public class JSplashScreen extends JWindow { JLabel label = new JLabel("Loading...", new ImageIcon(JFrameMain.cl...
package net.srcz.android.screencast.ui.explorer; import javax.swing.tree.DefaultMutableTreeNode; public abstract class LazyMutableTreeNode extends DefaultMutableTreeNode { protected boolean _loaded = false; public LazyMutableTreeNode() { super(); } public LazyMutableTreeNode(Object userObject) { super(user...
package net.srcz.android.screencast.ui.explorer; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.util.Iterator; import java.util.Vector; import java.util.concurrent.ExecutionException; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JTree; import javax.s...
package net.srcz.android.screencast.ui.explorer; import java.awt.BorderLayout; import java.awt.Desktop; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.File; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Vector; import javax.swing.JF...
package net.srcz.android.screencast.ui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.BorderFactory; import javax.swi...
package net.srcz.android.screencast.ui; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Image; import java.awt.Point; import javax.swing.JPanel; public class JPanelScreen extends JPanel { public float coef = 1; double origX; double origY; boolean landscape; Dimension size...
package com.hlidskialf.android.hardware; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; public class ShakeListener implements SensorEventListener { private static final int FORCE...
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 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 ap...
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 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 ap...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
package com.ch_linghu.fanfoudroid; import java.text.MessageFormat; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.app.ProgressDialog; import android.content.ContentValues; import android.content.DialogInterface; import android.content.Intent; import a...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import android.app.SearchManager; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.Menu; import android.view.V...
package com.ch_linghu.fanfoudroid.service; public interface IService { void startService(); void stopService(); }
/* * Copyright (C) 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 law or agree...
/* * Copyright (C) 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 law...
package com.ch_linghu.fanfoudroid.service; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.List; import android.app.AlarmManager; import android.app.PendingIntent; import android.app....
package com.ch_linghu.fanfoudroid.service; import java.util.List; import android.content.Context; import android.location.Criteria; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; /** * Location S...
package com.ch_linghu.fanfoudroid; import android.app.Activity; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import an...
package com.ch_linghu.fanfoudroid.data; import com.ch_linghu.fanfoudroid.fanfou.DirectMessage; import com.ch_linghu.fanfoudroid.fanfou.User; import com.ch_linghu.fanfoudroid.util.TextHelper; public class Dm extends Message { @SuppressWarnings("unused") private static final String TAG = "Dm"; public bool...
package com.ch_linghu.fanfoudroid.data; import java.util.Date; import android.os.Parcel; import android.os.Parcelable; public class User implements Parcelable { public String id; public String name; public String screenName; public String location; public String description; public String profil...
/* * Copyright (C) 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 law...
package com.ch_linghu.fanfoudroid.data; import java.util.Date; public class Message { public String id; public String screenName; public String text; public String profileImageUrl; public Date createdAt; public String userId; public String favorited; public String truncated; public String inRe...
package com.ch_linghu.fanfoudroid.data; import android.database.Cursor; public interface BaseContent { long insert(); int delete(); int update(); Cursor select(); }
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import android.widget.ImageView; import com.ch_linghu.fanfoudroid.TwitterApplication; import com.ch_linghu.fanfoudroid.app.LazyImageLoader.ImageLoaderCallback; public class SimpleImageLoader { public static void display(final ImageView imageVie...
package com.ch_linghu.fanfoudroid.app; import java.lang.Thread.State; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import android.graphi...
package com.ch_linghu.fanfoudroid.app; import android.text.Spannable; import android.text.method.LinkMovementMethod; import android.text.method.MovementMethod; import android.view.MotionEvent; import android.widget.TextView; public class TestMovementMethod extends LinkMovementMethod { private double mY; ...
/* * Copyright (C) 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 law...
package com.ch_linghu.fanfoudroid.app; import android.graphics.Bitmap; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterApplication; public interface ImageCache { public static Bitmap mDefaultBitmap = ImageManager .drawableToBitmap(TwitterApplication.mContext.getResources() ...
/* * Copyright (C) 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 law...
package com.ch_linghu.fanfoudroid.app; import java.util.HashMap; import android.graphics.Bitmap; public class MemoryImageCache implements ImageCache { private HashMap<String, Bitmap> mCache; public MemoryImageCache() { mCache = new HashMap<String, Bitmap>(); } @Override public Bitmap get(Str...
package com.ch_linghu.fanfoudroid.app; import android.app.Activity; import android.content.Intent; import android.widget.Toast; import com.ch_linghu.fanfoudroid.LoginActivity; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.fanfou.RefuseError; import com.ch_linghu.fanfoudroid.http.HttpAuthExcepti...
/* * Copyright (C) 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 law or agree...
/* Copyright (c) 2007-2009 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following discla...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* * UserObjectWapper.java created on 2010-7-28 上午08:48:35 by bwl (Liu Daoru) */ package com.ch_linghu.fanfoudroid.fanfou; import java.io.Serializable; import java.util.List; /** * 对User对象列表进行的包装,以支持cursor相关信息传递 * * @author liudaoru - daoru at sina.com.cn */ public class UserWapper implements Se...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.ch_linghu.fanfoudroid.fanfou; /** * An exception class that will be thrown when WeiboAPI calls are failed.<br> * In case the Fanfou server returned HTTP error code, you can get the HTTP * status code using getStatusCode() method. */ public class WeiboException extends Exception { private int statusCod...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the...
package com.ch_linghu.fanfoudroid.data2; public class Photo { private String thumburl; private String imageurl; private String largeurl; public Photo() { } public String getThumburl() { return thumburl; } public void setThumburl(String thumburl) { this.thumburl = thumburl; } public String getImageurl...
package com.ch_linghu.fanfoudroid.data2; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class DataUtils { static SimpleDateFormat sdf = new SimpleDateFormat( "EEE MMM dd HH:mm:ss z yyyy", Locale.US); public st...
package com.ch_linghu.fanfoudroid.data2; import java.util.Date; public class User { private String id; private String name; private String screen_name; private String location; private String desription; private String profile_image_url; private String url; private boolean isProtected; private int friends_co...
package com.ch_linghu.fanfoudroid.data2; import java.util.Date; public class Status { private Date created_at; private String id; private String text; private String source; private boolean truncated; private String in_reply_to_status_id; private String in_reply_to_user_id; private boolean favorited; privat...
package com.ch_linghu.fanfoudroid.dao; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Database Helper * * @see SQLiteDatabase */ public ...
package com.ch_linghu.fanfoudroid.dao; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.text.TextUtils; import android.util.Log; import com.ch_linghu.fanfoudroid.dao.SQLiteTemplat...
package com.ch_linghu.fanfoudroid.db2; import java.util.ArrayList; import java.util.Arrays; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.util.Log; /** * Wrapper of SQliteDatabse#query, OOP style. * * Usage: -------------------...
package com.ch_linghu.fanfoudroid.db2; import android.content.Context; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import com.ch_linghu.fanfoudroid.db2.FanContent.*; public class FanDatabase { private ...
package com.ch_linghu.fanfoudroid.db2; import java.util.zip.CheckedOutputStream; import android.R.color; public abstract class FanContent { /** * 消息表 消息表存放消息本身 * * @author phoenix * */ public static class StatusesTable { public static final String TABLE_NAME = "t_statuses"; public static class Co...
/* * Copyright (C) 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 law or agree...
package com.ch_linghu.fanfoudroid; import java.util.ArrayList; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import and...
/* * Copyright (C) 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 law or agree...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.ListActivity; /** * TODO: 准备重构现有的几个ListActivity * * 目前几个ListActivity存在的问题是 : 1. 因为要实现[刷新]这些功能, 父类设定了子类继承时必须要实现的方法, * 而刷新/获取其实更多的时候可以理解成是ListView的层面, 这在于讨论到底是一个"可刷新的Activity" * 还是一个拥有"可刷新的ListView"的Activity, 如果改成后者, 则只要在父类拥有一个实现了可刷新接口的ListView即可, * 而...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.content.SharedPreferences; import and...
package com.ch_linghu.fanfoudroid.ui.base; public interface Refreshable { void doRetrieve(); }
package com.ch_linghu.fanfoudroid.ui.base; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.BitmapDrawable; import android.text.TextPaint; import android.util.Log; import android.view.View; import android.view.ViewGroup; im...
package com.ch_linghu.fanfoudroid.ui.base; import java.util.ArrayList; import java.util.List; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import android.widget.ProgressBar; import android.widget.TextView; import com.ch_linghu.fanfoudroid.R;...
/* * Copyright (C) 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 law or agree...
package com.ch_linghu.fanfoudroid.ui.base; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.ContextMenu; import andro...