[android-developers] Re: How to replace telecom's native ConnectionService?

2017-02-16 Thread spartygw
Thanks for the Samsung tip. I am now able to display the "Calling accounts" 
screen but there are no options to select. I've registered a "foo" 
PhoneAccountHandle with 
PhoneAccount.CAPABILITY_CALL_PROVIDER and 

PhoneAccount.CAPABILITY_CONNECTION_MANAGER

but I still don't see it as an option. Were you able to add an account?


On Wednesday, January 18, 2017 at 9:01:04 AM UTC-5, Jose Riballo wrote:
>
> Ok, the problem is an issue of Samsung. It is solved here:
> https://groups.google.com/forum/#!topic/android-contrib/C7qbnnAGzsk
>
> El martes, 17 de enero de 2017, 14:42:44 (UTC+1), Jose Riballo escribió:
>>
>> I don´t know if you still have that problem. This exception happens when 
>> your ComponentName is not correct. 
>> I've manage to do this with:
>>
>> ComponentName cName = new ComponentName(mContext.getPackageName(), 
>> MyConnectionService.class.getName());
>>
>> This solves that error, however I can't enable my PhoneAccount. I run 
>> startActivity(new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS));
>> but my phoneAccount does not appear anywhere.
>>
>> Someone could do this? 
>> Thank you all.
>>
>>
>> El miércoles, 9 de noviembre de 2016, 15:45:16 (UTC+1), Rasmus Höglund 
>> escribió:
>>>
>>> I'm also trying this, but whenever I try to do 
>>> telecomManager.registerPhoneAccount() I get the exception: 
>>>
>>> Package [se.example.myapplication] does not belong to 10145.
>>>
>>> I have declared the service in AndroidManifest.xml exactly as above. Is 
>>> there something else I'm missing? 
>>>
>>> I see that BIND_TELECOM_CONNECTION_SERVICE, has protection level: 
>>> signature|privilege:
>>>
>>>
>>> https://developer.android.com/reference/android/Manifest.permission.html#BIND_TELECOM_CONNECTION_SERVICE
>>>
>>> could this have something to do with the SecurityException I'm getting?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0c49b9ef-8cd1-4fff-99bb-c8d0832abd3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2017-01-18 Thread Jose Riballo
Ok, the problem is an issue of Samsung. It is solved here:
https://groups.google.com/forum/#!topic/android-contrib/C7qbnnAGzsk

El martes, 17 de enero de 2017, 14:42:44 (UTC+1), Jose Riballo escribió:
>
> I don´t know if you still have that problem. This exception happens when 
> your ComponentName is not correct. 
> I've manage to do this with:
>
> ComponentName cName = new ComponentName(mContext.getPackageName(), 
> MyConnectionService.class.getName());
>
> This solves that error, however I can't enable my PhoneAccount. I run 
> startActivity(new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS));
> but my phoneAccount does not appear anywhere.
>
> Someone could do this? 
> Thank you all.
>
>
> El miércoles, 9 de noviembre de 2016, 15:45:16 (UTC+1), Rasmus Höglund 
> escribió:
>>
>> I'm also trying this, but whenever I try to do 
>> telecomManager.registerPhoneAccount() I get the exception: 
>>
>> Package [se.example.myapplication] does not belong to 10145.
>>
>> I have declared the service in AndroidManifest.xml exactly as above. Is 
>> there something else I'm missing? 
>>
>> I see that BIND_TELECOM_CONNECTION_SERVICE, has protection level: 
>> signature|privilege:
>>
>>
>> https://developer.android.com/reference/android/Manifest.permission.html#BIND_TELECOM_CONNECTION_SERVICE
>>
>> could this have something to do with the SecurityException I'm getting?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/20695e83-ebd8-4e4f-b366-0d943d5a121c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2017-01-17 Thread Jose Riballo
I don´t know if you still have that problem. This exception happens when 
your ComponentName is not correct. 
I've manage to do this with:

ComponentName cName = new ComponentName(mContext.getPackageName(), 
MyConnectionService.class.getName());

This solves that error, however I can't enable my PhoneAccount. I run 
startActivity(new Intent(TelecomManager.ACTION_CHANGE_PHONE_ACCOUNTS));
but my phoneAccount does not appear anywhere.

Someone could do this? 
Thank you all.


El miércoles, 9 de noviembre de 2016, 15:45:16 (UTC+1), Rasmus Höglund 
escribió:
>
> I'm also trying this, but whenever I try to do 
> telecomManager.registerPhoneAccount() I get the exception: 
>
> Package [se.example.myapplication] does not belong to 10145.
>
> I have declared the service in AndroidManifest.xml exactly as above. Is 
> there something else I'm missing? 
>
> I see that BIND_TELECOM_CONNECTION_SERVICE, has protection level: 
> signature|privilege:
>
>
> https://developer.android.com/reference/android/Manifest.permission.html#BIND_TELECOM_CONNECTION_SERVICE
>
> could this have something to do with the SecurityException I'm getting?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bcd138f8-6153-4211-bbbe-f30c53c6fa5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2016-11-17 Thread Garett Beukeboom
Pretty sure I copied that over from the CTS test my project is based, but 
here is a link that explains the permission a bit:
https://android.googlesource.com/platform/frameworks/base/+/2ef87ee%5E!/

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6f3fe92a-30d3-4389-9269-9cac8fc24c41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2016-11-10 Thread Rasmus Höglund
I didn't have the permission 'android.permission.REGISTER_CALL_PROVIDER'*. *But 
after adding this i still have the same error. 

I can't find the REGISTER_CALL_PROVIDER in Manifest.permission (
https://developer.android.com/reference/android/Manifest.permission.html). 
Where can I find more info about this permission?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/22bb01c7-2de0-4341-9558-fd173d1ed376%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2016-11-09 Thread Garett Beukeboom
Not sure what's going on exactly, but if your service has the 
BIND_TELECOM_CONNECTION_SERVICE permission specified it should be fine, 
you're not using the permission just preventing an entity without that 
permission from binding to yours.

What permissions do you have in your manifest? Mine has the following 3 
(sorry, it's been a while since I've looked at the project so they may not 
all be needed):





-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d0c3fce4-c8a2-44b1-82ac-b67e981671ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2016-11-09 Thread Rasmus Höglund
I'm also trying this, but whenever I try to do 
telecomManager.registerPhoneAccount() I get the exception: 

Package [se.example.myapplication] does not belong to 10145.

I have declared the service in AndroidManifest.xml exactly as above. Is 
there something else I'm missing? 

I see that BIND_TELECOM_CONNECTION_SERVICE, has protection level: 
signature|privilege:

https://developer.android.com/reference/android/Manifest.permission.html#BIND_TELECOM_CONNECTION_SERVICE

could this have something to do with the SecurityException I'm getting?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/213bcafd-e00c-4cc3-869b-3e98dfa60750%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: How to replace telecom's native ConnectionService?

2016-09-15 Thread Garett Beukeboom
Hey Jocke,

I hit this issue myself, the phone account will be registered to the device 
but disabled unless manually enabled by the user (haven't found a way to 
enable myself yet). To enable go into the phone settings (using the Google 
Phone app go into Settings -> Calls -> Calling Accounts -> All Calling 
Accounts), if everything worked as expected in your code you should see 
your newly registered account here, just need to enable it and it will 
become an option for placing calls, but this will be another voice service 
as opposed to replacing the carrier's voice service.

Hope that helps! If not let me know and I can get my mangled test code 
uploaded to GitHub and shared.

Cheers,
Garett

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/8937f2d9-41d7-4b38-8295-9db99c5320fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.