u4819210 / social-networks-for-fun

Automatically exported from code.google.com/p/social-networks-for-fun
0 stars 0 forks source link

launch chat activity for dating #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the dating search result page, I will place a chat icon by the user name. 
When user clicks the chat icon, 
GenericWebActivity.SocialRaysJavascriptInterface.chat will be called.

Currently I display a dialog to show the user name and user id. Please help add 
new code to launch the activity for chating.

Thanks.

Original issue reported on code.google.com by zhangyon...@gmail.com on 25 Nov 2010 at 4:58

GoogleCodeExporter commented 8 years ago
a little bit change to the requirement.

1. start our android application. point it to ws-test
2. go to our home page
3. type "lmcu dating" in the search box. Dating page will be launched.
4. Click the Search link, and click the Search button in the search page
5. You are now in the search result page. There are three icons for each user 
which are chat, message and photo.
6. Currently if you click the icons, javascript function will be called. please 
take a look at file 
backend/prototype-socialray/src/main/webapp/KISS/dating/search/list/content.jsp,
 you will see three javascript functions. They are chat, sendMessage and 
showPhotos. You can find that now all of them are calling 
SocialRays.startActivity. The startActivity is defined on the Android side. The 
file is /frontend/Socialrays_15/src/com/socialrays/GenericWebActivity.java. You 
may search startActivity. This java method takes three parameters which are 
passsed in by the content.jsp javascript functions. 

Please change the activityName in the content.jsp file to the corresponding 
Android activity names for chat, message and shared photos. If your activities 
need any input data, you may change the content.jsp to pass in the data you 
needed. You may also need to modify your activities to make them work with my 
current design.

Thanks a lot. 

Original comment by zhangyon...@gmail.com on 25 Nov 2010 at 11:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Got it. Will do.

Original comment by xianhao.lv@gmail.com on 26 Nov 2010 at 8:35

GoogleCodeExporter commented 8 years ago
Lv, please let me know your plan so that I can arrange my work correspondingly. 

Original comment by zhangyon...@gmail.com on 27 Nov 2010 at 8:45

GoogleCodeExporter commented 8 years ago
I have modified 
backend/prototype-socialray/src/main/webapp/KISS/dating/search/list/content.jsp 
to start com.socialrays.chat.activity.ChatTabHostActivity for chat, start 
com.socialrays.message.activity.MessageTabHostActivity.  Android app side still 
needs some enhancement for this.  share pictures no implement yet, so show 
photo maybe need some time.

Original comment by xianhao.lv@gmail.com on 28 Nov 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Thanks, Lv. It's exactly what I want.

after you finish the share photo, you can set this ticket as fixed.

Original comment by zhangyon...@gmail.com on 28 Nov 2010 at 8:01