Sunday, April 16, 2017

Game maker Android plugin, getting application context

Game maker Android plugin java code,

Application Context is available as part of RunnerJNILib that you normally include

Sample code accessing context below

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
package ${YYAndroidPackageName};

import android.content.Context;
import android.app.Application;

import ${YYAndroidPackageName}.R;
import com.yoyogames.runner.RunnerJNILib;

public class MyClassName {
 private Context mContext;
 public  MyClassName() {
  mContext = RunnerJNILib.GetApplicationContext();
 }
}

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...