simple app, but issues.

doogal

Member
Licensed User
Longtime User
Hi all, I'm creating an app for my wife and I'm having a few minor issues that I hope you can help me with. The app is simple. My wife likes to sew, so she asked me to create an app that would keep track of measurements, seems simple enough. Right.

Well here is the problems I am running into.
1. Something so simple is being a pain.... Clearing Labels. I usually do it by lblwhatever.text = "" but it isn't working. I'll include a screenshot of this.
2. sometimes when the app pauses it crashes and doesn't want to come back. meaning it goes to blank screen. maybe that is user error. idk

Is there a proper way of Closing an app and can someone tell me what goes in the resume section.

The app isn't finished. but I like to test as I go and these things bother me. I do hope someone can help.

Thanks so much.

2db9l41.png
 

Attachments

  • sewing.zip
    98.5 KB · Views: 230
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
First issue:
You should move the call to Layout out of the If FirstTime block. The layout should always be loaded when the activity is created.

Also remove the calls to Layout from the other modules. You are loading the same layout multiple times. This is why the label looks strange (it is a stack of labels).

After fixing this issue please post the error message you get when your application crashes.
 
Upvote 0

doogal

Member
Licensed User
Longtime User
@Erel, Moving the call to layout out of firsttime helped. Thanks. As far as the crash, I only got that once. Maybe it was my device. I don't know yet.

@klaus, Thank you for the updated program. Removing the calls and using Activity.Finish just makes it better.
 
Upvote 0
Top