Android Wallpaper as background - live-wallpaper

How can I scroll wallpaper and send touch events to live wallpapers set as app backround.
It is possible using #android:style/Theme.Wallpaper?

Use the onOffsetsChanged() method for scrolling of wallpaper and onTouchEvent() mwthod to send touch events which are available in Engine class.

Related

How to put a frame on camera while capturing Image using jquery?

I am making a website to capture image ID. I am using webcam.js How can I put a frame on camera when it is accessed on mobile web browser and crop the area outside the frame to focus only on the captured ID? I cannot find any documentation on webcam.js. Please help me. Thank you

vlcj embeddedmediaplayercomponent in Jinternal Fream Adding Issues

Jinternal frame Add jvlcEmbeddedmediaPlayerComponent problem is jDropdownlist open than list is back side list in vlc Control and other Problem is if maximize Jinternal Frame other vlc Component our Spreed Current Maximize jinternal frame look like Same thing jDropdown Control behavior.
How to Fix the Problems.
below Attach Image
You are trying to overlay a lightweight Swing component on top of a heavyweight AWT Canvas.
Use:
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
This is what the example media player provided by vlcj does:
https://github.com/caprica/vlcj/blob/vlcj-3.0.1/src/test/java/uk/co/caprica/vlcj/test/basic/TestPlayer.java

audiotrack position update windows phone

I am playing audio through the background audio player agent. How do I display a progress bar in the foreground indicating what position is the track currently add, like the built-in music player.
At Rob Crocombe blog you can find how to make a progressbar and use it with Background audio player. It works basing on Dispatcher Timer, which you start along with play button - the music is playing in background, timer is working in main UI and it's updating progres bar.
On the other hand, if you want want to make a slider (to be able to jump to selected position) you can use (as it's showed in blog) SuperSlider from Toolkit or you can customize your own slider as it showed here.
I done this same using Media element there i used a progressbar and Dispatcher timer on dispatcher timer tik event i updated the status of progress bar
Windows Phone Background Audio with Slider and Timer
you can find here

Swiping through photo stack like Tinder - Cross-platform (Hybrid / HTML5 is OK)

I'm looking to create an app like Tinder where users swipe through a photo stack. Does anyone know of a way to reproduce this effect cross-platform?
So far, I'm thinking of building a web app using jQuery Mobile with
TouchSwipe for swipe detection;
see: http://labs.rampinteractive.co.uk/touchSwipe/demos/
and jStack to display the images;
see: http://lab.hisasann.com/jStack/
Are there any suggestions of a better way to do this?
Here is a jQuery Plugin for that:
jTinder
I've finally found a hack that does something like what I described in the question:
Using the touchpunch library (http://touchpunch.furf.com) for drag and drop, full-screen images, and drop zones to the right and to the left seems to do the trick.
Check out Swing JS : https://github.com/gajus/swing
and for angular: https://github.com/gajus/angular-swing
see this thread also:
Tinder style drag gesture and drop with Javascript?
Hope it isn't too late to post a suggestion. So, hammerjs allows to listen to multitouch and gesture events. And supports Android, iOS and Windows Phone.
http://eightmedia.github.io/hammer.js/
Can try calling the photostack control's next/previous step based on the gesture event?

AS3 Camera selection

Has anyone build a AS3 Camera-Select-algorithm, ready to use?
With MacBooks you have the problem that the build-in webcam is not rightly choosen from the webplayer.
You have to select the USP-Cam by youself from the list
DV Video
IIDC FireWire Video
USB Video Class Video
by
camera = Camera.getCamera("2");
THNX!
I found kind of a workaround here
You cant actually set the camera programatically. The best you can do is prompt the user to set it next to a video panel to show them if the camera they've chosen actually works. example here: http://www.neave.com/webcam/
to prompt them to change cameras you use:
Security.showSettings(SecurityPanel.CAMERA)
there is no event to wait for, though you can poll your video panel's bitmap data for changes and prompt the user behind the security panel when you think they've chosen the right camera.
Having done battle with this problem, I would suggest that everyone use this library.
https://github.com/cataclysmicrewind/CameraDetection/
Flash + webcam should = easy + awesome.
Unfortunately, it is pain + suffering.