Is there a way to import contacts to a web app? - java

For a programming class assignment (working with team consisting of users with experience in Java, PHP, .NET, MySQL, and C#), we decided to try building a basic version of a social media website (like a Twitter or Facebook clone). One of the features we wanted to try adding was a way to import contacts to the site to either invite the contacts to create an account (not really implemented due to smaller assignment scope, but just given as an option) or to check if the contact already had an account on the site (through email or name-checking).
We've seen that there's a way to do this through Android app development and permissions in Java, but we can't find much information on how to implement this on a web app. Is this possible? The closest we've come to a solution is through having the user simply enter the emails of the user they want to invite to the site (mostly through Mailchimp audiences).
Any tips or guidance would be greatly appreciated.
Thank you.

This post maybe not your answer directly but you need to know:
There are plenty of solutions for contact discovery! Just search this keyword: Contact Discovery.
However, I strongly suggest you consider privacy at the first of developing your app, because users cannot allow you to find their contacts in clear. You can use secure methods to contact discovery.
I suggest you find methods on signalapp:
https://github.com/signalapp/ContactDiscoveryService .
This written in Java and is very secure but a little hard to understand.
Please take a look at Private contact discovery for Signal to get idea.

Related

I want to integrate a chat window/option into my web app. Where do I start?

I've made a web-app for a school which gives teachers & management to interact with parents more easily. I'm not a professional programmer, programming is my hobby. I did it more as free work for a school I know and I like creating stuff on my own. I use JSP for rendering the HTML views and used a bit of jQuery for ajax functions. The user session is managed by servlets and I use MySQL as the database. The app has all the regular school stuff such as student progress tracking, fees view,attendance and so-on. One thing it doesn't have is chat feature. I looked into the socket programming in some sites and some brief videos from YouTube. All it says are the basics, ie; how to create a server object and client object and make them listen to each other using console. Some other tutorials shows me how to create a group chat. What I need is a sold guide or a tutorial that outlines the stuff for making a regular chat application, when users login, they can select an account to chat with and start private chat (no fancy stuff). I'm on my way to convert the entire front-end from jsp-html-js combo to Angular (Still learning from tutorials). So all your opinions, suggestions or any tutorial, website, book for this problem is greatly appreciated (If the tutorials/library/books/suggestions are focused on angular, great ! I'm already converting my app to Angular).
Side note - I'm not super good at back-end (Java). I'm going to solidify my skill Spring, Rest, Jax-Rs and all other stuff after I learn Angular.
First thing first. I'm glad you are leaving JSP that thing sucks.
Now, Welcome to the Angular world!
If you aren't very good at the backend you should take a look to firebase. That way you won't have to set up a sockets.io. Firebase is already a real time database.
Right here you can learn how to build a chat using firebase and angular.
https://www.youtube.com/watch?v=LKAXg2drQJQ
here's my code as well
https://github.com/devpato/fire-chat
LIVE demo: https://megachat-e414c.web.app/

AppEngine and Android (REST)

i want my android app to communicate with google app engine, to be precise I want to be able to "use" appengine as a rest server. I want on the client side the get, set, update and delete methods, and on appengine i want to be able to handle those, and manage a database saved on google servers.
I don't think I'm asking to much, but online I cannot find a guide that explains how to do that in a clear way, some of you can help me? I know nothing about network and stuff, so be clear^^
If this isn't clear enough - Really can't do much.
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial
Below links provides even easier way to accomplish appengine implementation.
http://rominirani.com/2014/01/10/google-cloud-endpoints-tutorial-part-1/

Login authentication using fingerprint

It's my final year project, which i'm making using java, and i have to develop one online attendance system for faculty and student. For faculty login, i need fingerprint login authentication, so i googled but i didn't find anything helpful in any case.
During my research, i found these sdk neurotechnology, grfinger. But, i'm very confuse how to use these on my web application. My laptop already have one fingerprint hardware, which uses authentec driver for windows login.
Please anyone help me to use my embed fingerprint reader for my web application. Thanks in advance !!
If there is any alternative for fingerprint login authentication (without using fingerprint reader hardware), in which we can just comparing the fingerprint manually, that can also useful for me. !!
It seems that you will need to use a signed Java applet for this. You might want to check this previous SO thread in which something similar to what you want is being discussed.
That being said, you might also want to take a look at "Why is your desktop app not a web app?". In your case I think it should be the other way round but I think that it might outline some points which you might find useful.
That being said, you might want to opt for a desktop application which could have it's own web browser, such as Lobo so basically your Java application which is running on the client machine handles the authentication and then, it uses its built in web browser to do whatever it needs to be done.
EDIT:
I have never used biometric locks, so unfortunately I might not be able to provide much help on the topic. As I said earlier, a Signed Java applet should have access to your client devices. If you have limited knowledge, I would recommend you build some simple desktop applications so that you can get it to work. Once you do this, you can migrate everything to your applet. You can check out this tutorial on how you can then include your applet into your web application. The tutorial uses Netbeans which in my opinion is a pretty good IDE.
I would recommend you look at some tutorials first to see the possible ways in which you can accomplish a given set of tasks. Once that you have found a way or two, you can then choose the best way which you can get them done.

Android and Jtwitter

I am trying to connect to twitter, because i am trying to write an app (for the android platfrom) that updates your twitter status. the problem i have is with Oath. I have both Jtwitter and Signpost.
how do i get these below?
JTWITTER_OAUTH_KEY ,JTWITTER_OAUTH_SECRET
I read that you have to register your application. Mine is just a testing application as I am messing around with android right now. Do i still have to register my app?
In "https://dev.twitter.com/apps/create" they are asking me for an "Application Website:"
which I dont have. do i need to have a website to register my application?
is there any easier way to connect to twitter? without oath?
thx!
You have to register your application with Twitter here to get your key and secret. You don't have to provide a real website if you're just testing. Make sure you provide real information when you release your application.
I also recommend sticking with OAuth, it's worth it and shouldn't be too complicated to work with. I personally use twitter4j for integration with android which you can find more info on here. I'm sure JTwitter is also fine but I cannot comment on it since I never tried it.
Once you get your key and secret, it should be pretty straightforward. If you require further assistance, there are plenty of tutorials you can find around to help you.
Ryan
You really should register on dev.twitter.com for your own oauth key & secret. You can use the String constants Twitter.JTWITTER_OAUTH_KEY and Twitter.JTWITTER_OAUTH_SECRET to access Twitter via the JTwitter account. This is fine for a bit of experimenting, but nothing more: About once a year, someone will abuse this freedom, at which point we change the oauth keys.

third party tool for chat?

I want to develop a chat application for my product. Its done in java and spring .
The people in my product have there own domain name.
can you suggest any good third party tool, which is free.
What about XMPP (the open protocol which is used by, amongst others, GTalk)? Have a look at http://code.google.com/appengine/docs/java/xmpp/overview.html
You question is very broad but you could take a look at http://java-source.net/open-source/chat-servers for Open-Source Chat Servers written in Java. But these are actual servers that run and clients connect to. As you mentioned a domain-name you might want a Web Based Chat Solution, check out - http://chipchat.sourceforge.net/ - for this.
Update Users want a Web Based solution using a Comet Approach
Maybe try - http://avricot.com/blog/index.php?post/2009/05/19/AvriChat-%3A-Real-time-Chat-Javascript-Comet-and-Java-Server or - http://cometdaily.com/2009/10/23/concrete-comet-examples/ also shows a example of chat with comment
Please try Google it has all the information you will ever need.

Categories