Guys, I need help in making apps for multiple choice questions (mcq). Basically I want the apps to show the questions and we can answers by touching the correct answer. I have around 100 questions.
This gonna be my first app and I need someone to guide me or pinpoint me to the correct threads? I already have the android sdk btw. And whats the different between java and c++? Which one should I use in this kind of app?
Sent from my GT-N7100
Use Java. C++ is much more complicated and there wouldn't be any advantages if you used it in this case.
You need an Activity with one Textview for the question and one Button for each answer.
Then in Java get them using
Code:
findViewById(R.id.myid)
There you can dynamically set their texts:
Code:
myTextView.setText("This is the question");
myButton.setText("Answer 1");
But if you really want to make this app, learn Java first and then have a look at the Android things.
Related
I want to make an application for my phone, I have all the necessary programs to create an app. But I do not know the "language" used in the programs like eclipse. I'm assuming I have to learn the code but don't know where to start. Anybody have good sources for learning it?
There are a number of free lessons and tutorials on Java floating around out there. You may also want to check out http://forum.xda-developers.com/showthread.php?t=667298. It has a lot of information that may be helpful in it.
Same here. Thx for the info!
Hey everyone; it wouldn't let me post in the development subforum due to the fact that I just joined, but I figured my topic would be just as relevant here.
I'm a sophomore CompSci major. Java is my strong point, but I'm far from a master. I know syntax, I know how to follow what's going on in more advanced programs, but writing them is the tough part. Anyway, I would like to create my first app; something simple. I was thinking a calculator with a small clipboard on the side (hold the button to store the number displayed in the window, hit it to place that value). It would be insanely helpful for my physics class.
So a few questions for you guys:
-Is there anything I should know beforehand? Anything to be careful of?
-Can I use Eclipse? I tried with App Inventor, and it's too limited.
-How do I obtain examples of more complex apps? Can I unpackage the apk files into java classes?
-Is there a site similar to the sun library, where it lists the available classes/objects/imports?
I'm sorry if I don't know the lingo just yet (of Droid or Java). Picking this all up is a little difficult for me, but I'm trying
Thank you in advance for even taking the time to read this. I understand rookies must aggravate you guys, but from what I've seen, the community has been nothing but welcoming!
You can definitely use Android SDK with Eclipse.
This guide will help you with install and set up process
http://developer.android.com/sdk/installing.html
SDK also contains sample projects that you can use for learning.
I don't remember about unpackaging apk files, but I'm pretty sure they contain already compiled .class files, which will be of no use to you.
And here's Android's reference page:
http://developer.android.com/reference/packages.html
Also the dev guide is very useful for learning the basics:
http://developer.android.com/guide/index.html
Resources section has useful tutorials as well!
Hope that helps. Good luck with your app!
Thank you, meshdub! And all branching from the same site; sure made me look bad...but on the upside, you've introduced me to a source I will be able to use throughout my software development lifetime.
If there's any more you or anyone else could give me as far as what to expect or look out for, please let me know! I'm honestly a little intimidated by this; I'm not too familiar with forums, and I've heard how difficult app developing can be.
But this should keep me occupied for a while, and again, thank you very much
Hi all,
I want to start application development for android. Can anyone please let me know the requirements for this?
I know that I am asking very general question and please let me know if this is not the correct place to ask this query.
I know C/C++...what things I need to learn before starting application development for android?
Waiting for reply!!
From what I can tell:
Java.
Then hit the android developer's website and they'll teach you how to write for android platform.
Sent from my HTC Vision using XDA App
Thanks skulk, but do I need to start learning Java from scratch for that?
Can anyone please guide me in this?
vijay.gupta said:
Thanks skulk, but do I need to start learning Java from scratch for that?
Can anyone please guide me in this?
Click to expand...
Click to collapse
Well, it's pretty hard to learn a new programming language from the middle!
Go to the Android devs site... There are plenty of tutorials there, as well as links to Eclipse (favoured Android development platform).
sorry to be so naive...but what is the link of android dev website?
Clicky the linky.
many thanks floating man. I didn't knew that this is different forum from any android developer forum...btw can you please let me know the difference between this forum and any android dev forum?
This is a general smartphone forum, mainly catering for HTC made devices, but covering "some" others as well.
Thanks floating man. I will subscribe to any of the android dev forum and ask the same query there. But there is one doubt: whether such a basic (and naive) query be resolved there?
Do you recommend any particular android dev forum?
since you already know c/c++ you already know the basics of programming which are the same for each language i guess.
in my opinion writing basic/simple apps for android is more easy than writing the same app in c/c++.
so for basic/simple apps you could start with some general java tutorials especially about OOP and then go on to Android ...
just simply Google search terms like "android development for beginners" or "android app development tutorial" and plenty of websites come up offering handy dandy hints =]
Thanks elgubbo,
I will try that and let u know if thwre is any issue...let me kbow if anyone else has any suggestions....
For me it always helps to try to understand other code samples. Thats why I am looking for a book wich explains a few basic (and some advanced) code samples.
Sent from my fishbowl...
Java was originally created as a successor to C++ and if you know C++ the syntax of Java should look very familiar. It was designed to make OOP concepts more accessible to C++. It was also set up to make pointers and memory management a thing of the past.
Actually in a lot of ways, knowing C++ will give you an advantage over devs who only know Java. Eventually you'll be able to use Android's NDK (Native Development Kit). Although you will have to use some Java as all apps require the use of some java and the SDK on Android. But even then, you'll have a better idea of what is happening "under the hood" due to your C++ knowledge.
As for where to get started I would suggesst learning applications fundamentals:
http://developer.android.com/guide/topics/fundamentals.html
Especially the Activity lifecycle and Component lifecycles.
Do all the "Hello World!" tutorials and then you should be well on your way to becoming the next Angry Brid..... err Angry Bird dev.
Thanks alostpacket. That is a very useful link. I will read it and let u know if i have any queries. I just have a doubt, moreover, i am fearing because i have only written simple c++ programs till now. Will i be able to do it?
vijay.gupta said:
Thanks alostpacket. That is a very useful link. I will read it and let u know if i have any queries. I just have a doubt, moreover, i am fearing because i have only written simple c++ programs till now. Will i be able to do it?
Click to expand...
Click to collapse
Instead of being scared by it, TRY it! Install Eclipse. Install the Android SDK. Try the tutorials. Only you can know if you can do it or not.
Thanks floating man for supporting me, however, can you please let me know the place to help me out regarding very basic queries regarding starting programming...like I want to know what eclipse is, what is SDK (I know the full form though: Software Development Kit)
Is the place...http://developer.android.com?
Actually, I have worked on C/C++ at very basic level where we write programs in IDE and save the file as either .c or .cpp
These seems to be very basic things.. that i should know..i can read if you have any link or doc..
vijay.gupta said:
Thanks floating man for supporting me, however, can you please let me know the place to help me out regarding very basic queries regarding starting programming...like I want to know what eclipse is, what is SDK (I know the full form though: Software Development Kit)
Is the place...http://developer.android.com?
Actually, I have worked on C/C++ at very basic level where we write programs in IDE and save the file as either .c or .cpp
These seems to be very basic things.. that i should know..i can read if you have any link or doc..
Click to expand...
Click to collapse
Yup, That's the correct site. They have a whole section to get you started using eclipse there too.
This is a great place to start:
http://developer.android.com/sdk/installing.html
HI i have android app development experience for 2 years.
I understand the framework but when it comes to typical situation when i think it would have been better if more android internals were given or more documentation was available.
So my question is for app developers what is the next stage for learning in android development So that we have deeper understanding of the framework and solve typical issues as well. for eg
Activity finish() dismissis and removes the dialog in that activity but i could not find any docs regarding this. so i was in dilemna what to do?
Please help how to advance more into android and if possible please give links to study material or links where i can get a path
Thanks
So this was the question I got after my all app compiling and decompile for 3 months.
So I was just a app modifier,and I thought about being app developer,I mean creater.
So I googled and learnt the coding(toughest part) and iam now a good developer who is on the way of development.
And for ur question finish();
All those datas are in java format packed as class.dex,you must open that to see the source file as java.
However u can see .smali file wen u decompile any app which you/me/ can't understand....(those r derived from java)
Offff good question:thumbup::thumbup:
.........................................
visit www.fb.com/softcrush
RamachandranProgrammer said:
HI i have android app development experience for 2 years.
I understand the framework but when it comes to typical situation when i think it would have been better if more android internals were given or more documentation was available.
So my question is for app developers what is the next stage for learning in android development So that we have deeper understanding of the framework and solve typical issues as well. for eg
Activity finish() dismissis and removes the dialog in that activity but i could not find any docs regarding this. so i was in dilemna what to do?
Please help how to advance more into android and if possible please give links to study material or links where i can get a path
Thanks
Click to expand...
Click to collapse
My number one snag I would do, if I could go back to when I started, would be "Learn what a Context is, and the different types" which coincidentally relates to why a dialog hung of a context does disappear
Hi,
Stackoverflow.com is a good source of information to resolve doubts.
I'm going to fetch the questions and answers from my web server using JSON, this data are dynamic, sometimes a question has two or three answers, question type can be any combination of the following: multiple choice, true or false, identification, fill in the blanks etc.
The answer on how to do a dynamic layout on android is to let java takeover on adding layout and components instead of XML. (is this correct?)
How can I make my app to have one activity/view per question? Is this memory intensive? For example the data from the web server contains a hundred questions.
I want the user to have access to previous questions. For example I'm currently on question number 21 and I want to go back to question number 11 for some reasons, is this possible? How can I do this? (All questions are randomized)
clonedaccnt said:
I'm going to fetch the questions and answers from my web server using JSON, this data are dynamic, sometimes a question has two or three answers, question type can be any combination of the following: multiple choice, true or false, identification, fill in the blanks etc.
The answer on how to do a dynamic layout on android is to let java takeover on adding layout and components instead of XML. (is this correct?)
How can I make my app to have one activity/view per question? Is this memory intensive? For example the data from the web server contains a hundred questions.
I want the user to have access to previous questions. For example I'm currently on question number 21 and I want to go back to question number 11 for some reasons, is this possible? How can I do this? (All questions are randomized)
Click to expand...
Click to collapse
For your view, you'd make one Layout containing multiple TextViews whose texts you set only in your java code, that way it can have different questions.
Then there is a ListView for scrolling between the questions or for instance a ViewPager.
Remember to start with small components like the question screen and worry about getting the questions from the server and stuff later
Is there anybody else wants to share their insights on this?
clonedaccnt said:
Is there anybody else wants to share their insights on this?
Click to expand...
Click to collapse
Even though it may not seem like it, this is a very simple app...and it comes down to "simple" understanding of "listview,adapters,intents,asyncTasks,JSON/GSON" and then quite a simple design flow.... if you start to learn this most of what you need you will know and what you don't you will be able to ask direct questions about (cause you will have knowledge to do so)