public class GaleriaGrupos2 extends androidx.appcompat.app.AppCompatActivity implements OnStartDragListener, RecyclerViewItemClickInterface, android.widget.PopupMenu.OnMenuItemClickListener, FirebaseSuccessListener, FallanDatosDelUsuario, android.view.View.OnClickListener, android.view.View.OnTouchListener, Make_Click_At_Time
Modifier and Type | Class and Description |
---|---|
class |
GaleriaGrupos2.CargarGruposJson |
Modifier and Type | Field and Description |
---|---|
private AnalyticsFirebase |
analyticsFirebase |
private android.widget.ImageButton |
backpress_button |
private bajarFotos |
bajar |
private BarridoPantalla |
barridoPantalla |
(package private) int |
boton |
private android.widget.Button |
btnBarrido |
private com.google.android.material.floatingactionbutton.FloatingActionButton |
btnTalk |
private int |
cantColumnas |
private GaleriaGrupos2.CargarGruposJson |
cargarGruposJson |
private Yes_noDialogs |
dialog_yes_no |
private android.widget.ImageButton |
down_button |
private Progress_dialog_options |
downloadDialog |
private android.widget.ImageButton |
editButton |
private FallanDatosDelUsuario |
fallanDatosDelUsuario |
private boolean |
falloAlLeerGrupos |
private boolean |
falloJson |
private ScrollFunctionGaleriaGrupos |
function_scroll |
private boolean |
isCargando |
private boolean |
isOrdenar |
private android.view.MenuItem |
item |
private Json |
json |
private com.google.firebase.auth.FirebaseAuth |
mAuth |
private com.google.firebase.auth.FirebaseAuth.AuthStateListener |
mAuthListener |
private static android.content.Context |
mContext |
private static java.io.File |
mDirectorio |
private android.view.Menu |
menu |
private org.json.JSONArray |
mJSONArrayBackupFotos |
(package private) int |
mPermission |
private android.widget.ProgressBar |
mProgressBar |
int |
mState |
private com.google.firebase.storage.StorageReference |
mStorageRef |
private android.widget.TextView |
mTextViewCargandoGrupos |
private textToSpeech |
myTTS |
private android.widget.PopupMenu |
popupMenu |
private int |
posColumna |
private int |
progresoDeDescarga |
private Grupo_Recycler_View |
recycler_view_grupo |
private Grupo_Recycler_View_Sort |
recycler_view_sort_grupo |
(package private) android.content.SharedPreferences |
sharedPrefs |
(package private) android.content.SharedPreferences |
sharedPrefsDefault |
private boolean |
showViewPager |
private static java.lang.String |
TAG |
private java.lang.String |
textoPicto |
private androidx.appcompat.widget.Toolbar |
toolbar |
private boolean |
TutoFlag |
private static java.lang.String |
uid |
private android.widget.ImageButton |
up_button |
private static boolean |
updateAdapter |
private static SubirArchivosFirebase |
uploadFirebaseFile |
private viewpager_galeria_grupo |
viewpager |
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, APP_OPS_SERVICE, APPWIDGET_SERVICE, AUDIO_SERVICE, BATTERY_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_EXTERNAL_SERVICE, BIND_IMPORTANT, BIND_INCLUDE_CAPABILITIES, BIND_NOT_FOREGROUND, BIND_NOT_PERCEPTIBLE, BIND_WAIVE_PRIORITY, BIOMETRIC_SERVICE, BLUETOOTH_SERVICE, CAMERA_SERVICE, CAPTIONING_SERVICE, CARRIER_CONFIG_SERVICE, CLIPBOARD_SERVICE, COMPANION_DEVICE_SERVICE, CONNECTIVITY_SERVICE, CONSUMER_IR_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, CROSS_PROFILE_APPS_SERVICE, DEVICE_POLICY_SERVICE, DISPLAY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, EUICC_SERVICE, FINGERPRINT_SERVICE, HARDWARE_PROPERTIES_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, IPSEC_SERVICE, JOB_SCHEDULER_SERVICE, KEYGUARD_SERVICE, LAUNCHER_APPS_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_PROJECTION_SERVICE, MEDIA_ROUTER_SERVICE, MEDIA_SESSION_SERVICE, MIDI_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_NO_LOCALIZED_COLLATORS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NETWORK_STATS_SERVICE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, PRINT_SERVICE, RECEIVER_VISIBLE_TO_INSTANT_APPS, RESTRICTIONS_SERVICE, ROLE_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, SHORTCUT_SERVICE, STORAGE_SERVICE, STORAGE_STATS_SERVICE, SYSTEM_HEALTH_SERVICE, TELECOM_SERVICE, TELEPHONY_SERVICE, TELEPHONY_SUBSCRIPTION_SERVICE, TEXT_CLASSIFICATION_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, TV_INPUT_SERVICE, UI_MODE_SERVICE, USAGE_STATS_SERVICE, USB_SERVICE, USER_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_AWARE_SERVICE, WIFI_P2P_SERVICE, WIFI_RTT_RANGING_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
Constructor and Description |
---|
GaleriaGrupos2() |
Modifier and Type | Method and Description |
---|---|
private void |
accionBajarFoto() |
void |
AlertBorrar() |
protected void |
attachBaseContext(android.content.Context newBase) |
private void |
bajarFotos() |
private void |
chequearDatosParaBackup() |
private void |
crearRecyclerView() |
void |
falloAlLeerArchivo(boolean fallo,
java.lang.String titulo) |
private void |
iniciarBarrido() |
void |
isDroped(boolean isDroped) |
protected void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
FIN Chequear y bajar datos firebase con child listener
|
void |
onArchivosSubidos(boolean subidos) |
void |
onBackPressed() |
void |
onClick(android.view.View view) |
void |
OnClickBarrido() |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(android.view.Menu menu) |
void |
onDatosEncontrados(int datosEncontrados) |
void |
onDescargaCompleta(int descargaCompleta) |
protected void |
onDestroy() |
void |
onFotoDescargada(int fotosDescargadas) |
boolean |
onGenericMotionEvent(android.view.MotionEvent event) |
void |
onItemClicked(java.lang.String name) |
boolean |
onMenuItemClick(android.view.MenuItem item) |
boolean |
onOptionsItemSelected(android.view.MenuItem item) |
protected void |
onPause() |
void |
onPictosSugeridosBajados(boolean descargado) |
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults) |
protected void |
onResume() |
protected void |
onStart() |
void |
onStartDrag(androidx.recyclerview.widget.RecyclerView.ViewHolder viewHolder) |
boolean |
onTouch(android.view.View view,
android.view.MotionEvent event) |
private void |
preguntarPermisos() |
static boolean |
setUpdateAdapter(java.lang.Boolean b) |
static SubirArchivosFirebase |
subirArchivos() |
addContentView, closeOptionsMenu, dispatchKeyEvent, findViewById, getDelegate, getDrawerToggleDelegate, getMenuInflater, getResources, getSupportActionBar, getSupportParentActivityIntent, invalidateOptionsMenu, onConfigurationChanged, onContentChanged, onCreateSupportNavigateUpTaskStack, onKeyDown, onMenuItemSelected, onMenuOpened, onNightModeChanged, onPanelClosed, onPostCreate, onPostResume, onPrepareSupportNavigateUpTaskStack, onSaveInstanceState, onStop, onSupportActionModeFinished, onSupportActionModeStarted, onSupportContentChanged, onSupportNavigateUp, onTitleChanged, onWindowStartingSupportActionMode, openOptionsMenu, setContentView, setContentView, setContentView, setSupportActionBar, setSupportProgress, setSupportProgressBarIndeterminate, setSupportProgressBarIndeterminateVisibility, setSupportProgressBarVisibility, setTheme, startSupportActionMode, supportInvalidateOptionsMenu, supportNavigateUpTo, supportRequestWindowFeature, supportShouldUpRecreateTask
dump, getSupportFragmentManager, getSupportLoaderManager, onAttachFragment, onCreatePanelMenu, onCreateView, onCreateView, onLowMemory, onMultiWindowModeChanged, onNewIntent, onPictureInPictureModeChanged, onPrepareOptionsPanel, onPreparePanel, onResumeFragments, onStateNotSaved, setEnterSharedElementCallback, setExitSharedElementCallback, startActivityForResult, startActivityForResult, startActivityFromFragment, startActivityFromFragment, startIntentSenderForResult, startIntentSenderForResult, startIntentSenderFromFragment, supportFinishAfterTransition, supportPostponeEnterTransition, supportStartPostponedEnterTransition, validateRequestPermissionsRequestCode
getLastCustomNonConfigurationInstance, getLifecycle, getOnBackPressedDispatcher, getSavedStateRegistry, getViewModelStore, onRetainCustomNonConfigurationInstance, onRetainNonConfigurationInstance
dispatchKeyShortcutEvent, getExtraData, putExtraData, superDispatchKeyEvent
closeContextMenu, createPendingResult, dismissDialog, dismissKeyboardShortcutsHelper, dispatchGenericMotionEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, enterPictureInPictureMode, enterPictureInPictureMode, finish, finishActivity, finishActivityFromChild, finishAffinity, finishAfterTransition, finishAndRemoveTask, finishFromChild, getActionBar, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getContentScene, getContentTransitionManager, getCurrentFocus, getFragmentManager, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLoaderManager, getLocalClassName, getMaxNumPictureInPictureActions, getMediaController, getParent, getParentActivityIntent, getPreferences, getReferrer, getRequestedOrientation, getSearchEvent, getSystemService, getTaskId, getTitle, getTitleColor, getVoiceInteractor, getVolumeControlStream, getWindow, getWindowManager, hasWindowFocus, isActivityTransitionRunning, isChangingConfigurations, isChild, isDestroyed, isFinishing, isImmersive, isInMultiWindowMode, isInPictureInPictureMode, isLocalVoiceInteractionSupported, isTaskRoot, isVoiceInteraction, isVoiceInteractionRoot, managedQuery, moveTaskToBack, navigateUpTo, navigateUpToFromChild, onActionModeFinished, onActionModeStarted, onActivityReenter, onApplyThemeResource, onAttachedToWindow, onAttachFragment, onChildTitleChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateDialog, onCreateNavigateUpTaskStack, onCreatePanelView, onCreateThumbnail, onDetachedFromWindow, onEnterAnimationComplete, onGetDirectActions, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onLocalVoiceInteractionStarted, onLocalVoiceInteractionStopped, onMultiWindowModeChanged, onNavigateUp, onNavigateUpFromChild, onOptionsMenuClosed, onPerformDirectAction, onPictureInPictureModeChanged, onPostCreate, onPrepareDialog, onPrepareDialog, onPrepareNavigateUpTaskStack, onPrepareOptionsMenu, onProvideAssistContent, onProvideAssistData, onProvideKeyboardShortcuts, onProvideReferrer, onRestart, onRestoreInstanceState, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onTopResumedActivityChanged, onTouchEvent, onTrackballEvent, onTrimMemory, onUserInteraction, onUserLeaveHint, onVisibleBehindCanceled, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, overridePendingTransition, postponeEnterTransition, recreate, registerActivityLifecycleCallbacks, registerForContextMenu, releaseInstance, removeDialog, reportFullyDrawn, requestDragAndDropPermissions, requestPermissions, requestShowKeyboardShortcuts, requestVisibleBehind, requestWindowFeature, requireViewById, runOnUiThread, setActionBar, setContentTransitionManager, setDefaultKeyMode, setEnterSharedElementCallback, setExitSharedElementCallback, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setFinishOnTouchOutside, setImmersive, setInheritShowWhenLocked, setIntent, setMediaController, setPictureInPictureParams, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setShowWhenLocked, setTaskDescription, setTitle, setTitle, setTitleColor, setTurnScreenOn, setVisible, setVolumeControlStream, setVrModeEnabled, shouldShowRequestPermissionRationale, shouldUpRecreateTask, showAssist, showDialog, showDialog, showLockTaskEscapeMessage, startActionMode, startActionMode, startActivities, startActivities, startActivity, startActivity, startActivityFromChild, startActivityFromChild, startActivityFromFragment, startActivityFromFragment, startActivityIfNeeded, startActivityIfNeeded, startIntentSender, startIntentSender, startIntentSenderFromChild, startIntentSenderFromChild, startLocalVoiceInteraction, startLockTask, startManagingCursor, startNextMatchingActivity, startNextMatchingActivity, startPostponedEnterTransition, startSearch, stopLocalVoiceInteraction, stopLockTask, stopManagingCursor, takeKeyEvents, triggerSearch, unregisterActivityLifecycleCallbacks, unregisterForContextMenu
applyOverrideConfiguration, getAssets, getTheme, setTheme
bindIsolatedService, bindService, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkSelfPermission, checkUriPermission, checkUriPermission, clearWallpaper, createConfigurationContext, createContextForSplit, createDeviceProtectedStorageContext, createDisplayContext, createPackageContext, databaseList, deleteDatabase, deleteFile, deleteSharedPreferences, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getBaseContext, getCacheDir, getClassLoader, getCodeCacheDir, getContentResolver, getDatabasePath, getDataDir, getDir, getExternalCacheDir, getExternalCacheDirs, getExternalFilesDir, getExternalFilesDirs, getExternalMediaDirs, getFilesDir, getFileStreamPath, getMainExecutor, getMainLooper, getNoBackupFilesDir, getObbDir, getObbDirs, getOpPackageName, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getSharedPreferences, getSystemServiceName, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isDeviceProtectedStorage, isRestricted, moveDatabaseFrom, moveSharedPreferencesFrom, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, registerReceiver, registerReceiver, removeStickyBroadcast, removeStickyBroadcastAsUser, revokeUriPermission, revokeUriPermission, sendBroadcast, sendBroadcast, sendBroadcastAsUser, sendBroadcastAsUser, sendOrderedBroadcast, sendOrderedBroadcast, sendOrderedBroadcastAsUser, sendStickyBroadcast, sendStickyBroadcastAsUser, sendStickyOrderedBroadcast, sendStickyOrderedBroadcastAsUser, setWallpaper, setWallpaper, startForegroundService, startInstrumentation, startService, stopService, unbindService, unregisterReceiver, updateServiceGroup
getColor, getColorStateList, getDrawable, getString, getString, getSystemService, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbacks
private static final java.lang.String TAG
android.content.SharedPreferences sharedPrefs
android.content.SharedPreferences sharedPrefsDefault
private boolean TutoFlag
int boton
private com.google.firebase.storage.StorageReference mStorageRef
private com.google.firebase.auth.FirebaseAuth mAuth
private static java.lang.String uid
private android.widget.PopupMenu popupMenu
private static android.content.Context mContext
private java.lang.String textoPicto
private android.view.MenuItem item
private static java.io.File mDirectorio
int mPermission
private static boolean updateAdapter
private static SubirArchivosFirebase uploadFirebaseFile
private Json json
private org.json.JSONArray mJSONArrayBackupFotos
private android.widget.ProgressBar mProgressBar
private android.widget.TextView mTextViewCargandoGrupos
private boolean isCargando
private com.google.android.material.floatingactionbutton.FloatingActionButton btnTalk
private textToSpeech myTTS
private bajarFotos bajar
private int progresoDeDescarga
private com.google.firebase.auth.FirebaseAuth.AuthStateListener mAuthListener
public int mState
private androidx.appcompat.widget.Toolbar toolbar
private android.view.Menu menu
private GaleriaGrupos2.CargarGruposJson cargarGruposJson
private boolean falloJson
private FallanDatosDelUsuario fallanDatosDelUsuario
private Progress_dialog_options downloadDialog
private Yes_noDialogs dialog_yes_no
private boolean falloAlLeerGrupos
private android.widget.ImageButton up_button
private android.widget.ImageButton down_button
private android.widget.ImageButton editButton
private android.widget.ImageButton backpress_button
private android.widget.Button btnBarrido
private int cantColumnas
private int posColumna
private BarridoPantalla barridoPantalla
private viewpager_galeria_grupo viewpager
private Grupo_Recycler_View recycler_view_grupo
private Grupo_Recycler_View_Sort recycler_view_sort_grupo
private boolean showViewPager
private boolean isOrdenar
private ScrollFunctionGaleriaGrupos function_scroll
private AnalyticsFirebase analyticsFirebase
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class androidx.appcompat.app.AppCompatActivity
private void crearRecyclerView()
private void iniciarBarrido()
private void chequearDatosParaBackup()
public void onBackPressed()
onBackPressed
in class androidx.activity.ComponentActivity
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data)
onActivityResult
in class androidx.fragment.app.FragmentActivity
public void onStartDrag(androidx.recyclerview.widget.RecyclerView.ViewHolder viewHolder)
onStartDrag
in interface OnStartDragListener
protected void onStart()
onStart
in class androidx.appcompat.app.AppCompatActivity
public void isDroped(boolean isDroped)
isDroped
in interface OnStartDragListener
public void onItemClicked(java.lang.String name)
onItemClicked
in interface RecyclerViewItemClickInterface
public boolean onMenuItemClick(android.view.MenuItem item)
onMenuItemClick
in interface android.widget.PopupMenu.OnMenuItemClickListener
public boolean onCreateOptionsMenu(android.view.Menu menu)
onCreateOptionsMenu
in class android.app.Activity
public boolean onOptionsItemSelected(android.view.MenuItem item)
onOptionsItemSelected
in class android.app.Activity
protected void onPause()
onPause
in class androidx.fragment.app.FragmentActivity
protected void onDestroy()
onDestroy
in class androidx.appcompat.app.AppCompatActivity
private void accionBajarFoto()
private void bajarFotos()
public void onDescargaCompleta(int descargaCompleta)
onDescargaCompleta
in interface FirebaseSuccessListener
public void onDatosEncontrados(int datosEncontrados)
onDatosEncontrados
in interface FirebaseSuccessListener
public void onFotoDescargada(int fotosDescargadas)
onFotoDescargada
in interface FirebaseSuccessListener
public void onArchivosSubidos(boolean subidos)
onArchivosSubidos
in interface FirebaseSuccessListener
public void onPictosSugeridosBajados(boolean descargado)
onPictosSugeridosBajados
in interface FirebaseSuccessListener
public void AlertBorrar()
private void preguntarPermisos()
public void onRequestPermissionsResult(int requestCode, java.lang.String[] permissions, int[] grantResults)
onRequestPermissionsResult
in interface androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback
onRequestPermissionsResult
in class androidx.fragment.app.FragmentActivity
public void falloAlLeerArchivo(boolean fallo, java.lang.String titulo)
falloAlLeerArchivo
in interface FallanDatosDelUsuario
public void onClick(android.view.View view)
onClick
in interface android.view.View.OnClickListener
public static boolean setUpdateAdapter(java.lang.Boolean b)
public static SubirArchivosFirebase subirArchivos()
protected void onResume()
onResume
in class androidx.fragment.app.FragmentActivity
protected void attachBaseContext(android.content.Context newBase)
attachBaseContext
in class androidx.appcompat.app.AppCompatActivity
public boolean onTouch(android.view.View view, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener
public void OnClickBarrido()
OnClickBarrido
in interface Make_Click_At_Time
public boolean onGenericMotionEvent(android.view.MotionEvent event)
onGenericMotionEvent
in class android.app.Activity