I am new to android development. I am creating Scandit barcode scanner application which is using android emulator's camera (webcam).
I have configured camera permissions related stuffs in AndroidManifest.xml file as below:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="AndroidDemo.AndroidDemo" android:installLocation="auto">
<uses-sdk android:minSdkVersion="10" />
<application android:label="AndroidDemo"></application>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature android:name="android.hardware.camera.autofocus" />
</manifest>
Now the logcat showing the following error:
07-21 13:21:03.026 E/EmulatedCamera_QemuClient( 63): queryStart: Query failed: Cannot start the camera
07-21 13:21:03.026 E/EmulatedCamera_QemuDevice( 63): startDevice: Unable to start device 'AndroidEmulatorVC0' for NV21[640x480] frames
Initially it was working fine.now i didnt change any code but it is not working. The camera functionality is randomly working.I am not sure how to troubleshoot this.
And my emulator config is given below(visual studio):
And related question is not answered
Thanks.
Related
Im confused. My Manifest looks like this (App-Name removed):
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="0.8.2" package="com.xxxxxxx.xxxx" android:installLocation="auto">
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="30" />
<application android:label="LABEL" android:theme="#style/MainTheme" android:usesCleartextTraffic="true"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
But if I open the "permission" page in App-Store, it shows that the App "may use" storage permission.
My App doesnt need any access to external storage. Why this permission is listet in the store (and also in the app-settings after installation)?
How can I remove this? Its confusing for the users.
I am trying to log some actions to /sdcard. My AndroidManifest.xml specifies android:targetSdkVersion="22" and includes
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<REDACTED-MYPACKAGENAME>"
android:versionCode="100"
android:versionName="1.00">
<uses-sdk android:targetSdkVersion="22"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
More...
Unfortunately, my writes to /sdcard/events.txt cause exception
java.io.FileNotFoundException: /sdcard/events.txt: open failed: EACCESS (Permission denied)
Notes:
Since the API level is <23, I believe run-time-permissions are not required.
If I manually enable "Storage" using "Settings"->"Apps->MyApp->"Permissions", it works just fine.
I am running on a Samsung S-9 running Android V10.
What am I missing?
I am using image picker to capture image and was testing on emulator
with SDK 30. I is always throwing exception no camera available and is
working perfectly in real device.
manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.abc">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA" />
</manifest>
I am trying to upload an APK file to Huawei App gallery and after submitting it to review i got this result with two warnings
https://i.imgur.com/8E2cewu.jpg
FIRST Warning :
Incorrect adaptive devices. Check whether the configuration in the AndroidManifest.xml file is compatible with watch apps.
SECOND Warning :
Incorrect adaptive devices. Check whether the configuration in the AndroidManifest.xml file is compatible with VR apps.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="####">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name=".Application"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/GreenActionBarTheme">
</application>
</manifest>
Looks it was not a big problem because they accepted my app 3 days later .. So you just need to be patient !
i want to publish my android app on amazon but it gives me the error "No device supported". i have defined the minSdkLevel in manifest file.
please give me any solution for that. Here is manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.abc"
android:versionName="1.2.1"
android:versionCode="4">
<uses-sdk android:minSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus"/>
.
.
.
.
I had some issues regarding this on the play and when I was searching for suggestions came across this post that saved my day. Maybe it will help you too