Example usage for android.util Log v

List of usage examples for android.util Log v

Introduction

In this page you can find the example usage for android.util Log v.

Prototype

public static int v(String tag, String msg) 

Source Link

Document

Send a #VERBOSE log message.

Usage

From source file:com.safecell.RulesDownload.java

public void loactionChangedForRule(Location location, Context context) {
    if (lastRulesDownloadlocation != null) {

        double distance = DistanceAndTimeUtils.distFrom(lastRulesDownloadlocation.getLatitude(),
                lastRulesDownloadlocation.getLongitude(), location.getLatitude(), location.getLongitude());
        // Log.v("Safecell :"+TAG + "distance", distance + "");

        distanceSinceLastDownload += distance;
        Log.d(TAG, "Rules: distanceSinceLastDownload: " + distanceSinceLastDownload);
        if (distanceSinceLastDownload >= RULE_UPDATE_RADIUS) {
            Log.v(TAG, "Distance more than rule radius.");
            distanceSinceLastDownload = 0;
            lastRulesDownloadlocation = location;
            startDownloadThread();/*w w w  . ja  va  2 s.  co m*/

            // downloadRule();

        }

        if (ruleDownloadFailed == true) {
            distanceSinceLastDownload = 0;
            lastRulesDownloadlocation = location;
            startDownloadThread();
            ruleDownloadFailed = false;
        }

    } else {

        distanceSinceLastDownload = 0;
        lastRulesDownloadlocation = location;
        startDownloadThread();

        // downloadRule();

    }
}

From source file:no.uka.findmyapp.android.rest.client.RestIntentService.java

@Override
public void onCreate() {
    super.onCreate();
    Log.v(debug, "onCreate: service started");
}

From source file:com.finlay.geomonsters.MyIOCallback.java

@Override
public void onMessage(String arg0, IOAcknowledge arg1) {
    Log.v(TAG, "onMessage from server: " + arg0);
}

From source file:org.mythtv.service.myth.v25.StorageGroupHelperV25.java

public List<StorageGroupDirectory> process(final Context context, final LocationProfile locationProfile,
        String storageGroupName) {
    Log.v(TAG, "process : enter");

    if (!NetworkHelper.getInstance().isMasterBackendConnected(context, locationProfile)) {
        Log.w(TAG, "process : Master Backend '" + locationProfile.getHostname() + "' is unreachable");

        return null;
    }/*from www  . j  av a 2s.  c om*/

    mMythServicesTemplate = (MythServicesTemplate) MythAccessFactory.getServiceTemplateApiByVersion(mApiVersion,
            locationProfile.getUrl());

    List<StorageGroupDirectory> storageGroupDirectories = null;

    try {

        storageGroupDirectories = downloadStorageGroups(locationProfile, storageGroupName);

    } catch (Exception e) {
        Log.e(TAG, "process : error", e);

        storageGroupDirectories = null;
    }

    Log.v(TAG, "process : exit");
    return storageGroupDirectories;
}

From source file:com.cbtec.eliademy.GCMIntentService.java

@Override
protected void onUnregistered(Context context, String registrationId) {
    Log.d(TAG, "Device unregistered");
    if (GCMRegistrar.isRegisteredOnServer(context)) {
        try {//from  w  w  w. ja  va2s.c  o m
            JSONObject json;
            json = new JSONObject().put("event", "unregistered");
            json.put("registrationId", registrationId);
            Log.v(TAG, json.toString());
            GCMPlugin.sendJavascript(json);
        } catch (JSONException e) {
            Log.e(TAG, "JSON exception" + e.getMessage());
        }
    } else {
        // This callback results from the call to unregister made on
        // ServerUtilities when the registration to the server failed.
        Log.d(TAG, "Ignoring unregister callback");
    }
}

From source file:com.example.fypv2.dataprocessor.MixareDataProcessor.java

@Override
public List<Marker> load(String rawData, int taskId, int colour) throws JSONException {
    List<Marker> markers = new ArrayList<Marker>();
    JSONObject root = convertToJSON(rawData);
    JSONArray dataArray = root.getJSONArray("results");
    int top = Math.min(MAX_JSON_OBJECTS, dataArray.length());

    for (int i = 0; i < top; i++) {
        JSONObject jo = dataArray.getJSONObject(i);

        Marker ma = null;/*from   w  w w.ja va 2  s.  c o m*/
        if (jo.has("title") && jo.has("lat") && jo.has("lng") && jo.has("elevation")) {

            String id = "";
            if (jo.has("id"))
                id = jo.getString("id");

            Log.v(MainFrame.TAG, "processing Mixare JSON object");
            String link = null;

            if (jo.has("has_detail_page") && jo.getInt("has_detail_page") != 0 && jo.has("webpage"))
                link = jo.getString("webpage");

            ma = new POIMarker(id, HtmlUnescape.unescapeHTML(jo.getString("title"), 0), jo.getDouble("lat"),
                    jo.getDouble("lng"), jo.getDouble("elevation"), link, taskId, colour);
            markers.add(ma);
        }
    }
    return markers;
}

From source file:com.ezartech.ezar.flashlight.Flashlight.java

@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
    Log.v(TAG, action + " " + args.length());

    if (action.equals("init")) {
        this.init(callbackContext);
    } else if (action.equals("updateLight")) {
        this.updateLight(args, callbackContext);
    } else {/*www .j a v  a 2s .c o  m*/
        return false;
    }

    return true;
}

From source file:io.samsungsami.example.SAMInBLEws.SAMIDeviceActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_samidevices);
    getActionBar().setTitle(R.string.sami_devices_title);

    mNewDeviceButton = (Button) findViewById(R.id.btn);
    mWelcome = (TextView) findViewById(R.id.welcome);
    mInstruction = (TextView) findViewById(R.id.instruction_text);

    mNewDeviceButton.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            try {
                Log.v(TAG, ":create sami device button is clicked.");
                createSamiDevice();/*from   w ww .j a va2 s .  c o m*/
            } catch (Exception e) {
                Log.v(TAG, "Run into Exception");
                e.printStackTrace();
            }
        }
    });

    // Initializes list view adapter.
    mDeviceListAdapter = new SAMIDeviceListAdapter();
    setListAdapter(mDeviceListAdapter);

    mDeviceManager = new SAMIDeviceManager();

    SAMISession.getInstance().setupSamiRestApis();
    new GetUserInfoInBackground().execute();
}

From source file:com.example.fastgive.CaptureActivity.java

@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.capture);/*  w ww.  j  a v a  2 s  . c o  m*/
    Log.v(TAG, "onCreate()");

    captureInstance = this;

    resultView = findViewById(R.id.result_view);
    //      statusView = (TextView) findViewById(R.id.status_view);

    inScanMode = false;
}

From source file:au.com.micropacific.cordova.DataReceiver.java

@Override
public void onReceive(Context context, Intent intent) {
    // If intent of the Intent_SOFTTRIGGER_DATA string is received
    if (intent.getAction().equals(GeneralString.Intent_SOFTTRIGGER_DATA)) {

        // fetch the data within the intent
        String data = intent.getStringExtra(GeneralString.BcReaderData);

        // display the fetched data
        //e1.setText(data);
        Log.v("CipherlabRS30Plugin", "got data, 1: " + data);
        this.plugin.receieveScan(data);
    } else if (intent.getAction().equals(GeneralString.Intent_PASS_TO_APP)) {

        // fetch the data within the intent
        String data = intent.getStringExtra(GeneralString.BcReaderData);

        // display the fetched data
        //e1.setText(data);
        Log.v("CipherlabRS30Plugin", "got data, 2: " + data);
        this.plugin.receieveScan(data);

    } else if (intent.getAction().equals(GeneralString.Intent_READERSERVICE_CONNECTED)) {

        BcReaderType myReaderType = mReaderManager.GetReaderType();
        //e1.setText(myReaderType.toString());

        ReaderOutputConfiguration settings = new ReaderOutputConfiguration();
        mReaderManager.Get_ReaderOutputConfiguration(settings);
        settings.enableKeyboardEmulation = KeyboardEmulationType.None;
        mReaderManager.Set_ReaderOutputConfiguration(settings);

        Log.v("CipherlabRS30Plugin", "got data, 3");

        /*NotificationParams settings = new NotificationParams();
        mReaderManager.Get_NotificationParams(settings);
                   //from  w  w  w  .  j av a  2 s  .  c  o  m
        ReaderOutputConfiguration settings2 = new ReaderOutputConfiguration();
        mReaderManager.Get_ReaderOutputConfiguration(settings2);
        */
    }

}