Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
17
Erster Beitrag:
vor 3 Jahren, 4 Monaten
Letzter Beitrag:
vor 3 Jahren, 4 Monaten
Beteiligte Autoren:
Rahul vijay, Arie, Rahul Vijay, iso

looper is not working in android application

Startbeitrag von Rahul vijay am 05.02.2015 06:51

sir
I Have Create the Android Application The looper did Not work in this Application what kind of function are used in file select in pocket application in this table are used so fselect() function select a file in android application what function are used in looper file select when i have no create database the application build on windev Mobile 17

Antworten:

Rahul,

the fSelect() funtion is not supported in WM17, but WM17 comes with an example called 'Android Explorer'

This example also uses a "looper". It has no database but is filled by code.
Maybe that will give you some hints and tips about how the handle a looper.

von Arie - am 05.02.2015 07:32
sir
i have consider the example android explore but the run application the content of the looper does not show proper i have run the test on the simulation mode the content of the not show but i have run the android explore example the content of the looper is show proper manner

von Rahul vijay - am 05.02.2015 07:38
Rahul,

do you see NO data or WRONG data??

When you bind the looper to a database you have to use LooperDisplay() to fetch the data .

Can you try to use fill the looper by programming (content tab in the description)
Put an extra test-buttonon your window and put the following code in the click-event. (I'm using tbl_customers as an example)

LooperDeleteAll(your_looper1)
FOR EACH tbl_customers
LooperAddLine(your_looper1,tbl_customers.name, tbl_customers.city)
END

von Arie - am 05.02.2015 08:36
sir
i have define this code you write in message
LooperDeleteAll(loop_Explore)
FOR EACH Pass123
LooperAddLine(loop_Explore,1,pass123.filesize, Pass123.FileType)
END
Loop_Explore is a looper and pass123 is a data file but this code written then run application

this error Generated


rror at line 2 of Click BTN_Cancel process.
The HyperFileSQL security mechanism was triggered while browsing the 'Pass123' file on the '' item.
native SQLite access error.
Error Number = 30

Unable to open or read file.

file not found.

**********************************************

----- Technical Information -----

WL call:
Process of 'Click BTN_Cancel' (WIN_File.BTN_Cancel), line 2, thread 0

What happened?
The HyperFileSQL security mechanism was triggered while browsing the 'Pass123' file on the '' item.
native SQLite access error.
Error Number = 30

Unable to open or read file.

file not found.

Error code: 73001
Level: fatal error (EL_FATAL)
WD55 error code: 3001

Dump of the error of 'WD170HF.DLL' module (17.0.185.0).
Identifier of detailed information (.err): 72801
Debugging information:
IEWDSQLITE=8.3
Module=
Version=
Provider: WinDevSQLite

von Rahul Vijay - am 05.02.2015 09:08
Rahul,

Unable to open or read file

this is the same error you mentioned in previous posts. Apparently you were not able to solve that yet.

So try to understand our answers and tips in those other posts.

Or start with one of the examples including a looper AND a database, like "Android notes"
Then strip this one down to a bare minimum and include your own stuff from that point.

von Arie - am 05.02.2015 09:47
sir
you explain the example in last Post "Android Notes" then run this example that show same error
The 'LOOP_Notes' control cannot be initialized, the following HyperFileSQL error occurred:
=============================
native SQLite access error.
Error Number = 30

Unable to open or read file.

file not found.
=============================

Error code: 10085
Level: fatal error (EL_FATAL)
WD55 error code: 3001

Dump of the error of 'wpobj.dll' module (17.0.542.33).
Identifier of detailed information (.err): 10085
Debugging information:
IEWDSQLITE=8.3
Module=
Version=
Provider: WinDevSQLite
Data source: Android Notes.db
Database: Android Notes.db
Connection time-out: 30
Command time-out: 30
Unicode supported: 1
Page code of WL: 1252
Page code of the connection: UTF-8
Additional Information:
EIT_LOGICALTABLENAME :
EIT_NATIVECODE :
EIT_INFOCLIENT :

von Rahul Vijay - am 05.02.2015 10:27
Rahul, you are right. Same error here,

I added this line to the project init code (also the init-section of Win_Main would work) and then this example runs fine.
HCreationIfNotFound("*")

This is exactly what we mentioned before in our other answers.
The database has to be created first, before you can access it.

von Arie - am 05.02.2015 13:55
sir
i have run this "Android Notes" example again in Windev mobile 17 if you say That You edit the code but sir i have run this application again the same error generated in "WIN
Notes" is the first window of project but his same error Generated
he 'LOOP_Notes' control cannot be initialized, the following HyperFileSQL error occurred:
=============================
native SQLite access error.
Error Number = 30

Unable to open or read file.

file not found.
=============================

**********************************************

----- Technical Information -----

What happened?
The 'LOOP_Notes' control cannot be initialized, the following HyperFileSQL error occurred:
=============================
native SQLite access error.
Error Number = 30

Unable to open or read file.

file not found.
=============================

Error code: 10085
Level: fatal error (EL_FATAL)
WD55 error code: 3001

Dump of the error of 'wpobj.dll' module (17.0.542.33).
Identifier of detailed information (.err): 10085
Debugging information:
IEWDSQLITE=8.3
Module=
Version=
Provider: WinDevSQLite
Data source: Android Notes.db
Database: Android Notes.db
Connection time-out: 30
Command time-out: 30
Unicode supported: 1
Page code of WL: 1252
Page code of the connection: UTF-8
Additional Information:
EIT_LOGICALTABLENAME :
EIT_NATIVECODE :
EIT_INFOCLIENT :

von Rahul vijay - am 06.02.2015 06:01
sir
please give me answer for this solution for eg

von Rahul vijay - am 07.02.2015 06:40
Can you view the datafile with wdmap also is the datafile called notes or android notes?

von iso - am 07.02.2015 09:43
sir
please give me solution for the previous example

von Rahul vijay - am 07.02.2015 11:48
Rahul,

are you testing in the simulator or on a tablet/phone?

von Arie - am 07.02.2015 17:47
sir
i am tested in a project in the simulator mode

von Rahul vijay - am 10.02.2015 06:32
Rahul,

the application creates the database when starting up.
Do you see the database under ...\WinDev Mobile 19\Examples\Android\Android Notes\Exe\Android Notes.db ??
And can you have a look into this database (with a tool like sqlite viewer which you can find using Google). Are your tables in this database?

von Arie - am 10.02.2015 08:43
sir
i have used windev mobile 17 platform

von Rahul vijay - am 10.02.2015 11:54
Okay,
then it should be in ...\WinDev Mobile 17\Examples\Android\Android Notes\Exe\Android Notes.db

von Arie - am 10.02.2015 12:50
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.