Android and Jtwitter - java

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.

Related

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

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.

How to Use Proxy in Android App Java Code

I'm relatively new to Android programming and I am developing an app which needs its online traffic to go through a proxy.
1- I came across Proxy and ProxySelector in Android developer website but found very little on how and where exactly in my code to use them (I am writing Java).
2- I am concern that my users might abuse the proxy by using it for other purposes than what it is intended for. how could I ensure my app users won't be able to see or abuse the paid proxy?
Any help is much appreciated.

Android application Implement daily updates

I’m hoping this question hasn’t been asked before or that it isn’t too basic, but if it has please let me know and I will delete this question!
I have experience programming in Java but I am fairly new to programming for Android Applications (specifically on Eclipse). I’m trying to help a friend out with his business (which will inadvertently be my first Android app!). All that he wants me to do is develop an application where there will be a daily update with an inspirational image and quote. I’m sure it’s something that is extremely simple, but I’m unsure on how to provide continual updates to an application. Would I put it on a server? Can I upload it to some website (Google Drive, image sharing website, etc.) and somehow tell the app to continually grab the newest one? And then save old images and text onto the phone so they can access it anytime in the future?
If you could point me to source code that I could manipulate that would excellent! I learn best when I can alter existing syntax to see effects. I appreciate the help and hope to hear from you soon!
Would you suggest this to be a good example for me to look off of: http://developer.android.com/samples/BasicSyncAdapter/index.html
This isn't an update to the application itself, just sending new content to it. A trivial REST service calling to an HTTP server can send the information. The Spring Android RestTemplate or other similar client-side libraries make consuming REST services easy, and Spring MVC, Jersey, and dozens of other frameworks for Java and other languages can implement the entire server side of this in a few classes.

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.

Categories