How to generate public/private keypair with RSA?

I'm developing several projects which use public/private key cryptography. So, the question is simple: how to generate public/private key pair?

As for me, I use OPENSSL to generate RSA key pair. It's simple:

openssl genrsa -out mykey.pem 2048

And public key can be generated like this:

openssl rsa -in mykey.pem -pubout >

ActivityNotFoundException on Android?

I am creating a small Android client for my Master's theses. Unfortunately, I've encountered a problem: I get ActivityNotFoundException during runtime process. I just need to change the activity of my program (to show the help box). Maybe someone could give me a hint what I'm doing wrong?

My main file/activity looks like that:

package info.ernestas.uvrsclient;

Įrašų įterpimas į surikiuotą masyvą

private static void insertEntryIntoArray(int insertationIndex, int entry, int [] array) { for (int i = array.length - 1; i > insertationIndex; i--) array[i] = array[i - 1]; array[insertationIndex] = entry; } // Kodas.... int [] array = new int[5]; int numberToInsert = 7; int entriesFilled = 3; array[0] = 1; array[1] = 5; array[2] = 10; for (int i = 0; i < entriesFilled; i++) if (array[i] > numberToInsert) { insertEntryIntoArray(i, numberToInsert, array); entriesFilled++; break; } Gal kam pravers :)