Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 2 Monaten
Letzter Beitrag:
vor 3 Jahren, 1 Monat
Beteiligte Autoren:
Piotr J, Ruben Sanchez Peña, Fabrice Harari

Layout files

Startbeitrag von Piotr J am 20.04.2015 15:41


Does anyone know how I can use a Layout file in WM19 or WM20 ?

I get an error when compiling this:

protected void onCreate(Bundle savedInstanceState) {

It says it doesn't know where R.layout.activity_main is. I've tried adding the activity_main.xml file into the 'integrated files' section when compiling , choosing the type of 'layout' but it still doesn't seem to make a difference.

Any help really appreciated !!




Has no-one ever used the Layout files in WinDev? Or does anyone know where some help could be found on the subject, in regard to using them with WinDev?



von Piotr J - am 21.04.2015 08:55
Hi Piotr,

I have never used such a file, and I have never heard on any forum of anybody who has...
Windev mobile is supposed to insulate you from that level of plumbing, so using layout files is exactly the type of things anybody using windev mobile would try to avoid, except if they have a VERY good reason

Now, if you want to tell us what you are trying to achieve, there may be a way already available without using layout files

Best regards

von Fabrice Harari - am 21.04.2015 11:30
Hi Fabrice,

Believe me, if I could think of a way NOT to use them, I would !

The problem I have, is that using the standard HTML Control on WM19 or WM20, if the user clicks on a link, be it email or a PDF link that is present in the web page, nothing happens. The device default email client or PDF reader is not loaded. I've reported this to PCSoft who have confirmed it is a problem and a developer has been assigned to it.

My problem is, I have a client who wants the application working NOW, and seeing as I have no idea how long it will take for PCSoft to issue the patch, am trying to find a work around.

I've tried using BrowserRunApp command, which works but shows the Address Bar, which the customer doesn't like. So, I thought I'd try using a Java WebView, which would show the browser but without the address bar. The trouble is, I need to use a Layout file in order for this to work, hence my original question.



von Piotr J - am 21.04.2015 11:43
I don't suppose anyone has ever tried decompiling the apk they built with WM, so they could then bring it into Eclipse and alter the code?


von Piotr J - am 21.04.2015 17:17
Hi. You doesn't need decompile the code. WM20 put the source code in the Android\Compile folder.


von Ruben Sanchez Peña - am 22.04.2015 08:38
Hi Ruben,

It does, but it's just one huge block of code. Really I'll need to have the res , assets, bin, libs folders etc, etc..... to make it meaningful. I want it so I can change the call to the HTML control and replace it with a Web View. Really frustrating that the HTML Control can't handle the mailto and PDF links !!



von Piotr J - am 22.04.2015 09:29
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.