Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Screeninfo | 167 | 23 | 86 | 2 months ago | 21 | September 09, 2022 | 18 | other | Python | |
Fetch location and size of physical screens. | ||||||||||
Oneshotlocationmanager | 106 | 8 years ago | 3 | mit | Swift | |||||
A replacement class for CLLocationManager for when you want to easily fetch the current device location | ||||||||||
Prglocationsearchbar | 27 | 3 years ago | mit | Swift | ||||||
Control used to show a search bar which can fetch your location as well as geocode a search string | ||||||||||
Easylocation | 24 | 3 years ago | apache-2.0 | Kotlin | ||||||
Location library to fetch location and location updates very easily. It handles location setting and permission by itself. | ||||||||||
Fusedbulb | 22 | 5 years ago | 3 | Java | ||||||
Location fetch library. | ||||||||||
Fused Location Api Example | 18 | 3 years ago | 1 | Kotlin | ||||||
An example project to demonstrate how to use Fused Location API to fetch the current location in Android | ||||||||||
Healthapp | 17 | 2 years ago | 6 | mit | ||||||
A desktop application to fetch Wikipedia,Google,Disease results and save them as text file,in database.Have a Section to search details about doctors in location | ||||||||||
Skymate | 16 | 2 years ago | mit | JavaScript | ||||||
⚡ Weather app that fetches real time weather data of any location | ||||||||||
Easylocationfetch | 15 | 2 years ago | 1 | December 15, 2020 | 3 | mit | Java | |||
Easily fetch locations | ||||||||||
Mensa Menus | 14 | 3 years ago | mit | Python | ||||||
This script fetches and displays menus for ETH mensas and the Mercato UZH mensa. |
This is the library which uses google's FusedLocationApi for fetching the current location of the user.
dependencies {
...
compile 'com.fusedbulb.lib:fusedbulblib:1.0.0'
...
New Version Now Available. 1.0.3. Kindly go down for more info
}
Below are the three steps by which you can integrate FusedBulb library in your project.
Step 1
public class ActivityExample extends AppCompatActivity implements GpsOnListner{
@Override
public void gpsStatus(boolean _status) {
if (_status==true){
new GetCurrentLocation(this).getCurrentLocation();
}else {
//GPS is off on user's device.
}
}
@Override
public void gpsPermissionDenied(int deviceGpsStatus) {
if (deviceGpsStatus==1){
//user does not want to switch on GPS of his/her device.
}
}
@Override
public void gpsLocationFetched(Location location) {
if (location!=null){
// you will get user's current location
}else {
Toast.makeText(this,"Unable to find location",Toast.LENGTH_SHORT).show();
}
}
}
Step 2
new GetCurrentLocation(context).getCurrentLocation();
Step 3
@Override
public void onRequestPermissionsResult(int requestCode,String permissions[], int[] grantResults) {
switch (requestCode) {
case 1: {
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
//handle permission allow
} else {
//handle permission denied
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
return;
}}
}
If you want to fetch continuous location of the user then use same object of GetCurrentLocation class like below-: Just copy paste the below code and you will get the current loaction of user.
<activity android:name="com.fusedbulblib.permission.PermissionResult"></activity>
public class ActivityDemo extends AppCompatActivity implements GpsOnListener{
GetCurrentLocation getCurrentLocation;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getCurrentLocation=new GetCurrentLocation(this);
getCurrentLocation.getContinuousLocation(true);
getCurrentLocation.getCurrentLocation();
}
@Override
public void gpsStatus(boolean _status) {
Log.w("FusedBuld GpsStatus",_status+"");
if (_status==true){
getCurrentLocation.getContinuousLocation(true);
getCurrentLocation.getCurrentLocation();
}
}
@Override
public void gpsPermissionDenied(int deviceGpsPermission) {
Log.w("FusedBuld GpsPermission",deviceGpsPermission+"");
}
@Override
public void gpsLocationFetched(Location location) {
Log.w("FusedBuld location",location.getLatitude()+"--"+location.getLongitude());
}
@Override
public void onDestroy() {
super.onDestroy();
getCurrentLocation.stopLocationUpdate();
}
}
Ankur Yadav- [email protected]
You need to make your app Multidex.