OK, so I've spoken about several ideas before in the abstract about possibilities for BBS compatibile type apps for Android.
At the time, I was operating under a semi-assumption that Android apps were written in Java. Since I don't know Java, and only found 1
program's source code in Java, I pretty much figured it was beyond my abilities. However, researching further, I've discovered that it is possible to write apps in other languages, such as C++, using something like Android Studio with some additional NDKs.
So my question is this, is there any difference in code going from one OS/platform whatever you want to call it to another?
possible to write apps in other languages, such as C++, using something
like Android Studio with some additional NDKs.
Indeed, you can write android applications in a variety of languages.
At this point, however, I cannot recommend languages like C++: they're
just too convoluted and too difficult to get the details right in.
Have you looked at Kotlin at all? That is the preferred Android language.
So my question is this, is there any difference in code going from one
OS/platform whatever you want to call it to another?
I suppose this depends on what, precisely, you mean? Do you mean is
there difference in code you'd right for, say, Windows and code for Linux and code for Android? Again, the answer is "it depends". Specifically,
it depends on how you use the features of those systems, and whether you
do so in such a way that the details are abstracted away from your program. For many programs, this is fine; say, stuff that just does simple IO and computation. But if you make use of the operating system for something that's not strictly defined by the language you're using, then in general the answer is "no." Consider, for example, creating a new process. On
the Unix family this is often done using `fork`, while on Windows there's
a system facility called (I think) `CreateProcess`. You can write something
that abstracts away the difference from the bulk of your code (and indeed, you should do so as just a general software engineering hygiene principle!) but at some point that difference does exist: it isn't turtles all the way down, at some point the turtle's got to stand on something.
Specifically, my ideas currently BBS related. I've floated vague ideas here before, likely to the amusement of others. There are a couple of point system apps on Android, I use them both. Both have features I
like, and both have things I'm not real satisfied with. And neither have seen any updates in a couple of years.
I've also seen people mentioning interest in QWK reader ability for Android.
With those two projects, and others, I'm sure, there is source code out there.
JEDpoint, which I'm not familiar with, has JAVA code available, and for Example
MultiMail, which if I recall correctly, is a fairly popular QWK reader, has the C++ source code. So my thoughts at this juncture is why reinvent the wheel? Yes, there would be more to it than a simple recompile to Android, I'm certain.
the wheel? Yes, there would be more to it than a simple recompile to
Android, I'm certain.
Ah, I see what you mean. Yes, you could probably extract some code
from one or the other and run it on Android; it may be a bit of work.
If nothing else, some of the techniques could be translated from one language to the other or to something else entirely. Adding numbers
on one system is the same as adding them on another, for the most
part; same with, say, pulling subfields out of strings.
That is, no, I don't think you're off-base. I'm sure there would be
some code that could be meaningfully re-used (say, extracting message
data from the QWK format), even if the system interface and UI would
have be to redone.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 57:08:37 |
Calls: | 2,097 |
Files: | 11,143 |
Messages: | 950,218 |