Java Code Examples for com.google.zxing.client.android.clipboard.ClipboardInterface#getText()

The following examples show how to use com.google.zxing.client.android.clipboard.ClipboardInterface#getText() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShareActivity.java    From ZXing-Standalone-library with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
  // Should always be true, because we grey out the clipboard button in onResume() if it's empty
  CharSequence text = ClipboardInterface.getText(ShareActivity.this);
  if (text != null) {
    launchSearch(text.toString());
  }
}
 
Example 2
Source File: ShareActivity.java    From analyzer-of-android-for-Apache-Weex with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
  // Should always be true, because we grey out the clipboard button in onResume() if it's empty
  CharSequence text = ClipboardInterface.getText(ShareActivity.this);
  if (text != null) {
    launchSearch(text.toString());
  }
}
 
Example 3
Source File: ShareActivity.java    From weex with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
  // Should always be true, because we grey out the clipboard button in onResume() if it's empty
  CharSequence text = ClipboardInterface.getText(ShareActivity.this);
  if (text != null) {
    launchSearch(text.toString());
  }
}
 
Example 4
Source File: ShareActivity.java    From Study_Android_Demo with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
  // Should always be true, because we grey out the clipboard button in onResume() if it's empty
  CharSequence text = ClipboardInterface.getText(ShareActivity.this);
  if (text != null) {
    launchSearch(text.toString());
  }
}
 
Example 5
Source File: ShareActivity.java    From zxingfragmentlib with Apache License 2.0 5 votes vote down vote up
@Override
public void onClick(View v) {
  // Should always be true, because we grey out the clipboard button in onResume() if it's empty
  CharSequence text = ClipboardInterface.getText(ShareActivity.this);
  if (text != null) {
    launchSearch(text.toString());
  }
}