Comments (5)
i have the same problem
Original comment by [email protected]
on 13 Oct 2010 at 4:04
from valkyrie-android.
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.
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.
[deleted comment]
from valkyrie-android.
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)
- Player Stats
- PvP
- Version notification
- Finish Fight
- Monster aware of move matrix HOT 2
- Move Position from player HOT 2
- Close version 0.5 HOT 1
- Service is null on login
- crash in getOnscreenPosition HOT 1
- zone null in doScroll HOT 1
- kinetic scroll
- Service disconnects in the middle of the zone load HOT 1
- fix scripting goto
- lots of null pointer exceptions after going opensource HOT 1
- Improve Package Loader HOT 3
- save images on sd card
- Map Templates
- move from darkstar to reddwarf server HOT 1
- Create GameMode for Fight Action
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valkyrie-android.