[android-beginners] Re: Having trouble with setDataSource() for MediaPlayer

2010-07-04 Thread appsgrrl
ource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); That does the trick On Jun 30, 11:15 pm, appsgrrl wrote: > I've gotten the MediaPlayer to work with the create() on a resource. > I'm trying to get it to work with a file in the assets folder.  I've > tried all s

[android-beginners] Having trouble with setDataSource() for MediaPlayer

2010-06-30 Thread appsgrrl
I've gotten the MediaPlayer to work with the create() on a resource. I'm trying to get it to work with a file in the assets folder. I've tried all sorts of combinations with the setDataSource() method, but I keep getting errors. Here's one of my error traces: E/PlayerDriver( 31): Command PLAYE

[android-beginners] Re: onHandleIntent(Intent) method does not get called

2010-06-23 Thread appsgrrl
after it is started. I return START_STICKY from onStartCommand, but that does not seem to have an effect. I guess I need to understand the life cycle stuff a little more. On Jun 23, 9:05 pm, appsgrrl wrote: > Hi -- You know, that was one of the first things I had thought of, so > I put a c

[android-beginners] Re: onHandleIntent(Intent) method does not get called

2010-06-23 Thread appsgrrl
() I tried it again, and played with the arguments to no avail. I assume that I use my incoming arguments and pass them to the super.onStartCommand(), correct? Thanks again for your help On Jun 23, 7:47 am, Mark Murphy wrote: > On Wed, Jun 23, 2010 at 10:37 AM, appsgrrl wrote: > &

[android-beginners] Re: onHandleIntent(Intent) method does not get called

2010-06-23 Thread appsgrrl
hat's what I cannot figure out from the docs. Betty On Jun 23, 4:02 am, Mark Murphy wrote: > On Wed, Jun 23, 2010 at 1:03 AM, appsgrrl wrote: > > I'm tryng to get an IntentService to work, and I have extended > > IntentService, and I implemented a onHandletIntent(I

[android-beginners] onHandleIntent(Intent) method does not get called

2010-06-22 Thread appsgrrl
Hi -- I'm tryng to get an IntentService to work, and I have extended IntentService, and I implemented a onHandletIntent(Intent) method. I put some logging in there, but this method never gets called. I must be doing something really dumb, but I don't know what it is. Is there something else I n

[android-beginners] Re: My first post -- ArrayAdapter question

2010-06-12 Thread appsgrrl
ayout with a single TextView and it should work. > > > > On Sat, Jun 12, 2010 at 7:00 AM, appsgrrl wrote: > > Hi all,  this is my first post, and I'm just starting out, so it will > > probably be stoopid. > > > I'm trying to use the ArrayAdatper(Context,

[android-beginners] My first post -- ArrayAdapter question

2010-06-11 Thread appsgrrl
Hi all, this is my first post, and I'm just starting out, so it will probably be stoopid. I'm trying to use the ArrayAdatper(Context, int textViewResourceId, Listobjects) constructor. What resourceId am I supposed to use for the second parameter? I want this to apply this ArrayAdapter to a Spin