Back to project page logmypain.
The source code is released under:
GNU General Public License
If you think the Android project logmypain 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 com.logmypain.main.record.toasties; /*w w w .j av a 2 s.co m*/ import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import com.logmypain.R; public class RecordNowToastie extends Dialog { public RecordNowToastie(Context context) { super(context); // TODO Auto-generated constructor stub } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Pass touch events to the background activity Window window = getWindow(); window.setBackgroundDrawableResource(android.R.color.transparent); window.addFlags( WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); setContentView(R.layout.dialog_record_now); //TextView message = (TextView) findViewById(R.id.dialog_record_now); // message.setText("Migraine recorded for "); } }