Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am developing an application which will capture the image automatically and store it in SD card when the application is started. (i.e) without any user interaction after the initialization of the application. I hear that using intent we can take pictures but user interaction is necessary.So i used camera classes. But it was not working. I came across various posts but nothing seems to be useful.
Can any one give me a suggestion?
You can go through through the following tutorial and it will serve your purpose. I had a similar requirement and i used this code its working nicely!
Camera API
See section 4 using the Camera API
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
In the system camera application accessed via new Intent(MediaStore.ACTION_IMAGE_CAPTURE) the OK button isn't working. Other buttons such as reset and cancel are working.
For other devices including other android Pie devices, it is working normally. Logcat shows the following error:
E/ReviewScreenImpl: onClickOKButton() - Fail to decode captured picture
This is most probably a device specific software issue since this issue has happened suddenly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Ok so first off: I am a complete noob when it comes to Android app development. I used to have Android studio and wanted to make an app. I found it very confusing and hard to learn.
Second: I know HTML and CSS pretty well, but not JS or XML or any other languages.
I want to make an app that is basically a vault. When you open it, you get a login screen (with fingerprint login preferred). Then you login and are presented with a vault to store images, files, and etc.
I have no clue where to get started or what to learn. I want to learn how, but it seems very confusing to me.
I could also make this a web app so which ever is easier, let me know.
Thanks for the help!
What I suggest is you start with very small projects. In each one, aim to make something you haven't tried before (don't be repetitive in your apps). I suggest you make the following apps, so in each one you learn a little about what shall be useful:
+/- Calculator
Application which asks for a password, and if correct, sends you to a second activity
Application which can save information even if the application is closed
Application which can shows a series of images one below another
(scrolling down)
This will get you a nice idea on Android Basics which will be useful for your project. If you were to jump directly into it, you would find yourself in a sea of abstract information and have no idea what to do.
Remember: small projects give you better understanding. Google and StackOverflow are your best friends
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I use Vuforia and Unity to build an android AR app. I follow guide on youtube. And when phone's camera scan the image target, the house object appear on the image target. But when I get the image target out phone's camera, the house object isn't removed and it still appear on screen.
Are you using Extended Tracking? Check the option in the inspector of your image target if the extended tracking is on.
For more information about extended tracking please refer to this Vuforia Guide.
If you want the house to disappear when tracking is lost, try attaching DefaultTrackableEventHandler.cs from under Vuforia/Scripts to your game object.
Specifically look at OnTrackingLost - it disables rendering and collision.
Good luck!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new in mobile app dev. And I want to build my app in standard camera. It will be like helper guide lines on camera to make better photos. But I don't want to build separate app, instead I want make it in standard cam like add on. So, because I am new in that sphere, I don't know is it possible to do, and which API or tools I should use. Can you help me with that?
In the way you want to achieve this based on description above : no, you can't.
Only way to do something like this is build own app (with own app icon in launcher) and try open camera from your app by Intent, but before that show tutorial within your app. But it seems to be not nice idea for tutorial purpose.
You cannot add more features in the application provided by different vendors. Each vendor(like Samsung, HTC) has its own application of Camera which is protected. If you want to do that then you will need to have permission of a vendor or become a vendor in the process. That entails to building your own OS or custom OS (Android Source Code is Open Source).
Next best thing you could do is provide a helper application that gives tips and tricks and anything informative for guidelines. Then user can learn from your app which is available for download through Google Play.
It is worth noting that almost every device hardware is different. Some features are device specific. Therefore quality and settings will also differ.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have developed my first android application i.e. CHECKERS ,which is working perfectly for two players, now some users of my app wants me to add a single player mode as well.
Can you guys plz help me how can I fulfill this demand,How to code for this.Your help will be highly respected.
I used canvas drawing in my app and my class extends SurfaceView implements runnable.
Thanks!
I am willing to help you with ideas:
I assume you already have a project, which works with two players. If you want to achieve 1-player mode without too much pain, you should follow the ideas described below:
Create a ComputerPlayer class, inherit it from your Player class.
Override methods, such as move to occur automatically (at first, start with random moves, don't get delved deep into the AI logic just yet, because first you want to support automatic moves, and then you will want to focus on AI strategies)
Where you send/receive the moves support sending/receiving moves from ComputerPlayer as well (you will not really send a message to the network, but your current project probably uses terminology as "send", "receive")
Test, test and test.
When everything is well, choose an AI strategy, implement it and you are done with the upgrade.