Back to project page retain-android.
The source code is released under:
GNU General Public License
If you think the Android project retain-android 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 com.retain2; // w w w .j a va 2 s.c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class DownloaderActivityProxy extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // handle a 'Share' intent from outside Intent intent = getIntent(); String data = intent.getDataString(); if( data != null ) { Intent i = new Intent(this, DownloaderActivity.class); i.putExtra( Intent.EXTRA_TEXT, data); this.startActivity(i); } intent.replaceExtras( new Bundle()); setResult(RESULT_CANCELED, null); finish(); } }