Extension created but null object reference

Hello all , i have mw own extension …
i have success to texting / send sms message from specified sim , ( sim1 or sim2 ) with my extension ,
the next step is i need to make my extension can work in a phonecall too ,
its mean call from specified sim , without user choosing which sim ,
i have create , i have try , but it always show “Runtime error : failed to invoke virtual method " …” on a null object reference …
anyone can help ??
thanks in advance …

im using this method :
TelecomManager.getCallCapablePhoneAccount()

because reference said force.slot or extra slot doesnt work on android 5.1 or higher …

this methode always said null object , i think i cant access them ,
i have see another app , and get their source code ,
they use IlegallAccessExeption to get this method ,
but , how can i implement that IlegallAccessExpeption ??
are using invoke method like in bluetoothreflection.java at mitappsource??
this java is awesome , i like it , till now i keep learning in my freetime ,

you might want to ask in the Open Source community here


Taifun

1 Like

once again , thankyou mr.Taifun …
i dont know where to ask , i create my own extension , its great …
now i can texting with specified sim …
but keep can’t call with specified sim until i get the code …
thankyou …