|
| Iniciado por guest, 20,abr. 2015 17:41 - 6 respuestas |
| |
| | | |
|
| |
| Publicado el 20,abril 2015 - 17:41 |
Hi,
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) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
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 !!
Thanks
Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 10:55 |
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?
Thanks
Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 13:30 |
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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 13:43 |
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.
Thanks
Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 19:17 |
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?
Thanks Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,abril 2015 - 10:38 |
Hi. You doesn't need decompile the code. WM20 put the source code in the Android\Compile folder.
Rubén |
| |
| |
| | | |
|
| | |
| |
| Publicado el 22,abril 2015 - 11:29 |
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 !!
Thanks
Piotr |
| |
| |
| | | |
|
| | | | |
| | |
|