This file contains 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
[ | |
{ | |
"quote": "A la grande le puse Cuca.", | |
"author": "Homero Simpson", | |
"image": "https://cdn.glitch.com/3c3ffadc-3406-4440-bb95-d40ec8fcde72%2FHomerSimpson.png?1497567511939" | |
}, | |
{ | |
"quote": "¡¿Alguien quiere pensar en los niños?!", | |
"author": "Helena Alegría", | |
"image": "https://static.wikia.nocookie.net/lossimpson/images/1/16/Helen_Lovejoy.png" |
This file contains 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.app.Application | |
import android.util.Log | |
import com.rogergcc.encryptedsharedpreferencessample.encrypt.EncryptedSharedPreferencesManager | |
import com.rogergcc.encryptedsharedpreferencessample.encrypt.SharedPreferencesMigrator | |
import com.rogergcc.encryptedsharedpreferencessample.preferences.SharedPreferencesManager | |
/** | |
* Created on enero. |
This file contains 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.Manifest; | |
import android.app.Activity; | |
import android.content.pm.PackageManager; | |
import androidx.core.app.ActivityCompat; | |
/** | |
* Created on septiembre. | |
* year 2023 . | |
*/ |
This file contains 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
//In Adapter | |
public void setContactsList(final List<Contact> contactsList) { | |
Log.d("LOGG_DEBUG", "setNotes COntactAdapter: "); | |
ContactsDiffUtilCallback contactsDiffUtilCallback = new ContactsDiffUtilCallback(mContactList, contactsList); | |
DiffUtil.DiffResult diffResult = DiffUtil.calculateDiff(contactsDiffUtilCallback); | |
diffResult.dispatchUpdatesTo(this); | |
mContactList.clear(); | |
mContactList.addAll(contactsList); | |
} |
This file contains 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 val viewModel by viewModels<MovieViewModel> { | |
MovieViewModelFactory( | |
IMovieRepositoryImpl( | |
RemoteMovieDataSource(RetrofitClient.webservice), | |
LocalMovieDataSource(AppDatabase.getDatabase(requireContext()).movieDao()) | |
) | |
) | |
} | |
//2 not arguments |
This file contains 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
Firebase Crashlyticss | |
> https://github.com/ayhanunal/FirebaseCrashlytics |
This file contains 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
android:name=".ui.splashScreen.SplashActivity" | |
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" | |
android:screenOrientation="portrait" | |
android:theme="@style/SplashTheme" | |
android:windowSoftInputMode="adjustResize" | |
This file contains 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.util.Log | |
import java.security.KeyStore | |
import java.security.cert.CertificateException | |
import java.security.cert.X509Certificate | |
import javax.net.ssl.TrustManagerFactory | |
import javax.net.ssl.X509TrustManager | |
class MyTrustManagerPinned : X509TrustManager { |
This file contains 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
[ | |
{ | |
"name": "Crock Pot Roast", | |
"ingredients": [ | |
{ | |
"quantity": "1", | |
"name": " beef roast", | |
"type": "Meat" | |
}, | |
{ |
This file contains 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
package com.rogergcc.workplaycontacts.ui; | |
import android.content.Intent; | |
import android.content.IntentSender; | |
import android.graphics.BitmapFactory; | |
import android.location.Location; | |
import android.os.Bundle; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.view.ViewGroup; |
NewerOlder