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 interface HttpRequestBuilder { | |
public HttpRequest build(); | |
} | |
HttpRequestBuilder builder = new HttpRequestBuilder { | |
@Override | |
public HttpRequest build() { | |
return HttpRequest.get("uri").acceptJson().userAgent("useragent"); | |
} | |
} |
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 ActionBarActivity { | |
private static final String TAG = "MainActivity"; | |
private static final String SERVER_PREFIX = "SERVER_"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
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.database.MatrixCursor; | |
import android.os.Bundle; | |
import android.provider.DocumentsContract; | |
public class DocumentsCursor extends MatrixCursor { | |
private Bundle mExtras; | |
public DocumentsCursor(String[] columnNames, int initialCapacity) { | |
super(columnNames, initialCapacity); |
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
@echo off | |
adb install -r %1 | |
pause; |
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 org.boundbox.sample; | |
import java.lang.String; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.util.ArrayList; | |
import org.boundbox.BoundBoxException; |
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.Context; | |
import android.util.AttributeSet; | |
import android.view.ViewGroup; | |
public class MyCustomViewGroup extends ViewGroup { | |
public MyCustomViewGroup(Context context) { | |
super(context); | |
// TODO Auto-generated constructor stub |
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 thisisapackage; | |
import java.util.List; | |
public class A { | |
public void doIt(List<String> strings) { | |
// do it | |
} | |
} |