Android 11, preview not working with the library AndroidUSBCamera from jiangdongguo - java

I worked with the AndroidUSBCamera library to use a USB camera on my Android 10 phone.
When switching phones and switching to Android 11 I realized that the preview was no longer working.
When I looked for where the error might have come from, I realized that in the mCameraHelper.setOnPreviewFrameListener(), we never enter the function public void onPreviewResult(byte[] data).
The only change there has been with the previous version is the change of version of Android (10 to 11).
Has anyone ever faced this problem and managed to solve it ?
Thank you in advance for all your answers.
(It's my first post, don't hesitate to ask if you would like more info on the problem)
Jules

Related

Not receiving SMS inputs using native code (Java) in Flutter. (in the background)

I have a serious problem with SMS input in Flutter.
I want to make an application that will display a notification with a special sound as soon as a new SMS arrives with a specific number.
I did this in Flutter with the Telephony package and everything works fine on the emulator but not on a real device.
I did a lot of research regarding the problem of this package and tried different methods, but none of them solved the problem.
I tried to solve this problem with the native-code (java) method and tried many methods in this regard, but the problem was not solved. Even using this method, it does not work on the emulator.
Thank you very much for your help 🙏❤️
Emulator Android Version: 12
Sources that I tried to fix the problem:
https://javapapers.com/android/android-receive-sms-tutorial/
Receiving SMS on Android App
https://www.javarticles.com/2015/04/android-receiving-sms-example.html
...

Camera stays blank on Oxygen4 (Android Nougat) with an OnePlus 3

I've the problem that some users with an Oneplus3 and the most recent Oxygen 4 version (Android Nougat) don't see any camera preview image anymore (it stays blank/black). The UI elements are still visible.
They also said in previous versions of oxygen OS the app was working correctly. I found out, that other apps got the same behaviour and fixed it, recently (i.e. Google's Cardboard Camera). But I don't know how to fix it and don't have a test device like the OP3.
I'm using the min SDK version 14 and the Camera API v1 with a SurfaceView to show the camera preview. On my phone (LG G4 with Marshmallow) the app works as expected.
Is somebody of you familiar with that issue and know how to fix it? What else can I try to solve that problem? Can you reproduce that issue on others phones with Android N, too?
You can find the source here: https://github.com/kloener/visor-android
For testing you can directly download it from Google Play (https://play.google.com/store/apps/details?id=de.visorapp.visor) or on github-releases (https://github.com/kloener/visor-android/releases)
kind regards and thanks
They need to give camera permission from application settings. I know they accept it while setting up app. But for Nougat user need to give an extra permission.

Android Studio Theme rendering problems

This is the image with the problem
http://imgur.com/uUd3its
I have tried solutions in other posts and I still get this rendering Problems with all themes in Android Studio.
Its quite popular issue with novice.
There are many possibilities of failure to not render UI layouts.
First and foremost solution is to resolve by going with Android Studio's default recommendations.
If it still fails to resolve then need to go for manual solution.
(1.) Incompatible API support Issue :
-- Ref to same snapshot, there is little droid icon with number 23(in your case). This represents the latest supporting API. You may select lower API no than current number (i.e. 22, 21, etc.) and then let system render the UI layout. If its success then you may again update with latest API number (i.e. 23)
2.) There could be possibilities of inappropriate reference to related activity java file/other resources.
If you submit all code then one would be able to give specific solution to your problem.
Cheers!
**
UPDATE 1 :
**
If require try these solutions too.
-> As this is not a syntax error; means you can run the app. After launched app on simulator/handset; come back to design xml file and check for rendering issue. It has worked many times to me.
Hope this update solution would help you out. If yes please accept the answer to help others and if not then let me know.
If you have found any other working solution then please update your answer to help others out.
Cheers!

Switching on android GPS location

I'm baffled. I have 2 apps which I'm working on, both doing similar things, grabbing and parsing GPS data. One version seems to automatically switch on the GPS service, looks for a signal and determines position. Android Studio is happy with this. The second version, where I have used the same code, Android Studio raises an error will not compile and suggests asking the user to switch on the GPS. I can't understand what I've done different. For version 2, I'd prefer it to function like version 1.
Thanks for any advice.

Android Support Library troubles with v7 appcompat using Eclipse

New to the forums! :) Looking forward to participating here ;)
In the mean while, I AM STUCK!
I have just ran the sdk manager and have been up to date.
My program runs fine, but when I add in the support 7 appcompat something doesn't sit well. So I am here for here! Have spent two days trying to fix this:P
All I want app compat for is the halo themes lol so my app will run on pretty much all android versions
Thanks in advance guys & gals
I had to put picture links in pastebin because only allowed two links because I have no rep! :)
http://pastebin.com/YfxzNv8U
One addition picture to show Package Explorer -> http://gyazo.com/b46ac98bacfbd051ecc1a2b3250bd68b
Thanks all
Alrighty
FIXED THE PROBLEM!
Could not answer own question because not enough rep!
Well I fixed it finally! Enough research :)
All I did was changed the Target API in project.properties from 7 to 19 and volla!
Well I fixed it finally! Enough research :)
Giving up on support library v7. What did I wrong?
All I did was changed the Target API in project.properties from 7 to 19 and volla!

Categories

Resources