Summary/TL;DR: ML Object Detection application is unable to detect objects because images aren’t being acquired by analyze() method. BACKGROUND I’m currently working on a mobile application using CameraX and Google ML Kit written in Java. The purpose of the application is to detect objects with a real time camera preview. I implemented ML Kit using this guide aptly titled “Detect
Tag: android-studio
AndroidStudio: java. How can i return an arraylist to main activity?
I tried this way: The application stops working on setResult only when the arraylist is not empty. SECONDARY ACTIVITY CATEGORIES INITIALIZATION: MAIN ACTIVITY in the method onActivityResult: Answer buy_categories2 must be Serializable
Change text in button
I need to make it so that if a user clicks on button_apple and doesn’t click on it for 3 seconds, its text becomes so superfluous. And if anyone knows why my text changes in button_apple, but not in button_cherry. Tell me, please. Answer You’re setting the listener on your apple button. The cherry button doesn’t have a listener on
Displaying notifications at a certain time with Android Studio
I’m pretty new to Android Studio and Java in general. I’m trying to build an app that, based on whether a checkbox is ticked in the app’s settings menu, will display a notification everyday at 8AM. I’ve figured out how to display the notification, but not how to trigger it at 8AM. This is the current notification code: My questions
Creating dialogue box pop up – Android studio
Relatively new to the whole javascript scene -trying to create my first app! So far I have managed to create the base layout, link button to next .xml, etc. however I’d really like a button that when clicked, opens a pop-up with some information on (a few lines describing the app’s purpose). Unfortunately, all tutorials, although helpful, don’t explain where
how to get access to button in viewPager
i would like to ask about ViewPager i had created 2 layouts in viewPager where you can slide between them. but i totaly do not know how to gain access to buttons inside of theese 2 views. so how could i call something inside of one of theese views? this does not trigered the onclicklistener. please help thanks. Answer you
How to Visible/Invisible using OnClickListener?
I am working on FAQ page I don’t want to use Expandable list view and stuff. So I set 2 TextViews(1 for Question and 1 for Answer) and made one clickable. The above image shows when the first textview mfaq is clicked it sets second one mAns to visible. The below code works well to Set the mAns textview visible:
How to print to Android Studio Logcat from (fork of) Third Party Library?
I’m currently working with a fork of a third party library for Android and would like to print some information to the Android Studio console (Logcat). Normally you can simply call something like: But this doesn’t seem to work when calling from a library. Does anyone know how to go about printing to the Android Studio Logcat Console from a
Action button on Notification if not clicked on certain time will do something else
I have an app that if something happens it will pop up a Notification with an action button. if it pressed it will the app running but if not for a certain amount of time it will run another code. I’m …
Repeat Volley Request Every x-seconds Java
Alright – Before you say this is a duplicate, I’ve looked over every stack overflow article I can find, and none of them work and/or answer the question properly/simply. All I need is to repeat a function with a volley request inside of it every x-seconds. Basically, I have a fairly simple Volley request inside a function, which works absolutely