Android Open Source - twilio-sms-babel Display Messages






From Project

Back to project page twilio-sms-babel.

License

The source code is released under:

Apache License

If you think the Android project twilio-sms-babel 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.example.smsbabel.utils;
//  www.  j av  a2s  .co m
import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class DisplayMessages {
  
  private static final String LOG_TAG = "Twilio.Babel.DisplayMessages";

    public static void showWarn(Context applicationContext, CharSequence message) {
      Log.i(LOG_TAG, "showWarn(): showing toast with text \"" + message + "\"");
    Context context = applicationContext;
    int duration = Toast.LENGTH_SHORT;
    Toast toast = Toast.makeText(context, message, duration);
    toast.show();
    
    }
  
}




Java Source Code List

com.example.smsbabel.BabelText.java
com.example.smsbabel.MessageAsync.java
com.example.smsbabel.Exception.TranslationException.java
com.example.smsbabel.utils.DisplayMessages.java