**** BEGIN LOGGING AT Sun Mar 18 02:59:59 2012 Mar 18 03:04:14 guess everyone is out drinking Mar 18 03:04:19 US its st patty day Mar 18 03:10:19 Hi Mar 18 03:12:17 Please help me setting up ADT on Eclipse: http://stackoverflow.com/q/9755587/75500 Mar 18 03:29:21 shimmyw: i saw that. maybe you should try installing eclipse again too - perhaps there is something wrong with the eclipse install Mar 18 03:30:59 shit that sucks, i guess ill have to do it Mar 18 03:34:49 @pinguinux, are you on a windows box? Mar 18 03:35:02 no Mar 18 03:35:37 @louielouie are you on a windows box? Mar 18 03:35:57 @pinguinux, sry i meant louielouie Mar 18 04:21:10 what is a "radio"? Mar 18 04:27:23 therealGentleman: usually it refers to the radio chip/firmware aka "baseband" Mar 18 04:27:49 aha thank you. I had a feeling. Everywhere I look for the stock ROM all that shows up are damn radios Mar 18 04:29:08 therealGentleman: sometimes it might mean that the image you found *includes* the radio baseband, as opposed to a firmware upgrade that doesn't include one Mar 18 04:29:20 so if i open the zip I can still find the rom img? Mar 18 04:29:32 a "bundled" one might be more useful in recovering certain kinds of phones, I guess Mar 18 04:29:35 therealGentleman: possible Mar 18 04:29:39 Makes sense. Mar 18 04:29:55 I'm just trying to boot SOME kind of ROM off of fastboot so maybe I should just grab a custom like cymod or something Mar 18 04:32:56 therealGentleman: you're asking in the wrong channel... Mar 18 04:33:14 Leeds recommend any other channels? Mar 18 04:33:22 #android-root, most likely Mar 18 04:34:08 thanks Mar 18 04:42:57 Can I talk now? Mar 18 04:43:26 Anyone in here get ActionBarSherlock 4 to work recently? Mar 18 04:54:43 Anyone in here get ActionBarSherlock 4 to work recently? Mar 18 04:59:30 I am trying to convert a string of coordinates for Google maps such as "23.345345,-89.23423,0.0000"--I have split the string into an array of strings and then parsed the data into a double, GeoPoint wants two integers for long and lat in microdegrees (1E6) Mar 18 04:59:54 how do I convert the double into an integer suitable for GeoPoint? Mar 18 05:00:46 I have a tried (int) (lat*1E6) Mar 18 05:01:20 but it gives me 3.6E7 Mar 18 05:01:34 and it doesn't place the point in the correct place Mar 18 05:02:54 I do not understand how to parse something like "39.345345" into a integer that I can use in the constructor for GeoPoint Mar 18 05:03:10 can anyone help me? Mar 18 05:08:31 pikapp you realize that if you are chopping off any partial numbers you are REALLY knocking off a ton of precision in your lat/long right? Mar 18 05:08:35 like miles Mar 18 05:09:01 up to 70mi Mar 18 05:09:57 oh microdegrees Mar 18 05:13:10 http://pastebin.com/SC6JVZnp Mar 18 05:14:08 this is how I am converting the strings into ints, the strings are precise such as "52.23423", the result of my code in the Log are numbers like 3.5E7 Mar 18 05:14:21 and thus the map is imprecise Mar 18 05:25:25 is there a C compiler capable of producing byte-code for dalvik ? Mar 18 05:32:44 float lat = -23.4456f; Mar 18 05:32:44 float lng = 45.44334f; Mar 18 05:32:44 GeoPoint gp = new GeoPoint((int)(lat * 1E6), (int)(lng * 1E6)); Mar 18 05:33:58 man... looking in the markets lately Mar 18 05:34:00 its amazing Mar 18 05:34:08 there is a ton of shit, for 99c Mar 18 05:34:14 I mean shitty apps, and some good Mar 18 05:34:18 and some good apps for free Mar 18 05:34:25 seems like it'd be hard to make money in that ecosystem Mar 18 05:35:51 Say, using the NDK, can i do my entire app in plain ansi c ? Mar 18 05:36:14 now you should be able to Mar 18 05:36:21 before you had to use jni and shit Mar 18 05:36:35 oh, starting with which version ? Mar 18 05:37:27 I dont know Mar 18 05:37:54 ok, thanks though :) sounds like i dont have to touch java Mar 18 05:37:57 I got the impression it was like v13, but also seemed like they were saying that would be back ported Mar 18 05:38:18 appreciated Mar 18 05:42:41 every since google play store auto updated n replaced android market it forces close everytime, "the application google play store (process com.android.vending) has stopped unexpectedly. Please try again" , I tried uninstalling/reinstalling.. uninstlaling, installing android market 3.47. I also tried using rom manager and "FIX PERMISSIONS" and still does not work (htc evo shift running Mar 18 05:42:41 cyanogen 7.1 speedy)..any ideas? Mar 18 06:21:11 any idea how I could debug a "Library not found" error? how could I get a more descriptive error message? Mar 18 06:21:19 * jni library Mar 18 06:28:32 pandrew - you deploy via adb? Mar 18 06:28:41 is this custom hardware or something known? Mar 18 06:28:55 usually the .so dont get installed correctly or its a naming prob Mar 18 06:33:32 hello all Mar 18 06:37:28 anyone familiar with postgis? Mar 18 06:38:32 small job - happy to pay Mar 18 06:45:33 ron_frown: I solved it. it looks like my problem was related to this thread: http://groups.google.com/group/android-ndk/browse_thread/thread/735334a01fc9df86/ff4a938f5d381b7c Mar 18 06:45:59 ron_frown: when one shared library wants to access symbols from another shared library Mar 18 06:46:22 i'm curious in which version of android this was fixed Mar 18 06:51:21 Any good recommendations for android app source code I can stare at? I feel like my code is messy, and I want to see how other people structure their code Mar 18 06:51:53 if theres any tricks i dont know about, etc Mar 18 06:54:25 abstract, honestly I've learned a lot from android apps Mar 18 06:54:30 eg, googles source Mar 18 06:55:47 yeah I'm browsing around github Mar 18 06:56:19 should look at the google stuff too Mar 18 06:59:40 jesus... do i have to identify every time I enter the channel? Mar 18 07:00:36 anyways developer.android.com/resources has a decent amount of pretty simple sample code Mar 18 07:02:26 AbstractClass: check out the Google IO app source Mar 18 07:02:46 http://code.google.com/p/iosched/ Mar 18 07:03:03 Yeah I just got that one Mar 18 07:03:03 thanks Mar 18 07:03:32 great Mar 18 07:07:35 how do you all come up with "practice applications" to code to help you learn? I'm looking for something thats not to hard to try myself on Mar 18 07:09:14 PattyMacky just build something that owul dhelp you out Mar 18 07:09:21 then release in app store, because chances are, it'd sell Mar 18 07:09:29 I build some badass shit, for my employer Mar 18 07:09:34 cant come up with my own ideas =) Mar 18 07:10:06 haha i think i'm a little too new to develop some badass shit Mar 18 07:10:23 yeah its hard for me to figure out a project that is doable for my skill level Mar 18 07:11:27 ron_frown: same here, I'm too busy writing code for other people Mar 18 07:11:37 not too busy Mar 18 07:11:49 just cant come up with ideas Mar 18 07:11:59 ron_frown: hah, yeah, that's a problem too :) Mar 18 07:12:47 PattyMacky: start with something that can make your day to day life easier Mar 18 07:12:54 PattyMacky: I like to browse around for interesting datasets. It's a lot easier to come up with ideas if you've got a bunch of cool data to play with. Mar 18 07:13:20 http://www.civicapps.org/ Mar 18 07:13:26 http://www.data.gov/opendata Mar 18 07:13:54 then http://www.programmableweb.com/ is your friend Mar 18 07:41:41 anyone here that has experience with abs 4.0? Mar 18 07:42:01 i imported all of the sherlock classes and keep getting errors on my getMenuInflater(); Mar 18 07:42:12 i made sure to use android.support.v4.view* imports Mar 18 07:42:39 when I try to inflate my menu in onCreateOptions Mar 18 07:44:05 I thought it changed how you were supposed to use abs now Mar 18 07:44:13 eg, was completely separate Mar 18 07:44:53 what do you mean? Mar 18 07:47:04 I thought it wasnt necessarily tied to compat lib Mar 18 07:47:09 I dont know Mar 18 07:47:17 I could have sworn you and I were talking about that Mar 18 07:48:39 ya, im having issues with inflating menu Mar 18 07:50:39 the stuff I am building wasnt using menus anyway Mar 18 07:51:12 until I found out that the DPI stuff in android os is kind of just an arbitrary multiplier Mar 18 07:51:26 eg, shit wasnt fitting ont he screen so all menu items would never show up Mar 18 07:51:35 because it was on extremely low res display Mar 18 08:01:58 QubeZ - just im the shit out of jake Mar 18 08:02:00 haha Mar 18 08:02:15 what? "shit out of jake"? Mar 18 08:37:51 anyone who is running stock ics 4.0.4 pm me Mar 18 08:46:36 hi all Mar 18 08:46:52 what's the suggestion for a view to draw a 2d grphic in realtime ? Mar 18 08:49:05 aLeSD: surfaceview Mar 18 08:50:04 it's not possible to draw realtime gfx in another view than surfaceview Mar 18 08:55:15 mmm... I have a doubt Mar 18 08:55:19 (as ususal) Mar 18 08:56:25 I have some threads that are doing some stuff on the points I have to draw. Then I want to send the data to the views and redraw which have new data . Which is the best pattern ? Mar 18 08:57:07 maybe I have to create a game loop on the main thread Mar 18 09:10:14 aLeSD: use a gameloop.. i think there is a sample thats doing just that in the sdk... lunarlander Mar 18 09:16:03 add loading dialog with progress bar Mar 18 09:16:19 pork and beans Mar 18 09:16:26 jakob|, ok thanks Mar 18 09:45:00 do I have to use an handler postdelayed loop for drawing ? Mar 18 09:45:17 I mean ... a while will lock the main thread Mar 18 09:45:28 hi Mar 18 09:45:40 Ugh. Android is both impressive and frustrating to code for. :/ Mar 18 09:46:29 I have three pages on a pager with instantiateItem, how can refresh dynamically the pages on the sides ? Mar 18 10:23:19 Anyone here use libgdx? Mar 18 11:07:05 how could tell a View to redraw itself ? Mar 18 11:09:23 aLeSD: invalidate it? Mar 18 11:17:41 Leeds, thanks Mar 18 11:17:58 I just finished the arch of my app ... yeah ! Mar 18 11:44:09 so if I use Google API to do something, what do I have to worry about concerning the enduser's phone? Mar 18 11:44:26 any person can make use of my activity? Mar 18 11:46:40 they all have google api don't they Mar 18 11:57:39 is there a way to make the views in a tablelayout perfectly rectangular even when columns are shrinked? Mar 18 11:57:42 or expanded Mar 18 11:57:52 perfectly square even Mar 18 12:58:09 hey guys Mar 18 12:58:37 http://www.youtube.com/watch?v=14dOICbwSIs Mar 18 12:58:52 now create something! Mar 18 12:59:10 i got a problem with my SQL-db ... http://pastebin.com/q43inV1k ... i'm basically trying to add one to the value stored in that specific row&column but all i get is just "1" no matter how often i call this method Mar 18 13:00:15 well, check the value before you add 1 Mar 18 13:00:18 and obviously it will be 0 Mar 18 13:00:27 so your parse is failing Mar 18 13:00:36 well, probably not failing, but you are doing something wrong Mar 18 13:01:25 i know i do and i checked the value before and after ... but where is that stupid mistake? Mar 18 13:01:52 first trace the value before you parse to int Mar 18 13:01:55 make sure it is the number you want Mar 18 13:02:00 in string format Mar 18 13:02:04 don't assume that it is correct Mar 18 13:03:21 ok Mar 18 13:04:10 03-18 12:53:19.353: I/System.out(592): Playerstats - updating (temp_total:0--- getString:0 Mar 18 13:04:10 that's what i get ... so the getString is "0" as a string ... and Temp_total also Mar 18 13:04:24 i guess i'm not updating it correct Mar 18 13:04:30 :) Mar 18 13:04:50 learning to effectively debug is about as tricky as learning basic programming Mar 18 13:05:00 true ;) Mar 18 13:06:49 so you don't have an idea where my mistake is hidden? Mar 18 13:11:14 should I use a broadcast listener to execute a function of a parent class ? Mar 18 13:16:08 if you uninstall an app, does it remove the database as well? Mar 18 13:17:01 Surfer2010, I am assuming this is doing work on a row that already exists in the DB? Mar 18 13:17:17 yes Mar 18 13:18:04 kevwilde: yes, unless you use the adb option to tell it not to Mar 18 13:20:31 Surfer2010, Have you tried using the query method, instead of update, just for troubleshooting purposes? Also, have you check to make sure temp_total is actually being incremementeed before the update? Mar 18 13:22:40 eniacpx: here is the query for finding the "player" = row i need to update Mar 18 13:22:41 http://pastebin.com/KpfNxXKs Mar 18 13:22:53 Surfer2010, sorry not query, execSQL Mar 18 13:23:05 And just hadn coding the update statement Mar 18 13:23:10 hadn=hand Mar 18 13:23:34 what do you mean eniacpx Mar 18 13:24:36 Surfer2010, use execSQL instead of update to see if you can get it to update that way. There's no reason the update method shouldn't work, but it is something you could try. Mar 18 13:25:10 but using the execSQL i need to "recreate" the entire db don't i ? Mar 18 13:25:55 Leeds: how can i check which columns are in my table without rooting it? Mar 18 13:26:07 i get an "unknown columns in projection" error Mar 18 13:27:29 Surfer2010, No, execSQL is just a way to manually run a query of your choice. You can use it to create a database, but you could also use it to run an update query. Mar 18 13:28:42 did i do any syntax-error in the update? Mar 18 13:28:47 unsreDatenbank.update(DATABASE_TABLE2, cvAddStat, KEY_ROWIDS + "=" + rowID, null); <--- Mar 18 13:29:28 Why are the icon sizes recommendation different from those in the downloadable pack for the action bar ? Mar 18 13:30:45 Surfer2010, It looks fine, and I am not sure why it wouldnt work that way. I am not sure if you answered this, but did you check to see if temp_total was being incremented properly before the update? Mar 18 13:31:53 i don't know how to use the debug mode in eclipse but i "system.out-printed" it before and after adding 1 Mar 18 13:32:09 before it was 0 just like the string i'm getting Mar 18 13:32:12 and after it was 1 Mar 18 13:33:16 Surfer2010, What about printing out "columnscompleteStats[target]"? Does that return what you would expect? Mar 18 13:33:18 The recommendations for hdpi is 36x36 px but in the files downloded from the designer's guide they're 48x48 px. Mar 18 13:33:49 yes Mar 18 13:34:13 oh wait Mar 18 13:34:26 it is returning Mar 18 13:34:58 attack_attempt <--- this Mar 18 13:35:10 public static final String KEY_AT_A = "attack_attempt"; <---- but i need "KEY_AT_A" don't i ? Mar 18 13:36:04 or is that the same = doesn't matter which i use Mar 18 13:36:59 Surfer2010, What is the actual column in the data called? Mar 18 13:37:07 "attack_attempt" Mar 18 13:37:09 ? Mar 18 13:37:31 sorry I menat column in the database Mar 18 13:37:45 menat=meant Mar 18 13:37:55 wow I cant type this morning. Mar 18 13:38:03 the column is called "KEY_AT_A" Mar 18 13:38:25 Surfer2010, Theres your issue then. Mar 18 13:38:30 can I use BroadcastReceiver without having to write "public class MyApp extends BroadcastReceiver" ? Mar 18 13:39:10 but columnscompleteStats is actually having all those Mar 18 13:39:11 String[] columnscompleteStats = new String[]{ KEY_ROWIDS, KEY_ROWIDP, KEY_OPP, KEY_GDATE, KEY_GSET, Mar 18 13:39:11 KEY_AT_A, KEY_AT_P, KEY_AT_N, KEY_AT_F, KEY_RC_A, KEY_RC_P, KEY_RC_N, KEY_RC_F, Mar 18 13:39:11 KEY_DF_A, KEY_DF_P, KEY_DF_N, KEY_DF_F, KEY_BL_A, KEY_BL_P, KEY_BL_N, KEY_BL_F, Mar 18 13:39:11 KEY_SE_A, KEY_SE_P, KEY_SE_N, KEY_SE_F }; Mar 18 13:39:26 mhh Mar 18 13:39:56 Surfer2010, Send me the code you used to create the database Mar 18 13:40:39 no, paste here everything. Mar 18 13:41:31 http://pastebin.com/Jq3C5vTW Mar 18 13:43:59 anything missing eniacpx ? Mar 18 13:44:07 I am not sure then. Everything looks fine. Mar 18 13:44:16 mhhhh :( Mar 18 13:44:21 Surfer2010, Not what you wanted to hear, but I can't see an issue. :( Mar 18 13:45:57 damn ... :( Mar 18 13:46:13 i hope anyone else can find something? Mar 18 13:46:23 any idea what to check eniacpx Mar 18 13:46:56 Surfer2010, read through this in the meantime to see if you can find anything you missed: http://www.vogella.de/articles/AndroidSQLite/article.html Mar 18 13:47:20 Hi all. I'm thinking about doing my first android app based on an app I found on Linux: a python script that finds a mms url and launches mplayer with this url. Would it be possible to have my app computing the mms url and launching vplayer and make it open this url. Is it possible to control an other app? Mar 18 13:47:45 Surfer2010, Wish I could be more help! Gotta go though. Mar 18 13:48:19 thanks a lot anyway eniacpx Mar 18 13:49:26 frikinz, read this: http://developer.android.com/guide/topics/fundamentals.html especially read and THINK about the section on Activities. That should answer your questions. Mar 18 13:50:17 I've got a horizontalScrollView with 5 tabs in it. I want the horizontalScrollView to scroll to to the middle so the 3rd tab ist centered......this doesn't work in onResume or onCreate...what can I do to pre scroll befoer the user interacts with my widgets? Mar 18 13:50:38 Surfer2010, No problem, I will back later, if you are still here I'll check in and see if you found your solution. Mar 18 14:02:12 A sub-class knows the context of its parent class, now, I can I execute a method that's in the parent class from the sub-class ? Mar 18 14:02:32 do I need to pass something else than the context ? Mar 18 14:06:25 maxagaz, is the method private in the parent class? Mar 18 14:06:52 jeppy: I can make it private... Mar 18 14:07:41 no I was going to say that's why Mar 18 14:08:30 it should be visible to the child class if it is declared protected or public Mar 18 14:08:48 jeppy: it's public Mar 18 14:09:00 and the child class cant see it? Mar 18 14:09:09 that makes no sense Mar 18 14:09:15 jeppy: it seems it can't Mar 18 14:09:24 use a pastebin Mar 18 14:09:39 jeppy: I'm trying parentContext. but it's not listed Mar 18 14:10:11 you should be able to access it without any prefix Mar 18 14:11:26 jeppy: without a prefix, I get: The method setViewData() is undefined for the type ViewPagerAdapter Mar 18 14:11:49 use a pastebin Mar 18 14:12:55 is it normal that i have duplicate A & AAAA records? Mar 18 14:14:03 why is my container view always null :( Mar 18 14:19:18 jeppy: http://pastebin.com/X8yRAjyM Mar 18 14:19:38 jeppy: I cleaned it to make it more clear Mar 18 14:20:52 when launching an activity, I get that it's made to be attached with a debugger, why is that? Mar 18 14:21:02 jeppy: the two classes are in separate files Mar 18 14:21:02 it launches in debug mode, that is Mar 18 14:23:23 hey y'all. if i'm using MediaPlayer to play a sound in my app, how do i go about have the sound continue to play on orientation change? right now the currently playing sound gets stopped on rotation... Mar 18 14:26:48 jeppy: seems I have to use public static Mar 18 14:33:28 how to use findViewById in a public static method ? Mar 18 14:36:49 I added a drawable to the folder and refreshed, now I see it in the project's folder but I try to access it, it isn't there Mar 18 14:36:59 I've already imported my own R, and I can access other drawables.. Mar 18 14:37:14 ah, just needed clean Mar 18 14:40:15 alright, so all of this is now implemented in my project, http://developer.android.com/resources/tutorials/views/hello-mapview.html Mar 18 14:40:46 but the point of my activity is that upon entering it, you get to see that android marker on the location where the user is in Mar 18 14:41:02 I don't want to set the geopoint manually, I want it to be determined and set to the overlay and then displayed Mar 18 14:44:02 anyone here to help me with that update Method of SQL ? Mar 18 14:44:30 i tried about everything but can't get it to work for some reasons Mar 18 14:44:51 hi Mar 18 14:44:56 I have trouble installing the USB drivers. It says in the AVD that I installed google usb drivers under extras but i have no catalogue extras under C:\Program Files (x86)\android\android-sdk\ Mar 18 14:45:00 don't ask to ask, just paste the stack trace and problem description and someone will answer if they know Mar 18 14:47:06 http://pastebin.com/CzfP44zG this is my method trying to "add 3" to the value in that column+row ... but it's not working Mar 18 14:47:18 readme: dataja Mar 18 14:47:38 onr: =O =O Mar 18 14:48:01 I think I will use InetAddressLocator to find the location and then send it to the geopoint Mar 18 14:49:28 Surfer2010: http://developer.android.com/reference/android/database/Cursor.html#getColumnIndex(java.lang.String) Mar 18 14:49:33 don't hard code your column indexes Mar 18 14:49:34 use that method Mar 18 14:49:52 the code likely has multiple problems, so I can't tell you why it doesnt' work definitively Mar 18 14:50:10 I'm new too android developments, java. How can i make a "button" onclick link to another layout? Mar 18 14:52:37 i had variables in that before but with those it didn't work so i thought i will tryit with the "numbers" Mar 18 14:53:14 Aha2Y: Have the onClick do a setContentView(R.layout.other) Mar 18 14:54:48 Surfer2010: you should get it to work every time if you use the getColumnIndex method to resolve the column name to an index. Mar 18 14:54:54 it will also work when you change the schema, of course Mar 18 14:55:44 also you've got to close those cursors Mar 18 14:55:46 you're leaking two cursors Mar 18 14:56:31 also relying on position 143 to be there is not wise--- check getCount() first Mar 18 14:56:56 my recommendation at this point would be to find a good example and copy it Mar 18 15:00:03 readme: this is the example i used and my code (before i simplified it to find the error) http://pastebin.com/NQXdwHUh Mar 18 15:01:11 can someone tell where extras installs on windows? it says I installed but i cant see it under android\android-sdk Mar 18 15:01:33 target is an int so i don't need to resolve the column name do i ? Mar 18 15:02:59 I was able to find the locale from InetAddressLocater..but I need to formulate that into geopoints... Mar 18 15:05:35 How can i make a onclick event whih directs to another layout Mar 18 15:05:43 i know onClick do a setContentView(R.layout.other) Mar 18 15:05:48 :/ Mar 18 15:11:08 Aha2Y: swapping layouts is not necessary anymore because we have Fragment Mar 18 15:11:16 use Fragments Mar 18 15:11:25 you can use the compat lib for 2.x Mar 18 15:11:33 fragments? :o Mar 18 15:11:41 learn or be left in the dust bro ;) Mar 18 15:11:45 read on d.android.com Mar 18 15:12:06 i'm using a android 2.2 phone btw, it supports fragments? Mar 18 15:17:12 i am designing an app which somewhat resembles as a dictionary, i am reading a complete text file and populating it inside a Arraylist and when its done, display the listview but there is a lot of delay due memory read... what design changes should i make to reduce the delay ?? Mar 18 15:24:02 how to access my class'findViewById from a public static method which is inside ? Mar 18 15:24:20 you can't Mar 18 15:24:23 it's...static Mar 18 15:24:29 hence there is no instance of the class Mar 18 15:25:33 canadiancow: but if my method isn't static, then I can access it from another child class (in its own file), even by passing it the context Mar 18 15:26:03 canadiancow: sorry, "can't" Mar 18 15:26:18 so, short answer: you don't understand object oriented design Mar 18 15:26:25 and i'm in a rush, or i would give you some pointers Mar 18 15:26:54 canadiancow: ... Mar 18 15:28:07 canadiancow: this only other way I see to do it is using broadcast receiver Mar 18 15:31:40 what are the types you can pass via JNI? Mar 18 15:31:58 * hackkitten would like to do protocol processing with the NDK Mar 18 15:32:22 I'd need to pass a byte array and a structure or something with the parsed data Mar 18 15:32:25 anyone deving on win7? Where does usb drivers install? i cant find the \extras\ folder evn though the AVD manager says i installed it Mar 18 15:32:31 * hackkitten is on Win7 Mar 18 15:33:15 jackkiteen: I have the sdk under C:\Program Files (x86)\android\android-sdk\ but i cant find extras\ under there Mar 18 15:33:28 jackkiteen->hackkitten Mar 18 15:34:01 hey it's a hackkitten Mar 18 15:35:48 hi Snuffel :) Mar 18 15:35:59 can you help me? Mar 18 15:36:17 MaybeJust > I seem to recall downloading the USB drivers separately Mar 18 15:36:34 IIRC it's listed on the docs site Mar 18 15:37:27 http://pastebin.com/iAA5rWJt what do i wrong :< Mar 18 15:37:36 MaybeJust > http://developer.android.com/sdk/win-usb.html Mar 18 15:38:07 getting "The method onClick(void) is undefined for the type TafelsHelperActivity" Mar 18 15:38:10 MaybeJust > also http://developer.android.com/sdk/oem-usb.html Mar 18 15:38:37 Aha2Y: compat lib Mar 18 15:38:46 ? Mar 18 15:38:53 google "android compability library" Mar 18 15:39:00 for having fragments on 2.x Mar 18 15:41:28 Hi all! I have a problem with cloning android kernel git repo. According to instructions http://source.android.com/source/building-kernels.html I executed command 'git clone https://android.googlesource.com/kernel/common.git', but in the working directory appears nothing but .git directory. No sources. Any suggestions what was wrong? Mar 18 15:49:20 what is the root of findViewById ? Mar 18 15:49:37 (...).findViewId Mar 18 15:53:28 It's a method on an activity Mar 18 15:53:39 or on a view Mar 18 15:53:47 /layout Mar 18 15:54:05 Ah yeah, or that :) Mar 18 15:56:39 Guys, which version of eclipse is recommend for android development? Mar 18 15:57:35 hi, I just updated my app where I simply added a button to my action bar, however, I now got an error report saying: java.lang.NoSuchMethodError: android.view.MenuItem.setShowAsAction Mar 18 15:58:10 I reckon setShowAsAction was introduced in Android 3.0 or something, but is there a way to use it without blocking off Android 2.3 and older? Mar 18 16:13:44 Untouchab1e: if you're not supporting 1.6 i think you can get away with just not calling setShowAsAction if Build.VERSION.SDK_INT is below 11 Mar 18 16:13:50 veeti: NoSuchMethodError fixed it Mar 18 16:13:59 but thanks Mar 18 16:17:15 <`z> k night bitches Mar 18 16:18:02 how do i tun SDK Manager.exe from tje command prompt, it dosnt seem to work the space between SDK and Manager Mar 18 16:27:09 if I pass the context of a class to another, can I access its variables ? Mar 18 16:27:16 from its context Mar 18 16:29:18 maxagaz: no, you can only access the context's public members Mar 18 16:29:29 if you want to access a class's public members, then pass the class. Mar 18 16:29:39 (the object, that is) Mar 18 16:29:48 readme: how to pass it ? Mar 18 16:29:52 "this" Mar 18 16:31:50 readme: I'm already passing "this" with "ViewPagerAdapter adapter = new ViewPagerAdapter(this)" Mar 18 16:32:30 readme: and getting it back with: public ViewPagerAdapter(Context context) { this.outerContext = context;} Mar 18 16:33:44 readme: I guess I misunderstood something, but I can't see what Mar 18 16:35:32 Hi Everybody! Mar 18 16:42:13 hi Mar 18 17:04:37 hi. Umm, Im not getting the Google APIs option for 4.0 in my SDK Manager. ANy idea why? Mar 18 17:05:13 I do have 4.0 SDK platform and the system image installed... Mar 18 17:06:33 anyone here... Mar 18 17:09:21 SQL, I'm using SQLite.execSQL. The generated error is "android.database.sqlite.SQLiteException: near "ORDER": syntax error: , while compiling: DELETE FROM scores WHERE diff=0 ORDER BY time DESC LIMIT 5; Mar 18 17:09:21 " Is this not a valid command? I'm looking all over the DQLite site, and it all adds up to me. Mar 18 17:10:33 what is the best way to have an INTEGER PRIMARY KEY AUTOINCREMENT reset at a db ? Mar 18 17:10:58 i can delete all the rows ... in the table but how do i "reset" this Primary KEy? Mar 18 17:11:02 Im not getting the Google APIs option for Android 4.0 in my SDK Manager. Can anyone please help? Mar 18 17:11:53 in this: tvComment.setText(R.string.comment_green); can I replace green by a String variable ? Mar 18 17:12:17 Uhh, yeah.. Mar 18 17:12:41 ((View)Object).setText(String text); Mar 18 17:13:24 R.string.*string_name* is just a "final static" variable. Mar 18 17:13:38 "final stati cString"* Mar 18 17:15:08 jeebs: sorry, not sure to understand the syntax to use Mar 18 17:15:19 jeebs: what would it be for my example ? Mar 18 17:21:54 Im not getting the Google APIs option for Android 4.0 in my SDK Manager. Can anyone please help? Mar 18 17:22:06 Applify: have you installed it? Mar 18 17:22:11 How do you declare an unsigned integer in Android/Java Mar 18 17:22:23 yes i have 4.0 installed Mar 18 17:22:26 Applify: wait, its not *in* your list? Mar 18 17:22:35 google apis is a separate package Mar 18 17:22:37 thats the problem Mar 18 17:22:44 having 4.0 installed does not mean google apis for 4.0 is installed Mar 18 17:22:45 it wont even show if i can download it or not Mar 18 17:22:55 it's there.. sometimes it is hard to see. Mar 18 17:23:01 Yes i know. I have 4.0 installed. Now i want its google api Mar 18 17:23:59 Been searching for it for hours :| Mar 18 17:24:51 Applify: post a screenshot of what you see under your 4.0 in sdk manager Mar 18 17:25:08 you may need to just refresh it or try exiting eclipse then loading sdk manager again so it pulls latest sources Mar 18 17:25:33 Applify: http://s16.postimage.org/46j6whxj7/2012_03_18_132351_655x458_scrot.png Mar 18 17:25:36 that's where it should be Mar 18 17:26:32 ill just post a screenshot Mar 18 17:27:43 it does say update available for the sdk platform and syustem image Mar 18 17:27:52 but i gues it should still show the google api Mar 18 17:28:20 you are probably filtering it out with the spinner at the lower right side of the sdk manager. Mar 18 17:28:24 i mean, lower left Mar 18 17:29:28 http://s15.postimage.org/vls6jzqwr/Untitled.png Mar 18 17:29:31 are there any good tutorials for ABS? I followed the default setup and all my menu items are (well 2 of them fit into action bar) but rest are not visible because of putting "ifRoom" into the xml. How do I get the expanded list from one icon? Mar 18 17:32:22 readme: saw the image? Mar 18 17:32:56 Applify: 1 sec Mar 18 17:34:49 Applify: does anything show up if you try playing with those checkboxes? Mar 18 17:35:13 yes but nothing for 4.0 Mar 18 17:35:28 readme I finished the design arch Mar 18 17:35:30 :) Mar 18 17:35:32 try top menu, packages -> reload Mar 18 17:35:33 it works Mar 18 17:35:35 aLeSD: awesome4 :) Mar 18 17:36:06 what happens in the long running tasks Mar 18 17:37:08 readme: tried. still the same. Mar 18 17:37:29 I think ill have to manually download it and place it at the right place... Mar 18 17:38:34 Applify: this has happened to me before, but it's one of those things you can't really reproduce so your bug will just be ignored. Mar 18 17:38:49 :| Mar 18 17:39:13 yea..unfortunate.. Mar 18 17:40:02 thx for the help though.. Mar 18 17:41:46 In the motion sensors tutorial for the accelerometer, they use a constant called alpha as a low-pass filter. "Alpha is calculated as t / (t + dT) where t is the low pass filters time-constant and dT is the delivery rate. Am I right to think that dT is for the sake of an example, 20, and the time constant is ms? So if I was getting 20 readings per ms, the equation would be (1 / ( 1 + 20)) ? I'm not sure I understand this. Mar 18 17:42:25 obviously its theoretical, but if someone could frame it as a concrete example I'd understand it better Mar 18 17:45:17 How would i remove a old/broken device that i no longer own from android market/google play? Mar 18 17:48:40 I am having a difficult time with a custom view. The whole idea is to present the user with a clock and ask questions based on the current time, everything displays fine but I am unable to change the time and have it reflect on my custom view. Any help would be greatly appreciated. http://pastebin.com/EDUPEmbC Mar 18 17:49:31 QubeZ: it uses the physical menu button for overflow Mar 18 17:50:47 ntr0py: your google account is tied to the market, not the device Mar 18 17:50:59 ntr0py: your google account can be re-used on another device and you won't lose any apps. Mar 18 17:51:08 this channel is for development talk though. please go to #android next tiem. Mar 18 17:52:18 readme: This channel isn't just for sdk development, right? Mar 18 17:52:53 flyguy97: it Mar 18 17:52:58 is mostly appdev Mar 18 17:53:08 readme: yes i know, problem is i did a factory reset to the device i no longer own (returned it to the hardware store), but it still shows up in the list of my devices and i am unable to remove it! Mar 18 17:53:11 excellent, thanks Mar 18 17:54:25 ntr0py: http://groups.google.com/a/googleproductforums.com/forum/#!topic/android-market/M1lNQ_gSsz8 please see the first answer to this thread. Mar 18 17:56:05 readme: i thought since there is no real option to remove it (yes its hidden already) there is urgent need to implement that feature and i would ask here about it... Mar 18 17:58:34 i have no control over the listed (hidden) hardware anymore (since i dont own it anymore) it has to be unbundled with my account to not cause any problems for any potential new owners of it. Mar 18 18:05:44 veeti: how can I make the dropdown list of items instead of having items in the actionbar itself? Mar 18 18:07:34 I really think this issue has to be addressed in future version of google play (maybe remove hidden devices after they reached an expiration inactive time or just let the users control the data they own)! Mar 18 18:07:58 My custom clock view displays an analog clock. To change the time I created a function setTime. When setTime is called it looks like everything works but the view is not updated even though I called invalidate. Anyone have any ideas. Mar 18 18:09:15 hi michaelnovakjr Mar 18 18:09:23 hi canadiancow|work Mar 18 18:09:32 asl Mar 18 18:09:37 o.O Mar 18 18:09:40 lol Mar 18 18:09:44 23/m/toronto Mar 18 18:10:47 sounds like a blast in here! Mar 18 18:10:56 sssh Mar 18 18:11:24 cool nick bro Mar 18 18:14:12 readme: reading from the link you kindly provided me MANY ppl have this problem (even hidden devices mix up with their active ones). Do i really need to delete my entire google account and reopen a new one to delete an obsolete bundle? This is really a bummer to many android users... Mar 18 18:14:40 ntr0py: try #google Mar 18 18:15:48 ntr0py: it shows up in your list but it's pretty much irrelevant, if it isn't logged into your google account you can't push to it Mar 18 18:16:01 ntr0py: it's a little annoying but it's just a graphical glitch, essentially Mar 18 18:16:35 what's really annoying is when you have multiple devices of the same type in your list, fortunately they added the "last used on..." so as long as you don't have them both active Mar 18 18:18:37 is there a way to get around not using CursorLoaders for honeycomb support? I have to rewrite alot of code to do this and right now just want it working for HC users until I can refactor code Mar 18 18:22:38 dragorn: yes thats the case with my account: I bought a GN and it had display issues, so i removed my google account from it and did a factory reset before i returned in to the hardware store (i assumed this would unbundle it). Now i own a new GN and the only method to distinguish them is the "last used on ..." you mentioned. I would like them to display serial number or imei or whatever they use to identify it and let the users control th Mar 18 18:22:38 em (ok not to add foreign devices, but remove obsolete ones completely)! Mar 18 18:23:30 ntr0py: well, sucks for you. yeah there's no way to do that. Mar 18 18:23:38 ntr0py: my list is about 8 devices deep Mar 18 18:24:00 ntr0py: fortunately it's cosmetic and not a major functional problem Mar 18 18:24:31 dragorn: do you know of any reason why google wouldnt let us delete obsolete devices? Mar 18 18:25:33 ntr0py: presumably they don't really care and haven't assigned someone the hours to go rewrite that part of the market web ui Mar 18 18:25:58 ntr0py: having a web interface to market is a fairly new development in the android timeline Mar 18 18:29:08 dragorn: i mean i really am very impressed with the whole user experience of it and ICS, but this is really a bummer and should be addressed! Is there any official way to do an request to google about this ? Mar 18 18:29:30 ntr0py: google doesn't usually expose any human interface you can talk to, no Mar 18 18:35:44 dragorn: is there possibly a bug tracker system for google play somewhere ? Mar 18 18:37:21 ntr0py: not that I know of. Mar 18 18:40:18 dragorn: i will try to report it to http://support.google.com/googleplay/android-developer just not sure if thats the right destination for it... Mar 18 18:49:10 anyone have a HC tablet that is willing to test a build of To Do Mapr for me? Mar 18 18:49:30 my emu keeps crashing because of the stupid provider=network error which makes me have to comment out alot of my network code which is annoying Mar 18 18:50:35 i have an ICS tablet Mar 18 18:50:53 but you're canadian Mar 18 18:51:05 lol Mar 18 18:51:08 so with the conversion rate you actually have a HC tablet in the US Mar 18 18:51:09 T_T Mar 18 18:51:12 JakeWharton, make my damn layout Mar 18 18:51:19 hey JakeWharton, just started with ABS last night Mar 18 18:51:27 1 U.S. dollar = 0.991502821 Canadian dollars Mar 18 18:51:30 actually Mar 18 18:51:34 with the conversaion rate Mar 18 18:51:40 i have a jelly bean tablet in the US Mar 18 18:51:48 oh Mar 18 18:51:49 nice! Mar 18 18:52:12 it's nice until you realize that a significant portion of my income is in USD Mar 18 18:52:32 can you go make my layout now? Mar 18 18:52:47 Im trying to figure out how to do a dropdown list of options... right now I can only fit 2 items into the action bar and rest is thrown into Menu by default. But the point of ABS is to avoid the user from having to use of Menu as well (ICS+) right? Mar 18 18:52:51 i didn't want to program today :( Mar 18 18:52:55 i spent 12 hours at work yesterday Mar 18 18:53:13 5pm - 5am :P Mar 18 18:53:27 canadiancow|work, isn't the project open source? Mar 18 18:53:36 michaelnovakjr: what? Mar 18 18:53:50 the project you need a layout for... Mar 18 18:54:03 do you even know what project you're talking about? o.O Mar 18 18:54:17 QubeZ, not exactly, no. When ICS is run on the Nexus S the overflow menu goes "behind" the hardware menu key Mar 18 18:54:53 JakeWharton: ok so I can't use ABS to just do a dropdown of all of my items from an actionbar icon? Mar 18 18:55:01 add a submenu Mar 18 18:55:11 gotcha Mar 18 18:55:24 the library mimics ICS Mar 18 18:55:27 any ANT pros? Mar 18 18:55:35 im having a weird problem Mar 18 18:55:43 canadiancow|work, that isn't really relevant to my question :) Mar 18 18:55:49 i had to actually deal with ant for the first time yesterday Mar 18 18:55:51 it was horrid Mar 18 18:56:00 michaelnovakjr: well,...ok...no, it is not open source Mar 18 18:56:00 i have scars Mar 18 18:56:12 lol JakeWharton Mar 18 18:56:20 i had to do nasty shit too Mar 18 18:56:25 JakeWharton: did ABS 3.5 have some sort of fix on the compat lib for view pager fragment context menu events? Mar 18 18:56:30 to support two package names Mar 18 18:56:37 veeti, yup Mar 18 18:56:41 i put a patch in AOSP Mar 18 18:56:42 JakeWharton, the first time you dealt with ant was yesterday? Mar 18 18:56:44 hopefully it'll be in r7 Mar 18 18:56:51 michaelnovakjr, yeah we use it at work :( Mar 18 18:56:58 JakeWharton, what did you use before it? Mar 18 18:57:02 maven Mar 18 18:57:05 oh lord Mar 18 18:57:18 I don't like a build system where I have to tell it how to do its job Mar 18 18:57:29 might as well use a bash script instead of this XML crap Mar 18 18:57:52 maven is horrible Mar 18 18:57:57 hey, in this code sample from the accelerometer tutorial, they use a hard coded 'alpha' value, which is supposed to be calculated using the above comment: http://pastie.org/3549709 -- to actually calculate this, how would I do it? Count the number of SensorEvents that elapse in a time unit of my choice, then apply the formula to it? Mar 18 18:58:28 if you say so Mar 18 18:59:46 oh, that's the wrong pastie Mar 18 18:59:58 http://pastie.org/3622607 sorry Mar 18 19:00:06 JakeWharton, the way maven handles dependencies I find incredibly stupid. Mar 18 19:00:21 ant isn't perfect but for most situations it doesn't require a lot Mar 18 19:00:58 it doesnt seem to be generating the R files in the correct spot Mar 18 19:01:01 pretty sure its dependency management, along with every other repository-bases system is vastly superior to googling for .jars and managing them yourself Mar 18 19:01:23 my problem yesterday could have been solved in 20 seconds by added 4 lines to the tag Mar 18 19:01:25 its doing it right in Gen Mar 18 19:01:37 rather than an hour battling ant and it's manual classpath setup and dealing with transitive dependencies Mar 18 19:02:42 seems like it should be Gen\com\something\project Mar 18 19:03:40 i just don't like build systems where the job of figuring out how to build something is a burden of the programmer Mar 18 19:03:45 does anyone know how that value is calculated? Mar 18 19:03:55 if i have to do that I can whip something more elegant in bash or python in far less time Mar 18 19:04:03 I understand that it's t / (t + dT), but I want to get my own t and dT to repeat the calculation myself. Mar 18 19:04:50 i can no longer scroll on this laptop Mar 18 19:04:55 i'm becoming a mac user Mar 18 19:04:57 help Mar 18 19:05:39 JakeWharton, umm, there's no system package manager! and and and... you can't select your window manager! Mar 18 19:06:17 yeah that bothers the hell out of me. but damn if natural scrolling doesn't feel right after about a week Mar 18 19:06:27 god, i must be doing something wrong, te gen files are jacked Mar 18 19:06:46 JakeWharton, how unfortunate that you are wrong ;) Mar 18 19:07:06 JakeWharton, are you forced to use a mac? Mar 18 19:07:09 natural scrolling sucks, change it back Mar 18 19:07:23 i switched to normal mode the first day after moving to Lion... it was driving me nuts within mins Mar 18 19:07:49 I'm sure that I'm not *forced* but there's only macs at the office and they gave me a macbook... Mar 18 19:08:19 come'on. none of you guys know how to get t or dT? http://pastie.org/3622607 I find it hard to believe. Mar 18 19:08:39 ah, yea last few companies I worked at were like that... I just requested a machine to run linux on. Mar 18 19:08:41 my assumption is that t is any unit of time and dT is the number of calls to onSensorChanged in t. Mar 18 19:09:04 the build fails after I do a clean Mar 18 19:09:25 i prefer the mac now Mar 18 19:10:42 BankZ: close eclipse and restart it Mar 18 19:10:45 after clean Mar 18 19:11:01 I have a really weird android issue. I have android.hardware.touchscreen as a requirement in my manifest, and I can't run my app in the android 2.2 emulator Mar 18 19:11:19 because that feature requirement isn't met.. even when I explicitly put it in the avd Mar 18 19:11:41 QubeZ: if I do "ant release" it builds, then I do "ant clean" and "ant release" it fails Mar 18 19:13:26 its generating the R files in the wrong spot Mar 18 19:13:41 the only way I can fix, is to do a Clean in enclipse Mar 18 19:15:25 never used Ant... I thought you were having issues with Eclipse itself Mar 18 19:15:52 yeah, trying to automate my build Mar 18 19:16:35 with the amount of headache people face with Ant, why is it still used? Mar 18 19:16:45 I mean, does it really offer that great an adv over Eclipse build process itself? Mar 18 19:16:50 cconstantine_: that's strange Mar 18 19:17:12 i have an app that requires touch, but i can run it on google tv if i adb install it Mar 18 19:17:52 :/ Mar 18 19:17:55 yeah Mar 18 19:17:57 QubeZ: for me it will. When you check in code, its going to create the signed apk and deploy it. so next time someone opens the app it prompts them to update Mar 18 19:18:00 very clean Mar 18 19:18:30 also, I have DEV, QA, Staging and PROD enviroments, so I dont want to manualy change code to deploy Mar 18 19:18:34 canadiancow, unfortunately I need to support android 2.2 and I don't have a device that has ever had 2.2 Mar 18 19:19:20 if you set required="false", does it work? Mar 18 19:19:23 you could do that just ofr testing Mar 18 19:24:08 Hey, Mar 18 19:24:27 If I have an android alertDialog, is there an easy way to make it scrollable ( vertically ) ? Mar 18 19:24:49 My code is fairly similar to this: http://myandroidsolutions.blogspot.co.uk/p/android-how-to-make-alertdialog.html Mar 18 19:36:53 How should I mark a contact that it will be deleted after remove the syncadapter? Mar 18 19:45:33 OK, I think I know whats going on with ANT Mar 18 19:45:37 but not sure how to fix Mar 18 19:46:00 I am using gson, and I have this in my .classpath Mar 18 19:46:12 Mar 18 19:46:24 it doesnt seem like thats working Mar 18 19:46:28 from ant Mar 18 19:46:52 "package com.google.gson.annotations does not exist" Mar 18 19:47:43 if you set your build target in eclipse, do you also have to set the uses-sdk attribute in the manifest? Mar 18 19:47:49 any ideas? am I adding the lib wrong? Mar 18 19:48:50 Mar 18 19:49:04 im trying to do it w/o eclipse Mar 18 19:49:07 everything works there Mar 18 19:53:37 What's the easiest way to handle multiple events in a listview? In the listview I have a textview and a checkbox. I override onListItemClick to handle the textview event (it just fires up a new intent for whichever textview was selected). how can I do this for the checkbox? Mar 18 20:00:30 I think I got it Mar 18 20:04:18 Hi, I'm curious about how to go about some future layout/UI issues. Mar 18 20:04:29 Currently, I'm launching an Activity which in onDraw-method creates a simple RelativeLayout ViewGroup (a simple xml-buttons-row plus my own an extension of View, lets call this class MyView_A). That works all fine for my functoinality atm, no prob. Mar 18 20:04:41 What I am considering is to implement another view, call it MyView_B, and that the user should be able to switch between these views. I am considering how to make this view change possible (maybe through the option menu). Mar 18 20:04:56 I've done simple changes to the layout in MyView_A using invalidate(). However, my question is how I can make the change between MyView_B and MyView_B from the same activity? Or should I instead implement two different activities for each of my custom views? Mar 18 20:05:10 I've fiddled a bit with removeView() but felt that I need to step back abit and ask for help. Thanks in advance. Mar 18 20:06:54 ha Mar 18 20:07:13 the problem was the libs where in "lib" rather than "libs" Mar 18 20:33:49 damn, fixed that problem and now I have another problem Mar 18 20:35:23 i have multiple projects that use gson Mar 18 20:35:31 and when I run ant, I get Mar 18 20:35:50 java.lang.IllegalArgumentException: already added: Lcom/google/gson/Gson$5; Mar 18 20:49:06 I'm starting to develop a basic app for android that I want to be compatible with as many devices as possible- should I use 2.1 rather than 4.0.3? Mar 18 20:52:19 What is the intent that receiving a SMS creates? Mar 18 21:12:57 OK, here is my problem, I have two lib projects to reference the same external lib Mar 18 21:13:07 and then I have a master project Mar 18 21:13:16 that references my lib Mar 18 21:13:28 err, the two lib projects Mar 18 21:13:38 cant built it with ANT :( Mar 18 21:17:56 Hey all, I'm getting a java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener when trying to do the onCreate of a MapViewActivity with a Mapview. It looks like this implies that the device came with a broken mapvie wimplementation. Is there an app that can be used to easily test this? Mar 18 21:18:13 I don't have access to the device in question Mar 18 21:21:09 if I invalidate a view() the framework redraw all ? Mar 18 21:25:16 I hate when I get random exception messages. Mar 18 21:26:23 Exception: "you suck" Mar 18 21:26:32 :( ok Mar 18 21:26:40 like that? Mar 18 21:27:03 'lo guys, so I have a menu with items, and when I click an item I want to view it in another activity, whats the recommened way to load then pass the data to the new activity? Mar 18 21:27:31 Well yes, probably like that. Mar 18 21:27:54 edude03: AsyncTask & passing via the new Intent Mar 18 21:28:32 mmm ... I want a service that goes foreground and stay alive , and doesn't care if it has no binded clients Mar 18 21:28:51 Do I have to start id with start service ... is it ? Mar 18 21:28:56 aLeSD, yes it should redraw your view by calling onDraw() Mar 18 21:29:18 joru thanks Mar 18 21:29:30 n20, hmm but my problem is more the passing part Mar 18 21:29:50 I like the android framework Mar 18 21:29:55 I'm used to MVC where I could load a model and return it to the view and have it available there Mar 18 21:30:25 edude03: How so? If it's a custom class that you want to pass, either implement Serializable (easy road but not recommended) or implement Parcelable (better than Serializable but needs you to pay attention) Mar 18 21:31:53 I'm currently figuring out how Parcelable works, and yes it is a custom class Mar 18 21:32:30 edude03: HAng on, I'll fetch a (hopefully good) example of a class that implements it! Mar 18 21:33:26 edude03: https://github.com/ninetwozero/BF3-Battlelog/blob/master/src/com/ninetwozero/battlelog/datatypes/ShareableCookie.java Mar 18 21:34:20 edude03: Things to look at: Constructor that takes a Parcel, overridden method writeToParcel(Parcel, int) as well as Parcelable.Creator Mar 18 21:38:46 n20, I noticed that in that code he uses readline to get his object back, how do you know what order readline is going to return the data in? Mar 18 21:46:22 I want to build a UI with the layout XML, but I want to programatically add a view object at a later point. Is there a good way to do that? Mar 18 21:47:54 to anyone interested, i solved my q. Mar 18 21:48:50 cconstantine_, read up on viewgroup Mar 18 21:49:00 Jordman, thanks Mar 18 21:49:03 joru, thanks Mar 18 21:49:05 :9 Mar 18 21:49:38 cconstantine_, and layout Mar 18 21:50:06 joru, so I would put a viewgroup in the layout, and modify the viewgroup from the activity? Mar 18 21:52:03 bah, that won't work Mar 18 21:52:27 you can call addView() Mar 18 21:52:53 I have a situation where I think the MapView lib on the device is busted, and the MapViewActivity.onCreate is failing, not the view inflation Mar 18 21:53:24 if thats true then not a lot you can do Mar 18 21:53:36 :( Mar 18 21:53:42 punch the tablet? Mar 18 21:54:10 put an activity between it and startup? Mar 18 21:55:12 maybe your mapviewactivity is buggy? Mar 18 21:55:29 it's not my mapviewactivity Mar 18 21:55:52 it's http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapActivity.html Mar 18 21:55:57 on a specific device Mar 18 21:56:13 it works on my 2 phones and the emulator Mar 18 21:56:53 basically hitting this error http://stackoverflow.com/questions/4353608/networkconnectivitylistener-class-not-found-on-upc300-2-2-viewsonic-g-tablet Mar 18 21:58:10 the question is how much effort are you willing to put in for this 1 buggy device Mar 18 21:59:15 it's the device the customer wants to use Mar 18 22:00:16 but it won't work Mar 18 22:00:23 but it's what he wants ;) Mar 18 22:00:27 and it's not your fault Mar 18 22:00:56 I can't say I've confirmed that Mar 18 22:01:06 and the failure mode is rather bad Mar 18 22:02:58 edude03: Sorry for the lateresponse. The order you write the data is the same order you can read them in. :) Mar 18 22:03:33 edude03: so if you writeInt() two times in a row, be sure to readInt() into the correct variables (as supplied into writeInt()) Mar 18 22:05:30 night Mar 18 22:19:48 Is there another app that uses the MapView that supports android 2.2 that can be used to test if the device is just broke? Mar 18 22:26:50 cconstantine_: would it be rude to say google maps :) Mar 18 22:27:15 readme, no... but it doesn't use the MapView api google provides Mar 18 22:27:18 it isn't good enough :/ Mar 18 22:27:38 try like "X locator" Mar 18 22:27:47 e.g. starbucks Mar 18 22:28:09 thanks Mar 18 22:28:48 * readme sighs in disappointment at all the regurgitated blog articles that are just copy pastes from d.android.com with critical information removed and mistakes inserted Mar 18 22:48:23 why is holo_blue_bright not available in my :android/color/ item list? Mar 18 22:55:32 Okay, I'm stumped here - I created a PreferenceActivity class, and launched it using an Intent and startActivity, but when I click back or finish() in the PreferenceActivity, it goes back to the home screen, not to my original Activity.. What am I doing wrong / missing? Mar 18 22:59:01 never mind I'm an idiot. I called finish() in OnPause(). Mar 18 23:02:54 lol jamuraa Mar 18 23:02:56 does anyone know where I can get a library that can get me the lat/long from an IP/Domain name? Mar 18 23:03:07 I need that to be able to construct a geoPoint and feed it to my map Mar 18 23:03:14 what do you mean Sicp Mar 18 23:03:33 I give it an IP/Domain name, and it gets the location, only I just want the lat/long from what it got Mar 18 23:03:55 so I can find the location using Google Maps and pin point it on my map by giving it a GeoPoint Mar 18 23:03:58 argh it's canadiancow again Mar 18 23:04:25 im just not following the "lat/long from an IP/Domain" Mar 18 23:04:31 edude03: ? Mar 18 23:04:42 You're everywhere :P Mar 18 23:04:48 well... Mar 18 23:04:57 look at this Mar 18 23:05:04 http://api.hostip.info/get_html.php?ip=12.215.42.19&position=true Mar 18 23:05:11 you see what that does, given the IP address? Mar 18 23:05:35 no Mar 18 23:05:38 i see what the output is Mar 18 23:05:41 but i have no idea what it "does" Mar 18 23:05:47 smartass Mar 18 23:05:51 im in ANT hell! Mar 18 23:06:04 no Sicp i just mean i ahve no idea how it's getting a "locaiton" Mar 18 23:06:12 like if i plug in my ip, it says unknown everything Mar 18 23:06:30 your public ip? Mar 18 23:06:31 my dedicated server's ip gives me UNITED STATES, but unknown citty Mar 18 23:06:33 yes Mar 18 23:06:46 i just dont understand where it would get data like this Mar 18 23:06:46 stilll, it got the country, I could do with that Mar 18 23:06:57 it got the country for my server Mar 18 23:07:01 not for my home connection Mar 18 23:07:04 well you could get some basic data from the ASIN whois of the IP Mar 18 23:07:17 (not that it would be incredibly accurate for most IPs) Mar 18 23:07:18 ok Mar 18 23:07:21 I will see about it Mar 18 23:20:35 the Holo theme has a nice little blue line beneath the action bar, how can u put this blue line on a TextView? Mar 18 23:25:44 is it possible to build a database from a cvs file then as the database is used items will be removed through out a year, then put in an option for the users to rebuild the database from the original file? Mar 18 23:26:10 oi oi oi Mar 18 23:28:35 ron: oi == yes? Mar 18 23:34:37 eko1: he joined after you asked your question Mar 18 23:34:45 I assume you mean csv, and not cvs? Mar 18 23:34:55 and what does your question have to do with android? Mar 18 23:35:03 ah yes typo csv Mar 18 23:35:33 eko1: so are you basically asking "hey, do my work for me?" because that's what it sounds like. Mar 18 23:35:58 it's possible to do what you want. learning the details is up to you. Mar 18 23:36:03 see the sqlite docs Mar 18 23:36:24 ah no, just wanting to know if this kind of thing is possible, i want to write an app that creates a db from a file then the user can removed db items as tasks are finished Mar 18 23:36:34 yeah, of course it's possible Mar 18 23:36:42 we have: database api, and file reading api. Mar 18 23:37:23 check out the notepad example Mar 18 23:37:25 can one app have multiple database as well? Mar 18 23:37:28 yes Mar 18 23:37:53 ok thanks Mar 18 23:38:09 OK - I think I have a solution to my problem but I need help Mar 18 23:38:16 I have to Lib projects Mar 18 23:38:26 Lib1 references Lib2 Mar 18 23:38:42 Lib2 has an external ref to a jar Mar 18 23:38:55 I want Lib 1 to have access to that Mar 18 23:38:59 jar Mar 18 23:39:19 right click lib2, build path, configure build path, order and export, check off jar as exported Mar 18 23:39:21 best way? Mar 18 23:40:55 u da man Mar 18 23:41:22 BankZ: I find that offensive and insulting. Mar 18 23:41:28 :P Mar 18 23:44:29 hey, I have a question about the openGL 1.0 tutorial. When drawing the triangle vertices the tutorial uses { -0.5f, -0.25f, 0, 0.5f, -0.25f, 0, 0.0f, 0.559016994f, 0 }; why is the third vertex's Y coordinate .559016994f? Mar 18 23:46:59 anyone here successfully implemented a broadcast receiver for incoming calls inside of their activity (i.e. no it in the manifest)? i've look at countless examples and im pretty sure everything is right, but it's still not working... Mar 18 23:47:23 arielkadouri: off the top of my head I don't know the geometry but it's that because that is the point required to make the triangle equilateral Mar 18 23:47:38 arielkadouri: using that point with the other points will make each side = 1 Mar 18 23:48:13 but I applied the distance formula point came out to be .6160254 Mar 18 23:48:31 arielkadouri: hm, maybe you have a better point then them :) Mar 18 23:48:42 if you substitute yours, does the triangle look more equalateral? Mar 18 23:49:02 I can't really tell on my phone/virtual machine Mar 18 23:49:32 i'll check the math Mar 18 23:49:38 thanks Mar 18 23:52:24 arielkadouri: yeah, your math is right. I think they must have just picked a point out of thin air Mar 18 23:52:39 also in that tutorial they forget to do other GL things that are important Mar 18 23:52:52 thanks, I thought I was going crazy Mar 18 23:52:55 I suggest getting the book OpenGL es 2.0 programming guide and downloading the free example code from their site Mar 18 23:52:58 which has android examples Mar 18 23:53:10 including the one you're playing with except with more error checkijng Mar 18 23:54:08 i'll check it out, thanks for the help Mar 18 23:54:33 clear Mar 18 23:54:36 oops Mar 18 23:56:43 do you guys normaly check in your gen folder? Mar 18 23:56:47 readme: OOP is killing me Mar 18 23:57:09 OOP, yeay you know me... Mar 18 23:57:15 wasnt that a song? Mar 18 23:57:50 ooo paby paby - cat stevens Mar 18 23:58:18 sorry, bad (and dated) nerd joke Mar 19 00:07:55 does anyone know how to create a selector that fades between its states? Mar 19 00:19:53 onr: oh man Mar 19 00:21:04 * yeik sighs Mar 19 00:21:14 Does the AsyncTask.THREAD_POOL_EXECUTOR use all the cores avaiable or it leaves one just for the UI? Mar 19 00:25:14 hstefan: pretty sure it runs on all of them Mar 19 00:34:29 kanelbulle: great! Thank you. Mar 19 00:50:36 Can you create an AVD with two cores? I just want to check if my program is scaling correctly. Mar 19 01:07:49 eclipse is telling me a method can be static Mar 19 01:07:52 but it clearly cant Mar 19 01:07:56 as it referneces "this" Mar 19 01:23:10 hey, how fast is java.lang.reflect.Field.set() and Android? Mar 19 01:23:18 s/and/on/ Mar 19 01:26:58 is anyone experiencing abnormal "application errors" with the licensing library today? Mar 19 01:31:29 sigh nm somehow reverted my manifest back a few versions Mar 19 01:31:52 This may seem a dumb question, but very simple answer -> I've always used one handler in an activity and used message.what to call to different methods depending on what is needed. Is it possible / ok to have more than one handler for an activity? Mar 19 01:32:27 It should be right? Mar 19 01:39:24 i was under the impression that slow content assist in eclipse was a bug that was solved a long time ago, but after installing the latest SDK and eclipse indigo, the problem has come back to haunt me. does anyone have tips on how to fix this? i've tried cloning the entire android source tree using repo and placing the java source under sdk-path/sources, but that isn't helping... Mar 19 02:25:40 Hey Devs Mar 19 02:25:48 has anyone used jmdns? Mar 19 02:49:00 canadiancow|work - I've messed with it a bt Mar 19 02:50:36 i cant get it totally working Mar 19 02:50:41 i can get the serviceAdded callback Mar 19 02:50:44 but not serviceResolved Mar 19 02:51:52 what are you trying to do with it, it does several things Mar 19 02:52:21 I was using it for wins resolution Mar 19 02:52:25 sigh... anyone here know how to fix slow content assist in Eclipse Indigo, using the latest version of the Android SDK? Mar 19 02:52:28 but found a more optimized library to handle it Mar 19 02:52:41 i thought this problem was solved a long, long time ago, but after upgrading my installation it has come back Mar 19 02:53:35 latest ADT plugin, latest version of Eclipse and all plugins, latest version of Android SDK, documentation package installed in Android SDK, javadoc location correctly specified... I still get about 10-15 seconds delay every time content assist tries to load javadoc Mar 19 02:54:19 ron_frown, i want to have a server on one device that broadcasts its info Mar 19 02:54:27 so a client on anoither can detect it Mar 19 02:54:38 thats the jmdns part...then once i have ip/port, i can connect and do stuff Mar 19 02:56:01 so like bonjour like shit? Mar 19 02:56:10 i guess? Mar 19 02:56:19 that's the apple version of this, right? Mar 19 02:56:20 multicast dns Mar 19 02:56:22 yea Mar 19 02:56:30 yeah I did do that with a diff lib Mar 19 02:56:32 isnt that what JmDNS is? :P Mar 19 02:56:35 but honestly dont remember any part of that Mar 19 02:56:39 oh really? what lib Mar 19 02:56:41 I think jmdns does a lot more Mar 19 02:56:47 just happens to do that too Mar 19 02:58:24 Are either of you two using an IDE other than Eclipse for Android development? I'm sick of Eclipse. Mar 19 02:58:46 ron_frown what lib did you use? :( **** ENDING LOGGING AT Mon Mar 19 02:59:58 2012