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
Related
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.
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.
I am just creating a quick application in which there would be a floating icon on the home and the user have to just drag and drop that icon to the app and then it will show a alert window.
I know how to create the floating icon using some maths and windowmanager but don't know how should i get the name of the app on which the floating icon is dropped. I have thought of some ways to archive this, but don't know how to implement it....
By Getting the position of the touch when ACTION_UP Trigger is occurred and then checking what's the app is by comparing it with its position.
But there is a problem in this way, because i don't know how to get the position of launching icons on the homepage.
Help me to archive this task. Please tell me How can i get the position of launching icon(like facebook, google play) on the homepage . Also it would be very helpful if you can suggest me other ways of doing this.
I know this can be done because winners of techcrunch hackathon have
made the same application. A short video of this can be found here, in
case you might want to look,
http://techcrunch.com/2015/09/20/disrupt-sf-2015-hackathon-winners/
i don't know how to get the position of launching icons on the homepage.
That is not possible in general, outside of perhaps the accessibility APIs.
Please bear in mind that there are > 1 billion Android devices in use. Those span thousands of device models, representing hundreds or thousands of home screen implementations. Users can also install third-party home screen implementations (e.g., from the Play Store) and use those.
There is no requirement that a home screen have "launching icons" that meet your expectations. I could write a home screen whose app launcher consisted of text hyperlinks, for example. Or, I could write a home screen that is designed to be used by an external keyboard, where launching apps is triggered by keypresses rather than icons.
There is no requirement that a home screen have some sort of API that, given some X/Y coordinate on some arbitrary piece of that home screen, would tell you an app that is represented by something visual at that X/Y coordinate.
You are welcome to try using the accessibility APIs to find details of a widget at the desired X/Y coordinate on the current screen. However, from there, you would have to make guesses as to whether or not that is a launcher icon and, if so, what app it would represent. This approach is likely to be unreliable, except for specific scenarios that you have hard-coded. Hard-coding is what the team you cited appears to have done, based on the prose on the TechCrunch site.
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 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.