|
FORUMS PROFESSIONNELS WINDEV, WEBDEV et WINDEV Mobile |
| | | | | |
Beginner questions: Mobile Current Version |
Débuté par Gerd, 14 oct. 2014 11:04 - 10 réponses |
| |
| | | |
|
| |
Posté le 14 octobre 2014 - 11:04 |
Hi,
i am a newbe with windev-mobile and try (before i buy) the actual express version. So i try to transfer a old application (written in basic4ppc) to WINDEF for a Android-Phone-Device and naturally the beginner has some problems, here at first some questions:
- is it possible to use the device-picture-camera to read a EAN-Code - why it is not possible to select the table component in the creation-tab (disabled) - how can i read the device infos (for example the phone-number)
thanks for any detailed answer Gerd |
| |
| |
| | | |
|
| | |
| |
Posté le 14 octobre 2014 - 12:22 |
Hi Gerd - is it possible to use the device-picture-camera to read a EAN-Code
To take a picture of it, yes, to actually READ the code, not directly/simply. You will either have to use an external OCR library, or code one yourself by analyzing the image (one of my customer did it tat way)
- why it is not possible to select the table component in the creation-tab (disabled)
Because tables are not supported by Android, so the table control is disabled when you select android as a target (they are supported in windows mobile, so the control exists in windev mobile)
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on my web site!!! WXShowroom.com: Show your projects! More information on http://www.fabriceharari.com |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 657 messages Popularité : +175 (223 votes) |
|
Posté le 14 octobre 2014 - 14:29 |
Dear Gerd
The phone number type my personal number +55 41 9949 1800 has been agreed by both Apple and standards as the Google (Android) that the number could not be read commands to query but told in the records of applications. It is possible but get the IMEI number, brand and model and other data.
The express version is limited to many things, but I use the very year the Clarion and the Windev and recommend the tools of PCSoft. The Windev is Excellent applications for windows, linux and mac. The Webdev is a matter of evolution in web development intuititivo and very fast development. As for the Mobile Windev the product began to gain great strength starting from version 16 to version 18:19 are very good. I'm always sending Java / Android and Object-C code for PCSoft encapsulate the tool as simplified native function.
The tool has a high degree simplicity and organization. As the bar code represents an example of inventory that has to put the tool becomes simple ridiculous. No wonder that the tool is used by Porsche, Honda, John Deear, Shell, Carrefur, Quicksilver, Playmobil and many other companies across Europe(http://www.pcsoft.fr/pcsoft/temoignages.html).
Of course there are many advantages as there are some disadvantages which are surmountable and with the help of my community and can go through adjustments to technical support and suggestions for improving the tool. Today this magnificent interface, more and more examples lack integration with other technologies that are being developed, one who fought hard to make the technology iBeacon / Estimote was not supported by Windev Mobile, but the team PCSoft hear my cry and volunteered to develop and provide an example for those who have interest in LST magazine.
Here in the forum and in groups of Skype you have the toal support in developing their solutions. The PCSoft has the LST (http://www.pcsoft.fr/lst/sommaire.htm) magazine with examples and a comprehensive material for research as well as an online manual that is always updated. Mr. Fabrice ever had contact with who is world reference ie you have support for sure be making the right decision in moving to Windev platform.
So help with the cost of hours of engineers and improving the tool. Me and Professor Neri (http://www.informaticon.com.br) developed 125 video lessons on Windev to the public in Brazil, 3 DVDs with video lessons and the source codes put the sale on our website and also can be requested by PCSoft, of these 125 video lessons despite being in Portuguese'll see how productive is the tool to see 50% of these video lessons let them free on youtube the link below if interested in having any contact with me, we are preparing more material on the subject and help with the purchase motivates us to do more of this stuff to the community.
Example Code device info
import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.*; import android.os.Bundle; import android.telephony.TelephonyManager; import android.util.Log; import android.widget.Toast; import android.provider.Settings.Secure;
public static String getDeviceName() {
String manufacturer = android.os.Build.MANUFACTURER; String model = android.os.Build.MODEL; String brand = android.os.Build.BRAND; String product = android.os.Build.PRODUCT; String board = android.os.Build.BOARD; String bootloader = android.os.Build.BOOTLOADER; String cpu_abi = android.os.Build.CPU_ABI; String cpu_abi2 = android.os.Build.CPU_ABI2; String device = android.os.Build.DEVICE; String display = android.os.Build.DISPLAY; String fingerprint = android.os.Build.FINGERPRINT; String hardware = android.os.Build.HARDWARE; String host = android.os.Build.HOST; String id = android.os.Build.ID; String radio = android.os.Build.RADIO; String serial = android.os.Build.SERIAL; String tags = android.os.Build.TAGS; String type = android.os.Build.TYPE; String user = android.os.Build.USER; if (model.startsWith(manufacturer)) { return (model); } else { String MarcaModeloCelular = "manufacturer: " + (manufacturer) + "; model: " + (model) + "; brand: " + (brand) + "; product: " + (product) + "; board:" + (board) + "; bootloader: " + (bootloader) + "; cpu_abi: " + (cpu_abi) + "; cpu_abi2: " + (cpu_abi2) + "; device: " + (device) + "; display: " + (display) + "; fingerprint: " + (fingerprint) + "; hardware: " + (hardware) + "; host: " + (host) + "; id: " + (id) + "; radio: " + (radio) + "; serial: " + (serial) + "; tags: " + (tags) + "; type: " + (type) + "; user: " + (user); MarcaModeloCelular = MarcaModeloCelular.toUpperCase(); return MarcaModeloCelular; } } |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 657 messages Popularité : +175 (223 votes) |
|
Posté le 14 octobre 2014 - 14:30 |
GET IMEI ======
IF numImei = "" AND InSimulatorMode() = False THEN numImei = SysSerialNum() END IF numImei = "" AND InSimulatorMode() = False THEN numImei = SysIMEI("Cellular Line") END IF numImei = "" AND InSimulatorMode() = False THEN numImei = SysIMEI("Tablet") END |
| |
| |
| | | |
|
| | |
| |
Posté le 15 octobre 2014 - 13:29 |
Hello,
thanks for the answers !
I have try the Example Code device info
import android.app.Activity; ..
but i get a syntax error on .. android... ???
Is there a tutorial or users manual for wlanguage for mobile available ??
kind regards Gerd |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 657 messages Popularité : +175 (223 votes) |
|
Posté le 15 octobre 2014 - 14:08 |
Dear Gerd
You create a JAVA procedure and not one Wlanguage
You do not clicked 2x in the title which has Wlanguage bar to switch to Java (click, click, rsss! )
Note that changes the color of the title bar is just above where the word has procedure
This code is not a button is a global procedure
In a window or a button or other control that you are using, the code you put the control like this:
CELL is getDeviceName string = ()
info (CELL)
----
Prezado Gerd
Voce cria uma procedure JAVA e nao uma Wlanguage
Voce nao clicou 2x na barra de titulo onde tem Wlanguage para mudar para Java
Note que muda a cor da barra de titulo é logo acima onde tem a palavra procedure
Esse codigo nao fica num botao fica numa procedure global
Em uma janela ou em um botao ou outro controle que voce for usar, no codigo do controle voce coloca assim:
CELULAR is string = getDeviceName()
info(CELULAR) |
| |
| |
| | | |
|
| | |
| |
Posté le 15 octobre 2014 - 14:11 |
Hi Gerd
yes there is... it comes with the product.
But be aware that the code you are trying to use is NOT wlanguage. It's Java, and it's the way we have to EXTEND the wlanguage functions when there is one missing. You create a global procedure, change it's type from WL to JAVA (by clicking on WL) then type or paste your JAVA code
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on my web site!!! WXShowroom.com: Show your projects! More information on http://www.fabriceharari.com
On 10/15/2014 5:29 AM, Gerd wrote:
Hello,
thanks for the answers !
I have try the Example Code device info
import android.app.Activity; ...
but i get a syntax error on .. android... ???
Is there a tutorial or users manual for wlanguage for mobile available ??
kind regards Gerd |
| |
| |
| | | |
|
| | |
| |
Posté le 17 octobre 2014 - 12:57 |
Hello again,
ok, now i have understand to use JAVA in wlanguage ( i do not see this feature in the manual).
Now i have some other questions: - using a Looper-Control how can i position the Looper of the last record , so that i can see the last few records. I have try something without success - must come back to my first question to use the camera to read EAN-Code now somebody some tools that i can bind in or call from wlanguge to get the code for example in a file to use it in the application or - tu use a Barcodescanner connected via usb to the device
- the device info give me no possibility to get the own phone-number ist that right ? or is ther another possibility ? |
| |
| |
| | | |
|
| | |
| |
Posté le 17 octobre 2014 - 13:26 |
Hi Gerd
principle on this forum: one question = one separate thread
Here you are adding several questions to one existing thread, and nobody wil soon be able to understand who's talking about what
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
NEW: WXReplication, your open source replication system is available on my web site!!! WXShowroom.com: Show your projects! More information on http://www.fabriceharari.com
On 10/17/2014 4:57 AM, Gerd wrote:
Hello again,
ok, now i have understand to use JAVA in wlanguage ( i do not see this feature in the manual).
Now i have some other questions: - using a Looper-Control how can i position the Looper of the last record , so that i can see the last few records. I have try something without success - must come back to my first question to use the camera to read EAN-Code now somebody some tools that i can bind in or call from wlanguge to get the code for example in a file to use it in the application or - tu use a Barcodescanner connected via usb to the device
- the device info give me no possibility to get the own phone-number ist that right ? or is ther another possibility ? |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 657 messages Popularité : +175 (223 votes) |
|
Posté le 17 octobre 2014 - 14:24 |
Hi Gerd,
In short my friend you will have to contact the paid support and provide all the details of your problem to an analysis of hours of development, because what you want to do seems to be something more low level.
I already tried everything to get the number of the phone, even with java code is not possible only the IMEI number in Android. The mobile number is something that compromise the privacy of the owner of the cell.
By international rules of good conduct and Google / Android has a policy to protect the number and release other data. Already APPLE or lets you see the number of celulkar much less the IMEI. Therefore it is much more judicious nor strength can get this information. To get an idea you talked this week with a friend who is JEDAI master object-C and he was adamant that in older versions gave up, but today even the cows come home manages to pull this information from the system.
So it is not a defect of Windev are safety standards that have been set and is no longer possible to make use of them tera thatt have another technique in your software for this, a simple form to provide it if you want to give the number it fills.
As for having to know java / android / Object-C, it makes good developer is obliged to know the low-level languages that allow Windev use. The language allows to do what has not yet been implemented in the W-language to give more power to the controller when you want something more specific. All java code and object-c functions that I discover I send to PCSoft via free support via forum and to incorporate them in W-language commands contributing to continuous improvement tool.
Examples exist in the WINDEV mobile using java code yes, but in summary the Windev not use the command using R.java (R.layout.main), just create functions without calls and returns only view them on the buttons its interface.
Therefore programming life is not easy even if it is something out of the trivial normal'll have to go down that level and good tool that allows this. If you do not know who pays to know to help you. Sorry sincerity but my 25 years experience taught me that.
A great big hug and studies.
Att
Adriano Boller |
| |
| |
| | | |
|
| | |
| |
Membre enregistré 3 657 messages Popularité : +175 (223 votes) |
|
Posté le 17 octobre 2014 - 14:29 |
If you want to get the list of your contacts there commands the W - language.
OK |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|