-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2364342
commit 8052d3f
Showing
4 changed files
with
132 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...te/app/src/main/java/fr/bouyguestelecom/bboxlab/remotetemplate/BboxNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fr.bouyguestelecom.bboxlab.remotetemplate; | ||
|
||
import android.content.Context; | ||
import android.widget.Toast; | ||
|
||
/** | ||
* Created by tristan on 09/11/15. | ||
*/ | ||
public class BboxNotFoundException extends Exception { | ||
|
||
public BboxNotFoundException() { | ||
super("No bbox found! Check if a Miami bbox is present in the same network and if the service BboxApi is running."); | ||
} | ||
|
||
public void toast (Context context) { | ||
Toast toast = Toast.makeText(context, "No Bbox found. Please make sure the box is on the same network with the service BboxApi running.", Toast.LENGTH_LONG); | ||
toast.show(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters