Any good suggestions about barcode generator? - Streak 5 Q&A, Help & Troubleshooting

Hi, all,
Sorry if this is not the perfect place, but I really need some help here. I'm using this barcode generator to print an EAN-128barcode image, but here's the thing:
I'm inputing
Linear EAN-128= new Linear();
EAN-128 Data = "12345678912";
EAN-128.X = 3;
EAN-128.BarcodeWidth = 120;
But the generated EAN-128 image is always larger than the width that I want, anybody know why?
Here's the tutorial, EAN-128 (GS1-128) Barcode Add-In for NET
I just wanna program this add-in into a barcode generator.

search on google play/market..

You should change some margin parameters, if not, the barcode images can not be displaied correctly.I recommend this barcode generator in RESTEREDGE.COM to you, you can have a try.

Related

[Q] Scanning a barcode

This question came up because someone was kind enough to supply a barcode I could use to link to a download. Turns out I can't use that download, which I knew by the description of the target.
Meanwhile, it opened up a new question that I would like to learn about and since I cannot find anything in the Streak section that addresses it and I thought other newbs might like to know, I decided to make it its own thread so maybe we can learn something new.
So without further ado, the question:
How do you use the Streak's camera to scan a barcode, especially to follow a link to a download?
Once you download a barcode scanner from the market (or other download option) you use the app.
The app usually uses the camera to capture the barcode. It's as simple as that. Just point it at a barcode and it recognizes it and translates it into url. Problem is that it usually points you to a market download location so if you don't have market installed I'm not sure what it will do.
Here is some info about using a barcode scanner. The barcode scanner is a nifty tool and can be used on many phones, not just the streak. There are many barcode scanning apps in the market.
I found Google Goggles to work the majority of the time, and it handles barcodes and QRCodes.
barcode scanner
normally, download a barcode reader depend on the barcode type, and you can decode the barcodes. if you want add the barcode reader into your apps, a barcode reader component is needed. links are often encoded into a qr code nowadays. i just used a KeepDynamic.BarcodeDecoding.Dll which works great!
zacbr said:
normally, download a barcode reader depend on the barcode type, and you can decode the barcodes. if you want add the barcode reader into your apps, a barcode reader component is needed. links are often encoded into a qr code nowadays. i just used a KeepDynamic.BarcodeDecoding.Dll which works great!
Click to expand...
Click to collapse
You registered in the forum just to revive a thread that's 9 months old?
about barcode
Hi there,Here is a turorial for a barcode generation. Not sure if it applies.Hope I helped~~~
It doesn't because the question was about how to read barcodes, not write them. However, your contribution is appreciated as knowing how to create barcodes can be useful.
mellojoe said:
I found Google Goggles to work the majority of the time, and it handles barcodes and QRCodes.
Click to expand...
Click to collapse
I use this too, in fact it can do a whole lot more then barcodes.... translate text, recognize some objects, solve Sudoku puzzles.

Best practice for storing configurations

Hello everyone,
I'm new to Android development. I've written my first little "get my feet wet" ap and am looking to expand on it. One thing I would like to do it give the user more options of things they can configure and I'm wondering about the best way to store that information.
At what point does it become worthwhile to start using mySQL vs just using string data in the prefrences? Or is there another option I've missed (maybe an xml file, but I'm not sure where that would be stored?).
In my case, I'm thinking I have fewer than 100 instances of an object (or objects) that would have 3 or 4 properties associated with them.
Thanks!
Use the SharedPreferences class, is the easiest way to achieve your goal (BTW, SharedPreferences generate a xml file to storing your preferences).
SharedPrefrences is what I used for my basic version, but my understanding is that it allows for name-value pairs right? That works well when you have a predetermined set of prefrences, but what if it's more fluid?
Say I want to allow the user to configure his widgits, and each widget has a number of properties - say "color", "number", and "size". Maybe one user will configure 3 widgets and another user might configure 25.
I can think of a couple of different ways to parse this out into name-value pairs, but is that the best way?
Yep... for me that is the best way. For each user you can put the values using someting like this:
UserName+WidgetID+"PreferenceName"
And thats all... the preferences will be unique for each case, without parsing and 0 errors
Ok, cool. That's one of the options I had considered but didn't know if that would be the most efficient. Of course I'd also have to have a list of all the "Widget ID's" stored in a preference to loop through as well.
I assume the maximum amount of data that can be stored in one prefrence is just whatever the Java max string length is...is that correct?
Yes, you're right

[Q] SQLite Joins in ContentProvider

I have a query involving 3 tables. There are 2 columns in the main table that contain code values in which each value has an associated description in the other 2 tables. This query is simple and works correctly if done as a raw query, but I'm using a contentprovider based query. The query looks like this:
SELECT col1, col2, col3, col4, col5, col6, col7 FROM T1, T2, T3 WHERE T1.col3value = T2.value AND T1.col4value = T3.value AND T1.col1 = some user supplied search value. For some reason I'm getting run time exceptions such as 'unknown column names' and 'ambiguous column names'. Tables T2 and T3 have exactly the same column names. I've seen solutions that resolve this by using a column map represented by a HashMap. I'm not sure how this would work and what the keys and values should be in this map.
I would appreciate some help with this, particularly a good example. Thanks.

Is it possible to create qr shortcut to a .doc in android filesystem???

I am working with a plenty of physical documents in my office and sometimes i have to find a non-physical document (.doc file) related on its document in my Android, so i have just got some ideas, i want to find a way or ask you IS IT POSSIBLE TO FIND A FILE QUICKLY IN MY ANDROID JUST WITH PRINTED QR BARCODE? OR IS THERE AN APP TO CREATE FILE SHORTCUT BY GENERATING A QR QODE AS YOU KNOW FILE DIIRECTORY LOOKS LIKE A LINK E.G //MNT/SDCARD/0/DOCUMENT/ABC.XLS??? THX
alveriaz said:
I am working with a plenty of physical documents in my office and sometimes i have to find a non-physical document (.doc file) related on its document in my Android, so i have just got some ideas, i want to find a way or ask you IS IT POSSIBLE TO FIND A FILE QUICKLY IN MY ANDROID JUST WITH PRINTED QR BARCODE? OR IS THERE AN APP TO CREATE FILE SHORTCUT BY GENERATING A QR QODE AS YOU KNOW FILE DIIRECTORY LOOKS LIKE A LINK E.G //MNT/SDCARD/0/DOCUMENT/ABC.XLS??? THX
Click to expand...
Click to collapse
You could achieve this very thing "maybe not completely" but you can achieve the desired goal with Tasker, I don't have much experience with Tasker but it's the app that will get you the results you want.

CameraX and Camera2Config Extender, Camera2Interop... stuck there, help needed :)

Hi all,
I1m developing a camera-using application in Java, and stuck at a point where i need to control the camera settings. Any help will be appreciated...
The main problem is that i need to lock white balance (or turn it on a fix state, as daylight, etc.). I found that there are 2 methods : Camere2Config Extender and Camera2Interop. The app needs to display a preview, and do some image analysis, which is already working. The WB control is enough to apply to the analysis, but as i understand, if i apply to the preview/config the camera, it will also affect the analyzer, as it gets the same frames.
Camera2Interop seems to be easier, but i cannot import (in Android Studio). Simply does not understand the "interop" in
Code:
import androidx.camera.camera2.interop.Camera2Interop;
import androidx.camera.camera2.interop.ExperimentalCamera2Interop;
What can i do to let the Studio import these?
Second, i tried Camera2Config.Extender. But cannot figure out how to extend the configuration, and which? The preview config seems to be the good choice.
But when i try :
Code:
PreviewConfig pConfig = new PreviewConfig.Builder().setTargetAspectRatio(aspectRatio).setTargetRotation(0).build();
Camera2Config.Extender camera2Extender = new Camera2Config.Extender(pConfig);
Preview preview = new Preview(pConfig);
I get a "error: incompatible types: PreviewConfig cannot be converted to ExtendableBuilder Camera2Config.Extender camera2Extender = new Camera2Config.Extender(pConfig);" message. It builds when i remove the Extender.
If anybody knows how to get rid of these, i'll be thankful

Categories

Resources