[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 wrote: > I don't see a DialogoFecha.show(); > You should call him with DialogName.show(); > > 2011/6/21 ABSOLUT > > > > > &g

[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 Dialog

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

2011-06-17 Thread ABSOLUT
nd make sure it makes sense. > > The "TODO" is there to remind about this, and shows in Eclipse's task view. > > -- Kostya > > 2011/6/17 ABSOLUT > > > Many thanks! I don't notice that :-( > > > Now I have other err

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

2011-06-17 Thread ABSOLUT
nt panel class. > > Make sure the class name is correct, and that the class is public. > > -- > Kostya Vasilyev > 17.06.2011 12:01 пользователь "ABSOLUT" написал: > > > Hi, > > I'm trying to make a custom relativelayout but when I start th

[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 inflatin

[android-developers] Re: appwidget button

2011-06-16 Thread ABSOLUT
ds, > Saurav Mukherjee. > > > > > > > > On Thu, Jun 16, 2011 at 2:55 AM, ABSOLUT 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 > > see

[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 rece

[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-develope

[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 OBJ

[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(), R.layout.widget

[android-developers] best way

2011-06-09 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 for

[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 = (Connectivi

[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 "Andr

[android-developers] Re: problem with asyntask

2011-04-29 Thread ABSOLUT
id.com/reference/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 exam

[android-developers] Re: problem with asyntask

2011-04-28 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 wrote: > I

[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 asyntask

[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: .. ... Could you help me please? -- You received this

[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 sub

[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 wrote: > David, > > Remove android:permission="internet" from inside the and > tags. >  22.04.2011 2:29 пользователь "ABSOLUT" написал: > > > > > When I Click the icon to run the a

[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] flg=0x10

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
holder = (ViewHolder)row.getTag(); } 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 wrote: > But tit is not null.

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
But tit is not null. In other function I load this function I dont have any field null for (i=0; i wrote: > My guess, variable tit is null. > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > On Wed, Apr 20, 2011 at 11:35 PM, ABSOLUT wrote:

[android-developers] Re: Scrolling in a ListView

2011-04-20 Thread ABSOLUT
View(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 wrote: > > Hi, > > > In one of my projects I've got a ListView with some elements.

[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 EXC

[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: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orie

[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 co

[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 wrote: > On Thu, Apr 14, 2011 at 11:54 AM, ABSOLUT wrote: > > Hi, > > I have an application that have a tabactivity. When I do click in any > > tab get some

[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 obtain

[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 M

[android-developers] Re: problem creating sqllite dabase

2011-04-13 Thread ABSOLUT
Many thanks On 13 abr, 18:50, Kostya Vasilyev 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 { &

[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: 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 wrote: > And does that work? :) > 09.04.2011 22:35 пользователь "ABSOLUT"

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

2011-04-09 Thread ABSOLUT
n the SDK documentation, specifically > 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 пользователь "A

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

2011-04-09 Thread ABSOLUT
t show? > > 2011/4/9 ABSOLUT > > > 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.on

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

2011-04-09 Thread ABSOLUT
en...", Toast.LENGTH_LONG).show(); final int PORT = 9; String ipStr = "221.x ... ... On 9 abr, 17:24, Kostya Vasilyev wrote: > The toast will only show after your code returns from onCreate, which it > should. > 09.04.2011 19:01 пользователь &quo

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

2011-04-09 Thread ABSOLUT
;", Toast.LENGTH_SHORT).show(); ... On 9 abr, 12:26, Kostya Vasilyev wrote: > OK. Try calling Toast from the UI thread. You can use Handler for this. > 09.04.2011 14:10 пользователь "ABSOLUT" написал:

[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 Thread.sle

[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] 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

[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: