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
{ | |
"1": "ADANA", | |
"2": "ADIYAMAN", | |
"3": "AFYONKARAHİSAR", | |
"4": "AĞRI", | |
"68": "AKSARAY", | |
"5": "AMASYA", | |
"6": "ANKARA", | |
"7": "ANTALYA", | |
"75": "ARDAHAN", |
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 class FlashlightCameraCapturer extends Camera1Capturer { | |
private FlashlightCameraSession cameraSession; | |
private final boolean captureToTexture; | |
public FlashlightCameraCapturer(String cameraName, CameraEventsHandler eventsHandler, boolean captureToTexture) { | |
super(cameraName, eventsHandler, captureToTexture); | |
this.captureToTexture = captureToTexture; | |
} |
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
inline fun <reified T> Context.jsonToClass(@RawRes resourceId: Int): T = | |
Gson().fromJson(resources.openRawResource(resourceId).bufferedReader().use { it.readText() }, T::class.java) | |
inline fun <reified T> Context.fromRemoteJsonToClass(json : String): T = Gson().fromJson(json, T::class.java) |
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
dependencies { | |
ext { | |
// Uygulamada kullanılan kütüphane versiyonları | |
testCompileVersion = '2.2.2' | |
supportLibraryVersion = '27.0.0' | |
constraintLayoutVersion = '1.1.3' | |
esriAndroidSDKVersion = '100.1.0' | |
calligraphyVersion = '2.2.0' | |
butterKnifeVersion = '8.8.1' |
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 UIKit | |
func calculateNet(correct:Int = 0 , wrong:Int = 0 , count:Int = 0) -> (Float) { | |
var result : Float = 0 | |
if (correct <= count && correct >= 0) && (wrong <= count && wrong >= 0) { | |
if (correct + wrong <= count){ | |
result = Float(correct) - Float(wrong)/4 |
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
void getAllListData(ListView listView){ | |
int count = listView.getAdapter().getCount(); | |
String[] listData = new String[count]; | |
for (int i = 0; i < count; i++) { | |
listData[i] = listView.getAdapter().getItem(i).toString(); | |
Log.i(TAG, "onClick: " + listData[i]); | |
} | |
} |
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
mMapView.setMapBackground(Color.parseColor("#ffffff"),Color.parseColor("#ffffff"),0,0); |
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
First, your adapter.notifyDataSetChanged() right before setListAdapter(adapter); in the onCreate() method is useless because the list isn't aware of the data unless you call setListAdapter(). | |
So here is the easy way in you class EventPage : | |
@Override | |
protected void onResume() | |
{ | |
super.onResume(); | |
if (getListView() != null) |
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.content.IntentFilter; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.os.Looper; | |
import rx.Observable; | |
import rx.Scheduler; |
NewerOlder