Android Dev - Text based game within an app - android

I am looking to add a simple text based trivia type game within an app I already have built for a Business. We would like to get more user interaction in the app. Further, I would like to have high scores...etc display in the app.
Creating a web serice and MySQL database would be simply enough to capture scores and query to top score. However, Is there soemthing like a free game API or something that would make this a lot easier than creating a game from scratch? I have seen some really complex game api's, but I am not trying to make an entire app. Just add a simple trivia game inside my app.
Any suggestions? Comments?
What would be the easiest way to go about this?

Radical Breeze's Illumination Software Creator has a tutorial on building a text-based game with their program. Illumination is a visual development environment like App Inventor.
If you don't want to go through the tutorial, I believe you can just download the code for the game. The program comes in a free download version. Illumination generates full source code for a number of platforms, including Android, though I think you may have to pay for mobile platform code generation. (Payment is "choose your own price".)
All generated code is "native". I.e., no special API.

Related

How to manage pictures and icons when developing mobile app for both Android and iPhone

I'm planning to create a BLE (Bluetooth Low Energy) mobile app for both iOS and Android devices. (iOS 11 or above / Android 6 or above)
I and my friend used both Java and Swift.
Although we searched about Xamarin or PhoneGap App,
we wanted to use our previous working environment (Xcode/Android Studio) as possible, not spending time on learning new tools.
So we want to work on a BLE app and we want to make it work on both Android and iOS. Currently, we are making the same thing using Swift and Java.
Since the UI part overlaps for both platform, we wish to ask these questions, please.
If we use Swift and Java separately, we noticed that when a picture is changed, we have to update both to each separate code.
For example, we wanted to change the round button to a square button shape. Currently, we upload the same picture to the GitHub repository respectively. So we felt something is not efficient and we want to ask is there a better way to change both sides of the app.
Solutions which require prices, like adding Amazon Web Service S3, is also welcomed.
We are creating the same UI for both platforms using Swift and Java. Since the UI, button, etc (the interface parts) overlaps for both app, is there a way to code the same UI so both of us don't have to spend time for working the same thing?
Maybe something like Xamarin could be one way, but I want to hear various advice, please.
Why not just put the images in a common folder in source control that both builds can access it? That's the common way of doing it. Using S3 (or any other server) will work if you want to download it at runtime, but since you tried checking it into source control it seems like you want it part of the build.
As for the UI- native Android and iOS have completely different UIs and ways of working with it. Really unless you want to go with an html app, you're going to write two different UIs. The UIs are the least sharable part of a mobile app. At least for business logic you have a few options (worst case you can always use C, which runs on both).

AppWarp in theoretic view

It is the first time, that I'm working on a multiplayer mode to my game, so maybe this is reason why I so many questions have.
So, I have read all the existing tutorials(also YouTube videos), but have some questions.(Because libgdx has already changed a lot since tutorials have published.)
How should a project folder structure look like? Which packages should I add to my android folder in libGDX project?
My existing single player game has 2 different roles. One for player and one for computer, with different motivations. It is a graph based game, they all playing by signing its vertices with two different colours.(The game has a mathematic base, a graph algorithm.) So, in this way all the two players codebase should be the same?
Maybe I need a screen with some listeners for the multiplayer game, and that is all? Can you please tell me some basics, about building this screen?
libGDX's changed project structure make it hard and complicated to interpret older AppWarp tutorials.
You can follow our documentation for integration. I can suggest the steps that would help you in conversation of single to multiplayer Game.
Initialize AppWarp SDK at home screen.
Connect User when he open the application after the initialization
Once User will connected you can create/Join Room API and enter in the Game Scene once join Room succeeded.
In Game scene whenever you play your turn you can send turn data with sendMove API.
Whenever game data is received you can check the nextTurn User and update the respective UI on your Game screen
So these are the steps you can use for single Player to multi Player conversion.
Let me know if you need more helps in game integration.

Importing Artificial Neural Networks in Android App

This might sound a bit of a stupid question, but I'm doing a project where I'm using an ANN to diagnose Sepsis in patients using various vital signs as inputs. The aim is to then develop an Android app that allows a user to put in the inputs and will return a risk score (% likelihood of sepsis, etc)
I'm constructing my ANN using Matlab (using their pattern recognition network wizard), and I'm using MIT App Inventor 2 to build the App itself.
Where I'm struggling, is understanding how one would actually put the ANN into the app. Can anyone explain how this works to me, or even just point me in some vague direction?
There is a matlab-compatible programming language called Octave, and it works on Android as well. You might want to take a look at it, it's called addi.
Matlab/Octave is great for scientific prototyping. Once you enter the realm of mobile applications, the best option is to re-write the libraries in Java. It could be painful but with a proper design you will be able to scale your app without depending in Matlab/Octave hacks.
If this absolutely positively has to be present on Android, on the phone itself, the straightforward way to do this is to write the software in Java and then write the Android GUI around it.
But does the software absolutely need to be on the phone? Maybe. But if not, why not make the Android part a client that communicates with a more powerful and flexible remote server? The server can implement in whatever language it likes.

How to create a live scorer app for Android?

I am developing an android app where I will provide a button on which, when ever the user clicks, they will get the live score updates of the Soccer game.
Are there any tutorials for that or, any Open-source code available for that
I am trying to achieve some what like the image given below:
Your required tasks is pretty straight forward. I suggest you use the android developers site to learn the basics and tool stack involved in android programming. Early in this process you will come across the 'Views' tutorial which outlines about half of what you need to do (display the scores in a pretty format).
I suggest you get this part of it running first (just a pretty display with test scores on it), after that creating the network request and getting the data from the server should a fairly easy path using Android's or apache HTTP classes.
You would somehow have to retrieve the current score from a server.
You would basically need a site which can provide you the live data in an xml format, for instance. There are sites which provide this. Of course, they won't provide it for free. May be you would get it free for some smaller league for you to test.
You can simply read the xml, using xml serialization or maybe XmlDocument if you use c# as a language for scripting.
I did a simple google search, and I found this article by www.thegamecontriver.com, they use unity to create a Live Standing App. Maybe you will find this useful. Of course, it is not difficult to use the same method to do it for Live Scores.
You can find the link for the post here
Live Standings App Tutorial

allow users to create forms within android survey/data collection app

I'm trying to develop an Android app that could be used by advocacy groups or campaigners such that they would be able to create their own forms (surveys) for which they can go out canvassing and collect opinion data from people who don't have Internet connections and thus can't take surveys/polls online. Could also be used at events or anything else that requires data collection "in the field"
The benefit is allowing data collection on the spot without having to transfer data from paper to the office computer by hand.
I've been looking over this tutorial by Frank Abelson: http://www.ibm.com/developerworks/xml/tutorials/x-andddyntut/section6.html
And have also been pouring through the Open Data Kit, but the ODK is a little more intense than I am prepared for and the Abelson tutorial doesn't discuss much how users could create their own forms.
I suppose users could just create their own XML files for custom forms in the office and store them on the server, but I was wondering if there was a way for them to do this on the Android app?
Just a hint about possible architecture or simple resources would be helpful, I am having a hard time picturing the solution at the moment.
i'm one of the developers of open data kit. odk has been successfully deployed by organizations all around the world for exactly what you describe.
we have a graphical form designer (and good alternatives in purcforms and xls2xforms), a server to host the forms, and an android mobile client (and good alternatives in javarosa). all the pieces are free, open source, and are driven by an active community.
if you could list what specifically about odk doesn't fit your needs (say, a need form design on the phone), i'd be could recommend alternatives...
ODK is a fantastic open source solution. A potential commercial alternative you can also try is Canvas at http://www.gocanvas.com which allows you to replace paper based forms with your mobile device.
It currently runs on Android, Windows Mobile and BlackBerry with iPhone and iPad support coming soon.
To get a quick overview of how to use Canvas:
Build a standard data collection app in 5 minutes and see it running on BlackBerry
Build a signature capture app in 5 minutes and see it running on Android
Hope that helps some,
-Chris
You should look into Fulcrum. I believe there is a 30 day trial period see if this software works for you. This is a one stop shop for mobile data collection teams. You can easily build your data collection forms right from your web account to include photo fields, text entry fields, choice fields, form sections, and repeatable sections. Repeatable, meaning parent-child relationships within a single data point.
They even have an App Gallery with a exemplary apps (forms) that allow you to use as a sort of "cheat-sheet" to get started. Here is the political canvassing survey they posted.
-P.Reyes
Check my project here: https://github.com/AndreiD/surveylib
PROS: Simple solution, open source, without any overkill, you don't have to display any logos, it doesn't cost a thing, it's easy to be extended, material design etc.
CONS: You must have the server part, for the transmission of the answers data.

Categories

Resources