How to explicitly launch the system's Home application by code?

by Stoyan Damov » Tue, 10 Mar 2009 21:18:37 GMT


Sponsored Links
 I can't help you with this. Tough luck - I'd assume that when an
intent has alternative intent filters and an intent filter crashes,
the user would be presented with the list of intent filters to retry
the operation. I guess that's not the case or you wouldn't be asking.

Cheers






--~--~---------~--~----~------------~-------~--~----~



How to explicitly launch the system's Home application by code?

by Romain Guy » Wed, 11 Mar 2009 02:41:45 GMT


 on't use the package and class name directly, this will work only for
the current default Home screen. Use an Intent with the CATEGORY_HOME
instead.

On Tue, Mar 10, 2009 at 11:40 AM, MrSnowflake <mrsnowfl...@gmail.com> wrote:



--
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support. All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to explicitly launch the system's Home application by code?

by Dianne Hackborn » Thu, 12 Mar 2009 02:14:37 GMT


 uery the package manager for all home activities, and pick the one that has
the SYSTEM flag set.

On Wed, Mar 11, 2009 at 6:26 AM, MrSnowflake <mrsnowfl...@gmail.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Trying to Download a Web Page Using java.net

Hi!!!!!!!!!!!!!!! I am trying to download a web page using the
java.net library. My code is as follows:

package net.android.TrafficGenerator2;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class TrafficGenerator2 extends Activity {
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);
                TextView tv = new TextView(this);
                tv.append("Hello, Android\n");
                setContentView(tv);

                URL u = null;
                try {
                        u = new URL("http://www.msnbc.com");
                } catch (MalformedURLException e) {
                        tv.append("Error 1\n");
                        setContentView(tv);
                }
                URLConnection cn = null;
                try {
                        cn = u.openConnection();
                } catch (IOException e) {
                        tv.append("Error 2\n");
                        setContentView(tv);
                }

                cn.setDoInput(true);
                tv.append("Content type: " + cn.getContentType() + "; Use 
Caches: "
+ cn.getUseCaches() + "; Date: " + cn.getDate() + "; Content Length: "
+ cn.getContentLength() + ";\n");

                InputStream is = null;
                try {
                        is = cn.getInputStream();
                } catch (IOException e) {
                        tv.append("Error 3a\n");
                        setContentView(tv);
                }

                InputStreamReader isr = null;
                try {
                        isr = new InputStreamReader(is);
                } catch (NullPointerException e2) {
                        tv.append("Error 3b\n");
                        setContentView(tv);
                }

                BufferedReader file = null;
                try {
                        file = new BufferedReader(isr);
                }
                catch(NullPointerException e3) {
                        tv.append("Error 3c\n");
                        setContentView(tv);
                }

                if(file == null)
                {
                        tv.append("Null\n");
                        setContentView(tv);

                }
                else
                {
                        tv.append("Not Null\n");
                        setContentView(tv);

                }

        }
}

I get output of length of -1, and Error3a, Error3b, Error3c, and Null
as output. Why????????? similar code works well on a pc.

Thanks...............

--~--~---------~--~----~------------~-------~--~----~

2. Android SDK Content Loader - can i stop it? =D

Hi,

i have the SDK and plugin installed in Eclipse, my question is: most
of the time i use Eclipse for other stuff than Android. Is there a way/
option to disable the android stuff loading every time Eclipse starts,
and just enable it when i'm working on an Android project?

Thanks!

--~--~---------~--~----~------------~-------~--~----~

3. Error running android programs with netbeans 6.7.1 in asus n10

4. WebView + Cookie Problem

5. GLSurfaceView Activity Lifecycle problems

6. Emulator on Windows7 can't connect to internet

7. The file extension and read permission issue