[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 ? Packa

[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 wrote: > Hi, Android does not currently provide any way for an application to run > when it is being uninstalled. > >

[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 Goo

[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 becaus

[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 are

[android-developers] ActivityGroup and window token

2009-06-05 Thread Taísa Cristina
Hi all, Do I have to set the window token for an embedded Activity when using ActivityGroup? Whenever I try displaying a dialog from the embedded Activity I get an error about its window token. I tried getting the parent's token and setting the embedded one to that value, but the parent's token w

[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 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 exception when i'

[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 wrote: > 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 I d

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

2009-05-28 Thread Taísa Cristina
n Thu, May 28, 2009 at 3:25 AM, Android Users wrote: > You have to be careful with the context in which you are using an activity > group. I encountered this problem when i was trying to show a dialog in an > activity but with different context. > So if you are using any context as para

[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 i

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

2009-05-25 Thread Taísa Cristina
d post 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 an

[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 wrote: > 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 a

[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, Activ

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

2009-05-21 Thread Taísa Cristina
single top activity). \o/ Thanks a lot for the attention! On Thu, May 21, 2009 at 8:48 AM, Android Users wrote: > 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í

[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 a

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

2009-05-19 Thread Taísa Cristina
such rule does not work. Is there a way it can work? Taísa On Tue, May 19, 2009 at 5:24 PM, Taísa Cristina wrote: > Anybody? > I do need it... > > Taísa > > > On Tue, May 19, 2009 at 4:36 PM, Taísa Cristina wrote: > >> >> Hi all, >> >> I need to

[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 wrote: > > 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 correctl

[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 "RelativeLa

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

2009-05-19 Thread Taísa Cristina
he respective activities. > > actitivitygroup.getLocalActivityManager().destroyActivity( activity to be deleted>,true); > > And Accordingly you can start the other activity > > actitivitygroup.getLocalActivityManager().startActivity(); > > > > > -- Taísa Cri

[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] 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] Re: Handling key events in a paused Activity

2009-05-05 Thread Taísa Cristina
e Activity 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

[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 wrote: > You can't. > > > On Tue,

[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 wrote: > No, you can&#

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

2009-05-05 Thread Taísa Cristina
I receive 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...@googlema

[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

[android-developers] Re: Handler and MessageQueue question

2009-04-06 Thread Taísa Cristina
mplemented handleMessage() in such a way that it > dropped messages if the activity was finished. > > In your case, if the message after the "killer" message is handled > harmlessly when the activity is finished then you don't need to do > anything special about it. J

[android-developers] Re: Handler and MessageQueue question

2009-04-03 Thread Taísa Cristina
ever it comes up, 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 Cristi

[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.

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

2008-12-12 Thread Taísa Cristina
r 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 wrote: >> Hi, >> >> when a database query retrieves a Curso

[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