Back to project page intent_radio.
The source code is released under:
Copyright (c) 2014 Stephen Blott Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
If you think the Android project intent_radio listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.smblott.intentradio; // w w w.j ava 2 s . c o m import android.content.Context; import android.content.ClipData; import android.content.ClipboardManager; public class Clipper extends Logger { static void clip(Context context, String text) { if ( text == null || context == null ) return; init(context); ClipboardManager clip_manager = (ClipboardManager) context.getSystemService(context.CLIPBOARD_SERVICE); ClipData clip_data = ClipData.newPlainText("text", text); clip_manager.setPrimaryClip(clip_data); toast("Clipboard:\n" + text); } }