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
User needs to use portrait also when he adds his taxi (3rd button on the map). If he use totally landscape, and try to write something like his plate no, keyboard covers all screen and he can not see where he write. Unfortunately it should be used both portrait and landscape.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Very interesting. When @lemonisdead and I tried, there was a message like "app is not answering" But did you try app when the system On/Off button is green. I mean when app communicates with server? You should enter IMEI and press on System On/Off button.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
You can see the photos taken by the camera, at the top of the map. You should use landscape. There is a mountain button at the top of the map. You can delete the pictures taken by yourself also there by pressing trash icon at the right of the picture taken by you. Please do not press on the trash icon on the pictures taken by others.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
After taking photo (app is not communicating with server also), app is closed and I received an error given attached.
 

Attachments

  • 2016-06-15-18-34-38.jpg
    2016-06-15-18-34-38.jpg
    117 KB · Views: 297
Upvote 0

klaus

Expert
Licensed User
Longtime User
Yes, I confirm that taking a picture in Debug works but the app crashes in release mode.
In my previous post the System On/Off button was OFF.
The error message says it is not finding the JobDone routine.
I can't help I have no experience in this field.
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Camera problem is solved. It is my fault. As you said JobDone sub is missing for PhotoUpload. It is ok now. Can you please check views? All views ok and texts are readable? Zip file and apk is given attached. And where do you read error message in release mode?
 

Attachments

  • TaksimDriver22B4A.zip
    27.4 KB · Views: 266
  • TaksimDriver.apk
    357.8 KB · Views: 251
Upvote 0

Baris Karadeniz

Active Member
Licensed User
@lemonisdead thanks very much. At the end views and camera are ok. I will just test why black screen comes after some time. If I can see error logs at release mode like @klaus saw, I can see the reason. where I can see error messages in release mode?
 
Upvote 0

Baris Karadeniz

Active Member
Licensed User
@lemonisdead ; The same php works fine with another app. So I don't want to do any change at the server. If there is something can be done at the app, I prefer this.

I have another app for customers (TAKSİ'M Internet Taxi). I used same webview codes as in the TAKSİ'M Driver. Crash never happened. I didn't see until now. So I don't know black screen will be seen when I try to open app after crash.

TAKSİ'M Driver is killed or crashed? I think it is a crash because when there is a black screen, I go to the application manager and I can press on "Force stop". If app is killed by android, i could not press on the Force stop. Because it is already stopped by the android. Am I right?

If the above statements are ok, why app is crashed? Can you see the error logs at the release mode? @klaus said error log says there is a problem at the JobDone routine and I corrected it. Where can I see error logs during release mode?

TAKSİ'M Internet Taxi zip file and apk ara given attached.
 

Attachments

  • Taksim.apk
    132.5 KB · Views: 260
  • Taksim8B4A.zip
    15.6 KB · Views: 249
Upvote 0

Baris Karadeniz

Active Member
Licensed User
Crash (black screen) can be caused of timer at the code below at the startservice? After some time, there may be a problem at the timer?

B4X:
StartServiceAt("", DateTime.Now + 5 * DateTime.TicksPerSecond, True)
 
Upvote 0
Top