[android-developers] Twitter on Android

2011-03-18 Thread Ramsay Domloge
What couldn't you do? Where is the error occurring? What exactly is your problem? if you want people to help, you are going to have to give us more than this... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Android Emulator and Proxy

2011-03-18 Thread Ramsay Domloge
When you say 'HttpClient', I assume you mean Apache HTTPClient? If so, this is a toolkit for accessing HTTP content from a Java context, whether Java is running in Android, in a Java applet running in Firefox on Windows or running in a backend Unix Application server. HttpClient is not

[android-developers] Detect whether KeyGuard lock is currently enabled or disabled

2011-03-17 Thread Ramsay Domloge
Hi all, My app currently disables and re-enables keyguard locks effectively. My question is, how do I determine whether the keyguard lock is currently enabled or disabled. To clarify, if the keyguard lock is currently disabled (by the user, or another app for instance) I don't want to disable

[android-developers] Re: Detect whether KeyGuard lock is currently enabled or disabled

2011-03-17 Thread Ramsay Domloge
Well, without getting into it too much, I need to be able to restore the phone to it's original state. So, before I start messing with it, I need to determine what the original state *was*. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] How to get a list of installed services

2011-03-16 Thread Ramsay Domloge
Getting a list of installed Activities is relatively straight-forward, but getting a list of installed Services is... less so... final Intent mainIntent = new Intent(); final ListResolveInfo pkgAppsList = getPackageManager().queryIntentServices(mainIntent, 0); This code returns a list of zero

Re: [android-developers] How to get a list of installed services

2011-03-16 Thread Ramsay Domloge
Thanks for this advice, Mark. I would like to counter some of your suggestions by playing Devil's advocate, if I may. Most services do not expose intent filters. OK, interesting - so those that *do* are presumably happy to be started by 3rd parties? For example, I make an app called

Re: [android-developers] finishActivity() does not stop child activity

2011-03-15 Thread Ramsay Domloge
Right, I appreciate that Services should not be able to stop 3rd Party Activities, *unrestricted*. But what about 3rd Party Activities which they (or an intermediary Activity) *started*? Are you saying that my Service should not be allowed to start an Activity which, in turn, starts (and then

[android-developers] Re: finishActivity() does not stop child activity

2011-03-15 Thread Ramsay Domloge
Cracked it. I removed android:launchMode=singleInstance from the Proxy Activity declaration in the Manifest and suddenly the Proxy was able to close the 3rd Party Activity. Many thanks for your help guys - your suggestions pointed me in the right direction. -- You received this message