Hello,
Ok. I updated App Builder and now, when we choose the option to create Apache Cordova Batch files, the program creates two BAT files, one for debug purposes and one other ready for release. Probably you have reason and we can't use a debug APK, or, at least, we must use a release APK instead. This is what we get now:
Update your App Builder copy edunt.
Hello,
You have reason edunt, there are two APK files. I am confused due to the other TXT file. On the other hand, I think you can sign debug APK, but, if you want a release, then open the BAT generated file and replace this line:
... by this other:
I am working in a solution in order to prepare also the release APK files in addition to the debug ones.
Hello,
I am also 99.9% sure I got three files edunt... please, let me to be in my PC and I will take a look.
Hello,
I am not in my PC right now, but, if I am not wrong, we get three files instead two. Are you sure you get two APK files instead three?
Hola PoKeRGT,
Gracias por su interés. De veras que intento por todos mis medios que App Builder vaya más allá de crear prototipos. De hecho ya hay algunas aplicaciones bastante interesantes circulando por ahí. Respecto de su pregunta, me temo que su problema no es específico de App Builder, sino de cualquier aplicación Web.
El problema que está encontrando tiene que ver con los permisos CORS que el servidor de la aplicación ha de habilitar, precisamente, respondiendo a la petición "OPTIONS" correctamente. Podrá ver ejemplos de cómo habilitar CORS en PHP en varios de los ejemplos incluidos en App Builder. También podrá buscar más ejemplos por internet.
En todo caso, para mostrar una imagen en su aplicación no necesita descargarla, o, por mejor decir, bastará conque indique la URL de dicha imagen en la propiedad "Image" del control "Image". Dicha URL podrá enlazar a un archivo de imagen incluido en la aplicación o bien a una imagen de su servidor. En este caso el CORS no será problema.
Espero que esta información le resulte de ayuda.
Si tiene cualquier otra duda no deje de indicarlo.
Gracias de nuevo por su interés en mi trabajo PoKeRGT.
Hello,
Look for some tutorial around the web edunt! At least one of my customers signing their APKs, since they published such applications into the Google Play Store. So for sure we can sign APK files, but we need to search around how to do it, possible problems while triying, etc. Unfortunatelly I can't help because I not need to sign any APK before.
Hello edunt,
Sincerely I can't help you at this time. I can only refer you to the Google Play Store instructions for signed APK files.
Hello,
I can't understand... you are saying the post you publish do not work?
Hello Donald,
Is there a way to just download updated sample files without installing the AppBuilder?
I know sometimes there are new controls etc that need to be updated but if we are using already installed ones, and you make some changes is there a way to do it?
I think it would be useful as time changes things and samples get modified.......as you know.
No. At this time we can only update the whole installation, which include the apps samples. My recommendation to you is to maintain a copy of the applications by yourself. That is, supose you want to work in certain app sample. Ok. Copy that sample directory to another and work over that files instead the original ones. So that files never be touched by App Builder installations.
And one more thing while I am thinking about it. The .ab file is a text file and I was wondering if there is someway to view it as text and search it. I know I can do it as an extrernal editor but might be a nice feature for the app.
My thinking on this is that sometimes I need to find where something is like objects or variables and this helps me to locate them,
Any other ideas or ways to do this?
Thanks
Yes; certainly the ".ab" files (App Builder's project or app files) is an XML file, so we can open it with our desired editor and may search and replace something, for example. However, a search engine (including the replace or refactoring feature) must be included in the future to App Builder, just like other things I need to study it and then try to implementing.
Hello,
Update your App Builder copy Donald: I add a new "unit" option into the Weather app sample.
Hello,
I forget to mention the Weather sample is a little special, in the sense that the first app's view (the home or main view) does not contain any button nor other control. In fact we use the view Show event with this code:
And there is the "GetWeatherData" app's function, which is responsible to retrieve the information from the app's server, that is, from the Open Weather Map API. Below is the "GetWeatherData" app's function:
Above we can see how we conform the appropiate URL, including the city we want to retrieve their weather. At this point we must modify that code in order to add another argument (the "units") into the URL. Then our PHP script receive such arguments and perform the appropiate Open Weather Map API call.
Hello Donald,
We can't use the Open Weather Map API directly from the application due to CORS limitations. So, how the application get the data from the API? The application uses a PHP script, who communicate with the Open Wheather API without CORS issues.
You can view such PHP script into the application folder and is in that PHP script in which we can view the Open Weather Map URL and then can add the appropiate argument (units) to it. If we plain to allow the application's user to change between units, then we must include in the application's HTTP call (used to retrieve the data) a new argument.
So the application inform to the PHP script to use the metric or the imperial unit. Probably I have sometime tomorrow in order to modify the Weather application sample in order to include the "units" option, then you can view how I implement it. Of course I take note about your suggestion. Of course a "global search engine" can be good, as well other things like a "code map". Good ideas.
Hello Donald,
The Weather app sample use the Current Open Weather Map API, and, yes, that API provide us with certain Units options. For example, the below URL:
Retrieve information using the Standard metrics unit.
But this other URL:
Retrieve the information using the Imperial units. So what we can do is to take in count the "units" argument in the URL, which can be "imperial" or "metric". If we simply omit this argument in the URL then the default units are "metric".
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.