Home » Archives for Byron Kiourtzoglou » Page 2

Author Archives: Byron Kiourtzoglou

Byron is a master software engineer working in the IT and Telecom domains. He is an applications developer in a wide variety of applications/services. He is currently acting as the team leader and technical architect for a proprietary service creation and integration platform for both the IT and Telecom industries in addition to a in-house big data real-time analytics solution. He is always fascinated by SOA, middleware services and mobile development. Byron is co-founder and Executive Editor at Java Code Geeks.

Set File permissions in Java example

With this example we shall show you how to set file permissions with Java. This is a very important task to take into consideration when you’re working in a shared system. Although this operation is operation system specific, Java offers a generic API that you can use in all platforms. As you know in UNIX systems you can go much ...

Read More »

Construct a File Path in Java example

In this example we will see how to create a File Path in Java. The idea is very simple. You want your program to be able to create a File and store it in a particular File Path in your system. Let’s say that your program wants to create and store a file in your Home directory. The problem is ...

Read More »

Android: How to make a phone call

A very useful feature in Android is that  you can use the built in Android Application to make phone calls from inside the Application. You can also use the  TelephonyManager and a PhoneStateListener in order to monitor the phone state. For this tutorial, we will use the following tools in a Windows 64-bit platform: JDK 1.7 Eclipse 4.2 Juno Android SKD 4.2 ...

Read More »

Android: How to send Email

In Android you can use the built in Email client Application in order to send Emails from inside your own Application. You can do that by calling the built in Application using an Intent. You can create a new Intent with the Intent.ACTION_SEND argument to specify that you want to send an email with the new Activity that will be launced. ...

Read More »

Android: How to send SMS message

A very useful feature in Android is the SmsManager API which you can use to send an SMS from inside your own Application. Actually there are two way you can send an SMS from your Application: Using SmsManager API Using the build in SMS activity of Android API Using the built in Application is fairly easy, because you don’t have ...

Read More »

Java DES Encryption Decryption File Tutorial

In this tutorial we are going to see how can you Encrypt and Decrypt a file in Java, using the DES encryption algorithm. DES (Data Encryption Standard) is a block cipher algorithm. It’s one of the most basic symmetric encryption mechanisms, which means that both the encryptor and the decryptor has to know the secret key in order to perform their ...

Read More »

Java Comparable and Comparator Example to sort Objects

In Java, it’s very easy to sort an array or a list with primitive types. But you can also use Comparableand Comparator interfaces when you want to be able to short arrays or lists of your own custom objects. Let’s begin with a very simple example using arrays of primitive types: ObjectSortingExample.java: package com.javacodegeeks.java.core; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; ...

Read More »

Java Timer and TimerTask Example Tutorial

In this tutorial we are going to see how you can use Timer and TimerTask classes of the java.util package in order to schedule the execution of a certain process. The Timer class uses several flexible methods to make it possible to to schedule a task to be executed at a specific time, for once or for several times with intervals ...

Read More »

Java RandomAccessFile Example

In this tutorial we are going to see how use RandomAccessFile in order to to read an write data to a File in random positions. The RandomAccessFile class treats the file as an array of Bytes. And you can write your data in any position of the Array. To do that, it uses a pointer that holds the current position (you ...

Read More »