This file contains hidden or 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
| package com.lyokone.location; | |
| import android.Manifest; | |
| import android.app.Activity; | |
| import android.provider.Settings; | |
| import android.content.IntentSender; | |
| import android.content.Intent; | |
| import android.content.pm.PackageManager; | |
| import android.location.Location; | |
| import android.location.LocationManager; |
This file contains hidden or 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
| def is_url(string): | |
| """ | |
| Checks if the given string starts with 'http(s)'. | |
| """ | |
| try: | |
| return string.startswith('http://') or string.startswith('https://') | |
| except AttributeError: | |
| return False |
NewerOlder