Android Open Source - porter Stoppable Thread






From Project

Back to project page porter.

License

The source code is released under:

Copyright (c) 2014, Benjamin Damer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...

If you think the Android project porter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.afqa123.porter;
// w  w w  . ja va 2 s.  co m

public abstract class StoppableThread extends Thread {

  private volatile boolean _stop = false;
  
  protected boolean isStopped() {
    return _stop;
  }
  
  public synchronized void requestStop() {
    _stop = true;
  }
}




Java Source Code List

com.afqa123.porter.Entry.java
com.afqa123.porter.MainActivity.java
com.afqa123.porter.MmsEntry.java
com.afqa123.porter.MmsProvider.java
com.afqa123.porter.SmsEntry.java
com.afqa123.porter.SmsProvider.java
com.afqa123.porter.StoppableThread.java