Connect rails app to android one - android

I have recently finished a rails app and Its is currently hosted in heroku, It has a database setuped and every thing. In the app you can upload users edit them, etc. .Now, I want to create an android aplication that can do the same things.
I have been reading about using rest but I am not shure that is the way. Any other options, thanks!

You have just two option:
Create your own API in your rails app:
Manually:
http://railscasts.com/episodes/350-rest-api-versioning
Using some gem:
http://railscasts.com/episodes/348-the-rails-api-gem
or
create android app with Webview object for working with you app by internet like browser
https://developer.chrome.com/multidevice/webview/gettingstarted
very similar question:
From ruby on rails website/webapp to Phonegap Android app?

Related

Android project for social networking system

Hi everyone i have one question about android.
I have created a social networking website. Now i want to make my own website to android application. I am a good designer for android application template like (material design ext.).
I searched on the internet how to created login and register script from android aplication using PHP,MYSQL and i found some example but that examples is not clearly.
My question is how can i use my PHP code in android aplication ?
Note: I am a new on android only php section. My website link is oobenn
You shouldn't try to port the website on Android. You should instead:
create REST APIs for your website exposing JSON Data.
download Android Studio
start developing an Android native application connecting to your website, retrieving data (JSON) and showing data to the user through the native Android UI elements
I strongly recommend you this course https://www.udacity.com/course/ud853
You have to develop webservice in PHP and call that webservice functions in Android application.

Redirecting From Android Application To Wordpress

I have Wordpress Website and I am building an android application for that.
For one case I want to redirect to my wordpress web site from android application. How can I handle cookies and sessions?
I have same database for wordpress and Android application.
I am able to do login from android and now I want to redirect same user to my wordpress web site.
Please help me. Thanks in advance!
Your Question is little bit confusing, if you just want to launch your website from APK then follow this link whcih allow you to generate APK easily,
Android Bookmark Creator
But if you want to make customized APP, then You can either make your own RESTFUL API or use wordpress XML-RPC.
XML-RPC Tutorial Wordpress
XML-RPC for android Open Source Project
But for this, you need to have good knowledge in android

Phonegap Assistance

I have the following scenario below: Please guide me.
I already have an existing web application develop using PHP & MySql, It works perfectly on
on a normal browser. What I would like to do is have the very same functionality, on
my "Android App" "iOS" and "BB".
I have been going through multiple forums, and I am still very confused. Here are my reasons:
I do not just want to load the app in the "WebView".
I want to be able to log in to my web app through phonegap, (need to send the credentials to the web app)
After logging in I want to be able to format the generated .html (to display on mobile)
On my browser it allows me to upload content to the server, if possible I would like to this as well:)
I already have the latest version of PhoneGap + ADT & SDK + Eclipse, I can develop static html apps
without any hassles, now, I just need to have client side html that talks to my server side php.
Something similar to the Facebook app and the Facebook Mobile Version.
Any suggestions.
I have just completed a project using PhoneGap, Backbone JS and Require JS, these acted as my MVC for the front end application which sent ajax request to my back end PHP application, which was converted into a rest API. Laravel does this quite well, but it might have to be a custom build for you if you are already relying on a bespoke PHP build.
I was able to deploy to Android and iOS. However, using PhoneGap means that your application will be loaded in a WebView, this might help exaplain a WebView in more detail.

Android native app to open web app

I'm looking for the easiest solution to the following scenario:
I've developed a web app.
I need to send an sms with link+parameters for a unique user's registration.
BUT I want the link to direct to a native app installation that will install an app icon on home screen, and all this native app has to do is open the link to the web app.
By that I can avoid the Awkward solution of using bookmarks in android.
I know nothing about mobile app programming, so by easiest I mean: Either very basic tutorial, or a working native app that I can just change the URL and resubmit it as a new Native app.
or Any other easy suggestion

Salesforce sandbox access from Android Hybrid App

Is it possible to access test.salesforce.com from a Hybrid app generated with the Salesforce.com Mobile SDK for Android?
When using the iOS SDK, the login URL can be set via an application setting, however this does not seem possible within a Hybrid App on Android.
Do I need to modify the PhoneGap plugin SalesforceOAuthPlugin to do this?
I'm referring to the SDK available from https://github.com/forcedotcom/SalesforceMobileSDK-Android
I think that this can't be done using javascript, if you're doin' this with mac, you have to change your app settings at (Settings | Your App | Custom Host) and replace login by test.
If you're doin' this on android, you have to edit the DEFAULT_LOGIN_URL attribute of the classe com.salesforce.androidsdk.auth.OAuth2.java to the test login URL (https://test.salesforce.com).
I was in this trouble since a week, and that's what I did and it works on my Hybrid App.

Categories

Resources