refs #4602 Modificar abrir vn-picking

This commit is contained in:
Sergio De la torre 2023-02-20 10:18:41 +01:00
parent 18d8bc34b2
commit 2b8c19588a
4 changed files with 36 additions and 12 deletions

View File

@ -8,4 +8,19 @@
\f0\fs26 \cf2 \expnd0\expndtw0\kerning0 \f0\fs26 \cf2 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 build\ \outl0\strokewidth0 \strokec2 build\
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
buildsystem} buildsystem}

View File

@ -56,3 +56,4 @@ captures/
.externalNativeBuild .externalNativeBuild
.cxx .cxx
*.jar *.jar

View File

@ -7,6 +7,7 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.LAUNCH_APPS" />
<application <application
android:allowBackup="true" android:allowBackup="true"

View File

@ -4,11 +4,10 @@ import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.provider.Settings; import android.provider.Settings;
import android.support.v4.BuildConfig;
import android.text.InputType; import android.text.InputType;
import android.util.Log; import android.util.Log;
import android.widget.EditText; import android.widget.EditText;
@ -16,8 +15,6 @@ import android.widget.EditText;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import verdnatura.es.repartoverdnatura.R;
public class Utils { public class Utils {
static SharedPreferences sp; static SharedPreferences sp;
@ -208,4 +205,14 @@ public static void showInputDialogExpedition(final Context context, String title
editor.commit(); editor.commit();
} }
public static void startPicking(Context context) {
Intent i = new Intent();
i.setClassName("es.verdnatura", "es.verdnatura.presentation.view.feature.login.activity.LoginActivity");
i.putExtra("token", "sergiodt");
i.putExtra("user", getIdUserLogin(context));
i.putExtra("pass", getPass(context));
context.startActivity(i);
}
} }