Back to project page baracus-framework.
The source code is released under:
Apache License
If you think the Android project baracus-framework 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 net.mantucon.baracus.ui; /*www. j a v a 2 s.c om*/ import android.app.AlertDialog; import android.content.Context; import android.view.Gravity; import android.widget.TextView; import net.mantucon.baracus.context.BaracusApplicationContext; /** * Created with IntelliJ IDEA. * User: marcus */ public class Popup { public static void showPopup(Context context, String message) { AlertDialog.Builder popupBuilder = new AlertDialog.Builder(context); TextView myMsg = new TextView(BaracusApplicationContext.getContext()); myMsg.setGravity(Gravity.CENTER_HORIZONTAL); myMsg.setText(message); popupBuilder.setView(myMsg); popupBuilder.show(); } }