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

102 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. 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
  3. 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
  4. 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
  5. This one is good. Keep up the good work I also visit here: and I get lot of information. Android

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

    phone tracker

    ReplyDelete
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. This comment has been removed by the author.

    ReplyDelete
  13. 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
  14. This comment has been removed by the author.

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

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

    ReplyDelete
  17. 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
  18. This comment has been removed by the author.

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

    ReplyDelete
  20. CareerCircular Say Thanks For Your Kind Information!

    ReplyDelete
  21. 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
  22. 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
  23. Shield Security Solutions Provides Ontario Security Training, Security Guard License or Security License in Ontario. Get Started Today

    ReplyDelete
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. If your friend does not answer, you can leave a video message. You can Pay Per Click or the Pay Per Impression. kiss1242

    ReplyDelete
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. It's awesome post thanx for writing valuable post. If anyone one want social bookmarking sites list

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

    ReplyDelete
  46. 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
  47. 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
  48. 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
  49. 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
  50. Really nice style and design and excellent content , nothing at all else we need : D. Music for Meditation

    ReplyDelete
  51. 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
  52. Thanks for your time so much for your impressive and amazing guide. I will not be reluctant to endorse your web sites to any individual who should receive direction on this problem. Super Lemon Haze

    ReplyDelete
  53. Thanks for your time so much for your impressive and amazing guide. I will not be reluctant to endorse your web sites to any individual who should receive direction on this problem. Top Executive Search Firms in India

    ReplyDelete
  54. Often the Are generally Weight reduction plan is unquestionably an low-priced and flexible weight-reduction plan product modeled on individuals seeking out shed some pounds combined with at some point maintain a far healthier your life. la weight loss medical cannabis

    ReplyDelete
  55. When do you think this Real Estate market will go back in a positive direction? Or is it still too early to tell? We are seeing a lot of housing foreclosures in Altamonte Springs Florida. What about you? Would love to get your feedback on this. ambient music

    ReplyDelete
  56. This is furthermore a fantastic write-up my partner and i really enjoyed considering. It really is generally not very each day my partner and i support the possibility to look at something. https://doge7casino.com

    ReplyDelete
  57. This is furthermore a fantastic write-up my partner and i really enjoyed considering. It really is generally not very each day my partner and i support the possibility to look at something. ผลบอลสด7m

    ReplyDelete
  58. After study a handful of the blog posts in your web site now, and I genuinely such as your technique of blogging. I bookmarked it to my bookmark web site list and will be checking back soon. Pls check out my web-site in addition and make me aware what you believe. www.evokecoconutcreek.com

    ReplyDelete
  59. Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. https://www.ariafl.com/florida-substance-abuse-treatment-center/prescription-drug-treatment-program/

    ReplyDelete
  60. House Lawyers… [...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]… Lan Haus NRW

    ReplyDelete
  61. If you want to do the steps to complete android, please access the application at https://apksunny.com/tinder-gold/

    ReplyDelete
  62. ทุนฟรี 50ในการเล่นเกมสล็อตออนไลน์นั้น อย่างที่ทุกท่านทราบกันว่าเกมสล็อตออนไลน์เป็นเกมพนันออนไลน์ชนิดหนึ่ง ซึ่งในการเล่นเกมพนันออนไลน์ท่านจะต้องฝากเงิน ใช้เงินลงทุนสำหรับเดิมพันในเกมนั่นเอง สำหรับผู้ที่ไม่มีทุนก็จะไม่สามารถเข้าทำกำไรได้ ซึ่งการเล่นเกมสล็อตออนไลน์นั้น หลาย ๆ ท่านอาจจะมองว่าเป็นเกมที่มีความเสี่ยงในการลงทุน จึงยังมีหลาย ๆ ท่านที่ไม่กล้าที่จะทำการฝากเงินเข้าเล่นเกม แต่ท่านสามารถเลือกเล่นเกมสล็อตออนไลน์ได้แบบฟรี ๆ ไม่มีทุนก็สามารถเข้าเล่นได้ ด้วยการรับ เว็บ ufaauto789 ออนไลน์ ที่จะทำให้ท่านเข้าเล่นเกมสล็อตได้เลยไม่ต้องฝากเงิน เหมาะสำหรับผู้ที่ยังไม่พร้อมที่จะฝากเงินเข้าเล่นเกม หรือ ผู้ที่ไม่มีทุนในการเข้าเล่น ท่านสามารถเข้าทำกำไรด้วยการใช้ SLOTเครดิตฟรี ได้เลยทันที Click Here

    ReplyDelete
  63. Tamiloneindia is the leading EU affairs newspaper, published in 1993. Tamil One India is the only independent newspaper, published weekly, with no political affiliation, and seeks to present factually-correct information in a non-superficial format. Tamil One India brings you the most important news and offers a wide range of analyses and opinion pieces concerning European Union politics.

    ReplyDelete
  64. i found for that excuse many tempting stuff in your blog particularly its ventilation. Malwarebytes Premium Key is a best Anti-malware software.This software provides businesses with full attack chain protection against.... https://cyberspc.com/malwarebytes-crack-download-free/

    ReplyDelete
  65. What a fantabulous observe this has been. in no way seen this understandable of beneficial claim. i'm grateful to you and assume more quantity of posts at the side of those. thank you intensely a lot. https://wishesquotz.com/brothers-day-quotes/

    ReplyDelete
  66. Hello Web site owner. I seriously love this writing and also your webpage all in all! That write-up is very clearly written and also without difficulty understandable. Your WordPress design is wonderful as well! Would definitely be excellent to discover where I can get that. Be sure to hold up the great work. We all will need much more this sort of web owners such as you online and much less spammers. Superb mate! แทงบอลออนไลน์

    ReplyDelete
  67. assisted living is nice if you got some people and a home that cares very much to its occupants; ufabet

    ReplyDelete
  68. Sweet website , super design , very clean and utilise pleasant. link to4d

    ReplyDelete
  69. Needed to post you the little bit of note to be able to give thanks once again over the pleasing advice you’ve contributed on this page. This is really wonderfully open-handed with people like you in giving without restraint what some people would have sold as an e book to end up making some bucks for themselves, particularly now that you might have tried it if you wanted. The ideas also served to provide a good way to understand that most people have the same passion like my own to know the truth more on the topic of this matter. Certainly there are some more pleasant times ahead for individuals that view your site. dewajudiqq

    ReplyDelete
  70. I’ve been exploring for a little for any high quality articles or weblog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this site. Reading this info So i’m glad to express that I’ve an incredibly good uncanny feeling I came upon just what I needed. I most definitely will make certain to do not disregard this website and give it a glance regularly. natural self tanner

    ReplyDelete
  71. เล่นได้ตลอด 24 ชั่วโมง ผ่านเว็บไซต์ PGSLOTGAMES พร้อมเล่นได้อย่างง่ายดาย ไม่ว่าจะเป็นสล็อตออนไลน์ คาสิโนออนไลน์ อาเขตเกม และยิงปลา กับเกมที่ออกมาให้มีมาตรฐาน ที่ทันสมัยที่สุด เล่นได้ทั่วทุกที่ ทุกเวลา ทำได้ไม่มีเบื่อ ทดลองเล่นสล็อตPG

    ReplyDelete
  72. เกมสล็อตที่ให้ทุกๆท่านได้เล่นแบบฟรีๆ ทดลองเล่นสล็อต ผ่านการทดลองเล่น ผ่านเว็บไซต์สุดโด่งดังอย่าง PGSLOT-AUTOS ทำกำไรได้ง่ายๆ แบบที่คุณไม่จำเป็นต้องฝาก ไม่ต้องแชร์ เล่นเกมได้ทุกค่าย มีมากกว่า 300 เกม กับรูปแบบ 3 มิติ แจ็คพ็อตตระการตา

    ReplyDelete
  73. i always look for laptop reviews on the internet before buying a new one,:: Togel Online

    ReplyDelete
  74. The information you've shared in this blog is remarkable. Thanks for sharing such quality information.

    Want to launch On-Demand Food Delivery App? The App Ideas provides best on-demand food delivery app development solution. Contact us now!

    ReplyDelete
  75. The information you've shared in this blog is remarkable. Thanks for sharing hd streamz app

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

    ReplyDelete
  77. RTS sports TV is best for an accessiblelink rts tvplatform full of fantastic features. the primary purpose is to make it easy to access for users to watch a big event and fully support providing high quality. I know people are delighted with online

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

    ReplyDelete

Your comments are valuable for us !!!