Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Sunday, April 15, 2012

version 3 of personalDictionary!

New version of PersonalDictionary, as promised with import/export function by using the SD Card.
What is new is that you can use with MultiLektor! you only have to copy the file exported by PersonalDictionary to the chapters directory of MultiLektor.

For export you have to go to the copy function, insert a name of the file and press Store, you will find this file inside the sd card in the folder of the app, the folder is named personalDictionary.

For import you have to insert the file inside the same folder and later, import by using the copy function again, but now inserting the name of the file (by hand) and pressing to export.

What you can do with MultiLektor is add new words some functions will be added during the next days (as modify, list, delete...)

Use PersonalDictionary to have access to your personal pocket dictionary where you can store as much words as you want with your own translation and access wherever you want. Now, moreover you can train and learn this words by using MultiLektor.

Still some functions are not developed but you can always open the dictionary files with any text reader for example notepad and modify the words, only try to follow the pattern:

original word=translated word
original word2=translated word2

you can insert sentences also!!!

market android (play)


Sunday, January 29, 2012

Android: Updating values when returning from another activity

The problem that I had was that when returning from an activity the list was not getting update until a keyEvent was realized.

For example, the main activity contain a list of strings that gets from a database, It is updated by using the action FillData(), and I had an activity for add new elements to the database, and another for modify or delete.

The problem was that when creating/adding/modifying the values at one of the other activities and finishing this activies (returning to the main activity) the list was not updated with the new values.

The solution of this problem is to Overrite the onResume() event, looking at the graph of http://developer.android.com/reference/android/app/Activity.html that when the event is Paused, later on is called the onResume event.

For example in my case:

@Override
public void onResume(){
      super.onResume();
      EditText searchTextField=(EditText) findViewById(R.id.searchTextField);
      fillData(searchTextField.getText());
}

I get the value from an EditText field getting the filter to use when filling the list and later call to fillData that fullfills the list.