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 ExampleRVAdapter( | |
var data: List<String>? = null, | |
val context: Context? = null): | |
RecyclerView.Adapter<ExampleRVAdapter.ViewHolder>() { | |
override fun onCreateViewHolder( | |
parent: ViewGroup, | |
viewType: Int | |
): ViewHolder { | |
val view = LayoutInflater.from(parent.context) |
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 FileToGetDataIn extends Activity, cat{ | |
lateinit var mahInterface: cat; | |
override fun onCreate() { | |
// Pass as intentt | |
FileToPassDataFrom().apply(this.setCatInterface(this@FileToPassDataFrom) | |
} |
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 Request { | |
String city; | |
String address; | |
String vacancy; | |
String department; |
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 ctize.connectplus.com.communitize; | |
import android.animation.Animator; | |
import android.animation.AnimatorListenerAdapter; | |
import android.content.ActivityNotFoundException; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.os.Build; | |
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
private listner = Update_Interface; | |
| |
onCreate(){ | |
| |
Fragment f = getActivity().getFragmentManager().findFragmentById(R.id.fragment_update); | |
setListner((Update_fragment) f); | |
} | |
| |
public void post_data(View view) { |
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 timeStamp = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()) + ""; | |
long posttime = Long.parseLong( list_items.getTime()); | |
long nowtime = Long.parseLong(timeStamp); | |
long diff = nowtime - posttime; | |
int diffe = (int) diff; |
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
<?php | |
function getDistance($latitude1, $longitude1, $latitude2, $longitude2) { | |
$earth_radius = 6371; | |
$distanceLat = deg2rad($latitude2 - $latitude1); | |
$distanceLon = deg2rad($longitude2 - $longitude1); | |
//part1 of the formula |
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[] cities = { "Mumbai","Chennai","Delhi","Banglore","Kolkata","Nagpur","Pune","Nashik","Ahemdabad","Vadodara","Kochin"}; | |
ArrayAdapter<String> adaptercity = new ArrayAdapter<String>(this,android.R.layout.select_dialog_singlechoice, cities); //pass our array of string | |
AutoCompleteTextView acTextViewcity = (AutoCompleteTextView) findViewById(R.id.city);//initialize your view | |
acTextViewcity.setThreshold(1);//set the number of element to be choosen | |
acTextViewcity.setAdapter(adaptercity); //set the array within the adapter here | |
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
/* | |
FEATURES: | |
- One Line Implementation | |
- Simple Calls To Retreive Latitude & Longitude In DOUBLE Format | |
- Simple Calls To Retreive Latitude & Longitude In STRING Format |