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 MyAsyncTask extends AsyncTask<Void, Void, Cursor> { | |
@Override | |
protected Cursor doInBackground(Void... params) { | |
DatabaseHelper helper = new DatabaseHelper(MainActivity.this); | |
return helper.getReadableDatabase().rawQuery("SELECT * FROM myTable", null); | |
} | |
@Override |
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 net.anichart.ui.util.Binding; | |
import android.databinding.BindingAdapter; | |
import android.widget.ImageView; | |
import com.squareup.picasso.Picasso; | |
/** | |
* Binds image related properties | |
*/ |
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
#!/bin/bash | |
artifact=~/.m2/repository/com/github/rjeschke/jnibuild/0.1-SNAPSHOT/jnibuild-0.1-SNAPSHOT.jar | |
if [ ! -f $artifact ] | |
then | |
mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=http://maven.renejeschke.de/snapshots/ -Dartifact=com.github.rjeschke:jnibuild:0.1-SNAPSHOT | |
fi | |
java -cp $artifact com.github.rjeschke.jnibuild.Build $@ |
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 robotograph; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff; | |
import android.graphics.PorterDuffXfermode; | |
import android.util.AttributeSet; |
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
-dontwarn | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable | |
-renamesourcefileattribute SourceFile | |
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature,InnerClasses | |
-keepclasseswithmembernames class * { | |
native <methods>; | |
} | |
-keepclasseswithmembernames class * { |
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
builder.photoSize( | |
firstAvailable( | |
wideRatio(biggestSize()), | |
standardRatio(biggestSize()) | |
) | |
) |