0
0
mirror of https://github.com/markusfisch/BinaryEye.git synced 2024-09-19 19:42:18 +02:00
Yet another barcode scanner for Android
Go to file
2024-09-17 22:37:08 +02:00
app Simplify ellipsis regex 2024-09-17 22:31:42 +02:00
fastlane/metadata/android Update Portuguese (Brazil) translation 2024-09-06 16:18:21 +02:00
gradle/wrapper Update tools version and gradle wrapper 2024-07-24 19:41:43 +02:00
svg Add history shortcut 2024-03-25 21:36:53 +01:00
.gitignore Add gradle.properties to repository 2019-11-14 12:58:43 +01:00
build.gradle Update Kotlin version 2024-09-17 22:37:08 +02:00
CHANGELOG.md Advance version number to 1.63.10 2024-06-30 19:41:13 +02:00
CONTRIBUTING.md Update link on how to write a good commit message 2022-12-21 16:09:56 +01:00
gradle.properties Move buildConfig from properties into build.gradle 2024-03-30 12:46:15 +01:00
gradlew Upgrade gradle wrapper 2022-01-18 21:37:24 +01:00
gradlew.bat Upgrade gradle wrapper 2022-01-18 21:37:24 +01:00
LICENSE Added a license 2017-08-27 16:30:32 +02:00
Makefile Fix Xiaomi MIUI lockscreen barcode shortcut 2023-11-15 22:07:50 +01:00
PRIVACY.md Add Bluetooth permissions to PRIVACY 2023-03-27 22:05:31 +02:00
README.md Add Ko-fi for donations 2024-05-11 13:20:31 +02:00
settings.gradle Fix indent in settings.gradle 2023-12-18 12:27:34 +01:00

Binary Eye

Yet another barcode scanner for Android. As if there weren't enough.

This one is free, without any ads and open source.

Works in portrait and landscape orientation, can read inverted codes, comes in Material Design and can also generate barcodes.

Binary Eye uses the ZXing-C++ ("Zebra Crossing") barcode scanning library.

If you find this app useful and wish to support its continued development, you can buy me a coffee or send some Bitcoin decimals to bc1q2guk2rpll587aymrfadkdtpq32448x5khk5j8z.

Buy Me A Coffee Liberapay Ko-fi

Screenshots

Screenshot Gallery Screenshot Gallery Screenshot Theme Screenshot Editor

Download

Get it on F-Droid Get it on Google Play

Supported Barcode Formats

Read

ZXing can read the following barcode formats:

Generate

ZXing can generate the following barcode formats:

You can invoke Binary Eye with a web URI intent from anything that can open URIs. There are two options:

  1. binaryeye://scan
  2. http(s)://markusfisch.de/BinaryEye

If you want to get the scanned contents, you can add a ret query argument with a (URL encoded) URI template. For example:

http://markusfisch.de/BinaryEye?ret=http%3A%2F%2Fexample.com%2F%3Fresult%3D{RESULT}

Supported symbols are:

  • RESULT - scanned content
  • RESULT_BYTES - raw result as a hex string
  • FORMAT - barcode format

SCAN Intent

You can also use Binary Eye from other apps by using the com.google.zxing.client.android.SCAN Intent with startActivityForResult() like this:

startActivityForResult(
	Intent("com.google.zxing.client.android.SCAN"),
	SOME_NUMBER
)

And process the result in onActivityResult() of your Activity:

override fun onActivityResult(
	requestCode: Int,
	resultCode: Int,
	data: Intent?
) {
	when (requestCode) {
		SOME_NUMBER -> if (resultCode == RESULT_OK) {
			val result = data.getStringExtra("SCAN_RESULT")
			
		}
	}
}

If you're using AndroidX, this would be the new, recommended way:

class YourActivity : AppCompatActivity() {
	private val resultLauncher = registerForActivityResult(
		ActivityResultContracts.StartActivityForResult()
	) { result ->
		if (result.resultCode == RESULT_OK) {
			val content = result.data?.getStringExtra("SCAN_RESULT")
			
		}
	}

	fun openScanner() {
		resultLauncher.launch(Intent("com.google.zxing.client.android.SCAN"))
	}
}