[android-developers] Re: How to force soft keyboard to be visible?

2009-09-18 Thread Dianne Hackborn
. I'm beginning to think that I'm going to pull all the soft keyboard code out and let the user do the extra work. mike -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support

[android-developers] Re: SensorEvent value array ownership

2009-09-19 Thread Dianne Hackborn
. But if it is valid to use the reference to the underlying array making a copy would not be necessary. I suspect the real answer is not to depend on the behavior since it might change in the future. Rud http://mysticlakesoftware.com/ On Sep 18, 5:21 pm, Dianne Hackborn hack...@android.com wrote

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
not post at all if it is going to take me time to put together and test an example. Your choice. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails

[android-developers] Re: DisplayMetrics issue on Android1.6 SDK

2009-09-19 Thread Dianne Hackborn
http://easyandroid.com/bbs/viewthread.php?tid=19 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted

[android-developers] Re: store data in registory

2009-09-19 Thread Dianne Hackborn
to store it on device. Is there something like registory in android. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-19 Thread Dianne Hackborn
values in Java code? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I

[android-developers] Re: Orientation : onStop onDestroy called from BACK key or not ?

2009-09-19 Thread Dianne Hackborn
) { ... do some cleaning here } return super.onKeyDown(keyCode, event); } -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
it in the XML. I added the style tag based upon this post: http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/ I sincerely hope that I am making a stupid, obvious mistake. Thank You, Jason On Sat, Sep 19, 2009 at 1:25 PM, Dianne Hackborn hack...@android.com wrote

[android-developers] Re: Android Toast Duration

2009-09-19 Thread Dianne Hackborn
(Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.comwrote: You are making a theme, which is a kind of style that applies to an entire context, but just a UI element. You

[android-developers] Re: Reading if the Notification Bar is open?

2009-09-19 Thread Dianne Hackborn
...Any ideas on how I would catch that?(Note: I can't use the built in notification sound tools because I'm not showing a notification at all) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide

[android-developers] Re: How do I know whether my device is currently charging?

2009-09-19 Thread Dianne Hackborn
() in the Context class (which is a base class for Activity, Service, etc.). -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.1 Available! -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-19 Thread Dianne Hackborn
as whatever proper type? On Sep 20, 2009, at 1:33 AM, Dianne Hackborn wrote: You are trying to retrieve an attribute identifier as a dimension, which is incompatible. If you want to get the value of an attribute in the theme, you can use the Theme class (though typically you will use declare

[android-developers] Re: Default Styles?

2009-09-19 Thread Dianne Hackborn
for this ButtonBar in the documentation, hoping to find other similar styles I could use. I *thought* I would find it in R.style: http://developer.android.com/reference/android/R.style.html , but it seems I have mistaken. It is not there. Can anyone tell me where I can find such styles? -- Dianne

[android-developers] Re: Get dimension from R.attr in Java code

2009-09-20 Thread Dianne Hackborn
You need to use the Theme API to retrieve the values of attributes associated with the theme. On Sun, Sep 20, 2009 at 1:19 AM, an0...@gmail.com wrote: Is it the only way? I think it is too overkill. On Sep 20, 2009, at 12:43 PM, Dianne Hackborn wrote: I'm just saying you need to retrieve

[android-developers] Re: Two SurfaceViews in a FrameLayout

2009-09-20 Thread Dianne Hackborn
is the way to get the GLSurfaceView object when it is an overlay? On Jul 30, 6:40 am, Dianne Hackborn hack...@android.com wrote: It's probably not the best way, but right now you simply can not have multiple overlapping surface views in a window, so the only way to achieve this is to render

[android-developers] Re: HOW TO UNINSTALL ANDROID DEFAULT APPLICATION

2009-09-20 Thread Dianne Hackborn
, For professional use, I need to uninstall default application (camera, browser, etc...). It seems not to be possible via the application manager. Is there a way to do it? Thanks -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions

[android-developers] Re: Android Toast Duration

2009-09-20 Thread Dianne Hackborn
, 2009 at 3:08 PM, Dianne Hackborn hack...@android.com wrote: (Btw, Api demos has one or two examples of creating custom themed dialogs, I believe in the app section.) On Sat, Sep 19, 2009 at 12:07 PM, Dianne Hackborn hack...@android.com wrote: You are making a theme, which is a kind

[android-developers] Re: How do I know whether my device is currently charging?

2009-09-21 Thread Dianne Hackborn
you're suggesting *is* what I'm after, but I'm unwilling to use undocumented API features since they risk disappearing without notice. Regards //Johan On 19 Sep, 22:29, Dianne Hackborn hack...@android.com wrote: What do you mean by in use? You can find out whether you are attached to a power

[android-developers] Re: Hierarchy Viewer

2009-09-21 Thread Dianne Hackborn
everybody, I would like to know how the Hierarchy Viewer tool does to get information from phone screen? Is it use telnet or ADB? I need to use these same information in my own tool. By Marcelo Alves -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread Dianne Hackborn
in advance.. James On Sep 19, 8:42 am, Dianne Hackborn hack...@android.com wrote: The G1 has a keyboard, so it works as I said -- the IME is not shown by default. This is a policy decision of the platform. On a myTouch, since it doesn't have a keyboard, the IME will be shown

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-21 Thread Dianne Hackborn
in conjunction with the IME. On Mon, Sep 21, 2009 at 10:15 AM, Dianne Hackborn hack...@android.comwrote: All I can say is the edit contacts activity in the standard platform does this just fine, using the standard API. Either you are doing something different than it, or HTC's IME has some different

[android-developers] Re: Animation

2009-09-21 Thread Dianne Hackborn
on this part for almost over a month now. Thanks, HVT -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should

[android-developers] Re: Android 1.6 SDK is here!

2009-09-21 Thread Dianne Hackborn
...@android.com -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: Widgets changes with 1.6?

2009-09-21 Thread Dianne Hackborn
, AppWidgetProvider.onUpdate(...) is never called. Is there something I missed? Thanks a lot, BoD -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All

[android-developers] Re: My app is getting killed while I launch an external intent

2009-09-21 Thread Dianne Hackborn
, the other action is sending me data which I get in onActionComplete. Any thoughts? On Aug 22, 3:05 pm, Dianne Hackborn hack...@android.com wrote: That is the normal behavior -- your app is in the background, not relevant to what the user is currently doing, so its process may be killed to use

[android-developers] Re: How to split a screen into two? One running with an application and the other with another application?

2009-09-21 Thread Dianne Hackborn
will be of great help. Karthik -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others

[android-developers] Re: How to turn off screen

2009-09-21 Thread Dianne Hackborn
? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them

[android-developers] Re: Multiple notifications with one status bar icon

2009-09-21 Thread Dianne Hackborn
able to create a notification without an icon at all would work too. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions

[android-developers] Re: How can I get Activity object from Intent object or something else

2009-09-21 Thread Dianne Hackborn
the reference to that Activity??? You can't. That would be a security violation. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send

[android-developers] Re: How to split a screen into two? One running with an application and the other with another application?

2009-09-22 Thread Dianne Hackborn
experiment I did with Theme.Translucent as well. Any light on this? Karthik On Tue, Sep 22, 2009 at 8:47 AM, Dianne Hackborn hack...@android.comwrote: There is no need to use SurfaceView for that, just make your own activity transparent such as with Theme.Translucent. Anyway, the UI model

[android-developers] Re: How to split a screen into two? One running with an application and the other with another application?

2009-09-22 Thread Dianne Hackborn
As I understand these are default themes and it doesnt require any change in my resource files. Am I right? Karthik On Tue, Sep 22, 2009 at 12:26 PM, Dianne Hackborn hack...@android.comwrote: You need to set the theme in the manifest. The code sample is missing the @ in front of android

[android-developers] Re: HTC Magic Keyboard compatibility issue

2009-09-22 Thread Dianne Hackborn
? This would be highly useful for any application that is implementing custom views. Thanks Lee -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e

[android-developers] Re: Changing application label from code

2009-09-22 Thread Dianne Hackborn
but this is also not working. Is there a problem in the format Im using? Is any twikis on code needed? Thanks a lot, Renato On 27 ago, 23:07, Dianne Hackborn hack...@android.com wrote: Sorry, there is currently no way to change the label dynamically. On Thu, Aug 27, 2009 at 11:06 AM, Taísa

[android-developers] Re: Enable / Disable android widgets runtime.

2009-09-23 Thread Dianne Hackborn
, Manjunatha -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: does android provides API for muiti tap?

2009-09-23 Thread Dianne Hackborn
You can easily write an IME that does this. Start off with the SoftKeyboard sample code. On Wed, Sep 23, 2009 at 9:41 PM, and.pradeep and.prad...@gmail.com wrote: How to achieve multi tap for 3x4 virtual keyboard? Regards Pradeep -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: Regarding Process Context

2009-09-23 Thread Dianne Hackborn
-- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Dianne Hackborn
bahadir.ya...@gmail.com Hello All, Is there a way to add my IME Preferences to the LocaleText menu, just like the Latin and Pinyin IME's. Or is this restricted to the keyboards that ship with the platform? Many thanks -- Bahadır Yağan -- Dianne Hackborn Android framework engineer

[android-developers] Re: IME Preference in LocaleText

2009-09-24 Thread Dianne Hackborn
Or the doc is here: http://developer.android.com/reference/android/R.styleable.html#InputMethod On Thu, Sep 24, 2009 at 9:15 AM, Dianne Hackborn hack...@android.comwrote: You need to specify the settings activity in your meta-data. You can look at the LatinIME code as an example. 2009/9/24

[android-developers] Re: Get active context dynamically of an application

2009-09-24 Thread Dianne Hackborn
the active Context dianamically? Thanks -- Best Regards, Atif Gulzar I Unicode, ɹɐzlnƃ ɟıʇɐ -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e

[android-developers] Re: How can I get Activity object from Intent object or something else

2009-09-24 Thread Dianne Hackborn
the others. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-24 Thread Dianne Hackborn
against my QA people to explain this uncontrolled behavior. tia, mike -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions

[android-developers] Re: Soft Keyboard

2009-09-24 Thread Dianne Hackborn
for this to work? - Settings | Locale Data | Keyboard [Checked]? - Something else? Best Regards, Eric -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply

[android-developers] Re: Need a way to simulate Button Click Event.

2009-09-24 Thread Dianne Hackborn
On Thu, Sep 24, 2009 at 11:51 AM, Al a.shersh...@gmail.com wrote: Is it possible to post the key strokes form background app? Nope. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private

[android-developers] Re: Can a core class access resources at the app layer?

2009-09-24 Thread Dianne Hackborn
. On Sep 22, 6:47 pm, Dianne Hackborn hack...@android.com wrote: This happens for every application that is loaded -- the resources are a combination of the framework and application resources, and all of the framework can freely access the application resources. This is generally

[android-developers] Re: How to force soft keyboard to be visible?

2009-09-25 Thread Dianne Hackborn
do work, but usually you get stuck with thekeyboardbeing shown after you leave the field and this causes more problems that it solves. Thanks, -DWass On Sep 19, 8:42 am, Dianne Hackborn hack...@android.com wrote: The G1 has akeyboard, so it works as I said -- the IME

[android-developers] Re: Soft Keyboard

2009-09-25 Thread Dianne Hackborn
. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them

[android-developers] Re: how to read trace file

2009-09-25 Thread Dianne Hackborn
, otherwise why does the o.s. write it out? How can I read this file? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions

[android-developers] Re: ACTION_NEW_OUTGOING_CALL, abort

2009-09-25 Thread Dianne Hackborn
, Lee -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: EditText.onKeyUp() doesn't catch all keys

2009-09-26 Thread Dianne Hackborn
)); } }; ..which is fine! But I open and use the soft keyboard, most input (except for e.g. the ENTER key) is ignored. Could anyone tell me what's the best/easiest way to identify and process these user inputs? Thanks for your attention, Christian -- Dianne Hackborn Android framework

[android-developers] Re: How to prematurely stop a long-running SQLite query?

2009-09-26 Thread Dianne Hackborn
the Cursor (in another thread) but all that happens is that the close() call takes as long as moveToFirst() and then terminates with the exception: java.lang.IllegalStateException: attempt to acquire a reference on a close SQLiteClosable -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: Create always running app

2009-09-26 Thread Dianne Hackborn
text on any screen in any other running app? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public

[android-developers] Re: launch activity like phone call

2009-09-27 Thread Dianne Hackborn
On Sun, Sep 27, 2009 at 1:47 AM, sleith raysle...@gmail.com wrote: 2. how to start a service right after downloaded and installed from android market? This is deliberately not supported. You can start the service when the user launches your app. -- Dianne Hackborn Android framework

[android-developers] Re: Launch Activity Call without screen change

2009-09-28 Thread Dianne Hackborn
. Thank you -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: Anyone used performHapticFeedback()?

2009-09-28 Thread Dianne Hackborn
barking completely up the wrong tree, or should the above work when I click on the button, because nothing happens? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't

[android-developers] Re: (unofficial) Bluetooth API v. 0.2

2009-09-28 Thread Dianne Hackborn
for keeping on using Google's phone which rocks but with suckingBluetooth. Otherwise we have to change the platform, which is the last thing I wanna see. On Sep 16, 1:04 pm, Jonas Petersson jonas.peters...@xms.se wrote: Dianne Hackborn wrote: Again, this code is using PRIVATE APIs

[android-developers] Re: zipalign : could be done at distribution or installation time ?

2009-09-28 Thread Dianne Hackborn
be run by the Market itself ? Or even by android at install time on the phone ? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All

[android-developers] Re: Android XML Schema Location

2009-09-28 Thread Dianne Hackborn
private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me

[android-developers] Re: [IME]avoiding softinput in one activity

2009-09-29 Thread Dianne Hackborn
in a very specific case. When i *long press menu button *softkeypad is coming irrespective of the activty. How can i avoid this? i have tried stateAlwaysHidden etc for that activity. But didit work. Al other cases ok. Just this case* long press menu button*. Thanks -- Dianne

[android-developers] Re: [IME]avoiding softinput in one activity

2009-09-29 Thread Dianne Hackborn
and just for one i need remove it. i was able to remove as well by returning true on KEYCODE_MENU. But i do have an options menu (without long press). :( Thanks On Tue, Sep 29, 2009 at 12:03 PM, Dianne Hackborn hack...@android.comwrote: Long press is a back-door for the user to bring up

[android-developers] Re: Can't i call a service function in activity's onStart/onCreate?

2009-09-29 Thread Dianne Hackborn
()); } } } Bear -- 董利明(Bear) 软件工程师 Software Engineer Douban Inc. office: +86 8479 9008 Mobile: 1358 1725 230 No.14 Jiuxianqiao Road, Area 51 A1-1-2106, Beijing 100016 , China 北京市酒仙桥路14号51楼A1区1门2016,100016 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please

[android-developers] Re: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?

2009-09-29 Thread Dianne Hackborn
class (as given in the javadoc comments of ApplicationContext.java). Thanks, Amit -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All

[android-developers] Re: Anyone used performHapticFeedback()?

2009-09-29 Thread Dianne Hackborn
really need to add more types of feedback and move things to using this API, but haven't had time yet.) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e

[android-developers] Re: activity is destroyed when press home key

2009-09-29 Thread Dianne Hackborn
my program through program's icon, at this time the Settings actitity will run OnDestroy() and be destroyed. I can't understand why Settings activity is be destroyed automatically? How can I make Settings activity still focus when users come back. Thank all. -- Dianne

[android-developers] Re: How to build the aidl tool

2009-09-29 Thread Dianne Hackborn
of android (the one which generates java file from an aidl file)? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should

[android-developers] Re: does Android jvm unloads classes?

2009-09-29 Thread Dianne Hackborn
More likely it's because your process was killed. On Tue, Sep 29, 2009 at 7:39 PM, Andrei gml...@gmail.com wrote: A static field which was initialized becomes null at some point. Can it be because that class was unloaded and loaded again? -- Dianne Hackborn Android framework engineer

[android-developers] Re: Signature matching problem

2009-09-29 Thread Dianne Hackborn
instrumentation. How can I run this instrumentation on system application? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions

[android-developers] Re: How to add 3rd party package in android framework

2009-09-30 Thread Dianne Hackborn
successfully. But I do not want to change the name of my package so I'm putting my package under com folder. Pls suggest a way to solve above problem. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time

[android-developers] Re: How to manage 2 versions of the same app: a lite version and a full version?

2009-09-30 Thread Dianne Hackborn
I deal with that? Thanks, Cedric. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums

[android-developers] Re: Signature matching problem

2009-09-30 Thread Dianne Hackborn
. hmm, there is a problem that I must sign my Instrumentation project with the same certificate as target app. So, do you know how to get certificate of any target application (in case that I have only the target apk file, nothing else)??? -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: Does onActivityResult get called when an activity is recreated?

2009-09-30 Thread Dianne Hackborn
onActivityResult in B is never called and the data never makes it back to A. Is there a way I can be sure that onActivityResult will be called? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time

[android-developers] Re: EditText.onKeyUp() doesn't catch all keys

2009-09-30 Thread Dianne Hackborn
You can look at the java docs for the things in android.text that related to this, and ask questions you have from there. On Wed, Sep 30, 2009 at 6:43 AM, CG christian.gr...@gmail.com wrote: On Sep 26, 8:39 pm, Dianne Hackborn hack...@android.com wrote: IMEs perform their edits through

[android-developers] Re: ApplicationContext.java and Activity.java. Is ApplicationContext not used ?

2009-09-30 Thread Dianne Hackborn
ApplicationContext object (which is mBase). So 2 entirely different objects have been named with the same name : ApplicationContext. Regards, Amitkeerti On Sep 29, 10:59 pm, Dianne Hackborn hack...@android.com wrote: ApplicationContext is private implementation. Activity takes care

[android-developers] Re: Service.onDestroy() invalid?

2009-09-30 Thread Dianne Hackborn
. BootCompleteReceiver is written in AndroidManifest.xml -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public

[android-developers] Re: Signature matching problem

2009-09-30 Thread Dianne Hackborn
, 3:18 pm, Dianne Hackborn hack...@android.com wrote: That's why I say you need to build the target application yourself. Generally you aren't going to have access to the cert used to sign someone else's app, since they don't want to give out their private key. On Wed, Sep 30, 2009 at 1:03

[android-developers] Re: ViewGroup#onInterceptTouchEvent is only called once

2009-09-30 Thread Dianne Hackborn
-- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them

[android-developers] Re: Does onActivityResult get called when an activity is recreated?

2009-09-30 Thread Dianne Hackborn
/android/app/Activity.html#ActivityLifecycle ) On Sep 30, 11:48 am, Dianne Hackborn hack...@android.com wrote: It does get delivered when recreated (just confirmed by trying to attach an image in gmail and killing gmail while in the gallery); there must be some other wrinkle to your situation

[android-developers] Re: Get AndroidManifest.xml Content

2009-09-30 Thread Dianne Hackborn
: Hi, i'm developing a library and i need to know how to parse the AndroidManifest.xml file in order to get the Application Version Number from it dinamically. Bests. Andrea -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me

[android-developers] Re: cannot bind to a service in an AppWidgetProvider.onUpdate().

2009-09-30 Thread Dianne Hackborn
): at android.app.ReceiverRestrictedContext.bindService (ApplicationContext.java:136) so i guess you can't bind to a service in an AppWidgetProvider - although you can start the service just fine... ?? tia. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have

[android-developers] Re: Problem to open a internal activity(com.android.browser.BrowserDownloadPage) using sharedUserId.

2009-09-30 Thread Dianne Hackborn
, etc), it cannot be uninstalled, so when i run the phone build, my apk is not installed and this error message appears: INSTALL_FAILED_UPDATE_INCOMPATIBLE You guys know why this is happening? Is there another way to open the Browser Download History? Thanks! -- Dianne Hackborn Android

[android-developers] Re: Application object life cycle.

2009-09-30 Thread Dianne Hackborn
it started a process again jumping directly to activity B bypassing A? Is that how it works? Should I then never assume that Application.myField will survive? and init it not only when A is started but whenever I discover it is null? Thanks. -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: can my service still be local if I need to be able to access it from an app and a desktop widget?

2009-09-30 Thread Dianne Hackborn
binder? tia. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: Wake Locks and the Cellular antenna...

2009-09-30 Thread Dianne Hackborn
have an application that needs to continuously read the signal strength while the user isn't using the phone. I suspect I need a FULL_WAKE_LOCK to do that. Is that true? Thanks. Richard Schilling Mobile Operating Systems Engineer -- Dianne Hackborn Android framework engineer hack

[android-developers] Re: changing default orange selection...

2009-09-30 Thread Dianne Hackborn
. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer

[android-developers] Re: Application object life cycle.

2009-09-30 Thread Dianne Hackborn
gallery restart the process jumping directly to activity B? It's not in the documentation, that's why I need to ask here. Thanks. On Sep 30, 3:52 pm, Dianne Hackborn hack...@android.com wrote: Yes your process can be killed at any time when it is in the background (and onTerminate is NOT called

[android-developers] Re: changing default orange selection...

2009-09-30 Thread Dianne Hackborn
phil.pellouch...@gmail.com wrote: is there a way to change the default orange selection color/image? I'd like to do this app wide and it would be nice not to have to do it for every control! tia. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please

[android-developers] Re: changing default orange selection...

2009-09-30 Thread Dianne Hackborn
...@gmail.com wrote: so in my style how do I specify background focus color or drawable? On Sep 30, 7:07 pm, Dianne Hackborn hack...@android.com wrote: A View doesn't draw anything itself, so there is nothing to change. If you want to change a specific widget, you will need to make your

[android-developers] Re: Application object life cycle.

2009-10-01 Thread Dianne Hackborn
, 7:06 pm, Dianne Hackborn hack...@android.com wrote: onTerminate is -not- called under normal operation -- the process is just killed. You are getting that message because you no longer have any references on the database but nobody has closed it, and now the garbage collector

[android-developers] Re: android:launchMode=singleInstance pros AND cons

2009-10-01 Thread Dianne Hackborn
narendrasingh.bi...@gmail.com wrote: What are advantage and disadvantage of applying android:launchMode=singleInstance in the android.manifest file. Will it hamper the services in the application? And how is it related to the performance of the application? -- Dianne Hackborn Android

[android-developers] Re: App upgrade (with zipalign) causes force closes/disappearing of app icon

2009-10-01 Thread Dianne Hackborn
. How can it be possible that the icon is gone? This is the first version we used zipalign on, can this have something to do with it? Thanks, Swiss Codemonkey team -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't

[android-developers] Re: Android 1.6 SDK is here!

2009-10-01 Thread Dianne Hackborn
in AndroidManifest.xml ...but the permission prompt would not disappear, even though I do not have the WRITE_EXTERNAL_STORAGE permission listed in my manifest. Has anyone managed to get this working? If so, what steps did you take? Thanks, Peter -- Dianne Hackborn Android framework

[android-developers] Re: how to turn a color into a resource.

2009-10-01 Thread Dianne Hackborn
); instead of zero, i want some solid color... tia. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted

[android-developers] Re: where is sleep/screen behavior documented?

2009-10-01 Thread Dianne Hackborn
Mobile Operating Systems Engineer Root Wireless, Inc. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
private support. All such questions should be posted on public forums, where I and others can see and answer them -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
) ergo. 1.5 and 1.6 are incompatible with each other, at least as far as my application is concerned (and I'm sure some others). Tom. 2009/10/1 Dianne Hackborn hack...@android.com This isn't a compatibility issue -- 1.5 doesn't know anything about nodpi so if you try to use it there you

[android-developers] Re: Image scaling by BitmapFactory.decodeResource()

2009-10-01 Thread Dianne Hackborn
On Thu, Oct 1, 2009 at 3:27 PM, Tom Gibara m...@tomgibara.com wrote: So far I've adapted two applications with no code changes whatsoever (other than the aforementioned workaround). That makes me happy. :) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't

[android-developers] Re: Application Manager Force Close

2009-10-01 Thread Dianne Hackborn
see and answer them -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others

[android-developers] Re: Is there a way for inter task communication

2009-10-02 Thread Dianne Hackborn
Amitkeerti -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see

[android-developers] Re: ActivityManager.restartPackage() and syncing - Sync on StatusBar remains after killing

2009-10-02 Thread Dianne Hackborn
was performing a sync operation. I went to Settings-Data synchronization and apparently Gmail and Calendar are stuck trying to sync. Or it just looks like they are- is there any way to verify that? Is there anything I can poke at to get that to go away? -- Dianne Hackborn Android framework

[android-developers] Re: Starting an Activity BEHIND the current Activity

2009-10-02 Thread Dianne Hackborn
, if that makes a difference. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I

[android-developers] Re: Starting an Activity BEHIND the current Activity

2009-10-02 Thread Dianne Hackborn
Oh that said, if the activity that is doing the starting is not in front of the user, then if it starts another activity in its task than that also won't be, because the new activity needs to remain in its task. On Fri, Oct 2, 2009 at 9:46 AM, Dianne Hackborn hack...@android.com wrote: Sorry I

<    6   7   8   9   10   11   12   13   14   15   >