I am a beginner in programming and I don't know much about it. I was asked to figure out how to "Manipulate an Android smartphone to do the following":
1) Create a button that would generate a callback (for example turn the screen from black to white)
2) Control the hardware of the device (Switch on the camera flash light, switch off the light)
I Would appreciate any help as I don't know what steps I should take to achieve this as I am an absolute beginner.
1)Change background after click
2)How to use camera
But first follow Android training to understand how Activities works
Related
I am designing a game in which the player has to change the brightness of his phone in order to pass to the next level.
The idea I have is that there might be an android-permission to allow detect a change in the brightness level.
So my question is that how do I use it in my app.
Thanks in advance.
Guys i am developing Camera Application and this is my first android Application.
below i am Adding My App Screenshot for what i want.
First View :
Here , after Clicking on a Top-Right Corner Filter icon i want a below View.
Second View :
i don't know how can i get this type of a view. also how can i design this type of view into XML parts.
and i read more articles like how to Open a Multiple Surface-view Preview onto single screen but i did not get any much appreciate solution.
and Finally after selecting any of the Filter Preview i want a above Image type View.
means Selected Filter's is Preview apply onto Camera [Surfaceview Preview].
Please provide any type of Material link example.etc
guys please help me.any type of help will be appreciated..):
Thanks in advance
From the images, it's from a app called Geak Camera. Actually, I developed this app, and I used the GLSurfaceView not the surfaceview. And the app is not maintained now because I left that company. And I updated that app called "U camera".The scale animation was improved in "U camera".
All these manipulations can be performed with OpenCV. Download their basic Android example, and you can add your logic to onCameraFrame() callback.
I am trying to develop an application in which I want to know when the camera button(if the phone has one),has been pressed for feature phones like Series60 using J2ME.I dont want to take a snapshot or take a video.I just want to know when the hardware button has been pressed.
I have been unable to find a proper way for this.Your help is greatly appreciated.
Create a canvas, listen for keypresses and output all events to the screen. If no event occurs when you press the camera key then you can't do it.
I'm creating an app on android in java, very simple, which has a button that on click play a sound.
I want to create a sort of canvas to draw something like sinusoide of music.. i hope i've been clear..
Do you know something about this?
look at this Api Demp it may help u.
My vision is this-- I have an image of a human body(like an anatomy chart), and I want the user to be able to click a certain part of it and be able to communicate the body part they have clicked on, as in translating it to text... I wonder if this could be possible, and how? Any sample code/redirection to a tutorial would be helpful, or maybe just a practical idea...
A very simple approach is just to add an ImageView to you layout.
Override onTouchEvent in the activity to capture touches and then translate the coordinates to texts.