Zoom Slider DJI widget - java

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.

Related

React Native - Opening Android Image Gallery Directly

As the title states, I am wondering how to open the Android image gallery directly from my app. Every single package that is out there, including react-native-image-picker, react-native-image-crop-picker, and yes, even Expo's expo-image-picker all open the "Recents" area!
Opening the gallery MUST be possible, since apps like Whatsapp, Tinder, Facebook, etc. all have this functionality when choosing pictures.
Such a simple functionality - and yet after a month of on and off search I have come up with no solution. Can anybody provide me with a way to do this? Or guide me in the correct direction? At this point I am prepared to write native Android code or custom React Native to get this to work.
i found this library
react-native-multiple-image-picker
it will open camera roll not recent file

How do i make my android app accessible from the lockscreen?

I'm creating an app to be used during emergencies and it's important that the app can be started from the lockscreen. Is this possible(it seems to be posssible, since i see apps like this on the Google Playstore) and how would i achieve this?
You might be better off replacing the lock screen. You'll have more control and be able to provide a better user experience. Downside is you have a lot of code to write.
See this:
Creating an Android Lock Screen App.
Making a lock screen widget was possible in between android 4.4.2 until android lollipop. All other version do not have this ability. As such the best alternative would be for your app to replace the built in launcher and create its own lockscreen which you would be able to customize yourself.

Android / Java: Show GUI on "off-screen" (Always-On Display...)

I saw new Android devices coming out, that show things (clock etc.) once the display "turns off". That feature is called an Always-On Display, and since my Samsung Galaxy S6 edge already features an AMOLED screen, and a night-clock, I believe there is a way, to make it show something, when the display is "turned off". Is there a way using Java on Android, to display something, once display is meant to turn off? (Like just a normal GUI, I could do the rest then.)
Like, to tell your app, to show something, when the screen turns off, that is still visible somehow? (without root permissions)
That would be useful, thanks in advance.
UPDATE:
I found some apps on the Google Play Store, which seem do to, what I want (not that specialized though):
https://play.google.com/store/apps/details?id=com.thsoft.glance&hl=de
https://play.google.com/store/apps/details?id=com.orthur.always_on_display&hl=de
So it is definetely possible, I just need to know, how.
If you are not using root, then you can only use the Android APIs. Here is a list for example for the display: http://developer.android.com/reference/android/view/Display.html
I don't see anything there for the Ambient Display mode or Always-On.
Samsung provides APIs also for the features of it's phones here: http://developer.samsung.com/galaxy Here I can find the Look API that has something close to what you want, but for Edge.

apply pinch and zoom to every page android application

Hi guys i have a medical application for android that will be used by the elderly. The problem is when they use the application they struggle to see the print. So i am looking to apply the pinch and zoom technique to the whole app so each page viewed can be zoomed in to make the font clearer. Can anybody point me in the right direction. I have looked at pinch and zoom examples and even downloaded some but they focus on images specifically. where as i want the content on every page to still function the way they do. i.e buttons etc. But i want every page to allow its users to zoom in.
This whole "Pinch and Zoom" thing is not really that usable as it requires a very high API to be used I think you should scrap it and try using the SeekBar that is connected to the size of the text it's a lot easier and it's something I have managed to implement quite easily in my apps from a very low API level. You can check this image of a snapshot of my App.
https://lh4.ggpht.com/9LDEkOV-QotFPHEa9SDpIHZ1OtgMgSDFdcrTsR1DZuBjpwonlAmREhhJQc3znVQ_LEo
If you want some code for this I may post it if you want

how does android understand which home screen is being viewed by the user?

I wanted to understand how does the Android OS figure out which home screen the user is viewing currently and render the appropriate icons and widgets on that screen based on the user's left or right swipe on the touch screen of the device.
The OS must save a state of the screen and IDs or something relative to the objects placed on the screen to retrieve the state each time the screen becomes visible.
From my research I understand that Android OS treats all the 7-8 homescreens on devices as one single host.
Also my question might seem vague, but the reason why I am asking is because it seems reasonable that app widgets on android devices, update not only when the phone is awake but also only when the app widget itself is visible. I know that Google has declined the enhancement request by many others but I don't think that is good enough. Link here.
That is the reason why I am trying to give it a shot to understand and implement it for my app with whatever Android knows about the state of the home screens.
Any help or insight is much appreciated. Also the experts out there let me know if you think this can be even implemented for one off apps at all?
Well, as the link you posted clearly states, there's no way to know.
Also, if you consider the fact that "Home" is just an application like all the others, it makes even less sense to have a unified API for that. A lot of people use Launcher Pro or similar applications, which would probably not implement it.

Categories