email (2)


Share Content in Android WebView

Inter-workings JavaScript and Java Layer: use Intent to Share content in html5 Android hybrid app

// no permission require in your manifest file of Android project

        ...

// Open MainActivity Java File of your hybrid Android Project and copy and paste this code

public class MainActivity extends Activity {
public WebView webView;
ClipboardManager myClipboard;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main); // source activity_main.xml
webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.addJavascriptInterface(new WebAppInterface(this), "Android");
webView.setWebViewClient(new WebViewClient());
// important set Web Chrome Client
webView.setWebChromeClient(new WebChromeClient());
webView.loadUrl(url); //local or remote
}
// final class to add in Web App
final class WebAppInterface {
        Context mContext;

        /** Instantiate the interface and set the context */
        WebAppInterface(Context c) {
            mContext = c;
        }
        /**
            Interface to use in web application
        */
        
	@JavascriptInterface
	    public void shareContent(String webdata, String mysubject){
	    	Intent sendIntent = new Intent();
	    	sendIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
	    	sendIntent.putExtra(Intent.EXTRA_SUBJECT, mysubject);
	    	sendIntent.putExtra(Intent.EXTRA_TEXT, webdata);
	    	sendIntent.setType("text/plain");
	    	startActivity(sendIntent);
	    }

}
===============================
// Now open main html file in www sub-folder of assets folder of your Android project and use this code













Yammer il social enterprise

Yammer è un social network dedicato alle aziende, quest’articolo però non si concentra sulle caratteristiche essenziali della piattaforma, descritte in maniera esauriente da Wikipedia, ma sulla possibilità di poter aggiornare i post del nostro profilo via email. Di seguito vi annoto un mini tutorial:

  • Aggiornamento post via email del profilo aziendale inviando una email a: [email protected]
  • Per chi desidera invece inviare un messaggio ad un gruppo via email è sufficiente digitare il nome del gruppo e quello del tuo profilo che devono precedere il consueto dominio: [email protected]
  • Infine per inviare un messaggio privato destinato ad un singolo membro occorre anteporre l’username+nometuonwtwork a @yammer.com