Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1544)

Issue 90160043: PS broadcast sms n phone call with api (for time being hit goes for only storeid 7-cleartrip)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by prannoysircar0325
Modified:
10 years ago
Reviewers:
mail2coolgarg
CC:
dev_shoppoke.com, NamanV
Base URL:
https://immpandroid.unfuddle.com/svn/immpandroid_android/
Visibility:
Public.

Description

PS broadcast sms n phone call with api (for time being hit goes for only storeid 7-cleartrip)

Patch Set 1 #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -55 lines) Patch
M spfaq/.classpath View 1 chunk +1 line, -0 lines 0 comments Download
M spfaq/AndroidManifest.xml View 2 chunks +18 lines, -0 lines 1 comment Download
M spfaq/project.properties View 1 chunk +2 lines, -2 lines 0 comments Download
M spfaq/res/values/strings.xml View 1 chunk +1 line, -0 lines 0 comments Download
M spfaq/src/app/shoppoke/faq/activities/base/BaseApp.java View 1 chunk +49 lines, -48 lines 1 comment Download
M spfaq/src/app/shoppoke/faq/activities/base/HttpRequestTask.java View 2 chunks +20 lines, -3 lines 1 comment Download
M spfaq/src/app/shoppoke/faq/activities/dashboard/Dashboard2Activity.java View 1 chunk +1 line, -0 lines 0 comments Download
A spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java View 1 chunk +52 lines, -0 lines 3 comments Download
A spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java View 1 chunk +78 lines, -0 lines 4 comments Download
A spfaq/src/app/shoppoke/faq/receiver/SmsPhoneResponseObject.java View 1 chunk +51 lines, -0 lines 1 comment Download
A spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java View 1 chunk +71 lines, -0 lines 3 comments Download
M spfaq/src/app/shoppoke/faq/storedetail/PopularQuestionHandler.java View 1 chunk +0 lines, -2 lines 0 comments Download
M spfaq/src/app/shoppoke/faq/storedetail/StoreDetailActivity.java View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 1
mail2coolgarg
10 years ago (2014-04-22 06:38:32 UTC) #1
please fix comments. and send for code review again

https://codereview.appspot.com/90160043/diff/1/spfaq/AndroidManifest.xml
File spfaq/AndroidManifest.xml (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/AndroidManifest.xml#newc...
spfaq/AndroidManifest.xml:57: <uses-permission
android:name="android.permission.SEND_SMS" >
we might not require SEND_SMS permission.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/act...
File spfaq/src/app/shoppoke/faq/activities/base/BaseApp.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/act...
spfaq/src/app/shoppoke/faq/activities/base/BaseApp.java:10: 
if there is no change in this class, then revert it back.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/act...
File spfaq/src/app/shoppoke/faq/activities/base/HttpRequestTask.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/act...
spfaq/src/app/shoppoke/faq/activities/base/HttpRequestTask.java:61: 
in above constructor change Activity parameter to Context. no need for new
constructor.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:20:
MyPhoneStateListener PhoneListener = new MyPhoneStateListener(
camelcase it, phoneListner.

format it well,remove unnecessary comments.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:40:
smsPhoneReceiverHandler = new SmsPhoneReceiverHandler(pcontext);
don't use SmsPhoneReceiverHandler int that, you need to check if the calling
number is stored in local database. and based on that you need to invoke
notification.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/PhoneCallReceiver.java:43: public void
onCallStateChanged(int state, String incomingNumber) {
format if properly.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:20:
ResponseParserListener<SmsPhoneResponseObject> {
Remove SmsPhoneResponseObject class, instead of that use StoreResponseObject,
ask naman to do the corresponding change at backend also.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:41: if (storeId
== 7) {
make a condition the storeId > 0

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:45:
.setContentTitle("Read FAQs of " + " " + "ClearTrip")
dont hardcode Cleartrip, use item.name

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneReceiverHandler.java:58:
sro.update(context);
update logic should not be here.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/SmsPhoneResponseObject.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsPhoneResponseObject.java:8: 
this class not needed, use StoreResponseObject.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
File spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java (right):

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:43: for (int i = 0; i <
pdusObj.length; i++) {
this logic is bit fishy, because it will over write phonenumber everytime. so
only last one will be sent over api. just check it, we need latest sms only,
which is received.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:49: String senderNum =
phoneNumber;
declaring senderNum is unncessary. use phoneNumber only.

https://codereview.appspot.com/90160043/diff/1/spfaq/src/app/shoppoke/faq/rec...
spfaq/src/app/shoppoke/faq/receiver/SmsReceiver.java:54: Toast toast =
Toast.makeText(context, "senderNum: "
dont display toasts.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b