android - how to add extra more than one extras in share intent? -


i jus doing simple game app "flames" need result , name of 2 persons shared .the sharing works properly!but iam able share final ans "marriage" or "friends" etc bt need boy name , girl name , result should shared simultaneouly "anu" and" hari" "friends"..!! how can add 2 intent name1 , name2 in sharing them?iam beginneer plz help!!

    string text = "http://www.twistedequations.com";     ans = (string) output.gettext();     intent intent = new intent();     intent.setaction(intent.action_send);     intent.putextra(intent.extra_text, ans);      intent.settype("text/plain");     startactivity(intent); 

suppose answer "friends" need

 ans = (string) output.gettext();   string name1 = edt1.gettext().tostring();  string name2 = edt2.gettext().tostring();   string myvalue = name1+" "+ name2 +" "+"will be"+ ans;  intent intent = new intent();  intent.setaction(intent.action_send);  intent.putextra(intent.extra_text, myvalue);  intent.settype("text/plain");  startactivity(intent.createchooser(intent,                     "share using")); 

where ans string stands friends or marriage result per question.

you can use concat() function string.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -