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
private class PlaceAdapter extends ArrayAdapter<Place> { | |
public Context context; | |
public int layoutResourceId; | |
public ArrayList<Place> places; | |
public PlaceAdapter(Context context, int layoutResourceId, ArrayList<Place> places) { | |
super(context, layoutResourceId, places); | |
this.layoutResourceId = layoutResourceId; | |
this.places = places; | |
} |
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
private class MyLocationListener implements LocationListener { | |
@Override | |
public void onLocationChanged(Location location) { | |
latitude = String.valueOf(location.getLatitude()); | |
longitude = String.valueOf(location.getLongitude()); | |
} | |
@Override | |
public void onStatusChanged(String s, int i, Bundle 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
public class MyRunnable implements Runnable { | |
public MyRunnable() { | |
} | |
public void run() { | |
myLocation.getLocation(getApplicationContext(), locationResult); | |
} | |
} | |
} // End of File |
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 com.example; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import android.content.Context; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<TextView android:id="@+id/htttptestrow_name" | |
android:textSize="16sp" | |
android:textStyle="bold" | |
android:layout_width="match_parent" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<ListView android:id="@+id/httptestlist_listview" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"/> | |
</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 com.example; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.location.Location; | |
import android.app.ProgressDialog; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.AsyncTask; | |
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
package com.example; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import android.content.Context; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
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
module.exports = function(grunt) { | |
grunt.registerTask('compile-js', 'Runs GoogleClosure compiler on all javascript files', function() { | |
var exec = require('child_process').exec; | |
var done = grunt.task.current.async(); | |
var compilationLevel = "--compilation_level SIMPLE_OPTIMIZATIONS "; | |
var cmd = "java -jar ./build/google-closure-compiler.jar " + compilationLevel; | |
var jsDir = "./javascript/"; | |
var addJs = "--js " + jsDir; | |
var output = " --js_output_file ./build/deploy/javascript-compiled.js"; | |
// Javascript files must be in the same order as loaded in the html file |
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
" Enable Pathogen | |
execute pathogen#infect() | |
" Enable Syntax | |
syntax on | |
" Enable Autowrite | |
set autowrite | |
" Indent based upon filetype when possible |