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