[android-developers] Re: Authentication Credentials

2010-01-22 Thread Flapjack
n is registered with Twitter, you can use > that application's credentials to obtain user credentials that allows > the application to effect things in the user's Twitter stream and > account. > > On Jan 21, 4:35 pm, Flapjack wrote: > > > I would like to connect to

[android-developers] Re: Requests from Handsets Only

2010-01-22 Thread Flapjack
c app), > but usually their is a header that identifies the client browser and OS sent > in the request. > > On Fri, Jan 22, 2010 at 4:01 PM, Flapjack wrote: > > Suppose you run a web service that accepts requests from Android > > devices and spits out some data. Is there an

[android-developers] Requests from Handsets Only

2010-01-22 Thread Flapjack
Suppose you run a web service that accepts requests from Android devices and spits out some data. Is there any way to ensure that the request actually came from within an application on the Android handset? In other words, restrict access to all other devices - iphones, desktops, laptops, even requ

[android-developers] Re: AsyncTask discrepancy

2010-01-22 Thread Flapjack
gt; something like it, you should not use a AsyncTask. Use a regular > Thread instead that calls 'post' on the owning Activity that will > consume the results generated by the thread. > > On Jan 21, 6:22 pm, Flapjack wrote: > > > According to my research, which includ

[android-developers] Re: AsyncTask discrepancy

2010-01-22 Thread Flapjack
, like setting the contents of > a view or showing a dialog. > > > > On Thu, Jan 21, 2010 at 3:22 PM, Flapjack wrote: > > According to my research, which includes reputable sources (Mark > > Murphy et al), the most preferred way of polling a remote source and > > p

[android-developers] Authentication Credentials

2010-01-21 Thread Flapjack
I would like to connect to a remote web service to retrieve data. However, in doing so, I must provide this web service with credentials to authenticate the client, (to disallow anonymous requests), before data is returned. The only way I can think of to do this is by simply passing along the crede

[android-developers] AsyncTask discrepancy

2010-01-21 Thread Flapjack
According to my research, which includes reputable sources (Mark Murphy et al), the most preferred way of polling a remote source and presenting said data to the user is by creating a service and using AsyncTask within that service to do the polling. I have done that. But, when I read the docs (ht

[android-developers] Re: Service within a Thread? Thread within a Service?

2010-01-19 Thread Flapjack
 So you are down to one of the options you are considering. > > Ti si also possible to start a service in a separate process but it > > still should not block on its main thread. > > > Possibly android.os.AsyncTask will be useful for you. > > > On Jan 18, 5:17 pm, Flapj

[android-developers] Service within a Thread? Thread within a Service?

2010-01-19 Thread Flapjack
Please forgive my ignorance, I am new to Java and Android. I would like to retrieve remote data and display it within my activity. To prevent tying up to UI, I understand that I can do this in another thread. (I thought I could just-as-well fetch this remote data from within a service, but that ap