Options for running code on a smart phone

In summary: Once you have an account you can use the built in submission form to submit your project to the website's "review" section.In summary, an undergraduate is trying to rewrite a code that calculates relativistic kinematics for two-body nuclear reactions so that it can be easily used in the laboratory. He has run into a problem with app development on smartphones, and is looking for suggestions on how to make the code work without going through the app store. There are many different ways to do this, but the easiest option is probably to use a web server.
  • #1
alliecat
2
0
Hello everyone!

I am an undergrad currently doing research for a nuclear physicist at the University of Notre Dame.

My current project is taking a code (written in Fortran-63 in 1967 ?:)) that calculates relativistic kinematics for two-body nuclear reactions and converting into some sort of phone application that can be easily used in the laboratory.

The problem I've run into is that after looking into Apple and Android app development, it looks like a program like this (especially when it's written by an undergrad without a ton of experience in user-interface) will not make into an app store.

Does anyone have any suggestions on how to implement code on a smartphone without having to go through the app store? My thought was maybe through a mobile-friendly web page or something along those lines, but I wouldn't know where to begin implementing that.
 
Technology news on Phys.org
  • #2
I would start by rewriting the code in a modern language (e.g. Java) and get it to work on a PC. There you can easily experiment with the user interface. When you are satisfied, you can start thinking about transferring it to a smartphone.
 
  • #3
A web page with JavaScript or PHP should work. There are multiple ways to make smartphones run your own code, but web pages are by far the easiest one.
 
  • Like
Likes mheslep
  • #4
mfb said:
A web page with JavaScript or PHP should work. There are multiple ways to make smartphones run your own code, but web pages are by far the easiest one.
I agree - but then you are left with the administrative details of getting someone to host the application...
 
  • #5
There are many free and easy-to-use options for that.
 
  • #6
mfb said:
There are many free and easy-to-use options for that.
I am planning on converting the code to C++ or Java, but it is the hosting that I've never had experience with.
Do you have any suggestions on any resources for this?
 
  • #7
I don't want to suggest specific web hosters as I don't have the overview for that. There are many lists. You can choose one, you often get ftp access and/or some web upload interface. Both are easy to use.
 
  • #8
alliecat said:
it is the hosting that I've never had experience with.

At a school the size of Notre Dame, I bet the department or university runs a web server that faculty / staff / students can use for hosting personal web sites or pages.
 
  • #9
Once it was possible to run a personal web server on a Windows PC (I have done it). I do not know whether it is possible anymore...
 
  • #10
That's probably still possible. I have no experience with doing it under Windows, but I'm running a web server on my Mac at home right now, for local testing of web pages before I publish them on a publicly accessible web server. The main issue for his purposes would be making it publicly accessible which would probably require an arrangement with the university's network staff, or with his ISP if he uses a home internet account.
 
  • #11
Yes, you can run a home web server on Windows OS (I'm not sure about Windows 10). And it's much easier than it once was because of the availability of free installers. However, to make the server public your ISP must allow inbound connects on port 80. You may need a business account with a static IP.

Although I've never done smart phone applications, I tend to agree with the others, using a web server would probably be the easiest route.
 
  • #12
Svein said:
Once it was possible to run a personal web server on a Windows PC (I have done it). I do not know whether it is possible anymore...

jtbell said:
That's probably still possible. I have no experience with doing it under Windows, but I'm running a web server on my Mac at home right now, for local testing of web pages before I publish them on a publicly accessible web server.

You can simulate running a server on a Windows machine, and access it through "localhost". You need to set up things using Internet Information Services (IIS) Manage, one of the Administrative Tools in Windows.
 
  • #13
The program you are talking about is not this one by any chance?
http://web.ornl.gov/info/reports/1967/3445605159119.pdf
There are many different ways of putting this on a phone.
e.g. You could use QPython - qpython.com
That allows you to create a python program that can run as a console app, web app or "normal" app. You can even edit the python code on the phone.
But by far the simplest way of creating an app with a graphical user interface is appinventor.mit.edu. With that you can click together an interface in less than 5 minutes and than add some code with the built in programming "language".
If you want to make it a website you have the choice between lots of different web hosters. But since you are at the university of notre dame, why not use their own web publishing services? oithelp.nd.edu/web
Just create a small website consisting of only an html and a javascript file and upload it there.
Google Apps Script is another option. It uses javascript and you can publish your code as a web app. Additionally you can also use the same code inside a spreadsheet using google's office products. https://www.google.com/script/start
 
Last edited by a moderator:

Related to Options for running code on a smart phone

What are the different options for running code on a smart phone?

There are several options for running code on a smart phone, including using a mobile app development platform, building a native app using a specific programming language, using a cross-platform development tool, or utilizing a web-based app.

What is a mobile app development platform?

A mobile app development platform is a software that provides tools and frameworks for developing mobile apps. It usually includes features such as code editors, testing tools, and app deployment capabilities.

What is a native app?

A native app is an application that is developed specifically for a particular platform or operating system, such as iOS or Android. It is built using the native programming language of the platform, which allows for better performance and access to device-specific features.

What is a cross-platform development tool?

A cross-platform development tool is a software that allows for the creation of apps that can run on multiple platforms, such as iOS and Android. It usually utilizes a common programming language and codebase for app development.

What is a web-based app?

A web-based app is an application that runs on a web browser, rather than being installed directly on a device. It is built using web technologies such as HTML, CSS, and JavaScript and can be accessed on any device with an internet connection.

Similar threads

  • Programming and Computer Science
2
Replies
40
Views
4K
  • Programming and Computer Science
Replies
13
Views
6K
  • STEM Career Guidance
Replies
4
Views
1K
Replies
16
Views
2K
  • Computing and Technology
Replies
1
Views
7K
  • STEM Career Guidance
3
Replies
80
Views
65K
  • Special and General Relativity
Replies
13
Views
2K
  • Thermodynamics
Replies
2
Views
2K
Back
Top