Multi-process applications and Android Market

by Marco Nelissen » Fri, 06 Mar 2009 07:03:56 GMT


Sponsored Links
 You can put everything in the same package, and make the service runs
in a different process by specifying the "android:process" attribute
for the service in your manifest.





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



Multi-process applications and Android Market

by Marco Nelissen » Fri, 06 Mar 2009 07:05:44 GMT


 I should have read further... :)
So you already tried that, but can't debug it? That seems weird. Why
can't you just attach the debugger to the other process? What happens
when you try?






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


Sponsored Links


Multi-process applications and Android Market

by Dianne Hackborn » Fri, 06 Mar 2009 07:12:05 GMT


 Yeah you can directly attach adb to any process and debug it.  You can also
have your process call Debug.waitForDebugger() if there is a place you want
to block for the debugger to attach.

Splitting an app into multiple .apks just to have it run in two processes is
very much not the model we encourage.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



Multi-process applications and Android Market

by Dianne Hackborn » Fri, 06 Mar 2009 10:44:44 GMT


 eah Eclipse is hard to figure out.  Basically you can go into the Eclipse
run menu for starting the debugger ("Open Debug Dialog..." on and the
"Remote Java Application" category on mine, your version may be different),
to have it attach to a socket. So in ddms, click on the process you want to
debug, which will forward it to port 8700, and then in the eclipse dialog
select host as "localhost" and port as "8700" to attach a debugger to it.

On Thu, Mar 5, 2009 at 5:16 PM, Mike Collins <mike.d.coll...@gmail.com>wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support. All such questions should be posted on public
forums, where I and others can see and answer them.

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



Other Threads

1. How to XOR pixel values with Canvas

Hi,

I have a Bitmap object called A and a Bitmap object called B. I want
to produce a Bitmap object C that is produced by XORing the pixels
values from A against the pixel values from B. Specifically, the
integer pixel values should be combined using bitwise XOR.

The reason I want this is when transforming some bitmap from image A
to B, I want to produce an image of the differences C so that I can
convert B back to A by XORing C onto B.

I've tried drawing bitmap A onto B using a Paint object
with .setXferMode(PorterDuffXfermode(PorterDuff.Mode.XOR))) but this
does not perform a bitwise XOR on the pixel values as the alpha values
are treated as special cases as it says in the documentation (i.e.
XORing C onto B does not generate A when non-opaque pixels are used):

http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html
"PorterDuff.Mode        XOR     [Sa + Da - 2 * Sa * Da, Sc * (1 - Da) + (1
- Sa) * Dc]  "

I tried variations of .setXfermode(new PixelXorXfermode(0)) but the
documentation says PixelXorXfermode does not consider the alpha values
at all.

Is there any efficient ways to do what I want here with API calls? If
there really isn't a XOR paint mode I can use, perhaps there are some
weird tricks I could use to do this.

The only method I can see is to use .copyPixelsToBuffer to copy A and
B into int arrays, XOR the arrays with a for loop, then copy the
pixels into C. This uses a lot of memory and could be done faster if
it was performed in-place by some native function. Or perhaps there
are smarter ways to do this?

Thanks.

-- 

2. Enhancing text input for all apps

Hello.
Is it possible to add e.g. an menu option for text inputs in all apps?
Vt estk AKA v6ak

-- 

3. youtube player app

4. intent filter/image

5. How to take an image using ACTION_IMAGE_CAPTURE, and not having it appear in the gallery

6. drag and drop between layouts

7. Streaming Audio Support on Android