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 3 years ago.
Improve this question
I'm recently started programming in Android Studio with Java, i don't have enough Knowledge in Building Mobile Applications.
So, my question is, if making a Class of methods for the logic of the application or make the methods in Activity Label.
Or if anyone experienced can give me a good advice.
If I understand your question correctly, it depends on where do you plan to use your methods. Are they limited to just one activity? Or will you be using those methods across several activities? If just for one activity then no need for another class to put those methods in as you will be using them in only one! On the other hand, if you plan to use the same method in several classes then putting those common methods in a single class is better
Related
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 6 years ago.
Improve this question
I'm a beginner in android. I learn the basic concepts one at a time. But now i'm trying to make a slightly large project. How should i approach this? Should I make all the activities first or should i make activities along with code? Or should i just continue on with the anything i like?
The first thing you would need to think of is what exactly your app does.Once you have that in mind the next thing your're going to want to do is think of an interface for the app which usually leads to deciding what information needs to be shown when and on which screen.Once you know what needs to be where you can start the actual coding,i suggest 1 activity at a time.
If you want a large project i suggest a to-do app.
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 9 years ago.
Improve this question
I am new to android and I would like to write a "Social" android application that would require voice calling between two phones. How should I approach this? Or would it be easier if I "outsource" the voice calling part to another program like Skype?
Thanks!
The quick easy solution is to use the ACTION_CALL intent and use whatever default calling application the user has. If you want to do the whole thing in your app Twilio has a pretty good SDK, but I don't know that I'd recommend getting into that on your first android app..
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am very new to Android development and I'm trying to create a calculator with different layouts for different kinds of mathematical problem solving.
So if I add around 100 formulas starting different activities isn't an option I guess. So what will be the best method to implement this idea?
Currently I plan to make different XML layouts(100 for 100 formulas) and use LayoutInflater all in one single activity. What do you guys recommend?
You can use a Fragment. One single activity with one single fragment. Each time you switch to a different formula, simply change the layout used in the fragment and show it. An approach (maybe not the best one) is use replace and in onCreateView method choose the layout you want to use.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am aware of the different methods for switching back and forth between android screens. I was wondering wich method, if any, is the best practice for doing so. Switching activites seems to be the most popular, but how processor friendly is it?
EDIT:
This question seems too objective, so I guess I will modify it by asking if anyone knows what method is most processor friendly.
Yes, apps are typically separated by multiple activities. These days, the activities contain fragments to better support multiple devices, layouts, etc. They are popular for a reason!
It's all very friendly. ;)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to prepare a set of guidelines and project template for my future Android projects. Im already implementing the basic MVC architecture modularity. Im trying to have add more advanced level of design to my Android projects to make my development easier and maintainable.
For example can someone suggest me a way to make Intent calls to Activity without explicitly mentioning the class while creating the Intent. Im trying to loose couple the intent calls and hopefully use AndroidManifest to assign action to an activity which then can be called globally within the application.
Any other type of suggestions are welcome.
Also please suggest any kind of coding conventions that you might be using yourself.
if you want to call an Activity without explicity set the Activity class in the Intent you could register a broadcast receiver in your activity for your custom action..
Have a look at registerReceiver function.