Fwd: Blog.

70 views
Skip to first unread message

Shivam Verma

unread,
May 25, 2014, 7:17:16 AM5/25/14
to privly...@googlegroups.com
Let's shift the Android Related discussions to the mobile group.

---------- Forwarded message ----------
From: Ivan Metla <metl...@gmail.com>
Date: Sat, May 24, 2014 at 9:47 PM
Subject: Re: Blog.
To: Shivam Verma <shivam....@gmail.com>


Hi, Shivam.
I created design GUI for FaceBook and Twitter this week. In the  below images showing  GUI. 

Next week I will integrate it with fragments Gitanshu Sardana. 

Twitter GUI
List  of FaceBook users with last message

List  of FaceBook messages of user



2014-05-20 18:56 GMT+03:00 Shivam Verma <shivam....@gmail.com>:

Hey!

Since English is not your first language, I'd suggest you to ignore the blog updates unless you really want to write them.

Weekly updates over the email would be fine.

--
Software Engineer, TeeWe.




--
Software Engineer, TeeWe.

Ivan Metla

unread,
May 31, 2014, 10:30:16 AM5/31/14
to privly...@googlegroups.com

Ivan Metla

unread,
May 31, 2014, 10:48:32 AM5/31/14
to privly...@googlegroups.com
How get "String" with text from PlainPost or ZeroBin from URL. Maybe have API to get it?

Sean McGregor

unread,
May 31, 2014, 3:08:13 PM5/31/14
to Ivan Metla, privly...@googlegroups.com
The way we select applications on the extensions is to look for the
string "PrivlyApp=APP_NAME_HERE", then the application is opened by
encoding the original URL and passing it into the application as

?privlyOriginalURL=" + encodeURIComponent(url)

See this for more details on how Chrome does this:
https://github.com/privly/privly-chrome/blob/master/javascripts/background_scripts/reading_process.js#L128

I think the Android app uses a similar process.

On Sat, May 31, 2014 at 7:48 AM, Ivan Metla <metl...@gmail.com> wrote:
>> How get "String" with text from PlainPost or ZeroBin from URL. Maybe have
>> API to get it?
>
> --
> 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

Oregon State University, Department of Computer Science
Twitter: seanmcgregor
irc.freenode.net: smcgregor

Ivan Metla

unread,
May 31, 2014, 8:09:12 PM5/31/14
to privly...@googlegroups.com
This is the only way to retrieve data from privly.

Maybe have opportunity to get them in JSON?

Sean McGregor

unread,
May 31, 2014, 8:23:18 PM5/31/14
to Ivan Metla, privly...@googlegroups.com
The application handles integration with the server. The only JSON
endpoint you will be using is the one for token authentications which
is not part of the actual application.

On Sat, May 31, 2014 at 5:09 PM, Ivan Metla <metl...@gmail.com> wrote:
> This is the only way to retrieve data from privly.
>
> Maybe have opportunity to get them in JSON?
>

Shivam Verma

unread,
May 31, 2014, 10:20:22 PM5/31/14
to Sean McGregor, Ivan Metla, privly...@googlegroups.com
As Sean mentioned, the Privly Applications themselves handle complete integration with server. All that you need to do to pull the content behind the url is to pass the url to the respective show.html file.

So in the chat messages we can only show the link along with the other text material. What we could probably do next is to make the chat messages clickable. So when the user clicks on one of the messages, we look for Privly Links and then display the content behind the link.

The UI design looked good. But we should keep the colour scheme consistent with the reading and posting applications.

How do these ideas sound ?

Ivan Metla

unread,
Jun 2, 2014, 4:09:14 PM6/2/14
to privly...@googlegroups.com
Hi. I integrate faceBook back-end with facebook GUI for privly. I show messages with links to privly, then user click on it and then showing content.
 




On this week i will integrate "Android Pull to Refresh". And I will try to do some  idea to combine show messages and show privly content. 


Ivan Metla

unread,
Jun 2, 2014, 4:11:10 PM6/2/14
to privly...@googlegroups.com
privly-android.apk

Ivan Metla

unread,
Jun 9, 2014, 4:58:30 PM6/9/14
to privly...@googlegroups.com
Hi. Sorry that delayed the report.

 I finished implement facebook.  Branch in git https://github.com/metlaivan/privly-android/tree/FaceBook . apk in attached file.

@Shivam
About "Check for new messages in the background whenever either of the activities is resumed".
I done it. An example: When we return from SListUserMessagesActivity fragment to SListUsersActivity fragment, app get new data from FaceBook.

Next I am going to start integrate GUI with back-end for twitter.
privly-android.apk

Ivan Metla

unread,
Jun 15, 2014, 1:15:49 PM6/15/14
to privly...@googlegroups.com

 I finished implement Twitter beck-end with my GUI.  Branch in git https://github.com/metlaivan/privly-android/tree/Twitter . apk in attached file.

What do you recommend done at the next week?

воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
privly-android.apk

Ivan Metla

unread,
Jun 17, 2014, 5:59:52 PM6/17/14
to privly...@googlegroups.com
I have idea how creating API for displaying content. 

In this week I will try to do it. 

Ivan Metla

unread,
Jun 22, 2014, 2:34:27 PM6/22/14
to privly...@googlegroups.com
In this week I implemented api for social networks. And implement FaceBookGrabberService for login, logout and get data from FaceBook.

For using this api you must implement interface ly.priv.mobile.api.gui.socialnetworks.ISocialNetworks and set it with methodsetISocialNetworks.

For example:
public class FaceBookGrabberService extends SherlockFragment implements
        ISocialNetworks {
@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
login();
}

private void login() {
//do something for login, after that, call method runSocialGui()
}
    private void runSocialGui() {
        FragmentTransaction transaction = getActivity()
                .getSupportFragmentManager().beginTransaction();
        mSListUsersActivity = new ListUsersFragment();
        mSListUsersActivity.setISocialNetworks(this);
        transaction.replace(R.id.container, mSListUsersActivity);
        transaction.addToBackStack(null);
        transaction.commit();
    }
@Override
    public ArrayList<SUser> getListOfUsers() {
}

@Override
    public Map<String, Object> getListOfMessages(String dialogID) {
}

@Override
    public Map<String, Object> fetchNextMessages(String url) {
}

@Override
    public void logout() {
}
}
In future I will implement api for microblogs at the same way.

Branch in git https://github.com/metlaivan/privly-android/commits/api. apk in attached file.


воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.
privly-android.apk

Ivan Metla

unread,
Jun 27, 2014, 9:34:11 AM6/27/14
to privly...@googlegroups.com
In this week I fixed bugs and change code in accordance with github comments to my PR. 
Change swiperefreshlayout  to endless list in twitter.

Next I am going to implement API for microblogs, and create graber for twitter.

воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.

Ivan Metla

unread,
Jul 4, 2014, 3:55:59 AM7/4/14
to privly...@googlegroups.com
In this week I finished implementation api for microblogs and add webView for login via twitter.
  Branch in git https://github.com/gitanshu/privly-android/commits/twitter-api
 apk in attached file.

Next week I am planning get rid of the db part from the app, convert the json parsing of privly authentication to GSON and refactoring code.


воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.
privly-android.apk

Ivan Metla

unread,
Jul 13, 2014, 6:11:31 PM7/13/14
to privly...@googlegroups.com
This week I did  get rid of the db part from the app and refactored code(replaced hard code message on  resources @string, replaced hard code on constant, renamed class, moved class on 'gui' package, deleted unused and duplicate code).

I did not convert the json parsing of privly authentication to GSON, Because I think that we should not create entity for a single field "auth_key" which comes in JSON which is handled in VerifyAuthToken and CheckLoginTask AsyncTasks classes.


воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.

Shivam Verma

unread,
Jul 15, 2014, 12:17:05 PM7/15/14
to Ivan Metla, privly...@googlegroups.com
Good job!

Ivan Metla

unread,
Aug 4, 2014, 5:10:14 PM8/4/14
to privly...@googlegroups.com
I ran example of tests mobile application on Sauce Labs. result of test http://goo.gl/27duUB
Writing tests is done using Appium(http://appium.io/). 
The minus of Sauce Labs  have a free account with 90 hours testing. 
What I must do farther.

воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.

Sean McGregor

unread,
Aug 5, 2014, 12:57:15 AM8/5/14
to Ivan Metla, privly...@googlegroups.com
I'll defer to Shivam on next steps, but I know Sauce Labs has an open source plan:



--
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.

Ivan Metla

unread,
Aug 5, 2014, 3:35:53 AM8/5/14
to privly...@googlegroups.com
thanks. I have not seen it.


воскресенье, 25 мая 2014 г., 14:17:16 UTC+3 пользователь Shivam Verma написал:
Let's shift the Android Related discussions to the mobile group.
Reply all
Reply to author
Forward
0 new messages