This file contains hidden or 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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity" > | |
<fragment | |
xmlns:map="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/map" | |
android:layout_width="match_parent" |
This file contains hidden or 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.mappedinisrael.fragment; | |
import android.os.Bundle; | |
import com.actionbarsherlock.app.SherlockMapFragment; | |
import com.actionbarsherlock.view.Menu; | |
import com.actionbarsherlock.view.MenuInflater; | |
import com.actionbarsherlock.view.MenuItem; | |
import com.refreshactionprovider.R; | |
import com.refreshactionprovider.widget.RefreshActionProvider; |
This file contains hidden or 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.actionbarsherlock.app; | |
import android.app.Activity; | |
import android.support.v4.app.Watson.OnCreateOptionsMenuListener; | |
import android.support.v4.app.Watson.OnOptionsItemSelectedListener; | |
import android.support.v4.app.Watson.OnPrepareOptionsMenuListener; | |
import com.actionbarsherlock.app.SherlockFragmentActivity; | |
import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; | |
import com.actionbarsherlock.internal.view.menu.MenuWrapper; |
This file contains hidden or 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.refreshactionprovider.sample.fragment; | |
import java.io.IOException; | |
import java.util.List; | |
import org.json.JSONException; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.widget.ArrayAdapter; |
This file contains hidden or 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 Android | |
def self.verify(data , sig) | |
official_key = "mykeygoeshere" | |
key = OpenSSL::PKey::RSA.new(Base64.decode64(official_key)) | |
verified = key.verify( OpenSSL::Digest::SHA1.new, Base64.decode64(sig), data ) | |
end | |
end | |
end |
This file contains hidden or 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"?> | |
<classpath> | |
<classpathentry kind="src" path="packages/apps/Bluetooth/src"/> | |
<classpathentry kind="src" path="packages/apps/Browser/src"/> | |
<classpathentry kind="src" path="packages/apps/Calendar/src"/> | |
<classpathentry kind="src" path="packages/apps/Calculator/src"/> | |
<classpathentry kind="src" path="packages/apps/Camera/src"/> | |
<classpathentry kind="src" path="packages/apps/CertInstaller/src"/> | |
<classpathentry kind="src" path="packages/apps/Contacts/src"/> | |
<classpathentry kind="src" path="packages/apps/DeskClock/src"/> |
This file contains hidden or 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
http://myapp.com/users.xml |
This file contains hidden or 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
AlertDialog alertDialog = new AlertDialog.Builder(this).create(); | |
alertDialog.setTitle(this.getResources().getString(R.string.no_internet_dialog_title)); | |
alertDialog.setMessage(this.getResources().getString(R.string.no_internet_dialog_message)); | |
alertDialog.setCancelable(false); | |
alertDialog.setButton(this.getResources().getString(R.string.no_internet_dialog_button_text), new OnClickListener() { | |
public void onClick(DialogInterface dialog, int which) { | |
// I just close the app if there is no internet connection | |
OxydroidActivity.this.finish(); |
This file contains hidden or 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 be.agherschon.moveinbxl.maps; | |
/** | |
* Represents a geographical point. | |
* As it is used with Google Maps, it has two more getters, which returns the values in x^E6. | |
* @author Alexandre Gherschon | |
*/ | |
public class Point { | |
private double latitude ; | |
private double longitude; |
This file contains hidden or 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 static Point lambert72toWGS84(double x, double y) { | |
double newLongitude; | |
double newLatitude; | |
double n = 0.77164219; | |
double F = 1.81329763; | |
double thetaFudge = 0.00014204; | |
double e = 0.08199189; | |
double a = 6378388; |