This file contains hidden or 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
| <com.google.android.material.navigation.NavigationView | |
| android:id="@+id/nav_view" | |
| android:layout_width="wrap_content" | |
| android:layout_height="match_parent" | |
| android:layout_gravity="start" | |
| android:fitsSystemWindows="true" | |
| app:headerLayout="@layout/nav_header_layout" | |
| app:itemIconTint="@color/darker_gray" | |
| app:itemTextColor="@color/darker_gray" | |
| app:menu="@menu/internal_menu_drawer" /> |
This file contains hidden or 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
| <script src="https://www.gstatic.com/firebasejs/5.9.4/firebase.js"></script> | |
| <!-- The core Firebase JS SDK is always required and must be listed first --> | |
| <script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-app.js"></script> | |
| <!-- TODO: Add SDKs for Firebase products that you want to use | |
| https://firebase.google.com/docs/web/setup#available-libraries --> | |
| <script src="https://www.gstatic.com/firebasejs/7.3.0/firebase-analytics.js"></script> | |
| <!-- Add Firebase products that you want to use --> | |
| <script src="https://www.gstatic.com/firebasejs/6.1.1/firebase-auth.js"></script> |
This file contains hidden or 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
| public class TrackService extends Service implements GoogleApiClient.ConnectionCallbacks, | |
| GoogleApiClient.OnConnectionFailedListener, | |
| com.google.android.gms.location.LocationListener, | |
| android.location.LocationListener { | |
| private static final long LOCATION_INTERVAL = 20000; | |
| private GoogleApiClient googleApiClient; | |
| private LocationRequest locationRequest; | |
| private LocationManager locationManager; |
This file contains hidden or 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
| public class DownloadService extends IntentService { | |
| /** | |
| * Request code para el PendingIntent que se usa para ir a la pantalla principal. | |
| */ | |
| private static final int REQUEST_CODE_GO_TO_MAIN_ACTIVITY = 1; | |
| public DownloadService() { | |
| super("DownloadService"); |
This file contains hidden or 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
| /** | |
| * Verifica si el celular est谩 usando alg煤n tipo de aplicaci贸n para enviar ubicaciones falsas, como Fake GPS | |
| * | |
| * @param context El contexto de la aplicaci贸n | |
| * @param location La 煤ltima ubicaci贸n recibida por el GPS | |
| * @return true si se est谩 usando alguna aplicaci贸n para enviar ubicaciones falsas, false en caso contrario | |
| */ | |
| public static boolean isFakeLocation(Context context, Location location) { | |
| if (Build.VERSION.SDK_INT >= 18) { | |
| return location.isFromMockProvider(); |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:background="#FFFFFF" > | |
| <android.gesture.GestureOverlayView | |
| android:id="@+id/gestures" | |
| android:layout_width="fill_parent" | |
| android:layout_height="fill_parent" |
This file contains hidden or 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
| /** | |
| * Se llama cuando se hace clic en el bot贸n para guardar la foto. | |
| */ | |
| @OnClick(R.id.accept) | |
| public void accept() { | |
| if (ContextCompat.checkSelfPermission(getContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { | |
| // Si no tiene el permiso para guardar la imagen en el almacenamiento externo, se pide el permiso. | |
| requestPermissions(new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CODE_WRITE_EXTERNAL_STORAGE); | |
| } else { | |
| // Si tiene el permiso para guardar la imagen, se guarda la imagen. |
This file contains hidden or 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
| git merge --squash terms-of-service // Merge in one commit | |
| git log --oneline // log oneline | |
| git commit -m"adasdasd" // normal commit | |
This file contains hidden or 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 React, { Component } from 'react'; | |
| import firebase from 'firebase'; | |
| import ForgotPss from './components/ForgotPss'; | |
| import Home from './components/Home.js'; | |
| import Modal from 'react-modal'; | |
| import './App.css'; | |
| const customStyles = { | |
| content : { |
NewerOlder