[Q] How to develop an Android Math Game (New to Android) - Java for Android App Development

Hi,
I am new to the Android development scene and I need to pull off a math game project in less then a week. I am using Eclipse to do this, but is there any other easier way such as Visual basic GUI way that you can pull off 100% raw code from it?
Can someone help me through this? . I need basic knowledge on text label, input box, button, perform math operation , if statement, loops, and method. If anyone can quickly guide me through this would be great.
Basically I am programming a math game with subtraction and division. I need to have difficulty mode easy medium hard which is basically randomized numbers in bigger range. Then there is level from 1-4 which is increasement of number of questions. And there are lives also.
Thanks In advance if someone can help me

This sounds like a class
Have you tried to even do the layout in eclipse yet? That is a pretty simple step that shouldn't take longer than 15 minutes.

joshtrader said:
Hi,
I am new to the Android development scene and I need to pull off a math game project in less then a week. I am using Eclipse to do this, but is there any other easier way such as Visual basic GUI way that you can pull off 100% raw code from it?
Can someone help me through this? . I need basic knowledge on text label, input box, button, perform math operation , if statement, loops, and method. If anyone can quickly guide me through this would be great.
Basically I am programming a math game with subtraction and division. I need to have difficulty mode easy medium hard which is basically randomized numbers in bigger range. Then there is level from 1-4 which is increasement of number of questions. And there are lives also.
Thanks In advance if someone can help me
Click to expand...
Click to collapse
It will be really simple to make.. I can code it if you want.. but I am really bad in making the GUI.

zalez said:
This sounds like a class
Have you tried to even do the layout in eclipse yet? That is a pretty simple step that shouldn't take longer than 15 minutes.
Click to expand...
Click to collapse
yes i did try to fiddle with the gui layout in eclipse, i was able to make a text box, input box and button that display a message.
prototype-U said:
It will be really simple to make.. I can code it if you want.. but I am really bad in making the GUI.
Click to expand...
Click to collapse
Thanks for offering to help but i would like to understand the fundemental of coding in this android field. I have indeed done Java before, and i made the exact math game that i am attempting to do on this project, my java game was consisting with loops/if/while statements (for # of questions), randomizing numbers, menu options. I do know that android uses java language but when i went through the official guide on the developer website, it seems a bit too challenging to follow.
it would be great if someone could guide me with an example statements of using methods, loops such as if and while/for how to interpret info from input box and or interpret from user click button and such.
If it would be any help, i can post my original java math game

Related

Absuluut newbie, help on eMbedded C++ 4.0 please

Hello,
I'm a Visual Basic programmer for some time now.
Made some useful stuff they tell me.
Used C++ (Borland) about 10 years ago, so that’s a bit rusty.
Now I've ordered a Qtek 9090, and I would want to develop some software for it to. So I downloaded and installed the SDK and eMbedded C++ 4.0.
I thought, I start out on the emulator......
I can't even get my own "Hello world" program to work........
I have downloaded a "Hello World" program which I stepped through in debug mode. I have NO idea what they are doing there.
It contains about 20 files, hundreds lines of code, just to put "Hello World" on the screen of the emulator.
And I hoped that:
Code:
#include <stdio.h>
main()
{
printf("Hello, world!\n");
return 0;
}
pleased in a form, would do the trick………
The help in the IDE does not work.
Re-install it tell's me. I have done so, but the help function does not work.
Where is the "visual" part in the embedded Visual C++?
How do I place forms and buttons e.g.?
I have no idea where to start now.
Searched a lot of forum's for starters-help, but I can not find anything that helps me on my way. I just hope I've not become stupid.....
Would somebody please help me on my way?
Can I wholeheartedly recommend the book "Programming Windows CE", by Douglas Boling? It's normally cheap (or the second edition is) on ebay and it really is good.
Failing that, you're writing a console based application for something that uses a windowing environment by default, so you'll either have to change what you're linking to, or have a winmain that makes use of a graphical UI rather than stdout. Call MessageBox perhaps? This is all made *so* much easier with a working help system that you need to get that working.
You can manage resource files visually, so it really is Visual development. Plus, for free, it's an excellent development tool. Well, it isn't bad.
The best advice I can give is to get your machine set up correctly with EVC2002, or EVC 4 with SP4 and the appropriate SDKs, and take it from there.
Good luck starting out.
Cheers,
Nick.
chiark said:
Can I wholeheartedly recommend the book "Programming Windows CE", by Douglas Boling?
Click to expand...
Click to collapse
Thanx. I'm going to order that book.
Failing that, you're writing a console based application for something that uses a windowing environment by default, so you'll either have to change what you're linking to, or have a winmain that makes use of a graphical UI rather than stdout. Call MessageBox perhaps?
Click to expand...
Click to collapse
Well, yes. I know. Like I sayed, I usualy work with VB. It was just me, trying to oversimplify things.
What I ment to express is that I'm pretty supprised I still have to write the message-loop and the main-loop and the jsadgkh-loop and....
I just hoped to put up some forms and attach code to it. But maybe I'm missing the clue on this.
This is all made *so* much easier with a working help system that you need to get that working.
Click to expand...
Click to collapse
I have set it up on an other machine yesterday, and there the help works.
Today I'm going to make use of it.
You can manage resource files visually, so it really is Visual development. Plus, for free, it's an excellent development tool. Well, it isn't bad.
Click to expand...
Click to collapse
Well.... That part, the visual part, I don't see yet, but like I sayed, I'm going to work throuhg the help, now that I've got that working.
And a 'free' tool. Well, that's allways nice. I think it is good for us, AND good for them. The more software there will be on the market, the better the devices sell.
The best advice I can give is to get your machine set up correctly with EVC2002, or EVC 4 with SP4 and the appropriate SDKs, and take it from there.
Good luck starting out.
Cheers,
Nick.
Click to expand...
Click to collapse
Thanks for you tips.
Rens
Dox, drop me a PM, I've got an old copy of the book you can have if it would help
Re the message loop stuff, you've indeed got options. You can either use the message loop approach hitting the API directly, or you can opt for using MFC to abstract the stuff away from you.
Personally, I prefer the straightforwardness of using the API rather than MFC. By the time you've written one application, you've got the bulk of the next . I also write for older machines, and the overhead of MFC is a consideration, but on the XDA it really isn't.
If the application is simple, it can all be handled by a DialogBox. You will need to write a DialogProc to handle the appropriate messages, but the need to register a window class, get messages off the queue etc is removed from you. Similarly, you can have multiple pages on a single dialog box using propertypages.
If you did want to write a console application, you can do this but you need to change the linker options within EVC.
Have a good look at the samples, too, there's some real good stuff in there.
Cheers, and good luck
Nick.

Gesture programming with VB.net

Howdo,
I'm just going to try and build my first gesture program in Visual Studio 2008 using VB. Can anyone give me some pointers on how I get this going. I've been looking at Inkcanvas but I'm not sure if this is right?
Many thanks
TheNecroscope said:
Howdo,
I'm just going to try and build my first gesture program in Visual Studio 2008 using VB. Can anyone give me some pointers on how I get this going. I've been looking at Inkcanvas but I'm not sure if this is right?
Many thanks
Click to expand...
Click to collapse
Hey I would like to learn that too...
Google is your friend:
http://www.vbaccelerator.com/home/NET/Code/Libraries/Windows_Messages/Mouse_Gestures/article.asp
Fantastic! Looks like a good starting place. Is there much advantage of using C# compared to VB out of interest?
Just found this as well
http://www.codeproject.com/KB/mobile/MouseGestures.aspx
I'm currently finishing to write a simple proof-of-concept application launcher using simple stylus gestures (no neural nets, just eight directions supported - somewhat like in firefox mouse gestures plugin). Right now it works quite fine and the code is easy to port to any language as long as you can record last few locations of stylus.
I'll post it as soon as i find out how to launch an application from C level. The simplest way system() doesn't seem to work
Dziekuje!
I look forward to seeing it!
As promised:
http://forum.xda-developers.com/showthread.php?t=374375
That's just a proof of concept - the included program doesn't do anything but recognizing gestures as you draw them and reacting if the drawn gesture matches one of patterns defined in config file (still didn't have time to find out how to make it launch an app).
The demo application is in C, but once you understand the method behind it, it should be easy to port to any programming language. Of course that's probably not the best way to do it, and it's definitely not the only way to do it, but it's simple to implement (no neural networks required), supports eight directions (including diagonal - opposed to methods described in links above), and gesture can consist of many strokes (a single gesture may be drawn like: left, up, up-right, down-right, down, up-left, right...). There's still a lot of room for optimizations, but it's some starting point...
Thats really smart! Well done, thanks for coming back to me! I will investigate it over the weekend! . Thanks also for the information on the compiler thats also useful to know!!

[Q] Need to learn java

Hiya,
I have noooooo knowledge about any computer language and want to learn Java as i heard that its the language required to develop android apps. I know it takes alot of time to develop apps but im ready to spend my time so kindly let me know how can u start learning java at home? and should i learn anything before learning that as i dont know a word about programming
Thanks
http://www.megaupload.com/?d=65FYTS7W
That's a download for Java tutorials. To actually do them you'll need a compiler. I use jGrasp but there are many others you can use. Eclipse is pretty popular and they all do the same thing basically. A compiler can be downloaded on the internet, and you'll need to download Java from Sun Microsystems as well. Just to let you know you gotta be pretty dedicated, it takes a lot of time to make good apps. Google's App inventor is an alternative to learning code.
thanks for da help but da prob is dat i need to start from basics, like the full basics of programming even simple definitions, can u also guide me a book or ebook for that too so that i can learn the super basics like definitions first b4 learnin java
thanks
n btw the link doesnt work
This may get you started:
http://download.oracle.com/javase/tutorial/
But if you're never programmed in any language, you need to take an intro to programming course.
________________________________
Unrevoked forever
SkyRaider Sense 3.5
Radio 2.15.00.09.01
can u learn this intro to programming online? or thru any book?
I don't have anything I can recommend. But there's tons of info online. Just do a google search for 'Intro to programming'. That's how I found this:
http://math.hws.edu/javanotes/
________________________________
http://ron-droid.blogspot.com
thanksss ill take a look at it
I started with the book, hello android 3rd edition. Its a great book.
Nookie Froyo 0.6.8 (zoom2)/Tapatalk Pro
Did u start from zero from this book? I mean u had to learn the basic terms and definitions even??
Sent from my Nexus One using XDA Premium App
You cant try this Stanford University lectures on youtube: http://www.youtube.com/user/StanfordUniversity#g/c/84A56BC7F4A1F852 ..or just search for "Mehran Sahami Programming Methodology" in itunes U if you use itunes.. Same lectures. I think its a really good starting point.
Bro you should check out "Starting out with Java: From control structures to objects" by tony gadis. Just google it. Its the one I used in my intro to programming course. It starts out as basic as can be. Its really good
Sent from my SGH-T959
I was in his shoes...about 15 years ago LOL Wow, where does the time go? 2 degrees and a couple careers later I guess.
What I would stress are a few things:
1. Learn how to do some flow charts before you write code
2. Learn the basics of program flow (if/else, do/while, switch/case statements)
3. Learn the "types" of your language (int, String, float, char, modulus etc.)
4. Learn some data structures (arrays, Lists, Vectors etc.)
5. Learn about functions and/or classes. Remember that a function should be fairly short and very specific to a task, like: getUserName, calculateCheckingBalance etc.
6. START SMALL AND WORK TO LEARN SOMETHING NEW EVERYDAY!
I can't stress how important #6 is. Do a "Hello World" program just to get used to writing some code.
Think of some simple programs like: write numbers 1 to 10 to an array and print them out backwards, ask user to input what year they were born in and print them back their age. Advance up to something like a ATM simulator where you can make deposits, withdrawals, check your balance. I did all similar type things in Programming 101.
I still love the Dietel and Dietel books...get one for JAVA and it's money well spent in my opinion.
I've uploaded some of my university lectures which start from the absolute basics.
http://forum.xda-developers.com/showthread.php?t=854462
They may help you
Thanksss guyssssssssss ill look over all these! thanksss alottt
mohsin125 said:
Hiya,
I have noooooo knowledge about any computer language and want to learn Java as i heard that its the language required to develop android apps. I know it takes alot of time to develop apps but im ready to spend my time so kindly let me know how can u start learning java at home? and should i learn anything before learning that as i dont know a word about programming
Thanks
Click to expand...
Click to collapse
Here are the top tips for anyone who wants to start learning Java:
Learn the Basics. As with anything, knowing the basics about Java is the best place to start. ...
Practice Coding. To use the old cliché, practice makes perfect. ...
Set Your Algorithm Carefully. ...
Trace Your Codes on Paper. ...
Read Sources on Java Programming Regularly.

Developing for Android

I have no programming experience but I'm extremely interested in teaching myself how to program. My main goal is to one day develop my own apps for Android. Now I've read a lot online and most people recommend starting with Python as your first language as its easier to grasp than others. This sounds like a great idea but I dont believe you can code for Android in Python, correct?
So my question is, should I start with Python, get familiar with the language building my programming knowledge and later learn Java for Android? Or should I just jump head first into Java as my first language even though it may be more difficult to start with?
Thanks!!
michaelearth said:
I have no programming experience but I'm extremely interested in teaching myself how to program. My main goal is to one day develop my own apps for Android. Now I've read a lot online and most people recommend starting with Python as your first language as its easier to grasp than others. This sounds like a great idea but I dont believe you can code for Android in Python, correct?
So my question is, should I start with Python, get familiar with the language building my programming knowledge and later learn Java for Android? Or should I just jump head first into Java as my first language even though it may be more difficult to start with?
Thanks!!
Click to expand...
Click to collapse
Python is a great start.
However, with a good book like the "Head's first Java" you will also be able to start with (the desktop) Java. Get some programming knowledge before starting with programming for Android.
nikwen said:
Python is a great start.
However, with a good book like the "Head's first Java" you will also be able to start with (the desktop) Java. Get some programming knowledge before starting with programming for Android.
Click to expand...
Click to collapse
I looked at the book as an option for me but it says directly on the "Head First" website that these books assume you have expirence in other languages so I dont think that book is for me quite yet.
If I decide to go the Python route, I was looking at this book: http://www.amazon.com/Python-Progra...ie=UTF8&qid=1368992505&sr=8-6&keywords=python. Any thoughts on this book?
michaelearth said:
I looked at the book as an option for me but it says directly on the "Head First" website that these books assume you have expirence in other languages so I dont think that book is for me quite yet.
If I decide to go the Python route, I was looking at this book: http://www.amazon.com/Python-Progra...ie=UTF8&qid=1368992505&sr=8-6&keywords=python. Any thoughts on this book?
Click to expand...
Click to collapse
Ok. You are right. Found this on the web now, too: http://answers.yahoo.com/question/index?qid=20110111230807AA8fVgP
(Check the link.)

Help Developing An App

Morning all,
I have never created an app, but decided to look into it late last year. I began work on an app around September 2014, did a little work every weekend, and haven't really touched anything since November.
I have experience with HTML, CSS etc (I can write them). I can also have a basic understanding of other codes such as PHP, JavaScript, Java, C etc - basically, enough that I could take some code and edit it to suite.
I was hoping that creating an app would a) help grow my current business and b) give me a new challenge to learn new code.
Anyway, I'm really stuck on what to do. I downloaded Eclipse at home, but my laptop is on it's last legs. I have been creating the app at the office, using Adobe Flash Builder 4.7. I read a few tutorials, and downloaded some sample apps to learn from (as part of some of the tutorials). However, none of them have what I want.
My App Idea
So, enough waffling on, I'll try and explain my app without giving away what I want to do.
Basically, the app will be one where users can enter an error code, and press search. The result would be a page showing the description of the error code, and then what the solution is to fix it. There is then potential to add a "buy this part from" link which will suggest suppliers to visit.
So, as an example, let's say a user got a Blue Screen error code on their PC of "ABC1234". They would enter that code into my app, and the result would say something like:
Code: ABC1234
Description: RAM Error - overheating
Fix/Solution: Replace RAM
What I Have So Far
Other than a couple of test files that I've been learning with, I don't have anything solid in terms of an app. What I do have though is an Excel file with 889 error codes and what each code means.
What I Need
So, I guess what I need is either:
some help/guidance on how to create an app that in it's simplest form is a home page with a search box, and then 889 pages in the background that return depending on the searched error code.
or, someone willing to help me develop such an app
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Thanks,
I'll have to try that once I get home as the IT Administrator at work has to vet everything that gets installed.
minooch said:
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Click to expand...
Click to collapse
Hi sir! Is Android Studio is better than Eclipse?
john.reyes.jmr said:
Hi sir! Is Android Studio is better than Eclipse?
Click to expand...
Click to collapse
Yes.
john.reyes.jmr said:
Hi sir! Is Android Studio is better than Eclipse?
Click to expand...
Click to collapse
Jonny said:
Yes.
Click to expand...
Click to collapse
^^^
The only way to say it
Jonny said:
Yes.
Click to expand...
Click to collapse
Thanks sir but do we have a highly compressed Android Studio? 800mb+ is such a big file to download.
Like minooch said, install an IDE, understand how it works and then try some tuts on Internet to learn how Android works. What you want to do isn't really hard, you'll manage quickly to do it but you will be prouder if you do all by yourself.
Some hints : Don't go coding directly, try to organize your project (data structure, classes, methods) before starting to code. On a small project, it's not as important but if you start doing things well now, you'll thank yourself in the future
minooch said:
Firstly, download Android Studio - Don't use eclipse anymore
Secondly, here is a tut on using an older version of Android Studio
Have a go, see how you end up. Let us know, if you're really needing help, ask here again
Click to expand...
Click to collapse
What are the requirements for this app to run on my PC ,jdk?i have installed jre but didn't worked help me ....
Randomly Set said:
Morning all,
I have never created an app, but decided to look into it late last year. I began work on an app around September 2014, did a little work every weekend, and haven't really touched anything since November.
I have experience with HTML, CSS etc (I can write them). I can also have a basic understanding of other codes such as PHP, JavaScript, Java, C etc - basically, enough that I could take some code and edit it to suite.
I was hoping that creating an app would a) help grow my current business and b) give me a new challenge to learn new code.
Anyway, I'm really stuck on what to do. I downloaded Eclipse at home, but my laptop is on it's last legs. I have been creating the app at the office, using Adobe Flash Builder 4.7. I read a few tutorials, and downloaded some sample apps to learn from (as part of some of the tutorials). However, none of them have what I want.
My App Idea
So, enough waffling on, I'll try and explain my app without giving away what I want to do.
Basically, the app will be one where users can enter an error code, and press search. The result would be a page showing the description of the error code, and then what the solution is to fix it. There is then potential to add a "buy this part from" link which will suggest suppliers to visit.
So, as an example, let's say a user got a Blue Screen error code on their PC of "ABC1234". They would enter that code into my app, and the result would say something like:
Code: ABC1234
Description: RAM Error - overheating
Fix/Solution: Replace RAM
What I Have So Far
Other than a couple of test files that I've been learning with, I don't have anything solid in terms of an app. What I do have though is an Excel file with 889 error codes and what each code means.
What I Need
So, I guess what I need is either:
some help/guidance on how to create an app that in it's simplest form is a home page with a search box, and then 889 pages in the background that return depending on the searched error code.
or, someone willing to help me develop such an app
Click to expand...
Click to collapse
Hello.. You just cannot make a app like for such kind of work. You have to make make a website server for the same and then make a app for it. I know a technique for such kinda work.Web crawling us your answer. If you could setup a website for that then I can make a app for that easily within two days. Inbox for any further information or quote back
**********Hit thanks if I helped you***********
Shreyseviltwin said:
Hello.. You just cannot make a app like for such kind of work. You have to make make a website server for the same and then make a app for it. I know a technique for such kinda work.Web crawling us your answer. If you could setup a website for that then I can make a app for that easily within two days. Inbox for any further information or quote back
**********Hit thanks if I helped you***********
Click to expand...
Click to collapse
Hi,
What would be involved in creating an app?
pranavraut033 said:
What are the requirements for this app to run on my PC ,jdk?i have installed jre but didn't worked help me ....
Click to expand...
Click to collapse
You need the JDK. Please read the instructions on the download page. Under the section 'Requirements'

Categories

Resources