Deploy a Native android app (apk) on Cloud-Foundry - android

So, I am new to cloud-foundry that's quiet evident by the question title but I tried to search a lot on the internet and could find a lot of distributed information i.e.
CF is cloud platform where you can publish your apps (web and
mobile), no practical demonstration of how to do what and a basic setup for a newbie (probably i couldn't find).
CF is a free service where you can write and publish your
web-services via Node.js and MongoDb.
But what I am really looking for is answer about how can I migrate or deploy a native mobile app i.e. an apk file on cloud foundry so that a user can download some cloud foundry client on his android smartphone and run the same.
What if I have made and apk or native android app ground up and I want to utilize the capabilities of cloud-foundry to release it to the users.
How much work is pending at my end and what ?

I apologize as I do not understand exactly what you're trying to do here, but if you just want to be able to upload and distribute some static files (i.e. your APKs), you can do that quite easily.
There is a "Hello World" tutorial here which shows how to push a static HTML file. Replace that file (or add additional files, everything in the current directory is uploaded) with your APKs and you should be able to distribute them via Cloud Foundry.
https://docs.cloudfoundry.org/buildpacks/staticfile/index.html#sample
Hope that helps!

Related

How to allow other people test my react native app on their iPhone and Android devices?

I'm a web developer and just new to the mobile world, I wonder how I can allow another people to test my app on their device remotely?
For example, on the web app, I will create a staging environment (stg.example.com) and then they can easily test it from everywhere. But I can't found the same way for mobile app (react native). I can install the app to my phone through a capable, but I can't do it on my customer phone :sad:
Do I must publish it to App Store/CH Play first and then they can install and test it? It seems a bad idea :sad:
I really appreciate any advice,
Thanks!
1-You can use Expo CLI where you can send the QR Code to your other team members and they can easily check your app with EXPO APP by using the QR Code.
2-If you are using react-native CLI then there is only one way to send your android app to your other team members or friends and that is to generate a signed apk. Read here how to generate signed apk : https://reactnative.dev/docs/signed-apk-android
Once you get the apk you can send it to anyone through google drive or any other free cloud storage or through Bluetooth.
For IOS it's quite difficult you need to have an Apple account to generate ipa (iOS App Store Package). See this it will help you How to share a compiled iOS app ipa with your users for testing
Upload it to playstore/ app store is not a bad idea, e.g. you can do a closed beta test there. Another option is when your customer activate unknown sources on there device they can install the apps directly.

Best way to share Android app with Azure

We have a website hosted as an Azure web app service. The system also has an Android client. The system is a LOB system with known customers and (at the moment) we don't want to host the app in Google Play at the moment.
At the moment we share the Android apk through the website but that always requires a new build of the web even when only the android app has changed.
Problem with just republishing the app service are twofold:
The site is an Asp.net Core site with WebJobs. At the moment tooling doesn't support deploying WebJobs with Asp.net Core sites so with every build we have to reupload the WebJob through the Azure portal so we don't want to increase the amount of builds.
The apk needs to be added to the visual studio project and the removed after deployment so we don't add the apk to version control.
Provisioning a CDN service just for this apk file is overkill. Hosting it in Azure blob storage is an option but don't know how to manually update a row there.
Requirements are that the url the the apk file should be static, either so that the Azure resource would have a static url or that the web site could stream the file from some Azure storage.
Are there any better ways to host an app in Azure?
If someones interested I ended up creating a Storage account for blobs and it turned out I could upload and edit the blobs directly from Visual Studio. The apk then got the url
https://storageaccount.blob.core.windows.net/mycontainer/myapp.apk

Neccessary procedure for deploying a django app for production

I have developed a django app and i'am confused.
1). What is the procedure to convert the django app from development to production.
2). Once the app is available for users (ie Live on a server),How to add future development to the app without needing to upload the whole thing but just the changes and the new packages.
3)Is sqllite efficient enough to be used for servicing a large group of users and integration with android, ios apps.
1) To convert your Django app from development to production, you open your settings.py file and look for the variable DEBUG. Set its value to FALSE. Now Django won't give debugging tips if some error occurs and hence its safe for production now.
2) Use Git. One of it's purpose is to keep adding only the new things as we upgrade our app without having to upload the whole app every time. It's very convenient.
3) Read this to understand which database you need.

How to create an APK of a HTML5 to run on Android

I know that those kind of questions have been asked before, but I couldn't find a topic to help me.
I have been give a HTML5 game and I was asked to verify if I can run it on an Android tablet.
I'm a little bit confused with what I have to do? Should I create an Android project and import the file or is there an easier way to create an apk?
Thanks for your help.
You could look at Apache Cordova. This is a powerful environment made to support app development in HTML5. As such you should be able to literally copy your game resources over, run a build and have a full fledge Android App. Fun fact, provided you have access to OS X, Cordova will produce an iOS compatible app too.
If your game consists of HTML, CSS and JavaScript, such that it can be run off a modern web browser with no special plugins installed, rest assured it can run in an Android tablet.
You could access it directly from the tablet's browser or you can make an app (packaged in an APK and installed from it) which does essentially the same, but with a great benefit: the web page and the app can communicate (via JavaScript), enabling a richer experience.
Example of such communication: you're making an app for a web forum, and the link for "compose new message" opens an Android activity for writing that POSTs the result to the server, instead of constraining you to write in a small web browser form.
For more information on the subject, check out Android API Guides for Web Apps.

Best way to deliver a website to view offline on an Android tablet

looking for some advice on what is the best way to deliver an HTML/CSS based website for use on Android tablets offline.
Having researched the topic on here for a while and looking into different development techniques there seems to be two outright 'winners' as such for delivering such a project.
Firstly, is to build the website normally and then save it to an SD Card to run in the Android browser, secondly is to use Adobe Air and run as an Android app but what I'd also like to know is whether if it is possible to browse the website online and have it cache on to the device so that when it loses an internet connection the full website will still run as normal.
A bit more info on the website, it will be built completely in HTML/CSS with responsive templates so that resolutions aren't an issue and it is a 'brochure' website so the content won't need updated at any point.
Any help on the issue is much appreciated as developing Android apps or running websites from an SD Card is something I've not had the pleasure of doing before.
Many thanks
PhoneGap is an HTML5 app platform that allows you to author native
applications with web technologies and get access to APIs and app
stores.
Say goodbye to SDKs, compilers and hardware. Simply write your app
using HTML, CSS or JavaScript, upload it to the PhoneGap Build service
and get back app-store ready apps for Apple iOS, Google Android, Palm,
Symbian, BlackBerry and more.
By compiling in the cloud with PhoneGap Build, you get all the
benefits of cross-platform development but can still build apps just
the way you like.
You can use PhoneGap and even Build PhoneGap (online version) - just upload your entire HTML5 app as a ZIP folder (local paths like /assets/ and not D:/images/) - just the full app code and zip it - then use PhoneGap - it will convert it and give you the App code file - visit Android marketplace as well as others such as Apple and upload.
done.

Categories

Resources