[android-developers] onDateSet never gets called

2011-06-21 Thread ABSOLUT
Hi, I'm trying to do an DatePickerDialog with two buttons. My problem is that onDateSet never gets called. DatePickerDialog dialogoFecha = new DatePickerDialog(this, mDateSetListener , mYear, mMonth, mDay); The Buttons: dialogoFecha.setButton(PONER FECHA, new

[android-developers] Re: onDateSet never gets called

2011-06-21 Thread ABSOLUT
I don't write all the code but I have the dialogoFecha.show(); I see that never goes to the listener. On 21 jun, 13:06, Jorge Luis jorgelferr...@gmail.com wrote: I don't see a DialogoFecha.show(); You should call him with DialogName.show(); 2011/6/21 ABSOLUT davidt...@gmail.com Hi

[android-developers] Error inflating class in custum relativelayout

2011-06-17 Thread ABSOLUT
Hi, I'm trying to make a custom relativelayout but when I start the activity it fails: 06-17 09:57:23.253: ERROR/AndroidRuntime(526): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.es/com.es.KkActivity}: android.view.InflateException: Binary XML file line #4: Error

[android-developers] Re: Error inflating class in custum relativelayout

2011-06-17 Thread ABSOLUT
transparent panel class. Make sure the class name is correct, and that the class is public. -- Kostya Vasilyev 17.06.2011 12:01 пользователь ABSOLUT davidt...@gmail.com написал: Hi, I'm trying to make a custom relativelayout but when I start the activity it fails: 06-17 09:57:23.253

[android-developers] Re: Error inflating class in custum relativelayout

2011-06-17 Thread ABSOLUT
view. -- Kostya 2011/6/17 ABSOLUT davidt...@gmail.com Many thanks! I don't notice that :-( Now I have other error but I cant understand why: 06-17 11:55:19.280: ERROR/AndroidRuntime(359): FATAL EXCEPTION: main 06-17 11:55:19.280: ERROR/AndroidRuntime(359

[android-developers] Re: appwidget button

2011-06-16 Thread ABSOLUT
it. Regards, Saurav Mukherjee. On Thu, Jun 16, 2011 at 2:55 AM, ABSOLUT davidt...@gmail.com wrote: Hi I have a button in an appwidget that executes a service. These service takes time about 10 seconds. How the button doesnt have any effect it seems that you are not pressed

[android-developers] appwidget button

2011-06-15 Thread ABSOLUT
Hi I have a button in an appwidget that executes a service. These service takes time about 10 seconds. How the button doesnt have any effect it seems that you are not pressed the button. What i should to do for the button seems is doing something?. Many thanks and sorry for my english -- You

[android-developers] bottom stroke on a shape

2011-06-13 Thread ABSOLUT
Hello to all, I'd like to know if it is possible to declare stroke only for the bottom of a shape? Many thanks and sorry for my english! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] can't launch activity from my appwidget

2011-06-12 Thread ABSOLUT
Hi, I have a button in my appwidget that I would like that launch the activity. I have this in the code: public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { RemoteViews remoteViews = new RemoteViews(context.getPackageName(),

[android-developers] can't see output of ssh command

2011-06-12 Thread ABSOLUT
Hi, I'm using jsch to execute a command and then shows me the output of the command, but I cant see the ouput of command with LogCat. Could you help me please? Many thanks and sorry for my english! public String texto (String comando){ Log.d(PRUEBA, CONSULTA CRON DENTRO DEL

[android-developers] best way

2011-06-10 Thread ABSOLUT
Hi, I'm newbie programming in java and android and I have a doubt. I need check connectivity of the phone in a widget and in one activity. How would be the best way to program it? Creating a class that do the connectivity check and use it in the widget and in the activity? Many thanks and sorry

[android-developers] check connectivity from a widget

2011-06-08 Thread ABSOLUT
Hi, I have an application with a widget. I'm trying to check connectivity (if 3g or wifi is on) every update of the widget. I'm trying to put these code in onupdate method of the widget but it says me method getSystemService(String) is undefined. ConnectivityManager manager =

[android-developers] AVD specs for nexus one

2011-05-04 Thread ABSOLUT
Hi, I'm trying to set up my AVD for using like a Nexus one because I have some layout problems. I put in AVD these: Try with WVGA800 and SDK 2.1 But doesnt works!, the screen is very big. Could you help me please? -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: problem with asyntask

2011-04-29 Thread ABSOLUT
Sorry. My english is limited. I try to pura an example. Asyntask1 (When asyntask 1 finish depending of boolean result) If asyntask result is true execute asyntask 2 If asyntask result is false execute asyntask 3 These is what I want Many thanks On 29 abr, 02:48, Streets Of Boston

[android-developers] Re: problem with asyntask

2011-04-29 Thread ABSOLUT
/android/os/AsyncTask.html#onPo...) The Result is whatever is returned from AsyncTask1.doInBackground(). -- Kostya 29.04.2011 10:56, ABSOLUT пишет: Sorry. My english is limited. I try to pura an example. Asyntask1 (When asyntask 1 finish depending of boolean result) If asyntask

[android-developers] problem with asyntask

2011-04-28 Thread ABSOLUT
Hi I have a function that it consume a long time. Depending the function result there is an if condition that it executes other asyntask. The problem is that it executes the asyntasks consecutive because the first asyntask didnt finished when the code arrives to the if and launch the other

[android-developers] Center checkbox at right of imageview in relativelayout

2011-04-27 Thread ABSOLUT
Hi, I'm trying to put a checkbox at right of a imageview in the center but allways put the checkbox at left of the imageview. Mi layout is: .. ... ImageView android:id=@+id/img android:layout_width=150px

[android-developers] downloadan image from google

2011-04-25 Thread ABSOLUT
HI, In my project, I would like to download an image doing a search in google (google images), and then put this image in a textview. There is someway like an api, library or someting like thait to can do it? Many thanks and sorry for my english! -- You received this message because you are

[android-developers] Application is not installed on your phone

2011-04-21 Thread ABSOLUT
When I Click the icon to run the app. An error occurs saying Application is not installed on your phone In logcat I see: 04-21 22:00:17.711: ERROR/Launcher(128): Launcher does not have the permission to launch Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]

[android-developers] Re: Application is not installed on your phone

2011-04-21 Thread ABSOLUT
Many thanks ir works On 22 abr, 00:37, Kostya Vasilyev kmans...@gmail.com wrote: David, Remove android:permission=internet from inside the application and activity tags.  22.04.2011 2:29 пользователь ABSOLUT davidt...@gmail.com написал: When I Click the icon to run the app. An error

[android-developers] Scrolling in a ListView

2011-04-20 Thread ABSOLUT
Hi, In one of my projects I've got a ListView with some elements. But when scrolling through this list I get the following error: 04-20 17:40:23.056: WARN/dalvikvm(1061): threadid=1: thread exiting with uncaught exception (group=0x40015560) 04-20 17:40:23.116: ERROR/AndroidRuntime(1061): FATAL

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
$listaAdaptador.getView(tele. java:425) Look at line number 425 in tele.java Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com On Wed, Apr 20, 2011 at 11:13 PM, ABSOLUT davidt...@gmail.com wrote: Hi, In one of my projects I've got a ListView with some elements. But when scrolling through

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
://techdroid.kbeanie.comhttp://www.kbeanie.com On Wed, Apr 20, 2011 at 11:35 PM, ABSOLUT davidt...@gmail.com wrote: The line is:                   holder.programa.setText(tit.get(position)); But I dont know why say that is null On 20 abr, 19:48, Kumar Bibek coomar@gmail.com wrote

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
(); } holder.programa.setText(tit.get(position)); return(row); } } static class ViewHolder { public TextView programa; } I cant understand the error Any help please? On 20 abr, 20:14, ABSOLUT davidt...@gmail.com wrote: But tit is not null

[android-developers] Trying to set toggleButton at right of text view

2011-04-18 Thread ABSOLUT
Hi, I'm trying to put a toggleButton at right of a text view but AVD put the button under of textview. Could you help me please? The layout is: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

[android-developers] don't duplicate data in database

2011-04-14 Thread ABSOLUT
Hi, I have an application that have a tabactivity. When I do click in any tab get some Internet information and shows it in a ListView and then record the information in a database. Well, I would like that when I exit of the application removes the information of the database, by these way I

[android-developers] Re: don't duplicate data in database

2011-04-14 Thread ABSOLUT
Do you have reason, I would like to do with databse only for try it. Thanks On 14 abr, 12:59, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On Thu, Apr 14, 2011 at 11:54 AM, ABSOLUT davidt...@gmail.com wrote: Hi, I have an application that have a tabactivity. When I do click

[android-developers] adapterview with arraylist

2011-04-14 Thread ABSOLUT
HI, With these: super(prueba.this, R.layout.row,R.id.programa,tit); I show all items of arrayList tit. There is some way to can select some data of an arrayList which they have some pattern to show it with an adapterview. For instance, shows me with arrayadapter only the arrayList items that

[android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread ABSOLUT
Many thanks, Yes! I had the initialization during the construction and no in my TabActivity, so doen't works. One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? Thanks and sorry for my english! -- You received

[android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread ABSOLUT
Many thanks On 13 abr, 18:50, Kostya Vasilyev kmans...@gmail.com wrote: 13.04.2011 19:44, ABSOLUT пишет: One newbie question, If I would like that the SQLiteDatabase db could use in other functions, how does I initialize in the OnCreate? class MyActivity { // Declare the variables

[android-developers] how to do....

2011-04-13 Thread ABSOLUT
Hi I have an application with some tabhosts. The first time that i do click in the tabhost the app must connect to internet to get some data. I save this data in a sqllite database. Well I Would like the best way if I push other time /times the tabhost that the data will be reading from database

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
Yes, I'm sure I have: public void wakeonLan (){ . Thread.sleep(6000); contadorDormido=contadorDormido+6; Log.d(PRUEBA, No responde a ping despues de mandar el paquete magico en... + contadorDormido);

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
Yes I'm sure. I have: public void wakeonLan (){ .. while (pruebaPing(maquina)){ //MIENTR=AS NO RESPONDA A PING. DORMIMOS 6 SEGUNDOS EL PROCESO

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
abr, 12:26, Kostya Vasilyev kmans...@gmail.com wrote: OK. Try calling Toast from the UI thread. You can use Handler for this. 09.04.2011 14:10 пользователь ABSOLUT davidt...@gmail.com написал: Yes I'm sure. I have: public void wakeonLan

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
:24, Kostya Vasilyev kmans...@gmail.com wrote: The toast will only show after your code returns from onCreate, which it should. 09.04.2011 19:01 пользователь ABSOLUT davidt...@gmail.com написал: Hi again, I can't understand nothing. I'm trying to execute a simple toast when the activity

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
, does it show? 2011/4/9 ABSOLUT davidt...@gmail.com I dont understand what do you say Kostya I've installed the app in the devices but the Toast doesnt shows. The complete Oncreate is:  public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
information about threads, it does a good job at explaining this. To run networking code, create a background thread. An easy way to do it is to use AsyncTask, a generic class provided by the Android framework. 09.04.2011 20:06 пользователь ABSOLUT davidt...@gmail.com написал: I dont

[android-developers] Re: help: dont display Toast

2011-04-09 Thread ABSOLUT
Yes, everything is ok. Anyway, I didnt know that I cant use long operations inside oncreate method. I'm trying to use asyntask or thread to do these things. Thanks On 9 abr, 20:38, Kostya Vasilyev kmans...@gmail.com wrote: And does that work? :) 09.04.2011 22:35 пользователь ABSOLUT davidt

[android-developers] problem with setOnItemClickListener

2011-04-06 Thread ABSOLUT
Hi, I have a TabActivity with two tabs. They have the same listview. I have a listener that when I change of tab the listview loads differents things, by a custom adapter. I'm tying to implement click event for list item but i found that it was not responding. the listener of the tabhost is:

[android-developers] Cant refresh listview when I open activity

2011-04-06 Thread ABSOLUT
Hi, I have a tabhost with 2 tabs and inside I have a listview. When I run for first time the activity, I parse a XML from Internet and I show the results in the listview. I do these with Asyntasks. The problem that I have is when I open for fist time the application, donest shows me the listview