Home
Videos uploaded by user “Future Studio”
Retrofit Tutorial — Getting Started and Creating an Android Client
 
11:59
In this video, you'll learn what Retrofit is and how to request data from the GitHub API. Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Read the full tutorial for easy code copy&pasting here: ►https://futurestud.io/tutorials/retrofit-getting-started-and-android-client GitHub Repository for the code: ►https://github.com/fs-opensource/android-retrofit-video Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened Transcript: In this video, you'll learn two things. I'll explain what Retrofit is and why you should use it. We'll go through an example with all the necessary steps to interact with the GitHub API. Specifically, we'll request all public GitHub repositories of a user and display them in our Android app. All you have to do with Retrofit is to describe the endpoints; what they expect and what they respond and you're good to go! This makes it so much easier to develop apps, which interact with APIs. Alright, you need to add Retrofit as a Gradle dependency. Retrofit uses OkHttp as a network layer and automatically pulls it in for us as a dependency. Since GitHub uses JSON as a data format for responses and requests, you'll need a converter to convert our Java objects to and from JSON. Before we start describing our API endpoints, you should check the AndroidManifest.xml if we actually have the permission to do network requests. We want to have repositories from a user so let's call reposForUser. We also want to pass a parameter for the user want to request the repositories for. Finally, we've to describe what the response is and it is a list of GitHub repositories. We'll need to annotate the method with more meta information. First, we need to specify that this is a GET request and we do that by the @GET() annotation. Then we'll also tell where the endpoint for the request is. Usually, you want to use a relative and not the full URL. We want to replace this user name with this dynamically. Retrofit has something called "path parameters", which we'll talk more in detail in a later video. Now we can decide during runtime, which user we want to request the repositories for. If you want to make requests from a UI thread, we'll need to do this asynchronously. We need to wrap our return into a Call<> object. So the return isn't a List<> it's a Call<List<>> typed as a list of GitHub repositories. In this GitHubRepo class we'll describe what kind of data comes with a GitHub repository. I've already prepared a little ListView, which we'll use for the display of the data. Retrofit's heart is a class called "Retrofit". In order to configure it easily, the developers added a fluent API with the Retrofit.Builder. One thing you usually have to specify is the base URL. For GitHub this is https://api.github.com/ Next, we need to add a converter. You're going to use .addConverterFactory and going to pass a regular, standard Gson instance. We got the builder, so it's time to create actual Retrofit objects. We can use retrofit.create() for that and we're just going to pass our GitHubClient class. The next step is to call an actual method on our client, which would be our reposForUser() and we're going to pass our own GitHub user name "fs-opensource". The final step is to utilize this Call<> object. Since you're in an activity, and thus in a UI thread, we need to do it async with the method called "enqueue". We'll say call.enqueue() and it expects a callback. The callback will be executed once we got the response from the server back. We're going to use the response object and as you can see the body() is the List<GitHubRepo> The final step is to pass the data to our ListView. I'm excited to see if this actually worked! Yes, we see all the GitHub repositories of our open source account.
Views: 75189 Future Studio
Retrofit Tutorial — Send Objects In Request Body
 
09:13
In this video, you'll learn how to send Java object in the request body to the server with Retrofit. Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Read the full tutorial here: ►https://futurestud.io/tutorials/retrofit-send-objects-in-request-body Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened Transcript: In the first video in this series, we've learned what Retrofit is and how you can use it to request data from the server. If you haven't seen that video yet, you should watch it right now since it'll make it easier for you to understand the rest of this video. In this video we'll turn things around and send data to the server. In just a few minutes you'll know how you can Java objects as your request body. Let's quickly review GET, POST and PUT requests. If you're requesting data from a server, you're doing a GET request. In this video we want to send data to the server. This is usually done in a POST or PUT request. A POST request is if you're trying to add a new data item, for example if you're sending user object the server will create a new account. On the other hand a PUT request updates an existing data item. In the user example, this would be a profile update. It doesn't create a new user, it simply changes an existing one. Today we'll implement an app view which we'll let the user create a new account. Thus, we're sending a new user object as a POST request to the server. I've already prepared a view and the basic Retrofit setup. We need to describe the endpoint we want to talk to. The API developer gave us an example request in Postman, which is a pretty decent tool to test REST requests. Now this is everything we need to know to describe our endpoint in Retrofit. If we execute this we'll also see that we're getting the exact user object back, plus an ID. Alright, now we need to describe that endpoint we've just seen as a Retrofit endpoint. We're creating a new account with the user object, so let's pass a user object. We're also getting a user object back, so depending on the context you want to use different classes for responses and requests, but in this case it's almost the same, so we're just going to use the same class. As always in Retrofit you've to wrap it into a Call class. First, we know that this is a POST request, so let's add the @POST annotation. The final piece is to declare the user object as the request body. This is simply done by a @Body annotation. Retrofit will now create a request body out of the passed user object. As you know from our Postman request, we've four properties here. Additionally, when we're getting the user back we'll be getting an integer. Since this is nullable, I'll be using the Integer class for that one. Finally, let's add a constructor without the ID, since when we're passing to the server we don't have an ID yet. Once the user clicks on the "create account" button, we need to read in these properties, create a user object and then send it to the server. We can use the constructor we've just created. I've already prepared a client for UserAPI. So what we now need to do is to get a call object for our request. And we can do that by simply calling client. and there is our new method. We can pass the user object we've just read in from the endpoint. We're getting back a Call object. Since we're working asynchronously, we'll use enqueue() and we're going to pass a callback. Now if something went wrong, I'll just going to do a little Toast. We know when we get the user object back from the server, it has the user ID. As you know from the last video, you can access the server response via response.body() and since we declared a getter ID method, we can use that here. A nice thing about Retrofit, which I haven't said yet, is if an object property is null Retrofit will just ignore it. In our user class, the ID is null when we're sending it to the server. Since it is null, Retrofit will not even create a JSON property for it. It would just ignore it.
Views: 32894 Future Studio
Gson Tutorial — Getting Started with Java-JSON Serialization & Deserialization
 
09:30
In this video you'll get started with Gson. Gson is a library to (de)serialize JSON from and to Java objects: ►Introduction: [0:07] ►Gson Setup: [1:15] ►JSON Basics: [1:57] ►Serialization (from Java object to JSON): [4:21] ►Deserialization (from JSON to Java object): [6:52] ►Summary: [8:54] Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/gson-getting-started-with-java-json-serialization-deserialization Watch all of our Gson tutorials in a playlist: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7AOy4UEORSutzFus98n-Es_l See Gson in action in our Retrofit video series: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened Transcript: Gson is a powerful library to map automatically from Java objects to JSON and from JSON to Java objects. With a single line of code you can these transformations without worrying about the exact details or changes in the data models. Gson does everything for you. Gson works either on Android or any Java project. The example project we're going to work in will always be in Java, but it doesn't mean you can't use on Android. It works on both platforms the same way. Here we have our Java example project. I've also already added the gradle dependency here. If you want to use Gson in your project you just simply add this line to your gradle build. The UserSimple class has four properties. It has two strings: the name and the email. It has an integer value: the age, so in sense of 27, and it has a boolean value isDeveloper, which is true or false. For everyone who didn't work with JSON before, let's create a quick JSON object, which is appropriate for this class. JSON objects are alway indicated by the curly brackets {}. This would be an appropriate JSON representation of one of these objects. When we want to transform from a Java object, we need to have that Java objects. Let's use the same value we've just used before: Norman, my email, 27, and true. How do we create a JSON out of this [Java] object? We need a Gson instance. What we can now call on this Gson instance is toJson(). The parameter for the toJson() is simply the object we've just created. If you make this to a String we've this JSON object here. Actually it's a String object, which contains a JSON. We have a JSON result. As you can see we've added whitespaces and line breaks to make it look a little nicer, so we humans can read it. Gson actually, by default, makes it as small as possible. So no whitespaces, no line breaks. If you format this the same way, you'll see it's the exact same result. The values are the same, the property keys are the same, everything is identical. That with just one line of code, fantastic! Let's do the other direction, when we have a JSON and want to make Java objects out of it. This process is called deserialization. The process is fairly similar. We take a Gson instance and on the Gson instance, we call fromJson(). We can pass a string so we'll just pass the userJson string. Here we have a second parameter. As you can see when you look at the JSON objects they're as minimal as possible by just stating the values. You need to know what kind of object is incoming. Here we would say this is of the type UserSimple.class. Now Gson can tell, you have this incoming JSON and we're going to map it to this UserSimple class and can set the properties correctly. Let's make a user object out of and run the same thing. What we would expect that the email, the [is]Developer, the name are all the same, but the age is 26 now. As you can see everything worked, we've the name correctly, we've the email correctly, the age is 26 because the JSON says 26, and we have the isDeveloper, which is true. What you've seen in this short example is how you can use Gson to transform automatically from JSON to Java objects and the other way around. Obviously, there is a lot more to explore. In the next video, we'll look at how you can map nested objects with Gson.
Views: 21708 Future Studio
Retrofit Tutorial — Log Requests and Responses
 
08:36
In this video you'll learn how to log requests and responses with Retrofit. Tip: turn on subtitles to deal with my accent. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-log-requests-and-responses ►https://futurestud.io/tutorials/retrofit-2-enable-logging-for-development-builds-only Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 11167 Future Studio
Retrofit Tutorial — Synchronous and Asynchronous Requests
 
06:21
In this video you'll learn how Retrofit supports synchronous and asynchronous requests out of the box. Tip: turn on subtitles to deal with my accent. A shortened transcript is available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-synchronous-and-asynchronous-requests Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened transcript: In this video, you will learn the difference between synchronous and asynchronous execution. These terms were already used in you describe computing processes. A synchronous process is waiting for each step to be completed before moving on with the next one. Your simple Java code works synchronously, since it's executing one line, statement after statement, and waits until the line of code is completed, before going to the next line. Asynchronously on the other hand is if the process continues to run other commands after it started the computation, and when the result of the computation is available, it'll handle it. This idea also exists in the area of network requests. The application can either hold and not do anything until the network request came back with a result, which would be synchronous requests or asynchronous requests would continue to run the app and simply update them when the network request has succeeded. Luckily. Retrofit set supports both ways, which we will look at now. I'm reusing the app we've implemented in the previous video on Retrofit. So let's look at that in practice. This is our main activity where we gather some user input and pass the data to the sendNetworkRequest() method. I mentioned earlier that the call object allows both execution methods: synchronous or asynchronous. Let's look at the synchronous one. We're going to comment out the asynchronous one. Now the enqueue() executes the request asynchronously. That's why we have to pass a callback. Execute() on the other hand simply returns the result like a regular Java function call. So we're going to use execute() and have the result right away. We have to wrap it in a try-catch in case something goes wrong and the I/O level. Now all the things that happen behind the scenes from creating request, opening a network connection, parsing the server response is all wrapped in this single line. Isn't that fantastic? So let's run this. Let's add some sample input. Alright our app crashes :( So let's look what happened. So here you can see that there's NetworkOnMainThread exception. So the crash is actually for good reason. If you run a synchronous network request on the UI thread, it will hold the entire UI until the request is done. Essentially you have freezes. This is incredibly annoying to the user! This doesn't mean that you can't use synchronous execution on Android. You simply have to do it on the thread, which isn't a UI thread. So let me show you that. Now instead of doing it from the UI thread, we will pass it to a background service. In this case the simple intent service. In the intent service, we will simply add the request we just made and see if it works from here. We still have to start the background thread. So we will do that with this intent. Once our method arrives here, it will start the service, jump into here and then execute the method synchronously on the background thread. So let's see if you get a response here. Okay, I'm going to add some data. Even though it doesn't really matter since we had it hard-coded in the background thread. But as you can see the synchronous way of doing [the request] actually works on the background thread. So feel free to use it whenever you are on the background thread or maybe in a Java server environment, but stick to the asynchronous way of doing it as soon as you are in a UI thread.
Views: 10544 Future Studio
Product-Flavor-Dependent Dependencies with Gradle
 
04:37
In this video we'll show you how to set up product flavor dependent dependencies with Gradle. Read the full tutorial with all the code snippets here: ►https://futurestud.io/tutorials/android-how-to-implement-productflavor-dependent-dependencies-with-gradle ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2352 Future Studio
Node.js — Increase the Process’ Memory Limit
 
05:07
The system process of Node.js starts your applications with a default memory limit. If you’re going to run an application that saves a lot of data into variables and therefore memory, you may run into a Node.js process exit due to allocation issues. The solution to run your Node.js app with increased memory is to start the process with an additional V8 flag: “--max-old-space-size”. You need to append your desired memory size in megabytes. The following command will start the server.js with a memory limit of 8 GB. ► node --max-old-space-size=8192 server.js Benefit from this short guide and bookmark it for fast access 😉 Read more details in the tutorial ► https://futurestud.io/tutorials/node-js-increase-the-memory-limit-for-your-process Code snippet to test increased memory limit ► https://github.com/fs-opensource/nodejs-tutorials/tree/master/examples/increased-memory-limit ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 340+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 340+ technical in-depth tutorials: ► https://futurestud.io/tutorials Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 3228 Future Studio
Retrofit Tutorial — Token Authentication
 
10:46
In this video you'll learn about token authentication and how to implement it with Retrofit. Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-token-authentication-on-android Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened transcript: In the last video we have looked at basic authentication so a standardized way on how you can identify your user to your server. In this video we will look at the less standardized version of it, which is total authentication. Instead of encoding the user name and password on every request and sending it with it, we are getting a special token. Most APIs create the token when you log in and return it to you and all subsequent calls are going to be made with that token. Basically all protected endpoints expect that token as the authorization header. In this video we will look at how you can implement that on an android app with Retrofit. Now it's important that you do this on an HTTPS environment. Otherwise this can be read by anyone and you shouldn't send passwords in clear text. In this case the response is a user ID, the email and also that secret token. The token is important! You need to save that because you will need it for all following requests. Here we have a second endpoint which is getSecretInfo and if you're sending this without any token you will get a 401 back. Basically the server is telling us "hey I won't give you that information unless I get a valid token from you" Most token APIs expect the token in the authorization header. Use the authorization as the header key and the value will just be that special token we just got. If you send it now you'll get an interesting string back. Once again if we change this token to something else invalid. So we send a token but it's not correct, we will get that error message back. Let's implement all of that: the login and then the getSecretInformation() on the Android app. Let's describe the Retrofit interface. The first interface we need to describe is the login. As you have seen in Postman this is a POST request and the URL is simply /login. We expect a user object back, so this is going to be user and let's call this just simply "login()". The request body will be the login class I have just showed you. The second part is the secretInfo(). This is simply /secretInfo. As you have seen in Postman, it's a GET request since we are just requesting data. Since it's just a string, we won't to any transformation into a Java class and this will be getSecret(). In this request we need to send the token with. We're going to add an additional parameter, which is going to be a @Header. This will be a string and it will be the auth token you want to send. Now we have to tell the Retrofit that this token is going to be the authorization header. Okay so first step is you're going to log in with the login information. That login gives us the user object back, where we have the token. Then we will use that token to the request the secret and the secret is just a string, so we won't to any parsing. Let's jump into the activity and implement all of that. That's it! In this quick and simple example you have seen how you can use the token authentication to log in the user, get the token and use a token for further requests. Obviously when the API gets more complex with more endpoints this is still not ideal. You should save the token in the more central place and, ideally, you also handle the authorization header in a more central place. One option is the ServiceGenerator which we will show you in a separate video in the future.
Views: 16114 Future Studio
Retrofit Tutorial — Basic Authentication
 
10:23
In this video you'll learn about basic authentication and how to implement it with Retrofit. Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/android-basic-authentication-with-retrofit Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened Transcript: This video will be about basic authentication. Authentication is a process where you're identifying yourself as a "special someone". If your app has login process, in that moment where the user enters username and password he identifies himself as one particular user of your service. Basic authentication is the standard where you send the user name and the password as the base64 encoded request header to the server. The server then can take the username and password and make sure it's in the database and it's correct and then allow the action you want to do. If you want to start implementing this on Android, we need to do several things. First of all we need to add the authorization header. Then you need to create this encoded part back here and then finally we just send the request with Retrofit. I've prepared an empty login app. As always with Retrofit, we need to start by describing the interface. We have just seen the method is actually a GET method, under the route /basic. Let's call this simply getUser() and we expect a user object back. What we still need to do is add the authorization header. You can add a header by simply adding another parameter here, which is going to be a string, and it will be the auth header. And the value of the annotation will be authorization. We have the interface, so now we need to talk to that interface. Let me jump into the login activity. We will use the UserClient interface and use the getUser() method to do our call. The header is actually the value of that key. So we will start this basic and we have that empty space and back here we need to add the encoded username/ password. You can do that by using the base64 class and here you already have the encode method. We can do encodeToString() and now we need to give it a byte array. That byte array is the string combination. What we're going to do now is we're going to add the username and password and we separate those two by a simple colon [:]. What's going to happen here? We use our user name, we use the password and we combine that with the colon. Then we encode it with the base64 class and that is readable to the server. The server can decode that and check if it's a real user. Of course, we still need to get our Call object down here since we are already in a background thread with the async task, we can simply use the execute() way, so the synchronous way of doing that network request. This will be the server response object. As you know if we do execute() we need to catch network failures, which is going to be the IOException and finally we need to check if the response was successful and in that case we will return true. The final thing to do is instead of hard-coding the login which doesn't make any sense, we will tie it up to the UI. And then we will start this thing. Let's review what you have seen in this video. In this video you have seen how you can authenticate your user using the basic authentication to a server.[No pun intended] Basically what you're doing is you're encoding the username and password into a base64 string and sending that to the server. That encoded string needs to be an authorization request header. You need to make sure that that request header has the exact format of authorization as the header key and let the value starts with"Basic " and then that encoded string. Always make sure you have the correct format. One disadvantage of the way I just showed you is that you would have to repeat this over and over again. Better is if you have a central place where you always generate that authorization header and that can be done by using a ServiceGenerator.
Views: 16638 Future Studio
Gson Tutorial — Change Naming of Fields with @SerializedName
 
05:34
In this video you'll learn you can exclude and include specific properties during serialization and deserialization with the @Expose() annotation. Find the tutorials for an easy read here: ► https://futurestud.io/tutorials/gson-model-annotations-how-to-change-the-naming-of-fields-with-serializedname ► https://futurestud.io/tutorials/gson-model-annotations-multiple-deserialization-names-with-serializedname Find the code of this video on Github: ► https://github.com/fs-opensource/youtube-gson-samples/tree/master/serializedname Start the playlist with all Gson videos here: ►https://www.youtube.com/watch?v=BbI8FdQOKNs&list=PLpUMhvC6l7AOy4UEORSutzFus98n-Es_l ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 1811 Future Studio
Gson Tutorial — Mapping of Nested Objects
 
11:24
In this video you'll get learn how you can map nested objects with Gson. Tip: turn on subtitles to deal with my accent. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/gson-mapping-of-nested-objects The first video (Getting Started) in our Gson series is here: ►https://youtu.be/BbI8FdQOKNs See Gson in action in our Retrofit video series here: ►https://www.youtube.com/watch?v=R4XU8yPzSx0 ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 10856 Future Studio
Gson Tutorial — Mapping of Null Values
 
05:04
In this video you'll learn how Gson deals with null values and how you can force serialization of null values. Tip: turn on subtitles to deal with my accent. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/gson-mapping-of-null-values ►https://futurestud.io/tutorials/gson-builder-force-serialization-of-null-values Start the playlist with all Gson videos here: ►https://www.youtube.com/watch?v=BbI8FdQOKNs&list=PLpUMhvC6l7AOy4UEORSutzFus98n-Es_l See Gson in action in our Retrofit video series here: ►https://www.youtube.com/watch?v=R4XU8yPzSx0 ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2531 Future Studio
Retrofit Tutorial — Custom Request Headers
 
06:06
In this video you'll learn how to send custom request headers with Retrofit. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-add-custom-request-header Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 8329 Future Studio
Retrofit Tutorial — How to Upload Multiple Files to Server
 
07:55
In this video you'll learn how to upload multiple files and a dynamic amount of files at the same time with Retrofit. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-how-to-upload-multiple-files-to-server ►https://futurestud.io/tutorials/retrofit-2-how-to-upload-a-dynamic-amount-of-files-to-server Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 9752 Future Studio
Retrofit Tutorial — Simple Error Handling
 
14:41
In this video you'll learn the basics of error handling with Retrofit and some strategies to deal with errors. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-simple-error-handling Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 5007 Future Studio
Retrofit Tutorial — How to Upload Files to Server
 
11:49
In this video you'll learn how to upload files to a server with Retrofit. Tip: turn on subtitles to deal with my accent. A shortened transcript is also available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-how-to-upload-files-to-server Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- In this video we will look at so-called multi-part requests, which is more or less a fancy word for file upload requests. Once you have seen a bit of theory behind multi-part requests you'll create them this Retrofit. Specifically we will implement an app which let's the user upload photos with the description to the server. We start at the beginning and we will look at every necessary step to upload files from an Android app. You will learn about new annotations like @MultiPart and @Part. You'll also get to know the request and response body classes and finally OkHttp's MultipartBody.Part class Multi-part requests are HTTP requests which are usually used if you're trying to send files to the server. The file can be audio, video, photo, or any kind of binary data. As always when implementing a new endpoint with Retrofit we will start with describing the endpoint in the interface class. You're going to add an additional endpoint to upload a file. When you're sending data even if it's files, it needs to be POST or PUT request. We can do that with the @MultiPart annotation. Retrofit now knows that this request is multi-part request. In our demo case we will simply send a description and a photo file. Consequently, we need to annotate every parameter with @Part annotation. That's not enough, we also need to specify what types the parameters are. Finally the @Part annotation offers you to name the part and set the encoding. As with any other Retrofit request you can pass null values if something should be emitted from the request. If the user doesn't have a description you can simply pass null. This would also work for the photo parameter even though this upload endpoint wouldn't make much sense then. The final thing you have to add is a return type. This really depends on the API and use case. In our demo API you won't return anything meaningful. So we just keep it unspecific with the ResponseBody class. You won't get any typed Java objects but you can still access general information like the status code or also the response body itself as a string. Our main activity only has a bunch of code to deal with the permissions, file selection in views. The interesting part is the uploadFile method, which takes the file URI. Basically this function gets called when the user gave all the permissions and selected a file to upload. First up is a string description of the photo. As we have specified in the API endpoint description we need to create and pass the RequestBody object. The RequestBody class offers a static create() method, which we'll use now.The first parameter is the media type of the RequestBody This needs to be multipart-form when sending additional data along with the file. The second parameter is our file. This is a two-step process. First, we're also creating a RequestBody for the file again using the RequestBody. create() method. This time the first parameter is actually the content type of the file. We will use a ContentResolver to get the type dynamically and then parse the content type in OkHttp's media type. Getting a file object from a file URI surprisingly difficult and really depends on a variety of things like Android OS version, phone model, and so on. I'm using a FileUtils class. Last, but not least, we will pass a file part object. Let's call the description "Test123" and select a file, what will just be a retrofit book cover and as you can see the API breakpoint triggered and we have here our request payload which includes the description "Test123" and also the photo object. As you can see here's Retrofit.png and it actually contains a file. Fantastic. In future videos we will show you how you can upload multiple files and how to set more than just one description.
Views: 25847 Future Studio
Retrofit Tutorial — Manage Request Headers in OkHttp Interceptor
 
08:08
In this video you'll learn how you can utilize OkHttp interceptors. Interceptors are an easy way to customize every request of your app at a single place before it actually goes out to your server. Tip: turn on subtitles to deal with my accent. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-manage-request-headers-in-okhttp-interceptor Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 7548 Future Studio
Picasso Tutorial — Getting Started & Image Loading
 
07:03
In this video you'll learn about how to load images on Android with Picasso. Find the tutorials for an easy read and copy&paste code here: ►https://futurestud.io/tutorials/picasso-getting-started-simple-loading ►https://futurestud.io/tutorials/picasso-advanced-loading Watch all of our Picasso videos in a single playlist here: ►https://www.youtube.com/watch?v=0PgvPd649kg&list=PLpUMhvC6l7ANZ6TgIxUEfODVyxZiyA0pu ---------------------------------------- Our book on Picasso is also available on leanpub: ►https://leanpub.com/picasso-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 3225 Future Studio
How to Run Android Apps Against a localhost API (Tutorial)
 
01:45
In this video we're showing you how to run an Android app against a localhost API. We demonstrate a real device and an emulator approach. Tip: turn on subtitles to deal with my accent. A full transcript is available below. More information in the tutorial: ►https://futurestud.io/tutorials/how-to-run-an-android-app-against-a-localhost-api Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Full transcript: Hey, what is up everyone, Norman from futurestud.io University here. In this video I'm going to show you how to run an Android app against a localhost API. In your Android project you probably have some kind of base URL, which will resolve to your URL. Obviously, if you're running an API on your local machine, this would not work. Depending on your setup, you most likely have some kind of localhost and port address. In our case, it's localhost:3000, which we'll run our server with all the API endpoints. Obviously, you cannot use localhost in your Android app since that will resolve to nothing on the phone. The trick is to use the IP address of your computer and then the port. So in my case this is this, in your case that's most likely something else. Use the network utility to figure that out. Copy the entire address over and make that your API base URL. If your phone and your computer are on the same network, this will run everything in the app against the localhost API. Unfortunately, this doesn't work for emulators. An emulator cannot resolve the IP address or the localhost to your machine. Instead, you've use a special kind of IP address, which is 10.0.2.2. If you add the port, it'll demonstrate exactly what's on your localhost of the hosting machine. If you want to test your app on an emulator against the localhost API you've to change the IP address one more time and build the apk, run it and you can test the local API on your emulator. If you've any questions, let us know in the comments. I've linked a blog post with all the information and the IP address in the description below. If you like this video, feel free to subscribe to us on YouTube. Happy coding.
Views: 19201 Future Studio
Retrofit Tutorial — OAuth Authentication with GitHub
 
23:00
In this video you'll learn about OAuth authentication and how to implement it a GitHub app with Retrofit. Tip: turn on subtitles to deal with my accent. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/oauth-2-on-android-with-retrofit ►Retrofit Basic Authentication Video: https://www.youtube.com/watch?v=2n1Q1VYFCrM ►Retrofit Token Authentication Video: https://www.youtube.com/watch?v=by-pChg9_A4 ►Retrofit Form-Urlencoded Video: https://www.youtube.com/watch?v=fHB0yqUEMP4 Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 12945 Future Studio
Gson Tutorial — Mapping of Arrays and Lists of Objects
 
18:04
In this video you'll learn how to map arrays and lists of objects with Gson. Tip: turn on subtitles to deal with my accent. A shortened transcript is available below. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/gson-mapping-of-arrays-and-lists-of-objects The first video (Getting Started) in our Gson series is here: ►https://youtu.be/BbI8FdQOKNs See Gson in action in our Retrofit video series here: ►https://www.youtube.com/watch?v=R4XU8yPzSx0 ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Shortened transcript: In this video we will look at another important part of objects: lists and arrays. The Java implementation for lists or arrays are significantly different. Both have their advantages and disadvantages. Based on that what we're going to apply for our implementation kind of depends on the use case and also in our personal preference. The interesting thing is when it comes to Gson and JSONs: it doesn't really matter! Because from a conceptual standpoint arrays and lists are the same thing. In JSON there's no difference between arrays or lists. It's represented the exact same way. Last time we had that Restaurant model which has the name and it also had the owner and two staffs now. Let's add a list and here I'm just going to say it's a list of menu items for the restaurant, right? Obviously, this is Java.utils.List. Let's go into our main class here and start the serialization of our new model. First of all, let's create the restaurant menu item. So let's see what happens when we serialize this object. As you remember from last time we just need a new Gson instance and then we can say toJson() to get our JSON. Like we expected, but here we see that these square brackets indicate an array and in that array we have three objects. Now the objects are indicated by the curly brackets it's incredibly important that you understand the difference between the square brackets. What happens when the list is the root element? We had a nested list in the restaurant object but what happens when we pass the menu items as an object instead of the restaurant? Obviously the JSON got smaller. Here you can see that the JSON starts with the square brackets. It's indicating right away our root element is now an array. No matter if it's a root element array or the array or list is nested in an object Gson does it without any more configuration, just the regular toJSON() call. Let's go into the other direction: from a JSON with some array information to the java objects. This is the imaginary endpoint getAllFounders(). Let's try to convert this into Java objects. We passed the founderJson and now here it becomes interesting: we have the founder class, or the founder model, but that's only one out of the three right. What we expect is not a single founder class it's an array or a list of founders. What we can do is say: well we don't expect a founder class, we expect the founder-array class and that's save these. We see we have the founders array, we have three objects in it. So that worked. Basically, when you have an array or list of objects in JSON you can simply use the same function call fromJson() and pass a JSON string and then you can say it's a founder array class of that and everything works as expected. I'm going to show you how you can do the same thing if it's a list. Intuitively, you would hope that it's so it's simply this, right? But that doesn't work like that :( What we have to do is we have to use a typed token. We can simply say this is an ArrayList for example and it's of the type founder and now let's get a little funky, but you can copy and paste that pretty much into of your classes. It's always going to be the same. The next thing I want to show you is when the list or the array is not the root element. One last thing I want to mention is if you have a list or an array in that object or that object in the list is having a list in itself, so basically nested lists, that's no problem at all, either.
Views: 13417 Future Studio
Picasso Tutorial — Image Resizing, Scaling and fit()
 
06:55
In this video you'll learn how you can resize and scale images on Android with Picasso. You'll also get to know the fit() function. Find the tutorial for an easy read and copy&paste code here: ►https://futurestud.io/tutorials/picasso-image-resizing-scaling-and-fit Watch all of our Picasso videos in a single playlist here: ►https://www.youtube.com/watch?v=0PgvPd649kg&list=PLpUMhvC6l7ANZ6TgIxUEfODVyxZiyA0pu ---------------------------------------- Our book on Picasso is also available on leanpub: ►https://leanpub.com/picasso-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 5984 Future Studio
Retrofit Tutorial — How to Use Dynamic Urls for Requests
 
04:15
In this video you'll learn how Retrofit can use dynamic URLs with @Url. Tip: turn on subtitles to deal with my accent. Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-how-to-use-dynamic-urls-for-requests Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 8413 Future Studio
Retrofit Tutorial — Customizing Gson Converter
 
03:00
In this video, you'll learn about the integration of the Gson converter and also how to customize the Gson instance Retrofit is using. Read the full tutorial for easy code copy&pasting here: ► https://futurestud.io/tutorials/retrofit-2-adding-customizing-the-gson-converter Start to watch 20+ Retrofit videos in our playlist here (beginning with our getting started): ► https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2044 Future Studio
hapi Tutorial — Access and Handle Request Payload
 
04:16
You’ll learn how to access and use the request payload within your hapi app. Find the tutorials for an easy read here: ► https://futurestud.io/tutorials/hapi-how-to-access-and-handle-request-payload Watch the playlist with all hapi videos here: ►https://www.youtube.com/watch?v=-o6IxDy3pIk&list=PLpUMhvC6l7AMXP2bWhHF6UTZGseIkWUG_ ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity
Views: 1604 Future Studio
Retrofit Tutorial — Passing Multiple Parts Along a File with @PartMap
 
10:49
In this video you'll learn how to pass multiple along with a file with @PartMap: Find the tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-passing-multiple-parts-along-a-file-with-partmap Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 5298 Future Studio
Axios — Download Files & Images in Node.js
 
09:46
Axios has a convenient and modern API simplifying asynchronous HTTP request and response handling. It lets you easily download files to your local disc. Axios abstracts the complex mechanisms of downloading files. You can define your request as any other request and just need a little trick: streaming. Let’s explore how to download files with Axios in Node.js! 🔥 Code Sample on GitHub ► https://github.com/fs-opensource/nodejs-tutorials/tree/master/examples/axios-download-files Dedicated tutorial with code snippets ► https://futurestud.io/tutorials/download-files-images-with-axios-in-node-js Build your own Futureflix, within the “learn hapi” learning path ► http://learnhapi.com ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 380+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 380+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2903 Future Studio
Glide Tutorial — Getting Started & Image Loading
 
11:19
In this video you'll learn the basics of loading images on Android with Glide. Glide is a customizable library to load images, gifs and more on Android. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/glide-getting-started ►https://futurestud.io/tutorials/glide-advanced-loading Find the code of this video on GitHub: ►https://github.com/fs-opensource/android-glide-youtube-sample/tree/master/01-Getting%20Started Watch the playlist with all Glide videos: ►https://www.youtube.com/watch?v=E0YgCRnK_6c&list=PLpUMhvC6l7AO4H58YPQInQS-OHSQtFvlO ---------------------------------------- Our book on Glide is available on leanpub: ►https://leanpub.com/glide-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 8012 Future Studio
Node.js Tutorial — How to Install NPM Dependencies for Production Environments
 
01:46
This video shows you how to skip the installation of development dependencies and ship your Node.js app faster to production. Blog post with more details: ►https://futurestud.io/tutorials/how-to-install-npm-dependencies-for-production-environment Watch all of our node.js videos in a single playlist here: ►https://www.youtube.com/watch?v=s6TNwLnhppk&list=PLpUMhvC6l7AMwyuEqLPvfEtKQbdD4BJ5o ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 1979 Future Studio
Gson Tutorial — Ignore Fields with transient and @Expose
 
05:42
In this video you'll learn you can exclude and include specific properties during serialization and deserialization with the @Expose() annotation. Find the tutorial for an easy read here: ► https://futurestud.io/tutorials/gson-model-annotations-how-to-ignore-fields-with-expose Start the playlist with all Gson videos here: ►https://www.youtube.com/watch?v=BbI8FdQOKNs&list=PLpUMhvC6l7AOy4UEORSutzFus98n-Es_l See Gson in action in our Retrofit video series here: ►https://www.youtube.com/watch?v=R4XU8yPzSx0 ---------------------------------------- Our book on Gson is also available on leanpub: ►https://leanpub.com/gson-enjoy-json-deserialization-in-java ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 1727 Future Studio
Retrofit Tutorial — Optional & Multiple Query Parameters
 
11:10
In this video you'll learn how to include optional and multiple query parameters in Retrofit. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/retrofit-optional-query-parameters ►https://futurestud.io/tutorials/retrofit-multiple-query-parameters-of-same-name Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 3384 Future Studio
How to Decompile an Android App Apk (Android Tutorial)
 
06:19
Decompiling Android app apks can be insightful. In this video you'll learn a couple of ways on how to reverse from a compiled Android app apk back to the sources. Read the old tutorial: ► https://futurestud.io/tutorials/how-to-decompile-an-android-app-apk Links to the mentioned tools and resources: ► http://javadecompilers.com/ ► https://developer.android.com/studio/build/apk-analyzer.html Find all of our Android videos here: ► https://www.youtube.com/watch?v=cjNW2noShM0&list=PLpUMhvC6l7APh1GPSNpHxTiyQn9p8qazd ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 12842 Future Studio
Retrofit Tutorial — How to Download Files from Server
 
15:12
In this video you'll learn how to download files with Retrofit. We'll walk through three options on how to download files. First, we show the basics on how to download a specific file. Second, you'll learn how to download files from a dynamic URL, for example profile photos from amazon S3. Lastly, we show how you can download files asynchronously via Retrofits @Streaming option to prevent memory crashes. Tip: turn on subtitles to deal with my accent. Find the code and tutorial for an easy read here: ►https://futurestud.io/tutorials/retrofit-2-how-to-download-files-from-server Other Retrofit tutorials I mentioned in the video: ►Retrofit — How to Use Dynamic Urls for Requests: https://www.youtube.com/watch?v=PCf3_yA3-Bo ►Retrofit — Download Files with Progress Updates: https://futurestud.io/tutorials/retrofit-2-download-files-with-progress-updates Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 10087 Future Studio
hapi Tutorial — How to Use Query Parameters
 
09:37
Learn how to use query parameters on incoming requests within your hapi app. Find the tutorials for an easy read here: ► https://futurestud.io/tutorials/hapi-how-to-use-query-parameters Watch the playlist with all hapi videos here: ►https://www.youtube.com/watch?v=-o6IxDy3pIk&list=PLpUMhvC6l7AMXP2bWhHF6UTZGseIkWUG_ ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity
Views: 2004 Future Studio
Picasso Tutorial — Image Caching
 
08:24
Picasso utilizes two caches. In this video you'll learn about them and how they affect image loading. Find the tutorials for an easy read and copy&paste code here: ►https://futurestud.io/tutorials/picasso-influencing-image-caching Watch all of our Picasso videos in a single playlist here: ►https://www.youtube.com/watch?v=0PgvPd649kg&list=PLpUMhvC6l7ANZ6TgIxUEfODVyxZiyA0pu ---------------------------------------- Our book on Picasso is also available on leanpub: ►https://leanpub.com/picasso-image-loading-on-android ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2136 Future Studio
Retrofit Tutorial — Creating a Sustainable Android Client
 
14:23
Creating a sustainable Retrofit client can be a daunting task. But don't worry, in this video, you'll learn about our idea on a centralized, stable ServiceGenerator. It takes care of everything related to creating a Retrofit client, while preserving performance and efficiency. Tutorial for easy copy&paste of the code shown in this video: ► https://futurestud.io/tutorials/retrofit-2-creating-a-sustainable-android-client Retrofit Getting Started Video: ► https://www.youtube.com/watch?v=R4XU8yPzSx0&list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC More details on how to enable logging in Retrofit: ► https://futurestud.io/tutorials/retrofit-2-log-requests-and-responses ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2211 Future Studio
Glide Tutorial — Placeholders & Crossfade
 
09:48
In this video you'll learn what placeholders Glide offers and how to use Glide's crossfade animation. Tip: turn on subtitles to deal with my accent. Find the Glide tutorial for an easy read here: ►https://futurestud.io/tutorials/glide-placeholders-fade-animations Find the code of this video on GitHub: ►https://github.com/fs-opensource/android-glide-youtube-sample/tree/master/03-Placeholders%20and%20Crossfade Watch the playlist with all Glide videos: ►https://www.youtube.com/watch?v=E0YgCRnK_6c&list=PLpUMhvC6l7AO4H58YPQInQS-OHSQtFvlO ---------------------------------------- Our book on Gson is available on leanpub: ►https://leanpub.com/glide-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 4037 Future Studio
Android Studio Plugins #1 Key Promoter X
 
03:00
Learn new shortcuts dynamically as you use Android Studio with Key Promoter X. ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 380+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 380+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 670 Future Studio
How to Debug Android Apps over WiFI (without Root)
 
02:09
In this video, we're explaining how to debug your Android apps over WiFi without needing a rooted phone. Tip: turn on subtitles to deal with my accent. A full transcript is also available below. Read all the commands and more information in the full tutorial: ►https://futurestud.io/tutorials/how-to-debug-your-android-app-over-wifi-without-root Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Full transcript: Hey what is up everyone, Norman from futurestud.io University here and in this video I'm going to show you how to debug your phone wirelessly. There are few requirements. First of all your laptop in your phone need to be in the same Wi-Fi network. You need to have the adb installed and for the initial setup only, you need a USB cable. I'm going to show you everything in Android Studio, but technically you could use any regular terminal window. You probably are aware of the command "adb devices" , which will show you all the devices you're connected to. So for me, that's Nexus 5. Now the trick is to use "adb tcpip 5555". This will open a port on your phone so you can connect to it. Next use "adb connect" and then the IP address of your phone. if you don't know the IP address of your phone go to settings, about phone and then status. Once you have done that it will say you have connected to that IP address. Now if you check with "adb devices" again it will say it has two devices connected. So if we go up here to the build command and you will also see both devices. As soon as I unplug my phone via the USB cable, it's just one left connected wirelessly. I click OK, gradle will build the apk, will installed on the phone, everything done wirelessly! If you need to attach the debugger, you can do that. If you need to use the Android monitor over here. Everything works just like you used to. If you're done and you want to disconnect from the wireless device you can use "adb disconnect" and then the IP address one more time. It will say it has disconnected and if I check with "adb devices" again I have no devices attached anymore. That's all you need to know about debugging your phone wirelessly. If you want to copy and paste commands I've linked the blog post in the description below and if you liked this video feel free to subscribe to us on YouTube and happy coding.
Views: 15885 Future Studio
Retrofit Tutorial — Basics of API Description
 
11:37
In this video, you'll learn in more detail how to describe API endpoints in Retrofit. I'll introduce a variety of standard configurations you'll need for many requests. Read the full tutorial for easy code copy&pasting here: ► https://futurestud.io/tutorials/retrofit-2-basics-of-api-description Mentioned resources: ► https://futurestud.io/tutorials/retrofit-2-url-handling-resolution-and-parsing ► https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods Start to watch 20+ Retrofit videos in our playlist here (beginning with our getting started): ► https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 3175 Future Studio
Glide Tutorial — Image Resizing & Scaling
 
10:19
In this video you'll learn how you can resize images on Android with Glide. Glide offers a variety of functions to help you optimize the display of images. Tip: turn on subtitles to deal with my accent. Find the Glide tutorial for an easy read here: ►https://futurestud.io/tutorials/glide-image-resizing-scaling Find the code of this video on GitHub: ►https://github.com/fs-opensource/android-glide-youtube-sample/tree/master/02-Resizing%20and%20Scaling Watch the playlist with the first and all other Glide videos: ►https://www.youtube.com/watch?v=E0YgCRnK_6c&list=PLpUMhvC6l7AO4H58YPQInQS-OHSQtFvlO ---------------------------------------- Our book on Glide is available on leanpub: ►https://leanpub.com/glide-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 5659 Future Studio
Intention Actions in Android Studio
 
01:36
In this Android Studio Note video you'll learn about a very helpful shortcut: intention actions (Mac: option+enter, Windows: alt+enter). Tip: turn on subtitles to deal with my accent. A full transcript is also available below. Watch the playlist with all Notes here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APQNFuJaNFhBmMj5ErOpb1d ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Transcript: hey what is up everyone, Norman from futurestud.io University here and welcome to our Android Studio note series. In less than five minutes you will learn a little trick to increase the productivity every single day. Today we have intention actions. So let's get going. The shortcut for intention action is option+enter or for Windows users its alt+enter and you can use it pretty much anywhere and Android Studio will suggest you a small thing to do at that specific position. For example I have my mouse here in this contains(string). Now if I hit option+enter it will for example suggest me to extract a string resource out of it and when I hit enter it will open the appropriate menu. Now this works pretty much anywhere. So down here you have a condition where we can also hit alt+enter and it will suggest me to unwrap this if statement to suppress this error and in pretty much any situation the alt enter is the smart solution for the given problem. In particular if the IDE shows an error this little red bulb on the left side you can also hit alt enter and it will suggest you the appropriate solutions. That's it. If you didn't know intention actions before give this video a thumbs up and subscribe for more videos. Make it rock.
Views: 416 Future Studio
Retrofit Tutorial — Send Data Form-Urlencoded
 
16:27
In this video you'll learn how to send data form-urlencoded. Find the tutorials for an easy read here: ►https://futurestud.io/tutorials/retrofit-send-data-form-urlencoded ►https://futurestud.io/tutorials/retrofit-send-data-form-urlencoded-using-fieldmap Watch 20+ Retrofit videos in our playlist here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is also available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 5605 Future Studio
Retrofit Tutorial — Java Project & XML Converter
 
10:11
In this Retrofit video we'll take a different direction: you'll learn how easy it is to use Retrofit in regular Java projects (it's not just for Android!). You'll also learn how to integrate an XML converter and prepare your models for automated mapping. Read the full tutorials for easy code copy&pasting here: ► Retrofit for Java projects ► https://futurestud.io/tutorials/retrofit-how-to-integrate-xml-converter Start to watch 20+ Retrofit videos in our playlist here (beginning with our getting started): ► https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 1942 Future Studio
Product-Flavor-Dependent Permissions with Gradle
 
03:38
In this video we'll show you how to setup product-flavor-dependent permissions with Gradle. If you want to copy&paste the code, feel free to checkout the matching tutorial: ►https://futurestud.io/tutorial/how-to-implement-product-flavor-dependent-permissions ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 936 Future Studio
Send Commands in iTerm with Keyboard Shortcuts
 
02:41
iTerm is a feature rich terminal replacement. It let’s you define custom keyboard shortcuts that can automatically send commands, Like pressing “CMD + Enter” can send the "git status" command. Of course you can use any command you want. Really, ANY! Don’t type your daily commands with patience like nobody else has. Increase your productivity by using shortcuts to get a grasp on your current project status right away. Watch the playlist with all Notes here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APQNFuJaNFhBmMj5ErOpb1d ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 434 Future Studio
Android: Setup RenderScript Support Library & How to Blur Images
 
05:10
In this video, we'll show you how to add the RenderScript Support Library to your android project and how to utilize it to blur images efficiently. Read the tutorials to copy&paste the code and more background info: ► https://futurestud.io/tutorials/how-to-use-the-renderscript-support-library-with-gradle-based-android-projects ► https://futurestud.io/tutorials/how-to-blur-images-efficiently-with-androids-renderscript ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 11019 Future Studio
Glide Tutorial — Simple Adapter Use (ListView, GridView)
 
05:52
In this video you'll learn how you can use Glide to load images in ListViews and GridViews. Find the Glide tutorial for an easy read here: ►https://futurestud.io/tutorials/glide-listadapter-listview-gridview Find the code of this video on GitHub: ►https://github.com/fs-opensource/android-glide-youtube-sample/tree/master/05-Simple%20Adapter%20Use Watch the playlist with all Glide videos: ►https://www.youtube.com/watch?v=E0YgCRnK_6c&list=PLpUMhvC6l7AO4H58YPQInQS-OHSQtFvlO ---------------------------------------- Our book on Glide is available on leanpub: ►https://leanpub.com/glide-image-loading-on-android ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 330+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 2698 Future Studio
How to Automatically Format Your Code in Android Studio
 
02:08
In this Android Studio Note video you'll learn how to keep your code perfectly formatted without manual changes. Mac: Command+Option+L Windows: Ctrl+Alt+L Tip: turn on subtitles to deal with my accent. A full transcript is also available below. Watch the playlist with all Notes here: ►https://www.youtube.com/playlist?list=PLpUMhvC6l7APQNFuJaNFhBmMj5ErOpb1d ---------------------------------------- Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 320+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 320+ technical in-depth tutorials: ►https://futurestud.io Subscribe for two new videos every week: ►https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ►https://twitter.com/futurestud_io ►https://www.facebook.com/FutureStudioUniversity ►https://plus.google.com/+FutureStudioUniversity ---------------------------------------- Full transcript: Hey, what is up everyone. Norman from futurestud.io University here. Welcome to another video in our Android Studio Note series. In just a few minutes you'll learn a little trick to increase your productivity every single day. Today we've the reformat code option. Ideally, in your company or in your open source project, you've agreed on code conventions. So, sometimes developers like to have spaces between parameters, sometimes they don't. There is the discussion, should curly brackets be on the same line or on the new line? It doesn't matter to me, just make it consistent. You can configure all of these preferences in the settings. Once you've started the project, make sure everyone has the settings configured. You can even share them. Then you can use the "reformat code" option. The reformat code shortcut is command+option+L, for windows it's ctrl+alt+L. Once you've hit that it'll automatically change all the code in your class to the defined pattern. If your code conventions says there is no spaces and the curly bracket should be on the same line, it'll apply this logic. You don't need to go through it manually. Just one click of a button and it'll automatically do it across the entire file. What I recommend that you enable this option in the commit dialog. If you see up here you can enable this by default and it'll reformat the code for the commit. This makes sure that the code in the central repository is always perfectly formatted. Ideally, you can convince all of your team mates to enable this option. That was it. Thank you for watching! If you didn't know this option before, give this video a thumbs up and subscribe for more video. Make it rock!
Views: 1406 Future Studio
Retrofit Tutorial — Cancel Requests
 
06:01
In this video, you'll learn how to cancel ongoing Retrofit requests. Read the full tutorial for easy code copy&pasting here: ► https://futurestud.io/tutorials/retrofit-2-cancel-requests Start to watch 20+ Retrofit videos in our playlist here (beginning with our getting started): ► https://www.youtube.com/playlist?list=PLpUMhvC6l7APq7y_FFfK-GEHvcUKqo6SC ---------------------------------------- Our book on Retrofit is available on leanpub: ►https://leanpub.com/retrofit-love-working-with-apis-on-android ---------------------------------------- Future Studio helps 5,000+ users daily to solve Android and Node.js problems with 350+ written tutorials and videos. We’re on a mission to provide new in-depth content every week. Checkout 350+ technical in-depth tutorials: ► https://futurestud.io Subscribe for two new videos every week: ► https://www.youtube.com/c/FutureStudio?sub_confirmation=1 ---------------------------------------- Follow us on social media to get updates on new content: ► https://twitter.com/futurestud_io ► https://www.facebook.com/FutureStudioUniversity ► https://plus.google.com/+FutureStudioUniversity ----------------------------------------
Views: 1035 Future Studio