gpt4 book ai didi

java - 如何在phonegap android中隐藏推送通知栏

转载 作者:搜寻专家 更新时间:2023-11-01 08:58:40 25 4
gpt4 key购买 nike

我想全屏显示应用程序窗口,它看起来像游戏屏幕...请帮助我..

package play.lear.com;



import org.apache.cordova.DroidGap;



import android.os.Bundle;


import android.view.WindowManager;

public class PlayActivity extends DroidGap {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html", 10000);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
}
}

最佳答案

您可以在 config.xml 中设置一个全屏标志

<preference name="fullscreen" value="true" />

关于java - 如何在phonegap android中隐藏推送通知栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16998847/

25 4 0