text
stringlengths
3
1.18M
package com.android.goal; import java.util.ArrayList; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; public class LeagueAdapter extends ArrayAdapter<League>{ Arra...
package com.android.goal; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView; public class LeagueViewGroup extends LinearLayout { public TextView competition; public ListView listMatch; p...
package com.android.goal; import org.json.JSONException; import org.json.JSONObject; import org.json.JSONTokener; public class Match { private String homeScore,awayScore,homeName,awayName; private int IDMatch; private String kickOff; public Match(){ homeScore = null; awayScore = null; homeNa...
package com.android.goal; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickLis...
package com.android.goal; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.apache.http.HttpResponse; import org.apache...
package com.android.goal; import java.util.ArrayList; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class MatchAdapter extends ArrayAdapter<Match>{ ArrayList<Match> listMatch; int reso...
package com.android.goal; import java.util.ArrayList; public class League { private String competition; private ArrayList<Match> listMatch; public League(String competition){ this.competition = competition; this.listMatch = new ArrayList<Match>(); } public void addMatch(Match match){ i...
package com.android.goal; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; class ImageAdapter extends BaseAdapter { private Context mContext; public ImageAdapt...
package com.android.goal; import android.app.TabActivity; import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; import android.widget.TabHost; public class GoalActivity extends TabActivity { /** Called when the activity is first created. */ @Override public void on...
package com.android.goal; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; //import android.widget.ListView; import android.widget.TextView; public class MatchViewGroup extends LinearLayout { public TextView homeName; public TextView awayName; publi...
package com.android.goal; import java.util.ArrayList; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; import...
package com.android.goal; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView; public class LeagueViewGroup extends LinearLayout { public TextView competition; public ListView listMatch; p...
package com.android.goal; import org.json.JSONException; import org.json.JSONObject; import org.json.JSONTokener; public class Match { private String homeScore,awayScore,homeName,awayName; private int IDMatch; private String kickOff; public Match(){ homeScore = null; awayScore = null; homeNa...
package com.android.goal; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URI; import java.net.URISyntaxException; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; impor...
package com.android.goal; import java.util.ArrayList; import java.util.Map; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; public class MatchAdapter extends ArrayA...
package com.android.goal; import java.util.ArrayList; public class League { private String competition; private ArrayList<Match> listMatch; public League(String competition){ this.competition = competition; this.listMatch = new ArrayList<Match>(); } public void addMatch(Match match){ i...
package com.android.goal; import org.json.JSONException; import org.json.JSONObject; import org.json.JSONTokener; public class Highlight { private double minute; private String player, sub_player, kind; private int IDMatch; public Highlight(){ player = null; sub_player = null; kind = null; IDMatch = 0; ...
package com.android.goal; import java.text.Format; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.os...
package com.android.goal; import android.content.Context; import android.view.LayoutInflater; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.TextView; public class MatchViewGroup extends LinearLayout { public TextView homeName; public TextView awayName; public ...
/* * Copyright 2013 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 in...
/* * Copyright (C) 2013 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...
/* * Copyright 2013 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 in...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in...
/* * 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 in...
/* * 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 in...
/* * 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 in...
/** Automatically generated file. DO NOT MODIFY */ package com.google.android.gcm; public final class BuildConfig { public final static boolean DEBUG = true; }
/* * 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 in...
/* * 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 in...
/* * 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 in...
/* * 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 in...
/* * 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 in...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/* * 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 in w...
/** Automatically generated file. DO NOT MODIFY */ package es.kabamaru.tetris; public final class BuildConfig { public final static boolean DEBUG = true; }
package es.kabamaru.tetris; public class OTetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_YELLOW; public OTetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = BLOCK_TYPE; this.sMap[...
package es.kabamaru.tetris; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.TextView; public class MainMenu extends Activity{ private final Activity...
package es.kabamaru.tetris; public class STetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_GREEN; public STetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = 0; this.sMap[0][1] = ...
package es.kabamaru.tetris; public class JTetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_LIGHBLUE; public JTetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = 0; this.sMap[0][1...
package es.kabamaru.tetris; public class TetrinoMap { public static final int MAP_X_SIZE = 10; public static final int MAP_Y_SIZE = 20; private int[][] map; public TetrinoMap() { map = new int[MAP_X_SIZE][MAP_Y_SIZE]; this.resetMap(); } public TetrinoMap(int x, int y) { //TODO implement ...
package es.kabamaru.tetris; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast...
package es.kabamaru.tetris; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class TetriBlastActivity extends Activity { private MainMap mMainMapView; public static final String TAG = "TetrisBlast"; private static String ICICLE_KEY = "tetris-blast-view";...
package es.kabamaru.tetris; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ListAdapter; public class ManageProfile extends ListActivity{ privat...
package es.kabamaru.tetris; public class LTetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_ORANGE; public LTetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = BLOCK_TYPE; this.sMa...
package es.kabamaru.tetris; public class ITetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_BLUE; public static final int I_SIZE = 4; public ITetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { sMap...
package es.kabamaru.tetris; /** * This class does all the work for setting up and managing Bluetooth * connections with other devices. It has a thread that listens for * incoming connections, a thread for connecting with a device, and a * thread for performing data transmissions when connected. */ public ...
package es.kabamaru.tetris; import android.content.Context; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.util.Log; import android...
package es.kabamaru.tetris; /** * This singleton class hold profile preferences * @author Denis * */ public class Profile { private static Profile instance = null; private static String mName; private static String mId; private static int mLastDifficult; public static final int DEFAULT_DIFFICULT =...
package es.kabamaru.tetris; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.SeekBar; import android.widget.TextView; public class NewGameActivity ext...
package es.kabamaru.tetris; import android.graphics.Point; public abstract class Tetrino { public static final int SIZE = 3; public static boolean ghostEnabled = true; public int[][] sMap; public int[][] gMap;//ghost map of tetrino //public int[][] shadowMap; private Point pos; protected Point ghost...
package es.kabamaru.tetris; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.SystemClock; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; public class MainMap extends TileView{ pub...
package es.kabamaru.tetris; public class ZTetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_RED; public ZTetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = BLOCK_TYPE; this.sMap[0...
package es.kabamaru.tetris; public class TTetrino extends Tetrino { private static final int BLOCK_TYPE = TileView.BLOCK_PINK; public TTetrino(int x, int y) { super(x, y); initTetrino(); if(ghostEnabled) initGhost(); } private void initTetrino() { this.sMap[0][0] = BLOCK_TYPE; this.sMap[...
package es.kabamaru.tetris; import java.util.Set; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; imp...
package com.example.trabalho; import java.util.ArrayList; import java.util.Random; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import androi...
package com.example.trabalho; import java.util.ArrayList; import android.R.anim; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import ...
package com.example.aplibancodedadosaula; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class TelaPrincipal extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.acti...
package com.idione.activities; import android.app.Activity; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; impor...
package com.idione.activities; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ToggleButton; import com.idione.util.LogUtil; import com.idione.util.SoundSingleton; import com.i...
package com.idione.activities; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.TextView; import com.idione.util.LogUtil; public class Credit extends Activity implements OnClic...
package com.idione.activities; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.Button; i...
package com.idione.activities; import java.io.IOException; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.graphics.Typeface; import android.media.MediaPlayer; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.v...
package com.idione.activities; import oauth.signpost.OAuth; import oauth.signpost.OAuthConsumer; import oauth.signpost.OAuthProvider; import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer; import oauth.signpost.commonshttp.CommonsHttpOAuthProvider; import twitter.Constants; import twitter.OAuthRequestToke...
package com.idione.model; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBSQLiteHelper extends SQLiteOpenHelper { private static final String TAG = "DBSQLiteHelper"; private static fin...
package com.idione.model; import java.util.ArrayList; import android.content.Context; import android.graphics.Typeface; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; ...
package com.idione.model; public class StructImg { private String name; private int idDrawable; private String explanation; public StructImg(String name, int idDrawable, String explanation) { this.name=name; this.idDrawable = idDrawable; this.explanation=explanation; } public String get...
package com.idione.model; import android.content.Context; import android.database.Cursor; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.GridView; import android.widget.ImageView; import com.idione.activities.R; im...
package com.idione.model; import android.content.Context; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; public class DBAdapter { private DBSQLiteHelper DBHelper; private SQLiteDatabase db; public DBAdapter(Context ctx) { DBHelper = new D...
package com.idione.model; import android.graphics.drawable.Drawable; import android.util.Log; import com.idione.util.LogUtil; public class StructSeeQuestion { private int id; private String numberQuestionTitle; private String questionText; private Drawable drawable; public StructSeeQuestion(i...
package com.idione.controller; import android.app.Dialog; import android.content.Context; import android.graphics.Typeface; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.view.Window; import android.widge...
package com.idione.controller; import android.app.Dialog; import android.content.Context; import android.graphics.Typeface; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.view.Window; import android.widge...
package com.idione.controller; import android.app.Dialog; import android.content.Context; import android.graphics.Typeface; import android.util.Log; import android.view.View; import android.view.Window; import android.view.View.OnClickListener; import android.view.ViewGroup.LayoutParams; import android.widge...
package com.idione.util; import java.io.InputStream; import java.net.URL; import android.content.Context; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.net.ConnectivityManager; import android.net.NetworkInfo; public abstract class LogUtil { public static f...
package com.idione.util; import android.content.Context; import android.os.SystemClock; import android.text.format.DateFormat; import android.util.AttributeSet; import android.util.Log; import android.widget.Chronometer; public class MyChronometer extends Chronometer{ private long elapsedTime = 0; priv...
package twitter; import oauth.signpost.OAuthConsumer; import oauth.signpost.OAuthProvider; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.util.Log; /** * An asynchronous task that communicates with Twitter to * retrieve...
package twitter; import java.io.File; import oauth.signpost.OAuth; import twitter4j.StatusUpdate; import twitter4j.Twitter; import twitter4j.TwitterException; import twitter4j.TwitterFactory; import twitter4j.User; import twitter4j.auth.AccessToken; import android.content.SharedPreferences; import android...
package twitter; public class Constants { public static final String CONSUMER_KEY = "5KRsvmjy5keMItLvx7ZKYw"; public static final String CONSUMER_SECRET= "CdcTdvrd8QwWp8iaiA8x7GoDofNkdw9INoByYag3s"; public static final String REQUEST_URL = "https://api.twitter.com/oauth/request_token"; public static fin...
package com.wu.viewpagerdemo; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class ActivityTabSub extends Activity implements IViewPagerChangeListener { private static final String TAG = "test"; protec...
package com.wu.viewpagerdemo; import android.os.Bundle; public class ActivityTab3 extends ActivityTabSub { public static ActivityTab3 instance; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tab_third); } @...
package com.wu.viewpagerdemo; public interface IViewPagerChangeListener { IViewPagerChangeListener getInstance(); void onVisible(); void onInvisible(); }
package com.wu.viewpagerdemo; import android.os.Bundle; public class ActivityTab1 extends ActivityTabSub { public static ActivityTab1 instance; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tab_first); } @...