Making a graphical flashlight in android - java

I was wondering how can anyone make graphics such as this one https://play.google.com/store/apps/details?id=com.surpax.ledflashlight.panel in android. By graphics iam referring to the interface. Did he use the eclipse or another tool?
Thanks in advance.

Probably used Eclipse for the programming, and created the images separately. The images are saved in multiple resolution and used automatically based on the resolution of the device. The images are easily added to the project by referring to them in the XML.

Related

Android : handle click on 3D object arcore, android studio - JAVA

I'm working on an AR Application for Android with Google ArCore SDK (using Android Studio and Java). I have a problem to handle invents : tap or clic on displayed image/3D Object, weither it is about Augmented images or placing a permanent anchor.
Please do you have any example of how to handle click on 3D object in Android Studio?
Thank you.
From this post:
ARCore is not supporting this feature. You need to do it by yourself.
The most recommended method is use of ray casting. Assuming you're using OpenGL, this post describes some methods of using ray casting in the way you need.
After looking through deep research, I found out that there is an open existing project for sceneform that is still working.
You can find the project here :
https://github.com/SceneView/sceneform-android
and some Android Java samples there :
https://github.com/SceneView/sceneform-android/tree/master/samples
But pay attention, it seems that some methods in samples are deprecated. I'm working on integrating this in my Augmented Image project but I have some trouble finding corresponding new methods for some of them.
I will appreciate any help from someone who has already done it.

Image Recognition using OpenCv and android

I want to work on making an android app by integrating OpenCV with android Studio. I have a set of 2D hardcopy card images that i want to save as templates with in the app. Then, using the app, when i place my camera on any of the cards, the app should search the directory which contain the templates and look for match and provide feedback if a match is found. If anyone can guide on how to achieve this, it will be highly appreciated.
Also, if not OpenCV, then which SDK or tool should be preferred ?
The question is a general one, so the answer will be general as well, and will make assumptions about what you'd like to accomplish with your application.
Android Studio with OpenCV is probably a reasonable stack to use.
Presuming the library has more than a trivial number of images, you'll probably want to extract matching information for each image in your library in an offline process (on your code-development machine). So for instance, you would configure your development machine with a SQLite database driver and OpenCV, construct a program that extracts feature points and saves those to your a SQLite database. That file can then be loaded into the Android APK assets, and it would be ready upon the application's first use. The application would take frames from the camera and compare those with each item in the database, looking for matches.

Why my project works on android but not on ios in codenameone?

I work on a big project with codenameone(i can't attach my codes because it's really big). I get android app and it's works on android devices. But recently i get ios build for this project and it's not working on ios device(just showing a white page instead of map).
My project is a map-framework that render tiles and ... on graphics(i used graphics class for drawing, transforming, writing text and more).
I used input stream for working with file because of File not supported.
I need a solution to how debug and find my problem about ios build(why tiles doesn't showed).
In fact i don'n know anything about ios and objective-c.
Thanks in advance.
Most of the logging functionality that allows inspecting issues is for pro developers (you can try the trial) its discussed in this video (mostly focused on crashes): http://www.codenameone.com/how-do-i---use-crash-protection-get-device-logs.html
From your description I would guess you created a really large mutable image (larger than screen bounds) and are drawing onto that. This would be both slow on iOS (and on newer Android devices) and might actually produce that result if the image exceeds the maximum texture size of the device.
If that is not the case you would need to explain what you are doing more precisely.

Detecting and cropping a face from an picture?

I am working on a Face Recognition system for my internship. I am developing the project in Java right now. I am using OpenCV library, but it does not seem to work correctly in detecting faces.
I am at a point, where I capture image from the desktop and store it on the hard drive.
All I want now is to detect a face in that image (NOT IDENTIFY). I just need to detect that face and crop it.
Please help me with it. If anyone has specific code in Java to detect faces in a images, please send me that too.72236
This library already has face detection built in. You'd probably be better off using it.

Manipulating an image on App Engine

I'm trying to draw text to an image from Java in the Google App engine, but I've found no methods (since the java.awt.image.* isn't whitelisted) to do it with. I'm also trying to "layer" one image on top of another, which I can't figure out how to do.
Is there any way to draw text on an image or overlay one image over another in App Engine using Java? Has anyone found any other solutions to this?
You have to use Google's Images API instead.
Not sure if it can do all you need it to, but it does include image composition.

Categories