Error in LogCat while developing a barcode scanner for android - java

I followed the steps provided in the Zxing project. I have created a single button to scan a barcode. I am using emulator in Eclipse and I am having a webcam(according to the suggestion of #Sean Owen) which would do the image capture for me. While running the project after I click the scan button a prompt's asking whether I want to install an existing separate app named Barcode Scanner which is needed to begin the scan process. So, as soon as I choose the yes option the project crashes and shows that the application stopped working. Also I am having the following error in LogCat. Any help would be appreciated.

Its simple I guess. You don't have the Google Play app installed on your device. Either try to install it or find a device which has one installed.

You do not have the app that can handle the intent for barcode scanner.Go to the Google Play app and install one barcode scanner.Check if the issue persists

Related

Adapter not showing data after installing app from playstore

so i am working on android app programmed in java which shows a list of animals sounds in recycler view. The app works fine when i install it on my device from android studio but when i upload the apk to play console and install from play store the adapter becomes real mess and apps gets crashing untill i clear cache and app data from settings.
Here is what app looks like on first install from play store (https://i.stack.imgur.com/OTQkX.jpg)
When i clear cache and app data from settings and relaunch the app it works absolutely fine.(https://i.stack.imgur.com/HPbgM.jpg)
I have tries all possible solutions which i found online but they could not help. Can anybody explain why this occurs and whats the solution to this?
Update: Following #Tenfour4,s comment i switched to production build in android studio but surprisingly app is working fine . The issue only occurs when app is uploaded to play console and installed from there.

Why I'm unable to install application in my phone. Redmi 7s Connected already but it's not showing to install application in Android Studio. Why?

Android Studio Not Showing My Phone for Run Application:
I want to run my developed application directly on my phone but I'm unable to run this. Because It's not showing in android studio. It also not working on emulator also. I already ready Google Development Guidelines(https://developer.android.com/studio/run/oem-usb.html). But these are not working for my system.
Have you enabled Developer mode on your phone?
If you haven't done yet follow these steps:
Go to settings -> About phone.
Tap on Build number 7 times and the developer option will be on.
If you have already enabled it then:
Go to Settings and find Developer options.
Check whether it is enabled or not.
Swipe down and find USB debugging. This option should be enabled. (Also enable Wireless ADB debugging if you're running app wirelessly)
Sorry for the late answer
I am also facing this issue couple of month ago, I had checked that I had enabled the USB debugging in developer but there is an issue with the Redmi phones that along with the USB debugging you will need to do the following
Go To Settings > Additional Settings > Developer Options
Enable USB debugging
Enable Install via USB
Disable Turn on MIUI optimization
On Select USB configuration select MIDI or File transfer (this is
what solved the problem for me)
also, keep in mind to give an RSA permission
you also check the link https://developer.android.com/studio/run/device?hl=ro
I have solved my problem on my own. The problem was in Android SDK. I'm using 2 windows in my same pc so I just used android studio on my another window then it's was working perfectly so I thought i have to try with changes that windows Android/Sdk folder in other windows which one I had problem. So I just copy (C:\Users{MyUserName}\AppData\Local\Android\Sdk) in getting the problem window and try again the android studio & Wawu... It's starting working. I hope it's will be helpful for you also.

Android emulator keyboard crashes when displaying number keyboard

Whenever I run my android project in emulator and I click on an editText field, the alphabetic keyboard works fine, but when I click on the number keyboard, it crashes with the message: Android Keyboard (AOSP) has stopped.
I thought maybe it was some bad code in my project, so I created a fresh project with no code and a simple editText, same problem.
I tried uninstalling Android Studio and reinstalling, same problem.
I tried running Android Studio on another computer with a different operating system. Same problem.
Any ideas on how to fix this? Thanks
You can configure numeric input for your EditText by using the following in the xml:
`<EditText android:inputType="number `

Android app is not running on other device

i just made a simple android app with 6 buttons. Each button on click opens a new activity. I installed the app on my device via USB cable from Android studio and it runs fine on my device.
But here rises the problem, when I installed the app on my friends device after sharing via SHAREit the app installed on his device but did not run.
What could be the reason for this? And how can I solve this?
Please help. Thank you
You dont need to create a signed APK if you only want to test it on your friends device and not to run it in a production progress. Android Studio creates an apk automatically which is signed for 365 days. Just open your project in your explorer and go to [ProjectName]\app\build\outputs\apk and select the app-debug.apk.
Make sure instance run in android studio is disabled.
Because if Instance run is enabled when you debug the app on real device through usb debugging it will work properly . but if u share the apk from your device to other device it will not work. It might show an error . App Name Unfortunately Stoped.
If Instance run is enable. you must disable the instance run first. If you don't know how to disable it just google it. After disable the instance run, you must clean project and Build new apk. It will work on all the other devices without generating signed apk.
Hope it may help you.
While building the app what MinSDK version you defined? Do both devices satisfy that criteria?
If you suspect that installing through sharing app is a problem then try attaching your friend device to your laptop and try running the app.
Or
Send the apk through email and let your friend download the apk and install the apk through apkInstaller app.
I have a solution for you:
Install Bluestacks Android Emulator.
Go to Tools, Android and click on Enable Adb Integration to disable it.
In android studios one Android Device for Bluestacks will appear while installation.
Share the installed app through shareit.
It will work on other device.
Hope it helps
Here is the link, where you will find your solution. https://developer.android.com/studio/publish/ check the point 'publish your app', In left column.
Simply follow these steps:
Double click on shift and search for build apk and click on it.
Locate that apk file.
Copy to your physical device or your friend's device... whatever, it will work.

Software trigger for intermec CN51 barcode scanner running in Android platform

I just want to know how to trigger the barcode scanner of the intermec cn51 device through software events rather than pressing the blue hardware button for the scanner. The device is running in Android 4.1.1
If anyone out there who has tried developing apps on this device, please any response is highly appreciated.
I assume you are writing a native android app?
Download their SDK: http://www.intermec.com/products/cmptrcn51a/downloads.aspx
It contains some sample android code for integrating with the barcode reader.
You'll need to register (free) to download the SDK.

Categories