Author Topic: Possibility to abort internet related actions  (Read 1449 times)

Offline big

  • More than Newbie
  • *
  • Posts: 36
  • Thanked: 1 times
    • View Profile
Possibility to abort internet related actions
« on: November 22, 2013, 21:43:49 »
Hi,

actually there is no way to stop actions, that try to lookup network resources, like the geocaching page. The progress bar is visible and Locus is unusable until it succeeds or it times out. It would be a big help if these operations would be aboard-able, like it is possible when the navigation tries to lookup the GPS signal. Hitting on "wait..." button terminates the action.

Thanks!

Cheers, Lutz.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11506
  • Thanked: 334 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Possibility to abort internet related actions
« Reply #1 on: November 23, 2013, 11:15:33 »
Hi,
  some time ago, there were no ability to cancel any tasks. Anyway I started to add "cancel" buttons to some loading dialogs. because I need to test and check every single loading dialog, it just works on a few of them. I'll look at it and give "cancel" ability to more places, promise :)
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline berkley

  • Premium
  • Master of Locus
  • ****
  • Posts: 900
    • View Profile
  • Device: 1+1, N7
Re: Possibility to abort internet related actions
« Reply #2 on: November 23, 2013, 14:05:12 »
As most of "loading dialogs" are Async Tasks: http://developer.android.com/reference/android/os/AsyncTask.html
Why don't you send them to status bar? Maybe only for long operations...

Just this morning i've exported around 200 tracks to dropbox on poor internet connection and it took around an hour, where I couldn't use my phone...
Search before posting!!!
XDA Orbit, HTC Touch HD, SGS1, SGS2, Nexus S, S4 Active, OnePlus One, Innos D6000
OnePlus X
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11506
  • Thanked: 334 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Possibility to abort internet related actions
« Reply #3 on: November 23, 2013, 14:21:57 »
hmm good idea. Little hard to do in case of long running operations, but thanks, I'll think about it
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline berkley

  • Premium
  • Master of Locus
  • ****
  • Posts: 900
    • View Profile
  • Device: 1+1, N7
Re: Possibility to abort internet related actions
« Reply #4 on: November 23, 2013, 14:27:03 »
You are already calculating the progress in percent.
If (for example) 2% take longer than 10 seconds, show an additional button to hide (and/or cancel) the task.
Search before posting!!!
XDA Orbit, HTC Touch HD, SGS1, SGS2, Nexus S, S4 Active, OnePlus One, Innos D6000
OnePlus X