I am a new developer, trying to get my head around android. I managed to get fragments working and I am unable to add and play a video on it.
Also, I added a image successfully, is it possible to pinch zoom on that image, if so how?
I really appreciate your help.
Thanks
You can implement this library
https://github.com/chrisbanes/PhotoView for zoom on image.
if you read the Sample Usage and analyse the sample app you can zoom it.
About playing video on fragment. It is simple just google it.
Related
I want to open the camera but not in photo form so I can add an overlay. I just need the camera to display what is shows but not to take the photo if that makes sense... How can I do this?
maybe this article help you open camera view in your app by creating your own view and open camera in its own different thread ,
as it might take time to load and this will result in the lagging UI.
Maybe this article from android developers website will help you achieve what you want.
https://developer.android.com/training/camera/cameradirect#kotlin
I need to zoom in my app and it appears that in the DJIPilot app there is something that looks like a widget for a zoom, but I can't find it in the documentation, does anyone know what widget is this? I put a picture of this widget.
image
It's a widget in a closed, heavily encrypted app. You can't access it.
I don't know why you think it should be available in the SDK? Dji App and SDK are two different things. DJI apps don't even use the sdk.
You have to do it yourself, or find some similar somewhere else.
There are some simple widgets in UXSDK, you can look there, but I doubt you find anything good enough.
Now i am facing a problem with my apps.
I want to make a animated hand on my app that help user in this way how to use it.
I give blew a picture sample. Please help. http://i.stack.imgur.com/IgAMU.png
The image you provided is how Google shows off and demonstrates their new features.
Google has created the "Blue hand overlay" and the other effects you see in the picture.
You will need to create your own image as im sure Google has some sort of copyright on every thing you see.
After you have your own "guiding hand" image you will apply the image to the screen with a transparent background and a "ok" button in order to mimic what you see in the picture.
I want to create an Android app which uses a camera, but I don't want the app to redirect to the default camera app on the device.
I want a custom-made camera app specifically for the app. How do I implement it?
Here is a nice tutorial to accomplish it.
Camera Integration with Surface View
You can make your custom changes on the SurfaceView according to your requirements.
Look into this tutorial http://www.airpair.com/android/android-camera-surface-view-fragment
Link 2
you can use SurfaceView Fragment.
I used https://github.com/commonsguy/cwac-camera to get custom camera done.
The library #commonsware made, great library with great documentation and support.
I'm wanting to build an Android widget for my phone that streams a video from a link on button click. I've searched tutorials on Google but I'm still having difficulty understanding how I'd achieve this.
Does anybody have an example of something similar to this or know of any good tutorials to get me started?
Cheers
You can use android native VideoView. It can even play online streaming videos.