[android-developers] How does a Cursor work?

2008-12-08 Thread Taísa Cristina
Hi, when a database query retrieves a Cursor, what does it have in fact? I mean, does it have the whole result set in memory or keep a kind of pointer to each result row, and when I do cursor.moveToNext() it points to the next row? Or anything else? I need to deal with a long list of data, and I

[android-developers] Re: How does a Cursor work?

2008-12-12 Thread Taísa Cristina
every row and do something with it. It may not be a bad idea to wrap the cursor interface and don't expose the getCount() and random movement methods and make the contract explicit to the clients. Hope that helps. On Mon, Dec 8, 2008 at 1:51 PM, Taísa Cristina taisa.san...@gmail.com wrote: Hi

[android-developers] Handler and MessageQueue question

2009-04-03 Thread Taísa Cristina
Hi all, I have a Handler implementation that is used in my Activity. While handling the messages, there's a value of msg.what which makes my Activity to finish itself. My problem is that, when that killer message arrives, there's another one in the message queue also destined to my handler. In

[android-developers] Re: Handler and MessageQueue question

2009-04-03 Thread Taísa Cristina
, regardless of what happened to the activity. Handler doesn't know anything about the activity state. Did you say the main thread has its own handler?! So, if mine no more exists, the it will handle that message? On Fri, Apr 3, 2009 at 11:17 AM, Taísa Cristina taisa.san...@gmail.comwrote

[android-developers] Re: Handler and MessageQueue question

2009-04-06 Thread Taísa Cristina
is handled harmlessly when the activity is finished then you don't need to do anything special about it. Just leave it in the queue and it let your handler take care of it. Hope this helps. Greg On Apr 3, 11:31 am, Taísa Cristina taisa.san...@gmail.com wrote: On Fri, Apr 3, 2009 at 3:21

[android-developers] Re: code to uninstall applications

2009-08-27 Thread Taísa Cristina
I have a Service which enables/disables an application launcher activity. Can I change the application user-friendly name from my code? Tks On Aug 11, 2:18 pm, Dianne Hackborn hack...@android.com wrote: Hi, Android does not currently provide any way for an application to run when it is being

[android-developers] Changing application label from code

2009-08-27 Thread Taísa Cristina
Hi all, I have a Service which enables/disables an application launcher activity as follows. Can I change the application label from my code, while enabling the application launcher? ComponentName cName = new ComponentName(my.package.name, my.launcher.activity); int state = install ?

[android-developers] Handling key events in a paused Activity

2009-05-04 Thread Taísa Cristina
problem is: I need the paused Activity to receive key events. 1) Is that possible? 2) If so, how? (I have already tried setting takeKeyEvents(true), but whenever I press a key, the Bookmarks activity comes to the foreground) Thanks, Taísa Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
a specific key event in a similar situation? Is there a way to register my activity (or my application) for that? Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5, 2009 at 8:02 AM, ellipsoidmob...@googlemail.com ellipsoidmob...@googlemail.com wrote

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
I don't want to handle end call or home keys. I just want to handle another key, such as space bar, while my Activity is in background. Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5, 2009 at 1:45 PM, Dianne Hackborn hack...@android.com wrote

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
Whenever I press a key, will the Bookmark activity handle it? Is it a default behavior that can *not* be configured? Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5, 2009 at 1:55 PM, Dianne Hackborn hack...@android.com wrote: You can't. On Tue

[android-developers] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
whenever he wanted to press a key and make stuff... Is there a way to register for receiving key strokes if my application is compiled with the emulator/device image? (should I ask it on android-platform?) Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 On Tue, May 5

[android-developers] Is a NetworkInterface mapped to a NetworkInfo (type)?

2009-05-07 Thread Taísa Cristina
Hi all, Is there any mapping among Network Types and Network Interfaces? I mean, is it possible to found out whether a Network Interface is related to MOBILE or WIFI network type, for example? Thanks, Taísa Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453

[android-developers] Removing/adding activities from/to an ActivityGroup

2009-05-18 Thread Taísa Cristina
Hi all, I have an ActivityGroup containing three embedded Activities (A, B and C). Sometimes I need to destroy A and B to start another one, D, and when D is finished, A and B are re-created. Is it possible? If so, how can I do it? Thanks, Taísa

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-19 Thread Taísa Cristina
of the activity to be deleted,true); And Accordingly you can start the other activity actitivitygroup.getLocalActivityManager().startActivity(id); -- Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP 55 19 8152-7453 --~--~-~--~~~---~--~~ You received

[android-developers] Positioning a view below another one inside a RelativeLayout via code

2009-05-19 Thread Taísa Cristina
Hi all, I need to populate a RelativeLayout (mainLayout) via code. I need view A to be aligned to its parent top edge, and B to be below A. I can correctly position A by using RelativeLayout.ALIGN_PARENT_TOP rule. Then I set an id to view A, and try positioning B below it by using

[android-developers] Re: Positioning a view below another one inside a RelativeLayout via code

2009-05-19 Thread Taísa Cristina
Anybody? I do need it... Taísa On Tue, May 19, 2009 at 4:36 PM, Taísa Cristina taisa.san...@gmail.comwrote: Hi all, I need to populate a RelativeLayout (mainLayout) via code. I need view A to be aligned to its parent top edge, and B to be below A. I can correctly position A by using

[android-developers] Re: Positioning a view below another one inside a RelativeLayout via code

2009-05-19 Thread Taísa Cristina
not work. Is there a way it can work? Taísa On Tue, May 19, 2009 at 5:24 PM, Taísa Cristina taisa.san...@gmail.comwrote: Anybody? I do need it... Taísa On Tue, May 19, 2009 at 4:36 PM, Taísa Cristina taisa.san...@gmail.comwrote: Hi all, I need to populate a RelativeLayout (mainLayout

[android-developers] ActivityGroup + RelativeLayout problem [urgent]

2009-05-20 Thread Taísa Cristina
Hi all, I have an ActivityGroup with three Activities, A, B and C. I get the three activities views by using View viewA = getLocalActivityManager().startActivity(mActivityAId, mActivityAIntent).getDecorView() (for A, B and C) I need viewA to be aligned to its parent top edge, and viewC to be

[android-developers] Re: Removing/adding activities from/to an ActivityGroup

2009-05-21 Thread Taísa Cristina
activity). \o/ Thanks a lot for the attention! On Thu, May 21, 2009 at 8:48 AM, Android Users androidmai...@gmail.comwrote: Just a guess. Try destroying the activity B without destroying activity A. This may resume the activity A as soon as the activity B is destroyed. -- Taísa Cristina Costa

[android-developers] Always-showing view among activities

2009-05-21 Thread Taísa Cristina
Hi all! Is there a way to have a view always-showing between activities? I say, I need a button to be always appearing on the bottom of the screen. I could get it working with an ActivityGroup, but I got a problem. My application can work with more than one level of activities, or rather,

[android-developers] Re: Always-showing view among activities

2009-05-25 Thread Taísa Cristina
Any idea? Taísa On Thu, May 21, 2009 at 10:21 AM, Taísa Cristina taisa.san...@gmail.comwrote: Hi all! Is there a way to have a view always-showing between activities? I say, I need a button to be always appearing on the bottom of the screen. I could get it working with an ActivityGroup

[android-developers] Re: Always-showing view among activities

2009-05-25 Thread Taísa Cristina
ur code snippet that's responsible for this... -- Regards, Sujay Walt Disney http://www.brainyquote.com/quotes/authors/w/walt_disney.html - I love Mickey Mouse more than any woman I have ever known. -- Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP

[android-developers] ActivityGroup + embedded Activity search window

2009-05-27 Thread Taísa Cristina
Hi all, I have an ActivityGroup with an embedded TabActivity and another simple Activity. The TabActivity has three tabs, each one with a ListActivity. When I try to start a search from a list (calling onSearchRequested()), I get a WindowManager$BadTokenException. I've tried requesting focus

[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-28 Thread Taísa Cristina
it. -- Taísa Cristina Costa dos Santos Computer Engineer Brazil, SP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: ActivityGroup + embedded Activity search window

2009-05-28 Thread Taísa Cristina
...@4376ad40 is not valid; is your activity running? Any ideas? On Thu, May 28, 2009 at 10:07 AM, Taísa Cristina taisa.san...@gmail.comwrote: When I need to show dialog windows I use my parent context. That was the only way I could show them with no BadTokenException. But when showing a search window

[android-developers] Re: Embedded activityGroup and Dialog box

2009-06-05 Thread Taísa Cristina
I have a similar problem... Any answer? On Tue, Apr 14, 2009 at 4:24 PM, Arnaudweb arnaud...@gmail.com wrote: Hello, I'm trying to run an activityGroup embedded inside another activityGroup. (Example : an activityGroup inside a tabActivity) This seems to display properly but throw an

[android-developers] Disabling Notification expanded view

2009-06-10 Thread Taísa Cristina
Hi all, Is there a way to disable the notification bar expanded view while my activity is running? I could see that voice call does it by using a non-public API. Is there a public one to do so? Taísa --~--~-~--~~~---~--~~ You received this message because you

[android-developers] EditText accepting only certain characters

2009-06-17 Thread Taísa Cristina
Hi all, I have an EditText which can only accept some specific characters (7-bit encoding). How is the best way to control the user input in such case? Should I have a dedicated input method for that? Taísa --~--~-~--~~~---~--~~ You received this message because

[android-developers] Programmatically choose an input method

2009-06-18 Thread Taísa Cristina
Is it possible? I have an EditText which needs to use a certain input method which is already installed in the device (but is not currently running). How could I do this? Taísa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the