List of usage examples for android.util Log v
public static int v(String tag, String msg)
From source file:eu.masconsult.bgbanking.accounts.AccountAuthenticator.java
@Override public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) throws NetworkErrorException { Log.v(TAG, "confirmCredentials(account: " + account + ")"); // TODO Auto-generated method stub return null;/*from w ww. j a v a2 s . c om*/ }
From source file:org.mythtv.android.db.dvr.RecordedHelperV27.java
public boolean process(final Context context, final LocationProfile locationProfile) { Log.v(TAG, "process : enter"); if (!NetworkHelper.getInstance().isMasterBackendConnected(context, locationProfile)) { Log.w(TAG, "process : Master Backend '" + locationProfile.getHostname() + "' is unreachable"); return false; }//from ww w . ja v a 2 s . co m mMythServicesTemplate = (MythServicesTemplate) MythAccessFactory.getServiceTemplateApiByVersion(mApiVersion, locationProfile.getUrl()); if (null == mMythServicesTemplate) { Log.w(TAG, "process : Master Backend '" + locationProfile.getHostname() + "' is unreachable"); return false; } boolean passed = true; try { downloadRecorded(context, locationProfile); } catch (Exception e) { if (e.toString().contains("Invalid UTF-8")) { Log.e(TAG, "process : INVALID UTF-8! Start mythbackend with valid LANG & LC_ALL (e.g. en_US.UTF-8"); } else { Log.e(TAG, "process : non UTF-8 exception ", e); } passed = false; } Log.v(TAG, "process : exit"); return passed; }
From source file:edu.cmu.sei.cloudlet.client.ska.bluetooth.BTMessageHandler.java
/** * Receives messages until disconnected. *///from www.ja v a2 s .c om public void receiveMessages() { Log.v(TAG, "Receiving messages"); int num_bytes; byte[] buffer = new byte[CHUNK_SIZE]; while (true) { try { num_bytes = mInStream.read(buffer); Log.v(TAG, "Num bytes: " + num_bytes); if (num_bytes > 0) { byte[] message_bytes = new byte[num_bytes]; System.arraycopy(buffer, 0, message_bytes, 0, num_bytes); String message = new String(message_bytes); Log.v(TAG, "Message received: " + message); handleMessage(message); } } catch (IOException e) { Log.e(TAG, "No longer connected."); break; } } }
From source file:com.lge.friendsCamera.CaptureIntervalActivity.java
@Override protected void onStop() { super.onStop(); Log.v(TAG, TAG + " onStop"); if (mHandler != null) { mHandler.removeCallbacks(mRunnable); }//w w w . j ava 2 s. c o m }
From source file:ssui.project.GetItBackActivity.java
/** Called when the activity is first created. */ @Override// w ww . j a v a2 s . c om public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (APP_ID == null) { Util.showAlert(this, "Warning", "Facebook Applicaton ID must be " + "specified before running this example: see Example.java"); } setContentView(R.layout.main); mLoginButton = (LoginButton) findViewById(R.id.login); mText = (TextView) GetItBackActivity.this.findViewById(R.id.txt); mRequestButton = (Button) findViewById(R.id.requestButton); mFacebook = new Facebook(APP_ID); mAsyncRunner = new AsyncFacebookRunner(mFacebook); SessionStore.restore(mFacebook, this); SessionEvents.addAuthListener(new SampleAuthListener()); SessionEvents.addLogoutListener(new SampleLogoutListener()); //check if mFacebook is logged in //if already logged in start pulling data //else show login in button if (mFacebook.isSessionValid()) Log.v("User", "Logged in"); mLoginButton.init(this, mFacebook); mRequestButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { mAsyncRunner.request("me", new SampleRequestListener()); } }); mRequestButton.setVisibility(mFacebook.isSessionValid() ? View.VISIBLE : View.INVISIBLE); }
From source file:com.owncloud.android.lib.test_project.test.GetCapabilitiesTest.java
@Override protected void setUp() throws Exception { super.setUp(); // Next initialization cannot be done in the constructor because getContext() is not // ready yet, returns NULL. initAccessToServer(getContext());/*from www . j a v a 2s . c o m*/ Log.v(LOG_TAG, "Setting up the remote fixture..."); Log.v(LOG_TAG, "Remote fixture created."); }
From source file:org.openschedule.api.impl.OpenScheduleTemplate.java
private void initSubApis() { Log.v(TAG, "initSubApis : enter"); this.eventOperations = new EventTemplate(getRestTemplate(), getApiUrlBase()); this.sessionOperations = new SessionTemplate(getRestTemplate(), getApiUrlBase()); this.venueOperations = new VenueTemplate(getRestTemplate(), getApiUrlBase()); Log.v(TAG, "initSubApis : exit"); }
From source file:com.sidekickApp.PusherClass.java
private static void log(String msg) { Log.v(TAG, "Debug: " + msg); }
From source file:com.vst.android.demo.mensajeria.GCMIntentService.java
@Override protected void onUnregistered(Context context, String registrationId) { Log.v(GCMIntentService.class.getName(), "onUnregistered unregistered"); // displayMessage(context, getString(R.string.gcm_unregistered)); // ServerUtilities.unregister(context, registrationId); }
From source file:com.jeffreyawest.weblogic.rest.WebLogicHTTPRestAdapter.java
@Override public <T extends WebLogicEntity> T getResource(Class<T> theClass, String pName) { String url = getResourceURL(theClass.getSimpleName(), pName); Log.v(LOG_TAG, "Getting Resource from URL: " + url); String json = httpAdapter.GET(url, username, password, "json", null); JSONObject jsonMessage = null;//from ww w . ja v a 2s. c om T theType = null; try { jsonMessage = new JSONObject(json); Log.v(LOG_TAG, "Class: " + theClass + " JSON: " + jsonMessage.toString(2)); String tmpStr = jsonMessage.getJSONObject("body").getString("item"); ObjectMapper om = new ObjectMapper(); theType = om.readValue(tmpStr, theClass); theType.setOriginalJSON(jsonMessage.toString(2)); } catch (JSONException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } return theType; }