Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Should an exit on app be used as now have probs?

Author
Message
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 18th May 2015 14:15 Edited at: 18th May 2015 14:16
Hi,
I am in the final stages of releasing my first complete app, I have been using the END command in my menu to exit the app with no problems, that is until I included an admob banner. The ad works fine, but causes a msg "app not responding" on exit. All is fine again when leaving admob out.

Is there really a need for exit, and any ideas on what's causing it?


Thanks

AGK v2.11 Tier 1
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 18th May 2015 14:25
It depends on the platform. On Android and iOS apps should not exit, but wait to be removed by the operating system. On Windows, they should exit.

<<It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.>> Dijkstra
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th May 2015 15:37
there is a example uses a delay for this, maybe because this problem.
if the user click end he expect the task is closed.

DeleteAdvert()
Sleep(2000)
End

AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 18th May 2015 16:14 Edited at: 18th May 2015 16:14
Hi Markus,
I had already tried the delay with the deleteadvert().
Thanks

AGK v2.11 Tier 1
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th May 2015 17:13
seems it is a "bug" in agk.
are u using latest agk version 2.0.14?
also it should work without a sleep(...)

AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 18th May 2015 17:38
Hi Markus,

Tried v2.0.14 about an hour ago, same problem.

Thanks

AGK v2.11 Tier 1
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th May 2015 18:40
On Android and iOS I would say an exit button is not necessary, and some devices have been known to assume that the app suddenly disappearing means it crashed whilst others return to the home screen without any error messages. I can't replicate the crash on my device, but does including a few swap commands before ending make any difference? like so
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 18th May 2015 18:44
Hi Paul,
I will try that tomorrow, and report back.
Thanks

AGK v2.11 + v2.0.14 Tier 1
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th May 2015 18:48 Edited at: 18th May 2015 18:52
i can agree that the app end uncommon with using of adverts.
for a 1/10 second i got unknown instruction at 0 or something.
me have android 5.0.2, bad os version for moto g.

(the people do not want that a app stay alive after exit or close,
also if it is just in pause mode.)

i using this example, waiting until banner appear then click for end.
export for 2.3.1 + internet permissions


AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th May 2015 19:03
Quote: "i using this example, waiting until banner appear then click for end.
export for 2.3.1 + internet permissions"


I tested your example as an exported APK on a Nexus 7 running 4.4.4 and a Nexus 5 running 5.1, both exited without a crash

Quote: "for a 1/10 second i got unknown instruction at 0 or something."


However that suggests there may be something else going on here, if you can replicate that error does it also happen when you broadcast to an exported player, and how about the player on the Google Play store?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 18th May 2015 20:53
the same .apk at my lenovo tablet with 4.4.2 works fine.
the agk player comes with steam (build 17 Apr 2015) stays open after ending this example and waiting next connection.

AGK 108 (B)19 + AppGameKit V2 Beta .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 19th May 2015 12:01
Hi,
Same problem using the basic code example on my moto g, but borrowed a slow allwinner a13 tablet (firmware v4.04)and your code and my app ends with no problems, so think it's a phone problem. I know Markus also has an moto g but I seem to have had problems with mine including sluggish/poor screen response with some downloaded games, but not all. This is noted on sites as a problem, so may be this is another issue with this phone, may be certain batch runs as not all moto g's have these quirks. Im running firmware v5.02.
Thanks everyone

AGK v2.11 + v2.0.14 Tier 1
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 19th May 2015 16:32
Hi,
fruitNloot app uploaded to googleplay, I will post it on showcase.
Thanks

AGK v2.11 + v2.0.14 Tier 1
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 19th May 2015 17:22 Edited at: 19th May 2015 17:23
From experience, every Android app I have ever used ([EDIT] - Apart from a handful of AppGameKit developed apps) will return the user to the home screen if the back button is pressed from the 'root' of the application (i.e. main menu, or title screen), or at least give the user the option to exit with a dialogue. Whether the app is closed, or just sent into the background is another matter, but either way, the user experience is that when they press that back button, they can get back to the home screen.

If it is frowned upon to close an application, then is there a Tier 1 AGK2 command to send your app into pause mode (as if you had pressed the home button) so that we can programmatically get to the home screen with the back button?

Thanks!

V2 T1 (Mostly)
Uzmadesign
Pumpkin Software
AGK Developer
11
Years of Service
User Offline
Joined: 20th Jun 2013
Location: uk
Posted: 19th May 2015 17:42
Hi,
The back button in my app will take you to the menu screen, from there you have options for configuration of the app, and also an option to exit.

AGK v2.11 + v2.0.14 Tier 1
Shock
AGK Developer
22
Years of Service
User Offline
Joined: 24th Oct 2002
Location: United Kingdom
Posted: 20th May 2015 01:25
Yeah, I agree with CJB most of the android apps I've ever used are returned to the phone's home screen if you press the back button on the app's main menu, the app isn't closed but is minimised, including all the default apps like Gmail, settings, messaging etc.

In my agk apps I have been ending/closing the app when the back button is pressed on the main menu, however on certain devices for some reason the app takes a few seconds to close, resulting in a strange user experience.

A command to "minimise" the app would be mega useful in this scenario.

Login to post a reply

Server time is: 2024-11-25 21:49:44
Your offset time is: 2024-11-25 21:49:44