Answer the question
In order to leave comments, you need to log in
Why is the serialized file not being created?
final HashMapDirectory hashMapDirectory = new HashMapDirectory();
private String serializfileName = "hashmap.ser";
encrypt_btn.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
try
{
ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(serializfileName, true)); // <------------------?????
hashMapDirectory.Test(edit_login.getText().toString(), edit_pass.getText().toString());
output.writeObject(hashMapDirectory.map);
output.close();
Message("Save");
}
catch (Throwable throwable)
{
throwable.printStackTrace();
Message("ERROR");
}
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question