[android-developers] Re: Capturing exceptions on user's phones?

2009-04-27 Thread Glen Humphrey
Thread.setDefaultUncaughtExceptionHandler( new DefaultExceptionHandler(orgHandler)); On Apr 27, 2:45 pm, Glen Humphrey wrote: > I made some changes to your exception handler so that the user will > see the standard force close dialog on unhandled exceptions.  What I > am

[android-developers] Re: Capturing exceptions on user's phones?

2009-04-27 Thread Glen Humphrey
I made some changes to your exception handler so that the user will see the standard force close dialog on unhandled exceptions. What I am doing is getting the default android handler and passing it to the your default handler so that it can call the android handler after it is done. This is not

[android-developers] Re: Resetting checkboxes in a dialog with .setMultiChoiceItems()

2009-04-26 Thread Glen Humphrey
You can override onPrepareDialog to reset the checkboxes. On Apr 9, 7:16 am, DavidG wrote: > I'd like to have a dialog box which prompts the user to select from > various checkboxes, then confirm "Ok" or "Cancel". I have this > working, but my only issue is the dialog always retains the previous

[android-developers] Re: CursorAdapter on a database

2009-04-17 Thread Glen Humphrey
You can just run the query again like this. cursor.requery() On Apr 17, 12:16 pm, kingkung wrote: > Hi all, > > I have ListView whose CursorAdapter is bound to my local database > table.  Is there a good way to make it so that when new entries / new > data is inserted into my table, my ListView

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-07 Thread Glen Humphrey
There is an attribute for the TextView control that sets the number of times the marquee animation is repeated. android:marqueeRepeatLimit="number" or you can use this method textView.setMarqueeRepeatLimit(int) On Apr 7, 3:30 pm, Moto wrote: > Great that works! > > But I wonder how one could

[android-developers] Re: Sliding Text just like the phone's icon texts??

2009-04-02 Thread Glen Humphrey
I am not sure if this is what you need, but here it is. Try putting this attribute on your TextView. android:ellipsize="marquee" On Apr 2, 4:34 pm, Moto wrote: > Help? PLeasE? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[android-developers] Re: SQLite functions - how to use them?

2009-04-01 Thread Glen Humphrey
I've used this and it works for me. c.getCount(); On Apr 1, 12:34 pm, "nEx.Software" wrote: > I have found that, if you will be doing a lot of data access, compiled > statements will cut the time to complete most operations in half. This > is particularly true of inserts. Used in conjunction wi

[android-developers] Re: MapView

2009-03-26 Thread Glen Humphrey
Did you define the mapView field somewhere? If so is it a MapView type? On Mar 26, 12:01 am, heyuksel wrote: > Hi everyone, i'm a new developer on Android. I need your help. I look > tutorial HelloMapView > onhttp://developer.android.com/guide/tutorials/views/hello-mapview.html > . > > i use e

[android-developers] Re: Dynamic Forms UI

2009-03-26 Thread Glen Humphrey
You probably need to set the orientation of the LinearLayout to vertical. On Mar 26, 1:04 am, Ahmad Nadeem wrote: > > On Thu, Mar 26, 2009 at 1:01 PM, Ahmad wrote: > > >> I want to create a form designer application like user can create > >> custom form layouts .. there might be > > >> a li

[android-developers] Re: How to modify properties of a list in a ListActivity

2009-03-18 Thread Glen Humphrey
Take a look at List14.java in the API Demos sample code. It does something similar to what you are wanting to do. On Mar 18, 10:49 am, xinit wrote: > Hello > > I have a simple ListActivity midlet. It populates the list using a > String array which is passed to the setListAdapter method. > > i.e.

[android-developers] Re: Simple Cursor Adapter - List View

2009-03-18 Thread Glen Humphrey
Here is an example of the the simplest way I have found to do this type of thing. public class IconCursorAdapter extends SimpleCursorAdapter { IconCursorAdapter(Context context, int layout, Cursor cursor,String[] from, int[] to) { super(context, layout, cursor, from, to);

[android-developers] Re: CheckBox test= (CheckBox) findViewById(R.id.test); returns null

2009-03-17 Thread Glen Humphrey
I believe your xml should look like this with "android:id" instead of just "id". On Mar 17, 10:25 am, zeeshan wrote: > i changed the id but still same Null object. > same result for TextView and ProgressBar as well, however i can use > EditText successfully. > > On Mar 17, 5:04 pm, dan raaka