Android Question After running about 3 hours black screen occurs

Baris Karadeniz

Active Member
Licensed User
When my app runs at the background, about 3 hours later, if I want to open it black screen comes into the front of the screen. What can be the problem?
 

Baris Karadeniz

Active Member
Licensed User
I wrote wrong at the beginning of #29. It should be "If you are at the camera screen ......"

Attached the new crash pictures. It is because of camera I think.
 

Attachments

  • AndroidCrash2.1.png
    AndroidCrash2.1.png
    81.1 KB · Views: 304
  • AndroidCrash2.2.png
    AndroidCrash2.2.png
    114.4 KB · Views: 326
Upvote 0

Baris Karadeniz

Active Member
Licensed User
In the case written #1, system doesn't send crash log also. I can't see the log at the developer console. It happened 3 times, but there is no log at the developers console. There are only your crash logs. Why my crash logs are not there? What is your opinion?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Why do you apologize? Please, thank you very much for your help and time.

I say, there are only 2 logs coming from you. But black screen happened 3 times (about 3 hours later when the app is at the background) and there is not any log. :) It is interesting. When there is a black screen, I can only pause the app. When I press on the app icon, black screen comes again so I have to do "force stop" and press on app icon again to open app.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Yes, my app uses OkHttp but not 3 seconds. It is 5 seconds and it works at the background too. It doesn't wait to be at the foreground to send messages. I didn't understand why messages are full?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Sorry, it doesn't stop. Communication with server stops. And when communications stops if I press on the app icon, black screen comes. I can't do anything. I go to Application Manager and press on Force Stop. Then when I press on the app icon, app opens but all commands are lost.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
May be android kills app and when I try to open it, app can not know where it starts. I have a StartService but I use it for gps values and Okhttp. May be I need to arrange ServiceStart to start app totally from it?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Photo is ok? I really don't understand why it happens. Texts on the label and buttons don't behave as I did in AutoScaleRate at some screen types. @klaus replied my problem. I did as he said but still there is a problem at some screen types.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Yes camera crashes and app is closed. When try to open app after crash, black screen comes. May be other situation (after 3 hours) is also related with camera. I will look at it.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
I changed the texts again as @klaus said me. You can download new version 1.4 from Google Play. I think all texts are ok now.

About crashing, Erel warned me about one solution given below;

As I previously wrote, I recommend you to avoid using the solution from this thread.
It breaks the standard program flow. It requires better knowledge of B4A and Android.


https://www.b4x.com/android/forum/threads/persist-webview-through-orientation-change.37511/page-2

And I used this solution. Because I need orientation change at the webview. This solution protects log in information. Program may be stopped because of this solution. Is there any other solution for orientation change at the webview to protect log in information?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
1) I need to use landscape orientation for the map, camera and user manual. I can't use only with portrait. There is not any other solution?
2) Language buttons menu is very interesting. @klaus checked and it is ok also with my phone. Did you install new version onto the old version or did you remove old version before installing new version?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
1) If I use landscape orientation as a default, I think it will not be comfortable for users and some views need scroll view in this case (Panel Main, Status, Language ..). How can I rotate the screen by code? Because users can use portrait and landscape. It is their wish. I think it is not good to force them to use landscape.

2) Can you please remove the installed version and install directly again from Google Play as a new? Sorry, I am getting your time.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
There is a Log out button at the top right corner at the map. You can log in to the map and see. Driver user name: [email protected], password: 123456. User has to use landscape to log out. I can't change its place because it is a web site. And user may want to use map landscape when he wants.

I am surprised with Language panel. I will check.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I tested the program on my tablet.
I got the same screen for the Language selection as lemonisdead.
To solve it, set the Elevation property to 2 or more in the Designer.
Another minor problem I saw in the Staus screen.
The last word is not fully shown. I suggest you to set AutoScalRate(0.9), this shows the Status screen OK.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Two other suggestions.
1. Add a Click event for PanelLanguage to hide it.
In the current version if you click somewhere on PanelLanguage the button below is activated.

2. In the Status screen I would use two font colors.
One for the titles and another one for the data.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
1) I did AutoScaleRate to 0.9 and corrected Language Panel. I think texts are ok now.

2) Camera works good in Debug mode. There is no error. But in Release mode there is an error. What can be the reason?

3) Zip file and apk is given attached. May be it is better send to you before uploading to Google Play.

4) You can write 111114444477777 as an IMEI number to test totally. You have also user name and password.

5) @lemonisdead did you see log out button? That is mandatory reason I need to use also landscape.
 

Attachments

  • TaksimDriver21B4A.zip
    27.3 KB · Views: 262
  • TaksimDriver.apk
    357.8 KB · Views: 223
Upvote 0
Top