zookeeper-server-start.sh
- starting Zookeeperkafka-server-start.sh
- start Kafkakafka-topics.sh
- manage topics in Kafkakafka-console-producer.sh
- script for sending messages to Kafka topickafka-console-consumer.sh
- script for consuming messages from Kafka topickafka-run-class.sh
- script for running different tools (list of tools can be found here)
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
dependencies { | |
... | |
compile 'com.hypertrack:hyperlog:0.0.9' | |
... | |
} |
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
HyperLog.initialize(this); | |
HyperLog.setLogLevel(Log.VERBOSE); |
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
HyperLog.d(TAG,”Debug Log”); |
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
HyperLog.setURL(“API URL”); | |
HyperLog.pushLogs(this, false, new HLCallback() { | |
@Override | |
public void onSuccess(@NonNull Object response) { | |
//Handle Log Push Success | |
} | |
@Override | |
public void onError(@NonNull VolleyError errorResponse) { | |
// Handle Log Push Error | |
} |
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
/** | |
* Call this method to check Location Settings before proceeding for UserLogin | |
*/ | |
private void checkForLocationSettings() { | |
// Check for Location permission | |
if (!HyperTrack.checkLocationPermission(this)) { | |
HyperTrack.requestPermissions(this); | |
return; | |
} |
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
//For nearby API you can pass actionId or latlng. For more info on nearbyAPI https://docs.hypertrack.com/api/entities/user.html#list-nearby-users | |
public void getNearbyUsers(String actionId, Latlng latlng){ | |
//Create retrofit service object | |
RetrofitService getNearbyUserService = RetrofitServiceGenerator.createService(RetrofitService.class,context); | |
Call<UserListResponse> call = getNearbyUserService.getNearByUsers(actionID,latLng.latitude +","+latLng.longitude); | |
call.enqueue(new Callback<UserListResponse>() { | |
@Override | |
public void onResponse(Call<UserListResponse> call, Response<UserListResponse> response) { | |
if(response.isSuccessful()){ | |
if(response.body() != null){ |
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
public class MyMapAdapter extends HyperTrackMapAdapter { | |
@Override | |
public int getUserMarkerIconForActionID(Context mContext, InfoBoxModel.Type markerType, | |
UserActivity.ActivityType activityType, String actionID) { | |
int resource = R.drawable.ic_marker_drive; | |
switch (markerType) { | |
case ERROR: | |
resource = R.drawable.ic_no_data_received; |
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
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_SRC_FILES:= \ | |
gps_test.cpp | |
LOCAL_SHARED_LIBRARIES := \ | |
libcutils libhardware | |
LOCAL_MODULE:= test-gps |