Уроки по Android Studio

Open app ads

Зависимости def lifecycle_version = "2.2.0"implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"annotationProcessor "androidx.lifecycle:lifecycle-compiler:$lifecycle_version" AppMainState import android.app.Activity;import android.app.Application;import android.content.Context;import android.os.Bundle;import android.util.Log;import androidx.annotation.NonNull;import androidx.annotation.Nullable;import androidx.lifecycle.Lifecycle;import androidx.lifecycle.LifecycleObserver;import androidx.lifecycle.OnLifecycleEvent;import androidx.lifecycle.ProcessLifecycleOwner;import com.google.android.gms.ads.AdError;import com.google.android.gms.ads.AdRequest;import com.google.android.gms.ads.FullScreenContentCallback;import com.google.android.gms.ads.LoadAdError;import… Read More »Open app ads

Interstetial Ads

https://youtu.be/WeD_lDemlzg MainActivity import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import com.google.android.gms.ads.* import com.google.android.gms.ads.interstitial.InterstitialAd import com.google.android.gms.ads.interstitial.InterstitialAdLoadCallback import com.neco_desarrollo.earnapp.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { private lateinit var binding:… Read More »Interstetial Ads

Camera Permission | QR Scanner

MainActivity import android.Manifestimport android.content.Intentimport android.content.pm.PackageManagerimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.widget.Buttonimport android.widget.ImageViewimport androidmads.library.qrgenearator.QRGContentsimport androidmads.library.qrgenearator.QRGEncoderimport androidx.core.app.ActivityCompatimport androidx.core.content.ContextCompatimport com.google.zxing.WriterExceptionclass MainActivity : AppCompatActivity() { var im: ImageView? = null var bGenerate:… Read More »Camera Permission | QR Scanner

QR Code Generator

https://youtu.be/pQ1KYUJpCGU Библиотека: implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3' MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.widget.Buttonimport android.widget.ImageViewimport androidmads.library.qrgenearator.QRGContentsimport androidmads.library.qrgenearator.QRGEncoderimport com.google.zxing.WriterExceptionclass MainActivity : AppCompatActivity() { var im: ImageView? = null var bGenerate: Button?… Read More »QR Code Generator

Приложение “Уровень”

MainActivity import android.content.Context import android.graphics.Color import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.LinearLayout import android.widget.TextView class MainActivity : AppCompatActivity()… Read More »Приложение “Уровень”

BtMonitor Kotlin | #3

https://youtu.be/FJ7kZQNitJg BtListActivity import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothManager import android.content.Context import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import androidx.recyclerview.widget.LinearLayoutManager import com.neco_desarrollo.btmonitorkotlin.databinding.ActivityMainBinding class BtListActivity :… Read More »BtMonitor Kotlin | #3

BtMonitor Kotlin | #2

https://youtu.be/PCqekbxHRI4 MainActivity import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothManager import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import androidx.recyclerview.widget.LinearLayoutManager import com.neco_desarrollo.btmonitorkotlin.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() {… Read More »BtMonitor Kotlin | #2