Multi-process applications and Android Market

by Mike Collins » Fri, 06 Mar 2009 07:01:34 GMT

Sponsored Links
 The Android Market appears to only support "applications" that are a
single APK.
I've asked over there if this is not the case and Google says making
it a single
APK is the answer.

We have an application that has a long-lived background service and a
user interface
application, in two distinct processes.  Development is done with
Eclipse as two
distinct project/packages yeilding two APKs that are installed.  This
works just fine,
except that the Market doesn't support it.

I've mushed the two projects together into one which yeilds one APK
with the
service marked as run in a separate process.  This functions properly
and the service
remains running without the UI.  However I am unable to debug in the
service since
the process is not visible to me.

Not being able to debug the major part of the code is not condusive to
substantive applications.  Having to develop the code as distinct
projects and then
when complete mush it together and hope for the best is not good

Flipping the "remote" switch in the manifest for the service is not
very viable since a
lot of code that will run correctly as a single process will fault
when split and without
being able to debug into both process finding these is going to be
very painful.

Am I missing something?



Multi-process applications and Android Market

by Mike Collins » Fri, 06 Mar 2009 09:16:40 GMT

 'm perfectly happy to put everything in one APK if I can make it

Pardon my ignorance, when you say "directly attach adb to a process
debug it" does that connect somehow with the Eclipse debugger? The
I've seen on adb don't indicate it is a debugger, just a bridge. I'm
not a very
savy Eclipse user.


On Mar 5, 3:11pm, Dianne Hackborn <> wrote:

Sponsored Links

Multi-process applications and Android Market

by Mike Collins » Sat, 07 Mar 2009 02:12:10 GMT

 ound the Remote Java Application debug entry, set it to localhost/
after a while it says "Failed to connect to remote VM, session timed
Tried with both Connection Type of Attache and Listen. Tried enabling
and disabling "Allow termination of remote VM".

DDMS seems to only be able run "ps", nothing updates, nothing shows
in the left panel execpt "?" and the process ID and ports.

little circles,

On Mar 5, 6:44pm, Dianne Hackborn <> wrote:

Other Threads

1. ParseException: At line 1, column 0: not well-formed (invalid token)

Hi Dear,

i am totally lost in this error:

org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column
0: not well-formed (invalid token)

i have spent the whole day trying to figure out why i am getting this
error but not seems to have any luck

here is the faulty code android doesn't like

Xml.parse(is, Xml.findEncodingByName("UTF-8"), handler);

as far as i know, nothing wrong in the xml below in my sdcard.

<?xml version="1.0" encoding="utf-8"?>
 <file id="page1"/>
 <file id="page2"/>
 <file id="page3"/>

please anybody help me out

2. custom progress bar

i want to draw a custom progress, and I googled around and came up
with this --

in res/drawable, I have the following xml

<?xml version="1.0" encoding="UTF-8"?>
<layer-list xmlns:android="
     <item android:id="@+android:id/background"
     <item android:id="@+android:id/SecondaryProgress"
     <item android:id="@+android:id/progress"

then to use it, in my main xml, I have --

<ProgressBar android:id="@+id/ProgressBar"

My question is, what should "progress_background.png" and
"progress.png" look like in terms of dimensions?

Do they need to have the same height?  Same width?  How does it draw
the progress at an arbitrary percentage?


3. Looking for sample of video capture with preview

4. rild reboot repeatly because of "EOS. Closing command socket."

5. How can I find my GPS location with GPS sensor

6. AndroidAPI App

7. how to disable auto-rotation feature