Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
android studio — Gideros Forum

android studio

i am trying to make/debug the media plugin in android studio. can i modify the lua code in as?
i exported the project with encrypt false but still cannot read the lua code.
my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Tagged:

Comments

  • hgy29hgy29 Maintainer
    Accepted Answer
    No, the exported projected lua code is compiled, you can’t change it easily. Best option: export a player and debug it, you’ll be able to send files from the studio during your debug session.
  • I found my problem :/
    getFile and saveFile not implemented in android :'(

    gmedia_diff.png
    1920 x 1042 - 108K
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • I may have a solution though, implement open any file type in the getPicture android code instead of just images, I'll let you know :)
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • OK :) I managed to make it work on android.
    I have modified the gmedia android code, now you can open any type of files on android (png, jpg, jpeg, mp3, pdf, xxx, ...)
    If you think that can be useful we can discuss it here and put it on github?
    Here is the java code, you need to replace it in:
    C:\Program Files (x86)\Gideros\All Plugins\gmedia\bin\Android\src\com\giderosmobile\android\plugins\media\GMedia.java
    txt
    txt
    GMedia.java.txt
    26K
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • MoKaLuxMoKaLux Member
    edited June 2020
    and an example
    if ends_with(path, "png") or ends_with(path, "jpg") or ends_with(path, "jpeg") then
    	bmp = Bitmap.new(Texture.new(path, true))
    	bmp:setPosition(0, myappheight - bmp:getHeight())
    	stage:addChildAt(bmp, 1)
    else
    	print("THIS IS NOT AN IMAGE TYPE, DO SMTG WITH IT")
    end
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
Sign In or Register to comment.