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

56 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. Never too late to start learning at Salesforce Training in Australia even though you don't have any programming knowledge you can excell in Salesforce Training in London United Kingdom (UK) because it is all about your customers, so this time find the best Salesforce Training in Europe. This way we will learn Salesforce CRM.

    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. 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 journals 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
  19. 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
  20. 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 journals 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
  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. Gone through this wonderful coures called Salesforce Certification Training in Dallas who are offering fully practical course, who parent is Salesforce Training in USA and they have students at Salesforce Training classes in Canada institutes.

    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

Your comments are valuable for us !!!