• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Suggestions for coding guidlines for Android

 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im 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.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example can someone suggest me a way to make Intent calls to Activity without explicitly mentioning the class while creating the Intent

To do this you will have to assign a unique intent-filter for each of your activities and then when creating an Intent specify appropriate Intent action.
Also please suggest any kind of coding conventions that you might be using yourself.

For formatting your code android style, take a look at links mentioned in this thread.

There are Official coding guidelines for performance (see Best Practices on developer.android page), you might want to go through them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic