IMPORT util FUNCTION barcodegenerator_gma(strval) DEFINE strval STRING DEFINE in_extras STRING DEFINE json_ob util.JSONObject IF NOT(ui.Interface.getFrontEndName()=="GMA") THEN CALL fgl_winmessage("Error","Generacion del barcode es para Android","exclamation") RETURN END IF # prepare the input parameters CALL util.JSONObject.create() RETURNING json_ob CALL json_ob.put("PROMPT_MESSAGE", "PRUEBA") CALL json_ob.put("ENCODE_FORMAT", "CODE_128") CALL json_ob.put("ENCODE_DATA", strval) -- CALL json_ob.put("ENCODE_SHOW_CONTENTS",FALSE) LET in_extras=json_ob.toString() DISPLAY "IN extras=",in_extras # call the activity CALL ui.Interface.frontCall( "android", "startActivity", [ "com.google.zxing.client.android.ENCODE", NULL, "android.intent.category.DEFAULT", NULL, NULL, in_extras ], []) # this activity doesn't return anything # it shows the result in a viewer and allows sharing with other apps END FUNCTION