Transforming c2kschools.net into an App with Visual Studio - java

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.

Related

Google+ Sign-In Java PhotoHunt Sample doesn't show Google+ Sign-In Button

I'm new to Google+ Sign-In and trying to build an application that implement this feature.
So I look up the sample tutorial on https://developers.google.com/+/photohunt/java and try to follow it. However, when I deploy this app to App Engine or run it on my localhost:8888, the Google+ Sign-In button doesn't show up. I cannot pretty do anything with the app.
Did any of you run into this problem? I attached a screenshot on what I see when I deploy this app.
The "Invite your friends" button doesn't work either.
I notice that in the index.html, inside tag, it doesn't have "ng-app" attribute like how other angularjs app has. I'm new to angularjs as well so I don't know if this is the problem. It seems like the angularjs methods didn't get called or something.
Any suggestions will help!
For Angular JS, it can be helpful to install the Angular JS batarang. As far as the sign-in button not rendering goes, that could be caused by a large number of things.
A few things you should try out:
You could try disconnecting the app from https://plus.google.com/apps and then signing in again
Check that your authorized origins in the Google API console are correct. Note that http vs https makes a difference. This can be particularly easy to miss when you are switching from running on AppEngine because it easily supports both.
Open up the javascript console in your browser and see if you're getting any errors, this might lead you to a solution.
Watch the network traffic from the Network section of the Chrome developer tools, this also might lead to more information about where things are failing
Verify that all of the scripts are loading by viewing your page source and checking the links in your sources, most notably client|plus.js.
Verify that the Google client is working properly, you can do this from the console by typing:
gapi.client.load('plus','v1');
If none of these resolutions helps or gets you going in the right direction, you might want to consider re-downloading the sample because something could have happened to your PhotoHunt folder.
Also, which browser are you trying this on?
From the docs:
Visitors who are not signed in see the Google+ Sign-In button in the top-right of the page.
Are you signed in with your google account?
Here's the HTML:
<span id="signin" ng-show="immediateFailed">
<span id="myGsignin"></span>
</span>
I don't know Angular.js either, but I'm guessing the ng-show means display the element if immediateFailed. Immediate refers to the immediate signin, which is what google does if you're already logged into your google account. If you aren't signed in, and it still isn't displaying, have a look at the controllers.js file and see why $scope.immediateFailed would be false.
It may not be the exact solution but it works on my case.
In the code below,
<span id="signin" ng-show="immediateFailed">
<span id="myGsignin"></span>
</span>
when i removed ng-show="immediateFailed" part, it actually works. I don't know why but i think ng-show tag can not recognized so preventing the rendering of google signin button. when it is removed, button rendering is successful.

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.

Can I make an HTML5 game for Android?

Ok to be more specific... can I program an android app in Java that has something like a web view to which I can point to local files on the phone?
I'm thinking about making an android game and i'm wondering if it can be done with a little HTML5 and Javascript that is locally stored on the phone. I heard something about a web view in Java and that is why I am wondering if it could work.
Is this even possible?
As the other answers might be correct, there is a much simpler way:
If you know html5 programming, you can do a simple Android app that has one Activity containing one WebView. In that webview you load your index.html and there you go. You can basically do anything you would do on a normal web app.
PhoneGap and Appcelerator are for cross platform development and they provide access to the hardware (vibration, sensors etc) and they give you the possibility to build the native UI with html and javascript. For a pure WebApp they are not the correct frameworks/tools I think. I might be mistaken, but a WebGL Benchmark I wrote for PCs worked out of the box in the android browser and I justed used html5 and JavaScript.
Your answer is yes, your solution is phoneGap
http://phonegap.com/
yes definitely,
check out appcelerator.com, phonegap.com etc
u can probably go to google "cross platform mobile development"
there's a few neat html javascript frameworks

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.

web integrated mobile application

i want to built an application, using the netbeans mobile application software(ME), which gets data from a website and then display it on the screen may be in a text box.
Maybe you should check out some of the tutorials on this site:
http://www.netbeans.org/kb/trails/mobility.html

Categories

Resources