Updated list of app code sources?

by Tony Su » Mon, 13 Apr 2009 12:14:00 GMT

Sponsored Links
 Finally got the ADT installed into Eclipse just now.
Recommend KISS instructions(default steps don't seem to work), I don't know why 
"no repository found" kept displaying when trying to connect using SSL and also 
pointing to the compressed SDK file, but it finally worked pointing to the web 
source without SSL.
So, I'm looking around now at what kind of application snippets and full apps 
there might be to start looking at just about anything...
Have found a few scattered references, is there a centralized list or 
recognized sites for code?

Other Threads

1. Map Application available on Android Emulator


I need some information regarding Map application. I have seen one map
application on sdk 1.6 and above.

Questions are:
1.  Will it be available on all android phones?
 2. Can I call this application from my application? If yes then how?
I dont know how to call another class. I think, I should know the
starting activity's class name. If this is the case, What is the
starting activity class name in case of this map application.
3. What will happen to my application, if someone uninstall Map
application, in case I use this map application?


2. Marshalling web service data to the UI

I'm stuck on a tough architectural problem. I have a collection of web
services that produce data that will populate UI components -
TextViews, ListViews, and so on. Each web service may take up to about
10 seconds to respond, or it might not respond at all. When I click a
button in the UI that requires data from the web services I need to
show a ProgressDialog until either the data arrives or it times out.

I'm pretty sure that an IntentService is the best way to wrap the web
services. From the documents (http://developer.android.com/reference/
android/app/IntentService.html) "This "work queue processor" pattern
is commonly used to offload tasks from an application's main thread."
Also "Note that unlike other application components, calls on to the
IBinder interface returned here may not happen on the main thread of
the process."

The UI needs to get data back (asynchronously) from the IntentService,
which means using AIDL, onBind, and all that. But from the documents
(http://developer.android.com/guide/developing/tools/aidl.html) we
have "By default, IPC calls are synchronous. If you know that an IPC
service takes more than a few milliseconds to complete, you should not
call it in the Activity/View thread, because it might hang the
application (Android might display an "Application is Not Responding"
dialog). Try to call them in a separate thread."

Of course, that "separate thread" stuff in the AIDL docs in nonsense.
If you spawn a separate thread in an Activity it will get blown up in
OnDestroy. But what do they mean by "By defualt"? Are there cases
where the IPC can be asynchronous? Is that what is meant by the text
in the IntentService docs "may not happen on the main thread"? How
does this work?


3. App Force Closes - Help - Beginer

4. LocationProvider

5. Where has hierarchyviewer.bat gone?

6. duplicated entries?!

7. ProgressDialog with custom Drawable (IndeterminateDrawable)