Is it possibile to configure Intent Wedge by Intents?

Dear all,
I’m trying to configure a Memor 12 device to work with our application, it needs to configure the barcode scanner and I would like to avoid to add external libraries.
Then I’m wondering if I can configure the Intent Wedge using Intents. Is it possibile?
I found some examples in internet but I really didn’t find a document that explains how to do it with all Intent strings/params listed?

My main goal is to set the barcode reader parameters and the Intent settings when a barcode is read.

Where can I find it? Thanks

Hello @Tobia_Scapin,

Welcome to our forum.

Yes, it is possible to configure the scanner settings without importing any libraries which would be via Intent and the methods are documented.
However, I will say that is much more convenient to import even just com.datalogic.device.configuration.PropertyID so that you don’t have to know the variable values.

Here is a post that covers it in detail:

Here is an example:

import com.datalogic.device.configuration.PropertyID;

Intent intent = new Intent(Intents.ACTION_CONFIGURATION_COMMIT); 

HashMap map = new HashMap(); 
map.put(PropertyID.WIFI_BAND_SELECTION, WifiBandSelection.WIFI_BAND_24_GHZ.toString()); 
map.put(PropertyID.CODE128_ENABLE, "false");
intent.putExtra(Intents.EXTRA_CONFIGURATION_CHANGED_MAP, map); 
mContext.sendBroadcast(intent);

If you want to avoid importing our library entirely, then you would need to reference this page for int and string values:

So, for example, if you wanted to enable the Intent Wedge without libraries , you could do it this way:

HashMap map = new HashMap(); 

int WEDGE_INTENT_ENABLE = 200000;
int WEDGE_INTENT_ACTION_NAME = 200001;
int WEDGE_INTENT_CATEGORY_NAME = 200002;

map.put(WEDGE_INTENT_ENABLE , "true");
map.put(WEDGE_INTENT_ACTION_NAME , "com.mycompany.myapp.myaction");
map.put(WEDGE_INTENT_CATEGORY_NAME, "com.mycompany.myapp.mycategory");

intent.putExtra(Intents.EXTRA_CONFIGURATION_CHANGED_MAP, map); 
mContext.sendBroadcast(intent);

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer