Is it possible to send EditText data from one android project to another android project? -
i trying send edittext data 1 project's activity project's activity...but can't find method send...is possible send data between 2 applications in android???
in activity of first application,
intent intent=new intent(); intent.setaction("custom_actionname"); intent.putextra("edittextdata","data"); sendbroadcast(intent);
receiver of other application,
public class yourreceiver extends broadcastreceiver { @override public void onreceive(context context, intent intent) { string edittextdata=intent.getstring("edittextdata"); } }
manifest in second app
<receiver android:name=".yourreceiver"> <intent-filter> <action android:name="custom_actionname"></action> </intent-filter> </receiver>
Comments
Post a Comment