adverts, Computer, computer services, Internet, Programming, school, Uncategorized, website

Projet Répertoire des écoles de la RDC en ligne

Nous sommes à l'âge de la numérisation de l'information. Dans d'autres pays cela existe déjà. Mais ici chez nous pas encore. SMIRL - IT Solution a l'intention d'y remédier peu à peu. Imaginons un instant une famille qui déménage de Kindu vers Lubumbashi. Les parents ont des enfants qui vont à l'école. Ils sont tous… Continue reading Projet Répertoire des écoles de la RDC en ligne

Advertisements
Android, Programming

How to implement custom xml attributes to a custom component, part 2 and final

If you haven't read part 1, I advise you to do so before you continue. Click here. Now, our BlinkerTextView is working nicely. This time we want to be able to set blinkRate and startBlinking from xml. We need to tell android about these custom attributes. We do so by placing a file named "attrs.xml"… Continue reading How to implement custom xml attributes to a custom component, part 2 and final

Android, Programming

How to implement custom xml attributes to a custom component, part 1

Well. Android API comes with predefined components (views and layouts) that we can use. With attributes that can be set from XML. These are android attributes. android:layout_width="200dip" But most of these predefined components are single. We may have a desire of having one composite component, the one that combines 2 or more components. For that… Continue reading How to implement custom xml attributes to a custom component, part 1

Java, Programming

How to read plain text from file using Scanner class

Java offers many classes to read plain text from files. Some are complex others simple. In this tutorial, we will learn how to use Scanner.class to read text from file. Just like we saw in the other tutorial how to save text to file using Formatter.class. Beginners use Scanner.class mostly for reading from Standard Input… Continue reading How to read plain text from file using Scanner class

Java, Programming

How to save text to file using Formatter class

There are many classes that enable us to save data to files. We know them but we ignore that possibility. They contain internal stream writer and accept a file address in their constructors. We will cover the Formatter.class that we mostly use to format our texts and numbers (including dates). We will use the constructor… Continue reading How to save text to file using Formatter class

Android, api, Programming

How to implement AlarmManager using AlarmSetter API

How to setup the AlarmManager has been so complex. For Android developers, there is this need for creating a way your app can perform some background tasks even after the app has been closed. There are times when we tell the service to sleep for a specified period of time and then wake up to… Continue reading How to implement AlarmManager using AlarmSetter API

Java, Programming

How to convert file size into reader friendly format

File size and device capacity are by default expressed in length using long number. That number is expressed in byte (B). Unfortunately, it is hard to read the size when it becomes big like 1234567890B. So you need to use their multiples to simplify the reading. Common units are B, KB, MB, GB, TB. So… Continue reading How to convert file size into reader friendly format

Android, Gradle, Programming

How to retrieve version name and version code programmatically

Need usually arises when you want to display the version name and code in you program at runtime, in About dialog or in any other places. Some programmers just hardcode them in About dialog. So each time they increase the version code and name, they need to remember to manually change everywhere in the codes… Continue reading How to retrieve version name and version code programmatically

Java, Programming

How to convert a date from one String format to another using SimpleDateFormat

In this tutorial, I will show you how in not more than 2 lines of codes I can convert from one format to another. To begin, we will start with a quick reminder for SimpleDateFormat. When creating a SimpleDateFormat object, pass in the constructor the string pattern. There are many other constructors for the SimpleDateFormat… Continue reading How to convert a date from one String format to another using SimpleDateFormat

Java, Programming

HOW TO IMPLEMENT CALLBACK METHODS IN JAVA

In my tutorial, I will use simple terms where necessary to help you grasp the logic. A callback in a larger sense of terms is like a listener. It listens to an event and reports back. In this tutorial, we will discuss callback methods rather than callback classes. In listeners case, we need at least… Continue reading HOW TO IMPLEMENT CALLBACK METHODS IN JAVA