How to call another application from tabview

by Ganz » Fri, 23 Apr 2010 08:05:16 GMT

Sponsored Links
 I wish to know if any way to start another application inside my
landing application.

I have created a two application. My Landing Application has the
tabview. And in the second shows toast message.
Is there any way to load another application in a each tab?

I can start a another application using below code
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.labtest2",


How to call another application from tabview

by Kumar Bibek » Fri, 23 Apr 2010 13:01:33 GMT

 Application is not the right word. You can put an Activity inside a
Tab. But again, I am not sure if you can put an Activity from another
application in the Tab. You have to check it out for yourself.

Thanks and Regards,
Kumar Bibek


Sponsored Links

Other Threads

1. MediaRecorder prepare() causes segfault


I have a situation where my MediaRecorder instance causes a segfault.
I'm working with a HTC Hero, Android 1.5+APIs. In the log i see (after
the segfault announcement) a register dump and then a numbered list
#00 to  #18 linker, then a stack trace.

My Eclipse won't let me copy the log buffer, but I've done three
screen captures that sum it up. If you have time to examine, send me a
direct e-mail.

    if (mRecorder == null) mRecorder = new MediaRecorder();
//       mRecorder.setVideoSize(640, 480);
//       mRecorder.setVideoFrameRate(20);

I've tried other variants, including H263 and 3gp. What else can I do
to debug this? Everythin g seems fine up to prepare().

I tried adding the onErrorListener, but it seems to interfere with the
MediaPlayer's onErrorListener. I'm using a 4-second beep-count to
prepare for auto triggering of the camera, and when I enable the error
handler for the MR everything in my handler state machines goes awry.

Thanks in advance! :D


2. I thought you couldn't instantiate interfaces?

This code is creating an instance of an anonymous inner class that
implements the interface.

Possible, yes. "Better" is difficult to answer in the abstract.

I tend to make longer anonymous inner classes be private data members:

private View.OnKeyListener onKey=new View.OnKeyListener() {
        public boolean onKey(View v, int keyCode, KeyEvent event) {
                if (event.getAction() == KeyEvent.ACTION_DOWN)
                        if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
                                return true;
                return false;

then call myEditText.setOnKeyListener(onKey) where needed. But that's
just me.

Mark Murphy (a Commons Guy) |

_Android Programming Tutorials_ Version 2.0 Available!


3. I thought you couldn't instantiate interfaces?

4. How do you manage users from non-paid app countries?

5. Is it possible to use MediaPlayer to play streaming audio?

6. Some Weird results for Calendar Class!! Can some one help

7. surfaceview setbackgrounddrawable()