Last Updated: April 17, 2016

Tips & tricks android developer should know - part 2

Description: In the post we'll continue the legacy of  Part 1 :-) . Below are some tips and tricks which would come much handy and useful during our app development cycle.

So lets get started :-)





Note : If you have missed part 1. Please refer here

1. Capture or record screen without any external app.

Often we require to take snapshot of the app's screen or even record a video to show some features to colleagues or QA or Client . It comes handy very often.

Step 1: Simply connect your device. Open Android Monitor from android studio you'll see as fig.1.
http://code2concept.blogspot.in/
fig.1
Step 2: Now, you can open your app and click on the camera icon from android monitor located  to the extreme top-left corner to capture any screen you want. Bingo !!!

For video: Click video icon below the camera icon. Enter the resolution with multiples of 16x. fig.2. That's it. It'll start recording your action's on the app.

http://code2concept.blogspot.in/
fig.2



2. How to find layout boundaries?

Layout boundaries are very useful when we develop our UI components. It gives a real sense to layout, thereby letting us to study arrangement of different widgets in the layout.

Step 1: Open Settings --> Developer Options --> Show layout boundaries. From drawing section

https://www.linkedin.com/in/nitesh-tiwari-b5032a74
fig.3.LinkedIn app

fig.3. A Simple analysis for pencil icon. (without opening our layout)

1. Edit pencil icon has some padding to itself. 
2. Its align to top-right corner to its parent layout.

Really awesome.





3. Simplest way to decode obfuscated code?

As we know, code are obfuscated when we build our apk with proguard enabled. We often come in contact with obfuscated code in our app while debugging the stacktrace of the crashes.

So decoding is very much needed to study the stackstrace. Android build's a file called as "mapping.txt" which serves as the key ingredient to decode, in combination of "retrace".

In Windows

Step 1: Go to  (android-studio-install-dir-path)\tools\proguard\bin  open "proguardgui.bat"  fig.4

fig.4
Step 2: Click on "ReTrace" fig.5. and upload your "mapping.txt" file from app/build/outputs/mapping/.../mapping.txt   and the obfuscated code file (e.g: crash.txt). You can also simply paste the stackstrace in the box provided.

Note: If you do not find mapping.txt. You have to generate a signed apk with proguard enabled("minifyenabled true" within the app's build.gralde).

http://code2concept.blogspot.in/
fig.5
You can also use command line code to do that.

\tool\proguard\bin> retrace.bat -verbose   (path_to_mapping.txt)\mapping.txt  (path_to_stacktrace)\crash.txt

Thus just applying some simple tricks and tips really make a difference in the speed of development. 

For more updates follow us on -  Twitter

#codingIsAnArt
#coderconsole

112 comments :

  1. You know I am not actually a Android developer, but my friend is a developer. So, I'll show him this post. Thank you! I prefer to use this great free cell phone tracker app https://www.hoverwatch.com/ to spy other people.

    ReplyDelete
    Replies
    1. Thanks Sandra. Please spread the word. Will be really helpful for developer community.

      Delete
  2. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.


    Android Training in Chennai


    Android Training in Bangalore

    ReplyDelete
  3. Nice tips. I've recommended this article to my friend who is Android developer. It's very useful when someone recommend you something useful for you. Several days ago I had to write an essay but I didn't know where to start from. So, I followed the advice of my fridn and used an essay writing service https://uwritemyessay.com/.

    ReplyDelete
  4. If you have a business that needs to quickly augment the internal development team with highly specialized talent or complete any crucial development task without much delay, then the first thing to determine is whether your in-house programmers or designers are able to take up the project without any extra help and devote full time to it.Edknt Media

    ReplyDelete
  5. This blog very useful for me to learn and understand easily.Thanks for sharing the useful information .This is really helpful for me.
    Java Training in Chennai

    Selenium Training in Chennai
    Software Testing Training in Chennai

    ReplyDelete
  6. This one is good. Keep up the good work I also visit here: and I get lot of information. Android

    ReplyDelete
  7. Terrific blog.you put Good stuff.All that the topics were explained briefly.so immediately know for mepersonally.

    phone tracker

    ReplyDelete
  8. Most scanners likewise sweep and spare information as PDF records. At times the scanner can make PDF documents or JPG pictures. edit-pdf-ios-android.pdffiller.com

    ReplyDelete
  9. Be that as it may, frequently engineers think that its overwhelming to plan a UI that make the application look reliable crosswise over different Android gadgets.https://appvn.info/

    ReplyDelete
  10. У нас есть светодиодная лента цена которой выше или ниже рыночной в зависимости от того что вы ищете, дешевую или дорогую.

    ReplyDelete
  11. On some specific websites , sample codes offered include those of real-world android platform applications, that one can make and deploy. These codes clearly show all the amazing techniques in use in the android development environment.gerald winata gozali

    ReplyDelete
  12. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
    android development company in chennai

    ReplyDelete
  13. A debt of gratitude is in order for offering this quality data to us. I truly delighted in perusing. Will without a doubt going to impart this URL to my companions.  GBWhatsAPP Anti Ban APK

    ReplyDelete
  14. A large number of app engineers need to see their app in indexed lists and consequently, the opposition keeps on being irate. download itools crack

    ReplyDelete
  15. It's very useful blog post with inforamtive and insightful content and i had good experience with this information.I have gone through CRS Info Solutions Home which really nice. Learn more details About Us of CRS info solutions. Here you can see the Courses CRS Info Solutions full list. Find Student Registration page and register now.Find this real time DevOps Training and great teaching. Join now on Selenium Training online course. Upskill career with Tableau training by crs info solutions. Latest trending course is Salesforce Lightning training with excellent jobs.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Informative post! I really appreciate your work and by reading your blog, i inspired and this provides some useful information. Thank you for posting this exclusive post for our vision.
    Mobile Web Development Platforms

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. blackmart apk no ads

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. Super-Duper site! I am Loving it!! Will come back again, Im taking your feed also, Thanks. smart glass

    ReplyDelete
  24. Great post! I am actually getting ready to across this information, It’s very helpful for this blog. Also great with all of the valuable information you have Keep up the good work you are doing well.
    CRS Info Solutions Salesforce training for beginners

    ReplyDelete
  25. CareerCircular Say Thanks For Your Kind Information!

    ReplyDelete
  26. If you are a job seeker, Career Circular is the best website for you. We collect many BD job circular and posting here. You can easily find your dream job.

    BD Job Circular
    Prothom Alo Jobs
    Latest Job Circular
    BD Jobs
    BD Gov Jobs News

    ReplyDelete
  27. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  28. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  29. Myself so glad to establish your blog entry since it's actually quite instructive. If it's not too much trouble continue composing this sort of web journal and I normally visit this blog. Examine my administrations.
    Go through these Salesforce Lightning Features course. Found this Salesforce CRM Using Apex And Visualforce Training worth joining. Enroll for SalesForce CRM Integration Training Program and practice well. 

    ReplyDelete
  30. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. Salesforce Training India   

    ReplyDelete
  31. I am so happy to found your blog post because it's really very informative. Please keep writing this kind of blogs and I regularly visit this blog. Have a look at my services.  
    This is really the best Top 20 Salesforce CRM Admin Development Interview Questions highly helpful. I have found these Scenario based Salesforce developers interview questions and answers very helpful to attempt job interviews. Wow, i got this scenario based Salesforce interview questions highly helpful.

    ReplyDelete
  32. Really it is very useful for us..... the information that you have shared is really useful for everyone.Excellent information. oracle training in chennai

    ReplyDelete
  33. I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this Salesforce Training who are providing certification and job assistance. Salesforce admin training in Noida

    ReplyDelete
  34. Great post! I am actually getting ready to across this information, It’s very helpful for this blog. Also great with all of the valuable information you have Keep up the good work you are doing well.
    CRS Info Solutions Salesforce training for beginners         

    ReplyDelete
  35. Hey! Finally we are launch 150+ High DA Dofollow White Hat Manual SEO Backlinks here! Order Now and Boost your website ranking.

    100% Google Indexing White Hat Manual SEO Backlinks

    Thank you!
    DigiPeek

    ReplyDelete
  36. This article is really helpful for me. I am regular visitor to this blog. Share such kind of article more in future. Personally i like this article a lot and you can have a look at my services also: I was seriously search for a Salesforce training institutes in ameerpet which offer job assistance and Salesforce training institutes in Hyderabad who are providing certification material. It's worth to join Salesforce training institutes in India because of their real time projects material and 24x7 support from customer desk. You can easily find the best Salesforce training institutes in kukatpally kphb which are also a part of Pega training institutes in hyderabad. This is amazing to join Data science training institutes in ameerpet who are quire popular with Selenium training institutes in ameerpet and trending coureses like Java training institutes in ameerpet and data science related programming coures python training institutes in ameerpet If you want HCM course then this workday training institutes in ameerpet is best for you to get job on workday.

    ReplyDelete
  37. Shield Security Solutions Provides Ontario Security Training, Security Guard License or Security License in Ontario. Get Started Today

    ReplyDelete
  38. My friend gave this person extra mentorship, training and invested substantially in him, but after all this, the employee turned around to him and said, "You know what, I really don't think I'm in the right job. My heart really isn't in it. This isn't what I want to be doing." Salesforce training in Hyderabad

    ReplyDelete
  39. This is most informative and also this post most user-friendly and super navigation to all posts.
    Data Science
    Selenium
    ETL Testing
    AWS
    Python Online Classes

    ReplyDelete
  40. Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. Safe Way of Using an Essay Writing Service

    ReplyDelete
  41. That's really impressive and helpful information you have given, very valuable content.
    We are also into education and you also can take advantage really awesome job oriented courses

    ReplyDelete
  42. Movie-watching websites that are more than movie-watching websites Because we are the number 1 free movie site in Thailand for a long time, including new movies, Thai movies, Western movies, Asian movies, we have all kinds of ways for you Including new series Full of all stories without interstitial ads to keep annoying anymore. One place sa-movie.com.

    Android and IOS operating systems. Watch online movies, Thai movies, Western movies, Asian movies, Cartoon movies, Netflix Movie, Action Movies, Comedy Movies, Crime Movies, Drama Movies, Horror Movies, Adventure Movies, Crash Movies and still have many new movies to watch. You can watch for free anytime, anywhere 24 hours a day at see4k.com.


    GangManga read manga, read manga, read manga online for free, fast loading, clear images in HD quality, all titles, anywhere, anytime, on mobile, tablet, computer. Android and IOS operating systems. Read top comics, action dramas, comedy, adventure, horror and manga. New coming every day to watch many more. Can be read for free anytime anywhere 24 hours a day at gangmanga.com..

    It is no secret that football is among the most popular and widely watched sports. Everybody who likes football tries to find the best platform for free soccer streaming. So, what are the best free sports streaming sites? We are going to answer this question. On this page, you can find a detailed overview of the most widespread soccer streaming websites. Keep on reading and make the best choice for you live24th.me.

    ReplyDelete
  43. With special privileges and services, UEFA BET offers opportunities for small capitalists. Together ufa with the best websites that collect the most games With a minimum deposit starting from just 100 baht, you are ready to enjoy the fun with a complete range of betting that is available within the website

    ufabet , our one another option We are a direct website, not through an agent, where customers can have great confidence without deception The best of online betting sites is that our Ufa will give you the best price

    หาคุณกำลังหาเกมส์ออนไลน์ที่สามารถสร้างรายได้ให้กับคุณ เรามีเกมส์แนะนำ เกมยิงปลา รูปแบบใหม่เล่นง่ายบนมือถือ คาสิโนออนไลน์ บนคอม เล่นได้ทุกอุปกรณ์รองรับทุกเครื่องมือ มีให้เลือกเล่นหลายเกมส์ เล่นได้ทั่วโลกเพราะนี้คือเกมส์ออนไลน์แบบใหม่ เกมยิงปลา

    อีกทั้งเรายังให้บริการ เกมสล็อต ยิงปลา แทงบอลออนไลน์ รองรับทุกการใช้งานในอุปกรณ์ต่าง ๆ HTML5 คอมพิวเตอร์ แท็บเล็ต สมาทโฟน คาสิโนออนไลน์ และมือถือทุกรุ่น เล่นได้ตลอด 24ชม. ไม่ต้อง Downloads เกมส์ให้ยุ่งยาก ด้วยระบบที่เสถียรที่สุดในประเทศไทย

    ReplyDelete
  44. Excellent material with unique content, and it is really important to be aware of blog-based material.

    1000 Social BookMarking Sites List
    Free social bookmarkeing sites list

    ReplyDelete
  45. one fast brownIn case you are looking for a good site, UFA, UEFA Bet casino site. Which can be played as a thorough answer, in a position to answer Quality and Performance It's ideal to get a great deal of the issues. It can be something very punching and fascinating. Excellently, the items that UFABET football betting is absolutely nothing even with the practical experience of quality. Plus accessibility that are able to see final results It's a model that is very sharp and also different. Full of performance of creating wealth Attractiveness With the most beneficial opportunities it is quite nothing You will find opportunities and also probabilities for making profits. Quality and also somewhat diverse For people who have come to make use of the service excellently fox
    บาคาร่า
    สล็อต
    ufa
    แทงบอล

    ReplyDelete
  46. Infycle Technologies offers the Best Data training in chennai and is widely known for its excellence in giving the best Data Science Certification course in Chennai. Providing quality software programming training with 100% placement & to build a solid career for every young professional in the software industry is the ultimate aim of Infycle Technologies. Apart from all, the students love the 100% practical training,
    which is the specialty of Infycle Technologies. To proceed with your career with a solid base, reach Infycle Technologies through 7502633633.

    ReplyDelete
  47. After complete part 4 i came here to read you android trips and tics. Ill also read your all post.

    Eco technology helps manage and recycle waste material. It allows it to be used for beneficial purposes. A lot of recyclable material has allowed individuals to create plant fertilizer, sculptures, fuel, and even furniture. Eco technology is the environmental service provider in Bangladesh. They use the technology for waste management, waste incineration, and more.

    ReplyDelete
  48. Want to do Data Science Training in Chennai with Certification Exam? Catch the best features of Data Science training courses with Infycle Technologies, the best Data Science Training & Placement institutes in and around Chennai. Infycle offers the best hands-on training to the students with the revised curriculum to enhance their knowledge. In addition to the Certification & Training, Infycle offers placement classes for personality tests, interview preparation, and mock interviews for clearing the interviews with the best records. To have all it in your hands, dial 7504633633 for a free demo from the experts.No.1 Data Science Training in Chennai | Infycle Technologies

    ReplyDelete
  49. We've all come across sticking points when developing our Android apps that just don't seem like they should be causing so much trouble. Surely someone has solved this problem before, right? Chances are, your issue or something like it has been solved and re-solved by the Android developer community many times over. online marketing

    ReplyDelete
  50. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. iOS developer

    ReplyDelete
  51. ufabet168 Wonderful post. I discover something much more challenging on different blogs day-to-day. It will certainly constantly be stimulating to check out content from other writers as well as exercise a little something from their store.

    ReplyDelete
  52. The best way to make your living space feel more relaxed and welcoming is with gypsum decoration. It can be done by hand or machine, making it a great option for anyone looking to save some time! A type of interior design available in both manual labor-intensive as well as automated forms; using the technique can help you give any living space an instant homey look without much effort at all - perfect if you're on tight deadline for getting things finished up before guests arrive!

    ReplyDelete
  53. I read this article. I think You have put a lot of effort to create this article. I appreciate your work.
    Thank you much more for sharing with us...!
    Reactjs Training in Chennai |
    Best Reactjs Training Institute in Chennai |
    Reactjs course in Chennai

    ReplyDelete
  54. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. kiss1242

    ReplyDelete
  55. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. kiss918 apk

    ReplyDelete
  56. Chaga mushroom tea appears to be shown a great deal of mankind through Ruskies artice writer Alexandr Solzhenitsyn using your partner’s new ‘Cancer Ward’ the spot predominant reputation has been curable of pisces with the help of the help of this relaxer. Chaga mega888 apk download 2020

    ReplyDelete
  57. Chaga mushroom tea appears to be shown a great deal of mankind through Ruskies artice writer Alexandr Solzhenitsyn using your partner’s new ‘Cancer Ward’ the spot predominant reputation has been curable of pisces with the help of the help of this relaxer. Chaga pussy888 download

    ReplyDelete
  58. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. Guesthouse in springs

    ReplyDelete
  59. Grab Data Science Certification in Chennai for skyrocketing your career with Infycle Technologies, the best Software Training & Placement institutes in and around Chennai. In addition to the Certification, Infycle also gives the best placement training for personality tests, interview preparation, and mock interviews for leveling up the candidate's grades to a professional level.

    ReplyDelete
  60. To help you increase your clean-energy consumption, try using wind energy. Wind is a very clean type of alternative energy, and it can help you cut your electricity bill a ton. If this solution interests you, check with your local authority to ensure you have proper zoning and also ensure you have sufficient space. For better support hire an environmental consultancy company. They would help you for this type of services.

    ReplyDelete
  61. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. islamic teachings

    ReplyDelete
  62. Things i have seen in terms of computer memory is the fact there are technical specs such as SDRAM, DDR and many others, that must match the features of the motherboard. If the personal computer’s motherboard is fairly current while there are no operating-system issues, changing the memory literally takes under sixty minutes. It’s one of several easiest personal computer upgrade techniques one can picture. Thanks for giving your ideas. website hosting

    ReplyDelete
  63. Things i have seen in terms of computer memory is the fact there are technical specs such as SDRAM, DDR and many others, that must match the features of the motherboard. If the personal computer’s motherboard is fairly current while there are no operating-system issues, changing the memory literally takes under sixty minutes. It’s one of several easiest personal computer upgrade techniques one can picture. Thanks for giving your ideas. Lodges in ladysmith

    ReplyDelete
  64. It's fantastic. This is one of the most well-known websites, with a variety of useful information. Keep up the good job; your writing is fantastic, and I really appreciate this page.
    Best Interior Designers

    ReplyDelete
  65. Infycle Technologies, the No.1 software training institute in Chennai offers the No.1 Big Data Hadoop Training in Chennai | Infycle Technologies for students, freshers, and tech professionals. Infycle also offers other professional courses such as DevOps, Artificial Intelligence, Cyber Security, Python, Oracle, Java, Power BI, Selenium Testing, Digital Marketing, Data Science, etc., which will be trained with 200% practical classes. After the completion of training, the trainees will be sent for placement interviews in the top MNC's. Call 7502633633 to get more info and a free demo.

    ReplyDelete
  66. Thanks For Sharing such a wonderful article the way you presented is really amazing It was extraordinarily simple to discover my way around and amazingly clear, this is staggering!!!
    Best Software Training Institutes

    ReplyDelete
  67. Finish the Selenium Training in Chennai from Infycle Technologies, the best software training institute in Chennai which is providing professional software courses such as Data Science, Artificial Intelligence, Java, Hadoop, Big Data, Android, and iOS Development, Oracle, etc with 100% hands-on practical training. Dial 7502633633 to get more info and a free demo and to grab the certification for having a peak rise in your career. Get Selenium Course in Chennai | Infycle Technologies

    ReplyDelete
  68. It's awesome post thanx for writing valuable post. If anyone one want social bookmarking sites list

    ReplyDelete
  69. Glad to be one of many visitants on this awing web site : D. hoverboard

    ReplyDelete
  70. Have you ever thought about creating an e-book or guest authoring on other sites? I have a blog based upon on the same subjects you discuss and would love to have you share some stories/information. I know my visitors would value your work. If you are even remotely interested, feel free to shoot me an e mail. hoverboard price

    ReplyDelete
  71. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your blog? My website is in the very same area of interest as yours and my users would really benefit from a lot of the information you present here. Please let me know if this okay with you. Regards! wicca spells

    ReplyDelete
  72. I am really loving the theme/design of your web site. Do you ever run into any browser compatibility problems? A few of my blog readers have complained about my website not working correctly in Explorer but looks great in Chrome. Do you have any tips to help fix this issue? spells caster

    ReplyDelete
  73. Grab the Selenium Training in Chennai from Infycle Technologies, the best software training institute in Chennai which is providing professional software courses such as Data Science, Artificial Intelligence, Java, Hadoop, Big Data, Android, and iOS Development, Oracle, etc with 100% hands-on practical training. Dial 7502633633 to get more info and a free demo and to grab the certification for having a peak rise in your career. Grab Selenium Training in Chennai | Infycle Technologies

    ReplyDelete
  74. Thanks for a great info, but you can easily root Android devices with the help of KingRoot APK and 360 Root APK. It is an easy way Android rooting apps and for free.

    ReplyDelete
  75. Really nice style and design and excellent content , nothing at all else we need : D. Music for Meditation

    ReplyDelete
  76. bless you with regard to the particular blog post ive really been searching regarding this kind of information on the web for sum time right now as a result cheers เว็บซื้อหวยออนไลน์

    ReplyDelete

Your comments are valuable for us !!!