sudo su : root şifresi tanımlama
. = bulunduğun dizin
~ = Home
~/.bashrc = kullanıcı ile ilgili kofigürasyonların tutulduğu klasör
import android.location.Location | |
import com.example.hmsgmssinglecodebase.LocationHelper; | |
class DashboardActivity : AppCompatActivity(), LocationHelper.GlobalLocationCallback { | |
... | |
companion object { | |
... | |
const val REQUEST_CHECK_SETTINGS = 999 |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.IntentSender | |
import android.location.Location | |
import android.os.Looper | |
import com.huawei.hms.common.ResolvableApiException | |
import com.huawei.hms.location.* | |
class LocationHelper @JvmOverloads constructor( | |
private val activity: Activity, |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.IntentSender.SendIntentException | |
import android.location.Location | |
import android.os.Looper | |
import com.google.android.gms.common.api.ResolvableApiException | |
import com.google.android.gms.location.* | |
class LocationHelper @JvmOverloads constructor( | |
private val activity: Activity, |
dependencies { | |
... | |
//Google Services | |
gmsImplementation "com.google.android.gms:play-services-location:${googleGmsVersion}" | |
//Huawei Services | |
hmsImplementation "com.huawei.agconnect:agconnect-core:${hmsVersion}" | |
hmsImplementation "com.huawei.hms:location:${hmsLocationVersion}" | |
} |
if (getGradle().getStartParameter().getTaskRequests().toString().contains("Hms")) { | |
apply plugin: 'com.huawei.agconnect' | |
} else { | |
apply plugin: 'com.google.gms.google-services' | |
} |
flavorDimensions …, "services" | |
productFlavors { | |
... | |
gms { | |
dimension "services" | |
buildConfigField "String", "SERVICE_USED", '"gms"' | |
} | |
NOTLAR | |
Data Manipülasyon Komutları (Select, Insert, Update, Delete, ...) | |
Veritabanı Manipülasyon Komutları (Create, Alter, Drop, ...) | |
SELECT | |
Use VeritabanıAdı | |
Select sütun1, [sütun adı 2], sütun3 From tablo1 |
First go to https://appcenter.ms/ and create an account
Follow sdk setup steps and implement app center to android project
(https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/android)
dependencies {
def appCenterSdkVersion = '3.2.1'
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
/** | |
* ANY type holds any type of object. | |
* The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass. | |
*/ | |
/** | |
* Almost everything in Kotlin is an expression with a value, but there a few exceptions. | |
* WHILE loops and FOR loops are not expression with a value | |
*/ |