Skip to content

Instantly share code, notes, and snippets.

@kappa7194
Created October 14, 2012 13:39
Show Gist options
  • Save kappa7194/3888628 to your computer and use it in GitHub Desktop.
Save kappa7194/3888628 to your computer and use it in GitHub Desktop.
package it.penpen.android.passphrase_generator;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_load);
Context context = getApplicationContext();
DictionaryLoaderAsyncTask dictionaryLoader = new DictionaryLoaderAsyncTask();
dictionaryLoader.execute(context);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment