i need make a video in android with few Pictures (a black image with a text) and i need that every image have a 2 seconds duration.
I tried with jcodec, but i cant make it.
How is the best way to make it?
Thanks in advance
You can always make an application that does that in Eclipse of Android Studios. For the basic algorithm, upon the user clicking a button "start", you can move on to the next activity. After this activity starts, you can cycle through a series of images with text, and use some type of time loop, so that the array will go from one item to the next in 2 seconds.
Related
I'm trying to create an application that automatically clicks pictures as you carry your phone around, the point is that it clicks pictures as you do your own business.
This question is basically what I'm looking for with the added functionality of taking pictures every n seconds. I wanted to know if there was something more efficient than this method (shrinking the preview window to 1x1).
background service is not recommended. You can use foreground service for this job.
You need to give media and camera access permission in the code. Then you can run the capture function with n second delay and while loop as many times as you want.
there are some examples, i don't want to repeat them.
capture, save and show example
take photo without ui
How do you make an app that displays a logo for a couple of seconds then a text sentence on the screen?
I want to make the app in Android Studio in Java, the goal is that once the app is opened, any sort of logo will appear for 5 seconds, then a sentence will appear then that's it.
I already tried to use the already provided code presets by Android Studio but the problem is, I have no idea how do I do the things that I previously mentioned... I really need help on this.
Any help will be very appreciated, thank you :)
You may have these two Activities namely:
SplashScreenActivity
MainActivity
The former has an ImageView to display a logo. The latter has a TextView to display a sentence. You should learn to make these at first.
Once you have those Activities, then learn to use Intent to switch between the former and the latter.
I want to make a program that recognize a button that is in the League of Legends client, and when the queue's button shows up the mouse instantly click on it.
Its a sort of a AutoAccept Client...
There is already a program that someone did, but it has so many unnecessary things and it does not work very well....
How do I do to recognize a element inside a program to make my mouse move there when it shows up?
I can try to code this in any language, just gimme a tip pls
You can create a program that takes a screenshot every 100ms, use a recognition algorithm of your choice and then (optionally) performs a mouse click. There are enough libraries that can screenshot for you, you should be able to recognise the button by colour and location and every language should have some method of controlling the mouse.
Sikulix (can be paired with python) is a perfect tool to use for this. It scans over your screen constantly, and if the image in question pops up (the accept button) you can click on it.
You will have to take a screenshot and likely store it as .png so the program knows what it is looking for.
Google Sikulix.
I need to Make an activity of an app that is simply a list of about 30 buttons in the same Page, and when the user taps on one of them, the Phone have to play a Short audio track contained in raw folder.
What is the Best Way to organize data without repeating a Lot of Lines of code?
Thank you
I probably would have gone with Spinners. They look organized and creates a list that will be helpful for you when making 30 buttons on the same page.
http://developer.android.com/guide/topics/ui/controls/spinner.html
Hope this helps.
I'am using this player as a base for the project:
http://www.androidhive.info/2012/03/android-building-audio-player-tutorial/
I addition to that when I wanted to show different Images (kind of a slideshow) while playing the Audiofile.
Each image has a starttime and duration value.
I've archieved to play this slideshow of images, but with the problem, that I can't stop or pause it.
My Goal is an ImageView where I can controll the shown Image over the seekbar and the Play and Pause function, so that every Image will be shown at the right time while scrolling through the seekbar. (Same like the Audio file gets controlled kind of)
Right know I'm kind of stuck and need some approach to continue my work.
Anybody an idea how to solve this?