code
stringlengths
3
1.18M
language
stringclasses
1 value
package net.cardgame.orcalecard; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.orcalecard.bean.DeckBean; import net.cardgame.orcalecard.bean.SettingApp; import net.cardgame.orcalecard.utils.ConstantValue; import android.app.Activity; import android.content.Intent; imp...
Java
package net.cardgame.orcalecard.asynctask; import net.cardgame.orcalecard.utils.ConstantValue; import net.cardgame.orcalecard.utils.NetworkUtils; import android.content.Context; import android.os.AsyncTask; public class GetListDeckTask extends AsyncTask<String, Integer, String> { private DownloadListener d...
Java
package net.cardgame.orcalecard.asynctask; public interface DownloadListener { public void onDownloadSuccessListener(String result); public void onDownloadFailListener(String result); public void onProgressUpdateListener(Integer update); }
Java
package net.cardgame.orcalecard.asynctask; import java.io.InputStream; import jp.jma.oraclecard.MyApplication; import net.cardgame.orcalecard.utils.FileUtils; import uk.co.senab.bitmapcache.BitmapLruCache; import uk.co.senab.bitmapcache.CacheableBitmapDrawable; import android.content.Context; import android....
Java
package net.cardgame.orcalecard; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.NoSuchPaddingException; import jp.jma.oraclecard.R; import net.cardgame.oracl...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.HashMap; import jp.jma.oraclecard.R; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import andr...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.ImageClickable; import net.cardgame....
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.Helper; import net.cardgame.oracleca...
Java
package net.cardgame.orcalecard.bean; import android.os.Parcel; import android.os.Parcelable; /** * Lớp dữ liệu thể hiện từng quân bài * */ public class CardBean implements Parcelable { // id của là bài public int cardId; // id của bộ bài chứa lá bài public int deckId; // vị trí của lá bà...
Java
package net.cardgame.orcalecard.bean; import java.util.Date; /** * Lớp dữ liệu thể hiện bộ bài * */ public class DeckBean { // ID của bộ bài public int deckId; @Override public String toString() { return "DeckBean [\ndeckId=" + deckId + ", \ndeckName=" + deckName + ",...
Java
package net.cardgame.orcalecard.bean; import java.util.ArrayList; import java.util.Date; /** * Lớp thể hiện lịch sử rút bài * */ public class HistoryBean { public int id; // Deckbean Id public int deckbeanId; // question of this history public String question; // Deck Bean title public St...
Java
package net.cardgame.orcalecard.bean; import java.util.ArrayList; import java.util.List; public class SettingApp { public final static int SORT_BY_RELEASE = 1; public final static int SORT_BY_BUY = 2; public final static int SORT_BY_USED = 3; // setting co jumpcard trong khi rut hay khong(true: co jumpca...
Java
package net.cardgame.orcalecard.bean; import java.util.Date; /** * Lớp thể hiện tin tức mới * */ public class NewsBean { @Override public String toString() { return "NewsBean [sumary=" + sumary + ", datetime=" + datetime + ", time=" + time + "]"; } public int id; public String sumary;...
Java
package net.cardgame.orcalecard; import jp.jma.oraclecard.R; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.widget.Button; import android.widget.TextView; public class HelpActivity extends...
Java
package net.cardgame.orcalecard.utils; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Date; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFacto...
Java
package net.cardgame.orcalecard.utils; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.DisplayMetrics; import android.view.Display; /** * Lớp xử lý chung các vấn đề...
Java
package net.cardgame.orcalecard.utils; import android.util.Log; public class Utils { private static final Boolean DEBUG = true; public static void ILog(String tag, String content) { if (DEBUG) { Log.i(tag, content); } } public static void ELog(String tag, String content) { if (DEBUG) { ...
Java
package net.cardgame.orcalecard.utils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.io.UnsupportedEncodingException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.Documen...
Java
package net.cardgame.orcalecard.utils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; 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....
Java
package net.cardgame.orcalecard.utils; import android.app.Activity; import android.view.inputmethod.InputMethodManager; public class KeyboardHelper { public static void hideSoftKeyboard(Activity activity) { InputMethodManager inputMethodManager = (InputMethodManager) activity .getSystemService(Activi...
Java
package net.cardgame.orcalecard.utils; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import net.cardgame.orcalecard.bean.DeckBean; import net.cardgame.orcalecard.bean.HistoryBean; public class Sort { public static final Comparator<DeckBean> RELEASE_ORDER = new Comp...
Java
package net.cardgame.orcalecard.utils; import java.lang.reflect.Type; import net.cardgame.orcalecard.bean.SettingApp; import net.cardgame.orcalecard.pref.SecurePreferences; import android.content.Context; import android.os.Environment; import android.os.StatFs; import com.google.gson.Gson; import com.goog...
Java
package net.cardgame.orcalecard; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.MySwitch; import net.cardgame.orcalecard.bean.SettingApp; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.View.OnClickListener; ...
Java
package net.cardgame.orcalecard; import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import android.graphics.Bitmap; import android.util.Log; public class GalleryMemoryCache { private static final String TAG = "Memo...
Java
package net.cardgame.orcalecard.pref; import java.util.Iterator; import java.util.Map; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; public class GalleryPreferences { public static final int MODE = Context.MODE_PRIVATE; public ...
Java
package net.cardgame.orcalecard.pref; /* Copyright (C) 2012 Sveinung Kval Bakken, sveinung.bakken@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.SelectedHistoryListener; import net.cardgame.orcalecard.bean.HistoryBean; import android.annotation.SuppressLint; import android.app.Activity; import android.view.LayoutInflater; im...
Java
package net.cardgame.orcalecard; import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.NoSuchPaddingException; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.ThreadL...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import java.util.HashMap; import jp.jma.oraclecard.R; import net.cardgame.orcalecard.utils.ConstantValue; import net.cardgame.orcalecard.utils.NetworkUtils; import net.cardgame.orcalecard.utils.XmlParserInfoApp; import org.w3c.dom.Document; impo...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.onDeleteNewsBeanListener; import net.cardgame.orcalecard.bean.NewsBean; import android.annotation.SuppressLint; import android.app.Activity; import android.view.LayoutInflater; impo...
Java
package net.cardgame.orcalecard; import java.io.ByteArrayInputStream; 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.OutputStream; import java.util.Collections; ...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Date; import java.util.Random; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.ThreadLoadImage; import net.cardgame.oraclecard.service.DownloadUnzipObject; import net.cardgame.oracl...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Date; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.billingutils.IabHelper; import net.cardgame.oraclecard.billingutils.IabResult; import net.cardgame.oraclecard.billingutils.Inventory; ...
Java
package net.cardgame.orcalecard; import java.io.File; import java.lang.reflect.Type; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.service.ServiceUpdateFileConfig; import net.cardgame.orcalecard.bean.SettingApp; import net.cardgame.orcalecard.pref.SecurePreferences; import net.cardgame.orcalecar...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.CustomAnimationListener; import net.cardgame.o...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import java.util.List; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.MySwitch; import net.cardgame.oraclecard.common.SavedListener; import net.cardgame.orcalecard.bean.DeckBean; import ne...
Java
package net.cardgame.orcalecard; import java.util.Random; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.service.ServiceDownload; import net.cardgame.orcalecard.utils.ConstantValue; import net.cardgame.orcalecard.utils.Utils; import android.app.Activity; import android.content.BroadcastReceiver; ...
Java
package net.cardgame.orcalecard; import java.io.File; import java.io.IOException; import java.lang.reflect.Type; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.List; import javax.crypto.NoSuchPaddingException; import j...
Java
package net.cardgame.orcalecard; import java.util.ArrayList; import java.util.Date; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.service.DownloadUnzipObject; import net.cardgame.oraclecard.service.ServiceDownload; import net.cardgame.oraclecard.service.Se...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.animation.FlakeView; import net.cardgame.orcalecard.asynctask.DownloadListener; import net.cardgame.orcalecard.asynctask.GetListDeckTask; import net.cardgame....
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Collections; import java.util.List; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.SelectedHistoryListener; import net.cardgame.orcalecard.b...
Java
package net.cardgame.orcalecard; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Date; import java.util.List; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import...
Java
package net.cardgame.orcalecard; import java.lang.reflect.Type; import java.util.ArrayList; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.SavedListener; import net.cardgame.orcalecard.bean.DeckBean; import net.cardgame.orcalecard.bean.SettingApp; import net.cardgame.orcalecard.pref.Secure...
Java
package net.cardgame.orcalecard; import java.util.Arrays; import java.util.Collection; import java.util.List; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.common.ThreadLoadImage; import net.cardgame.orcalecard.bean.CardBean; import net.cardgame.orcalecard.utils.ConstantValue; import net.cardga...
Java
package net.cardgame.orcalecard; import java.util.List; import android.app.Activity; import android.util.DisplayMetrics; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class GalleryAdapter...
Java
package net.cardgame.orcalecard; import java.io.IOException; import jp.jma.oraclecard.MyApplication; import jp.jma.oraclecard.R; import net.cardgame.oraclecard.animation.AnimationFactory; import net.cardgame.oraclecard.animation.AnimationFactory.FlipDirection; import net.cardgame.oraclecard.common.ImageClicka...
Java
/* * Copyright (C) 2011 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 required by app...
Java
/** * Copyright (c) 2012 Ephraim Tekle genzeb@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, mo...
Java
/* * Copyright (C) 2011 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 required by app...
Java
/** * Copyright (c) 2012 Ephraim Tekle genzeb@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, mo...
Java
// Copyright 2002, 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 agr...
Java
/* Copyright (c) 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 a...
Java
package net.cardgame.oraclecard.billingutils; // Portions copyright 2002, 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/LI...
Java
/* Copyright (c) 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 a...
Java
/* Copyright (c) 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 a...
Java
/* Copyright (c) 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 a...
Java
/* Copyright (c) 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 a...
Java
/* Copyright (c) 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 a...
Java
/* Copyright (c) 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 a...
Java
package net.cardgame.oraclecard.service; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.lang.reflect.Type; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.Timer; i...
Java
package net.cardgame.oraclecard.service; public class DownloadUnzipObject { @Override public String toString() { return "DownloadUnzipObject [deckId=" + deckId + ", position=" + position + ", percent=" + percent + ", urlDownload=" + urlDownload + ", finished=" + finished + ", pathSaveFile=" + p...
Java
package net.cardgame.oraclecard.service; public interface ServiceDownloadListener { void onUpdateProgressListener(int percent, int position, int deckId); void onDownloadFailListener(DownloadUnzipObject object, String message); void onFinishedListener(DownloadUnzipObject object); }
Java
package net.cardgame.oraclecard.service; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.Date; import net.cardgame.orcalecard.bean.DeckBean; import net.cardgame.orcalecard.pref.SecurePreferences; import net.cardgame.orcalecard.utils.ConstantValue; import net.cardgame.orcalecard.ut...
Java
package net.cardgame.oraclecard.common; public interface SavedListener { public void onSave(boolean save); }
Java
package net.cardgame.oraclecard.common; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.ListAdapter; import android.widget.ListView; public class Helper { public static void getListViewSize(ListView myListView) { ListAdapter myListAdapter = myListVi...
Java
package net.cardgame.oraclecard.common; import net.cardgame.orcalecard.bean.HistoryBean; public interface SelectedHistoryListener { public void onSelectedItemListener(int id); public void onFinished(); public void onDeleteHistory(HistoryBean history); }
Java
package net.cardgame.oraclecard.common; import jp.jma.oraclecard.R; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawab...
Java
/******************************************************************************* * Copyright (c) 2013 Chris Banes. * * 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...
Java
package net.cardgame.oraclecard.common; import java.io.InputStream; import jp.jma.oraclecard.MyApplication; import net.cardgame.orcalecard.utils.FileUtils; import uk.co.senab.bitmapcache.BitmapLruCache; import uk.co.senab.bitmapcache.CacheableBitmapDrawable; import android.content.Context; import android.gra...
Java
package net.cardgame.oraclecard.common; import net.cardgame.orcalecard.bean.NewsBean; public interface onDeleteNewsBeanListener { public void onDeleted(NewsBean newsBean); }
Java
/* * Copyright (C) 2010 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 required by app...
Java
package net.cardgame.oraclecard.common; import android.widget.ImageView; public interface CustomAnimationListener { public void onEndAnimation(ImageView imageview); }
Java
/** Automatically generated file. DO NOT MODIFY */ package jp.jma.oraclecard; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
/** Automatically generated file. DO NOT MODIFY */ package gracedave.CoopATMFinder; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
package gracedave.CoopATMFinder; import android.app.Activity; import android.os.Bundle; public class CoopATMFinderActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); se...
Java
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...
Java
/*** 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...
Java
/*** 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...
Java
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...
Java
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...
Java
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...
Java
package com.ch_linghu.fanfoudroid.service; public interface IService { void startService(); void stopService(); }
Java
/* * 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...
Java
/* * 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...
Java
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....
Java
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...
Java
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...
Java
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...
Java
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...
Java
/* * 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...
Java
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...
Java
package com.ch_linghu.fanfoudroid.data; import android.database.Cursor; public interface BaseContent { long insert(); int delete(); int update(); Cursor select(); }
Java
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...
Java
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...
Java
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; ...
Java
/* * 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...
Java
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() ...
Java
/* * 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...
Java
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...
Java
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...
Java