Блог

Weather App Jetpack Compose #1

MainActivity import android.content.Contextimport android.os.Bundleimport android.util.Logimport androidx.activity.ComponentActivityimport androidx.activity.compose.setContentimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.layout.*import androidx.compose.material.Buttonimport androidx.compose.material.MaterialThemeimport androidx.compose.material.Surfaceimport androidx.compose.material.Textimport androidx.compose.runtime.Composableimport androidx.compose.runtime.MutableStateimport androidx.compose.runtime.mutableStateOfimport androidx.compose.runtime.rememberimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.tooling.preview.Previewimport androidx.compose.ui.unit.dpimport com.android.volley.Requestimport com.android.volley.toolbox.StringRequestimport com.android.volley.toolbox.Volleyimport… Подробнее »Weather App Jetpack Compose #1

Weather app #1

Разрешение в AndroidManifest <uses-permission android:name="android.permission.INTERNET"/> Зависимость Volley для build.gradle implementation 'com.android.volley:volley:1.2.1' MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.util.Logimport com.android.volley.Requestimport com.android.volley.toolbox.StringRequestimport com.android.volley.toolbox.Volleyimport com.meter_alc_rgb.wetherapp2.databinding.ActivityMainBindingimport org.json.JSONObjectconst val API_KEY = "297ffc1c3e944aefaaf93152221705"class… Подробнее »Weather app #1

EarnApp #6

MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.os.CountDownTimerimport android.widget.Toastimport androidx.recyclerview.widget.LinearLayoutManagerimport com.google.android.gms.ads.*import com.google.android.gms.ads.interstitial.InterstitialAdimport com.google.android.gms.ads.interstitial.InterstitialAdLoadCallbackimport com.neco_desarrollo.earnapp.adapters.CategoryAdapterimport com.neco_desarrollo.earnapp.adapters.ContentManagerimport com.neco_desarrollo.earnapp.databinding.ActivityMainBindingimport kotlin.random.Randomclass MainActivity : AppCompatActivity(), CategoryAdapter.Listener { private lateinit var binding: ActivityMainBinding private… Подробнее »EarnApp #6

EarnApp #5

MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.os.CountDownTimerimport android.widget.Toastimport androidx.recyclerview.widget.LinearLayoutManagerimport com.google.android.gms.ads.*import com.google.android.gms.ads.interstitial.InterstitialAdimport com.google.android.gms.ads.interstitial.InterstitialAdLoadCallbackimport com.neco_desarrollo.earnapp.adapters.CategoryAdapterimport com.neco_desarrollo.earnapp.adapters.ContentManagerimport com.neco_desarrollo.earnapp.databinding.ActivityMainBindingclass MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding private var adapter:… Подробнее »EarnApp #5

Jetpack Compose – Card, Box, Image

MainActivity import android.os.Bundleimport androidx.activity.ComponentActivityimport androidx.activity.compose.setContentimport androidx.compose.foundation.Imageimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.layout.*import androidx.compose.foundation.shape.CircleShapeimport androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.material.Cardimport androidx.compose.material.MaterialThemeimport androidx.compose.material.Surfaceimport androidx.compose.material.Textimport androidx.compose.runtime.Composableimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifierimport androidx.compose.ui.draw.clipimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.layout.AlignmentLineimport androidx.compose.ui.layout.ContentScaleimport androidx.compose.ui.res.painterResourceimport androidx.compose.ui.tooling.preview.Previewimport androidx.compose.ui.unit.dpimport androidx.compose.ui.unit.spimport… Подробнее »Jetpack Compose – Card, Box, Image

Motivation App

https://youtu.be/WogWqMHL9dE MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.widget.Toastimport androidx.recyclerview.widget.LinearLayoutManagerimport com.google.android.gms.ads.*import com.google.android.gms.ads.interstitial.InterstitialAdimport com.google.android.gms.ads.interstitial.InterstitialAdLoadCallbackimport com.neco_desarrollo.earnapp.adapters.CategoryAdapterimport com.neco_desarrollo.earnapp.adapters.ContentManagerimport com.neco_desarrollo.earnapp.databinding.ActivityMainBindingclass MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding private var adapter:… Подробнее »Motivation App

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… Подробнее »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:… Подробнее »Interstetial Ads

Сколько можно заработать на андроид приложении #1

MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport com.google.android.gms.ads.AdRequestimport com.google.android.gms.ads.MobileAdsimport com.neco_desarrollo.earnapp.databinding.ActivityMainBindingclass MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityMainBinding.inflate(layoutInflater)… Подробнее »Сколько можно заработать на андроид приложении #1

CountDownTimer

MainActivity import androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.os.CountDownTimerimport com.qrvvacuna_desarrollo_qrv.countdowntimer.databinding.ActivityMainBindingclass MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding private var timer: CountDownTimer? = null override fun onCreate(savedInstanceState: Bundle?)… Подробнее »CountDownTimer