Friday, December 9, 2016
Thursday, July 28, 2016
Android Debugging
Two great ways to debug better. Happy testing.
1. In Android Studio add font color to logcat.- How to add color font to logcat follow the below steps:
- Open Android Studio
- Preferences -> Editor -> Colors & Fonts -> Android Logcat.
- Click button ‘Save As’, and name your new Scheme. (uncheck ‘Use inherited attributes’)
- In the right side select a color for each component: Assert, Debug, Error, Info, Verbose, Warning.
2. Add color to terminal adb logcat.
- Take a look at this tool from Jake Wharton pidcast:
Easy to use.
Install: $brew install pidcat
Use: $adb logcat -v brief | pidcat com.myPackage.Name
Third party tool optioon: Mac tool LogRabbit http://lograbbit.com $10
Let me know if you have any questions.
Thursday, July 21, 2016
Update Android SDK and Tools from terminal
1. Open Terminal and type below commands.
Opens Android SDK Manager UI. (same as
$android
Software available to update
$android list sdk -a
Install software
$android update sdk -a -u -t #
$enter 'y' to accept license
-----------------------------------------
Example
$android list sdk -a
outputs:
140- GPU Debugging tools, revision 3.1
141- GPU Debugging tools, revision 1.0.3
142- Android Support Repository, revision 34
We want to update "Android Support Repository, revision 34".
we need to use below command:
$android update sdk -a -u -t 142
$enter 'y' to accept license
Done command installs Android Support Repository, revision 34 :)
Opens Android SDK Manager UI. (same as
$android
Software available to update
$android list sdk -a
Install software
$android update sdk -a -u -t #
$enter 'y' to accept license
-----------------------------------------
Example
$android list sdk -a
outputs:
140- GPU Debugging tools, revision 3.1
141- GPU Debugging tools, revision 1.0.3
142- Android Support Repository, revision 34
We want to update "Android Support Repository, revision 34".
we need to use below command:
$android update sdk -a -u -t 142
$enter 'y' to accept license
Done command installs Android Support Repository, revision 34 :)
Wednesday, July 20, 2016
In Android Studio 2.2 gradlew command can donwload android.sdk dependencies
For more info watch video from GoogleIO 2016 What's new in Android Development tools (min 11:55-12:15)
Gradle Build System release notes
Add to gradle.properties:
android.builder.sdkDownload=true
According to this post:
Command will only download android sdk, it will not download google service, repository etc..
Saturday, May 21, 2016
Firebase - Android
First of all: Thank you Google for improving Firebase!!!
Great examples every android developer must do:
https://github.com/firebase/quickstart-android
Firebase Documentation
https://firebase.google.com/docs/android/setup#prerequisites
Videos to watch:
Google io 2016 https://events.google.com/io2016/schedule#day1
Firebase videos https://events.google.com/io2016/schedule?filters=Firebase%2CSessions
To use Firebase:
1. You need to register here
2. Create a new App
3. Download and move google.services,json to /AndroidProject/app/google.services,json
4. Run demo apps provided by google.
5. Have fun learning.
Espresso UI testing
https://events.google.com/io2016/schedule?sid=1ac924f1-0bef-e511-a517-00155d5066d7#day2/1ac924f1-0bef-e511-a517-00155d5066d7
Add ads
https://firebase.google.com/docs/admob/android/quick-start#load_the_ad_in_the_mainactivity_class
Firebase code samples
https://firebase.google.com/docs/samples/
Whats new in AS 2.2 Preview
http://thenextweb.com/google/2016/05/20/android-studio-new-layout-editor-ui-test-recorder-firebase-integration/#gref
Great examples every android developer must do:
https://github.com/firebase/quickstart-android
Firebase Documentation
https://firebase.google.com/docs/android/setup#prerequisites
Videos to watch:
Google io 2016 https://events.google.com/io2016/schedule#day1
Firebase videos https://events.google.com/io2016/schedule?filters=Firebase%2CSessions
To use Firebase:
1. You need to register here
2. Create a new App
3. Download and move google.services,json to /AndroidProject/app/google.services,json
4. Run demo apps provided by google.
5. Have fun learning.
Espresso UI testing
https://events.google.com/io2016/schedule?sid=1ac924f1-0bef-e511-a517-00155d5066d7#day2/1ac924f1-0bef-e511-a517-00155d5066d7
Add ads
https://firebase.google.com/docs/admob/android/quick-start#load_the_ad_in_the_mainactivity_class
Firebase code samples
https://firebase.google.com/docs/samples/
Whats new in AS 2.2 Preview
http://thenextweb.com/google/2016/05/20/android-studio-new-layout-editor-ui-test-recorder-firebase-integration/#gref
Sunday, May 15, 2016
Android Best Pratices - useful Libraries
Best Practices:
Building Android Apps — 30 things that experience made me learn the hard way
https://medium.com/@cesarmcferreira/building-android-apps-30-things-that-experience-made-me-learn-the-hard-way-313680430bf9#.ouwdjf99u
https://laanayabdrzak.github.io/2016/03/22/android-developement-best-practices.html
Android Shell commands
https://github.com/AndreSand/AndroidShell
Third party Libraries
https://guides.codepath.com/android/Must-Have-Libraries
Debug Library(Faceboook)
http://facebook.github.io/stetho/
RxJava
https://github.com/ReactiveX/RxAndroid
https://github.com/codepath/android_guides/wiki/RxJava
https://vimeo.com/144812843
Medium
Architecting Modern Mobile Applications
https://medium.com/@laanayabdrzak/architecting-modern-mobile-applications-bf896120f0c2#.yoe82u7v5
Building Android Apps — 30 things that experience made me learn the hard way
https://medium.com/@cesarmcferreira/building-android-apps-30-things-that-experience-made-me-learn-the-hard-way-313680430bf9#.ouwdjf99u
https://laanayabdrzak.github.io/2016/03/22/android-developement-best-practices.html
Android Shell commands
https://github.com/AndreSand/AndroidShell
Third party Libraries
https://guides.codepath.com/android/Must-Have-Libraries
Debug Library(Faceboook)
http://facebook.github.io/stetho/
RxJava
https://github.com/ReactiveX/RxAndroid
https://github.com/codepath/android_guides/wiki/RxJava
https://vimeo.com/144812843
Medium
Architecting Modern Mobile Applications
https://medium.com/@laanayabdrzak/architecting-modern-mobile-applications-bf896120f0c2#.yoe82u7v5
Wednesday, April 6, 2016
Kotlin Tutorials
Kotlin could be the future of Android Development :)
Todo App in Kotlin: https://lordraydenmk.github.io/2016/converting-a-todo-app-to-kotlin-part-1/
Book writer: http://antonioleiva.com/api-request-kotlin/
Book: https://leanpub.com/kotlin-for-android-developers/
ebook sample: file:///Users/andres/Downloads/kotlin-for-android-developers-sample.pdf
Testing:
*** read http://blog.wittchen.biz.pl/hello-kotlin/
It’s also worth mentioning that there is a project created in Kotlin by JetBrains called Spek which is a specification framework for the JVM and you can use it for writing unit tests in the JVM projects in order to get human readable output.
Build
Kotlin Meets Gradle I was lucky to attend this talk by the creator of Gradle.
Youtube tutorial:
https://www.youtube.com/watch?v=A2LukgT2mKc
koterknife:
https://github.com/JakeWharton/kotterknife
http://antonioleiva.com/kotlin-awesome-tricks-for-android/
Todo App in Kotlin: https://lordraydenmk.github.io/2016/converting-a-todo-app-to-kotlin-part-1/
Book writer: http://antonioleiva.com/api-request-kotlin/
Book: https://leanpub.com/kotlin-for-android-developers/
ebook sample: file:///Users/andres/Downloads/kotlin-for-android-developers-sample.pdf
Testing:
*** read http://blog.wittchen.biz.pl/hello-kotlin/
It’s also worth mentioning that there is a project created in Kotlin by JetBrains called Spek which is a specification framework for the JVM and you can use it for writing unit tests in the JVM projects in order to get human readable output.
Build
Kotlin Meets Gradle I was lucky to attend this talk by the creator of Gradle.
Jake Wharton's notes:
**** read https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/edit#heading=h.famdx8ejbdYoutube tutorial:
https://www.youtube.com/watch?v=A2LukgT2mKc
koterknife:
https://github.com/JakeWharton/kotterknife
Tutorials:
https://www.youtube.com/watch?v=SI2HiSLDFFshttp://antonioleiva.com/kotlin-awesome-tricks-for-android/
Official kotlin tutorials:
http://try.kotlinlang.org/#/Kotlin%20Koans/Introduction/Strings/Task.kt
Subscribe to:
Posts (Atom)