Re: [android-developers] Drawing to MapView Incredibly Slow
try with less points??? 2010/2/9 aspekt9 aspe...@gmail.com In my app I am drawing bus routes on top of a MapView. The routes have anywhere between a dozen and a few hundred GPS coordinates that describe the route that the bus takes. The problem I'm having is that once I draw out all these lines using drawLines panning/zooming the MapView is incredibly slow (even clicking the 'Back' button takes a minute to happen). I'm not sure how relevant it is, but I put in some debug code then checked the logcat output and the MapView is repeatedly calling the draw() method of the Overlay whether anything has changed or not. This is happening several times a second and is causing a massive amount of garbage collection to happen (2-3 MB every second). Does anyone have any ideas/suggestions for a method to try and speed this up? -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: listview is getting me mad plase help
i didnt do it yet. but you can get a sample from here, i am folowing this book http://apress.com/book/downloadfile/4433 there is a zip file, extract it and navigate to FancyLists\RateList\. there you have a full and working example. please send the question to the list wo everyone can get the answer 2010/2/3 Abhi abhinay.pothuga...@gmail.com Hi David, Are you able to capture the checkbox click in the list view ?if so can you pls send me the code I am also facing the same problem as you are facing, I am having a list view with Checkbox,If user clicks on the listrow then the checkbox needs to get selected and on further click it needs to unselect Can you pls help me in solving this On Jan 31, 9:32 pm, David Fire ddf...@gmail.com wrote: SOLVED all the items in the row must be facusable=false i just put it David 2010/1/31 free1000 prwfree...@googlemail.com Just out of curiosity why do you have this in the ListView definition android:isScrollContainer=true Not saying it has anything to do with your problem,just wondering. The list knows how to scroll without this attribute being set. P On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote: hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android= http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal CheckBox android:id=@+id/RuleEnable android:text= android:layout_width=wrap_content android:layout_height=wrap_content/CheckBox TextView android:id=@+id/RuleName android:layout_width=wrap_content android:layout_height=wrap_content android:text= android:focusable=true /TextView /LinearLayout listview layout ListView android:id=@+id/Listado android:layout_width=fill_parent android:layout_height=250px android:isScrollContainer=true android:drawSelectorOnTop=false android:choiceMode=singleChoice/ListView some code public class GuiActivity extends Activity implements View.OnClickListener, OnItemClickListener{ //lista means list in spanish lista = (ListView)findViewById(R.id.Listado); RuleList = new ArrayListSMSRule(); loadRuleList(); adapter=new SMSRuleAdaptor(this,RuleList); lista.setAdapter(adapter); lista.setOnItemClickListener(this); this method is never called public void onItemClick(AdapterView? arg0, View arg1, int arg2, long id) { enable.setText(id: +id); } -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] listview is getting me mad plase help
hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal CheckBox android:id=@+id/RuleEnable android:text= android:layout_width=wrap_content android:layout_height=wrap_content /CheckBox TextView android:id=@+id/RuleName android:layout_width=wrap_content android:layout_height=wrap_content android:text= android:focusable=true /TextView /LinearLayout listview layout ListView android:id=@+id/Listado android:layout_width=fill_parent android:layout_height=250px android:isScrollContainer=true android:drawSelectorOnTop=false android:choiceMode=singleChoice/ListView some code public class GuiActivity extends Activity implements View.OnClickListener, OnItemClickListener{ //lista means list in spanish lista = (ListView)findViewById(R.id.Listado); RuleList = new ArrayListSMSRule(); loadRuleList(); adapter=new SMSRuleAdaptor(this,RuleList); lista.setAdapter(adapter); lista.setOnItemClickListener(this); this method is never called public void onItemClick(AdapterView? arg0, View arg1, int arg2, long id) { enable.setText(id: +id); } -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] listview is getting me mad plase help
my adapter hasnt any method to set a listner the first problem is i cant click on any item. i cant change the item. 2010/1/30 Sergey Ten sergeyte...@gmail.com Should setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html listener) be used instead? Also, should the activity implement AdapterView.OnItemClickListener and not View.OnClickListener? David Fire wrote: hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal CheckBox android:id=@+id/RuleEnable android:text= android:layout_width=wrap_content android:layout_height=wrap_content /CheckBox TextView android:id=@+id/RuleName android:layout_width=wrap_content android:layout_height=wrap_content android:text= android:focusable=true /TextView /LinearLayout listview layout ListView android:id=@+id/Listado android:layout_width=fill_parent android:layout_height=250px android:isScrollContainer=true android:drawSelectorOnTop=false android:choiceMode=singleChoice/ListView some code public class GuiActivity extends Activity implements View.OnClickListener, OnItemClickListener{ //lista means list in spanish lista = (ListView)findViewById(R.id.Listado); RuleList = new ArrayListSMSRule(); loadRuleList(); adapter=new SMSRuleAdaptor(this,RuleList); lista.setAdapter(adapter); lista.setOnItemClickListener(this); this method is never called public void onItemClick(AdapterView? arg0, View arg1, int arg2, long id) { enable.setText(id: +id); } -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] listview is getting me mad plase help
dud please read the problem, i am not able to seclet any item. i preatty sure the callback isnt been called because i cant select any element. 2010/1/30 Sergey Ten sergeyte...@gmail.com According to ListView class defintion (see http://developer.android.com/reference/android/widget/ListView.html), it is a subclass of AdapterView. The latter has a method setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html listener). So, you should be able to declare that your activity is implementing an AdapterView.OnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html interface and then you should be able to invoke lista.setOnItemClickListener(this); Sergey David Fire wrote: my adapter hasnt any method to set a listner the first problem is i cant click on any item. i cant change the item. 2010/1/30 Sergey Ten sergeyte...@gmail.com mailto:sergeyte...@gmail.com Should setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29 (AdapterView.OnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html listener) be used instead? Also, should the activity implement AdapterView.OnItemClickListener and not View.OnClickListener? David Fire wrote: hi i cant press any item on my listview nor in the emulator nor in a real phone. item layout ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:layout_width=wrap_content android:layout_height=wrap_content android:orientation=horizontal CheckBox android:id=@+id/RuleEnable android:text= android:layout_width=wrap_content android:layout_height=wrap_content /CheckBox TextView android:id=@+id/RuleName android:layout_width=wrap_content android:layout_height=wrap_content android:text= android:focusable=true /TextView /LinearLayout listview layout ListView android:id=@+id/Listado android:layout_width=fill_parent android:layout_height=250px android:isScrollContainer=true android:drawSelectorOnTop=false android:choiceMode=singleChoice/ListView some code public class GuiActivity extends Activity implements View.OnClickListener, OnItemClickListener{ //lista means list in spanish lista = (ListView)findViewById(R.id.Listado); RuleList = new ArrayListSMSRule(); loadRuleList(); adapter=new SMSRuleAdaptor(this,RuleList); lista.setAdapter(adapter); lista.setOnItemClickListener(this); this method is never called public void onItemClick(AdapterView? arg0, View arg1, int arg2, long id) { enable.setText(id: +id); } --(\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. --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@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --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@googlegroups.com mailto:android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com mailto:android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- You received this message because you are subscribed
[android-developers] security app avoid uninstall
hi, i am developing a security app, to track stollen devices, is there any way to make really dificult to uninstall an app? or to avoid the uninstall? thanks! David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] BroadcastReceiver and getSharedPreferences problem
hi i cant call the function getSharedPreferences from a Broadcastreceiver, it dosent compile... any idea? thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: BroadcastReceiver and getSharedPreferences problem
Solved context.getSharedPreferences() thanks david 2009/12/20 David Fire ddf...@gmail.com hi i cant call the function getSharedPreferences from a Broadcastreceiver, it dosent compile... any idea? thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] consume sms msg
hi i am able to read incoming sms but i need to delete it, if it has some text on it, and dosent be stored in the sms inbox. how can i do that? thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Fwd: Seminarios Tecnológicos e n Fundación Proydesa
mis queridos tal vez les llegue algo de proydesa aparte de hacer spam son un pesimo y asqueroso instituto de tecnologia. dan verguenza los profesores son malisimos no saben nada de nada y aparte es caro. a los inutiles de proydesa ya les habia dicho que no me manden spam esto esta con cco a todos mis contactos incluyendo a mis companeros de la facultad de sistemas y co worckers, sigan mandandome spam y seguire contandole al mundo la mierda de instituto que son enjoy -- Mensaje reenviado -- De: 03 Academia acade...@proydesa.org Fecha: 3 de noviembre de 2009 22:31 Asunto: Seminarios Tecnológicos en Fundación Proydesa Para: Estimados, Como producto de nuestro firme compromiso educativo, tecnológico y de innovación permanente hemos lanzado un conjunto de *Seminarios Tecnológicos*gratuitos con sede en nuestra Academia Regional en Capital Federal. Debido a la pronta y masiva respuesta recibida nos es grato compartirles que hemos cubierto todas las vacantes disponibles. No obstante, esta iniciativa despierta la puesta en práctica de un nuevo proyecto: hacer extensivo estos seminarios durante los semestres lectivos del año 2010 a toda la Red Proydesa. Esto representa un diferencial para la comunidad educativa ya que permite mantener actualizados los conceptos claves en el mundo tecnológico de hoy. Estamos convencidos que este éxito es un logro conjunto que indudablemente será potenciado con los próximos Seminarios. Saludos cordiales. *Fundación Proydesa* Sarmiento 930 3er piso (C1041AAT) Buenos Aires, Rep. Argentina Tel: 54 (11) 4326-4917 / 5958 / 9839 Fax: 54 (11) 4327-0180 http://www.skype.com/: academia.proydesa mailto:acade...@proydesa.org acade...@proydesa.orghttp://www.proydesa.org/ http://www.proydesa.org/ -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=ennet.giflogo_skype.gifpuntito.gif
[android-developers] create DB on install time
hi i want to create the DB when the app is installed not the first time it runs the program, how i can do that? or maybe put the DB inside the apk? any sugestion? thanks David -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Including pre-compiled 3rd party jar files to android application building it with source code
sorry but i think this is android developers, people who develop software for android plataform... and the question is for here 2009/10/21 Mark Murphy mmur...@commonsware.com Harsha wrote: Hi, I have an android application which uses 3rd party libraries(of which I don't have source code). In eclipse I can include them as external jars and build the APK without any problem. But problem arises when I try to build the application with android source code. My question is how to include those 3rd party jars in the source(in Android.mk)? Please try a different list. Questions regarding the Android source code belong on either [android-platform] (if you are contributing back to the project) or [android-porting] (if you are not). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your ()_()signature to help him gain world domination. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---