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
{"id":"BTC","currency":"BTC","symbol":"BTC","name":"Bitcoin","logo_url":"https://s3.us-east-2.amazonaws.com/nomics-api/static/images/currencies/btc.svg","status":"active","price":"23379.84899259","price_date":"2022-08-17T00:00:00Z","price_timestamp":"2022-08-17T20:25:00Z","circulating_supply":"19124187","max_supply":"21000000","market_cap":"447120604166","market_cap_dominance":"0.3841","num_exchanges":"468","num_pairs":"92272","num_pairs_unmapped":"10790","first_candle":"2011-08-18T00:00:00Z","first_trade":"2011-08-18T00:00:00Z","first_order_book":"2017-01-06T00:00:00Z","rank":"1","rank_delta":"0","high":"67599.15467964","high_timestamp":"2021-11-08T00:00:00Z","1d":{"volume":"65290667223.65","price_change":"-604.10757635","price_change_pct":"-0.0252","volume_change":"4789313600.37","volume_change_pct":"0.0792","market_cap_change":"-11586020214.47","market_cap_change_pct":"-0.0253"},"7d":{"volume":"415303211835.35","price_change":"-579.25419302","price_change_pct":"-0.0242","volume_change":"75745641880.84","vo |
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
import android.content.ContentUris; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Matrix; | |
import android.net.Uri; | |
import android.os.Build; | |
import android.os.Environment; | |
import android.provider.DocumentsContract; |
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
data class Test( | |
@SerializedName("photos") | |
val photos: List<Photo?>? | |
) { | |
data class Photo( | |
@SerializedName("camera") | |
val camera: Camera?, | |
@SerializedName("earth_date") | |
val earthDate: String?, | |
@SerializedName("id") |
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
{ | |
"result": [ | |
"ADANA", | |
"ADIYAMAN", | |
"AFYONKARAHİSAR", | |
"AĞRI", | |
"AMASYA", | |
"ANKARA", | |
"ANTALYA", | |
"ARTVİN", |
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
require('dns').lookup(require('os').hostname(), function (err, add, fam) { | |
console.log('addr: '+add); | |
}) |
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 dialog = new AlertDialog.Builder(this).create(); | |
dialog.show(); | |
Window window = dialog.getWindow(); | |
window.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); | |
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); |
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
Interface Kısmı | |
interface VeriTasimaListener { | |
fun dataSender(gonderilendeger:String) | |
} | |
Fragment Implement edilecek kısım | |
TestFragment : VeriTasimaListener { | |
} |
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
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import com.yarolegovich.lovelydialog.LovelyInfoDialog; | |
public class NetworkChangeReceiver extends BroadcastReceiver { | |
Context context; |
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
private MyClickHandlers handlers; | |
handlers = new MyClickHandlers(this); | |
public class MyClickHandlers { | |
Context context; | |
public MyClickHandlers (Context context) { | |
this.context = context; | |
} |
NewerOlder