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
producing
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
engineering.

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?

tia,
  mike

--~--~---------~--~----~------------~-------~--~----~



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
work.

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

mike


On Mar 5, 3:11pm, Dianne Hackborn <hack...@android.com> 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/
8700,
after a while it says "Failed to connect to remote VM, session timed
out."
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,
mike

On Mar 5, 6:44pm, Dianne Hackborn <hack...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Weird problem with ListView

I have a ListView which presents a table of items.  The table is
supposed to look like:

http://gabytest.com/images/good.png

but if I scroll around a bit, I sometimes see:

http://gabytest.com/images/bug.png

Now this only seems to happen when I run the program on an actual
device (Motorola Droid with Android 2.2).  I have never seen this
happen on the emulator.

Has anyone ever seen anything like this?  Does anyone have any
suggestions about what I might look for?

Thanks.

-- 

2. Adding new feature in address book/ modifying the existing address book

Hi is it possible to add new feature in existing address book just
like twitter app did??

What i am trying to do is i want to add my application shortcut just
like there is a shortcut for sms into every contact, just as user can
tap and select send sms on any contact can i add new option along with
sms to click,  whenever user opens any contact he can see my
application option along with call and sms option there, he taps to it
and my application will launch with that contact information, just
like sms application launched is it possible?

We have options like link to facebook, flicker in the contact list how
they have implemented this?? can i create similar thing?? Wondering
how twitter did this thing?

can i do it in 1.6 or any higher version??

-- 

3. locale change does not affect menu

4. How a phone application can be separated from vt application?

5. The connection of bletooth with multi devices using SPP.

6. How can I sign my test application with Android Browser application certificate?

7. Getting Error 鈥淚nstallation e rror: INSTALL_FAILED_MISSING_SHARED_LIBRARY鈥