java

  1. Japster

    Looking for advice regarding creating an extension to access web3.min.js functions?

    Hi guys! - I've been racking my brains with this - it looks really straightforward on Youtube videos detailing pulling JS files into an extension, creating a GML-callable function name, etc, but I've spent a day so far, getting frustrated because I can't seem to get anything from the functions...
  2. D

    Android Execution failed for task ':com.company.game:mergeReleaseResources'.

    Hello Everyone i'm Beginners I am really hoping someone is able to help I am not able to create an APK for my Android game due to the above error. (GMS 2.3+) "cmd" /c subst Z: "C:\Users\BOS\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" elapsed time 00:00:00.1980141s for command "cmd"...
  3. RizbIT

    Using gallery picker and camera photo extension on android 10

    im using one of the camera/gallery android extension from the marketplace in my project it works fine on older android phones on android 10 phone it does not work. Im targetting api 29 now i found way to make it work, issue is with access to storage on android 10 in gms android options >...
  4. RizbIT

    usesCleartextTraffic

    I just wanted to check is there anything wrong with adding this to the 'Inject To Android Manifest Application' section? <activity android:usesCleartextTraffic="true" android:name=".WebViewEmbed" android:theme="@android:style/Theme.Translucent"/> The reason is that in Android Pie (API 29)...
  5. Marko03970

    Android Android export/run problem

    Hi everyone, I have a problem when running or exporting android games in game maker studio 2. Every time I import project, made by someone else, and when I try to run or to export it, I get an error: When I make the project myself, everything is working well. Does anyone has any idea, how to...
  6. MagnumVulcanos

    GMS 2 [Solved] Networking a java server and gms client, trouble receiving data from java server

    Solved: Endian problem, switched ByteBuffer order in java and that solved it. I'm using the ByteBuffer class from java in order to write to a byte[] array, and then I'm sending it as a DatagramPacket through a DatagramSocket. This is the code: byte[] dataOut = new byte[1024]...
  7. Jeff Mundee

    Android MOGA change in latest build

    I am getting a failed compile now with our game's Gamepad support after updating to the latest build 2.2.1.375 Under the release notes I see: Game Options: Removed the checkbox for MOGA Gamepads from Android, as this is no longer relevant in 2.2.1+ runtimes, as we have changed the gamepad...
  8. F

    Passing a ds_list as parameter to an extension function

    Hello, I'm writing an extension for Android (which will be also ported to iOS and Windows). I need to pass a ds_list as a parameter of a Java method. How would I do it? In GML I would pass the index of the ds_list as argument to the function. But how do I access the values of the said list in...
  9. clee2005

    Android .aar files in Extensions

    Hi guys, I'm working on an extension that requires adding some .aar files from an SDK. I add those files to the LIB folder as suggested by the SDK but I continuously get : Copying C:\Users\Chris\Dropbox\!Work\WordWowSeasons\extensions\AppodealAds\AndroidSource\java\AppodealAds.java to...
  10. clee2005

    Android Login With Amazon Extension

    Hey guys, I'm trying to put together an Android extension to allow Logging in with an Amazon account (same as you would with Google or Facebook). I have it working on Kindle Fire devices, but for some reason it will not work on a regular Android device even though it should according to the...
  11. zendraw

    Android Q:java.exe

    every time i export an apk for my phone some java.exe runs and doesnt get terminated after the apk is exported. shuldnt it get terminated at that point? its troubling me becouse it eats almost 500-1000mb of memory for some reason??? and i have to terminate it manually. is this a bug or somthing...
  12. T

    Android Compile for Armv8a not possible

    Hello, is there a reason why GMS 2 does not offer to compile for Armv8a ? I do only see Armv5 and Armv7 beside x86 and Mips. On my device I am only able to "install" my game if I do compile directly onto it. If I create my final apk, the game crashes at startup. And I did add Libraries for...
  13. HW.

    Android [SOLVED] import java extension ${YYAndroidPackageName}.R - ${YYAndroidPackageName.RunnerActivity

    I want to ask YoYo team, or anyone else who has experiences to answer this specific question about the RunnerActivity of the GMS2 engine, for the sole purpose of creating an Android native extension for GameMaker projects (best-practice way). Okay, so what i read from the YoYo official...
  14. Y

    Android Extension not creating Social Async

    Hello all! First time poster, long time lurker. I would normally refrain from bugging you all with a problem which likely has a very simple solution, but this has left me baffled. This is the Java extension code: This is the GML code that runs the functions: And this is in the Social...
  15. 1

    Android [SOLVED] Java JDK Location

    I am trying to set up the android settings and Game Maker can't seem to find the location of the JDK. I couldn't even find it but I finally did with: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk If I hit cmd+space and paste that into the search it takes me right to the jdk file but when I...
  16. J

    Android can not read device_id (TelephonyManager)

    For some reason my java code can't be compiled. I wanted to detect my device id inside my extension: public String imei() { //Get the instance of TelephonyManager TelephonyManager tm=(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); //Calling the...
  17. J

    Request for simple example project / call Java file

    Hello, I am stuck with understanding how to add a java file as extension to my android GM2 project. Maybe someone can upload a quick full example to study? I got this in my "test.java" file: package ${YYAndroidPackageName}; import ${YYAndroidPackageName}.RunnerActivity; import...
  18. A

    How to access files in the working_directory from an Android extension?

    I'm trying to make an extension that allows the player to share a screenshot of their game. I've made the extension able to send images, and I've made the game take a screenshot with screen_save, but I'm not sure how to pass the path of the image to the extension, as simply giving it the...
  19. R

    Android Compiling

    I have a problem when i compile the game to android. I have updated the java to the newest version and the sdk, jdk, keystore and ndk are working. I Also tried to clear the temp data, asset cache and the backup data. It gives med this message: FAILURE: Build failed with an exception. * What...
  20. Z

    Android java.lang.NullPointerException and java.lang.ClassNotFoundException Crash in Android Vitals

    Hello All, As the recent GooglePlay Console update introduced the Android vitals system, I heard that it's worth looking into your game's crash rate to make sure that it is below the threshold, or else the store's algorithm may suppress your game from showing to users. Anyways, I was looking...
Top