Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Android: Using onActivityResult(), startActivityForResult() and setResult()

It is very common, when starting a new activity, to want to receive the data from that other activity at the end of the activity and then execute an action. Let’s look at an example: Let’s suppose I have a ListProducts activity and AddEditProduct. Within the ListProducts activity I click on the button to add

Standard

Android Toolbar Back Button

It’s always convenient to have that little button to “go back” to the previous Activity, and to add it is very simple, just add a directive in your“AndroidManifest.xml“.     <activity android:name=”.BackButtonActivity” android:parentActivityName=”.MainActivity”> <!– Este meta dado é necessário para versões abaixo da 4.1 –> <meta-data android:name=”android.support.PARENT_ACTIVITY” android:value=”.MainActivity” /> </activity> MainActivity corresponds to the Activity

Standard

Android Annotations Restful Tutorial (PHP Webservice)

In this tutorial I’ll be teaching you how to build a Restful service on Android using Android Annotations v4.2. I’ll use a PHP server as an example. Libraries used: Android Annotations v4.2 Spring Framework v2.0.0.M3 (Android version) Jackson Databind v2.8.5 If you would like to delve deeper into the resources described here in this tutorial,

Standard

Android MPAndroidChart – Billing Chart (Example)

MPAndroidChart is a library for Android used to build charts. Precisely because of its simplicity and wealth of resources, I decided to post this brief tutorial on how to use it to build a customized Billing X Month chart. We will use MPAndroidChart v3.0.1 in our example. Repository and official documentation: https://github.com/PhilJay/MPAndroidChart Demo To download

Latest news

Latest news directly from our blog.