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

by Kakyoin » Tue, 10 Mar 2009 20:21:05 GMT


Sponsored Links
 Topic.  Short and sweet question. And I did browse the forum before
asking.

Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~



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

by Kakyoin » Tue, 10 Mar 2009 20:59:41 GMT


 




Hi. Thank you for the reply.

But actually I do have another Alternative Home application (which I
set to default for CATEGORY_HOME).

In this case, let's assume that this Alternative Home has a but in its
onCreate(), this bug cause the "Force close" screen.

The real problem is: when user set my Alternative Home as their
'default action for 'Home' ', then shutdown the device and turn it
back on. It'll keep crashing at the start up.

The user can't press back to go to system's Home app; there's no
system's Home to go back to (because my Alternative Home is the
default and is the only 'Home'  loaded at boot time)



I'm sorry for my bad English. >_<  What I'm trying to do is to handle
that bug(which actually only happen when user has no SD card present)
by doing this: "if there's no SD card inserted, then just launch the
System's Home app instead"




here's my code when the SD card is not found:

Intent i = new Intent();
i.setAction("android.intent.action.MAIN");
i.addCategory("android.intent.category.HOME");
startActivity(i); // this launch my Alternative Home (because it is
set as default)

Anyway, Thank you for your reply. =)
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


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

by MrSnowflake » Wed, 11 Mar 2009 02:40:23 GMT


 As I said on Anddev.org earlier:
Intent myIntent = new Intent();
myIntent.setClassName("com.android.launcher",
"com.android.launcher.Launcher");
startActivity(myIntent);






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



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

by MrSnowflake » Wed, 11 Mar 2009 02:41:35 GMT


 I have to say, I don't think this method will keep working in future
versions as the package and class name of the launcher might change!







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



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

by Kakyoin » Wed, 11 Mar 2009 13:53:48 GMT


 Hi. Thank you all for the answers.

Launching by class name was very helpful for now but following your
advice, I'll not use that method. >_<


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



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

by MrSnowflake » Wed, 11 Mar 2009 21:26:49 GMT


 ut using CATEGORY_HOME won't solve his problem.

On 10 mrt, 19:41, Romain Guy <romain...@google.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



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

by MrSnowflake » Thu, 12 Mar 2009 05:22:14 GMT


 ice, thanks!

On 11 mrt, 19:14, Dianne Hackborn <hack...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Is the SIP API complete? Seems the answer might be "no".

I'm trying to understand the SIP API beyond making and receiving audio-
only calls. For audio-only, everything appears to be in place for an
app to make a call, or receive a call, so the user can talk and hear
and all's well. The work is done with the SipAudioCall class.

But for more general-purpose SIP calling, SipSession does the work
except that the documentation is very weak with respect to what is
expected by the methods. For example, makeCall() takes a session
description string and that's all the information available in the
documentation. Is it safe to assume that a session description string
must be formatted according to the Session Description Protocol (RFC
2327: http://tools.ietf.org/html/rfc2327 )? The same issue is all
throughout the SipSession documentation. The onRinging() callback of
SipSession.Listener provides the caller's session description. Again,
is it safe to assume this is referring to an SDP-compliant string?

Thanks for the help.

- dave

-- 

2. OOT desire 2

http://www.teknoup.com/news/7303/htc-desire-2-menampakkan-diri-pakai-gingerbread-untuk-mwc-2011/
bakal menendang desire hd nih :D

-- 
@JP
~from pc~
milist-bebas-sh...@googlegroups.com (bebas berkarya)

-- 
===============

3. How to test SIP Demo in emulator.

4. Clickable Status Bar Icon

5. Properly Attaching Bitmap to Canvas

6. Install on SD card using adb.exe - doesn't work?

7. ported android input pheripheral issues