Re: [android-developers] Need Help--- Regarding Creating Database and Tables

2010-04-28 Thread Liviu Ungureanu
it? 2. I would like to add texts written in languages different from english. How can I do this too? Please I am really in need of these two things and quick response would be appreciated. thank you in advance --- On *Mon, 4/19/10, Liviu Ungureanu smartli...@gmail.com* wrote: From: Liviu

Re: [android-developers] AlertDialog Timeout

2010-04-22 Thread Liviu Ungureanu
Hi! You have to create a thread which count until 3 and when counter is 3 you have to call - via an handler - yourDialogObject.cancel(). Hope this help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Display routes dynamically on Map Application

2010-04-22 Thread Liviu Ungureanu
Do you know you can do that using intents and Maps Application? So what you want to do: implement a new way to get directions to an some GeoPoint inside of your applications or just use Maps? Last method is a lot easier... 2010/4/22 ~ TreKing treking...@gmail.com On Thu, Apr 22, 2010 at 1:05

[android-developers] How can I remove an item from ExpandableListView or how can I reload an single group from ExpandableListView?

2010-04-20 Thread Liviu Ungureanu
Hi! I have a ExpandableListView in my application. I want to remove an item from an group but I can't get a solution. As adapter I use an standard SimpleExpandableListAdapter. Until now, I managed to remove just data from an item but the view still remain in adapter:

Re: [android-developers] Icons for submenu items doesn't show up

2010-04-20 Thread Liviu Ungureanu
Try to use PopUpWindow http://developer.android.com/reference/android/widget/PopupWindow.htmlclass. Here you have an examplehttp://www.anddev.org/how_to_create_a_popupwindow-t1259.html . -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Need Help--- Regarding Creating Database and Tables

2010-04-19 Thread Liviu Ungureanu
Hi! I use this method to work with database: // this is my DatabaseManager class package com.liviu.app.nearbyplace.data; import java.util.ArrayList; import com.liviu.app.nearbyplace.util.Constants; import android.content.ContentValues; import android.content.Context; import

Re: [android-developers] Checking if a cursor contains a valid result

2010-04-14 Thread Liviu Ungureanu
You can try cursor.getCount() before cursor.moveToFirst(). From javaDoc: public abstract int getCount () Since: API Level 1 ../../../guide/appendix/api-levels.html#level1 Returns the numbers of rows in the cursor. Returns - the number of rows in the cursor. If getCount() is 0 that mean your

Re: [android-developers] How to bring activity to front?

2010-04-14 Thread Liviu Ungureanu
I think you cannot bring an activity to front after the activity called his onPause() method without actions from user(start your application from menu, from notification, resume it) or without starting it from an service. Maybe someone else know more but if you want to bring your activity to

Re: [android-developers] Google Search

2010-04-14 Thread Liviu Ungureanu
Hi! First, Google Local Search return the results in JSON format. This is an example link : http://ajax.googleapis.com/ajax/services/search/local?v=1.0q=Restaurant,%20loc:%2047.3,8.6hl=enrsz=largestart=1 I create my url using latitude and longitude got from GPS like this: String url =

Re: [android-developers] Problems with ViewGroup.addView()

2010-03-26 Thread Liviu Ungureanu
Why doesn't the Ori text shows up? Because: TextView t = new TextView(this); t.setText(Ori); TextView t2 = new TextView(this); t.setText(Ori2); // here you reset the text from TextView t instead of TextView t2. // TextView t2 is