Back to project page Floata-Client.
The source code is released under:
GNU General Public License
If you think the Android project Floata-Client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pidevelopers.floata; //www. j a v a 2 s . c o m import android.app.NotificationManager; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.WindowManager; public class Close extends ActionBarActivity { WindowManager windowManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); if(ChatHead.twitter != null ){ try{ stopService(new Intent (Close.this , ChatHead.class)); notificationManager.cancel(0); finish(); }catch(Exception e){ } } } }