permissions to start SystemService in package

by Digambar Rasal » Thu, 14 Jan 2010 01:13:11 GMT

Sponsored Links

I am trying to add new system service and following steps mentioned by
Dianne Hackborn @

permissions to start SystemService in package

by Dianne Hackborn » Thu, 14 Jan 2010 04:04:17 GMT

 I would guess the problem is that you aren't signing your app with the
platform cert, which is required if you want to share its uid.

Also if you are not having the code run in the system process, then your
code here is very broken -- the intent receiver will run, and you will make
the object and publish it, and then the intent receiver is done...  and the
system thinks your process is empty, and eventually kills it.  You want to
have this coming from a started services.

Though honestly -- system services really should just run in the system
process, since that one won't go away.  If you absolutely want your service
running in another process, you must make it persistent like the phone


Sponsored Links

permissions to start SystemService in package

by Digambar Rasal » Wed, 20 Jan 2010 18:42:28 GMT

 Made changes, signed APP with platform certificate and it runs fine on

Only question is about making it persistent. I tried running few
application and this service is still active. So wondering whether it
will be killed or not. I will appreciate if you can tell what will be
scenario in which this service will be considered empty and killed.


Other Threads

1. player driver configuration


in the playerdriver.cpp  the  PlayerDriver::setupHttpStreamPre()

has the following sequence of code:

mDownloadConfigFilename = _STRLIT_WCHAR("/tmp/http-stream-cfg");

 mDownloadFilename = NULL;

 mDownloadProxy = _STRLIT_CHAR("");

mDownloadContextData->DownloadHTTPData()->iMaxFileSize = 0xFFFFFFFF;

mDownloadContextData->DownloadHTTPData()->iPlaybackControl =

Questions: are these options changeable?
If I want to have a local file download and then played ie.
EAfterDownload do I need to change these options and specify the name
of the file here or is any other way to do it without changing the
player driver code ?




2. Display multiple images from a remote source in a gallery (zoomable+pannable)

I want do display some images that I load from a remote source in a
gallery. The gallery should let the user do the following things:

-zoom the image (preferably also by pinch-zoom)
-pan the image
-switch between the different images

Of course most built-in gallery applications can do all of that. So my
first idea was to use an  ACTION_VIEW intent in order to delegate the
task to some gallery application. This however won't work for me since
you can only pass the URI of the image you want to display but not the
actual bitmap data itself. I can't just pass the URL of the remote
image because I need to manage the loading and caching of the data
A way around this would be to write the data to a local file and then
pass the URI of that file (and deleting the file again afterward).
Besides this being less than elegant it won't even do the trick
because with an intent like this you can only pass one image at a

The built-in Facebook application on the Nexus One actually does
exactly what I have in mind for displaying photo albums. It looks like
a custom gallery activity they built into their application. Does
anyone know whether there are templates available for something like
this somewhere that one could reuse? Building something like this from
scratch by myself seems too time consuming.

I think that what I want to do is a fairly common task, yet I haven't
been able to find a satisfactory solution.
I would be very glad for any hints on how this could be accomplished!


3. Happy Birthday to suhu Lesjaw

4. OpenGL 2D Drawing

5. JavaScript Camera API Android (Froyo)

6. App crashing only on second run...

7. mLinearLayout.getLayoutParams() returns RelativeLayout.LayoutParams ????