Android uses a centralized logging system. However you can write your own custom log statements. Log Statements To write log statements, you use use the android.util.Log class with the following methods: Log.v() Log.d() Log.i() Log.w() Log.e() Log.wtf() They are sorted by relevance with Log.i() being the least important one. The first parameter of these methods is a TAG… Read More »
This is simple, just do like this. It would be better if you do this once in the Class that extends the Application Class.
This is a simple trick in Android Studio. First you have to write the skeleton of your function like this Now to generate the comments for this function just type “/**” on top of the function and hit “enter”. You will see the comments generated for you. Now your function will look like this Leave your comments if… Read More »
Read about this from my new programming website http://codespower.com/2017/05/25/difference-between-shared-and-portable-app-in-xamarin/
This article shows how you can do simple image scaling in Android. Here I have a simple class that Scales the image. The Utility class Layout The layout which shows the image for scaling. Set the above xml as layout for the Activity. Activity Please leave your comments at the end of the post.
The popup windows is a floating container that appears on top of the current activity. Layout for PopUp Below is the layout for the popup window. Layout for Activity Create another layout for the activity activity_main.xml Implementation The activity which implements the popup.
Hi all, Today I will show you how you can implement Client-Server architecture in an Android environment. What is a socket? A socket is an interface between application and network. The socket type dictates the style of communication reliable vs. best effort connection-oriented vs. connectionless. Once configured the application can pass data to the socket for network transmission… Read More »