Android Open Source - crabox Notification






From Project

Back to project page crabox.

License

The source code is released under:

Apache License

If you think the Android project crabox 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.costular.crabox.android;
/*from  w w w. j  a va  2  s .  c o  m*/
import android.content.Context;
import android.os.Handler;
import android.widget.Toast;

import com.costular.crabox.util.NotificationRequest;

public class Notification implements NotificationRequest{

  Handler uiThread;
    Context appContext;
  
  public Notification(Context appContext) {
    this.appContext = appContext;
    uiThread = new Handler();
  }
  
  @Override
  public void showShortToast(final String message) {
     uiThread.post(new Runnable() {
             public void run() {
                     Toast.makeText(appContext, message, Toast.LENGTH_SHORT)
                                     .show();
             }
     });
  }

  @Override
  public void showLongToast(final String message) {
     uiThread.post(new Runnable() {
             public void run() {
                     Toast.makeText(appContext, message, Toast.LENGTH_LONG)
                                     .show();
             }
     });
  }

  
}




Java Source Code List

com.costular.crabox.AddInterface.java
com.costular.crabox.Cbx.java
com.costular.crabox.Controller.java
com.costular.crabox.GameController.java
com.costular.crabox.GameState.java
com.costular.crabox.MainClass.java
com.costular.crabox.actors.Box.java
com.costular.crabox.actors.ContactBodies.java
com.costular.crabox.actors.DefaultBox.java
com.costular.crabox.actors.DefaultTriangle.java
com.costular.crabox.actors.Player.java
com.costular.crabox.actors.Score.java
com.costular.crabox.actors.ToggleButton.java
com.costular.crabox.android.AndroidLauncher.java
com.costular.crabox.android.Facebook.java
com.costular.crabox.android.Notification.java
com.costular.crabox.android.RequestAd.java
com.costular.crabox.screens.GameScreen.java
com.costular.crabox.screens.HUD.java
com.costular.crabox.screens.MenuScreen.java
com.costular.crabox.util.AssetManager.java
com.costular.crabox.util.AudioManager.java
com.costular.crabox.util.Box2DUtils.java
com.costular.crabox.util.FacebookRequest.java
com.costular.crabox.util.GeometryUtils.java
com.costular.crabox.util.NotificationRequest.java
com.costular.crabox.util.Preferences.java
com.costular.crabox.util.StageGenerator.java
com.costular.crabox.util.Utils.java