How to make custom tool-tip/pop-up
<p>I'm working on kind of tool-tip which I suppose has to be a custom pop-up.
The tool-tip is an image, appears ones when application is started. The image has to be shown on specific location and closed when user touches a screen and never shown again.</p>

<p>I've started with style.xml file in res/values</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;style name="CustomDialotTheme" parent="@android:style/Theme.Dialog"&gt;
&lt;item name="android:windowBackground"&gt;@drawable/hint&lt;/item&gt;    
&lt;item name="android:windowIsFloating"&gt;false&lt;/item&gt;
&lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
&lt;/style&gt;
&lt;/resources&gt;
</code></pre>

<p>in .java:</p>

<pre><code>public class ShopListActivity extends Activity {
static Activity _activity;
ListView _list;
ListView _listLocation;
ShopListAdapter _adapter;
HashMap&lt;Object, StoreRow&gt; _storesMap = new HashMap&lt;Object, StoreRow&gt;();
HashMap&lt;Object, StoreRow&gt; _storesMapLocation = new HashMap&lt;Object, StoreRow&gt;();

private Button _buttonGetLocation;
private Button _buttonSortAll;
private LocationManager _locManager;
private LocationListener _locListener;
private boolean _gpsEnabled = false;
private boolean _networkEnabled = false;
// hashmap table indication: false - use storeMap, true - use
// storesMapLocation
private boolean _loadByLocation = false;
double _longitude;
double _latitude;
Location currentLocation;
// set fonts
Typeface font;
Typeface fontBold;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.shops_view);
    // get custom fonts
    font = Typeface.createFromAsset(getAssets(), "fonts/rutz_oereg.ttf");
    fontBold = Typeface
            .createFromAsset(getAssets(), "fonts/rutz_oebol.otf");

    loadMyProductsList();

    // delete product that are older then 7 days
    deleteOldProducts();

    _list = (ListView) findViewById(R.id.list);
    _list.setDivider(null);
    _list.setDividerHeight(0);
    _list.setCacheColorHint(0);
    // for the search by location
    _buttonGetLocation = (Button) findViewById(R.id.filter_location);
    _buttonGetLocation.setOnClickListener(gpsListener);
    _buttonGetLocation.setPressed(false);
    // set custom font
    _buttonGetLocation.setTypeface(fontBold);
            _longitude = Constants.sortByPrioritiesLocation;
    _latitude = Constants.sortByPrioritiesLocation;
    _buttonSortAll = (Button) findViewById(R.id.filter_all);
    _buttonSortAll.setOnClickListener(sortAllListener);
    _buttonSortAll.setPressed(true);
    // set cunstom font
    _buttonSortAll.setTypeface(fontBold);

    _adapter = new ShopListAdapter(this, _storesMap);
    LoadStoresTask task = new LoadStoresTask();
    task.execute(new Void[] {});

    Button btnMore = (Button) findViewById(R.id.btnMore);
    btnMore.setOnClickListener(moreStoresListener);
    //set custom fonts
    btnMore.setTypeface(fontBold);

    _activity = ShopListActivity.this;
            Dialog _hintDialog = new Dialog(this, R.style.CustomDialotTheme);
            _hintDialog.setContentView(R.layout.shops_view);
            _hintDialog.setCancelable(false);
            _hintDialog.show();
}
</code></pre>

<p>It never shows up.
Maybe there is another way to create a tool-tip or appreciate any suggestion how to create a custom pop-up I need.</p>
