[android-developers] How to vertically center text inside TabWidget tabs?

2011-02-10 Thread Jin Chiu
How can I make the text in each tab within my TabWidget vertically centered. -- 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 To unsubscribe from this group, send email

[android-developers] Can apps that use device-specific permissions be published to Android Market?

2011-02-08 Thread Jin Chiu
I have an app that uses a set of permissions that are only available on Samsung devices. However, this permission is not mandatory for my app and it will still function fine without it. Given this, are there any restrictions against me publishing the app through the main Android Market? -- You re

[android-developers] Is /system/bin/dalvikvm reliable on all Android devices?

2011-02-05 Thread Jin Chiu
Can I rely on dalvikvm to be reliable on all Android devices? I would like to use it to send an intent from a native component, which due to legacy design, does not have access to a JNI context. -- You received this message because you are subscribed to the Google Groups "Android Developers" grou

[android-developers] How can a Service close an open AIDL connection?

2010-12-07 Thread Jin Chiu
The only way I've seen for closing AIDl connections is client- initiated: Context.unbindService() Is it possible the Service itself to initiate disconnects for existing AIDL connections? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] What could cause ProgressDialog Spinner to stop spinning?

2010-10-05 Thread Jin Chiu
I've observed instances when the spinner inside my ProgressDialog would occassionally freeze- stop spinning. What are some possible causes for this? While the ProgressDialog is up, we typically perform a lot of a work on the UI thread. Could this be depriving the ProgressDialog of drawing cycles?

[android-developers] Does Android provide Apps or Activities for viewing Certificates?

2010-09-08 Thread Jin Chiu
Does Android provide any reusable components for handling Certificates? For example if I create a X509Certificate from DER encoded data, are there reusable views for displaying the Common Name, Expiration date, etc...? -- You received this message because you are subscribed to the Google Groups "

[android-developers] How to detect focus change in Views of a Widget?

2010-08-13 Thread Jin Chiu
I have a Home Screen widget composed of a layout and several buttons. Is there a way to detect focus change on any of these views? For example, is there a way to fire off a PendingIntent when focus on a Button changes, similar to setOnClickPendingIntent()? -- You received this message because you

[android-developers] Re: How to detect when user switches Tasks (stack of Activities)?

2010-08-05 Thread Jin Chiu
. Consider the scenario where the RootActivity spawned a ChildActivity in the foreground. If the user then switches to another Task, RootActivity still cannot tell that its current Task is going into the background. On Aug 5, 10:27 am, TreKing wrote: > On Thu, Aug 5, 2010 at 9:06 AM, Jin C

[android-developers] How to detect when user switches Tasks (stack of Activities)?

2010-08-05 Thread Jin Chiu
Say that TaskA is currently in the foreground and my ActivityA is somewhere within its stack. Is there a way for ActivityA to get notified or detect when the user switches from TaskA to TaskB? As a use scenario, when the user launches my app, my ActivityA will always be the root Activity of the ne

[android-developers] Re: Possible to gather application logs at runtime?

2010-07-29 Thread Jin Chiu
ever, beware of Issue 6929: > > http://code.google.com/p/android/issues/detail?id=6929 > > On Jul 19, 6:59 am, Jin Chiu wrote: > > > > > To facilitate diagnostics while the app has been deployed, does > > Android provide any API to facilitateruntimelogging? It would be &g

[android-developers] How to identify which client called into a Remote/AIDL service?

2010-07-26 Thread Jin Chiu
In the implementation of my remote service's published API, is there a way to identify which client called a given method? For example, is there a way to obtain a unique ID or address of the caller? I already cache an AIDL callback reference to the client, but not sure how I can use this for identi

[android-developers] Re: How to explicitly invoke AIDL compiler?

2010-07-26 Thread Jin Chiu
Nevermind, figured it out- it's located under sdk/platforms/android- /tools/aidl On Jul 26, 12:26 pm, Jin Chiu wrote: > I'm using Eclipse with ADT to develop my project, but for some reason > my AIDL files are not getting compiled into Java files. Is there a way > to exp

[android-developers] How to explicitly invoke AIDL compiler?

2010-07-26 Thread Jin Chiu
I'm using Eclipse with ADT to develop my project, but for some reason my AIDL files are not getting compiled into Java files. Is there a way to explicitly invoked the conversion of my AIDL files? -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] How to specify a Serializable object in AIDL?

2010-07-26 Thread Jin Chiu
I'm need to pass Serializable objects to my remote service. Does AIDL have native support of Serializable objects, or do I need to write a Parcelable wrapper? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] How to specify preferred receiver when using sendOrderedBroadcast()?

2010-07-23 Thread Jin Chiu
The documentation for sendOrderedBroadcast() describes the function as following: "Broadcast the given intent to all interested BroadcastReceivers, delivering them one at a time to allow more preferred receivers to consume the broadcast before it is delivered to less preferred receivers." How do w

[android-developers] Re: sendBroadcast() does not work with Intents that have component name set

2010-07-23 Thread Jin Chiu
Ah okay, that explains why it didn't work for me. In my case, TargetActivity has a and registers a BroadcastReceiver, but does not implement the interface itself. On Jul 23, 1:47 pm, Mark Murphy wrote: > On Fri, Jul 23, 2010 at 1:42 PM, Jin Chiu wrote: > > Whenever I invoked

[android-developers] sendBroadcast() does not work with Intents that have component name set

2010-07-23 Thread Jin Chiu
Whenever I invoked `sendBroadcast()` using an intent with Component name set, it does not get properly delivered to the destination's broadcast receiver. As an example, assume that I have a TargetActivity that registered a BroadcastReceiver for ACTION1 This will work: Intent i = new Intent(Targe

[android-developers] Possible to create a transparent, headless activity?

2010-07-23 Thread Jin Chiu
Is it possible for my ActivityA to launch a transparent, headless ActivityB in a way that it does not prevent user interaction with ActivityA? Currently, when I start ActivityB, Android pushes a blank screen that prevents the user from interacting with the underlying Activity. -- You received th

[android-developers] Re: How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread Jin Chiu
: > On Fri, Jul 23, 2010 at 8:18 AM, Jin Chiu wrote: > > How do I distinguish between these two cases? > > http://groups.google.com/group/android-developers/browse_thread/threa... > <http://groups.google.com/group/android

[android-developers] How to detect whether my code is being executed on the UI thread?

2010-07-23 Thread Jin Chiu
I have an AIDL service that is intended to be used by both out-of- process remote users and in-process local users. As a result, my common interface methods will either be invoked on the UI thread or in a binder background thread. The logic between the two is not the same. How do I distinguish bet

[android-developers] Is there only 1 main UI thread per app process?

2010-07-21 Thread Jin Chiu
Are the UI threads for each Activity and Service in an app separate threads, or is there actually 1 underlying UI thread per app that processes the UI message queue for each Activity and Service? -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Lifetime of an app's Context object

2010-07-19 Thread Jin Chiu
What is the lifetime of an app's global android.content.Context object? Does it last until the last component of the app is terminated by the Android runtime? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Lifetime of background parent activity after startActivityForResult()

2010-07-19 Thread Jin Chiu
Is there an exception in the lifetime rules for a parent activity that's in the background after invoking startActivityForResult()? From my understanding, in low memory scenarios, the background activities are killed before the foreground. Does this rule still apply even if the background activity

[android-developers] Possible to gather application logs at runtime?

2010-07-19 Thread Jin Chiu
To facilitate diagnostics while the app has been deployed, does Android provide any API to facilitate runtime logging? It would be ideal if the app could retrieve all the messages it wrote to the Logging System via the Log API functions. -- You received this message because you are subscribed to

[android-developers] Best Practice for Multi-Activity App that Uses a Remote Service?

2010-07-19 Thread Jin Chiu
We have a multi-activity app that needs to communicate with a remote service with a callback interface. Each activity needs to access the remote service and receive callback messages from it (either directly or indirectly). What are some good practices for designing this? Here are some options: -

[android-developers] How to gracefully restart a crashed service?

2010-07-12 Thread Jin Chiu
I was playing around with the RemoteServiceBinding demo (in the API demos), and noticed that the remote service would restart itself (without user intervention) after the user has explicitly killed it. How was this possible without an explict call to onBind to restart the killed service? -- You r

[android-developers] Are AIDL interface objects thread-safe?

2010-07-12 Thread Jin Chiu
Are AIDL interface objects (i.e. remote service IPC objects and callback objects) thread-safe? In other words, do I need explicit synchronization when accessing these objects from multiple threads, or is that taken care of by the underlying RPC component? -- You received this message because you