is it possible to make website in node with template engine and restful api (together) for android application ..
I know it is possible when using react For website but i have no idea how to work with template engine
I'm not sure what you're asking but if you want to create a website that can act like a native-app you might have a look at Progressive Web Apps (PWA).
On the other hand, if your idea is to "reuse" code, React Native is a good solution.
Related
Suppose , i have a website and its running well . Now i want to make an android apps using website information or My apps will contain all the information of that website already contain or how can i connect an android apps with any website.
Some solution :
1. convert website into android apps (i don't need this).
2. JSON API (i think this is best option for me ).
May be there has so many option but this time i can't remember. option is best for me if it is possible . but i don't how to create a JSON API from website .
but i don't know how to do it. please let me know share something for better understand.
or if has any other better solution for this problem please let me know .
You could create a web app, using android native web view or some technologies like ionic, etc..., or create a comprehensive API endpoint in your backend/website and start build an android app from scratch.
creating a web app is a simpler approach but has so many shortcomings in design, functioning and flexibility aspect, so if you want a competitive app with a fine extendibility feature the best option is native android development. but it could be more costly as it needs both backend and android development.
If your website is already implemented and running, you can just create an Application using a https://developer.android.com/reference/android/webkit/WebView. Basically, this is an injected Browser, allowing the user to access your Website without actually open chrome/firefox etc. on the smartphone.
To improve the usability, the layout of your website should be able to dynamically resize the content.
If you wish to actually implement an application (Activities/Fragmets...) you need to connect to your backend server the same way your website is retrieving the information.
I am having mobile compatible website, it is highly responsive and do all what I need in mobile.
I just like to have an android/ios application, either it can represent my website as container.
Do we have any tool for the same. Is there any way to achieve it, as I do not want to use any mobile hardware like camera, geolocation and any other.
If any container of android or ios can provide a simple interface by opening my site in it, it will be a great option.
Kindly share your view on the same.
Have a look at this article about layouts.
A mobile application provides a different user experience than a mobile website. In your case if you don't want to use the mobile version of your site in the browser, then you need to create an application with a native UI.
For Android:
In my opinion, you should consider using the Empty Activity template from Android Studio to add a WebView inside it that will point to your website.
For iOS:
Seems like iOS Dev kit has the same kind of view.
For Windows Universal Apps:
Their Dev Kit has it as well.
Alternative:
If you feel more comfortable with web technologies, you can consider using Apache Cordova to build a mobile app from web sources.
Conclusion
All the native solutions presented are not that hard to implement (Less than a few hours), they just need you to play a little bit around with the native developing.
Cordova, the web-to-mobile solution, would also need you to play around with it.
Happy mobile developing !
I would like to ask for some advice on this issue I am having. I am working on a website that is made with ruby on rails (along with html.slim, css, angular.js).
I would like to create an Android (and, if possible also iOS/Windows Phone) app to access a part of this website.
The website does nothing more than making some api calls to a server and it's really light, so I think that I don't need to make a native app. I would like to make this app in the fastest and easiest way possible. I thought that I would be able to make convert the site using Phonegap, but this would work if it was made only with html,css and js, not also with ruby on rails. The only thing I need is to store a small string on the device (the website stores a cookie) and then to make a few simple API calls.
Thank you for any advice on this - not so clever - question.
Bye!
PhoneGap, Cordova, Ionic, etc. - all the same. None of them will run your API (aka server side code - PHP, Ruby, .NET) without doing something dramatic.
Easiest approach - write server side services (e.g. REST services) using your favorite server side code - like Ruby, and use JS to securely call into those services.
This fits the PhoneGap/Cordova/Ionic paradigm, and will allow you to build a hybrid app (aka seemingly native app) the quickest.
Just my 2 cents.
Maybe (if you need real simple app for mobile platforms) you should create Android/iOS app with browser object inside app who will be receiving html data from your public website and show it for user. You just need to create mobile layouts in your rails application.
pros:
You can create this app real quickly;
Easy for update;
Don't need to update app if something changed in general web application layouts or logic.
When you create layouts for mobile they will be work for your applications and for mobile devices who doesn't use your app.
cons:
This is not classic application, it just browser inside your app.
It is not a bad solution for start. For most sites, and projects it will be enough.
More information about rails and mobile layouts for rails you can find here:
http://railscasts.com/episodes/199-mobile-devices
Example how looks like android app with browser (Webview) object:
http://www.mkyong.com/android/android-webview-example/
https://developer.chrome.com/multidevice/webview/gettingstarted
I'm sorry if this is not the answer you were looking for.
What I am trying to do might not be quite difficult but I am confusing myself. I am trying to build an app only for Android that will play videos for my company.
As I am not an native Android developer what I did is using html, jquery and phonegap to create and bundle my app as a web view which will help the end user installing the app instead of going to a URL and then open it.
Now here the challenge starts for me, I am looking for touch optimized design which should look like a native app. I can use twitter bootstrap , foundation or any other CSS framework to make my design responsive. I also know how to make ajax based animated page loading which will help me in preventing complete page load.
The real issue: is css the only and right way to design a mobile app? Does apps like Facebook , Youtube also make use of Css to design their native apps?
I do not want to use jquery mobile because I simply don't like their design patterns.
Again, my question might seems to be foolish. What I want to use are industry standard tools to build my app, even if I have to dig into Android tutorials and learn it from scratch.
Any help ,links or guidance will be helpful.
Native apps do typically not use HTML/CSS, and instead use the widgets etc provided by the platform. That's what native means. Facebook recently switched from a web view/HTML5 implementation to native (at least on Android).
I would like to wrap my mobile website in a native shell. The reason for this is that I'd like to:
Allow my users to take pictures using the app via a link on the page, if they're using the wrapped native site.
Send push notifications to my users
Based on my initial research neither PhoneGap nor Titanium are really meant for this. What is the best strategy here? If it makes any difference, this is an enterprise app not a public app. I am only targeting Android and iOS.
Are you not looking for something like Rhodes?
http://docs.rhomobile.com/rhodes/build
So several months later I'm not sure why I thought PhoneGap and Titanium were poor choices, but they both would have worked fine, I'm sure. For a hybrid iOS app I ended up just using UIWebView with a native UITabBar and implementing some delegate methods on the web view to make it feel native.