Comments (6)
Hi @mynavy, I'd be glad to help. Can you tell me where are you calling mMagnet.destroy()
?
from magnet.
Im calling it within the service and it works but i want to destroy the magnet every time the service stops and it looks like it doesnt destroyed.
Only when i put mMagnet.destroy() inside the onIconClick function it's destroying the magnet.
from magnet.
If you are destroying your service manually then why not call mMagnet.destroy()
inside onDestroy()
?
If you want to destroy your service when the magnet is flung away, then call stopSelf()
inside onIconDestroyed()
from magnet.
Thanks i'll try that.
from magnet.
Let me know how it goes
from magnet.
closing this @mynavy
from magnet.
Related Issues (20)
- Unit Tests for improved test coverage HOT 1
- NullPointerException HOT 6
- Size of magnet HOT 5
- [Compilation Error] Unresolved reference: newBuilder HOT 3
- Demo not working HOT 1
- Attempting to destroy the window while drawing! HOT 2
- Magnet used in Service crashes after second removing of magnet isntance HOT 1
- App crashes on Android Oreo while showing a magnet HOT 1
- Application not usable once user clicks on Magnet HOT 1
- How to set position for Magnet without the animation? HOT 3
- Android P support
- java.lang.IllegalArgumentException: View=android.widget.FrameLayout{e3fb200 V.E...C.. ......I. 0,0-210,210} not attached to window manager
- NullPointerException
- Cannot set initial position on right side because of spring effect HOT 1
- How to set start position HOT 3
- Stick to wall horizontal only HOT 8
- Crash on Android 6+ HOT 3
- uses-sdk element cannot have a "tools:node" attribute HOT 2
- Min SDK ? HOT 2
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 magnet.