Which option allows me to come closer to creating the most 'real-world' Device in the Emulator? - android-emulator

We are going to use an Android device with a built-in barcode scanner (not a consumer phone such as a Galaxy, etc.)* to run our in-development Android app. For the barcode scanning portion of the testing, I realize that I will need to attach directly to the device (will not be able to use an emulated device for that).
Specifically (probably) the TC55
However, for those portions of testing the app that don't require usage of the barcode scanner (which I can thus test with an emulator), how should I set that up? IOW, what is the closest I can get to replicating that device via emulation?
The reason this is ambiguous is that from the AVD (Android Virtual Device) Manager, there are two options: With the "Android Virtual Devices" tab selected, the "New..." button shows this:
With the "Device Definitions" tab selected, the "New Device..." button shows this:
Am I better off basing my new virtual device on an existing virtual device (which I assume is what you can do with the former dialog) or creating a brand-spanking-new one (with the latter dialog)?

Both options are almost similar. You can notice that the device options you get from under the "Device definitions" tab are also listed under Device: drop down box after you do "Android Virtual devices-> New" .
Also notice the bottom line of the screen under "Device Definitions" . There are two icons informing which are generic definitions and which are custom ones. If you don't find any generic definitions closer to the real device you are targeting build a custom one as per the real device.

Related

How to receive a text stream in flutter

I have a barcode scanner which automatically outputs the barcode into whichever app you have open in the USB attached windows PC, if it can handle it. For example if I have chrome open, I click the address bar and then scan it outputs to there. Similarly if I click on a website textarea and then scan it'll dump it in there.
I have a simple flutter application which I simply want to detect the scan receival. I don't care how, but I don't even know what exactly to search for to get my answer. My aim is to have a windows app in flutter, which when I scan a barcode it receives this, displays the product details in the flutter screen (aka needs an API call straight after getting the scan). Any help on even what topic to search for will help, cheers.
Barcode scanner: Symcode MJ-340 Automatic Desktop USB Wired Barcode Scanner.
After a lot of trial and error I worked out that a common way to interact for barcodes through USB to apps is via the USB HID aka keyboard presses. By wrapping the app around a RawkeyboardListener with autofocus true, you can filter via RawKeyUpEvent (or down) and then simply set the state.
In my case, it always ended with an enter key to detect the end of a code.

ZKemkeeper ReadGeneralLogData function returns false

I'm try to get the log data from a SpeedFace v5l.
When I call the
ReadGeneralLogData(machineNumber);
I get false.
If I call the
ReadAllUserID(machineNumber);
I get true.
Any idea why this could be?
When I check the last error. I got 0 ERR_NO_DATA, but we have events on the device
Newly launched ZkTeco devices are not compatible with their SDKs. You have to relay on their web application as officially no SDKs are launched for new devices. Some of the operations given in the SDK will make the SpeedFace V5L to display the "Authendication Failure" randomly. Once this error comes, you have to flash the device, no other option.
So, don't try with ZK's old/new SDKs with new devices with temperature and mask detections. If you need web API, you can try with CAMS (http://camsunit.com/application/biometric-web-api.html), Zk's API Partner.
Choice the Time Attendance Terminal will make the device working with UTimeMaster, BioTime 8.0, TA Push SDK, Attendance Management software or offline SDK.
Choice the Access Control Terminal will make device working with ZKBioAccess software or AI AC Push SDK.
For that go to "System" -> "Device Type Setting" -> and choice the "Time Attendance Terminal"
But this attendance, the access control is best to be modified at the beginning. If the customer is uploaded, it is easy to modify it easily, because the user data and record are all deleted because of the modification.
It is really easy to write your own ADMSServer.
So if you would like to write your own program and interact with the camera. I would contact ZKTeco Europe and ask for documentation.
With a query command the camera will then push the attendance records to your endpoint.

How to make website comptible with iOS and mouse over

Currently, my site is programmed with "hover mouse over" indicating the names of the boxes (when your mouse goes on them), which works for Android and general Computers, but is not compatible with iOS.
Therefore if using an iPad or iPhone it requires the user to click the box twice (instead of once) because the hover mouse over isn't compatible.
How do I remove the hover mouse over for iOS applications only? Can you use "if statements" for this? or conditions?
There are 2 feasible ways of doing this:
On the server side, use a technology such as WURFL to detect whether the end user is on iOS, and serve a different stylesheet.
On the client side, check the user agent string for ip(ad|hone|od) and patch the affected elements accordingly.

Sample Contacts on Android Emulator for Testing?

Short of a) using a real device, or b) exporting/importing contacts via SD card ... then creating the SD card 'file' for the emulator, and importing it after each emulator launch ... is there a more turnkey (saner) way to get a set of sample contacts onto the emulator for test purposes?
Easier than I thought! Whew.
When creating your Android Virtual Device (AVD), be sure to create a SD card of nominal size. (I used 20MB, which is plenty big for my purposes.) That's it in a nutshell.
Start the AVD, launch Contacts, tap Menu and create a few. When you close the AVD and launch next time, the contacts are still visible. Same thing goes for email accounts.

Toggle iPhone tethering by code

I live in Canada, so am fortunate that I can tether. One issue is that to toggle tethering, you need to drill down four screens in Settings, which is just a big hassle.
A Google search returned nothing, so I was wondering if anyone here knew the code to turn on/off tethering?
I know there's a toggle for SBSettings, but I do not have a jailbroken phone, I just want to create an app I build onto my phone and have an icon for quickly toggling it.
Thanks
You cannot alter phone settings from within an application using any APIs allowed by the iPhone SDK. As you point out - there is an SBSettings toggle - which relies on a Private API (which you agree not to use when you get the iPhone SDK from Apple, incidentally).
There is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist:
/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist
In that file, you will want to set 1023 for key State to enable the Tethering feature. To disable the feature, you will want to set 1022 for key State.
This action is only possible on a jailbroken device