1

Possible Duplicate:
How can i use compose email activity in tabView?

I want to call Email compose activity in a Tab. How can i do that?

There are Two Package.

com.demo and com.demo1. Tab Activity is in com.demo and I want to call another activity from com.demo1 in Tab Activity in com.demo. How can i do that?

Community
  • 1
  • 1
Bhargav Panchal
  • 1,159
  • 1
  • 12
  • 27

2 Answers2

1

Composing an email will be an intent. This article helps you to call an intent from tabs.

And also this link will help you to create email intent.

Prasanna
  • 10,956
  • 2
  • 28
  • 40
  • i want to call different package activity in tab. – Bhargav Panchal Mar 17 '12 at 08:51
  • Intent intent=new Intent("android.intent.action.DEMO_MAIL"); //intent.putExtra("hello", "Hi"); intent.setClassName("com.android.email", "com.android.email.activity.setup.DemoActivity"); //startActivity(intent); StickyTabs.setTab(intent, TAB_INDEX_MESSAGE_LOG); mTabHost.addTab(mTabHost.newTabSpec("Message") .setIndicator(getString(R.string.messagetab), getResources().getDrawable(R.drawable.qs_logger_message_ic)) .setContent(intent)); – Bhargav Panchal Mar 17 '12 at 08:52
  • i already do that what ever link you send to me. – Bhargav Panchal Mar 17 '12 at 08:54
0

may be this can help you..

https://stackoverflow.com/a/9747907/1160207

Thanks..

Community
  • 1
  • 1
Never Quit
  • 2,072
  • 1
  • 21
  • 44