Using the camera inside an Android app - java

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.

Related

Zoom Slider DJI widget

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.

How to share screen with agora.io sdk in android?

i have implemented video calling functionality in agora but i am stuck on how to do screen sharing with agora.io android sdk .
Thanks in advance.
you can take a look at this documentation: https://docs.agora.io/en/Video/screensharing_android?platform=Android.
Basically, you need to use "pushExternalVideoFrame" method. https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#a6e7327f4449800a2c2ddc200eb2c0386

Add compass calibrate option in android app in MapView

I am trying to add compass calibrate option in my app same like in maps app or Whatsapp.
https://www.howtogeek.com/519142/how-to-calibrate-the-compass-on-android-to-improve-device-location-accuracy/
I am trying to find if it comes with the sdk or do I need to implement it manually.
Compass calibration isn't implemented in software. Just wave the device in a figure-8 pattern as shown in your link. The Google Maps app just contains instructions for how to do it, and provides a convenient way to see if it worked.

iOS style shadow for Android?

I am a student and is beginner to Android app development. Also, I specifically aim for a great UI/UX that will contribute a lot in my project.
Does anyone know how to implement this iOS shadow style for Android app (preferably java)? Like the shadow is a blurred version of the ImageView (or any other view). A third-party library could help as well.
Image reference:
Apple Music now playing screen
To set the default (resting) elevation of a view, use the android:elevation attribute in the XML layout. To set the elevation of a view in the code of an activity, use the View.setElevation() method.
Here is the material design documentation for the functionality
https://developer.android.com/training/material/shadows-clipping

Can I start Android App not in FullScreen mode?

I saw that youtube app can minimize to small window that displays over all other windows.
I want to do the same with my app.
What strings in manifest (or any other string) do it?
Thanks,
I am about this:
Take a look at google documentation about this topic, it is called picture-in-picture
You need to add the first two lines to your activity which will handle Picture in Picture (PIP) mode.
The third line needs to be added so that your activity will not relaunch once layout changes occur, such as device screen rotation.
android:resizeableActivity="true"
android:supportsPictureInPicture="true"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
You can find more information about this in the android documentation.
Here is a tutorial on how to implement it.
You can refer to the following tutorials which are nice to understand
picture in picture feature
https://medium.com/#mujtahidah/making-picture-in-picture-android-4120ac73efb4
http://www.zoftino.com/android-picture-in-picture-mode-example

Categories