What to do when other 'Home' app crashes? Reboot only?

by Kakyoin » Wed, 11 Mar 2009 14:00:53 GMT

Sponsored Links
 Hi. I should post this as a follow-up to my previous thread.

But I think this problem (may be) somewhat big so I create a new

1. If a user install an alternative to 'Home'. (I'll call it 2nd Home)

2. He set this 2nd Home to launch by default for 'Home' action.

3. Whenever this 2nd Home crashes, their only choice is to reboot the
system... ?

Because, after setting 2nd Home as default,  the 'chooser' will not
come out any more even if you press the 'Home' button.

In some case if this 2nd Home crashes in its initialization state,
user can go no where, can't even go to Settings -> Manage App -> Clear

Am I missing something?

Thank you in advance.


What to do when other 'Home' app crashes? Reboot only?

by Kakyoin » Wed, 11 Mar 2009 15:35:11 GMT

 Hi. Thank you that's cool and will help users escape this situation.

But I wonder if we can handle this by code? Somewhere in the 2nd Home

All I can think of is doing this when error occurs:

               Intent i = new Intent();
                Intent choose = Intent.createChooser(i, "Forced chooser");

This will create out own chooser containing 2 choices: 'Home' and '2nd

This work quite well but when 2nd Home is NOT the default, and user
press the Home button -> there'll be 2 choosers up on screen. Up to
this point it's not a serious(dead-lock) problem now. But it just
looks weird having 2 choosers on the screen, one on top of the other.

I wonder if there's any other solution?

any opinions are welcome.

Thank you in advance. =)

Sponsored Links

Other Threads

1. Do I need a dev handset, or can I develop using a standard G1 from T-Mobile?

Hello everyone,

I found out about the developer's handset after I already bought a G1
with a 2 year contract with T-Mobile (which I got about a week ago).
Do I have to shell out another $399 for the developer's unlocked
device which accepts unsigned code? Or can I get by with a locked G1
which only accepts signed apps?

I know I'll have to wait for the formal release of any SDK if I don't
have a dev handset, and be unable to get the preview versions
available to developers, but right now I'd like to avoid the expense
if I could.  So can I go ahead and develop full blown apps and
possibly even distribute them through the app store with my locked G1?



2. Saving a picture not in the Camera folder?


I'm trying for my app to create a picture this way:

        ContentValues contentValues = new ContentValues(3);
        contentValues.put(MediaColumns.DISPLAY_NAME, name);
        contentValues.put(ImageColumns.DESCRIPTION, desc);
        contentValues.put(MediaColumns.MIME_TYPE, "image/jpeg");
        Uri uri = getContentResolver().insert
(Media.EXTERNAL_CONTENT_URI, contentValues);
        outputStream = getContentResolver().openOutputStream(uri);
        /* write to outputStream then close it */

It works fine, except when doing this, the picture is written in the
"Camera" folder (/sdcard/dcim/Camera).
Since the picture was not taken with the camera, this is not

Is there any way to put it directly in dcim?

Actually, I also tried to create my file directly (not using the
content provider, but creating manually the file in /sdcard/dcim). The
problem is doing this way, the Pictures app doesn't seem to see my
image until I reboot the phone. Maybe there's a way to notify the
Pictures app so it rescans the pictures?

Thanks a lot for your help.


3. List activity performs worse each time it is "onStop()"ed and "onRestart()"ed

4. cell id - active and passive cells

5. Grid View focus problem on changing orientation

6. Localization and number / date formatting

7. ADP 1.1 (JFv1.43_Holiday.zip) import contacts from SIM card crashes