Receive Data from android application in asp.net page - java

In my project I've a requirement in which I want to receive data in page load event of my asp.net application page sent by an android application. I've been through all the concepts over internet but unable to find the proper answers or any kind of code. Moreover, I also want to know that is the question I've asked it is Programmatically possible.
Note: Our Android Application also uses WebView feature of android, and displays an aspx page.

Related

Can WebView do like browser?

I have a question bothering me for these few days, I want to implement browser-like WebView, which has add/close tab and open multiple websites. But after I searched through many forums and documentation still couldn't find any solution for this, wondering can WebView do exactly what phone browser can do?
This is answered by the documentation.
Building web apps in WebView
If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.
So the answer to your question is No. The WebView class cannot do exactly what a phone browser can do.
This does not stop you from implementing missing browser features for yourself ... starting with WebView. However, the javadoc for WebView states this:
In most cases, we recommend using a standard web browser, like Chrome, to deliver content to the user. To learn more about web browsers, read the guide on invoking a browser with an intent.
And more ...

Transforming c2kschools.net into an App with Visual Studio

I wish to develop a mobile App that simply makes use of the C2K service for schools website. It has an initial ASPX login page and once logged in, it goes to a personal index.aspx homepage.
What would be the best way to go about this using Visual Studio? I have looked at Apache Cordova but I am not sure about it. Advice on which package to use and what approach I should take to transform this website into an App would be much appreciated.
Thanks in advance.
Ching
I think Cordova in Visual Studio should meet your requirement, you can simply create a blank project index.html and redirect this html to the, e.g. http://www.example.com/login.aspx
After compile, you can run your existing web inside the app.
However, the "LOOKING" of the web site will be changed, since the screen of the phone may be too small to display the content of the entire original web site, you may need to change the appearance of your original web site, otherwise the users may need to zoom-in zoom-out all the time when they browse the web site inside the phone app.

Android Development : Getting data from the web

I am beginner in Android development and I am trying to make an app that will simply display the posts on the following website http://www.montgomeryschoolsmd.org/schools/lakelandsparkms/. I need to know how can I display the data from the web into my android app. An example would be appreciated.
The easiest way to display posts into an Android application will be to use JSON data on the web, and read it into a Master Detail Android application.
On the website side, getting the data to display in JSON seems to be the most difficult part of your problem. It would be easy if it was a Wordpress site, as there are plugins that will do this for you.
On the application side, getting the data and parsing it into a master detail flow is a fairly trivial task.
Something like this tutorial may help: http://www.technotalkative.com/android-json-parsing/ or this video https://www.youtube.com/watch?v=0TulTqQM0Cc
You can make a Json request and show data with android views. Or you can download the full or partial page and show it directly in a webview.
Use Jsoup if you're trying to scrape the webpage for data and display it in a UI.

Better way to develop a remote database driven android app?

i have a wordpress blog hosted over my personal shared hosting.Now i want to develop an android app for that blog so the users can use the mobile app to see what i am writing on my blog.
Like for example you can take mashable.com android app.
so basically i have experience in programming android aap but i am just asking this so i can code it in a better way.
i have 3 idea to do this now:
1.Use rss feed of my blog and parse it and display the contents but it has a issue that rss only display most latest contents.So whether i need to store the feed contents timely on android device so a user can view the previous most content also.
But i think it's not a good idea because it will unnecessarily increase the size of database and make diff copies on every device.
2.Just simply use complete java code to pull data from my web mysql database as per the user request and just display it over the screen without storing it locally on android device.
3.Develop some sort of API solution on my web server then send the data in json or xml format so i can use it on my android device(via java) without bothering to connecting to mysql server as a core part because that part already done by on web server and my api already sending data in required format.
So these are 3 idea i have now.So please suggest me a better one form these three or you can give any other idea.
I am asking this question because previously i never programmed this sort of mobile aap where i need to pull the data from remote server.
-Thanks
You can simply install WordPress Mobile Pack to display Mobile site of your wordpress blog/site
Or
You can check this link to find out other plugins: 11 Ways to Create a Mobile Friendly WordPress Site
Now, If you want to create an app then you can simply implement it by using WebView.

is it possible to create a program that has both a web app component, and a desktop app component, in java

I want to create a program where same/similar data is submitted to many (thousands) of forms in an automated manner.
What I want to do is, the part of creating and showing web forms on screen (before user fills in captcha and form is submitted, are done by the web app, through a browser which is part of the desktop app. The response of each form submission is noted by the desktop app, which then invokes the web app to move forward to the next set of forms (to which data has to be submitted).
My questions-
Is it possible to do the above?
How does the desktop app talk to web app? Any examples you can give me on this. or any tutorials/guides? What I am thinking is, there is a simple button in the desktop app that indicates "success" or "failure" of a form submission- as per the button clicked by user, appropriate message (whether to proceed to next site in case of "success" or reload current site in case of "failure") is sent to web app by the desktop app. How do I actually implement this? How can the desktop app send messages to the web app that cannot be reverse engineered or hacked into?
Ideally I want that even if a hacker reverse engineers the desktop app, he should not be able to hack into the web app portion. (Since the web app portion does a crucial part of the work, so hacking the desktop app portion will not be any help in reverse engineering the whole application)...
Finally is it possible to do all of the above if I use Google App Engine for the web app portion?
It's certainly possible. This is one of the roles that EJB was supposed to fill long, long ago. Today, the "enterprise" solution would probably be to do this with three parts: webapp, standalone GUI, and a ReST API to service both of them.

Categories

Resources