Android app selenium/webpages - Java for Android App Development

So i coded a while ago in python to make a little project with selenium drivers
what if i want an android app that if i put in the username and password, it will put that in the website and login retrieve a string and print that on the screen without opening a browser? and seeing all of that? it that effecient to do with selenium? i want something i can use in android studio so that i can put in and retrieve information from web pages from and to and variable...
how would i do this?
thanks in advance! :

asimo_1 said:
So i coded a while ago in python to make a little project with selenium drivers
what if i want an android app that if i put in the username and password, it will put that in the website and login retrieve a string and print that on the screen without opening a browser? and seeing all of that? it that effecient to do with selenium? i want something i can use in android studio so that i can put in and retrieve information from web pages from and to and variable...
how would i do this?
thanks in advance! :
Click to expand...
Click to collapse
Hey,
my first idea to this Problem would be old plain manual parsing. So you would have to reverse engineer the structure of the requests the website needs. Then you can submit 6our values and must be able to get the values out of the http Response.
Greetings from Germany
P.S. Not many people look in this forum for help. So maybe you get not much help here. Sorry.
P.P.S. I never worked with Selenium, so I'm unsure if you can use it directly in Android Apps

pbeckmann said:
Hey,
my first idea to this Problem would be old plain manual parsing. So you would have to reverse engineer the structure of the requests the website needs. Then you can submit 6our values and must be able to get the values out of the http Response.
Greetings from Germany
P.S. Not many people look in this forum for help. So maybe you get not much help here. Sorry.
P.P.S. I never worked with Selenium, so I'm unsure if you can use it directly in Android Apps
Click to expand...
Click to collapse
Thank you very much!

Related

SMS Fun Tool

Hi everybody. When I write SMS with my girlfriend I sometimes mess with the text. For example I write the text down on a paper and writh it backwards like:
Hi sweetheart. I just wanted to say that I stay here one more day. I love you --->
ouy evol I. yad erom eno ereh yats I taht yas ot detnaw tsuj I. traehteews ih.
So that she has to read it from the end.
Unfortunatly I am not a programmer. Could anybody write a tool that can mirro an sms text please. Then it would be easier. No need of paper anylonger.
And if anybody else has more funny ideas it could end up in a fun sms tool.
Thanks alot.
Greets Alex
oh yeah great fun. I suggest you ask your girlfriend to look at the phone facing a mirror and read the text from the mirror image. Just joking no offince There are serious issues which need to be resolved with XDA2 SMS before we can make fun out of it.
Kufi, have you really thinked on what you said ? did you try the mirror ? was the same effect ?
Alex, if i have some time, i'll write a simple app to do it in the next days and post it here
regards
Hey Hbatista! Sounds great!
Thank you very much!
@ kufi if you turn your display off you get a mirror
Alex
loooool guys, you are wonderful! I tried the mirror but what I saw was the ugly me..
here's your tool with source code
Glad that good humour still persists!
Here's your app. I'm including source code and a ARM cab to do the installation. You should copy the cab and dat file to your device and proceed to installation.
Hope it helps
regards!
talking about good humor..
I included in the about box a small credit to Kuffi!
Hi hbatista! Thank you very much for your cool tool.
A copy function would be cool though. Because then I could copy any text into a sms or mms using the normal tools which also stire the send messages.
And... Nice Mirror Pic Man!!
Thanks.
Alex
right away!
no problem!
here's the new version with a copy/paste menu!
Thanks Man.
Really nice one.
Alex
Now I get an error:
MirrorSms.exe
MissingMethodException
Application::Run+0xf
frmSendMirrorSms:Main+0xa
Is anything else exept the files you attached needed to run it properly?
Alex
sorry!
yep.. I only tested it on emulator, and I don't know why the opennetcf is not being correctly installed...
this new version is working...
Now another funny thing. Does anybody remeber these secred languages form childhood? We were about 5 children and we had such a language training it for weeks. At the end we were really fluent and nobody could understand us. My sister and I still use this language for fun every now and then.
Now we could transfair this to SMS.
For example: Iluvi aluvam coluvomiluving laluvateluver.
which means: I a m co mi ng la te r
I am coming later.
The rule is: After each vowel you put luv and then repeat the vowel if there are more vowels in a row like ea you take all of them and put luv there like ealuvea.
Do you like my suggestion?
Any other ideas?
Alex
lol
well, and what about random ? :lol:
the source code is there, so any other posters can change it. now i have to come back to my vehicle tracking system
Thanks anyway.
Very nice tool
Greets
Alex
phonenumber?
Do you need to type the phone number in by hand? I don't know any phonenumber nowadays ...
Copy/paste doesn't seem to work in that field
phonenumber?
Do you need to type the phone number in by hand? I don't know any phonenumber nowadays ...
Copy/paste doesn't seem to work in that field
contacts integration only available at commercial release
(read this post title) :lol:
I'm just kidding.
Well, integration with contacts will be a little more difficult. There is no library to do it in the language i used.
Even the clipboard integration was more difficult than sending the sms (can u imagine ?), because compact framework does not support CE clipboard.
I'm not fluent in eC++, but maybe other posters can do it...
Although, if i have some time i will do it...
regards
Hello hbatista,
I'm trying to find a simple programming language to program small nice functions for my Qtec. can you suggest an affordable language ?
thanks
See OpenNetCF
Hi Abalgir
Right now, the best choice would be eC++ (embedded visual c), but for someone initiating, it could be complicated. You can also choose embedded visual basic (eVB).
Although, Microsoft operating systems are migrating to "Managed code" and .net technologies. This means that you should start thinking on using .net to program the devices. In .net you can choose your favorite language, like c# or vb.net, but i prefer c#.
With .net compact framework, you can do a lot of things, but some core fiunctionalities are still not available, but you can use something like OpenNetCF (see www.opennetcf.org) to do core things like sendsms, etc
hope it helps
All the tools you need to develop for windows mobile
I received some private messages with more questions about how to develop for qtek
Here's a link that better explains what i said earlier and gives more details about everything you need to develop for windows mobile:
http://msdn.microsoft.com/mobility/...ry/en-us/dnppcgen/html/devtoolsmobileapps.asp
Emulators are included in PocketPC 2003 sdks
regards

Read GPS coordinates and upload them to a website

Hi all,
I'm looking for a very simple program which will read GPS coordinates from my bluetooth GPS receiver and use a GET or FORM request to upload them to a website, i.e.
www.website.com/gps.php?n=000.000&w=000.000
Does such a program exist? I've had a look around here and on Google and can't find anything.
If not, I would be willing to have a go at making it. In this instance, does anyone have any pointers for reading the data from the Com port?
Thanks
Oliy
Try the search next time
here: http://forum.xda-developers.com/vie...=0&postorder=asc&highlight=http+post&start=50
Oliy said:
I've had a look around here and on Google and can't find anything.
Click to expand...
Click to collapse
Thanks for the link, however all the solutions in there are far more complex than what I want, or limited to me making an account on someone else's server.
Is there just a really simple app to do this? Or could anyone provide source code of getting the GPS coordinates, and I could make the rest of the program from there.
Cheers
Oliy: it's a little more involved then just reading the com port. What kind of experience do you have? You have to do quite a bit of token and string parsing. Have a read of the GPS protocols:
http://vancouver-webpages.com/peter/
V
Hi Vijay,
Thanks for the link. String and token parsing is fine. I have plenty of experience in core operations of programming languages, it's when you get into hardware specific things that I have very little experience.
I don't have a whole lot of time to program at the moment, I start my internship on monday and I have work on my own little OmapScaler project building up as well, but I've found a guy on this forum who seems to have the same ideas as me, I've PMd him and will hopefully get a reply soon.
Oliy

Opinions and ideas on the upcoming beta!

Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further. The time has come.
I have been coding the new features for my website (www.touch-innovation.com) and here is the list I have thought of and has users suggest via email:
- Live submit (Submit directly onto the site... instantly. With lots of security though )
- Screenshots on category lists
- Download names instead of random hash.
- Add comments to news sections
- And lots of admin panel updates which you don't need to know about
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Help me out come on, throw me some ideas!
<3
dude, this sounds great
all of those features sound like excellent additions. good work on the coding
no, the site looks fine the way it is
Why do you want to change that site it's clear easy to use and looks cool
Because people have complained about the fixed backgrounds on the left and right. I was thinking of making them a bit thinner to make more room for content and shiz.
Thanks for your compliments, so you don't have any other feature requests? And the Live sumbmission idea, would anyone use it?
Thanks again
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
The one and only thing I'd like to see changed? Not use javascript when clicking on applications to take you to their detail page. I get annoyed when I can't open it in another tab
It only uses javascript for the onhover effect and to make the whole td a link. If you want to open it in the new tab, just right click on the name (which is a hard link, for people without javacript).
It's been like this since first release, I did it just incase of no javascript
Napbree said:
Anyone with a decent knowledge of php drop me a line. I'm having problems editing filenames on the fly (sounds easier than it is trust me, complex scenario).
Click to expand...
Click to collapse
I guess I need more specifics, but a nice little loop with the function rename() should do the trick. I am sure you have looked at some resources, but the php.net site is great, here is rename with tons of good examples, some of which I have used in the past:
http://us.php.net/manual/en/function.rename.php
Hope this helps, FYI the site looks great!
Gudy
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Napbree said:
Okay,
I have this problem where I am never pleased with anything I do, so I keep trying to improve it and improve it even further.
Another thing is, what do you think of the design. Does it need a re-design? Does it need to be minimilsed or what not?
Click to expand...
Click to collapse
hell yeah, I know that feeling...I´m never pleased with my designs as well
And no, it doesnt need a major refresh yet but try to make the background a bit lighter so the whole site gets a bit more contrast. Just lighten up the background by 10-20% or so and show us what it would look like
And tell me if I´m wrong...but "Touch friendly programs for the windows mobile" sounds extremly strange, what about leaving the "the" out ?
regards,
Martin
Napbree said:
Thanks, rename isn't on the fly though. I'd have to rename it, then let the user download it... wait till the user has downloaded it, and then rename it back. And what hapens if someone else trys to download it in the proccess of this, they'll get a 404 for the file. I'd have to copy to a new location and do it that way. No point, I need on the fly not permanent. Normally I would use the rename function but it's not helpfull in this sutation.
I just need to play with the headers for a while and get them working .
Thanks for your help though
And thanks for the compliments.
Click to expand...
Click to collapse
I didn't understand what you needed, and I think now I do, you want to change the name as someone is downloading a file correct? If so, check this sample out, modify the header section as needed, ie this line:
header("Content-Disposition: attachment; filename=\"$file\"");
you could do any type of processing on the name you need, then just pass the string like above. Here is the link to the rest:
http://apptools.com/phptools/force-download.php
Hope this helps
m.schmidler:
Thanks, I'll try that now. And the "The" bit... Well it makes it sound like it's the only decent phone - aka unlike iphone . Its pronounced th-eee not th-u. So it sounds slightly different.
Get what I mean?
mjg7876:
I've been looking into the disposition header for a while, but the way I currrently download files is quite simple but to interlock these 2 things togeather is complex. Especially considering I will need to do checking, exploding (for the file extension) and redirecting if it's not hosted on the server. I make things too complicated lol.
Thanks for your help guys btw
Anyone else?
Is it me or does the logo from this site in this post look very similar to yours?
http://forum.xda-developers.com/showthread.php?t=441647
Great Site
I love your Site. In my opinion : it doesn't need any re-design.
But i do have one suggestion : it would great to have your tables with worting features.... One could just click on the title of one column and it would be sorted.... Understand what i mean ?
Thank for your work.
Thanks for your kind words
And btw, you can already sort them (programs list only atm). Simply click on the title, download, views, etc. and it will resort.
Try it
BTW: That logo looks like a skeleton version of mine :/. There's everthing thats on mine, just minimilised! What's going on? :/
ATM work is up to my eyes, so I've had to slow down on the development. It's not something I can rush due to security.
Any more suggestions I will be more than greatful

newbie ?.. how would i do this? webpage as apk?

Sorry guys for the newbie question.
i have searched google and downloaded some examples of using WebView
but i don't think that is what i want because webview still uses the Search Bar..
What i want to do is:
:
1. i have a mobile site made up already to fit most android devices.
2. I want to wrap it i guess and create an APK..
what would be the best approach?
This isn't goign to be commercial, just an apk that i will share with some friends.
- I thought i could simply wrap it, but i am a bit lost.
maybe i am lookign for the wrong thing.. on google
I've never seen a web view that uses a search bar..
you should be able to do something like
Code:
WebView wb = new WebView(this);
wb.loadUrl("http://www.yourpage.com");
setContentView(wb);
and don't forget to set the right permissions.
It might help if you told what the webpage is that you're trying to show.
I have a website I'd like to this with.
http://www.rottweilertoday.net
I'd like to have a downloadable app that does nothing but take the user to the url.
Any thoughts greatly appreciated as always.
Are you still looking for this? If so send me an IM, I'm currently creating exact that!
to convert webpage as apk use appgeyser
If you want fullscreen app just use this on your Activity with webview:
Code:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

[Q] Android App: create twitter feed platform

I am interested in creating and android based app where short posts like twitter can be shared with a group of people who has that app. So for example if 10 people have this app and one of them decided to create a post and share it then all the other 9 people should be able to see it in there feed. I am new to app development and was hoping I can get some kind of guidance from here as to where to start. I am not sure what kind of platform or technology is used in facebook and twitter for this specific purpose but I would like a similar setup. I really appreciate any help or guidance to help me get started and thanks in advance.
Google Cloud Messaging might be helpful in that case: http://developer.android.com/google/gcm/index.html
I'd, however, suggest to create some easier apps first, just for learning. Keep in mind, a twitter clone is a big and difficult project.
Smaller project
I would like to start from a smaller project but not sure about this area at all. I was thinking to just create a small app first where I create a post and it appears on the other end. Any ideas as how to go about it? thank you for your help.
sbcoder said:
I would like to start from a smaller project but not sure about this area at all. I was thinking to just create a small app first where I create a post and it appears on the other end. Any ideas as how to go about it? thank you for your help.
Click to expand...
Click to collapse
I don't know how to do that as I've never really been interested in networking. I'd suggest to do something without networking as your first application to get used to Android's UI elements and to Android code in general.
As soon as you understood that you can do as much networking as you want but I would start with something that is easier. (A calculator is a typical beginner project. )
sbcoder said:
I would like to start from a smaller project but not sure about this area at all. I was thinking to just create a small app first where I create a post and it appears on the other end. Any ideas as how to go about it? thank you for your help.
Click to expand...
Click to collapse
i ll give the example of Facebook
there
newsfeeds run on Hadoop
messages are on nosql not sure about this
all the searches you perform on the new graph interface (exculding those on messages) are through FQL
its a language of their own Facebook Query Language
Python is the backbone of it all, chief scripting language on thier server
of course the webinterface you see is php and javascript
........ this much only i know
but there are a few more
as u can see there's more to it than it seems to be so starting with such a thing won't be a wise decision !
"no hill too high to climb" - proceed this project if you really want to !
Sent from my GT-S5302 using Tapatalk 2

Categories

Resources