Coder Social home page Coder Social logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
i have the same problem

Original comment by [email protected] on 13 Oct 2010 at 4:04

from valkyrie-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
getApplicationContext().unbindService
i used this method to solve the problem

Original comment by [email protected] on 13 Oct 2010 at 4:57

from valkyrie-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
problem in this case is that i don't unbind services in action but in singleton 
which is a main controller 
[http://code.google.com/p/valkyrie-android/source/browse/src/com/firegnom/valkyr
ie/engine/GameController.java?repo=valkyrie-apk#276 here] i think is a moment 
when controller has no valid context an is trying to unbind service.
to fix this bug i will need a better context management . In 
[http://code.google.com/p/valkyrie-android/source/browse/src/com/firegnom/valkyr
ie/ValkyrieActivity.java?repo=valkyrie-apk ValkyrieActivity]  i need overwrite 
all main lifecycle methods  and put context in to controller in this class .

Original comment by [email protected] on 13 Oct 2010 at 10:10

  • Added labels: Milestone-0.5, Priority-Medium
  • Removed labels: Priority-Low

from valkyrie-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
[deleted comment]

from valkyrie-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 28, 2024
i stopped the Thread, and solved this problem.

--------------------------------------------

private ExecutorService exService = Executors.newFixedThreadPool(1);

@Override
public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);

     Runnable runnable = new Runnable(){....};
     exService.execute( runnable );
}

@Override
protected void onDestroy() {
    super.onDestroy();
    exService.shutdownNow();
    ~~~~~~~~~~~~~~~~~~~~~~~~
}

Original comment by [email protected] on 22 Feb 2011 at 1:39

from valkyrie-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.