Getting Stack overlfow error, pls help

by manohar » Tue, 31 Mar 2009 15:02:20 GMT


Sponsored Links
 I am learning android.  I stuck up in one problem while building an
application.  It is showing Stack overflow message  expanding
(0x41049200 to 0x4104900). After this it shows null pointer exception
and app is exiting. Any one guide me on this pls.. pls hellp
--~--~---------~--~----~------------~-------~--~----~



Getting Stack overlfow error, pls help

by Jean-Baptiste Queru » Tue, 31 Mar 2009 20:04:42 GMT


 Could it be that you're building a very deep view hierarchy (more than
about a dozen levels, though the exact critical depth depends on the
specific views you use)? Those are common causes of stack overflows.

(Beyond that, there's a known bug in 1.0/1.1 where the stack trace for
stack overflows isn't properly reported, so they can be somewhat hard
to debug).

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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


Sponsored Links


Getting Stack overlfow error, pls help

by zhoubo shi » Wed, 01 Apr 2009 11:58:59 GMT


 hi,
 I think you could debug your app with eclipse. Maybe ,your codes has
problem.
certainly, you can show your code to us.
*
regardsshizhoubo
*2009/3/31 Jean-Baptiste Queru <j...@android.com>



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



Other Threads

1. sms database

hi.
i am new to android .
i want to devlop an appliaction in which i put lots of sms in the
phone's sms database and then i would like to send those sms to
contacts which user selected.

1)so first i want to know how can i see the sms database.
2)and how can i update those sms database

so any suggestio or sources codes to help me?

thanks.
jaimin

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

2. OnItemClickListener cannot be resolved to a type

Hi,

I'm trying to run the example of ListView in this address:
http://developer.android.com/resources/tutorials/views/hello-listview.html

But I'm getting an error message for OnItemClickListener function:
"OnItemClickListener cannot be resolved to a type".

When I'm importing android.widget.AdapterView.OnItemClickListener
again I'm getting this error:
"The type new AdapterView.OnItemClickListener(){} must implement the
inherited abstract method
AdapterView.OnItemClickListener.onItemClick(AdapterView<?>, View, int,
long)"

This is the onCreate function:

@Override
        public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);

          setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item,
COUNTRIES));

          ListView lv = getListView();
          lv.setTextFilterEnabled(true);

          lv.setOnItemClickListener(new OnItemClickListener() {
            public void onItemClick(AdapterView<?> parent, View view,
                int position, long id) {
              // When clicked, show a toast with the TextView text
              Toast.makeText(getApplicationContext(), ((TextView)
view).getText(),
                  Toast.LENGTH_SHORT).show();
            }
          });
        }

How can I solve this error?

Thanks

--

3. Is it possible for my application to add items the the System Setup menu?

4. Easy way to delete a bitmap?

5. ADB ERROR

6. Can I run pure Java jars on Android?

7. How to get reference of (SQLiteDatabase) to use android contact database