Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9048249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:06:54+00:00 2026-06-16T12:06:54+00:00

Here is my manifest file with my background service declaration …… <service android:name=com.example.MyService android:process=:service

  • 0

Here is my manifest file with my background service declaration

......
    <service android:name="com.example.MyService" 
               android:process=":service" 
               android:permission="android.permission.BIND_VPN_SERVICE">

         <intent-filter>
            <action android:name="com.example.START_MY_SERVICE" />
         </intent-filter>
......
  1. What should a 3rd party app declare in its manifest which is
    interested in binding with my service ?
  2. Also how does the verification of the permission( or custom defined permission) happens in my app when the 3rd party app tries to bind to my service ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:06:55+00:00Added an answer on June 16, 2026 at 12:06 pm

    Here is my manifest file with my background service declaration

    First, do not use separate processes without a very good reason.

    Second, do not re-use Android standard permissions for your own purposes, unless those purposes are really closely tied to what Android secures with that permission. You should only be requiring BIND_VPN_SERVICE if your app will be doing VPN-related stuff, such as binding the VPN on the caller’s behalf.

    What should a 3rd party app declare in its manifest which is interested in binding with my service should declare in its manifest?

    <uses-permission android:name="android.permission.BIND_VPN_SERVICE" />
    

    Also how does the verification of the permission happens in my app when the 3rd party app tries to bind to my service ?

    That is handled automatically for you by Android when somebody calls startService() or bindService() with an Intent that identifies your service. If the caller does not hold the permission listed in android:permission, they will get a SecurityException.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is the XML file : <com.google.android.maps.MapView android:layout_width=fill_parent android:layout_height=fill_parent android:apiKey=0q7NUYm4bgzeXlqXtKYVPJDRWUJmt8Cu0gvbWMx android:id=@+id/map_view /> and Manifest
Here is my manifest file which shows error string types not allowed at android:configChanges
Here is what i have in my map.xml file: <com.google.android.maps.MapView android:id=@+id/mapView android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true
I have android code that uses a background process to routinely (e.g. hourly) connect
I was able to download an apk file and stored it in my /data/data/com.android.myApp/anotherApp.apk.
I have a manifest.json file that looks like this: { name: Zend Debugger Extension,
I hope this error is in manifest file ,here i am placing the manifest
I am trying to enable ActionBar in an Activity . Here is my Manifest
I have taken a manifest from one of the answers posted here in SO
Here's my code in the <head></head> : <link rel=stylesheet href=http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css /> <script type=text/javascript src=http://code.jquery.com/jquery-1.7.1.min.js></script>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.