GSoC update

39 views
Skip to first unread message

gitans...@iiitd.ac.in

unread,
Jun 17, 2014, 9:33:12 AM6/17/14
to privly...@googlegroups.com
Hey all

I apologize for not being in contact lately. My laptop had been giving me troubles and I didn't have another workstation around at home.

I have integrated the Index application and moved the home items to the navigation drawer. As discussed with Shivam and Ivan, the index application is now the default screen when the user logs in to the application. Here is my latest work. Respective apk is attached.

I am currently working on integrating gmail, where I have achieved communication with the gmail server through IMAP. (here) I'll be working on the layout now. After that I'll move to implementing GSON for JSON parsing. 

Gitanshu Sardana
privly-android.apk

Gitanshu Sardana

unread,
Jul 18, 2014, 5:27:08 AM7/18/14
to privly...@googlegroups.com
Hi All!

A substantial part of Gmail integration has been done. Since the Gmail Rest API just came out this I/O, it has been a challenging task due to few bugs and inconsistencies in API output (I hope google resolves them quickly) and also due to lack of any existing android implementation code samples. The part that took most of the time was sending batch requests. The batch request API has an inbuilt callback handler. Since in android, network operations have to be done on a background thread while UI updation on UI thread, it took a lot of time to synchronize them with the inbuilt callback handler. 
I have worked heavily on improving the threads view of emails, including displaying the number of mails in thread and name of senders of first and last email in the thread if they are not same. 
The parts that are still left are:
1. Endless scrolling. Currently only first few emails are fetched.
2. Parsing and displaying meta data (sender's name and time) for individual emails.
3. Refactor the code in form of an API for other email apps.

I have merged the current code with Ivan's latest code which involves the Twitter API updates and refactoring. You can find it here: https://github.com/gitanshu/privly-android/tree/gmail-rest

My college decided to start campus placements a month earlier this year. Usually they would start mid August.

Regards
Gitanshu Sardana

Gitanshu Sardana

unread,
Aug 8, 2014, 12:14:36 PM8/8/14
to privly...@googlegroups.com
Work done since last update: 

1. Subtle improvements in gmail UI.
2. Added android-iconify library for font-awesome
3. Added icons to action bar and navigation drawer
4. Discussed logout and wipe functions with Sean (which will be added to a new Settings screen along with change content server option.)
5. Filed issues for javascript apps' mobile specific UI bugs (Resolved)
6. Added libraries to dependencies folder
7. Studied sauce labs integration

The latest code is available in this pull request: https://github.com/privly/privly-android/pull/21

Shivam Verma

unread,
Aug 9, 2014, 2:12:11 AM8/9/14
to privly...@googlegroups.com
A few improvements we can make wrt to the last PR.
  1. Get rid of ActionBar in places where we don't need it.
    e.g The Content Server Location Activity. The ActionBar shows me an icon which just opens the same activity again. This doesn't make sense to the user. 
  2. The Action Bar in the Settings Page has different icons than the other action bar icons. 
  3. If I select the ZeroBin option from the Nav Drawer and then go back to the index page, the action bar text goes to Index to ZeroBin. Same with the PlainPost option. 
  4. For me, nothing happens when I open the GMail option. It asks for permission but then it just gets stuck with the ProgressBar.
  5. Facebook doesn't work anymore, it asks for permissions, but isn't able to fetch my messages. And if I choose another option when this happens and go back to facebook, it just shows me a dialog saying Inbox is only available when connected to the internet.
  6. ActionBar Icons inside the FB/Twitter/Gmail Activities are inconsistent.

Gitanshu Sardana

unread,
Aug 9, 2014, 5:16:53 AM8/9/14
to privly...@googlegroups.com
For 1, 2 & 6, I am working on a new Settings activity which will have the content server location settings inside instead of a separate screen, along with logout and wipe buttons. So these 3 issues will all be fixed at once. 

3rd should be a trivial bug, I'll fix that soon.

4. Gmail works for me, so I'll try running the app on another handset with a different account to see if I can reproduce the problem.

Facebook is also working for me but its better if Ivan looks into it.

Ivan Metla

unread,
Aug 9, 2014, 5:32:03 AM8/9/14
to privly...@googlegroups.com
I tested Facebook via different users(test users and real user) and different emulators and phone all working. 

I tested Gmail was working too.

Try install from apk in attached file for test Gmail.

вторник, 17 июня 2014 г., 16:33:12 UTC+3 пользователь Gitanshu Sardana написал:
privly-android.apk

Shivam Verma

unread,
Aug 9, 2014, 6:18:14 AM8/9/14
to Ivan Metla, privly...@googlegroups.com

You guys need to test the application properly. The application crashes at times when I press the back button while it is loading data from some source.

One such case was when I was signing into gmail and then pressed back. (And Gmail still doesnt work for me, even with the new apk)

At times, a user just doesn't want to wait for the data to load if it is taking too much time and if I dont have something that shows up instantly I'd rather just press back and check out some other option. These are the cases that you need to check for.

Also, rather than having pull to refresh at some places and auto load at the others we should put only the auto load option.

Please stress test the application.

--
You received this message because you are subscribed to the Google Groups "privly-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privly-mobil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sean McGregor

unread,
Aug 9, 2014, 12:19:31 PM8/9/14
to Shivam Verma, Ivan Metla, privly...@googlegroups.com
I recommend a random key press test. Wildly press the screen repeatedly to find things that break. This is a surprisingly accurate way to model real users.

Sent from a mobile device

Ivan Metla

unread,
Aug 10, 2014, 2:21:38 PM8/10/14
to privly...@googlegroups.com
Also, rather than having pull to refresh at some places and auto load at the others we should put only the auto load option.

Do you mean that I need to replace SwipeRefresh(pull down to refresh) in FaceBook fragment to endless loading as Twitter fragment? 

I fixed bugs with back button.

вторник, 17 июня 2014 г., 16:33:12 UTC+3 пользователь Gitanshu Sardana написал:
Hey all
вторник, 17 июня 2014 г., 16:33:12 UTC+3 пользователь Gitanshu Sardana написал:
Hey all

Shivam Verma

unread,
Aug 11, 2014, 5:24:51 AM8/11/14
to privly...@googlegroups.com
@Ivan Yep.

I am getting the following exception messages. [ui-refactor branch, gitanshu/privly-android]

Facebook : 08-11 17:21:10.149: W/fb4a(:<default>):BlueServiceQueue(2737): com.facebook.http.protocol.ApiException: Key hash VSqaEJ1p2K6uYkCQyutSsn6AEFc does not match any stored key hashes.

GMail
:
08-11 17:21:52.264: W/System.err(14115): com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
08-11 17:21:52.264: W/System.err(14115): {
08-11 17:21:52.264: W/System.err(14115):   "code" : 403,
08-11 17:21:52.264: W/System.err(14115):   "errors" : [ {
08-11 17:21:52.264: W/System.err(14115):     "domain" : "usageLimits",
08-11 17:21:52.264: W/System.err(14115):     "message" : "Access Not Configured. Please use Google Developers Console to activate the API for your project.",
08-11 17:21:52.264: W/System.err(14115):     "reason" : "accessNotConfigured"
08-11 17:21:52.264: W/System.err(14115):   } ],
08-11 17:21:52.264: W/System.err(14115):   "message" : "Access Not Configured. Please use Google Developers Console to activate the API for your project."
08-11 17:21:52.264: W/System.err(14115): }

Ivan Metla

unread,
Aug 11, 2014, 5:48:09 AM8/11/14
to privly...@googlegroups.com
@Shivan I added your key hash to privly app on facebook. Try run.

вторник, 17 июня 2014 г., 16:33:12 UTC+3 пользователь Gitanshu Sardana написал:
Hey all

Gitanshu Sardana

unread,
Aug 13, 2014, 2:08:36 AM8/13/14
to Ivan Metla, privly...@googlegroups.com
Same as the facebook solution, the sha-1 keyhash of the computer being used to compile the application needs to be put in the google developer console. 
Please let me know if you are able to use gmail using the attached application. I tried running it on a friend's phone and it works for him.


--
You received this message because you are subscribed to a topic in the Google Groups "privly-mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/privly-mobile/9gWO8Pdbnw4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to privly-mobil...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Gitanshu Sardana
Student Council
2011049


privly-android.apk

Shivam Verma

unread,
Aug 13, 2014, 2:28:25 AM8/13/14
to Gitanshu Sardana, Ivan Metla, privly...@googlegroups.com
Yeah, Gmail works now. Good Job!

But it takes a crazy amount of time to load all of the data and I just keep seeing the ProgressBar. Can't we minimize the time taken between when the GMail option is selected and when the first data is shown.

The ideal situation would be that you start displaying the data to the user as soon as an email thread is fetched, the not so ideal solution would be that you request lesser number of emails in one request (if that is  possible ?).

Secondly, once I click on an email thread and go back it starts to load all the data again and considering the amount of time it takes to load the data this will really put off the user.

I think you haven't yet implemented the auto load option for GMail ? Also, were you able to check out the comments I left about the latest PR.


--
You received this message because you are subscribed to the Google Groups "privly-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to privly-mobil...@googlegroups.com.

Ivan Metla

unread,
Aug 13, 2014, 4:25:00 AM8/13/14
to privly...@googlegroups.com
Also, were you able to check out the comments I left about the latest PR.

@Shivam. We did not find comments at github PR.


вторник, 17 июня 2014 г., 16:33:12 UTC+3 пользователь Gitanshu Sardana написал:
Hey all

Gitanshu Sardana

unread,
Aug 13, 2014, 8:22:55 AM8/13/14
to privly-mobile
Issues 1,2,3,4 have been fixed.

As for 6th, these will be fixed when I am done working on the new Settings Activity. 

@Ivan: There are some inconsistencies with the Action bar titles in facebook and twitter because I was overriding the setTitle method. So when navigation drawer is closed, it calls the setTitle method and overrides the title with one set by setTitle method. Apologies for increasing your work :P but please use the method 'getActivity().setTitle(<string>)' in facebook and twitter to set Action Bar title wherever seems fit.

@Shivam: Should we use the dark action bar instead of light? The top bar on login screen, content server location page and web privly applications are all dark. I am attaching a sample screenshot.
Also, I didn't notice the slow loading of gmail (blame the college internet :P). I am looking into some better way to implement this. 

Let us know what's the next plan.



--
You received this message because you are subscribed to a topic in the Google Groups "privly-mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/privly-mobile/9gWO8Pdbnw4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to privly-mobil...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Screenshot_2014-08-13-17-36-14.png
Reply all
Reply to author
Forward
0 new messages