privly / privly-android Goto Github PK
View Code? Open in Web Editor NEWThe Official repository for Privly Android
License: MIT License
The Official repository for Privly Android
License: MIT License
The content in the footer of Privly Applications overflows on mobile screens.
Here's a screenshot.
These are the templates that need to be edited :
And here's how you can build PrivlyApplications : https://priv.ly/pages/develop.html#BuildSystem
The Index application is now known as 'History'. All related Strings in the android app need to be updated.
Implement a scan more tweets option which allows the user to scan tweets further for Privly links.
Some issues came when trying to run the app:
https://gist.github.com/mkash32/7ecb48cdf5881abdbbfe :- After searching, I found the fix for this would be to change compile sdk in the build.gradle file to "23",build tootls to "23.0.0", and changing to appcompat-v7:23.0.+. After applying this fix the build was fine, but there another issue arose (during compile I assume)
https://gist.github.com/mkash32/fe8b9f87bc561311dad2 :- Researching about this issue led to excluding some http libraries because duplicates will be compiled when we include the android play services in the dependencies in build.gradle (app module). Applying this fix led to another issue.
3)https://gist.github.com/mkash32/9d63765c8c3ce90c3d1f :- The fix for this seemed very complex and unnecessary.
Implement the default navigation drawer provided by android.
[http://developer.android.com/training/implementing-navigation/nav-drawer.html]
Whenever there's an authentication failure on loading a PrivlyApplication in the webview, it shows a button to login which loads the 'Login' PrivlyApplication in the WebView because that's the default behaviour for privly-web. This will possibly confuse the user because he sees a different login page on first usage of the application and then a different login screen in the above mentioned case.
So, what we need to do is to redirect the user to LoginActivity in case of the authentication failure. The method is already defined here : https://github.com/privly/privly-android/blob/master/src/main/java/ly/priv/mobile/utils/JsObject.java#L113
You'd probably want to initiate the call from here :
https://github.com/privly/privly-applications/blob/1c6a6f586401c0c98f7a3575f7cdf952642b50a3/shared/javascripts/network_service.js#L439
Previous discussion : privly/privly-applications#154
UX testing on the privly-chrome extension showed confusion on first-use of the system. Part of the problem was that users did not know which application to select and they were not interested in reading about the different apps. This means we needed to select a strong default before asking the users to change applications. In furtherance of "selecting a default," we renamed the ZeroBin application to "Message." This probably means you will need to change a few strings in the Android app to match.
How much work does renaming or introducing an app to privly-android require? I plan on introducing a series of experimental applications in the coming months so I want to workout publishing steps for non-browser interfaces.
-Sean
We should probably add a message here that will open the server's registration page on request.
Self Explanatory.
To reproduce, generate a Privly Url for a longer text and view the Url within the application.
The app should be able to handle clicks of Privly links from other places such as the browser.
The application currently scans the first 25 messages for Privly links. Implement a feature which allows a user to scan further.
We need to provide better messaging on the share url screen. Add more options such as 'Create new content'.
Since the login isn't working currently, I went to https://privlyalpha.org/token_authentications/new and logged in to get my auth_token and I hard-coded it into the project. After logging into the android app, the privly main page is visible and at the top the status is shown as
"Pending Server Check, Application is checking its connection with the remote server"
This activity is visible for a second and then it goes back to the login activity. The call to log out is being made in the JsObject: https://github.com/privly/privly-android/blob/master/app/src/main/java/ly/priv/mobile/utils/JsObject.java#L115.
This is being called from the javascript code: https://github.com/privly/privly-applications/blob/30b06e77f57eedc451956e318b7ddc5e00877196/shared/javascripts/network_service.js#L447
I'm assuming some checks are being done in the JS code that are redirecting me to log out everytime. Could this be due to harcoding the auth_token?
If not, does anyone know why this is happening?
The application currently has a 'Connect Privly with' section in the navigation drawer. However, once a user connects with a particular service, it doesn't make sense to have that service in the same section.
We need to add a third section which lists the services the user has already connected the application with.
Add navigation using the action bar. ABS is preferred as it'll support every version of Android from 2.x and up.
How about auto-completing the email address at the login screen?like remembering the last login address or auto completing the gmail.com in the end.This feature will save some time from the user side?
Layout issues : privly/privly-applications#358
Additionally, the android client also doesn't know how to handle 'Open' for the Privly Url.
Mobile applications are an ideal way to transfer keys from one trusted device to another. In this project you would be building out this functionality for integration with the Privly family of applications. The ideal proposal would include key exchange with NFC and/or QR codes. The challenge with this project will not be to build communication for key exchange, but to properly integrate the exchanged keys with the rest of the architecture. One potential process would be to:
This is intended to be the discussion point for project proposals.
In the Twitter/FB/Gmail reading applications, you should default to only showing the user content that has Privly-type links. The best way to do this is to display any content that contains the word "privly." Since the users are unlikely to have any content when they first install the application it may be necessary to define filler content that will not be shown as soon as the app has real contents to display. I suggest showing a fake Tweet/Message/Email that gives the user information about the application.
@smcgregor , @vshivam when I added the ability to handle valid Privly Links system wide (that is, when a valid link is clicked, the cont is fetched and shown in ShowContentFragment inside MainActivity) in my pull request #55 , I discovered a bug, even if you have logged out, if you click any Privly link - the content is being fetched and shown.
If the screen dims while a hub update is in progress, it messes up the app state.
The width of the content of the History screen doesn't wrap properly.
We're currently using the Sherlock Action Bar for displaying the action bar. We should update the application to use the support library provided by android for displaying the action bar. Ideally, we could use the latest 'toolbar' implementation.
The username and password that I used for https://privlyalpha.org/ isn't working for the app
I think the application could benefit from additional prompting and directions at several steps. Specifically,
Bug Report :
03-06 11:40:21.896 10910-10910/ly.priv.mobile E/InputEventReceiver﹕ Exception dispatching input event.
03-06 11:40:21.896 10910-10910/ly.priv.mobile D/AndroidRuntime﹕ Shutting down VM
03-06 11:40:21.945 10910-10910/ly.priv.mobile E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: ly.priv.mobile, PID: 10910
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131427422, class android.widget.ListView) with Adapter(class android.widget.HeaderViewListAdapter)]
There is a better icon that can be found here. I recommend replacing the current lock found in the upper left. If this icon doesn't work because it is too dark, then we should make a lighter version of it.
Remove deprecated methods.
@gitanshu A lot of code in the activity which relates to clearing out of session data is commented out. Any ideas why ?
@gitanshu We have these dependencies for gmail but do we really need all of these ?
compile 'com.google.http-client:google-http-client-gson:1.19.0'
compile 'com.google.http-client:google-http-client-jackson2:1.19.0'
compile 'com.google.android.gms:play-services:+'
compile 'com.google.api-client:google-api-client:1.19.0'
compile 'com.google.api-client:google-api-client-jackson2:1.19.1'
compile 'com.google.api-client:google-api-client-android:1.19.1'
compile 'com.google.api-client:google-api-client-gson:1.19.1'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'com.google.apis:google-api-services-gmail:v1-rev9-1.19.0'
compile 'com.fasterxml.jackson.core:jackson-core:2.5.0'
compile 'com.google.oauth-client:google-oauth-client:1.19.0'
compile 'com.google.http-client:google-http-client-android:1.19.0'
compile 'com.google.http-client:google-http-client:1.19.0'
compile 'org.apache.httpcomponents:httpcore:4.4'
For me the app seems to work with these two dependencies :
compile 'com.google.android.gms:play-services:+'
compile 'com.google.apis:google-api-services-gmail:v1-rev24-1.19.1'
"read_mailbox" is deprecated.
This app is throwing a Invalid Scope for read_mailbox.
how will app display inbox messages?
The Privly GSoC program requires students to complete a bug before we will review their student application. Since the repository currently has no open issues, students can't do an Android GSoC project.
We need "onboarding" issues such that the issue teaches the prospective student about the code base and design of the application. The challenge in writing onboarding issues is that they need to be achievable to someone who is new to the code base.
It might be a better idea to create a custom text view class which automatically sets the typeface to lobster rather than setting it explicitly to every text view via the java code.
Some of the chatheads names are wrongly adressed to my account where as originally they are addressed to some other person. ( I can post the screenshot if required)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.