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.vinayaka.test; | |
import android.app.ProgressDialog; | |
import android.os.AsyncTask; | |
import android.support.v7.app.AlertDialog; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; |
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
//b is a Button | |
//The format of the function is | |
//Button.setOnClickListner(View.OnClickListner onClickListner) | |
//So we are going to implement View.OnClickListner in place | |
b.setOnClickListener( | |
//We are going to implement View.OnClickListner interface | |
//That interface has only one method | |
//public void onClick(View v) | |
//takes a View v as input and returns nothing | |
//Since the interface has only one method, we can use Lambdas and reduce code complexity |
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
static void Main(string[] args) | |
{ | |
Thread t = new Thread(() => Console.WriteLine(FetchResult().Result)); | |
t.Start(); | |
for (int i = 0; i < 100; i++) | |
Console.Write("*"); | |
t.Join(); | |
Console.ReadKey(); | |
} |
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"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<GroundOverlay> | |
<name>Corona Satellite Imagery India</name> | |
<visibility>0</visibility> | |
<LookAt> | |
<longitude>75.35915344984731</longitude> | |
<latitude>13.22948111597904</latitude> | |
<altitude>0</altitude> | |
<heading>87.08474685039201</heading> |