[android-developers] Re: submitting mock gps locator late

2008-04-15 Thread SnowDrifter
A mock GPS setup was not allowed I believe for the challange. On Apr 15, 4:50 pm, rcs <[EMAIL PROTECTED]> wrote: > Google folks, > > My team submitted an app last night, but didn't submit the mock GPS > locator we'd created for it; is there a way to add that after the > deadline, or is that not a

[android-developers] RelativeLayout layout_below android:empty and list

2008-04-14 Thread SnowDrifter
I want to have a button at the bottom of a ListView and all is working well except when the list is empty and I have an android:empty TextView displayed. Since I can only have one layout_below I have to choose from android:list and android:empty. I am not aware of a way to have more than one. It

[android-developers] Re: How to force ViewBinder redraw?

2008-04-14 Thread SnowDrifter
Thank you both. Seems to be working perfectly now. On Apr 14, 7:06 am, Hielko <[EMAIL PROTECTED]> wrote: > The simple solution is to call getListView().invalidateViews(). > > On Apr 14, 7:41 am, SnowDrifter <[EMAIL PROTECTED]> wrote: > > > I can'

[android-developers] Re: How to force ViewBinder redraw?

2008-04-13 Thread SnowDrifter
I can't seem to find that call. I found a notifyDataSetChanged for SimpleCursorAdaptor. Is this what you are talking about? On Apr 13, 10:23 pm, xingye <[EMAIL PROTECTED]> wrote: > reportdatachanged > > On 4月14日, 上午9时51分, SnowDrifter <[EMAIL PROTECTED]> wrot

[android-developers] Re: How to force ViewBinder redraw?

2008-04-13 Thread SnowDrifter
I have tried both: getListView.requestLayout() and invalidate() neither of which seems to update it. It is however calling the ViewBinder code so it seems that it is almost doing the right thing. On Apr 13, 7:35 pm, SnowDrifter <[EMAIL PROTECTED]> wrote: > I have a value that I am writ

[android-developers] How to force ViewBinder redraw?

2008-04-13 Thread SnowDrifter
I have a value that I am writing to my list via a ViewBinder but I want to occasionally have it recalculate it's value. Is there a way to force the ViewBinder to update the values? Preferably without it disrupting the selection process. --~--~-~--~~~---~--~~ You rec

[android-developers] Re: Question on a Listview/SimpleCursorAdapter problem

2008-04-13 Thread SnowDrifter
If you are using onListItemClick it will give you the ListView for that selected item which you can access as a view if you cast it to whatever view you are using or use the id passed to index into your cursor and get the data out. TextView text = (TextView)(l.getChildAt(position)); On Apr 13, 4

[android-developers] Re: Getting the id of the currently selected list item in a ListActivity

2008-04-13 Thread SnowDrifter
Of course as soon as I ask the question I figure it out. getSelectedItemPosition() is what I was looking for. My brain is fried from trying to get this challange project done :) What is getSelectedItemId() returning anyhow? On Apr 13, 9:40 am, SnowDrifter <[EMAIL PROTECTED]> wrote:

[android-developers] Getting the id of the currently selected list item in a ListActivity

2008-04-13 Thread SnowDrifter
This seems like an easy question but I am trying to get the id (the index from 0 to x from the top down) of which item I am currently highlighting in the ListView of a ListActivity. I thought for sure that getSelectedItemId() was the one to use but this returns strange information. The top item i

[android-developers] Re: How to compose a layout with 2 layouts, one with a TextView and a Button and another one with a ListView?

2008-04-13 Thread SnowDrifter
Check out droid draw. it helps me a lot with this stuff: http://droiddraw.org/ I think I would remove the LinearLayout around the ListView components to start with. Otherwise it looks ok to me. What are you seeing that is wrong? You might give RelativeLayout a look too. On Apr 13, 4:21 am, "Fr

[android-developers] Re: Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
; } return false; } }); I really appreciate this!! Thanks Hielko !!! On Apr 12, 5:29 pm, SnowDrifter <[EMAIL PROTECTED]> wrote: > How is this done? I am not having any problems setting S

[android-developers] Re: Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
pm, Hielko <[EMAIL PROTECTED]> wrote: > The best approach is to let your ListActivity implement the ViewBinder > interface, and set your checkbox in the setViewValue method. > > On Apr 13, 12:52 am, SnowDrifter <[EMAIL PROTECTED]> wrote: > > > I am having troubl

[android-developers] Updating View in a SimpleCursorAdapter

2008-04-12 Thread SnowDrifter
I am having trouble updating the state of a Checkbox inside a SimpleCursorAdapter. I want to update the checkbox to reflect some data in my DB at the start of my ListActivity. My Layout is as follows: http://schemas.android.com/apk/res/ android" android:orientation="vertical" android:lay

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-12 Thread SnowDrifter
I guess the only other choice is to use a cursor adaptor and bind it to the data. That requires some changes that I don't want to have to do this close to the deadline. On Apr 11, 5:02 pm, SnowDrifter <[EMAIL PROTECTED]> wrote: > After looking at the Activity lifecycle I am not sur

[android-developers] Re: emulator of m5-rc15 problem

2008-04-11 Thread SnowDrifter
If you changed over from a previous version make sure you delete your image file in (probably): C:\Documents and Settings\YourName\Local Settings\Application Data \Android Delete the.img file and try again. I had issues with the old img file messing stuff up. If your background is the mountainsc

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-11 Thread SnowDrifter
After looking at the Activity lifecycle I am not sure if there are any other places I can put this update. Anyone have any ideas? On Apr 10, 9:50 pm, SnowDrifter <[EMAIL PROTECTED]> wrote: > I also tried using the getListView, which seems like the right thing > to use but at onStar

[android-developers] Re: Changing view widget properties in a ListAdapter

2008-04-10 Thread SnowDrifter
I also tried using the getListView, which seems like the right thing to use but at onStart it reports that it has views (when getCount is called) but all of the children are null. I also tried it at onContentChanged with no luck. On Apr 10, 9:20 pm, SnowDrifter <[EMAIL PROTECTED]> wrot

[android-developers] Re: Extending android.app.Application

2008-04-10 Thread SnowDrifter
I started here: http://code.google.com/android/intro/index.html download Eclipse and install the android package as instructed in the documentation above. using Eclipse will help you with setting up applications and your manifest. Enjoy! On Apr 10, 6:33 pm, WildLuka <[EMAIL PROTECTED]> wrote: >

[android-developers] Changing view widget properties in a ListAdapter

2008-04-10 Thread SnowDrifter
I have a list adapter with the following view: and I want to set the checkbox to clicked or not based off the state of a list of objects like so: ListAdapter tempListAdapter = this.getListAdapter(); //setup the checkboxes to reflect the data for(int idx = 0

[android-developers] Re: Error recieving broadcast null in LocationIntentReciever

2008-04-10 Thread SnowDrifter
Same here if I hit a breakpoint before I start another activity it does the same thing. broadcast null. I think it is because it queues up a bunch of updates while the breakpoint is stopped and even though you have unregistered your reciever you still get everything in the queue. On Apr 8, 10:39

[android-developers] Re: SQL WHERE clause?

2008-04-09 Thread SnowDrifter
mething like... > > select child.* from child join association on child.guid = > association.child_guid where association.parent_guid = ? > > And of course, you should change child.* to be whatever columns you > need and the ? should be your particular parent guid. > > On Apr 6, 10:24 am, Sno

[android-developers] SQL WHERE clause?

2008-04-06 Thread SnowDrifter
I am trying to figure out how to create a where clause (I think that is what I need) to filter one table with the data from another table. I have three tables. One is for "parents" one is for "children" and one is for associations between these two tables. The way I have done this is using GIUD i

[android-developers] Re: Android Emulator Keeps Dying

2008-04-06 Thread SnowDrifter
I usually close down eclipse, kill the adb process and the emulator (make sure eclipse isn't still hanging, kill it if it is). I would suggest using sysinternals process explorer to find and kill your processes. I use it ALOT while developing in android :). On Apr 6, 8:18 am, sasperilla <[EMAIL

[android-developers] Re: Getting the state of a checkbox inside of a listview

2008-04-06 Thread SnowDrifter
Apr 4, 2:19 am, xingye <[EMAIL PROTECTED]> wrote: > here is the demo code what you want. > > http://code.google.com/p/sharepath > > just checkout the source code, the checkable list in choosebuddy.java. > > On 4月4日, 上午10时57分, SnowDrifter <[EMAIL PROTECTED]> wr

[android-developers] Getting the state of a checkbox inside of a listview

2008-04-03 Thread SnowDrifter
I have a ListView that contains a list of checkbox and text pairs. I am having trouble figuring out how to access the data in the checkbox or get an onclick from the checkbox since there are n of them and I can't exactly give each one an ID. This has been posted before but nobody had a solution: