[HELP] Logging in to remote server - Java for Android App Development

Hi,
I am trying to create an app that logs in to my school's server, gets your timetable and
shows it to you. I am having difficulties with the logging in part, I know its an aspx page
and tried to watch what happens with wireshark when I log in but that didn't make me
any wiser. Could somebody help me out on this one or set me up in the right direction?
Thanks already
InsaneWolf

InsaneWolf said:
Hi,
I am trying to create an app that logs in to my school's server, gets your timetable and
shows it to you. I am having difficulties with the logging in part, I know its an aspx page
and tried to watch what happens with wireshark when I log in but that didn't make me
any wiser. Could somebody help me out on this one or set me up in the right direction?
Thanks already
InsaneWolf
Click to expand...
Click to collapse
The best way to approach this is not trying to log in via a login intended for users but via an api that your school provides you. Does your school provide a means of access to their server? If not would they allow this sort of access at all? Talk to them - sounds enterprising
Chances are they won't so you will have to look around for ways to login with a script. You'll have to do a little research. Of course it's not a great approach as their login procedure could change or they could add image verification etc. at anytime.
I suggest you go talk to them and offer to provide a solution to your problem. Create a simple web api. This may however be overkill for what you are trying to achieve, but its a project all the same.

hgpb, thanks for your comment.
My school doesn't provide an api. But I figured out that the login is
basically your.email.addressassword encoded in base 64.
Managed to pull the source in a normal java app, but when I try
it in Android the app crashes for some reason 0.o
And my school wont make anything out of this project, in fact,
when it is finished they might even adopt it! For now I am just
so tired with always having to log in and search through all the
names to find my personal time table.

InsaneWolf said:
hgpb, thanks for your comment.
My school doesn't provide an api. But I figured out that the login is
basically your.email.addressassword encoded in base 64.
Managed to pull the source in a normal java app, but when I try
it in Android the app crashes for some reason 0.o
And my school wont make anything out of this project, in fact,
when it is finished they might even adopt it! For now I am just
so tired with always having to log in and search through all the
names to find my personal time table.
Click to expand...
Click to collapse
Does your school use another system as a base?
If you want us to help you with your code, read this: http://forum.xda-developers.com/showthread.php?t=2439748
If you want to solve it yourself, this might be helpful: http://forum.xda-developers.com/showthread.php?t=2325164

Related

Flexilis Mobile Security Beta

Hey Everyone,
Wanted to tell all of you about a neat app we're developing, called Flexilis.
It's a mobile security suite for Windows Mobile devices, that keeps your device and data safe from loss, theft, hackers, viruses, malware, spam, and more.
We've currently opened signups for our private beta testing, if you're interested in checking it out, just hit up http://beta.flexilis.com and sign up, and feel free to chat about the product here
If anyone has questions or runs into trouble, just shoot us an email at [email protected] and we'll help you out!
-Chris
Community Director,
Flexilis Inc.
[email protected]
Also, if any of you request an invite and it hasnt gotten granted within a day or so, let me know and I'll take care of it.
If you weren't asking for so much personal information, you might actually get people to try your app...
we're actually working on revising that, the reason we ask for the phone number is because it's used to sms you your download link for the software later on in the process, we're in the process of moving that to later on in the process, as well as an explanation of why we ask for it.
Thanks for the feedback!
-Chris
NRGZ28 said:
If you weren't asking for so much personal information, you might actually get people to try your app...
Click to expand...
Click to collapse
Hey man,
nice thing with this soft, that we give the phone number is not so a big problem i think. could you post a little bit infos about the program? Cause on your side there a not many informations.
But i ithink i'll give it a try...
I just have one little question, on you privacy page you write:
When you use the Flexilis Services, our servers automatically record certain information about your usage. These logs may include information such as the IP address, mobile device identification number, phone number, operating system, version information, wireless carrier, web requests, browser type, browser language, referring pages, landing pages, pages viewed, or other usage information.
Click to expand...
Click to collapse
Why do record the pages we visit?
we're still working on a little bit of a tour/walkthrough area of the software on the front page, as we get closer to public beta, but for now there's nothing there yet. My first post in this thread gives a brief summary of it though. Feel free to shoot me an email at [email protected] with any questions!
-Chris
There's nothing in the software that tracks the pages you view or anything, what that refers to is on our end we track what pages users use on the flexilis website the most, much the same way other websites do, to track what pages and content on our site our most popular, etc.
JeckyllHavok said:
I just have one little question, on you privacy page you write:
Why do record the pages we visit?
Click to expand...
Click to collapse
I'm still not sure what your program do, but it certainly doesn't behave the way I expect.
1) Why to require authorization so often?
2) Contrary to the stated phone number is not accepted for authorization. Only email.
3) I don't really know what you mean by "a few minutes", but currently Flexilis is authorizing my phone already for more than two hours. I see no progress bar and I don't understan what's going.
4) I can't stop authorization process.
5) Why the authorization process continues even when I close all connections? Did you invent new method of communication?
6) The program is hidden from task managers and process viewers. What for?
I didn't sniff the traffic but currently behavior of your program reminds more of malware rather than security software.
My conclusion: As I don't understand what your program is doing, I'm not going to test it anymore until additional guidance is provided.
Sorry, if I'm sounding harsh. It's just writing style (tough work, you know )
No worries
1] once it's authorized the first time, it shouldnt have to authorize again, what kind of phone are you authorizing it on? we're making some fixes to the authorization process to make it even simpler that should roll out in the next release.
2] if you're outside of the US, you might need to add your country code and such if that's the case, let me know, or send me an email to [email protected] so we can look into it.
3] per all authorization questions, it'll try til its authorized, again we're fixing this.
4] per the it being hidden from task managers, we've given this some discussion, for right now it's a security feature to try to prevent theives from disabling the software, though we might fix that in the future to have the app visible in there somehow.
As far as being more indepth on all of the features, we are working on a tour of sorts to explain it all before the beta goes public.
Thanks for the feedback!
-Chris
mrcaze said:
I'm still not sure what your program do, but it certainly doesn't behave the way I expect.
1) Why to require authorization so often?
2) Contrary to the stated phone number is not accepted for authorization. Only email.
3) I don't really know what you mean by "a few minutes", but currently Flexilis is authorizing my phone already for more than two hours. I see no progress bar and I don't understan what's going.
4) I can't stop authorization process.
5) Why the authorization process continues even when I close all connections? Did you invent new method of communication?
6) The program is hidden from task managers and process viewers. What for?
I didn't sniff the traffic but currently behavior of your program reminds more of malware rather than security software.
My conclusion: As I don't understand what your program is doing, I'm not going to test it anymore until additional guidance is provided.
Sorry, if I'm sounding harsh. It's just writing style (tough work, you know )
Click to expand...
Click to collapse
Authorizing a device ... what a hassle. I finally gave up since I couldn't tell if it was doing anything. No more testing for or feedback from me.
fredcatsmommy: sorry it didnt work out for you. hopefully in the future when that's fixed (should be less than a week), we can lure you back, it does some amazing stuff, but we do run into bugs from time to time due to the vast number of windows mobile devices out there, and only having a small test bed of them to work with. Keep your eyes peeled, and we'll have that fixed soon!
fredcatsmommy said:
Authorizing a device ... what a hassle. I finally gave up since I couldn't tell if it was doing anything. No more testing for or feedback from me.
Click to expand...
Click to collapse
I think you need to tell us what the app actually does?
I have read this and your site and still don't know what it does?
Will hold off on trying it till I know.
How long is the initializing and activating supposed to take?
seriously, the authorizing bugs should have been worked out before releasing a beta here. we cant even tell if its running, authorizing, stealing information from our devices, etc.. I surely hope this is a legit app youre pushing, if so, FIX IT, so we can at least see what it does.
thx
I installed and authorized with no issues what-so-ever... contrary to what everyone else is saying everything seems to work just fine. works great and doesn't seem to take much memory... not a single complaint here!
Advertising your application for beta purposes is usually not a problem. But, it seems you are here more for "recruiting" testers than anything else. Looks like you joined for this purpose only.
My suggestion to you, is to give a little more description on your develpoment. Seems there are too many questions going unanswered here.
jhw549 said:
I installed and authorized with no issues what-so-ever... contrary to what everyone else is saying everything seems to work just fine. works great and doesn't seem to take much memory... not a single complaint here!
Click to expand...
Click to collapse
what device do you have? did you do anything special to get it working?
I have a sprint vogue and installed to main mem and the data conn. is constantly active.
Polargoat said:
what device do you have? did you do anything special to get it working?
I have a sprint vogue and installed to main mem and the data conn. is constantly active.
Click to expand...
Click to collapse
I have an HTC Mobul/Titan using default Rom/Radio with WinMo 6.1
To install it I just did what I would any other and installed it onto internal memory...
Correction: The application works just fine if you don't have push e-mail (aren't connected to a remote exchange server), I have been having problems all day with my push e-mail from mail2web which I use to forward my work e-mail to my phone. I have therefore decided to remove it as I can't afford to have it interfere with work.

[Q] APP IDEA for College Students

Hello everyone, I had an idea for an application that I am pretty sure has not been developed.
Would it be possible to develop an application that automatically alerts students when a college class is open or closed? I guess I am just looking for an app that automatically checks the desired class every hour or so and when there is a spot available it alerts the student (maybe even automatically sign the student up?).
Any ideas?
The greatest challenge with this kind of application is actually having the college use it for their classes, nothing impossible though
An app like that would need to interface into the school's system for optimum efficiency.
You might be able to do a web based setup that would 'learn' the schools format for passing data back and forth, and poll until a 'seats available' column changed, but it'd be messy.
You would probably be better off finding someone create one specific for your school. It's a great idea but unfortunately, schools probably are not using the same online services to handle their registration process, etc.
You could work this out in 2 different ways:
1. The Hard One: Make the time scheme from your schools website sync with the time scheme you use in your app, this would be incredebly hard to do, and i'm an IT student and I already know this that this is inpossible at my school.
2. The Easy One: Make a time scheme that you can fill in by yourself and an alarm will go off everytime a new class starts
Thanks for the posts guys. That makes sense, I understand why that would be difficult. That it too bad though, it would be such a useful app! I bet a lot of people would pay money for it.

Request: Tcping

I'm a network admin and I use the free utility Tcping to ping my access points remotely. I'd like to be able to use it on my phone as well, but there isn't an app that does anything like it as far as I can tell. I tried compiling it from source on my phone, but I wasn't able to get it to work.
Does anyone know if it is possible to port the linux version of tcping to android (without installing debian/ubuntu)?
Link: http://www.linuxco.de/tcping/tcping.html
cheezbergher said:
I'm a network admin and I use the free utility Tcping to ping my access points remotely. I'd like to be able to use it on my phone as well, but there isn't an app that does anything like it as far as I can tell. I tried compiling it from source on my phone, but I wasn't able to get it to work.
Does anyone know if it is possible to port the linux version of tcping to android (without installing debian/ubuntu)?
Link: http://www.linuxco.de/tcping/tcping.html
Click to expand...
Click to collapse
Have a look at https://play.google.com/store/apps/details?id=se.ping.android.hostmonitor
It's not tcping, but it's an app capable of tcp ping. A really good app, if I may say so myself.
kuisma said:
Have a look at https://play.google.com/store/apps/details?id=se.ping.android.hostmonitor
It's not tcping, but it's an app capable of tcp ping. A really good app, if I may say so myself.
Click to expand...
Click to collapse
Thanks for the suggestion! That app is capable of pinging a specific port, but it lacks certain features that I would need as well. I couldn't find a way to do a manual refresh (necessary for troubleshooting) and the way that this app manages port numbers is just not what I'm looking for. I need to be able to just type in a port and hit go, I don't want to be creating a gigantic list of ports in the app's settings.
However, I did find this app, which is a lot closer to what I want: http://play.google.com/store/apps/details?id=com.odinnet.servermonitor&hl=en
cheezbergher said:
I couldn't find a way to do a manual refresh (necessary for troubleshooting)
Click to expand...
Click to collapse
Ping HostMonitor refreshes each time the main activity (host list) opens/reopens.
Sorry, I just realized that was your app. Allow me to explain what I need so you can see what I'm looking to do.
I'm a wifi network technician. The company I work for manages the guest networks for hundreds of hotels all over the southeastern US. On each site, we have dozens of access points (theres actually one resort where we have over 500 aps). All of the access points are accessible through our firewall via specified ports that vary from site to site.
We have a webpage that displays all of the APs at each site with their port# and uptime display that is only accurate to within 15 minutes. So if I'm troubleshooting remotely I use tcping to see when an AP comes up in real time after a remote reboot.
Your app seems to be geared more towards what ipsentry does, where it pings in 15 minute intervals. I'm looking to run pings in 3 second intervals or less.
Also, I would like to be able to just type the hostname and port then hit go. Your app is made more for a network admin who manages a single or couple of networks, and it just takes too many steps to enter in a port to be pinged. However, there are some features of your app that I really really like including only pinging a specific host when conected to a certain ssid.
I really like your app, but I need to run pings in 3 second intervals and it's just too difficult on Ping HostMonitor. If you wouod consider adding this feature, I will be eternally grateful.
cheezbergher said:
Sorry, I just realized that was your app. Allow me to explain what I need so you can see what I'm looking to do.
Click to expand...
Click to collapse
Something like this?
Hey thanks man! I tried it though and I can't get it to run. I've attached a screenshot, am I doing it wrong?
cheezbergher said:
Hey thanks man! I tried it though and I can't get it to run. I've attached a screenshot, am I doing it wrong?
Click to expand...
Click to collapse
The sdcard isn't mounted allowing execute access. Put it someplace else, e.g. /data/local/tcping
holy moly it works perfectly! thanks a million man!
now if you had the time, you could make an app version with a gui. i'd definitely pay for an app that could do this.
thanks again for all your help!

[Q] Application using Backend Services

Hello,
I'm new here and just starting to dabble with Android app development.
I've installed android studio and began playing around with it making a few Activities just to try it out and begin building my knowledge. I want to make an app where users will need to authenticate then pull data from a server (via an API). I followed this guide (google how-to-build-mobile-app-with-app-engine-backend-tutorial to find, can't post link) to add the app engine backend to it, but I couldn't finish it because I couldn't find the RegisterActivity so I decided to take a break and come ask here.
I'm very new to this, trying to warm up to the Android activities/layouts/things so I'd appreciate it if someone could link me some tutorials or guides on setting up a backend that will be able to interact with my app to perform things like registering, logging in and fetching data? Instagram would be a good example (I'm not making a photo sharing app but the functionality in terms of signing in then fetching your photos from the feed is a similar idea of what I want to do).
I have solid knowledge in web development languages and Java but am still trying to grasp this all.
Thanks for any and all help!
Daniel

Parental Control Settings Problem

Hi folks, I have a problem. I wanted to set up a parental control for my brother, and when I go to App restriction to restrict apps, it pop-up a C++ Library error. I don't know why this happen. Pictures bellow.
First is the Error, second is the Installed Visual C++ (they are installed from games)
Kir3 said:
Hi folks, I have a problem. I wanted to set up a parental control for my brother, and when I go to App restriction to restrict apps, it pop-up a C++ Library error. I don't know why this happen. Pictures bellow.
First is the Error, second is the Installed Visual C++ (they are installed from games)
Click to expand...
Click to collapse
You either need to reinstall the C++ runtimes (see on microsoft's website)
or windows is FUBAR and needs reinstall.
mcosmin222 said:
You either need to reinstall the C++ runtimes (see on microsoft's website)
or windows is FUBAR and needs reinstall.
Click to expand...
Click to collapse
OK, I'll try, but what the hack is FUBAR
I'd suggest using this Internet thingy you're on to look up what is obviously an acronym (a well-known one in this case) but your parental controls are probably blocking you... I can't for the life of me understand why anybody would "use" such things (they are almost entirely useless; kids at my school bypassed them whenever they felt like it).
GoodDayToDie said:
I'd suggest using this Internet thingy you're on to look up what is obviously an acronym (a well-known one in this case) but your parental controls are probably blocking you... I can't for the life of me understand why anybody would "use" such things (they are almost entirely useless; kids at my school bypassed them whenever they felt like it).
Click to expand...
Click to collapse
Aye.
Setting up a different user count is a cleaner and more elegant solution.
mcosmin222 said:
Aye.
Setting up a different user count is a cleaner and more elegant solution.
Click to expand...
Click to collapse
EEhh, I have a different user account for that. I created a Standard account for my brother and set it up the Parental Control for it.
Kir3 said:
EEhh, I have a different user account for that. I created a Standard account for my brother and set it up the Parental Control for it.
Click to expand...
Click to collapse
Ummm....then what you use the parental control for? This is like trying to do the same thing twice. A properly set up account should be enough. Or are you trying to restrict his access to video games/internet? In my experience, limiting never works, unless you make him understand why it there should be a limit. And he will probably find a way to bypass it sooner or latter.
As GoodDayToDie mentioned, your parental settings are probably messing up with windows up to the point where windows goes FUBAR. So if you can't get this to work, deleting his account and recreating it should help fix the issue.
Well, removing the Visual C++ Redistributables and creating a new account didn't work, I reinstalled them, still no luck
Kir3 said:
Well, removing the Visual C++ Redistributables and creating a new account didn't work, I reinstalled them, still no luck
Click to expand...
Click to collapse
There's always the posibility to repair/reinstall windows.
try running this in the command prompt (with admin rights)
sfc/scannow
you should preferably have an internet connection active while this is happening.
mcosmin222 said:
There's always the posibility to repair/reinstall windows.
try running this in the command prompt (with admin rights)
sfc/scannow
you should preferably have an internet connection active while this is happening.
Click to expand...
Click to collapse
Code:
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files but was unable to fix some
of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
supported in offline servicing scenarios.
I cannot post the log becuase it has logs since I installed Windows.
Kir3 said:
Code:
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
Beginning verification phase of system scan.
Verification 100% complete.
Windows Resource Protection found corrupt files but was unable to fix some
of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
supported in offline servicing scenarios.
I cannot post the log becuase it has logs since I installed Windows.
Click to expand...
Click to collapse
Then you are left with repair/reinstall windows.
Well, it seems that it was corrupted Windows. I upgrade it to 8.1 and now is working, no errors Thanks again.

Categories

Resources