我想在全屏显示应用程序窗口,它看起来像一个游戏画面...... 请帮帮我..
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);
}
}
答案 0 :(得分:2)
你可以在config.xml中为全屏设置一个标志
<preference name="fullscreen" value="true" />
答案 1 :(得分:1)
Phonegap's Notification与推送通知无关。
检查this是否将Pushwoosh for Android与Phonegap集成