Help with intent...

Gary Miyakawa

Active Member
Licensed User
Longtime User
I had someone pass me some "Sample" API code that uses Intent. I've not played with that before and wonder someone could give me a bit of direction on the coding.

I'm told that, it will trigger a video conference call, assuming the "Acme" video application is installed on the device.

I'd love to hear from someone who might be able to tell me if they think I can do this triggering from B4A...

Here's the code:

B4X:
Code sample for you:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
Here is the intent receiver definition:
       <receiverandroid:name=".AcmeVideoCallReceiver">
           <intent-filter>
              <categoryandroid:name="android.intent.category.DEFAULT"/>
              <actionandroid:name="com.Acme.cmad.mobile.android.intent.VIDEO_CALL"/>
           </intent-filter>
       </receiver>
 
And here is how we issue the intent in our code:
        Intent intent = new Intent(AcmeVideoCallReceiver.INTENT_ACTION_Acme_VIDEO_CALL);
        intent.putExtra(AcmeVideoCallReceiver.DIAL_NUMBER_NAME, dialNumber);
        intent.putExtra(AcmeVideoCallReceiver.CALL_TYPE_NAME,
              bProtocolSip ? AcmeVideoCallReceiver.CALL_TYPE_VALUE_SIP
                          : AcmeVideoCallReceiver.CALL_TYPE_VALUE_H323);
       intent.putExtra(AcmeVideoCallReceiver.CALL_RATE_NAME, Setting.getCallingRate(this));
        sendBroadcast(intent);

Any help would be greatly appreciated !

Cheers,

Gary M
 

Gary Miyakawa

Active Member
Licensed User
Longtime User
Erel,

Thanks for the heads up..

I'm a little bit lost on where/how to define the AcmeVideoCallReceiver ?

Thoughts ?

Thanks,

Gary M
 
Upvote 0
Top