App Question

For discussions about game development that does not fit in any of the other topics.
Post Reply
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

App Question

Post by Xaos »

Is there a way to create an app that is basically a Java console application, without the user interface? IE I click on the app and the line of text loads, rather than the other stuff? For example, this is what I get when I try to run my Java program in Netbeans:
Enter stock.
1000
Enter harvesting effort
.5
379 fish remain!
5.0 fish harvested
Wharf and Operations cost was $5000
Cost of fishing was $1
Boat maintenance cost $100
Profit from fishing was $6
You now have $4505
Would you like to continue? Enter 1 for yes, or 2 for no.
First it ask for the stock number, the user inputs it, then it ask for harvesting effort, user inputs it, then the other stuff is ran, then it ask the user to input 1 to continue or 2 for not continue. Then the process starts over. Basically im wondering if this can be an app and not have the user interface. (I'm asking with pretty much sheer curiosity, I wouldn't actually release an app like this).
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: App Question

Post by Jackolantern »

An app on what platform?
The indelible lord of tl;dr
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: App Question

Post by Xaos »

Jackolantern wrote:An app on what platform?

Android, but I guess it doesn't matter.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: App Question

Post by Jackolantern »

Well it will be different for each platform ;)

For Android, I don't know how up-to-date this is, but here is a tutorial for how to make a console-like app. I say "console-like", because there is no console for Android and virtually every other mobile OS. The author basically emulates one :)
The indelible lord of tl;dr
User avatar
Xaos
Posts: 940
Joined: Wed Jan 11, 2012 4:01 am

Re: App Question

Post by Xaos »

Jackolantern wrote:Well it will be different for each platform ;)

For Android, I don't know how up-to-date this is, but here is a tutorial for how to make a console-like app. I say "console-like", because there is no console for Android and virtually every other mobile OS. The author basically emulates one :)

Awesome, thanks ! :D
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: App Question

Post by hallsofvallhalla »

why Java? Use app mobi or another type of HMTL5 program to quickly make it and export to app.
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: App Question

Post by a_bertrand »

Actually it is not true. Android is a full running Linux OS, the only issue is that you normally don't have access to the console (command line tool). Yet you can install an app which let you access it even without being root, for example:

https://play.google.com/store/apps/deta ... c.terminal

Now, on the console level, your software can interact with the console like in any unix like environment.

Would that mean you should develop your app for that kind of interaction? I would say no, but you could.
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: App Question

Post by Jackolantern »

a_bertrand wrote:Actually it is not true. Android is a full running Linux OS, the only issue is that you normally don't have access to the console (command line tool). Yet you can install an app which let you access it even without being root, for example:

https://play.google.com/store/apps/deta ... c.terminal

Now, on the console level, your software can interact with the console like in any unix like environment.

Would that mean you should develop your app for that kind of interaction? I would say no, but you could.
I saw that it was possible, but like you said, creating an app to run on the native console is probably not smart. Your app would have dependencies, which history tells us is the kiss of death in mobile app stores. You are likely better off simulating a console.
The indelible lord of tl;dr
User avatar
Bevertails
Posts: 8
Joined: Tue Feb 04, 2014 3:51 am

Re: App Question

Post by Bevertails »

I second vallhalla's post.

If you are so "set" on the command line/console thing why don't you just emulate a console/command line?

EDIT* Didn't read Jack's post. He beat me to it.
Post Reply

Return to “General Development”