just50415 / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
0 stars 0 forks source link

About file-transfer within chat session #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I want to implement file-transfer in chat session.When A is chating with B,A 
transfer a file to B.
2.I think that I may call InstantMessageSession::sendContent(InputStream 
dataStream, String mimeType, long dataLength) in order to transfer a file in a 
chat session.
3.However how receiver should handle this file-transfer in a chat session?In 
the RI application ,what should receiver do?Write "private 
IFileTransferEventListener fileTransferSessionListener = new 
IFileTransferEventListener.Stub()" ?

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
2.2.0     on Android 2.2

Please provide any additional information below.

Original issue reported on code.google.com by Splash.P...@gmail.com on 5 Mar 2011 at 12:25

GoogleCodeExporter commented 8 years ago
From the protocol point of view, file transfer session is independant from chat 
session (two different INVITE) and I confirm that you can use both services 
simultaneously thanks to the RCS API.

From the chat history point of view (see package 
com.orangelabs.rcs.provider.messaging), chat session and FT session are 
aggregated in the same content provider and if the FT is realized during a chat 
session they are linked together thanks to parameters sessionId & ftSessionId 
of the method RichMessaging.addMessage.

If you implement a chat view (UI) you can directly a cursor adapter on the rich 
messaging content provider.

In the RI, FT is not integrated in the chat view.

Original comment by jmauffret@gmail.com on 7 Mar 2011 at 1:48

GoogleCodeExporter commented 8 years ago

Original comment by jmauffret@gmail.com on 15 Mar 2011 at 3:42