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 com.example.streetview.HttpRequest.NetworkListener; | |
public class MainActivity extends Activity implements NetworkListener { | |
ImageView iv; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
iv = (ImageView) findViewById(R.id.img); |
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 ReverseGeoAsync extends AsyncTask<String, String, String> { | |
public interface AsyncDone { | |
void networkRequestCompleted(String res); | |
} | |
private AsyncDone _listener; | |
public ReverseGeoAsync(AsyncDone listenerParam) { | |
_listener = listenerParam; | |
} | |
@Override | |
protected String doInBackground(String... uri) { |
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
String sourceString = ""; | |
HttpURLConnection connection; | |
OutputStreamWriter request = null; | |
URL url = null; | |
String response = null; | |
String params = "refext=http://offliberty.com&track=" + uri[0]; | |
try { |
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 BlehActivity extends Activity { | |
private Handler handler; | |
private ProgressBar progress; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
progress = (ProgressBar) findViewById(R.id.progressBar1); | |
handler = new Handler(); |
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
class CreateShareImage extends AsyncTask<String, Void, String> { | |
@Override | |
protected void onPreExecute() { | |
} | |
@Override | |
protected String doInBackground(String... params) { | |
Bitmap bkgImage = BitmapFactory.decodeResource( | |
MainActivity.this.getResources(), R.drawable.stork); | |
Bitmap mutableBitmap = bkgImage.copy(Bitmap.Config.ARGB_8888, true); |
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
class ArcProgress extends View { | |
Context cx; | |
float width; | |
float height; | |
float center_x, center_y; | |
final RectF oval = new RectF(); | |
final RectF touchArea = new RectF(); | |
float sweep = 0; | |
float left, right; |
OlderNewer