Apk Text Edit fails to get text

80 views
Skip to first unread message

Brad Yoch

unread,
Aug 30, 2018, 3:52:03 AM8/30/18
to DroidScript
While using in droidscript the text edit gets my text (id=edtb) but building the apk it fails to get the same text? Would some please help me.
Bingo.spk

BareK

unread,
Aug 30, 2018, 9:06:20 AM8/30/18
to DroidScript
Your app is big, you'll have to provide more infos if you want quick help.

Can you tell us:
1. the line number of your error.
2. the version of DS you used.
3. the version of APK builder you used.

Brad Yoch

unread,
Sep 1, 2018, 4:15:27 PM9/1/18
to DroidScript
1. the line number of your error.
Line = 548

2. the version of DS you used.
Version = 1.61

3. the version of APK builder you used.
Apk = 1.59

It is not exactly an error.
It just fails to get the text from my Load /Save Text.
Like I said it woeks in DroidScript but when I build it nothing comes up
Thank you for any help.

Steve Garman

unread,
Sep 1, 2018, 4:32:12 PM9/1/18
to DroidScript
Your apk builder and your DroidScript need to be the same.

1.61 is a beta that was out of date before the beginning of this year.

I suggest you update to the current release version from Google Play which is 1.68.

You should then reinstall the APK builder plugin, which should also be version 1.68

Hopefully you will be able to build more stable apks with matching versions.

BareK

unread,
Sep 2, 2018, 4:03:30 PM9/2/18
to DroidScript
Line 548 seems to be:
edtb.SetText( app.LoadText( item )  );

So you try to put in your TextEdit the text value saved with the key 'item' (which represent the element of the list that you clicked).
If you want to load something, it have to be saved before.

I tried adding text in the text edit, then saving it clicking on the button below (in an apk).
Then closed the app and re-opened it.
The text loaded well.

I presume that you saved things with previous code while testing, that's why it worked in the IDE.
But the newly installed APK doesn't have any text saved yet, so it can't load it.

I think you have to rethink your app ;)

Brad Yoch

unread,
Sep 3, 2018, 10:48:47 PM9/3/18
to DroidScript
It should have loaded something, which is conected to the card but now load/save text doesn't work.

So thank you everyone who said something.

I will have to get my premium membership back for writing files.

I appreciate your time.

I guess I'll have to use write and read file.

Brad Yoch

unread,
Sep 3, 2018, 10:56:59 PM9/3/18
to DroidScript
Card text on main screen is set for on touch event and brings up a dialog for employees bingo card at my work.

BareK

unread,
Sep 4, 2018, 2:56:07 AM9/4/18
to DroidScript
LoadText and SaveText are not premium features, neither WriteFile or ReadFile.

You should be able to achieve what you want with regular DroidScript.

Dis you try to reproduce the steps I did in your apk?
It demonstrates that LoadText and ReadText works fine, but not as you expect.

It seems to be a problem in the logic of the app rather than a bug.

Brad Yoch

unread,
Sep 4, 2018, 11:02:53 PM9/4/18
to DroidScript
Sorry, right now I am using my employer's Wifi(bad internet connection)
Tried what you said and it worked Thank you for reminding me I might have to do this.
Reply all
Reply to author
Forward
0 new messages