Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wrong app_name displaying on shortcut

Tags:

android

zxing

I am actualy integrating barcode scanner (ZXing) as a library in my application so the user don't need to download the BarcodeScanner app and I can add a few use case.

I have no functional issue and my application is working as expected but the name displayed under my shortcuts on the smartphone are those of the library : "Barcode Scanner"

I tried to change my android:label of my application so the compiler can't mix up the app_name of my string/app_name and the one of ZXing's string/app_name. I even modified the strings file of the library to delete the "app_name" element...

I tried to delete the intent filter...

<action android:name="code android.intent.action.MAIN" />
<category android:name="code android.intent.category.LAUNCHER" />

...in the BarcodeScanner library's Manifest but it did not resolved anything.

Any hint on the way this app name is beeing retreived ?

Thank you.

PS : I noticed that my com.google.zxing.client.R.java still contains a "app_name" id even if I deleted it in the strings file.

like image 633
user1471450 Avatar asked Nov 25 '25 17:11

user1471450


1 Answers

I think I found out, my app didn't have a values-nl folder in ./res. The barcode scanner project did so it localized the app with that file and in that file is a app_name = Barcode Scanner.

I copied the /res/values folder to /res/values-nl and now it shows my app name and the scanner tool is still localized.

like image 145
Cor Haanstra Avatar answered Nov 27 '25 06:11

Cor Haanstra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!