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.
Related
I am working on an Android app using Android Studio v 1.4 and the minimum sdk version is 14 and what I am trying to do is building a simple VPN client that implements PPTP and L2TP protocols.
I have googled and searched here in Stack Overflow and I have looked at the Android sdk VPN sample called toyvpn and also looked at the official documentation for the VPN Service class.
How to implement PPTP or L2TP with VpnService on Android Platform?
Is there any code samples,libraries or even a starting point to such an implementation.
The question is an interesting one. There is a fundamental flaw though in how it is phrased. I think the question is too general. However, I still think it is useful for direction.
First as others are saying VPN's are very complicated and I am sure many others would recommend not taking that on. However, there are many solutions for your needs. You mention PPTP.
"Don’t use PPTP. Point-to-point tunneling protocol is a common protocol because it’s been implemented in Windows in various forms since Windows 95. PPTP has many known security issues..." taken from this article.
The going recomendation is to use OpenVPN. Now if you go to their site they ofter already built software at a price. I assume this is not what you are looking for in the end.
What you can do is leverage the OpenVPN libraries and build it out yourself. Since it is opensource you can use the libraries for your benefit but you have to do the implementation work. What I have found for you is the GitHub repository where OpenVPN is leveraged in Android.
Source
I would certainly take a look here. It is probably a useful example that you can build from. This way you can come back and ask code specific questions if you are hitting a wall.
Lastly, VPN's are a two way street. Having it on the Android( client ) side still requires a server side implementation. So I would also think this article would be a beneficial part of the learning process.
I hope this helps.
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.
I have been doing android programming for a while now but only as a hobby. I know the basics of java, and can say I have a solid understanding of PHP and MySQL (I once followed a tutorial that showed how to create a very basic content management system). I've been wanting to expand my knowledge beyond the simple android apps I've made and recently had an idea for an android app. In this app, the user would create a Username and password the first time it is ran. From then, the user can fill out a form. From what i know so far, the valuesof this form can be stored in a MySQL database. So basically every user needs to have their own set of variables stored (which are not a lot). As I been looking around, i think there are many ways to create a web app, and there are different frameworks for doing so. I read I can create a web app with log-in, using ASP.NET. Can this be done using java? I just need some general guidance. I want to make the web app standalone, and then focus on creating an app for android that uses it.
I think good platform for your kind of case is to use Google App Engine (GAE). It provides platform to do your web-service with Java (or python if you prefer). It is also free for low amounts of traffic (like your service) and they have really good tools to manage the site (check the database entries, usage statistics, etc.).
Google has written a good set of tutorials to build webservice with Java in GAE:
http://googcloudlabs.appspot.com/
AppEngine documentation main page:
http://code.google.com/intl/fi-FI/appengine/
Signup here:
https://appengine.google.com/
I think you may want to look at JavaServer Pages.
I'm a Java programmer who is working on an iPhone application. I'd like it to use Push Notification services.
I originally thought I could use Google App Engine to provide the payloads to Apple, but I see now that it won't be possible because App Engine doesn't support the low-level socket programming that is needed to communicate with Apple.
Are there any alternatives to Google App Engine that let me use Java?
In brief, I'm wondering if there is a free hosting platform that supports Java and Socket Programming
UPDATE - since writing this question I've written an app that uses Urban Airship to act as a middleman between GAE and APNS. It works just swell. There is an app engine issue on this - http://code.google.com/p/googleappengine/issues/detail?id=1164 if you'd like to follow, but personally I've decided that this isn't really something that GAE should be doing. Just use Urban Airship.
Urban Airship provide RESTful web services for sending iPhone push notifications. This cookbook example shows how to use it from GAE using Python; I assume this can be done in Java also.
Though as yet it's vaporware, keep an eye on App Notify as well. Urban Airship looks pretty cool, but doing the math in my head, I'd end up paying them hundreds of dollars a month for an app that I'd have a hard time selling for more than $0.99.
Like Justin said (thanks random evangelist), AppNotify is launching nearer to the end of this month. We're just finishing up a few admin screens and doing some final tests. The pricing will be better structured than Urban Airship, and with a much better interface.
If you want something in particular or more info, send me an email personally at adam.m#selectstartstudios.com
We're using it to develop our own products, but if we've missed a corner case I'd like to know about it.
Good luck
You can do it yourself with an Amazon EC2 cluster. They have a nice Eclipse plugin for easily spawning Tomcat instances and remote debugging Java applications.
You can also check and follow these guys. It seems they are working on different stuff onto APNS integration. check out ns4app
Edit : They are changed their names and products ? forget my previous link. Check out MonoPush Project
I'm currently in the research phase of my dissertation project.
My project is a ticket booking system for a mobile device and I have chosen to target Android.
I anticipate the need for a client/server architecture with a central server, and so am currently looking at how Android could communicate with such a server. The server would grant the client access to ticketing information, and the client would send information about ticket bookings to the server. I'm looking at Java EE for the server as Java is the language I'm most experienced with.
I'm aware that Android comes with java.nio and java.net, as well as some org.apache packages, but am also looking for libraries/technologies that would be possible to use with Android.
So far I've not found anything massively helpful on the internet, so I'm seeing what SO can suggest.
Specifically I am interested in knowing:
What support is there for various middleware technologies in Android? e.g.
RPC based middleware
CORBA
Message based middleware
Web services such as XML-RPC, SOAP, REST
How well (or not) do existing Java libraries work when used on the Android platform? (e.g. If I wanted to use a library/API designed for Java SE rather than Android what problems might I encounter?)
Ideally, as the focus of my project isn't meant to be the communication between the server and client, I could use an existing middleware to handle the communication, but I am prepared for the worst case, which is having to write my own.
What support is there for various
middleware technologies in Android?
My personal opinion -- though I do not feel I am alone in thinking this way -- is that only protocols specifically designed to run over the Internet are remotely suitable for use with a mobile client. So, of your list, the only one that I would even entertain would be:
Web services such as XML-RPC, SOAP, REST
Some people have been maintaining an Android port of kSOAP2. However, I get the distinct impression that most Android developers working in this area have tended towards REST and REST-ish protocols. If nothing else, that's what all the fun Web sites and services are using for an API, particularly compared with XML-RPC (old) and SOAP (old and icky).
I have successfully used both the java.net.URLConnection and Apache HTTPClient libraries in Android for communicating with REST-style endpoints -- both directly and through third-party JARs -- with no real Android-specific issues.
How well (or not) do existing Java
libraries work when used on the
Android platform?
It is difficult to answer that in the abstract. Android implements a substantial subset of JavaSE, but not all of JavaSE, so there's a chance that any given JAR will expect something Android does not offer. Similarly, Android does not use environment variables, command-line switches, or a variety of other things that developers focused on the desktop might have introduced as semi-requirements. So, some things have worked for me with nothing more than a recompile (Beanshell), and some things have worked for me after removing redundant classs (JTwitter), and some things looked like they were going to be ghastly to get working (JavaMail).