Gavin Reynolds
Posts: 0
Joined: Fri Mar 15, 2013 2:35 pm

Sending content to other android applications

I would like to send content to other apps on an android device - the Android Developers website suggests using:

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));

http://developer.android.com/training...

How can I implement this within my Appery application from a button click?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Sending content to other android applications

Hello Gavin!
Working on it, I'll update.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Sending content to other android applications

Hi Gavin - sendIntent is a native Android method. You can call it in you app, but you must make implementation of it by yourself in Eclipse project.

By default Appery is a HTML5 web app or hybrid app and you can access device API's via PhoneGap.

Walter Lee6181771
Posts: 0
Joined: Tue Aug 27, 2013 6:50 am

Sending content to other android applications

if I like to call below intent from appery to send multiple person SMS, can I do it ?
Any example ?

I wonder if I can call sms intent from JS ?

thank you!

-------------------------------------------

http://stackoverflow.com/questions/16...

String toNumbers = "";
for ( String s : numbersArrayList)
{
toNumbers = toNumbers + s + ";"
}
toNumbers = toNumbers.subString(0, toNumbers.length - 1);
String message= "this is a custom message";

Uri sendSmsTo = Uri.parse("smsto:" + toNumbers);
Intent intent = new Intent(
android.content.Intent.ACTION_SENDTO, sendSmsTo);
intent.putExtra("sms_body", message);
startActivity(intent);

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Sending content to other android applications

Hello Walter!
You can send SMS message via some API e.g. http://docs.appery.io/plugins/using-t....

Return to “Issues”