Android Open Source - AndroidFloatingImage Floating Service






From Project

Back to project page AndroidFloatingImage.

License

The source code is released under:

Apache License

If you think the Android project AndroidFloatingImage 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

package com.styleme.floating.example.service;
//ww w  .  ja va  2  s . c o m
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.styleme.floating.example.views.FloatingImage;

public class FloatingService extends Service {
  FloatingImage floatingImage;

  /**
   * @param intent
   */
  @Override
  public IBinder onBind(Intent intent) {
    return null;
  }

  public void onCreate() {
    super.onCreate();
    floatingImage = new FloatingImage(this);
  }

  @Override
  public void onDestroy() {
    super.onDestroy();
    floatingImage.destroy(); //  now its an efficient way to destroy the imageView
  }
}




Java Source Code List

com.styleme.floating.example.MainActivity.java
com.styleme.floating.example.service.FloatingService.java
com.styleme.floating.example.views.FloatingImage.java