permissions to start SystemService in package

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


Sponsored Links
 Hi,

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




> 


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

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.

Regards
Digambar



Other Threads

1. how does emulator simulate SMS?

The ADB bridge. I can take a guess about that. Perhaps sockets. :)




-- 

2. How to wrap and delegate ACTION_RECOGNIZE_SPEECH?

I am trying to receive RecognizerIntents asking for free form speech
recognition and then pass them on to Google Voice Search.


My code is basically this:


        Intent intent = new Intent(getIntent());

        intent.setClassName("com.google.android.voicesearch",
"com.google.android.voicesearch.RecognitionActivity");

I then try one of two approaches:

1.  Rely on the existing flag for FLAG_ACTIVITY_FORWARD_RESULT to
cause the reply to this intent to go to the activity that sent the
original to me.  This fails on the following log message:

10-27 14:06:31.448: ERROR/RecognitionActivity(2360):
ACTION_RECOGNIZE_SPEECH intent called incorrectly. Maybe you called
startActivity, but you should have called startActivityForResult (or
otherwise included a pending intent).




2.  I clear the FLAG_ACTIVITY_FORWARD_RESULT bit and
startActivityForResult(intent, someDangedInt) does me no good either.

What is the secret I am missing?

I don't mind handling the onActivityResult() and setting my result
code and such, but I just cannot figure out how to place myself in the
middle of this transaction.

tone



-- 

3. Android Market Licensing Test App

4. Android Has Facetime: App Attention and Ads

5. Building with ant. Builds OK. App fails.

6. Get IOException in HTTPClient.execute(httppost)

7. Is there a way to get the app drawer to refresh?