Thread.setDefaultUncaughtExceptionHandler usage

by Dianne Hackborn » Thu, 21 May 2009 06:02:02 GMT


Sponsored Links
 At a very basic level, if you don't trust the activities you are running in
your process to be stable, then you certainly shouldn't be trusting them
enough to load in your own process in the first place.

On Wed, May 20, 2009 at 3:41 AM, Nik Bhattacharya <





-- 
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, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



Other Threads

1. Prevent Rooted phones to access sqlite db and preferences

Hello,

I have seen a few discussions on this, but I just wanted to see if
there has been anything new.

Currently, a rooted phone can access the /data/data/
com.your.company.here/ path. Insides are all the wonderful areas like
databases, files, and preferences. In fact, I was actually horrified
to see that I could browse all the apps data on my development phone.

Is there a way to protect someone from accessing these (ie, password
protect the database from shell access)?

My issue is specifically in the database. While there isn't anything
regarding passwords stored inside, there is some intellectual property
in terms of the actual data and schema that could make it easier for
people to copy what my application does.

My solution right now is to clear the particular tables I don't want
people seeing in the database in onDestroy (when the user exits), or
more accurately in onPause() with isFinishing(). Every time the
application is launched the database is repopulated, so I am not
worried about losing any data. I do realize that this isn't foolproof,
but it seems to be better then nothing.

Is there a better way?

Regards,

Steven Gillan

-- 

2. ListView graphic overflow inside a tab

Hi at all,

I am a little newbye in Android programming and I try to make  a UI
which shows five tab at the bottom on the windows, one of these tab
when pressed will shows  a list of rows.

In fact when the tab is pressed I start another activity which
contains a ListView, the main Activity is an TabActivity.

The main.xml (TabActivity) is :

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <RelativeLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
         />
        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:padding="0px"
            android:layout_margin="0px"
        >

            <TextView
                android:id="@+id/textview1"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a tab"
                />
            <TextView
                android:id="@+id/textview2"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is another tab" />
            <TextView
                android:id="@+id/textview3"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a third tab" />
            <TextView
                android:id="@+id/textview4"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="this is a third tab" />

        </FrameLayout>


     </RelativeLayout>



</TabHost>

and the layout of second Activity(ListView) is:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <ListView
    android:id="@+id/earthquakeListView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
  />
</LinearLayout>

See here for see the problem :

https://docs.google.com/leafid=0ByOVgdPrIFXYNTVkNmJjNjktMzY3Mi00MDUxLWI2YTUtOWJhZGYyMTUyMGYz&hl=en

Anyone can help me?

Why this forum functionality are poor like this?I would like to format
better my code and mr problem!

-- 

3. Access to grids of table

4. Any sample code for using AccountManager to authenticate users?

5. Android OS Problem: Left-to-right alphabets are rendered incorrectly

6. Coloring app in android

7. unable to open sync connection