Hi I have been asked to develop an android app as part of my course. It has been agreed upon that this will be a quiz based app which will make use of graphical animations to provide questions for users to answer.
I have no experience in programming any graphics apart from a few tutorials I have looked at. I am wondering if it is possible to create images in photoshop and then use these as objects that will be manipulated via methods or will all graphics have to be created via coding. Any help in the situation would be greatly appreciated.
Thanks
Use Android Animations.
Since it's a quiz based app, you might be interested in using Card Flip Animations, where on one face of the card you show the question and on the other face, have the answer.
There is also an excellent tutorial by Vogella on Animations.
Related
I'm asked to do an app with a 3D object mapped on a tag on the camera preview. The user should be able to rotate the 3D object on swipes, and to click on different area of the 3D object.
I'm investigating the different way to do it.
So far the best option I've found seems to be https://developer.vuforia.com/resources/sdk/unity, but I can't find whether it's possible to interact with the 3d model (rotate on swipe, define clickable areas).
Has anyone any experience with that?
I guess I can do it with some OpenGL, but I have no experience with it and it seems quite complex to start off with.
Is there any other library I should consider?
I would use OpenGL and start by the training tutorials on http://developer.android.com/training/graphics/opengl/index.html. Hope this helps! If you follow these tutorials you will be able to do what you want. ive tried unity and it is a really good engine too. and of course you can make an object clickable with unity! maybe using unity would be easier but the documentation on opengl is huge and is not that difficult to implement at least with first steps. hope this helps
The Metaio SDK can do all of that but I am not sure if it automatically provides the area of the model tapped, but you could ask here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Hello everyone and thanks for your time.
Introduction to the problem: Basically the main problem is that I'm designing an android tablet application and I don't know exactly which is the best way to implement the kind of design I've been thinking about. I've been reading that is possible to use another platforms apart of Android, like OpenGL or HTML, but I don't actually know how to do it and if its necessary.
What do I attempt to do? I didn't know how to explain exactly which is my idea using words so I decided to prepare a small image about it, here it is:
So, the idea is to drag&drop the buttons to the color square, and detect if they are colliding, if that happens, start an event. Then all the buttons are going to be ordered again by themselves.
Which is the question then? I'm new at android, and I have no idea which is the best way to start implementing this, if I should bet for OpenGL or program directly in android. And in both cases, which is the best way START CREATING something like this?
Last things: I want to make clear something, just in case: This IS NOT any school work that someone asked me to do, I'm doing it by my own. I'm NOT ASKING PEOPLE TO DO MY WORK I'm just asking your opinion and asking for help and guidance about how to start managing this. (so I want your professional opinion, not any single line of code) :D
Thank you very much to you all. :)
MartÃ.
This sounds like it'd be pretty easy to do in HTML / JavaScript using touch events, maybe using a support library for drag/drop events. I don't know if it matters to you, but the nice thing with that solution is that it'd port pretty easily from Android to other mobile devices.
Like Quintin said, if performance is a big concern you can optimize and go to OpenGL, but you can probably knock out a simple prototype in HTML in under a day...
in my opinion you don't need any framework. You can do it all with android. I would also advise you to use android. I'm not a good designer, but my suggestion would be for this:
2x Framelayout, for the color tools on the left side and one for the rightside
For the color tools, for each 2 colors you can use LinearLayout. And if you want the exact backgraund design, you can design it with an image software and can set it in the background.
for the colors, you can use an imageButton.
And i also advice you to read the tutorials how to design apps, here is a good tutorial: http://mobile.tutsplus.com/tutorials/android/android-layout/
Open GL seems to be your best bet here. I haven't had much experience with Android OpenGL, but it is going to be the most efficient way to write the app - since you are dealing with collision detection and colours.
Android OpenGL will be the best option since it will be natively compiled by the ADK whereas HTML is going to be interpreted at runtime.
As far as using normal bland Android layouts, I would not recommend that, since this is not a "standard" UI using the standard components. You are creating an entirely unique interface that is very graphical, and so I would recommend sticking to that.
EDIT: You will find that by using standard layouts that ALL of your user interface components will have to be customized, and you will spend a lot of time in your onDraw() methods with the collision detection.
One problem with this is that you need to check whether the object collides with another object, making certain types of objects aware of each other, and may run the risk of circular references. Whereas if you use OpenGL, you can have one list of "Shape" types and then have a "checkCollision(Shape draggedObject)" method which iterates through the list of shapes and checks the collision using an optimized collision detection for the simplest object.
The second problem is doing collision detection in the onDraw() method will make your app lag and seem sticky to the user while performing a drag. The more components the more problems.
EDIT 2:
Here are some resources for Android OpenGL:
http://developer.android.com/guide/topics/graphics/opengl.html
http://www.learnopengles.com/android-lesson-one-getting-started/
2D example with OpenGL
I'm new in Android and I am planning to develop a post-it card Android app. After editing one card, the user could post it on the screen, so every time a user unlocks his phone he will see a little card posted on the home screen. So are there any materials and resources I can learn to realize that effect? Thanks in advance!!
You can interact with the homescreen through widgets. You can start learning about them here:
http://developer.android.com/guide/topics/appwidgets/index.html
You could also start looking into the 2D graphics framework. Here:
http://developer.android.com/guide/topics/graphics/2d-graphics.html
There are also a lot of tutorials and examples provided by the community, but if you are new to android I think it will be a long way to accomplish what you just mentioned.
i am pretty good in android but have not developed any games yet, and have no idea where to kick off.
I have idea of Game in my mind, but i have no idea how to convert that idea into game.
The most big problem i am finding is building UI for that, as i can build backend for the game with my logic but how to interact with games-UI that i new to me and have not done before.
Is there any tool or some kind of help by which i can easily build UI comonents for a game and use them easily in my game creation.
i had read about libgdx for android but i am not sure as using that i have to write code to display even a single point/entity.
Is there any nice, easy and fast way to develop game UI
I have done starter RnD on google but still not much clear with GameUI creation.
Any kind of guidance is appreciated.
Thanks
Aj
What kind of game is it? 2d / 3d graphics? Or just text input (like a chance game or a quiz game?)
UI could mean many things. To some people it's just the menu overlays and other interfaces, like health bars and the like. To others UI is the entire rendering field. Please clarify your terminology in this regard.
If you want to avoid as much code as possible there are libraries that can help. Is there a way you can describe your game by analogy without giving away your secrets? Then we can better assist you.
The right place to ask would be in the gamedevs section of stackexchange, other than that it is a possible duplicate of / related to https://gamedev.stackexchange.com/questions/3401/how-do-i-get-started-making-android-games
I'm planning to develop a simple tic-tac-toe 3D game for android as a starting point (practical task to learn and do something useful), but devguid seems to be more of a reference than something with what I can get my hands on particular task. Can someone advice what should be investigated? (or maybe I'm searching for it incorrectly)
EDIT: I'm also considering other options on learning android development. (Though, the "practice while learning" approach is preferred).
EDIT:
My purpose: learn how to develop apps for android && create an app, which is fun and can be placed on android market
My initial "data": strong java + java ee, basic C/C++, willing to learn
Means to achieve purpose: devguide is more of a reference, and I need a solid start with lots of explanations. Need an advice here.
You see, to my mind there is no sense to read books and so on. First reading starting manuals from Google should definately help. When you are done with them you should jump into development. Of course, you will have a lot of questions, however there are lots of great manuals and tutorials all over the internet, so you will rarely have difficulties. If you even though have them, come here and we'll help =) Check out my devBlog
I did a simple tic tac toe for my first Android application and I was able to create a working game quite quickly using a table of image views. You just need to add clickHandler events onto the image views so they change image on click, and write a function checking whether the game is won after the click.
Try out several tutorials here, especially testing ones. Get your hands on Pro Android Games with reading devguide when some part of android development is unknown.
This will result in a rapid development (with a zero level starting point) and small learning curve of basic + in deep android development.