Android Open Source - Sertimus Live Object Motion Event

From Project

Back to project page Sertimus.


The source code is released under:

GNU General Public License

If you think the Android project Sertimus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*  Sertimus - A live wallpaper featuring a cute Chao.
  /*from w  w w  . j  a va2 s . c o  m*/
    Copyright (C) 2013  Kevin Negrin

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <>. */

/*  LiveObjectMotionEvent - A class that is designed to collect the coordinates 
 *  of a given MotionEvent and provides accessors for them. */


import android.view.MotionEvent;

public class LiveObjectMotionEvent {
  private float x=0, y=0;
  public LiveObjectMotionEvent(MotionEvent e) {
    x = e.getX(0);
    y = e.getY(0);

  public float getX() {
    return x;

  public float getY() {
    return y;

Java Source Code List