This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.ActionBar; | |
import android.os.PersistableBundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.ViewGroup; | |
import android.view.WindowManager; | |
import android.widget.LinearLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tl.domacoski; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.List; | |
import android.annotation.SuppressLint; | |
import android.media.MediaPlayer; | |
import android.net.Uri; | |
import android.os.Bundle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
/** | |
* This class implements the Dynamic Time Warping algorithm | |
* given two sequences | |
* <pre> | |
* X = x1, x2,..., xi,..., xn | |
* Y = y1, y2,..., yj,..., ym | |
* </pre> | |
* | |
* @author Cheol-Woo Jung (cjung@gatech.edu) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Write { | |
public static void writeToFile(String data)throws IOException { | |
FileOutputStream stream = null; | |
try { | |
File root = android.os.Environment.getExternalStorageDirectory(); | |
File dir = new File(root.getAbsolutePath() + "/UBI"); | |
dir.mkdirs(); | |
File file = new File(dir, "LOG_GATEWAY.txt"); | |
stream = new FileOutputStream(file, true); | |
stream.write(data.getBytes()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android.libraryVariants.all { | |
variant -> | |
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) { | |
description "Generates Javadoc for $variant.name." | |
source = variant.javaCompile.source | |
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar" | |
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar) | |
options.links("http://docs.oracle.com/javase/7/docs/api/"); | |
options.links("http://d.android.com/reference/"); | |
options.charSet = 'UTF-8'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
// Remove the below line after defining your own ad unit ID. | |
private static final String TOAST_TEXT = "Test ads are being shown. " | |
+ "To show live ads, replace the ad unit ID in res/values/strings.xml with your own ad unit ID."; | |
private static final int START_LEVEL = 1; | |
private int mLevel; | |
private Button mNextLevelButton; | |
private InterstitialAd mInterstitialAd; | |
private TextView mLevelTextView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
/** | |
* Classe genérica utilizada nas requisições para responder os resultados. | |
*Created by thiago.domakoski on 07/12/15. | |
*/ | |
public class JsonModel { | |
public IOException exception; | |
public int statusCode; | |
} |
OlderNewer