From 968869d7c66fa1731c7c1dac7bf658f1db5624a3 Mon Sep 17 00:00:00 2001 From: dfink91 Date: Tue, 12 Oct 2021 14:44:26 +0200 Subject: [PATCH] Removed a literal containing hardcoded package info "com.zebra.datacapture1.ACTION" is a project specific literal and since it is available in the string.xml file. I'd propose to use that. --- .../app/src/main/java/com/zebra/datacapture1/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCapture1/app/src/main/java/com/zebra/datacapture1/MainActivity.java b/DataCapture1/app/src/main/java/com/zebra/datacapture1/MainActivity.java index fabd990..c6399de 100755 --- a/DataCapture1/app/src/main/java/com/zebra/datacapture1/MainActivity.java +++ b/DataCapture1/app/src/main/java/com/zebra/datacapture1/MainActivity.java @@ -180,7 +180,7 @@ public void CreateProfile (View view){ intentConfig.putString("RESET_CONFIG", "true"); Bundle intentProps = new Bundle(); intentProps.putString("intent_output_enabled", "true"); - intentProps.putString("intent_action", "com.zebra.datacapture1.ACTION"); + intentProps.putString("intent_action", getResources().getString(R.string.activity_intent_filter_action)); intentProps.putString("intent_delivery", "2"); intentConfig.putBundle("PARAM_LIST", intentProps); profileConfig.putBundle("PLUGIN_CONFIG", intentConfig);