Posts by DecSoft

Show threads by DecSoft
3404 posts found, page 184 of 227

DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

App Builder includes a tutorial and varios samples about how we can use Cordova plugins. Basically this plugins offer to us a Javascript API we can use. In principle, all the Cordova plugins can be used, then, try it and ask if you have some particular problem.


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello,

But, certainly I am not sure the objective of copy an HTML tag into the clipboard... on the other hand, remember the image URL is part of your application, and not accesible out of the application, therefore, even if you can copy the image tag, the URL of the image can't work...


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

I think you can't initiates the browser in the "detail scene", if for that you understand an app's view. I the first place, how we knows the browser that we wanted is available? Also, how we knows if the default browser support something like "share images"?

Maybe you can stufy the usage of the "com.lampa.startapp" plugin:

https://github.com/lampaa/com.lampa.startapp

They allow us to launch "intents". I try it without success, but maybe I am not doing everyting well. On the other hand, I am not sure if we can "share" an URL of our application... then probably you need to provide "served side" images...

About the Clipboard, App Builder includes the Clipboard sample, so you can take a look. In fact we only need to call to theh CopyToClipboard action.


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

As an HTML5 app on a phone it may works because your application is running inside a browser: it's the browser who offer you a share dialog for the image, as well they does if you tab a link or certain other elements. However, when your application is running in Apache Cordova, there is any browser, but the application is running in a "WebView", based in Chrome, but not the Chrome browser itself.

I am try to help you already Mike. I try with an HTML control and an Image control. I try by put the image in an IFrame control. I try with one of the above linked plugins (lamp), I try with the "OpenWindow" action by using the Browser plugin: and unfortunatelly any of these approachs works as you expected.

Maybe a possible way is to use the image URL along the Clipboard control. But I am not sure if this approach can work, in the first place, and if can satisfy you, in the second place, because in this case we are not sharing an image "in a binary way", but just an image URL.


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

After take a look at your application I understand what you wanted. Then I prepare a little application who uses an Image control and also an HTML control in order to shown the same image. I try with the HTML control in both ways: without an "A" tag and with an "A" tag for the image. Certainly the things does not happend than you expected, Mike, but, I think it's very reasonable.

We can react to image "clicks" (or "taps") in both cases: the Image control and the HTML control. But we can't expect something like a "share" dialog to appear when we tap along an image or other resources in an application, not only your application, but any application. These applications images cannot be "shared" by default.

About your proposed code and documentation, you can't simply use Java code in App Builder, except if you are capable to create a plugin for Apache Cordova: then you can use the Java code of the plugin from App Builder using the plugin's Javascript API. Certainly this is probably the way for a solution: uses a Cordova plugin.

But I am not sure if a plugin like that is already created, or maybe we can use someone like this or this other.


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

It's very difficult to help without more information. Can you please provide me a little application in which I can take a look?


DecSoft (In thread: Which Android .bat file do I choose to run?)

Hello Mike,

Certainly we have three differents BAT files, here is their purpose:

1º "Debug": Allow us to get an APK file for our application ready to be debugged in a device or emulator.

2º "Run": If we have attached our device to our computer, this BAT launch the application directly in that device.

3º "Release": This BAT creates an aligned APK file of our application ready to be signed and then deployed into the store.

How to sign our APK files to be published in the Google Play Store? Take look at this forum's thread.


DecSoft (In thread: agenda sample)

Hello,

We can deal with text files if our application is build firstly with Apache Cordova. You can use the StrSerialize action to get an string form an Array or Object variables, then you can save that string into a text file using the Files* related actions of the Files Cordova's plugin, included "out of the box" in App Builder.

Of course you can also read such text file and, with the help of the StrUnserialize action, get back your Array or Object variables.

On the other hand, if you are talking about a web application, not a Cordova builded application, then we can't deal with files, because browser's vendors does not allow us to do that for security reasons. In this last case you need to upload the text (serialized) into your app server, using the HttpClient control, for example.


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello Stef,

Update your App Builder copy. Now the program uses the app's file name instead of the app's name when prepare the "compile" directory. If you already updated your App Builder today, you may need to download it directly from their website:

https://www.decsoftutils.com/download/appbuilder


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello Stef,

My first step is to reply, why we need to set a "?" as our app name? But why not? It's a wrong assumption in App Builder to disallow names like "What happend?" or something like that, and I am working right now to fix it Stef.


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello Stef,

You have reason. In fact, one thing is the app's name, and other thing is the app's project file name. We can set an app's name like "What happend?", and save the app in a file like "MyApp.ab".

However, currently App Builder uses the app's name to conform the "compiled" directory, and this can certainly causes problems with some app's names, like if the names contains something like the "?" char.

The next App Builder release probably conform the "compiled" directory name using the app's file path name, instead the app's name. In this way we shot two birds with one bullet, because Windows does not allow us to save an app's file name which contains non valid characters for file names.

Thanks for the suggestion Stef.


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello,

Strange, now it seems to work again for some reason...

Thanks David!

Maybe the reason is I work for that! :D


DecSoft (In thread: How do I make a image control not stretch and stay left justified)

Hello Mike,

If you set the with or height of an Image control (using the "SetStyle" action or certain CSS code) then such Image control does not scale anymore along the application. We can act here in several ways, for example, we can take care about the "Resize" app's event. Or may just use certain CSS to deal with the image. For example, in this forum's thread we can view a bit of CSS code to maintain certain Image control centered and aligned in the screen.

About "breakpoints", I am not sure what you means, since we are not talking about debugging here. But maybe you are talking about something like the CSS Media Queries? Certainly there is another possible way to control our application for various screen sizes. CSS Media Queries are powerful and offer lot of posibilities, just take a look at the bellow Mozilla MDN article:

https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries

P.S. Take also a look at the Images sample that is included with the App Builder installation.


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello Stef,

Humm... of course the build and runs must continue working... the only difference can be the "_Compiled" directory: if you change the app's name, then the "_Compiled" directory reflect such change.


DecSoft (In thread: Prepare the application's BAT files for Apache Cordova)

Hello Stef,

Don't worry! Take calm and follow the tutorial step by step. Sure that you finally be ready with this.

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.

This website uses cookies only to store your preferences.

Ok! Hide this note More information