The way I understand the OP's description, the problem is that
whatever is in Manifest is static.  Whereas he wants to decide
dynamically (based on input from a server) whether his app handles the
intent or not.  If sharing is on he wants his app to appear in the
chooser, if it's not it should be left out from the chooser.

At least that's how I understand it...

On Mon, Jul 16, 2012 at 1:27 PM, Kristopher Micinski
<[email protected]> wrote:
> I'm not sure you understand... You have to explicitly implement the
> share intent anyway...
>
> http://mobile.tutsplus.com/tutorials/android/android-sdk-implement-a-share-intent/
>
> So it's not going to randomly "pop up" in your app, that's impossible,
> unless you *put* it there!
>
> kris
>
> On Mon, Jul 16, 2012 at 7:23 AM, Bunty syed <[email protected]> wrote:
>> Thanks Kris.
>>
>> I will tell the scenario I am working on.
>>
>> Actually my app is driven by server defined policy.
>>
>> The application fetches the policy from the server & then act accordingly.
>> There is one policy for data sharing.
>> If data sharing is allowed then no problem.But if the data sharing is not
>> allowed, application should be able to block the data sharing options like
>> sharing Via item in the system generated context menu.
>>
>>
>>
>> On 16 July 2012 16:22, Kristopher Micinski <[email protected]> wrote:
>>>
>>> Is that a question?  If so, the answer is yes, if you don't specify an
>>> intent filter for that routine, then the system won't offer to have
>>> your app pop up.  If it is, that probably means that you're putting
>>> too much stuff in your manifest, so you should post it so people can
>>> inspect it.
>>>
>>> As I said before, if you're worried about people actually getting at
>>> the contents of the stuff in your app, then you shouldn't simply count
>>> on this, you should also use some form of encryption ....
>>>
>>> kris
>>>
>>> On Mon, Jul 16, 2012 at 6:17 AM, Bunty syed <[email protected]>
>>> wrote:
>>> > Tat means in the pop up nothing will be shown after clicking share via
>>> > item...
>>> >
>>> >
>>> > On 16 July 2012 15:02, Kristopher Micinski <[email protected]>
>>> > wrote:
>>> >>
>>> >> The system will only "share" from your app if you declare it in the
>>> >> manifest. In reality, however, you can't hide the data from the user
>>> >> without
>>> >> encryption...
>>> >>
>>> >> On Jul 16, 2012 5:12 AM, "Bunty syed" <[email protected]> wrote:
>>> >>>
>>> >>> Thanks.  I want to do it only for my app.
>>> >>>
>>> >>> But I did not understand what  filter r u talking about & will it
>>> >>> affect
>>> >>> the system generated menu...
>>> >>>
>>> >>> On 16 July 2012 13:49, Kristopher Micinski <[email protected]>
>>> >>> wrote:
>>> >>>>
>>> >>>> For your application or anyone's app?  For your app, don't implement
>>> >>>> the
>>> >>>> filter, for anyone's app, this will be a lot trickier....
>>> >>>>
>>> >>>> On Jul 16, 2012 4:11 AM, "Bunty syed" <[email protected]> wrote:
>>> >>>>>
>>> >>>>> Hi,
>>> >>>>>
>>> >>>>> In android, on long clicking some link or text, System generates a
>>> >>>>> menu
>>> >>>>> with some share via option.
>>> >>>>> On clicking that, it pops up a screen with facebook gmail,etc..
>>> >>>>>
>>> >>>>> My doubt is that is there any way to remove that option from that
>>> >>>>> menu.
>>> >>>>>
>>> >>>>> or is there any callback call when some intent is launched from the
>>> >>>>> application..
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> --
>>> >>>>> You received this message because you are subscribed to the Google
>>> >>>>> Groups "Android Developers" group.
>>> >>>>> To post to this group, send email to
>>> >>>>> [email protected]
>>> >>>>> To unsubscribe from this group, send email to
>>> >>>>> [email protected]
>>> >>>>> For more options, visit this group at
>>> >>>>> http://groups.google.com/group/android-developers?hl=en
>>> >>>>
>>> >>>> --
>>> >>>> You received this message because you are subscribed to the Google
>>> >>>> Groups "Android Developers" group.
>>> >>>> To post to this group, send email to
>>> >>>> [email protected]
>>> >>>> To unsubscribe from this group, send email to
>>> >>>> [email protected]
>>> >>>> For more options, visit this group at
>>> >>>> http://groups.google.com/group/android-developers?hl=en
>>> >>>
>>> >>>
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups "Android Developers" group.
>>> >>> To post to this group, send email to
>>> >>> [email protected]
>>> >>> To unsubscribe from this group, send email to
>>> >>> [email protected]
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/android-developers?hl=en
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups "Android Developers" group.
>>> >> To post to this group, send email to
>>> >> [email protected]
>>> >> To unsubscribe from this group, send email to
>>> >> [email protected]
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/android-developers?hl=en
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to [email protected]
>>> > To unsubscribe from this group, send email to
>>> > [email protected]
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/android-developers?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to