Displaying graphs - android

What would be the best way to display a graph in android? Something like the image displayed below. You might recognize it. Its from battery monitor widget.

There is an open source project called Android Battery Dog which you can access on sourceforge. It shows you how a graph can be drawn and how to append the usage details to the graph.

Related

How to have an free flowing overlay structure in my android activity which is scrollable in every direction?

I am building an android app. I am new to this, I found out an interesting activity UI development, But I don't know how to describe that property properly in android terms-(I SINCERELY APOLOGIZE FOR THAT ).I am adding a video, Please consider it.Free Flowing multi-directional Smooth scrollable android overlay UI (Please turn on the subtitles on)
How to have that kind of UI overlay suppose I want to display a large image or file with multiple clickable buttons on it[I have already tried various Image loading libraries to load big size images and to make that Multidirectional scrollable].But that's not the exact thing which I want (like you can see the above mentioned reference).
So how can I execute that?
Thank you In advance for considering your time.

How to display camera within a Form/Page?

I'm currently working on what you could call a pet project, in which I need to display the camera. I've gotten that to work so far, but the idea behind it requires the view of the camera to not take up the entire screen. How can I "limit" or attach it to some other object/view that I can limit in size so as that I don't take up the entire screen, and thus I can add text/buttons/etc that the user can interact with while at the same time viewing the camera content?
You'll have to use some different native APIs to get a view that can show the camera feed. This is a different approach from using something like the Media Plugin which shows the built-in platform cameras. For example, you would use AVCaptureSession for iOS. Luckily, we have a doc on doing just what you want here. The example code is quite large so I won't paste here. There is a GitHub project you can explore for the full source code here.
The basic idea is to create a renderer for the platform APIs that give you access to camera data that can be embedded in a view.
iOS:
AVCaptureSession, AVCaptureDeviceInput and AVCaptureStillImageOutput
Android:
SurfaceTexture and TextureView help

HomeScreen Display Reference

complete noob to android. Trying to make an app in which I am trying to use the presentation class to display the home screen on the secondary display .... in short I'm trying to make the secondary display the primary display... I've tried a few hack such as making an overlay screen but it somehow doesn't work ... is there any way to get reference to the display object of the home screen....so i can use that to display it on the secondary display... please help guys :D.
is there any way to get reference to the display object of the home screen
No. That is not your app.
The exception would be if you write your own home screen and integrate it into this Presentation app.
You are welcome to use the media projection APIs on Android 5.0+ to take screenshots of the primary display, to show in your Presentation. However, all that will do is accomplish the same display mirroring that is part of standard Android (and be slower as well).

displaying images in android with zoom/pan/rotate etc functionality

So i got a lot of solutions online but none of them were simple and complete. First i tried using imageview and adding external libraries for zooming etc. but i couldn't find one which had all the functionality we see in a gallery app without being extremely slow. I read something about canvas though don't know what it is. I also found "zooming a view" in android official tutorial but it was just a single tap zoom. So which is the best solution (in terms of functionality and speed) for this: I want an activity to show just a single image such that the user can zoom/rotate/pan it as its gonna contain text that the user needs to be able to read. So basically just like a gallery app. Is it possible to call on the gallery app activity to display this image? Why doesnt android have better support to do this? What is the best way you would suggest.

Demoing android app screenshots

I need a way to show off concept designs of an android application on an android phone to simulate that it is running. Basically just being able to tap to advance to the next photo/screen would be sufficient with a tap ANYWHERE on the screen. Any tools you know that would be helpful?
Eclipse with Android toolkit.
Write a small program. wont take up much time.
[update]
No coding is required. Create an android project Using Eclipse android project, you can visually create UI prototype (i.e. drag and drop .. no coding). Use main.xml after developing each screen run the project in emulator, you can take screenshot of the same (either using eclipse DDMS plugin's snapshot capability or using Alt+Print screen in windows or something similar in other OS). Use this screenshot in a powerpoint presetation . Repeat the same process for a second screen (overwrite the same main.xml so that you dont have to write code). take screenshot again. Add the required animations in powerpoint.
Is there any other option that does not involve any code?
The easiest way I can think of is:
1. Take screen shots(wireframes, screen prototypes) for every screen flow you wish to demonstrate.
2. add them in proper sequence(regulated by sequence number) to your sdcard.
3. Open Picture gallery and use swipe gesture to transition and cycle between screen, walk through all the screen flows.
Do it photoshop, create images, add it to an activity. Create a layout that fills the parent, add it as a background. Then implement a ontouch method to finish the activity and load the next. Quite simple.

Categories

Resources