TravelMeds app is released!

We put the app into Google Play, it’s live!!

Our project team at Moodro and at Galanda are very excited to present TravelMeds app.

Short ad:

Travel safely and protect your loved ones. Make sure your family’s allergy information, medication information and medical conditions are with you on your smart phone when you travel to foreign countries and can be translated to foreign languages.

 

Dear Followers and Readers. I’d appreciate hearing from you. Go ahead, download the app. Give the feedback for the UI and for functionality. We believe the app is high quality and well crafted. To find, enter “TravelMeds” in the Google Play store search bar.

 

TravelMeds512

We strive for the 5 star rating. If any issues identified – I would be glad to work on it and write about overcoming these problems.

App is advertisement supported. Explore the ads, you might find an interesting product or a deal.

Take care!

–Galina a.k.a. galanda

Smartphone Configuration for Social Media Mark...

Smartphone Configuration for Social Media Marketing in Frederick MD (Photo credit: Frederick Md Publicity)

Advertisements

Preferences/Settings

Preferences (Settings) are used for storing values between sessions. These values could be save in a database but when values are just a few it can ge in preferences

1. Create

private void saveMyPreferences(String key, String value) {

SharedPreferences preferences = getApplicationContext().getSharedPreferences(A_PREFERENCES_NAME, 0);
SharedPreferences.Editor editor = preferences.edit();
editor.putString(key, value);
editor.commit();
return ;
}

2. retrieve
private String getMyPreferences(String key) {
SharedPreferences preferences = getPreferences(A_PREFERENCES_NAME);

String defaultValue=””;

English: An Inglehart-Welzel Cultural Map of t...

English: An Inglehart-Welzel Cultural Map of the World: World Secular-Rational and Self Expression Values as a map of world cultures based on World Values Survey data. Svenska: En Världskulturkarta av Inglehart-Welzel typ. (Photo credit: Wikipedia)

return preferences.getString(key,defaultValue);
}

Android textAutoComplete with prompted list

In my app I want user to be able to pick from existing list or to type in a new itemName.

Key to this functionality seems to be textAutoComplete. However setting  android:inputType=”textAutoComplete”

attribute doesn’t do anything.

Let’s see..

1. Oh, this seems to be an excellent example I should try.  http://stackoverflow.com/questions/15833149/autocomplete-text-in-android

2.  Leaving a draft, finish it one day

How to highlight item in expandable list view

When screen opens I want to have last item be highlighted and group expanded.

 

-----------------------selector_list_item.xml in drawable folder
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
   android:exitFadeDuration="@android:integer/config_mediumAnimTime">

   <item android:drawable="@android:color/holo_blue_bright" android:state_pressed="true"/>
   <item android:drawable="@android:color/holo_blue_light" android:state_selected="true"/>
   <item android:drawable="@android:color/holo_blue_dark" android:state_activated="true"/>

</selector>
----------------------- add this to my list

android:listSelector = “@drawable/selector_list_item”

————————————-

Try it:

1.

@Override
public boolean onChildClick(ExpandableListView lView, View v,
        int groupPosition, int childPosition, long id) {
    ...
// or another place
    int index = lview.getFlatListPosition(ExpandableListView.getPackedPositionForChild(groupPosition, childPosition));
    lview.setItemChecked(index, true);

    return true;
}

this didn't compile. Another option, checking for null bc during onCreate lView is still null
2. this didn't d oanything, nothing visible

if (lView != null){
((ExpandableListView)lView).setSelectedChild(selectParent,
selectChildInParent, true);
}

3.

lView = this.getExpandableListView();
int count = listAdapter.getGroupCount();
for (int position = 1; position <= count; position++)
((ExpandableListView) lView).expandGroup(position – 1);

4. NONE of these worked for me. It does nothing.

However seems like for everyone else at stackoverflow this was not a problem. Case remains open.