NSCameraUsageDescription in iOS 10.0 runtime crash?

After iOS 10 you have to define and provide a usage description of all the systemโ€™s privacy-sensitive data accessed by your app in Info.plist as below: Calendar Key : Privacy – Calendars Usage Description Value : $(PRODUCT_NAME) calendar events Reminder : Key : Privacy – Reminders Usage Description Value : $(PRODUCT_NAME) reminder use Contact : … Read more

Barcode on swift 4

I figured it out but Apple didn’t make it so obvious. The callback function from the delegate AVCaptureMetadataOutputObjectsDelegate has been renamed and the parameter names are different! So, replace func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!, from connection: AVCaptureConnection!) to func metadataOutput(_ output: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) My view controller is now … Read more

Releasing a unplugged virtual Serial Port

Serial ports date from the stone age of computing. That’s where you plugged in your ASR-33 teletype to start typing in your Fortran program. The electrical interface is very simple. So is the Windows API to use a serial port from your own code. Practically any runtime environment supports them. USB has replaced serial port … Read more

Using ZXing to create an Android barcode scanning app [duplicate]

The ZXing project provides a standalone barcode reader application which โ€” via Android’s intent mechanism โ€” can be called by other applications who wish to integrate barcode scanning. The easiest way to do this is to call the ZXing SCAN Intent from your application, like this: public Button.OnClickListener mScan = new Button.OnClickListener() { public void … Read more