How to show a boot animation preview? - java

Hi i'm working on a simple boot animation app for my first app just to learn the basics and all. I'm now done with the app and have everything i wanted basically, except previews of the boot animations. I tried creating a gallery and showing an animated gif however as you probably know android doesn't support animated gifs natively.
So my question is this what is the best way to show previews of my boot animations. I've searched but found nothing that seemed like a good way of previewing them. So how should i approach this problem? Any sample code and or links to tutorials, even just ideas or suggestions on what i should do to approach this would be a significant help
Thank you

I think AnimationDrawable can help you. You can read about it here.

Related

Sceneform: Render WebRTC media stream in to ExternalTexture

I am trying to develop an AR app to help visual impaired people to make better their access conditions to a computer.
I am investigating on how AR can help HCI for visual disabilities, so, the application is using WebRTC to get computer Desktop to be magnified at AR environment using Sceneform.
I have successfully used the Sceneform example https://github.com/google-ar/sceneform-android-sdk/tree/master/samples/chromakeyvideo, but, I have no idea of how to render the WebRTC stream directly to a ExternalTexture. -> https://github.com/judicapo/MUITSS-ARBE/tree/master/SampleApps/ARCK
I already tried some Stackoverflow answers, but, have not found the clue.
Thank you all for your replies, hope some one has any idea.
Honestly I have not worked with this. but I could think of a way on how to approach this.
Instead of chromaKey rendering on a texture, why don't you try a 'ViewRenderable'? using this, you can place any android View to a node. You just need to place a VideoView and do your webRTC magic. let me know if this works
https://developers.google.com/ar/reference/java/sceneform/reference/com/google/ar/sceneform/rendering/ViewRenderable
https://developers.google.com/ar/develop/java/sceneform/create-renderables
AugmentedImage example - https://proandroiddev.com/arcore-sceneform-simple-video-playback-3fe2f909bfbc
ViewRenderable example - https://github.com/Hariofspades/ARExperiments/blob/master/AugmentedImages/app/src/main/java/com/hariofspades/augmentedimages/common/AugmentedImageNode.java

Best way to display scalable graphics as icons in JavaFX?

I am making a desktop app using JavaFX as the GUI Framework. I wan't my app to scale at any DPI, so I want sharp icons whether the app is run on a 1024x768 or 4K screen. In HTML achieving this is pretty easy with SVG, however I have not found a way to display scalable graphics directly in JavaFX.
What is the best way to achieve this? The app will obviously contain many icons, so I need it to be light and fast. Frankly, I haven't found anything close to what I want searching Google.
Thanks for your help!
Here is a library that you might want to have a look at:
JavaFXSVG
In addition to mipa's answer, I have similarly solved my problem using svg2fxml, available here: https://tomsondev.bestsolution.at/2012/08/22/svg-to-fxml-converter-as-commandline-util/

JavaFX tile/flow pane animation

I'm just playing around with JavaFX 2 and developing a little application for my own amusement.
From what I've seen so far, I like it, and now I'd like to play about with some of the animation and effect properties.
The app I'm designing uses a lot of images to display info, and I'd like to design a animated GUI to display the images. The idea I've got is something like this:
http://www.youtube.com/watch?v=LK3B7cpZlGM
Could anyone provide any information on how to achieve something similar to this? I'm guessing the layout is the flowpane, but I've no idea about how the animation works. Is there some kind of sort algorithm in play?
Any advice or info would be greatly appreciated.
Thanks!!
There are several articles about animation in JavaFX:
Video: http://medianetwork.oracle.com/video/player/1193110454001
Tutorial: http://docs.oracle.com/javafx/2/animations/jfxpub-animations.htm
Ensemble sample has several examples in Animation section, and "Display Shelf" example which do a simple version of animation in video.

Drag animation for the images

I have no experience what so ever on how to create a animation
I need to create such animation
any help is appreciated
Thanks and regards
Aashish
What you are looking for is plain Drag and Drop, it can be done with or without animation.
If you are developing for Android 3.0 or higher you are in luck, Google has made framework which makes Drag and Drop a Child's play, check this to know more.
Here are a few tutorials to get you started:
Tutorial 1
Tutorial 2
Tutorial 3
If you are developing for API level lesser than 3.0 then you are largely on your own to develop drag and drop functionality, well this might get you started.

Fingertip drawing applications on Android?

I'm a new user to this interesting forum!
I want start developing an application for android and before starting i want learn about some android features...
The first android feature is how to correlate finger motion on the screen with java...
Are there any source code examples that show how to draw with your finger on an android screen?
Can you suggest a good place for me to download an example?
thanks
The ApiDemos that come with the SDK have an example called TouchPaint that does exactly this... it's a simple little finger drawing app. The source is actually very easy to read and it shows all of the basics.
Check out this tutorial on drawing with a canvas in Android. There are some source code examples there for you as well.
Also, the Android developer's guide and tutorials on the Google site are great. That's what I started with.

Categories