Author name: Laura Prata

Tutorials

Android Lollipop Navigation Drawer Animation Support

In Android 5.0 (Lollipop) the Navigation Drawer has a very nice animation, the drawer icon changes into a back arrow when the slider is opened and changes back to default icon when the slider is closed. So far so good, if you develop an app for devices running only Android 5.0. But what if you […]

, ,
Snippets, Solutions

Android: How To Change Hint’s Size

If you need to set a smaller hint for your edit text, you can set the hint this way: myEditText.setHint(Html.fromHtml( “<small><small><small>” + getString(R.string.hint) + “</small></small></small>”)); Also, you can set the size in the string resource file where is the string for the hint. <string name=”edit_text_hint”><font size=”15″>My hint string</font></string> and in the xml file just set

, , ,
Solutions, Tutorials

Android Chronometer Timer

Hi, in this tutorial I will show you and I will try to explain how to introduce timer in your app, how to pause it and how to resume it. First you need to know that we will have to use the Chronometer class which is after all a TextView. Yes, that’s true, Chronometer class

, , , , ,
Solutions, Tutorials

ListView Empty Message

When I first needed to set a message on a ListView that was empty, I tried different methods, but none of them worked, except the one that I will describe in this tutorial. So let’s start. When you want to show a message to the user when the ListView is empty, you have to keep

Tutorials

Android: RecyclerView Tutorial

Hi,  in today’s tutorial I will show you how to create a list with the newest widget presented at Google I/O 2014, RecyclerView. Also I will show how to add click and long click events within adapter. WHAT’S DIFFERENT? is a more advanced and flexible version of ListView it forces the implementation of ViewHolder pattern

, , ,
Snippets, Solutions

Errors after update to Android Studio 0.8

I have just updated my Android Studio to Android Studio 0.8.2. But, after the update I kept getting these 3 errors while I was trying to run my project: 1.  First error Error:Execution failed for task > java.io.FileNotFoundException: C:\Program Files (x86)\Android\android-studio\sdk\tools\proguard\proguard-android-optimize.txt (The system cannot find the path specified) 2. Second error (this happened only after the

, ,
Tutorials

Android Add AdMob With Google Play Services

You might want to also check AdMob with Firebase Tutorial Now we can integrate ads from AdMob using Google Play Services. There are some changes in the way ads must be implemented now, so this why I decided to make a tutorial about it and to explain how we have to add ads to our projects. So let’s

Info

Android Emulator Alternatives: Genymotion

In Android emulators are very slow. It takes a lot of time to boot, to develop, to test. I am pretty sure everyone searched at least once for ways of improving their emulator’s speed, or for alternatives. I did. And not once, but many times. And now I discovered Genymotion. I must say that it’s

Tutorials

Android Google Maps Api v2

I finally decided to make a new post about the latest way of integrating Google Maps in Android applications. Please note that Google Maps Api v1 is now deprecated and supported by Google any more, so this is deprecated too. So you have to do some preliminary steps first. What tools did I use? Android

Solutions

Android Canvas Issue Starting API Level 14

Recently I had to change the target SDK on one of my applications, but by doing that, I ran into some problems with the Android Canvas.  In this application I use an animation which simulates an explosion. So, I tested my app and I noticed that everything was working OK, until I changed the target

, , , ,
Solutions

Android Nexus 5 USB Driver

Recently I had to install the driver for Nexus 5,  but I completely forgot how to do that so I decided to write a post about this.  So what problems did I have? Well, I did some research on the internet (again) and found the steps to install, but for some reason my Nexus 5

, ,
Solutions

Android Studio: Cannot install from SDK Manager:”Access is denied.”

On Android Studio I noticed that if I try to install the android sdk files I get an error like in the image below: (I have Windows 8 on my computer) So I found out that the solution is to open the Android Studio as Administrator from where it is installed. In my case Android

,
Solutions

Android Studio Gradle 0.9 error: Unable to load class ‘com.android.builder.testing.api.DeviceProvider’

I had to re-install my windows, therefore I had to re-install all my programs too, including Android Studio :) So, after I had re-installed Android Studio, I kept getting a Gradle error: ” Unable to load class ‘com.android.builder.testing.api.DeviceProvider’”. After I googled it I found the solution here. It seems that we have to delete gradle’s cache.

,
Solutions

Android maps v2 generate SH-1 key (MAC OS)

There are two keys that you can do with this, one the debug and the second for the release key. Basically is the same thing just that the debug key is already made for us and it is used when you run the app from your IDE .. So to generate the SH-1 key you

, ,
Scroll to Top