How to import my own android application project into IBM Bluemix? - java

Can someone help me use the new PaaS - IBM Bluemix?
I faced a dilemma that I want to import my android application project which was developed on my local computer into the IBM Bluemix and run on the platform ,but I didn't know how to use it.
I have search on Internet about this ,I still cannot find the solution.
Does IBM Bluemix support this kind of service?
I just want to debug or test on this cloud platform.

You don't deploy an android application to bluemix as the android application exists on the actual mobile device (or emulator) and not in the cloud. What Bluemix offers you is the ability to have services running on the cloud that can work with your android application on the mobile device. This is called MBaaS (Mobile Backend as a Service).
For example you can have a MobileData service that allows you to store data in the cloud that your mobile device(s) (iOS, android or web) can access (think of having a game save that can then be picked up by another user device to resume playing at the same point). Bluemix provides an SDK to access these services on Bluemix from your android application source code.

IBM Bluemix is a cloud platform where you can build web applications / mobile back end services utilizing a wide range of services.
Lets say you are building a weather app. This app will require two components
1. a server side web application
2. a mobile application (lets say android)
The server side component does only one thing, it constantly collects weather forecast from multiple data sources (eg www.data.gov, forecast.io etc). This app has restful apis exposed to internet which can be invoked by mobile app to request weather forecast for a particular geo cordinates (E.g http://weatherapp.mybluemix.net/getForcast/122.20,-100.20). The server app responds to get requests in JSON format.
The Mobile app, detects current location's geo co-ordinate using mobile phone's GPS and request weather forecast of the location from server component using a HTTP get (GET:http://weatherapp.mybluemix.net/getForcast/122.20,-100.20) . The mobile app then parse the response JSON data and display information on a neat elegant screen.
If you want to port this app onto IBM bluemix, you can build the server component using, NOde.js or JSP or PHP etc, use mMongoDB,mySQL DB or Postgresql databases, use twillio for text messaging/mms or voice call, use IBM Push for notifying user about weather forecast etc.
Using Android SDK, IBM Cloud services SDk (Mobile data, push notification etc) and sell it on Google play.
Hope this helps
-Keep coding-

We have sample applications for Bluemix which can be deployed on Android. See the "boilerplate" app in the Bluemix catalog named "Mobile Cloud". Head to the Bluemix console [1], click on "CATALOG" at the top. The Mobile Cloud docs [2] reference several applications for iOS, Android, etc with server-side pieces can be deployed on Bluemix.
[1] https://bluemix.net/
[2] https://www.ng.bluemix.net/docs/#starters/mobile/index.html

you can refer developerwork article to get started to use Bluemix services for your andriod app.

First ,you need to login to bluemix and create a new account in ther,
There u have create an application in ur dashboard,where the runtimes in node.js,and add the following services namely,push,mobile data and mobile security application.
Then u need to download the android SDK available in it and add to ur android app all the jar files in the libs folder.
U need to save the app id,secret id and the link in order to connect it from local android app to bluemix.
Hope this was useful,if any doubt further,let me know

Related

sendgrid implementation without billing account in Google App Engine web project?

I am using sendgrid APIs to send bulk emails.We have cloud application in android and web using google app engine.As we know google app engine has limited quota.So we supposed to use FREE i.e.12k/month to send emails.We have integrated it properly.If I run the code at local side i.e. localhost:888, it works but if I deploy the code and try it from there then I am getting below exception.I have created an account on sendgrid already and verified as well.
com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The
Socket API will be enabled for this application once billing has been
enabled in the admin console
Is it really needed to have billing account?
You can use sendgrids web api which does not require the Socket API in App Engine.
If you want to use sendgrid's SMTP API you will have to enable billing. I would recommend using the web api though.
They have an example i successfully use in one of my projects.

Web server/db online to communicate with android?

I'm new in android and i want to know if there is some server / web service online that o can use to update and communicate with my app?
example: I have the app "message" in 5 phones so I want to communicate with all of them, if the phone 1 send a message all device must receive notification.
There is something that I can use maybe free?
You have many options to accomplish this goal, and most provide some free level of support.
In general if you want to "push" notifications to android devices, you can either directly use or use some provider that uses Google Cloud Messaging.
Using this approach directly means you need some web server to send request to, which will then forward a request to Google, which will then forward your "message" to the devices you want to reach. There are many options for free hosting of (smallish) web services. IBM's BlueMix and Heroku come to mind. So if your are comfortable writing web apps, this might be a good choice. I have used both (for Ruby on Rails backends to mobile apps) and found both very good, but am currently using Bluemix.
I believe Bluemix along with Parse also offer mobile data storage and easy access to Push notifications to both Android and iOS. I am currently using Bluemix via Ruby on Rails and pushing messages directly to devices via GCM and don't have much experience with those particular offerings.

How can i deploy two separate projects (client and server side) to the same Google App Engine project?

I'm developing an enrollment application. The client side is an Android application enabling the client to enter their information which are stored using the data storage service of the Google cloud and the images are entered are stored using the blob storage service.
The server side is J2EE application extracting the data and blobs entered previously and doing some tests such as face recognition, alphanumeric matching etc. These tests are done asynchronously.
The problem is that these 2 processes are independent. How can I deploy these two projects (client and server) to the same Google project, because the applications should use the same data?
From your application, it is clear that you have 2 projects:
Android application
Server application (written with and for deployment to Google App Engine)
For the Android application, you need to publish the application to the Google Play Store or if you want to not go via the Play Store, you could look at pushing the APK in one of the static web folders inside your GAE Application.
The Google App Engine application can be deployed using its tools and hosted on .appspot.com or your own custom domain. The assumption here is that you have done the integration between your Android application and Google App Engine application via Web Services and that data entered/captured in the Android application is sent across via Web Services that are running in your App Engine application.

How to fetch values from GAE datastore to android application ?

I'm creating a network based android application. So
1) I've installed Google App Engine Plugin in eclipse IDE and start developing a network based android applications where all information of customers are stored in GAE Datastore.
2) I've created a new Web-Application and stored Entities in datastore. Can i retrieve those values and show in my android application and add new details in from my application to GAE Datastore.
Please Help Me, I'm new to Web Service, SOAP, REST, JSON etc.
Can anyone tell me a simple method to store and fetch values from Cloud DB to Android App.
There are two apparent options:
Use Cloud Endpoints. They are proprietary and not my favourite. Also they are only available for Android, iOS and JS.
Use web services, my favourite would be JAX-RS, specifically RESTEasy+Jackson. See this GAE example and simple Android client.

GAE or just simple Tomcat Server, which should I take?

I have been working on a small Web RESTfull APP that will provide urls to create user to a database and offer signing procedure (validate email/password against database). The target client to this web app will be Android devices, from my mobile application. Once the mobile app invokes the AP and response(in JSON format is received), I parse the response, and the user proceeds with the rest of the mobile app.
At the moment I am thinking deployment. For my development, the app is deployed to a Tomcat server but I know war archives can also be deployed to Google App engine.Being a newbie in webapps, I kindly need your suggestions.Should I deploy to a Tomcat server or to Google App Engine? Is any of these methods better than the other and why?
Thanks.

Categories

Resources