I have a small problem. I want to somehowe invoke a button in a webpage from an android application and send some information to this page. This is the part of the webpage I want to interact with.
In this form you write your name, e-mail and a comment. By clicking the button "Изпрати коментар" (which means "Send your comment") you can post a comment in the webpage. So I want to make the same functionallity, but from an android application (to write comments into the webpage).
Does someone of you have any idea how can this be accomplish?
Thank you in advance!
Related
We have a phone gap cross-platform built app and we are building the same app in native.
The app has pages/views with text with embedded hyperlinks in them where it sends the user to other pages in the same app. Of course because this is HTML based so this is possible using phone gap apps. But what if we changed that to native how can we have links inside a text where it redirects users to other views or grabs other data from the database and pushes them to the UIViewController?
How will the backend send us JSON strings with hyperlinks in them that will be able to replicate what the phone gap built app does. Is this possible?
Ok maybe we can send embedded HTML in the JSON data. But how will these <a> links open or grab other data from the server?
I find it very complicated or maybe not doable at all. Anybody has ideas on how this could be solved?
A screen shot of what i mean. This is a phone gap app.
All right first and foremost you need structured data.
Lets say I opend a main post with id '14'. Api will fetch data from server for id 14.
JSON structure can be like this:
{"title":"What are origional sin?","content":"Although Adam & Eve had been given. God has given man free will.","inlineLinks":[{"startIndex":"8","endIndex":"18","contentId":"141"},{"startIndex":"55","endIndex":"64","contentId":"142"}]}
Now using spannable string in android and attributed string in ios you now have id for specific inline link content and start and end index which you can use to add clicks to specific inline links. Once user clicks these link you have id of that specific content which you can open in your app.
Since you know the spannable string I hope you dont need the detail code.
Wish you have started your question with Spannable String problem.
Please ignore the indexes incase they are wrong ;)
I finished developing my client side application in Android.
I want to create a sign-up page and Page Login.
When the user login my app he selects several categories.
I want to show all the categories that users select a certain page. Please give me some tips for this. Do I need server side for this? If I do, where am I supposed to start? Thanks for help and sorry for weak English.
Unless you need to get the categories from the server, then this seems like something on the client side. In HTML, you can show a bunch of categories with < select >, which you can see here: http://www.w3schools.com/tags/tag_option.asp
If you're doing it in an Android app, you can use Spinner.
I'm new android developer, I don't have any great idea.
I wanna make app that will take some input from users then will pass those input to a website for sign up & then
when press Sign Up button from my app button will hit the website Sign Up button.
But I don't know how to do that.
I was search on web long time, but maximum was use JavaScript, I don't have idea about that.
Can anyone please clear me this things please.
Thanks in Advance
Its not at possible to have 2 views as in one screen. Its possible if you create some API on your website to which you Send the data to server and in return it will give you true or false, to track data insertion succeded or not.
You can't do that if the website don't provide the api service.
I have a website with a button that when clicked displays a message.
My site example: http://catcheat.net/Test/test.html
I am creating an application which should show the message that the button of my site has generated.
I wanted to know if there is some way that allows me to press that button (and then generate the text) without having to open the browser??
And most of all I wanted to know if you can take the text that was generated from the button and show it in my app (without opening the browser of course)??
I'm not sure I quite understand your question, but here I will try
As said JSoup is a Java library providing a set of API to extract and manipulate HTML files. There are several methods to read and parse an HTML page; in our case we want to retrieve it from a remote server and then we have to provide an URL.
For more information visit link
I am trying to interface multiple accounts into a single one. I mean, consider you sell your own stuff at Sites A, B, C, D. I am trying to develop an app, such that the user has to enter his credentials in the settings screen, and from then on, the app automatically logs into each of the site, and parse the HTML to get the balance.
The issue here is, I don't find any API for any of the sites. So Can i open the source of the Login page, and use it to find the HTTP Post URL and the username and password field name tags and use it as normal post? Will it login? Have you ever tried such thing.
You help would be greatly appreciated.
Thanks,
Nithin
Use Firebug in Firefox or (Tools->Developer Tools in CHrome) to find out what is sent as POST parameters & then simulate the same in java.
I wrote a simple script to send SMS using a website and wrote on howto simulate logins. You can have a look at it here. It uses python but gives an idea of how is it done.