All Projects → ankuryadav7 → FusedBulb

ankuryadav7 / FusedBulb

Licence: other
Location fetch library.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FusedBulb

locus-android
An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
Stars: ✭ 280 (+1172.73%)
Mutual labels:  location, android-development, android-studio
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+545.45%)
Mutual labels:  gps, location, location-tracker
react-native-device-country
Get device location by telephony (SIM card) or settings without using GPS tracker.
Stars: ✭ 33 (+50%)
Mutual labels:  gps, location, gps-location
android
Where you can find everything Android from Mapzen
Stars: ✭ 106 (+381.82%)
Mutual labels:  location, location-picker, location-based
Rxgps
Finding current location cannot be easier on Android !
Stars: ✭ 307 (+1295.45%)
Mutual labels:  gps, location
android-amap-track-collect
这阵子由于项目需要,需要从手机上采集用户的运动轨迹数据,这样的功能大家都见到的很多了,比如咕咚、悦动圈,对跑步运动轨迹数据进行采集,再如,微信运动、钉钉运动,对于每一天你走步进行计数,如果要记录轨迹就离不开的手机定位,如果要记录步数那就离不开陀螺仪(角速度传感器),花了一天多的时间实现了一个定位数据实时采集的功能。
Stars: ✭ 50 (+127.27%)
Mutual labels:  gps, location
Indoorgps
Position Calculating with Trilateration via Bluetooth Beacons(Estimote)
Stars: ✭ 59 (+168.18%)
Mutual labels:  gps, location
Leaflet Gps
Simple leaflet control plugin for tracking gps position
Stars: ✭ 90 (+309.09%)
Mutual labels:  gps, location
roam-reactnative
React Native Location SDK. High accuracy and battery efficient location SDK for iOS and Android by Roam.ai
Stars: ✭ 20 (-9.09%)
Mutual labels:  gps, location
P5.geolocation
a geolocation and geofencing library for p5.js
Stars: ✭ 75 (+240.91%)
Mutual labels:  gps, location
Phpgeo
Simple Yet Powerful Geo Library for PHP
Stars: ✭ 1,306 (+5836.36%)
Mutual labels:  gps, location
Maps
🌍🌏🌎 The whole world fits inside your cloud!
Stars: ✭ 253 (+1050%)
Mutual labels:  gps, location
telegram-nearby-map
Discover the location of nearby Telegram users 📡🌍
Stars: ✭ 329 (+1395.45%)
Mutual labels:  gps, location
gps-share
Utility to share your GPS device on local network
Stars: ✭ 49 (+122.73%)
Mutual labels:  gps, location
React Native Fused Location
Finest location for react-native on Android using the new Fused API.
Stars: ✭ 118 (+436.36%)
Mutual labels:  gps, location
Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (+831.82%)
Mutual labels:  gps, location
Location
Smartphone navigation positionning, fusion GPS and IMU sensors.
Stars: ✭ 87 (+295.45%)
Mutual labels:  gps, location
Corelocationcli
Command line program to print location information from CoreLocation
Stars: ✭ 138 (+527.27%)
Mutual labels:  gps, location
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (+31.82%)
Mutual labels:  gps, location
gpx-builder
Builder of GPX files
Stars: ✭ 25 (+13.64%)
Mutual labels:  gps, location

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].