I am writing you in order to ask how to approach my problem. I need to make an android application that can control a unity application in a real time. You can imagine it something like standart remote controller for TV.
I have an application in unity that works like mirror try on clothes and in that application there is a UI with possible t-shirts, pants, jackets etc which u can try on by clicking on it in unity project and what I want to do is just make an android application where I could see the the possible t-shirts, pants, jackets etc.. and I could select one by clicking on it on mobile and it will show on the body in the unity app. (so I wanna do exactly do the same what is now in the UI in unity project but I wanna do it through android app in mobile)
I was thinking of some server that will be created everytime I run unity project and my android app will connect to it and send data through the server to unity project but I was wondering if this is valid approach or do u think there is some easier/better way on how to approach this problem?
This is the first time I am making some online interaction between apps so maybe I am seeing it too simply.
Thank you for any opinion :)
Related
I'm trying to build an application, "Journal for Drivers".
I would like to add new information to the driver in this application. This information will be in text format (or text with images)
My question is, if I want to add a news update to the application, a news for drivers, can it be solved for example by some storage on a server, where the application automatically downloads this news? Or do I have to write the entire app in Android Studio and update the original version of the app?
There are three main ways to accomplish this:
You can create a webpage and use webview component to load this website in your application. In this case you will have full control on the data (backend) while you can change the ui of this webview on the fly without releasing new versions of your application. called also hybrid application (which is part native you still need to create apk with this webview) and web part which will be where most of your code exists.
You can create a native application which will be written in native only (java or kotlin) in this way you will need to release a new version every time you will change anything in your application. (including logic change or ui change).
You can create PWA project which will simulate a "native" application in this way you control 100% of the code and it will based on web. You can open a url on your mobile browser and you could "install" a mobile version of the webpage on your mobile device which will simulate a "native" application it also other platforms such as iOS, windows and Mac (if I'm not mistaken)
This can achieved via an endless number of strategies. One such strategy uses deep links along with an API for this. For this to work, you will need to set up an online server which will serve as a back end. This is where you will post your news updates to an endpoint or endpoints. This can be implemented in many ways. For example, you may just hardcode your updates to the html, or more likely you will store each article to some sort of db. When a user of the app goes to view an article, it will send an HTTP request to the server asking for the article. The server will then retrieve said article from the db, process it in whatever way needed, and send it back to your app.
Using this method, you only need to change your article on the back end (or better yet add your article to db and update a pointer that points to current article).
I have been asked to make an iOS / Android app that simply opens a website on full screen.
I have told them that, by using the iOS / Android native option to "Add to Homescreen" would accomplish the needs, but they insist on making it completelly automatic for the end-user.
Am I doomed to make both Apps for this need? Is there any way to "automatically create" or "share" an already created homescreen shortcut?
Thanks for your time.
Yes, you are doomed to make two apps, but you can start with a cross platform framework that can output to both platforms, allowing you to write it once. From how you describe this project I recommend starting with Cordova.
As maddy points out in the comment, an app that simply displays a website will be rejected by Apple. Yet if you encapsulate them website inside Cordova app, where the app need not access the website, or only access a website for updated information you will probably be approved.
I want my website should act as Google play store app.
For example, go to-> hytoz
and hytoz app
Both source are same. But when I open this app, website will shown as app and after click back or close, it's asking confirm like application.
How I can make this? I'm not android person. I'm in PHP.
First of all, making Android app isn't a one click process. To make a simple Android app, you can make use of Android WebView. Since you're new to Android, I'd suggest you to take courses on basics of Android.
You've mentioned you're familiar with PHP. You can better try PhoneGap, with basics of HTML5, CSS3 and JS, you can build an app. Also, your needs like back, close can also be done with it, and moreover, it's cross platform, you can ship to other operating systems too.
Good Luck.
I am creating an app that i would like to have apps running within it like let's say an iframe on a website. Is this possible? For example i will open my app and it will show the Gallery of the phone but while running my app, and not just by opening the gallery app which will make my app minimized. I want it exactly like an iframe, is this possible?
you can not run another app within your own application. You can do any of the following two
start the other app by sending intent message
or create the other app's features similarly in your own app.
According to your question if your need is to create a gallery then why aren't you creating a own gallery in your app? that will be more easier and flexible
You can not run another app's Activities within your app in an iframe style for security reasons, sorry.
Yes, I believe that is is possible for Apps to run cross platform if there exist a common data framework that creates a uniform standard for how data is stored and referenced. So the data can exist in the cloud but referenced via each app independently of the mobile phone platform.
i am planning to develop an hybrid application using phone gap. i want to download html pages,images & other resources from a web server instead of keeping it inside the phone gap application bundle.
is it possible to do so
is it the right way to avoid updating the application in the App Store frequently or
will android, iPhone, windows reject our application
Yes it is possible with phonegap, nothing can prevent you from loading html file from remote source. Here's my other answer on this question: https://stackoverflow.com/a/13996437/1848600
Unfortunately no. While we can say this is true, every error will brake every available app version, while if you create version by version customers will always be able to use previous ones. Also Apple apps store will ban such app.
Android/Win7-8 app will not be rejected, iOS will be rejected immediately. Here's my other answer on this question: https://stackoverflow.com/a/14436328/1848600, no point in repeating.
Yes, it's possible.
you have 2 choices to implement it. simple way is just start on web server url. but, you need a code for including cordova script file that matched target device.
another way is check & download files.
In this case, you need to write some code of phonegap for update-check, download contents & change start URL.
During you have no reason for changing native code, my answer is Yes.
exactly Apple doesn't allow to update app logic without AppStore or load page in web server, but i don't know really it is.