I\'m writing an Android application and I would like to place a dialog or view over the home screen so that a user can enter text without jumping into my full application. I
Thanks a lot, I tried with Theme.Dialog
But in my code, there is 2 different floating windows : my layout and the tile. Here is the following code:
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.app.Dialog;
public class language extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.main);
dialog.setTitle("Raygional");
dialog.show();
}
}
PS : I know this should be a question rather than an answer