Crap, I should have quadruple checked. I was actually accidentally
using the cursor from the first list in the constructor for the second
adapter.
Sorry. Nevermind.
On Aug 30, 4:53 pm, eags eagsala...@gmail.com wrote:
Ok this is very very odd. My Activity has two list:
a) ListView
Ok this is very very odd. My Activity has two list:
a) ListView with a SimpleCursorAdapter connected to a regular cursor
b) A AutoCompleteEditText with a custom CursorAdapter connected to
Contacts.Phones cursor.
On list b, I then also connect a FilterQueryProvider, and then the
content of list
Actually I guess the table to use is Contacts.Phones but the question
still stands.
On Aug 28, 1:38 pm, eags eagsala...@gmail.com wrote:
I have an app where I want to list all phone numbers and the
associated contact name. I see that there is the Contacts.People
table for the purpose
I'm trying to pop up an AlertDialog when someone long presses a list
item. What I end up with is nested callback objects. I'm not sure if
that is the problem but simple Alert dialog examples are not working
for me. Here is what I want and is crashing:
a)Do you have bluetooth turned on? I haven't tried all the profiles
you listed but I do know that headset, and A2DP both work perfectly
for me.
b)This is a developer's group, not a users group. You'll probably
have better luck in the correct group (I don't know the url).
On Aug 28, 9:04 am,
??
Thanks.
On Aug 28, 3:24 pm, eags eagsala...@gmail.com wrote:
I'm trying to pop up an AlertDialog when someone long presses a list
item. What I end up with is nested callback objects. I'm not sure if
that is the problem but simple Alert dialog examples are not working
for me. Here
I have an app where I want to list all phone numbers and the
associated contact name. I see that there is the Contacts.People
table for the purpose of getting all phone numbers and that there is a
PERSON_ID to allow me to lookup the contact in Contacts.People.
Great.
The only problem is I can't
from onKeyDown(), you are
consuming the events and not allowing their normal behavior to run.
On Mon, Aug 10, 2009 at 7:15 PM, eags eagsala...@gmail.com wrote:
This behavior is actually very strange and apparently not quite as
simple as the event is not delivered to applications
never be called. You could put a breakpoint in it
to verify.
On Tue, Aug 11, 2009 at 11:54 AM, eags eagsala...@gmail.com wrote:
Thanks Dianne. I am still confused as to why consuming all events in
onKeyDown breaks the normal behavior when relaunching the app? If I
leave onKeyDown
This behavior is actually very strange and apparently not quite as
simple as the event is not delivered to applications.
Indeed if I try and capture the key event, I cannot. However if I
just do this:
public boolean onKeyDown(int keyCode, KeyEvent event)
{
return true;
is just making the launch behavior different and isn't
actually causing the activity to be killed. Strange.
On Aug 10, 7:15 pm, eags eagsala...@gmail.com wrote:
This behavior is actually very strange and apparently not quite as
simple as the event is not delivered to applications.
Indeed if I
I have implemented onKeyDown and can successfully intercept
KEYCODE_BACK and many others to prohibit the default behavior. Is
this not possible with KEYCODE_HOME? I have a test activity that will
only finish() if KEYCODE_A is seen. Even KEYCODE_BACK does nothing.
However KEYCODE_HOME continues
about it.
Anyway, if anyone has any insight into this problem and could throw me
a clue that would be very helpful as I'm totally confused myself.
Thanks.
On Jul 24, 10:23 am, Gregg Reno gregg.r...@gmail.com wrote:
Excellent! Thanks for posting this eags. From all of the postings
I've seen
) {
item.setEnabled(isChecked);
dbAdapter.updateAlarm(item.getId(),
item);
}
});
enabledCheckBox.setChecked(enabled);
On Jul 25, 11:46 am, eags eagsala...@gmail.com wrote
=20sp
android:layout_marginLeft=10sp
android:textSize=20sp android:text=0 Days /
/LinearLayout
On Jul 10, 9:44 am, eags eagsala...@gmail.com wrote:
Bump. Mystery remains. Why can the entireListViewitem not be
madeclickable???
On Jul 9, 7:57 pm, eags eagsala
Ok, I now have a working solution!! So first of all, unfortunately I
changed a few things at once so I can't really say what I changed that
made things work.
First of all, I set the first nested LinearLayout property
android:clickable=true. That seems obvious and I think I did that
before but
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1
android:id=@+id/alarmsListView
/
/LinearLayout
On Jul 23, 6:20 pm, eags eagsala...@gmail.com wrote:
Ok, Just for the practice, I'm implementing something very similar to
the Alarm
android:layout_height=60dp
android:layout_gravity=center_vertical
android:id=@+id/itemEnabledCheckBox
/CheckBox
/LinearLayout
On Jul 23, 6:22 pm, eags eagsala...@gmail.com wrote:
Next is the layout for the main app:
?xml version=1.0 encoding=utf-8
Ok, Just for the practice, I'm implementing something very similar to
the Alarm Clock app included in Android by default. I'm going to put
each file in their own post.
First in this post, Alarmsutta.java which includes the main setup, and
the CursorAdapter:
package net.esalazar.alarmsutta;
that might be all you are interested in but here is the
AlarmDBAdapter, followed by the Alarm class, followed by the
PreferencesActivity layout for creating a new alarm, followed by the
associated class NewAlarm:
package net.esalazar.alarmsutta;
import java.util.Date;
import
I am trying to set the result in a PreferencesActivity so I can look
at extras in the caller inside onActivityResult.
The problem is that in onActivityResult(int requestCode, int
resultCode, Intent data), resultCode is always set to 0
(RESULT_CANCELLED) and the data is always null.
This sort of
not at the point where I have
implemented the content provider yet so I want to pass updated
variables back to the main activity using extras. (Just in case you
were wondering).
It has been an interesting exercise anyway.
On Jul 21, 4:50 pm, Mark Murphy mmur...@commonsware.com wrote:
eags wrote
Bump. Mystery remains. Why can the entire ListView item not be made
clickable???
On Jul 9, 7:57 pm, eags eagsala...@gmail.com wrote:
And I tried making sure the first sub LinearLayout was not fill_parent
for width or height. No dice.
On Jul 9, 7:52 pm, eags eagsala...@gmail.com wrote
I didn't include that code because I assumed the issue was with the
list item. I am just using the ListView like in other examples that
work for me so I didn't think the problem could be there. Here is the
layout anyway:
?xml version=1.0 encoding=utf-8?
LinearLayout
Since I'm getting a few questions about the list view itself and what
I'm doing with it, here is that code. This code worked perfectly with
a simple_list_view_item_1 (or whatever it is called) and a regular
ArrayAdapter. All I did was switch out the layout resource I specify
for the adapter and
not the group
then make the click lister t test with a toast
On Jul 9, 1:32 am, eags eagsala...@gmail.com wrote:
Hi, bump again.
On Jul 8, 7:52 pm, eags eagsala...@gmail.com wrote:
Bump.
Hi someone please? I think this is probably something pretty simple
that I'm just missing
, eags eagsala...@gmail.com wrote:
So I methodically tried removing items from my top level LinearLayout
in the list item layout until clicking started working at the top
level. It turns out that with LinearLayout, you can only have one
child (total, not just immediate children) before clicking
And I tried making sure the first sub LinearLayout was not fill_parent
for width or height. No dice.
On Jul 9, 7:52 pm, eags eagsala...@gmail.com wrote:
Anyone?? Total mystery. I played around with .bringToFront() and
friends with no avail. I'm thinking the issue is simply that the list
I created a custom layout and adapter for a list view but now I cannot
make it clickable? Is there anything to look out for here? My list
item looks almost exactly like the alarms in the Alarm Clock app that
comes installed with Android. Everything seems to work fine but now
clicking on the
Ok, here is the layout:
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=horizontal
android:gravity=center_vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
And here is the adapter:
package net.esalazar.alarmsutta;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
And here are code snips of how I use.
To set up:
aa = new AlarmListAdapter(this, R.layout.alarmlist_item,
alarms);
alarmsListView.setAdapter(aa);
To update:
switch( requestCode ) {
case( NEW_ALARM ): {
Bump.
Hi someone please? I think this is probably something pretty simple
that I'm just missing.
Thanks.
On Jul 8, 1:20 pm, eags eagsala...@gmail.com wrote:
I created a custom layout and adapter for a list view but now I cannot
make it clickable? Is there anything to look out for here
Hi, bump again.
On Jul 8, 7:52 pm, eags eagsala...@gmail.com wrote:
Bump.
Hi someone please? I think this is probably something pretty simple
that I'm just missing.
Thanks.
On Jul 8, 1:20 pm, eags eagsala...@gmail.com wrote:
I created a custom layout and adapter for a list view
I got it. There was an error in another resource file (layout.xml)
that I was ignoring until later but it looks like if there are any
errors then new resource files don't get checked or updated in
R.java.
On Jan 8, 10:54 pm, eags eagsala...@gmail.com wrote:
I added a new file colors.xml
I added a new file colors.xml to res/values/ . That seemed to go OK
but the R.java class was *not* automatically updated. Is there a
right way to add these files? I just did ctrl-N then selected
File and named the file colors.xml. Then I just typed in the xml
which looks fine. I looked for
Are you backed up or are is my question about the Android Marketplace
not appropriate somehow? Please let me know what is happening. I
have posted the same question twice now several hours ago and still it
has not appeared in the group.
Thanks.
., if you'd like to try one you can take
a look athttp://andappstore.com/
Al.
eags wrote:
I'm curious what the deal is with the Android Marketplace. It seems
like:
- You can't browse it or download apk files in the marketplace from a
desktop computer. Just previews of a few apps
I can't think of any examples of google being rutheless. Effective
and aggressive yes, but ruthless to me implies mean and dirty which
doesn't really jibe with my take on google's actions in the past. The
800 pound gorilla didn't get huge the way Microsoft did, they got huge
by providing
I'm curious what the deal is with the Android Marketplace. It seems
like:
- You can't browse it or download apk files in the marketplace from a
desktop computer. Just previews of a few apps.
- Marketplace is not installed in the emulator in the sdk
- Can't find anything on how to install it
-
40 matches
Mail list logo