Fusedbulb

Location fetch library.
Alternatives To Fusedbulb
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Screeninfo16723862 months ago21September 09, 202218otherPython
Fetch location and size of physical screens.
Oneshotlocationmanager106
8 years ago3mitSwift
A replacement class for CLLocationManager for when you want to easily fetch the current device location
Prglocationsearchbar27
3 years agomitSwift
Control used to show a search bar which can fetch your location as well as geocode a search string
Easylocation24
3 years agoapache-2.0Kotlin
Location library to fetch location and location updates very easily. It handles location setting and permission by itself.
Fusedbulb22
5 years ago3Java
Location fetch library.
Fused Location Api Example18
3 years ago1Kotlin
An example project to demonstrate how to use Fused Location API to fetch the current location in Android
Healthapp17
2 years ago6mit
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
Skymate16
2 years agomitJavaScript
⚡ Weather app that fetches real time weather data of any location
Easylocationfetch15
2 years ago1December 15, 20203mitJava
Easily fetch locations
Mensa Menus14
3 years agomitPython
This script fetches and displays menus for ETH mensas and the Mercato UZH mensa.
Alternatives To Fusedbulb
Select To Compare


Alternative Project Comparisons
Readme

FusedBulb

This is the library which uses google's FusedLocationApi for fetching the current location of the user.

FusedBulb

Gradle

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

    • Add "GpsOnListener" in your main class. By implementing this you will get below three methods with different user action.
     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

    • Call "GetCurrentLocation" class on button click.
      new GetCurrentLocation(context).getCurrentLocation();
    
  • Step 3

    • Call "onRequestPermissionsResult" method on your main class. This will return user's choice about location permission. This can be executed only in marshmallow or above.
      @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;
             }}
     }
    

Key Feature of 1.0.3-->>Continuous location update

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.

Add activity in Menifest File


<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();
    }
}




Developed By

Ankur Yadav- [email protected]

Note

You need to make your app Multidex.

Popular Fetch Projects
Popular Location Projects
Popular Networking Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Location
Fetch
Android App
Android Studio
Gps
Google Api