**** BEGIN LOGGING AT Mon May 14 02:59:59 2012 May 14 03:05:33 g00s: these moo things hurt my eyes :) May 14 03:16:32 is there a place to get embeddable links for an android app? May 14 03:17:23 what are embeddable links? May 14 03:17:45 xorgate, something like this> http://fc03.deviantart.net/fs70/f/2012/100/0/2/google_play_store_icon_and_badges_by_hsigmond-d4vos2e.png May 14 03:18:09 ah well they're somewhere aroudn the 'publish' section of d.android.com May 14 03:18:18 hmm ok May 14 03:19:04 got it May 14 03:20:43 ..also, do QR codes have any relevance on web sites? May 14 03:21:32 i saw one on a billboard once May 14 03:21:53 couldn't quite figure out why they did it :S May 14 03:22:32 maybe the app was only for indecrible hi-def camera May 14 03:22:33 s May 14 03:23:00 on that note, i guess it wouldnt hurt to include it May 14 03:28:10 they're a lot less relevant now that you can push-install from the market - sorry, play store! - website... before that, if you had an app description, link, etc on your computer screen and wanted to install it, you had to search for it on the market on your phone manually, so the QR code shortcutted that May 14 03:31:52 good point, not worth the extra amount of html code anyways May 14 04:03:25 pro-tip: if you're trying to instantinate a custom view in an XML file, make sure the class isn't abstract May 14 04:27:11 Does anyone know why a cursor would return out of bounds one time, and not another? Despite the data being -exactly- the same? May 14 04:43:38 Muramasa, it isn't, is the answer, despite you thinking so May 14 04:44:11 Ok, well, then my question would be why would the cursor have different data? May 14 04:44:22 because you're populating it with different data May 14 04:45:37 ok let me give you a code snippit May 14 04:46:30 Let's say this prevented the error from happening again, what would be your thoughts? http://pastebin.com/QrkYivcH May 14 04:46:41 Because it sounds crazy to me May 14 04:47:09 because db is getting its data populated in another thread May 14 04:47:14 and you're encountering a race condition May 14 04:47:29 shouldn't the db handle that May 14 04:48:10 ok so how do I stop this race condition, or make the DB handle it May 14 04:48:21 you stop it by fixing your data population code May 14 04:48:27 or use the correct synchronization primitives May 14 04:48:30 read jcip May 14 04:48:34 revisit your problem May 14 04:49:51 let's pretend like I didn't understand anything you just said May 14 04:49:53 :D May 14 04:50:04 that's why you need to read jcip May 14 04:50:06 google it May 14 04:51:02 So you're suggesting I read a book to solve my issue May 14 04:51:31 yes, since you haven't really illustrated your problem May 14 04:51:38 you asked what your problem was, I told you May 14 04:51:50 you have data synchronization issues May 14 04:51:53 which are fundamental May 14 04:53:00 i should be able to create an app that sends and image over bluetooth for printing without any issues, yeah? May 14 04:53:19 this would be my first android app i create =D May 14 04:54:06 without having knowledge of how bluetooth printing works, I'd say it's very hard for you May 14 04:55:06 yeah? May 14 04:56:45 pfn: surely basic concurrency around databases doesn't require reading an entire book, despite what value it would bring to read it. Do you have any other advice? May 14 04:56:54 I wouldn't have thought bluetooth would be good for print quality images. May 14 04:57:28 Muramasa, find some java thread synchronization tutorials May 14 05:21:02 everything im reading says that the sqlite database should be thread safe as longa s you only have one connection, which I do, and all classes reference that static object May 14 05:21:46 prove it May 14 05:22:21 i.e. show us where you are creating your connections May 14 05:24:11 evenin' all May 14 05:25:04 http://pastebin.com/KFNAgQQk May 14 05:27:11 Gives me an idea to look into though.. May 14 05:27:20 here's a simple test for you, in dbadapater (nice spelling); add a static boolean alreadycreated = false; in the constructor; if (alreadycreated) throw IllegalStateException(); alreadycreated = true May 14 05:28:10 Thanks for the spelling compliment :D May 14 05:28:28 Why are you storing the DB_PATH in a variable? May 14 05:28:31 you shouldn't ever need it May 14 05:28:52 That's really beyond the point here isn't it? May 14 05:29:01 I have no idea what your point it May 14 05:29:03 is* May 14 05:29:12 I just joined the channel like 2minutes ago May 14 05:30:28 I'm having cursor issues in my application, pfn seems to think its a concurrency issue May 14 05:30:41 getting cursor not closed errors? May 14 05:30:51 I get those all the time, but they don't crash the app May 14 05:30:58 I get empty cursors essentially May 14 05:31:05 Ahh May 14 05:31:24 could be a concurrency issue May 14 05:31:35 especially if you're always getting a writeable database May 14 05:31:41 since that will put a lock May 14 05:32:29 pfn: i'm trying to crash the app again, i put in your throws exception, but it didn't throw anything yet May 14 05:32:40 actually, probably irrelevant May 14 05:32:50 you're simply querying the data when it's not there yet May 14 05:33:01 you need to show all uses of your database May 14 05:33:12 i.e. when you populate vs. when you query May 14 05:33:20 hi! how can i differentiate b/w a user click and a http redirect in a webview? thnx May 14 05:34:10 That would be hard to do without sending you my project lol May 14 05:34:20 then you need to track it down yourself May 14 05:34:28 log everytime you write to the database, and from where May 14 05:34:32 log everytime you read it May 14 05:34:39 and it should become obvious where you made a bad assumption May 14 05:34:54 all these try catches i think has made it stable.. but its so hoaky... May 14 05:34:57 ok ill try to do that May 14 05:36:04 Interesting May 14 05:36:09 It threw the exception May 14 05:36:18 when I closed the app and reopened it May 14 05:38:03 time to watch some game of thrones and pass the fuck out May 14 05:38:07 cheers mates May 14 05:39:01 good plan May 14 05:43:43 thanks for the help pfn May 14 05:43:49 ill run from there May 14 06:21:00 goedemorgen May 14 06:54:58 According to the docs, EXTRA_TEXT can be a "styled charsequence". What does this mean? I would like to use HTML in it. http://developer.android.com/reference/android/content/Intent.html#EXTRA_TEXT May 14 06:55:44 oh, appears I just need to use Html.fromHtml() May 14 06:56:42 I wish more vendors would provide default root images... http://pastebin.com/wamYsqTV May 14 07:00:27 when an image referenced in the android:background property of a layout is bigger than the content, how can i achieve that the layout doesn't grow as big as the background image, but the actual content? May 14 07:01:14 What does the word "Reaget" bring to mind? May 14 07:01:31 I don't understand, when you rotate device on honeycomb, it recreates the activity. but on 3.1 it does not call it properly so my views don't get redrawn. but on 3.0.0 and 3.2 it works perfectly May 14 07:01:34 It's like when you get something, as a result of reaganomics. May 14 07:01:43 like, higher profits May 14 07:01:47 ;) May 14 07:01:51 is there a work around for this? May 14 07:03:05 I am trying to port a C++ engine to Android using the NDK and OpenGL ES 2. I have the following example for how to get the display window: http://jiggawatt.org/badc0de/android/index.html They call android_createDisplaySurface() from the libui library. May 14 07:03:23 libui is not available to the NDK yes? May 14 07:04:19 What is the typical way of getting around this for people porting OpenGL ES 2 graphics libraries via C++ and the NDK? May 14 07:21:44 I sit in the #iphonedev channel to troll people May 14 07:39:32 :/ May 14 07:44:36 what is the default directory path when issuing a create statmenet from java to sqlite? May 14 07:44:37 connection = DriverManager.getConnection("jdbc:sqlite:test.db"); May 14 07:44:45 test.db should be in which directory? May 14 07:57:20 Hello people, I am using Restlet (restlet.org) as rest client API and I am facing trouble to connect to my server which use a reverse proxy May 14 07:57:49 I have an error 503 .. :( May 14 07:58:36 Is-it possible to create views outside of the main thread? I have to create a lot of views for an EPG. May 14 08:05:05 say I have 10 projects, where the only difference between them are the graphic-elements. Each project represents a client/customer (which needs his/her own app with customized graphics).. How would you solve this problem without having 10 projects in SVN? May 14 08:05:12 ANT-script or whatever when building? May 14 08:14:04 JulienDev: the documentation explicitly states "you must be on the main thread when calling any method of any view" -- which obviously if analyzed strictly does not include the constructor, but my inclination is to believe: no. May 14 08:15:19 readme: Ok, I was wondering about a way to create views inside another thread and juste make the addView on the main thread May 14 08:15:24 thanks May 14 08:22:05 JulienDev yes thats no problem May 14 08:26:59 anybody with experience on NFC, why phone-to-phone works, but not a mifare card? May 14 08:29:53 Yo need help compiling form source. Any takers? May 14 08:30:53 Hello May 14 08:38:02 evening... is WebView.addJavascriptInterface() usable in the real world? There are open bug reports for 2.3.x and the documentation in terms of what types of parameters etc are supported is pretty thin as well. Is it worth using addJsInterface() or just go for a workaround like onJsPrompt() ? May 14 08:44:15 hi, i am trying to get my first dialog running. but i am getting this exception: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application. Any idea what i may be doing wrong? May 14 08:48:20 how can i get the current view when using viewswitcher? May 14 08:48:58 spifff: of course, how do you think stuff like cordova aka phonegap works May 14 08:49:35 readme, last time i looked at the phonegap source they did their own bridging via onJsPrompt May 14 08:50:07 interesting May 14 08:50:18 I've used setJavascriptInterface in real projects before. May 14 08:50:20 (probably at least half a year ago by now though) May 14 08:50:47 er, add May 14 08:51:17 readme, so what sort of objects can you pass as parameters? can you pass e.g. a javascript function to be used as a callback? May 14 08:54:28 hm, I used it the other way around, providing a java function to the javascript May 14 08:54:38 given javascript's wacky type system I wouldn't expect much, though. May 14 09:39:35 Hi all, quick question. May 14 09:39:46 I have an app that has a graph of Q&A May 14 09:40:05 and it goes through the graph according to the users choices May 14 09:40:27 there's a history button that allows the user to go back to different parts of the graph May 14 09:41:17 and if you go back to a specific question, I want to clear the activity stack from the activities that were removed from the travel of the graph May 14 09:41:29 is there a way to do this programmatically? May 14 09:42:01 appel1: I wrote it here :) May 14 09:52:05 hello everyone. would anyone care to help me out with getting information from mysql into an android expandedlistview? May 14 09:54:28 vancha: where is the DB? May 14 09:55:40 romainguy_: the link in the topic is broken May 14 09:56:16 on a remote pc thepoosh , i used a tutorial to send and recieve the database entries using JSOn May 14 09:56:50 ok, so you need to parse the JSON and use a custom View and adapter to populate the list May 14 09:57:20 look at this tutorial: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ May 14 09:57:26 vancha: ^ May 14 09:58:00 here comes the complicated stuff :P thanks thepoosh , ill look it trough May 14 09:58:16 good luck May 14 09:58:23 it becomse easyer May 14 09:58:23 :) May 14 09:58:36 thepoosh: so you have activities a > b > c > d, and then the user can go back to b and you want to remove c and d from the stack? May 14 09:58:47 yes May 14 09:58:57 appel1: exactly true May 14 10:01:09 appel1: do you think this can help? May 14 10:01:09 http://stackoverflow.com/a/5154814/1056359 May 14 10:04:42 thepoosh: not sure, but a better solution might be to use the FLAG_ACTIVITY_CLEAR_TOP intent flag when re-launching the activity b in my example above May 14 10:05:15 I tried that, it didn't work May 14 10:05:24 thepoosh: really? May 14 10:05:28 or maybe I don;t understand how to implement that May 14 10:05:42 just a minute, I'll paste my code May 14 10:06:49 appel1: http://pastie.org/private/cq5r53vuw0kqcnkdo0w7fa May 14 10:06:59 this is the code for the history class May 14 10:09:09 thepoosh: so you only have one activity? a > a > a > a and you want to go back to the second a for example? May 14 10:09:20 yes May 14 10:09:48 it's a re-occurrence of the same activity May 14 10:14:11 appel1: i posted this on stackoverflow May 14 10:14:13 http://stackoverflow.com/questions/10581332/traveling-through-a-graph-and-clearing-activity-stack May 14 10:15:36 thepoosh: not sure how to do it reliably then.. some kind of global state the activity can look at in onResume to determine if they should finish immediatly.. bit of a hack perhaps :\ May 14 10:16:11 thepoosh: or simply not use the activity stack at all and manage things yourself within one activity.. hopefully someone else here has a better idea May 14 10:16:19 i saw that someone suggested a global array of saved instances May 14 10:16:42 initially I was thinking of using fragments for this app May 14 10:19:33 try using the explicit way rather than implicit resolution to make sure thats not failing May 14 10:19:50 new Intent(this, MyHomeActivity.class).... May 14 10:19:52 g00s: what do you mean? May 14 10:20:25 you think that will clear the stack from the excess activities? May 14 10:20:47 works for me :| May 14 10:21:16 ok, I'll give it a try May 14 10:23:10 g00s: that didn't do anything May 14 10:23:17 hm May 14 10:23:25 my thoughts exactly May 14 10:32:35 g00s: appel1 no more thoughts? May 14 10:40:28 I google on how to override the action bar style... and found http://android-developers.blogspot.it/2011/04/customizing-action-bar.html and http://stackoverflow.com/questions/5861661/actionbar-text-color -- but how do I found those kind of information on my own? without having to google around? May 14 10:40:47 information like: the name of the attribute to override the action bar style May 14 10:40:48 etc... May 14 10:41:12 (the name of the actual style being used by default, to set it as parent and so on...) May 14 10:41:18 mastroWork: what are you trying to do? May 14 10:44:21 thepoosh, currently I've done what I need.. but I would have been able to if I didn't find that stackoverflow post... wonder how did him find out the name of the ActionBar title text style (android:style/TextAppearance.Holo.Widget.ActionBar.Title) or the action bar attribute to override it (android:titleTextStyle) where do I document if I'll have to do the same with something else in the future? May 14 10:46:11 mastroWork: are you asking where can you find all the styles for actionBar? May 14 10:46:26 thepoosh, yes, and for any other widget May 14 10:48:52 mastroWork: http://stackoverflow.com/questions/6562272/finding-all-available-styles-defined-by-android-platform-themes May 14 10:48:57 short google search May 14 10:49:19 mastroWork: you can retrieve that information from the android source tree May 14 10:52:55 thepoosh, thanks.. I was hoping on something more structured but anyway.. I'll cope with it May 14 10:53:03 Napalm, you'll have to know where to look May 14 10:53:37 nope May 14 10:53:39 Napalm, for example... on Android 2.x which is the layout for the application title? etc... May 14 10:54:40 mastroWork: resources are stored in /frameworks/base/core/res/res May 14 10:54:52 so if you want layouts then its /frameworks/base/core/res/res/layout May 14 10:56:44 mastroWork: you will find /frameworks/base/core/res/res/values/ has the theme and styles you were looking for May 14 10:58:50 Napalm, ok.. but let's say... I want to choose WindowTitle style as parent to define my custom style, how do I write? parent="android:WindowTitle" ? nope, parent="android:Theme.Light.WindowTitle" ? nope, so what do I write? May 14 10:59:43 mastroWork: what are you trying to do? May 14 11:00:51 Napalm, define a custom title layout that "look" like the action bar on android SDK 8-10 May 14 11:01:17 mastroWork: have you seen the actionbarcompat example project? May 14 11:01:41 http://developer.android.com/resources/samples/ActionBarCompat/index.html May 14 11:02:04 Napalm, I know what to do now :) it's just that I don't like the idea of having to look at the code to do this stuff.. I do not know if they modify the code and thus I'll not be sure my app will work on later versions May 14 11:02:20 huh? May 14 11:02:34 i think you are missing the point on how to use attributes here May 14 11:10:52 Napalm, nope.. it's just that WindowTitle is NOT public, TextApparence.WindowTitle is.. but this information is not in https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/styles.xml -- and also, nobody assure you that google is not going to change those attributes in the future May 14 11:11:35 i think you miss my point May 14 11:11:45 thats a styl May 14 11:11:48 style May 14 11:11:51 not a theme attribute May 14 11:11:53 windowTitleStyle May 14 11:11:55 is the attribute May 14 11:13:41 your point about changing the attributes/styles, thats why we have resource qualifiers May 14 11:14:49 hi May 14 11:15:12 what's the best way to implement a horizontal, scrollable list ? May 14 11:17:01 ddreamer0: depends on usuage, but Gallery normally because it acts as a AdapterView like ListView, but it can have its pain's, if not use HorizontalScrollView May 14 11:19:14 this is freaky http://venturebeat.com/2012/05/13/scenetap-is-watching/ May 14 11:19:28 JakeWharton: youare in SF right? been to any of these bars ? May 14 11:20:40 Napalm is this the same horizontallistview you were talking about ? http://www.dev-smart.com/archives/34 May 14 11:21:59 g00s: going I/O? May 14 11:22:19 Napalm: noo … i would probably be assasinated there May 14 11:22:26 lol May 14 11:22:36 ddreamer0: looks interesting May 14 11:24:15 ddreamer0: he moved the src so that github link is out of date, see https://github.com/dinocore1/DevsmartLib-Android/blob/master/devsmartlib/src/com/devsmart/android/ui/HorizontalListView.java May 14 11:24:32 Hi. I have an APK file which is signed with a random key (ie. not system key). The application runs with sharedUserId="android.uid.phone" and runs within the phone process. I install this apk by pushing it to /system/app and then running the APK file from OI File Manager. May 14 11:24:42 My problem is that this only works on physical devices with cyanogenmod. not on emulators. I guessing the problem is that the APK is not signed with the same key as the phone app. Is there a way to make the emulator as "open" as cyanogenmod? May 14 11:25:33 hmm. Did my question get sendt also? May 14 11:25:49 ? May 14 11:26:49 My problem is that this only works on physical devices with cyanogenmod. not on emulators. I guessing the problem is that the APK is not signed with the same key as the phone app. Is there a way to make the emulator as "open" as cyanogenmod? May 14 11:27:10 anyone feel like brainstorming about a new social network paradigm? May 14 11:27:12 As4xk: if your trying to use the apk in the emulator, your probably best to compile it yourself and sign with a debug key, that might work May 14 11:27:48 on a linux sys, yes? May 14 11:27:53 Napalm: Did you meen compile the emulator my self? May 14 11:28:28 As4xk: compile the apk May 14 11:28:55 if you are using eclipse, uploading the apk to device will be signed automaticly with the debug-key May 14 11:29:57 Napalm: does this look like it's done with the gallery class in the api ? http://www.youtube.com/watch?v=J2qkRL6jdIc May 14 11:30:09 i have exported the apk file and signed it with a key generated by eclipse. Then i use adb to push the apk file to /system/app. Running this file from OI File Manager installes the application on my root htc. Running the apk file from OI File Manager on a emulator tells me that the application was not installed. No error message May 14 11:30:22 I want to create a view where users need to put in a pin where they previously assigned a pin for the app (5 digits). Just like the ING & ABN AMRO (They are banks) apps. Google did not get me the results I hoped for. Could someone point me in the right direction? Thanks May 14 11:30:41 ddreamer0: considering he's importing Gallery, id say yes May 14 11:33:02 Napalm: oh hadn't even noticed May 14 11:33:27 Napalm: Gallery looks cool i think i'll give it a try May 14 11:33:47 can i make a list of elements that include text, images and clickable elements ? May 14 11:34:48 just like a listview ? May 14 11:35:42 Hello May 14 11:36:19 anybody there? May 14 11:37:30 here May 14 11:38:12 billdollar:do you know about how can we add the contacts in favorite list when we click on star? May 14 11:39:01 seems like an ez task, r u serious? May 14 11:41:11 billdollar: yes i am new in android and i need to add this feature in application.i can get all contacts from phone and display in listview with star image. now i need is that when i click on that star image then that contact should be add in favorite contacts.do you have any idea abput this ligic? May 14 11:42:10 we can figure it out... May 14 11:42:24 billdollar: how? May 14 11:42:50 so you can select favorite... if select favorite then add to list May 14 11:42:52 hey jagruti_, back about the favorites i see May 14 11:42:59 jagruti_: do you have your contact uri? May 14 11:44:26 billdolar: i dont want to add in list but from list i want to add in phone as favorite May 14 11:44:42 Napalm: contact uri at where it is? May 14 11:44:52 Napalm: i dont know May 14 11:44:54 * Napalm rolls eyes May 14 11:45:03 hi guys, i am trying to establish an sql connection from java to sqlite, using DHHelper which extends SQLiteOpenHelpe, question is when defining the DBB_name varialbe , super(context, DB_name, null, 1); do we set DB_name to the full path under android or it will be set automatically to the home directory of the android application /data/data/blah/myapp/ May 14 11:45:14 jagruti_: you want to favorite a contact, how are you locating the contact May 14 11:45:16 ? May 14 11:46:03 Napalm: using this code i have got the all favorite contact String Favourites[] = new String[] { Contacts._ID, May 14 11:46:03 ocx: http://developer.android.com/reference/android/content/ContextWrapper.html#getFilesDir%28%29 May 14 11:46:03 Contacts.DISPLAY_NAME, Phone.NUMBER }; May 14 11:46:03 May 14 11:46:03 Cursor fav = managedQuery(Phone.CONTENT_URI, Favourites, May 14 11:46:03 "starred", null, "UPPER(" May 14 11:46:03 + ContactsContract.Contacts.DISPLAY_NAME May 14 11:46:03 + ") ASC"); May 14 11:46:04 while (fav.moveToNext()) May 14 11:46:04 { May 14 11:46:05 String name = fav.getString(fav May 14 11:46:05 .getColumnIndex(Contacts.DISPLAY_NAME)); May 14 11:46:06 String number = fav.getString(fav May 14 11:46:06 .getColumnIndex(Phone.NUMBER)); May 14 11:46:08 nnooooo May 14 11:46:09 AAAAAAAAAAAAAAAAAAAGH May 14 11:46:13 nooooo May 14 11:46:16 my eyes! I'm blind! May 14 11:46:35 jagruti_: dont do that again, thats what pastebin is for May 14 11:46:40 i thought there was developers here, not morons May 14 11:46:42 wrong key stroke May 14 11:46:53 Napalm: can i make a horizontal list of elements that include text, images and are clickable ? May 14 11:47:09 Sorry all,i have by mistake put this code here May 14 11:47:22 ddreamer0: use a Gallery your adapter should implement getView which inflates a view that contains all of the above May 14 11:47:22 Napalm: wat is that? May 14 11:47:36 @Blou_Aap that's an oxymoron May 14 11:47:43 ocx: a function that gets the directory of files for your app May 14 11:48:06 do i have to include that in the super(context, DB_name, null, 1) ? May 14 11:48:07 while using UBIFS .... I m getting this error.... http://pastebin.mozilla.org/1638044 May 14 11:48:09 DB_name May 14 11:48:23 Napalm: did you get the code na May 14 11:49:01 jagruti_: do you not read the channel messages? use pastebin May 14 11:49:32 Napalm: sorry i but i have no idea about that May 14 11:49:56 ocx: i am unsure, but i believe your database is stored in that directory by default May 14 11:50:13 jagruti_: no idea about what? May 14 11:50:35 pastebin...means how to put the code to somebody here May 14 11:50:57 jagruti_: learn to google, http://pastebin.com/ May 14 11:51:10 yo paste code there and send url here May 14 11:51:11 :P May 14 11:51:15 *you May 14 11:52:07 Napalm: ok i will just try now as above code send May 14 11:53:29 Napalm: like this ? http://pastebin.com/xGYAeqeH May 14 11:53:50 yes May 14 11:54:08 but the code doesnt help much May 14 11:54:08 Napalm: Thanks May 14 11:54:25 your retrieving all current favorites May 14 11:55:35 Napalm: ya i have retriev all favorite contacts..now i want to add the new contacts in this favorite so when next time i will read then that contact must be seen in this favorite list May 14 11:58:31 Napalm: ok thanks i think i'm going to give it a try, looks cooler than the other "horizontallistview" project May 14 11:58:32 Napalm: why my code does not help more? May 14 11:58:53 Napalm: do you think it's much more complicated to use ? May 14 11:59:09 (sorry: Napalm bombing) May 14 11:59:25 ddreamer0: what is more complicated? May 14 12:01:55 if gallery is mucho more complicated than using that horizontallistview i showed you before May 14 12:05:59 ddreamer0: they are both about the same the horizontallistview is probably what you want, and it works the same way May 14 12:06:26 Napalm: do you have my solution? May 14 12:06:50 jagruti_: you obviously have not got a clue May 14 12:06:56 jagruti_: go read the sdk May 14 12:07:51 Napalm: sorry but i cant understand what you want to tell me? May 14 12:15:09 I think he means that the task you are trying to achieve is pretty simple. And everything you need to do is just read the "manual" May 14 12:15:46 And manual can be found here May 14 12:15:47 http://developer.android.com/sdk/index.html May 14 12:16:19 vavirta: that is laready i know and seen that May 14 12:17:28 vavirta: but for sdk is not for reading purpose in that.and also my task is not simple..otherwise this much days not spend behind that May 14 12:18:06 vavirta: if you knoew about my problem then you can tell me solution.. May 14 12:18:16 well i won't code it for you May 14 12:18:30 but basicly what you want to do is check if user clicks the star on some row May 14 12:18:56 then attach listener to listview, which will capture your click May 14 12:19:07 then you will get the position, and you know which contact user wants to favorite May 14 12:19:29 vavirta that all things i have done May 14 12:19:48 cool May 14 12:20:03 vavirta: just now i need the code of add to favorite May 14 12:21:54 have you read this tutorial http://developer.android.com/resources/articles/contacts.html May 14 12:21:54 does anybody have any knowledge of a library that can display MS word documents? May 14 12:22:17 How would you separate a layout implementation for 320x480 (180dpi density) resolution and a a 480x800 (233 dpi density) resolution? It seems that when I create a layout-mdpi and layout-hdpi they both read from the first one. May 14 12:22:56 I want to create a view where users need to put in a pin where they previously assigned a pin for the app (5 digits). Just like the ING & ABN AMRO (They are banks) apps. Google did not get me the results I hoped for. Could someone point me in the right direction? Thanks May 14 12:24:04 I haven't ever worked with favorites, but to me it seems that you want to update the starred integer May 14 12:24:53 http://developer.android.com/reference/android/provider/ContactsContract.Contacts.html May 14 12:25:19 vavirta: that is also i know that if we want to favorite then set to 1 in contacts table and 0 for unfavorite but mannualyy how to do that is i dont know.. May 14 12:28:35 vavirta: i have alreay refere those linkbut dont get any idea May 14 12:30:24 well do you know how to use databases? May 14 12:30:49 i have use the sqlite and mysql with the android] May 14 12:31:00 I think you have heard it already, but google is really your friend with these kind of things May 14 12:31:22 ya but y telling me this? May 14 12:34:12 well I don't have time to write code with you, if you can't manage to do it with the links I provided, I'm sorry May 14 12:35:04 hi May 14 12:35:09 vavirta: i think the code will not too much ..but if you know then plz help me May 14 12:35:14 db = test_db.getWritableDatabase(); and still getting red-only DB as exception May 14 12:35:19 it will not take too much time May 14 12:35:20 what can be the error related to ? ;/ May 14 12:37:23 Hi, i have big problems in debugging with the lg optimus speed, can someone help me? May 14 12:39:48 Napalm: sorry i'm trying the horizontalist from the git url you gave me ( https://github.com/dinocore1/DevsmartLib-Android ) May 14 12:40:03 yes May 14 12:40:07 jagruti_: I haven't never do it myself, so I really don't know May 14 12:40:17 but I believe with these links you shuold do it May 14 12:40:25 Napalm: but i'm a bit of a newbie and i don't know if i have to import something manually, the zip includes a demo project but eclipse says i'm missing a folder May 14 12:40:42 Hi, i have big problems in debugging with the lg optimus speed, can someone help me? May 14 12:40:45 how do you normally go about importing external android libraries ? May 14 12:41:29 ddreamer0: its because it has an external lib, just copy over the one java file into your own project May 14 12:42:37 does anyone have a pointer to the syntax for the route command (I know it's built into the toolbox)? The "normal" syntax doesn't seem to work (this is on the emulator, so I should have permission to run it). It always returns "Invalid argument" even with no arguments which I expect to return the current routing table. May 14 12:47:30 is android-toolbox.googlecode.com the source tree for the android toolbox set of commands? I looked at it and it looks like something else. May 14 12:53:47 dac: http://zecke.blogspot.com/2010/06/adding-route-with-androids-route.html May 14 12:55:57 Having proper foreign key support is worth not supporting 2.1 May 14 12:56:24 dada: thanks! May 14 12:57:14 wtf... i think i screwed up an edittext's inputtype May 14 12:57:25 it's masking my password entry, but not showing the character as i type it May 14 12:57:31 and my autocomplete is working May 14 12:57:38 lol May 14 14:07:58 i have an activity with fragments. i have 2 layouts for each fragment. A portrait and landscape one. I don't use onconfigurationchanged. When I rotate in api level 13 my activity rotates and my view and fragment gets redrawn with their respective layouts. but in api level 12 is very buggy and broken it won't redraw on orientation change some times. it throws random inconsistent exceptions, etc etc May 14 14:09:21 how can I resolve this? i HAVE to have api level 12 support, because of certain moron users of the company the app is for. to hard to understand for them to allow auto update of firmware on their tablet's May 14 14:09:47 this app is for samsung Galaxy tab 10.1 only May 14 14:11:56 Blou_Aap: the solution is to drop support for api level 12 May 14 14:11:58 and give the company a $50 rebate May 14 14:12:34 i wish it was that simple May 14 14:12:37 :( May 14 14:13:16 why would the same code work on api 11, 13, 14 and 15 but then trek out on 12 ?! May 14 14:13:51 now i have to try find common ground with code and make a mess of it just to try and fix a stupid rotation issue -_- May 14 14:25:33 hey, I have a gridlayout and would like all the items in the gridlayout to be positioned and centered...how would I do that? May 14 14:29:36 hey guys, does anyone know, how i can convert a timestamp into a string like: HH:MM:SS DD.MM.YYYY May 14 14:29:57 flipchart: SimpleDateFormat May 14 14:30:01 toString(); May 14 14:42:50 hi, May 14 14:42:52 can somebody please explain what is the backend for graphical output, as the linux kernel doesn't contain any gui and would require an Xserver for outputting graphical display May 14 14:45:13 readme: perfect! i failed when converting unix timestamp to javatimestamp (simple factor 1000 -> java uses msecs, unix only secs... :P ) May 14 14:45:28 zenwalkuser: surfaceflinger May 14 14:45:44 hi May 14 14:49:35 Napalm: i'm having trouble running the sample horizontallists from ( http://www.dev-smart.com/archives/34 ) May 14 14:50:04 Napalm: i also tried with https://github.com/dinocore1/DevsmartLib-Android sample projects without success May 14 14:50:11 Keeds, thanks. That part is missing in the android overview from wikipedia May 14 14:51:11 another question, in order to get rid of Gtalk connection and possible backdoor from google, will it be sufficient to just remove market app and gtalk app? May 14 14:51:47 no, it's in there at a very low level May 14 14:52:01 you should probably use meegoblin instead May 14 14:54:41 i'm getting a runtime error, here's what i think is the important line from LogCat: android.view.InflateException: Binary XML file line #32: Error inflating class com.microchip.android.BasicAccessoryDemo_API12.LEDControl I'm not using the LEDControl Class in the java file that ComponentInfo references. May 14 14:55:33 in my test project i use getContext().getResources().openRawResource(R.drawable.karl); to get an InputStream for reading the image. but what i get is a complete different content from another file. But the import of the R class points to the right one. thanks for a hint May 14 14:57:13 Leeds, how deep means lowlevel, it can't be in the linux kernel as that would probably discovered in the source code, so inside davlik? Does this means the google backdoor persits even in custom roms? May 14 14:58:26 O_o May 14 15:00:46 they need to multi-thread the build process for apps May 14 15:00:55 aapt is maxing out one HT slot on one core May 14 15:00:59 then java does the same May 14 15:05:33 zenwalkuser: Leeds is wrong; just building from AOSP doesn't get you any gtalk connections May 14 15:06:29 zenwalkuser: just don't install the gapps and you have no connection to google May 14 15:07:25 lies, google uses obfuscation to sneak stuff into aosp May 14 15:09:14 in my test project i use getContext().getResources().openRawResource(R.drawable.karl); to get an InputStream for reading the image. but what i get is a complete different content from another file. But the import of the R class points to the right one. thanks for a hint May 14 15:12:58 is there any way to center a gridview so that all the columns stretch? May 14 15:13:38 Does READ_HISTORY_BOOKMARKS only apply to the stock Android Broswer? Or would that also include Opera and Firefox? May 14 15:17:03 Jonathan_Eyre: depends on if they use the bookmarks content provider May 14 15:17:33 MDijkstra, what are the gapps, any detailed list of all the components in android available, so far we have linux, davlik, toolbox, clib, codecs, gapps, surfaceflinger ... May 14 15:17:50 I see. May 14 15:18:10 zenwalkuser: like I said, AOSP contains no googley bits May 14 15:19:47 Hello guys, I have a question about screen orientation. I have a ViewPager that was at position 2. When I changed screen orientation, nothing has changed on ViewPager. How does Android know my Page was set at position 2. I try to understand the logic. May 14 15:20:08 Number5: onSaveInstanceState() May 14 15:21:10 onSaveInstanceState(), I haven't implemented this method at all May 14 15:21:17 evancharlton, May 14 15:21:24 right, but ViewPager has May 14 15:21:30 evancharlton, thanks so far it's not easy to find any detailed information about what specific components form aindroid os May 14 15:21:33 really? May 14 15:21:37 I'm telling you to go read about how onSaveInstanceState() works May 14 15:22:01 evancharlton, thank you my friend, I'll read it right away. I really appreciate your help May 14 15:22:02 zenwalkuser: this isn't really the channel for that May 14 15:22:23 zenwalkuser: there are google people watching you *right now* May 14 15:22:39 zenwalkuser: this is the much-overused diagram: http://tech.blorge.com/wp-content/uploads/2008/01/clip-image0021.jpg May 14 15:23:02 lolol May 14 15:23:07 i remember that! May 14 15:23:09 evancharlton: such an ugly diagram :( May 14 15:23:19 Leeds, no prob sice they have a backdoor in this os they probably already know what they want to know from me... grr May 14 15:23:33 evancharlton: which part of that diagram shows the bits owned by Sun^WOracle? ;) May 14 15:23:38 zenwalkuser: ... May 14 15:23:52 Leeds: we'll know that once the trial completes. May 14 15:24:35 Leeds: Oracle is the one which claims there's any infringement May 14 15:25:04 the only possible parts would be in DVM or core libraries May 14 15:25:07 evancharlton, thanks i found this chart but ist doesn#t mention about the software project name, I know there is e.g. toolbox providing basic unix commands, and there is a clibrary, probably glibc, but what about the rest? May 14 15:25:16 yeah, but Oracle also claim(ed) about $725trillion in damages, so we can pretty much discount their opinion :) anyway, this is also offtopic May 14 15:25:45 zenwalkuser: if you're so paranoid that you don't trust the open-source version of the OS to not contain bits which spy on you, you should probably be using Tizen or some other project May 14 15:25:59 zenwalkuser: who knows. As I said, this isn't the channel for this May 14 15:27:08 evancharlton: nope, he should be holed up in mountains May 14 15:27:26 evancharlton, I am just trying to first understand of what components form this OS and which Open source projects are involved May 14 15:27:55 zenwalkuser: check the repository May 14 15:28:01 source.android.com iirc May 14 15:28:03 zenwalkuser: this channel is for app development, not learning about the OS structure... your best bet is to grab the source and start digging May 14 15:28:09 zenwalkuser: so grab the source and start reading May 14 15:28:34 you could also ask in #android, which is general-purpose but less techie - as long as you don't leave 2 minutes later, like you did last time you asked there :) May 14 15:29:01 ok, thanks for the hint, I thought devs can answer this as this knowledge is necessary to understand what they are building software for... May 14 15:29:18 Leeds: isn't #android these days mainly users' channel? ;) May 14 15:29:42 zenwalkuser: if that knowledge was necessary to build apps, then someone did it wrong. May 14 15:29:43 With SQLiteDatabase.query(); is there any way of seeing the SQL statement it produces? May 14 15:29:53 p_l: yes, mainly - but as I said, it's really more of a general-purpose place May 14 15:30:28 when I create a new project from existing samples and choose android_apis > Demo ...I get all kinds of compilation errors...does it use a certain Java runtime version or something? ..how do I know what run time to use if this is the case? May 14 15:31:59 in my test project i use getContext().getResources().openRawResource(R.drawable.karl); to get an InputStream for reading the image. but what i get is a complete different content from another file. But the import of the R class points to the right one. thanks for a hint May 14 15:33:14 maybe that's the main problem nowadays, devs doesn't know about the details of the os they are developing for and users doesn't care about freedom and privacy anymore... May 14 15:33:58 zenwalkuser: you're making the assumption that there's a problem May 14 15:34:17 anyway, this is the last time I'll remind that this is not the venue for this discussion May 14 15:37:19 understood I'll leave May 14 15:38:24 i'd like to programmatically set the toggle button state. i think this will be done through the setChecked method. however, i'm not sure how to disable the automatic check / uncheck portion of the toggle button. how is this done? May 14 15:41:53 override toggle(), don't call super.toggle() May 14 15:44:10 in my test project i use getContext().getResources().openRawResource(R.drawable.karl); to get an InputStream for reading the image. but what i get is a complete different content from another file. But the import of the R class points to the right one. thanks for a hint May 14 15:44:14 Does anyone know how do I know what java version goes with the ApiDemos project? May 14 15:44:37 drindt: clean your project(s) to force a rebuild May 14 15:44:55 john_doe_jr: java 1.6 May 14 15:45:47 how does github's branch diff work? May 14 15:45:50 becuase its...wrong May 14 15:46:03 evancharlton: how did you know that though? May 14 15:46:08 bubbleguuum, i have it and also deleted the R.class but its not solving the problem May 14 15:46:12 john_doe_jr: because it's common knowledge May 14 15:47:02 canadiancow|work: not for a noob May 14 15:47:19 so you try to build it with 1.4, and it doenst wokr May 14 15:47:23 tehn you try 1.5, and it doenst work May 14 15:47:26 then you try 1.6, and it works May 14 15:47:30 lol Settings in 4.0.3.... if you rotate in "Developer options" you get that annoying alert.. May 14 15:47:33 and you have figured it out in 15 seconds May 14 15:47:34 does anyone have experience with the https://github.com/dinocore1/DevsmartLib-Android libraries for making HorizontalListViews ??? May 14 15:47:51 EvilPenguin: what alert? May 14 15:48:06 * Ge0rG gets no alert :( May 14 15:48:13 same May 14 15:48:15 canadiancow|work: the attention about the developer settings :) May 14 15:48:38 i get no alert May 14 15:48:47 is it a tablet? May 14 15:48:51 no May 14 15:48:54 mine is :) May 14 15:49:07 * Ge0rG only knows the cyanogenmod here-be-dragons alert May 14 15:49:27 no cyanogen on this tablet :/ May 14 15:49:33 but my g1 is sporting it :) May 14 15:50:04 + public boolean isAlreadyLaunched() { May 14 15:50:04 + return mLaunched; May 14 15:50:04 + } May 14 15:50:11 sometimes, i want to punch people May 14 15:50:23 so do i... pastie.org ... dot dot dot May 14 15:50:35 im pretty sure if you're calling a method, the app has launched May 14 15:53:35 canadiancow|work: you can never be sure. May 14 15:53:38 How can I calculate the Camera's up vector ? May 14 15:53:43 canadiancow|work: at least it does not "return true;" May 14 15:53:52 Ge0rG that would be... more accureate :) May 14 15:54:12 canadiancow|work: i am curious when mLaunched is false :P May 14 15:54:21 canadiancow|work: http://developer.oesf.biz/em/developer/reference/durian/com/android/internal/os/RuntimeInit.html#isComputerOn() May 14 15:55:31 why is that... May 14 15:57:29 Okay, this is funky. I've got two galaxy nexuses (and a handful of other devices) that I connect to my linux box. But 1 of the nexuses stopped showing up in adb devices (everything else shows up fine). Wuzzat mean? May 14 15:57:35 it is obviously needed so you can know when to call http://developer.oesf.biz/em/developer/reference/durian/com/android/internal/os/RuntimeInit.html#turnComputerOn() May 14 15:57:53 sureaint: you need to enable usb debugging in the prefs? May 14 15:58:53 Ge0rG: it was when I checked before. It's not booting up currently. Actually, both nexuses aren't because I adb sync'd a faulty image, but one of them still responds to `adb logcat` and `adb devices` May 14 16:05:18 what is a good resource for looking at android code? May 14 16:05:54 d.android.com May 14 16:06:22 and the samples, of course May 14 16:06:27 has anyone used the HorizontalListView please ? ( http://www.dev-smart.com/archives/34 ) May 14 16:06:43 wongk-home: I'm there ...how do I download the code though? May 14 16:06:57 i can barely get it to compile, i don't know why it won't compile with all the overrides !?? May 14 16:07:04 Ctrl -C, Ctrl - V May 14 16:07:24 john_doe_jr: source.android.com May 14 16:07:42 hey ddreamer0 May 14 16:08:06 Napalm: hey i'm still going crazy May 14 16:08:08 ;) May 14 16:08:13 want a fix for that May 14 16:08:20 yeah sos May 14 16:08:31 ok, hang on May 14 16:08:50 wow salvation haha May 14 16:09:08 evancharlton: Alright, I've got this activity that I need to flatten...I've tried using gridlayout but I can't seem to figure out how to get it stretched so that it looks centered etc....I'm looking through the samples but can't find what I'm looking for...any ideas? May 14 16:12:25 Napalm: i'm getting errors on any override, in the library's run() and in the test code's overides ( private BaseAdapter mAdapter = new BaseAdapter() { ... ) May 14 16:12:49 JakeWharton: do i need to create a custom toggle button and replace all the toggle buttons already on the layout or can i just override the toggleButton by id somehow? May 14 16:15:05 ddreamer0: that's just differences between java 1.5 and 1.6. You can't run the test activity even? May 14 16:17:33 omg my device keeps reinstalling android when i rooted it May 14 16:17:36 ddreamer0: just remove (or add) @Overrides depending on the complaints, that'll happen for any code between java 1.5 and 1.6: https://groups.google.com/forum/?fromgroups#!topic/android-platform/ve2xfbw0mZY May 14 16:17:52 gua_ould: wrong channel, #android-root for that May 14 16:17:56 ok yhx May 14 16:17:58 thx May 14 16:20:50 sorry got disconected May 14 16:21:14 sureaint ah the overrive is because java 1.5 / 1.6? good May 14 16:22:02 sureaint i also had to remove an override in the library's code ( on the runnable...run() ) May 14 16:22:16 Toggle Buttons from the XML.. how do I make them perform something? or should I just use a onClickListener and stuff like that and make my own toggle logic inside? (im learning android;newbie) May 14 16:23:02 Napalm now i managed to run it but it does nothing...black screen but at least it doesn't crash May 14 16:23:10 wait May 14 16:24:00 yeah sorry May 14 16:27:20 ddreamer0: what api you targeting? May 14 16:27:55 Napalm i'm testing on 4 May 14 16:28:02 4 May 14 16:28:06 jesus May 14 16:28:09 4 O____________O May 14 16:28:10 no wonder why May 14 16:28:13 bugger 4 May 14 16:28:14 lol May 14 16:28:21 let's aim for at least 7 May 14 16:28:28 haha really? hadn't even crossed my mind May 14 16:28:28 for a NEW app, i'd make 8 the minimum May 14 16:28:50 ddreamer0: have you seen http://developer.android.com/resources/dashboard/platform-versions.html May 14 16:29:06 If I have an application that has only a service, I know I can start it from boot…but without having an activity how do I start it otherwise? May 14 16:29:18 how do you want to start it? May 14 16:29:20 8 is 2.2 right? May 14 16:29:22 * Jug6ernaut does 7 May 14 16:29:23 yes Jug6ernaut May 14 16:29:40 at a minimum from the debugger so I can test it May 14 16:29:47 8 did add a lot of good stuff tho... May 14 16:29:48 at zynga, we're supporting anything that was released with a min of 7, and will likely keep doing it, but i think all our new games have been 8 May 14 16:29:52 IMO, 8 is when the APIs really started getting interesting May 14 16:30:27 lol yea May 14 16:32:06 ok, interview time! May 14 16:32:10 gl May 14 16:32:12 hey pfn May 14 16:34:52 so whenever someone adds me in g+, i get an email May 14 16:35:02 but it alwasy comes from a different address, so i cant set it to show images May 14 16:35:07 Napalm ok i tested it on 2.3.3 but i get an error: May 14 16:35:08 E/AndroidRuntime(440): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.devsmart.android.test May 14 16:35:16 stacktrace or gtfo May 14 16:35:17 and several others after May 14 16:35:36 ddreamer0: right May 14 16:35:42 ACTION_PACKAGE_ADDED ? May 14 16:35:49 ddreamer0: now that could be lots of things, let me send you an example May 14 16:35:56 litewait: ... is that a question? May 14 16:36:14 sorry, to start a service that has no UI. May 14 16:36:27 litewait, when do you WANT to start it May 14 16:36:48 at boot… I have that… but when I install it with the debugger May 14 16:37:06 Napalm: does the example compile for you ? if so does it run ok afterwards ? May 14 16:37:29 litewait: you can force it to start with adb shell am start May 14 16:37:37 ahhh May 14 16:37:44 (during development, obviously) May 14 16:38:07 ok, never realize that. thanks! May 14 16:38:50 https://github.com/dinocore1/DevsmartLib-Android has a zip with a pre-made project May 14 16:41:55 Hi all May 14 16:44:13 Napalm gotta go, can i get back to you later? can i write you an email ? May 14 16:44:21 ddreamer0: ffs May 14 16:48:35 When using the Pattern & Matcher classes and going through regex matches with while(m.find()); is there a simple way to replace the current match with a new string? May 14 16:54:41 Napalm ffs? i'll be back later May 14 16:54:42 thanks May 14 16:55:14 Seems like matcher.appendReplacement() was what I was looking for May 14 17:06:23 tried everything to get my service to start via adb. am startservice -n com.blah.blah/.MyService keeps erring with "service not found" May 14 17:07:09 there is an intent filter on my service, I must have something wrong in the service name for adb May 14 17:08:37 addPreferencesFromResource is deprecated. what should I use instead? May 14 17:11:24 Is there an immediately obvious way to see when a Tegra3 is using its fast cores? May 14 17:11:39 PreferenceFragment, PreferenceManager < when you using the API 15 older APIs, I think can you ignoere this. janhouse May 14 17:12:12 My renderscript code is not performing as I'd expect, and I wondered if that related to the problem. May 14 17:18:52 janhouse: it's deprecated on API 11+, it's fine to use before that. (and it's fine to use after that too, really) May 14 17:22:06 in my mind they shouldn't have deprecated them May 14 17:22:51 JakeWharton, greetings to you and thx! May 14 17:23:06 I am a fan of actionbarsherlock. :D Just saying... May 14 17:23:52 What's the most common way for an App to authenticate users to their server? May 14 17:24:03 storkme: it would be nice if there was something in the support library to facilitate using a traditional PreferenceActivity on pre-HC and PrefereceFragments on post-HC May 14 17:24:24 it's not that hard, but I'm willing to bet most people don't know how to do it May 14 17:24:33 janhouse: glad to hear it! May 14 17:25:34 i agree, i don't think it's fair to deprecate something without providing a vvviabble alternativve May 14 17:28:21 the new preference structure is also overkill when you have like 5 preferences May 14 17:28:23 canadiancow|work you there? May 14 17:28:29 always May 14 17:28:35 Question for you May 14 17:28:37 :) May 14 17:28:51 Kind of related to what I was asking before about user authentication ut I want to do it properly not May 14 17:28:52 now* May 14 17:29:05 i have no idea who you are or what you are referring to May 14 17:30:46 If my app requires servers to run May 14 17:30:55 What's a common w ay Android authenticates with the servers May 14 17:31:02 and then just passes around a token afterwords May 14 17:32:11 for an HTTP Web application hosted on remote servers May 14 17:34:00 app passes username and password over an encrypted connection and receives an authentication token once validated May 14 17:35:32 you can also just use basic authentication with an ecrypted connection May 14 17:37:28 wongk Is this outh 2.0? May 14 17:37:31 OAUTH* 2.0? May 14 17:38:03 im not referring to a specific technology May 14 17:38:15 im referring to a process May 14 17:38:22 Ok, thanks May 14 17:38:37 Are Nonces typically used? May 14 17:40:01 which monitor size is better for development: 24" or 27" ? May 14 17:40:15 is that a joke? May 14 17:40:22 no May 14 17:40:45 What might you imagine the disadvantages of a 27" monitor being? May 14 17:41:05 insufficient desktop space. May 14 17:41:06 hi May 14 17:41:07 I dunno, so I ask May 14 17:41:09 of the physical desktop. May 14 17:41:24 Drewch: i assume you will be using SSL for your encryption layer and wouldn't be concerned with that particular detail? May 14 17:41:39 Well then, how about a 24" monitor to which you simply sit a little closer? May 14 17:41:45 SSL will be used yea May 14 17:42:18 how do resource overrides work in lib projects May 14 17:42:23 im getting some... inconsistent results May 14 17:42:25 wongk: Thanks :) should have realized SSL does nonces lol May 14 17:45:20 i implemented an @Override for the onClickListener of a toggle button in hopes that the button would not change it's indicator on / off if i did this and didn't call toggle(); in the listener. this was not the case. how can i have a toggle button not actually toggle until i call toggle() but still get into my onclick()? May 14 17:46:11 I believe the answer is, write your own May 14 17:46:22 maybe the listener can just change the button state May 14 17:46:23 extend! May 14 17:53:28 Zharf: I wrote my own to extend the imageButton, but it obviously doesn't change the styling when cahnging themes. i don't want to change all the toggle buttons that are currently being used to be a new class, just remove the indicator being tied to the onclick (or however it's tied together). isn't there a way to do this directly? May 14 17:56:16 What's the best way to get "Resources" from the current application? May 14 17:57:04 Sorry, I'm retarded … just figured it out: Context.getApplicationContext().getResources(); May 14 17:57:30 wut. A statically available way to acquire a context? May 14 17:57:44 Well damn May 14 17:58:25 well, in theory that's possible. although it'd be very awful programming. May 14 17:59:00 xertoz: public static void main() also uses the forbidden static keyword. May 14 17:59:30 Context.getApplicationContext() is not static …. O.o May 14 17:59:40 it's fine if someone who wrote the code says it's fine. May 14 18:00:09 g00s: oh man... never mind then. May 14 18:00:16 heh May 14 18:03:52 has anyone used this action bar plugin? https://github.com/johannilsson/android-actionbar May 14 18:04:10 library* ^ May 14 18:04:38 we only believe in one action bar around here May 14 18:04:46 hah May 14 18:04:53 The One True Path. May 14 18:05:37 pfn: maybe you will see this http://blog.jelastic.com/2012/05/14/how-fast-are-jvm-based-languages-growing-among-developers/ May 14 18:06:04 wongk: which is? May 14 18:06:18 dschuett: actionbarsherlock.com May 14 18:08:07 protip: abs.io May 14 18:08:47 holy handy shortcuts, batman May 14 18:11:23 Can I register a service for recieving c2dm messages or do I need to make a separate broadcastreciever that starts and talks to the service? May 14 18:20:02 how can i get the default color for an EditText's text color attribute for whatever the current theme happens to be? May 14 18:22:18 I'm looking at providing a service that reads all browser activity and writes it to a log, much like X3Watch. May 14 18:22:50 i have a text watcher that turn the text back to "black" under certain conditions, but you can't see the text with the Honeycomb default black theme. is there a way to get the default color value? May 14 18:23:16 I can see how to read the logs for the regular browser from the ContentResolver + Browser.BOOKMARKS_URI to read the data in history. May 14 18:24:17 Is there a way to have this information "fire" an activity? Or, if there isn't (which I don't suspect there is) is there a way to query only the History entries that happened in the last hour or minute?? May 14 18:24:38 what monitor is better for eyes: IPS, PVA or TN? May 14 18:26:34 Might not be the right channel, but has anybody got html5 audio working in the android browser? May 14 18:26:45 It's weird, html5test.com says MP3 is supported, but it doesn't work for me. :( May 14 18:28:09 Azelphur, maybe that website's mobile version is buggy? May 14 18:28:21 maybe May 14 18:28:40 Azelphur, can you give us the link? May 14 18:28:57 to my attempt at using the audio tag, or to http://html5test.com? May 14 18:29:45 Does anyone know how to center a gridlayout?....gridlayouts don't have weigths May 14 18:38:19 anyone using the Sherlock ActionBar? May 14 18:48:36 I am May 14 18:49:36 heh. May 14 18:50:49 Does anyone know how to order or limit the results from Cursor mCur = activity.managedQuery(Browser.BOOKMARKS_URI, May 14 18:50:49 Browser.HISTORY_PROJECTION, null, null, null); May 14 18:52:00 I'd like to ORDER BY DATETIME ASC WHERE DATETIME-CURTIME() < 3600 May 14 18:52:07 Or something similar... May 14 18:55:08 hi guy May 14 18:55:10 *guys May 14 18:55:31 Jonathan_Eyre: you write where before the order by anyway May 14 18:55:47 and no, I don't have an answer to your actual question, of course. May 14 18:56:30 Jonathan_Eyre: see all those "null"s that you passed in? Don't do that. May 14 18:56:35 I'd imagine it's something to be done with the first 2 nulls though, which were supposed to be the where clause string and the bind parameters May 14 18:56:47 the last one was the order by, if memory serves May 14 18:56:57 I'm writing a simple preference screen by extending PreferenceActivity, but it seems addPreferencesFromResource is now deprecated. I don't want to use the headers design, I need only three simple preference entries. should I use PreferenceActivity anyway, even when the method is deprecated? or should I add a PreferenceFragment to an activity? May 14 18:57:00 Is there an OAUTH Library for server side OAUTH? May 14 18:57:33 cd1: It's deprecated, since PreferenceFragment is now the way to go. if you need to support cd1: try to use the fragment, just to get into habits of using fragments. It's not very complicated to do, the preferencefragment page holds a simple basic example May 14 18:58:05 oh yes, I guess pre-HC are like 90 % of android devices :-p May 14 18:59:17 SimonVT, alankila: thanks for the tip, I'll use a fragment anyway. I just thought it was useless to create an activity with only a fragment inside :-) May 14 18:59:20 * alankila imagines the android-support jar provides the preferencefragment also. Too bad it sort of sucks otherwise May 14 18:59:34 It doesn't May 14 18:59:44 badly named things imho. Confusing. May 14 18:59:57 They should have used SupportFoo everywhere. Like SupportActivity instead of FragmentActivity May 14 18:59:58 and I don't want to support pre-HC devices, I'm making this app only to myself (for now). May 14 19:00:14 when you come to the support library the first time you will be hellishly confused at first, I predict May 14 19:00:47 anyway, all spilt milk and no sense to dilute it with my tears May 14 19:01:09 It's confusing since people don't realize that the support lib is just a backport of the official api May 14 19:01:16 Very few changes are needed May 14 19:01:43 i think most of the os should go in the support lib :) May 14 19:02:06 I sort of agree. At least android would be able to evolve if that happened May 14 19:02:41 what would be better for a sample that will be triggered many times (for example in a game), a MediaPlayer or just an AudioTrack? May 14 19:02:42 i said that toung in cheek, but yeah - google really needs a way to be able to update more core components, quicker, easier May 14 19:03:14 when screen orientation is changed, is it onPause or onStop that gets run? maybe even both? May 14 19:03:39 joel135: onpause, onstop, ondestroy ... May 14 19:03:52 the whole damn activity dies by default May 14 19:04:15 what about visualizing .swf files on an android app? i'd need a WebView? May 14 19:04:32 webview and a flash player. Not a good combination. May 14 19:04:58 nothing is a good combination with swf. May 14 19:05:03 ahah, yeah i agree May 14 19:05:11 rm sounds like a good combination with swf May 14 19:05:50 but this business i know, have a bunch of .swf files created over the years, like 1 GB of them, so they can't recreate them in another way May 14 19:06:09 Just design and implement a swf player that uses opengl or the canvas or something, no webview needed. May 14 19:06:38 hey there, I'm having trouble with seek bars. ^^ i want to update a textview onSeekBarChange, which won't work... May 14 19:06:40 yeah I heard the swf api is now documented and freely available. gnu tried to reimplement it with a project for like 5 years, I doubt they got anywhere May 14 19:06:43 rm is a variation of nothing ;) May 14 19:06:55 pragma-: ok May 14 19:07:10 efforts to get swf working using non-adobe software would subjectively appear to cease doing progress after they are capable of playing youtube May 14 19:07:32 http://pastebin.com/huApVT7J thats how i was thinking it should work May 14 19:08:07 alankila: i hope so :) May 14 19:08:14 Cor3_: looks good to me May 14 19:08:34 doesn't work. :/ May 14 19:08:54 textview hates me. ^^ May 14 19:09:06 No @Override there May 14 19:09:18 maybe you failed to actually override, didn't it get the SeekBar as argument when you implement the correct method May 14 19:10:20 and the method was supposedly called onProgressChanged too May 14 19:10:29 maybe you have to check again what you are doing May 14 19:11:03 aint sure, ill go through what you just said. :D May 14 19:12:16 Do any one here have D3 the retail version ( it means the box ) May 14 19:12:28 Cor3_: to be sure, you should have something like this: seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { ... }); May 14 19:12:52 the part in ... must have 3 methods that actually implement this interface May 14 19:13:09 i used sdelay.setOnSeekBarChangeListener(this); May 14 19:13:24 where delay obviously is my seek bar. :D May 14 19:13:37 sdelay* damn that mac autocorrect May 14 19:14:42 fine. But you are supposed to implement the 3 methods then too May 14 19:14:50 you must have them for that to compile May 14 19:15:21 does anyone have an opensource application or example how to let an application handle specific file types? I am struggling and no matter what I write into the manifest clicking on the downloaded file never works :/ May 14 19:17:23 the 3 methods are onSeekBarChangeListener, onProgressChanged and... ? May 14 19:17:41 Why don't you look them up. May 14 19:17:58 More to the point, how can that compile if you don't even have them? Did you let eclipse to autogenerate them and not notice? May 14 19:19:11 i let eclipse implement what it thinks is necessary look over what it implements then May 14 19:19:24 is it normal to have a login screen with a "guest" button in case a user doesn't want to register to be able to use the app? May 14 19:19:35 a "guest" in this case would have limited capabilities May 14 19:19:42 no May 14 19:20:01 what is normally done? one forces the user to register? May 14 19:20:03 Why not default to guest, and kindly ask the user to log in to activate more features and whatnot May 14 19:20:17 oh ok May 14 19:20:22 so, they just run the app May 14 19:20:42 and when they come to a feature that requires credentials, then ask them to enter them May 14 19:20:56 Something like that May 14 19:21:04 gotcha May 14 19:21:08 I'm a big fan of the sign-up with Facebook/twitter etc May 14 19:21:15 users seem to like it May 14 19:21:22 why not sign up with google? May 14 19:21:23 I guess the flip side of that is that one would need some kind of setting where the user can "manage their account" right? May 14 19:21:30 much more likely they'll have a google account than a fb account May 14 19:21:43 canadiancow|work: I agree. Google is even better tbh May 14 19:21:45 alankila: http://developer.android.com/reference/android/widget/SeekBar.html tells me that i only need onSeekBarChangeListener, or am I stupid? May 14 19:21:53 Well, really it depends on what you're trying to get from the user. May 14 19:22:12 credit card number May 14 19:22:17 Cor3_: OnSeekBarChangeListener has 3 methods May 14 19:22:37 -> yes, i am stupid. :D May 14 19:22:47 once a user has been authenticated, does one have the app authenticate them every time they consume something on a server? May 14 19:23:22 redbull time =\ May 14 19:23:28 canadiancow|work: SSN? May 14 19:23:30 i am le tired May 14 19:23:40 hwrd|work, i was going to say something like that, but it's US-only May 14 19:24:20 DammitJim: Nah. Just store an auth key or something like that. May 14 19:24:28 Or store their password (in plaintext only, though). May 14 19:25:03 hwrd|work: as if there was an android to securely store data ... May 14 19:25:04 my problem if that the credentials are only valid for a certain amount of time May 14 19:25:12 anyone know how to fix the "Failed to install Audio.apk on device '015A48271900C021': Unable to open sync connection!" error? May 14 19:25:13 (apart from personal certifaces) May 14 19:25:33 yo tnzr i have ur serial number now May 14 19:25:36 i can h4x u May 14 19:25:46 plaisthos: eh. that's what account manager is for May 14 19:25:54 tnzr: lololol May 14 19:26:20 sorry should I be worried or something? :) May 14 19:27:29 hwrd|work: last time I checked it stored the data unecrypted, so I gain nothing from using it but I will check again May 14 19:27:54 hello, i understand that android can choose the right GUI layout if there are 2 xml files in /layout and /layout-land May 14 19:28:04 tadaaaaa, it worked May 14 19:28:12 thanks guys <3 (nohomo) May 14 19:28:30 but how can i load activity1 when in portait and activity2 whenn in landscape ? May 14 19:28:55 That sounds a lot like doing it wrong May 14 19:29:09 plaisthos: really? I didn't think it did. And even if it does, the docs probably tell you to cipher whatever anyways May 14 19:29:53 what does android:columnOrderPreserved="false" mean? May 14 19:30:47 hwrd|work: yeah, I but I found so far no good library for encryption my settings. And I don't want to implement the crypto stuff myself. It is too easy to do it wrong May 14 19:31:50 so does anyone know how to fix that sync error? May 14 19:34:58 plaisthos: Eh? May 14 19:35:15 plaisthos: at least base64... May 14 19:35:39 hwrd|work: base64 would be snakeoil :) May 14 19:36:12 bouncycastle? May 14 19:39:10 storkme: yes, and then I also need a good pw<=>cryptokey generator, choose a cipher in the right mode, somehow check that the decrypted content is right and so on. And if I make an error in one these implemententation details the implementation of encryption might be broken May 14 19:40:21 plaisthos: hahaha May 14 19:41:30 I love when companies say they don't store plaintext passwords… but then later you find out they Base64 encoded them. May 14 19:41:34 It's like -___- May 14 19:41:55 hwrd|work: hehe May 14 19:42:55 hwrd|work: If someone asks me I will tell them my data is double rot13 encrypted :) May 14 19:44:04 plaisthos: hahahaha wow May 14 19:55:25 android app to monitor your dog http://www.theverge.com/2012/5/14/3018822/fujitsu-dog-collar-cloud-pet-management May 14 19:55:49 Toast.makeText() in onStart(): why doesn't it display a toast? May 14 19:56:14 .show() May 14 19:56:40 ... May 14 19:56:45 * chrizc facepalms epically. May 14 19:56:51 how. did. I. miss. that. May 14 19:57:02 thanks. May 14 19:57:14 "Apple patches Siri, no longer says Lumia 900 is 'best smartphone ever'" … love it May 14 20:00:24 chrizc: there's a Lint rule for that now, IIRC May 14 20:00:27 .show() should also be in the topic :0 May 14 20:00:40 evancharlton; hm? May 14 20:01:01 hello, i have a project that compiled just fine, now it doesnt anymore. eclipse keeps complaining that R.layout.main is not defined, but if i use com.mypackage1.R.layout.main, it accepts it... any idea y ? I prefer not to go back and change the 100 R. ref ... May 14 20:01:15 chrizc: for .makeText(..) without .show() May 14 20:01:23 evancharlton; Lint? May 14 20:01:27 asterisk-Tester: you imported the wrong R May 14 20:01:42 chrizc: https://www.google.com/search?q=android+lint May 14 20:01:57 ah. May 14 20:02:36 evancharlton: what do u mean ? under /gen i have com.mypackage1 and inside R.java i also have com.mypackage1 ... ? May 14 20:02:53 package com.package1; May 14 20:05:28 asterisk-Tester: look at the top of your .java file. I bet it has import android.R instead of import com.mypackage1.R May 14 20:07:26 evancharlton: yes sir that was it :-) May 14 20:07:44 but i swear i didnt touch that line, how come it changed by itself ? May 14 20:08:02 the eclipse gods decided it for you May 14 20:08:07 like they do with many things May 14 20:10:19 xorgate: yeah seems so, but do u know on what action ? could it be on a clear project or so ? or it should be smthg else ? May 14 20:10:40 idunno i ditched eclipse a long time ago May 14 20:25:57 does anyone know how to postion a gridlayout so that it is centered and looks nice? May 14 20:32:12 Alguem ja trabalhou com mapas offline ? May 14 20:32:26 Someone already worked with offline maps? May 14 20:35:30 hey guys May 14 20:35:33 one more question today >.< May 14 20:36:10 anyone know of a good tutorial series for android im bored at work lol May 14 20:36:13 how to adjust a textview's height propperly to its content. wrap_content is somehow only working for some lines, but not for longer texts.. May 14 20:36:47 Someone already worked with offline maps? May 14 20:42:46 boys i need help! it's urgent! May 14 20:43:00 best not waste time then May 14 20:43:31 What if there are girls here. May 14 20:44:11 Obviously it's a "boy problem" May 14 20:45:53 lolz May 14 20:46:11 how the hell to display longer texts ( i mean like 5-6 lines :D ) in android? :D May 14 20:47:21 Aeefire: TextView? Try setting android:singleLine="false" May 14 20:47:30 did it.. May 14 20:47:52 Could you pastebin your layout_ May 14 20:47:53 nothing worked. it cuts the text between 3rd to 5th line May 14 20:48:00 sec May 14 20:49:09 skyfax http://pastebin.com/WhGVTHPG May 14 20:49:18 i've attached the style faq_border at the bottom.. May 14 20:54:09 someone from Brazil? May 14 20:55:00 charge on card for: HTTP://GIT.IO/CONTACT 4157354488 May 14 20:55:02 i was like "wtf" May 14 20:55:07 turns out it's github's new "description" May 14 20:55:26 why do I get an NPE here? http://pastie.org/private/7zvh0afdshfbaplisu0ktg (NPE is denoted in the code. First code block extends the second.) May 14 20:56:53 skyfax .. anything found yet? May 14 20:59:33 never mind - needed to modify the textview inside onStart, not onCreate. May 14 21:00:20 Aeefire: You're using wrap_content quite a bit, e.g for the scrollview height/width and linearlayout. If not explicitly needed I'd change that to fill_parent / match_parent May 14 21:00:42 Hi, I'm creating a Menu but it items are coming up as 'false,false,false' what's happening? http://pastebin.com/hBDiJK0V May 14 21:00:44 it's needed as it's a dialog and i don't want it to fill up the whole screen.. May 14 21:00:46 Aeefire: Also, I wouldn't place layout_width or layout_height in styles, it makes the layout a bit hard to read May 14 21:01:05 hm.. worth a thought May 14 21:01:24 Aeefire: I would try to take out the other elements and try the large textview alone with fill_parent as height May 14 21:01:31 layout_height* that is May 14 21:01:32 found any solution to the May 14 21:01:36 hm. May 14 21:01:52 but i actually need the whole thing :D May 14 21:01:56 Hello. May 14 21:02:03 Aeefire: It's for testing to see if that makes it work May 14 21:02:10 Has anyone ever worked with the Novoda libraries at all? May 14 21:04:06 skyfax ok, with commenting out all other elements the height is fine.. now trying to reenable one by one May 14 21:04:52 kg020: Aren't the items you are adding to the menu already part of the main_menu resource? May 14 21:05:06 skfax, yes. May 14 21:05:16 kg020: Then you can remove line 2-7 May 14 21:05:46 skfax, it still comes up as 'false false false' May 14 21:06:12 kg020: Could you pastebin your menu resource? May 14 21:07:03 skfax, http://pastebin.com/L0JBj17A May 14 21:08:37 skfax it seems to be all about the relative layout on top.. May 14 21:08:47 kg020: "@+string/Home": You need to define the strings you reference separately in e.g. strings.xml under the "values" directory May 14 21:09:49 kg020: Also, layout_width/layout_height should not be part of the menu XML element May 14 21:10:47 kg020: http://developer.android.com/guide/topics/resources/string-resource.html#String May 14 21:11:09 skfax, ok - re. layout width/layout height : eclipse was giving me an error. May 14 21:12:01 Aeefire: Why do you need the relative layout? May 14 21:12:15 skfax ... lol, when wrapping the textview into its own linear layout it works. May 14 21:12:25 it would have been to reuse an old style May 14 21:12:32 have a consistent user experience ;) May 14 21:14:09 skfax, arranged thanks - the menu is coming up vertically, is there some way to make it come up horizontally? May 14 21:14:52 kg020: Are you on Android 4.0? May 14 21:15:06 skfax, yes May 14 21:15:17 does it need to be an actionbar? May 14 21:21:49 hia room, is it possible to rig a real hand held up to act as an avd so one can quickly mobilize test code to it?? would be nicer than compiling and transfering over and over again i imagine... May 14 21:23:12 er .. do avds not need to transfer now? o.O May 14 21:24:04 when i click run in eclipse it compiles transfers to the avd and runs all as one operation..no manual file dragging ina seperate program (explorer for windows users...heh) May 14 21:24:26 kg020: Not entirely sure what triggers vertical behavior / old style.. It's related to your minSdkVersion and targetSdkVersion + how your app is set up. http://android-developers.blogspot.de/2012/01/say-goodbye-to-menu-button.html May 14 21:25:09 ah, eclipse, i see the root of your problems May 14 21:25:58 dont see hwo that would be causing my problem of having to do more work than i'd like to to get code running on a real handset... May 14 21:26:08 Stephini: idk, that's how I develop on my phone. Just plugged in in devmode. May 14 21:26:21 press run in eclipse => launches on device May 14 21:26:21 you could probably write a 'run' code to run an adb script to push the pkg to your phone May 14 21:26:35 dev mode?? is that the second option on the menu/? May 14 21:26:57 when i dock my android i mean May 14 21:27:42 "USB debugging connected" << that is the option i'm refering to alankila May 14 21:30:06 sure I mean that the adb is operating in the development setting May 14 21:30:18 um... or the usb jack. Whatever. May 14 21:32:57 what was the hotkey to switch to landscape in the avds again? :D May 14 21:33:30 hrm...i dont think this is the pc i rooted my android on...do i need to do anything special on this machine to make it run in debug with my handset or does the handset just need to be in dev mode?? May 14 21:34:26 Stephini probably install your device's drivers... but sometimes they are installed automatically May 14 21:34:53 otherwise they're downloadable on the OEM's website usually May 14 21:37:25 Stephini: http://developer.android.com/guide/developing/device.html May 14 21:37:40 any android device w/ market can be used to develop apps on, regardless of rooted status May 14 21:38:00 you just need to enable USB development and/or have the drivers installed if you're on windows May 14 21:39:04 lov yeah all i meant by that was that i had done all the debug and drivers stuff on the old(er) machine...not this one..so didn't remember if i had to do anything special... May 14 21:39:37 right and all I did was link you to the docs that explain how to do USB development. May 14 21:40:51 kk..it seemed like you were saying that because i had mentioned the rooting...i thought maybe you thought rooting was needed to dev...heh May 14 21:41:00 all in all it's all just bricks in the wall May 14 21:41:04 i thought maybe you thought i thought* May 14 21:41:59 Quick question - will >> str.replaceFirst("/{[A-Z_ ]+}/i", String.valueOf(otherStr)) << replace all occurences of "{A TO Z HERE}" with the value of otherStr? May 14 21:42:28 is there a way to know if my xperia play was auto installed or if i hafta get the drivers myself?? or does one just assume it's not auto installed and try to find it and assume it was auto after 3 days of searching with no dl links?? heh May 14 21:43:20 n20: consider what "replaceFirst" would do? May 14 21:43:27 vis a vis replacing all instances of something May 14 21:43:58 seing the first i assumed it would do it once then go "meh" and give up.. May 14 21:44:05 Stephini: it physically hurts to try to read what you're typing. Try again. May 14 21:44:33 oh hey May 14 21:44:38 lov: Yeah, I just want to get hte first {} each time, a Pattern might be better off though May 14 21:44:41 I did a google search for "Sony Xperia adb driver" May 14 21:44:42 and wow May 14 21:44:44 there were results May 14 21:44:46 holy lol May 14 21:44:49 Shocking! May 14 21:45:06 lov i was asking if there was a way to check if they are installed or not...that is all May 14 21:45:27 Stephini: plug the phone in, open device manager, see what the device shows up under May 14 21:45:41 ahh kk May 14 21:45:44 you don't really "install" drivers as much as you refer to them May 14 21:45:58 you can download drivers through the android sdk, but they may or may not work with your phone without some tweaking May 14 21:46:03 it's best to just download them when in doubt. May 14 21:46:15 n20: why not do something like {.*} ? May 14 21:46:38 and/or {[/c/s]*} May 14 21:46:41 lov: Was the * greedy, as in it will stop when it hits the }? :-) May 14 21:46:41 or something like that May 14 21:46:49 s/was/is/ May 14 21:46:50 can't stop won't stop May 14 21:46:56 you'd need to do May 14 21:46:56 lov :@ May 14 21:46:59 T_T May 14 21:47:06 {[^}]*} or something May 14 21:47:07 idk May 14 21:47:07 Mooo canadiancow May 14 21:47:11 hello canadiancow May 14 21:47:19 n20: pick up a program called the regex coach May 14 21:47:21 lov g+ May 14 21:47:23 it's free and it's super useful May 14 21:47:26 lov: Yeah, that should do it. :) May 14 21:47:31 lov: Works in Linux I hope. ;-) May 14 21:47:38 oh idk May 14 21:47:45 if you're in linux perl -pie or w/e May 14 21:48:18 canadiancow: goddamned fantastic May 14 21:58:50 What's the difference between the azimuth and the yaw ? May 14 22:00:31 CVirus: nothing? May 14 22:00:44 or rather, where is this from May 14 22:00:50 need some context :) May 14 22:01:03 and ignore my "nothing" May 14 22:01:28 canadiancow: I need to calculate the camera's up and look vectors and I'm provided with a matrix that uses the yaw, roll and pitch May 14 22:01:49 so yaw is likely a speed May 14 22:01:53 in degrees per second May 14 22:01:57 or something like that May 14 22:02:11 whereas azimuth would be a position in degrees May 14 22:02:21 !memo tpn tracking app will be moved to extensions you can ping me also about that because i would love to be a part of that :D May 14 22:02:33 canadiancow: how can I calculate the yaw ? May 14 22:02:33 aqu: understood May 14 22:02:44 i thought you just said you were provided with that :S May 14 22:02:48 does your device have a gyro? May 14 22:03:02 accelerometer gives you angular acceleration, gyroscope gives you angular velocity May 14 22:03:07 canadiancow: I'm not provided with the values .. sorry you misunderstood me May 14 22:03:10 lov: *uck :D May 14 22:03:18 oh... well what do you have? :) May 14 22:03:51 I'm provided with matrix R that contains the yaw, pitch and roll as variables May 14 22:03:54 canadiancow: ^ May 14 22:04:19 canadiancow: if I multiply this matrix with [0, 0, 1] .. I get the look vector May 14 22:04:19 ok so you have the yaw May 14 22:04:35 canadiancow: no I have them as variables .. I need to retrieve their values May 14 22:05:01 canadiancow: for instance cos(yaw) * cos(roll) May 14 22:05:13 oh May 14 22:05:16 i dunno google it May 14 22:05:30 i did some stuff with this in university making a controller for a small UAV May 14 22:05:41 but that knowledge left me right after i graduated :) May 14 22:05:54 getOrientation will return the azimuth, pitch, roll May 14 22:06:06 ok May 14 22:06:25 canadiancow: this is why I was asking what's the difference between the azimuth and the yaw May 14 22:06:45 yaw has two meanings May 14 22:06:58 1. orientation around the vertical axis. == azimuth May 14 22:07:06 2. angular velocity around the vertical axis May 14 22:07:10 aha May 14 22:07:21 so it's the azimuth that I need May 14 22:07:22 if its coming from a getOrientation() call, it's definitely giving the orientation :) May 14 22:07:29 canadiancow: that clarified everything .. thanks a lot really May 14 22:09:06 np May 14 22:18:00 When making a Flashable Zip for CWM, Do i have to include the "Cert.rsa" "cert.sf" and "manifest.mf" ? and which one do i have to include? May 14 22:19:03 Where do I find/make the right cert, manifest files? May 14 22:22:02 Frikish: #clockwork or #clockworkmod or whatever it is May 14 22:22:06 definitely not as bad as I thought it would be, now for interview #2 May 14 22:22:27 ok, thanks May 14 22:28:01 evancharlton, non of them worked :P May 14 22:28:58 pfn: have an interview tonight myself... also had one friday and one tomorrow :P May 14 22:29:24 wongk-home, good luck tomorrow May 14 22:29:50 pfn: who are you interviewing with? anyone i would have heard of? May 14 22:30:12 one yes, the other probably not May 14 22:30:29 anyway, time May 14 22:30:35 * pfn & May 14 23:24:48 if i want to use a new layout, such as GridLayout, where do I import the support library? May 14 23:26:19 hesperaux: right click your project in eclipse and choose Android > Add Support Library May 14 23:26:56 Napalm, is there another way? the automated way will not work unless I run eclipse as Admin May 14 23:27:53 so why not run it as admin May 14 23:27:54 lol May 14 23:42:06 The following classes could not be found: May 14 23:42:06 - android.support.v7.widget.GridLayout (Change to android.widget.GridLayout, Fix Build Path, Edit XML, Create Class) May 14 23:42:23 I don't know what I'm missing here May 14 23:44:11 the v7 support lib is already installed May 14 23:44:15 i can update to 8 May 14 23:44:39 api level 7 doesn't even support foreign keys proper :( May 14 23:44:55 7 needs to go May 14 23:45:05 what i want is GridLayout May 14 23:45:13 there is such a thing as GridView May 14 23:45:16 have you tried this May 14 23:45:25 i'm targetting 4.0.3 with a minSDK of 7 May 14 23:46:16 No i haven't. I didn't know they were the same thing. GridView works. Can I make cells span different widths/heights with GridView? May 14 23:47:14 I think you can have a variable width for the vertical, but a fixed for horizontal. though I could be wrong. May 14 23:47:32 Usually I use LinearLayout with weights for this kind of thing unless it's absurdly large. May 14 23:47:41 gridlayout appears to allow for various sizing and positioning May 14 23:47:53 well, this layout is going to be inflated as a ListView item May 14 23:48:06 I didn'te ven know GridLayout existed May 14 23:48:07 i was trying to avoid using weights because of that May 14 23:49:19 my goal is just to make pretty list items with several fields of data in them May 14 23:49:32 i don't really mind how I accomplish that. is there a better way? May 14 23:49:35 have an idea for an app, but unsure whether or not something similar is out there May 14 23:49:43 couldn't find anything May 14 23:49:44 pj101, search the market May 14 23:49:57 and then make it anyway :) May 14 23:50:02 heh yea May 14 23:50:10 I'm thinking I might just be calling it the wrong thing May 14 23:50:13 anyway May 14 23:50:29 the basic idea would be to turn a phone into a CB radio May 14 23:50:47 hesperaux: i've done pretty well with RelativeLayouts. May 14 23:50:49 like what truckers use May 14 23:51:04 readme, i'll give that a try then May 14 23:51:04 and you just broadcast to anyone within a certain range May 14 23:51:15 pj101, i looked for an app like that once May 14 23:51:19 i found a couple of options May 14 23:51:36 look for walkie talkie, two way radio, or intercom May 14 23:51:38 nothing I found let you do it anonymously to a bunch of people May 14 23:51:40 those are some key words to try May 14 23:51:54 yeah, you're probably right May 14 23:51:58 sounds cool May 14 23:52:34 youll have to have a server for it though, i would think May 14 23:52:42 would that just not work at current internet speeds? May 14 23:52:59 yeah I don't know about those things May 14 23:52:59 it could work with some delay and good voice compression May 14 23:53:20 I was a comp sci major for 3 years like 5 years ago May 14 23:53:33 it is slow coming back May 14 23:53:55 Hi, I'm trying to use FragmentList but it is bringing up an error on line 26 http://pastebin.com/h8VKyN9a what is the problem? May 14 23:53:55 sounds like this might not be the best project to start out with May 14 23:54:00 I'm going to go back to school in a year or 1 1/2. May 14 23:54:12 pj101: what kind of app..? May 14 23:54:20 (it is telling me that the constructor is undefined) May 14 23:54:24 cb radio? May 14 23:54:29 kg020: then define it May 14 23:54:31 yeah May 14 23:54:36 kg020: rule of thumb: error message is usually right :) May 14 23:54:46 haha yes, but shouldn't be already defined? May 14 23:54:49 nope May 14 23:55:03 hm lol ok. May 14 23:55:04 if it was there'd be no message May 14 23:55:07 trust them May 14 23:55:11 I don't think arrayadapter looks for a layout, does it? May 14 23:55:15 they have almost never lied ot me in java, I swear. May 14 23:55:29 readme: what do youthink? May 14 23:55:34 I believe passing a layout to arrayadapter is optional May 14 23:55:42 pj101: i think it would require some special hardware. May 14 23:55:55 oh, why's that? May 14 23:56:18 because most android devices don't have radios that can just communicate over CB bandwidths at least without serious hacking May 14 23:56:24 pj101, if you're literally trying to broadcast on CB...yeah May 14 23:56:37 readme: yeah, I didn't literally want cb radio May 14 23:56:40 there might be someone who makes say, a bluetooth or usb cb radio module. May 14 23:56:42 oh May 14 23:56:43 just emulate it May 14 23:56:46 in that case I suggest you try using XMPP. May 14 23:56:55 or maybe look up some VOIP libs May 14 23:56:59 should be easy. May 14 23:57:07 just will take effort, thats all. May 14 23:57:08 okay, I just wanted to make sure it was at least possible May 14 23:57:13 anything is May 14 23:57:16 even real CB is possible. May 14 23:57:28 deja vu May 14 23:58:09 aright cool, I'll be back in 6 months after I relearn java May 14 23:58:13 bah May 14 23:58:14 try 1 week May 14 23:58:23 lol May 14 23:58:30 start coding today May 14 23:58:31 wuss May 14 23:58:48 yeah I spent like 2 hours today downloading all the shit for developing May 14 23:58:49 you can have a voip client up in a week, I'll bet you money May 14 23:58:53 oh, that's the hardest part May 14 23:58:54 don't worry May 14 23:59:03 getting it set up the first time, that killed me 2 years ago. May 14 23:59:33 cool, well, thanks for the encouragement May 14 23:59:34 readme, you make me feel lame. i've been working with this android stuff for more than a week and i don't have my app done yet May 15 00:00:31 hesperaux: uh, it took me a long time May 15 00:00:37 i'm exaggerating May 15 00:00:44 hehe May 15 00:00:49 but you definitely want to feel like it will be tomorrow May 15 00:01:07 indeed May 15 00:01:22 I just worked around 15 hours straight May 15 00:01:29 then drank almost a whole bottle of wine May 15 00:01:34 <3 wine May 15 00:01:37 then I jumped in the freezing north east atlantic. May 15 00:01:44 now i'm eating pizza May 15 00:01:57 sounds like a healthy lifestyle May 15 00:02:06 yeah May 15 00:02:07 pj101, necessary May 15 00:02:08 readme, api says ArrayAdapter(Context context, int textViewResourceId, T[] objects) is allowed... May 15 00:02:22 kg020: yes I believe the view parameter is optional May 15 00:02:32 there should be another constructor that doesn't require it. May 15 00:02:42 kg020, you seem to be passing in a fragment layout, not a text view May 15 00:02:53 although that wouldn't error until runtime in my experience May 15 00:03:03 since both are int ids May 15 00:03:20 ArrayAdapter works fine with any view May 15 00:03:29 your listview is what inflates the fragment layout i believe May 15 00:03:48 what is up with all the people on the left May 15 00:03:57 do they go through their chat logs later or something May 15 00:04:01 on my irc client, they aren't on the lft May 15 00:04:03 i suppose it could create a fragment for every element in the array... May 15 00:04:06 they are not visible. May 15 00:04:09 but i doubt that's what you want to do May 15 00:04:16 there is a strong culture of idling on irc. May 15 00:04:19 pj101, i've only met about 8 people here May 15 00:04:29 sometimes people will lurk and answer you suddenly, but only if you say the right things. May 15 00:04:29 it creeps me out May 15 00:04:33 haha May 15 00:05:03 lol May 15 00:05:05 there are over 600 people in here May 15 00:05:10 hesperaux, setListAdapter(new ArrayAdapter(this, R.id.device, DEVICES)); doesn't work either. (R.id.device is a TextView) May 15 00:05:15 and 4 chatting May 15 00:05:19 you're at a podium, but having a private conversation that's being recorded pj101 May 15 00:05:21 think of it that way May 15 00:05:29 or you're talking in a cafeteria May 15 00:05:45 hmm May 15 00:06:02 do any irc rooms boot idle users? May 15 00:06:24 most channels do not care. May 15 00:06:28 pj101, never heard of that May 15 00:06:33 IRC is awesome May 15 00:06:35 why taint it May 15 00:06:58 the natural state of most channels is idle May 15 00:06:59 i dunnno, maybe people would talk more if they had to earn their keep May 15 00:07:22 there is no earning your keep here. May 15 00:07:28 kg020, i would create the ArrayAdapter on the previous line and do it piecemeal. That might make it more clear May 15 00:07:42 pj101, that would suck May 15 00:07:45 or I guess it'd be helpful to see lists of active users in rooms instead of just overall users May 15 00:08:05 be nice and don't ask excessively dumb questions and you will be fine in this channel. Don't ask about roms, or rooting :) May 15 00:08:08 they have scripts for that, pj101, but you have to lurk to be aware of Idle status :D May 15 00:08:22 what's a rooted rom thing readme? May 15 00:08:29 #android-root May 15 00:08:32 lol May 15 00:08:33 Still says that the arrayadapter is undefined, for some reason. Does this have to do with me extending FragmentList onl? May 15 00:08:39 only* May 15 00:09:05 oh I will lurk up a storm May 15 00:09:38 kg020, what's the exact error now? May 15 00:09:38 http://developer.android.com/reference/android/widget/ArrayAdapter.html -- point to which constructor you are using May 15 00:10:10 hesperaux, The constructor ArrayAdapter(BTFragment, int, String[]) is undefined May 15 00:10:18 kg020, you need getActivity instead of this if you are using a listfragment May 15 00:10:18 readme, ArrayAdapter(Context context, int textViewResourceId, T[] objects) May 15 00:11:09 I think cooldman224 is right, kg020 May 15 00:11:16 cooldman224, right thanks. May 15 00:11:25 yes, that is correct. May 15 00:11:25 kg020 you need to learn what context and "this" is May 15 00:11:39 makes sense... May 15 00:11:59 I guess this can only be used in activities and services? May 15 00:11:59 'this' is just a pointer to the instance of the object you are referencing it from. May 15 00:12:05 fragments have no inherent context. they are placed into a context but aren't really aware of that May 15 00:12:19 kg020: nope, you can pass the context to any method you want, as a parameter May 15 00:12:23 no need for inheritance. May 15 00:12:41 but activty and service ARE contexts May 15 00:12:51 ^^^ May 15 00:13:42 question: is it generally bad form to be using lots of LinearLayouts in a layout? May 15 00:13:52 yes May 15 00:14:00 i.e., if someone is caught doing this (me), will people suggest a better way May 15 00:14:10 readme, right... great learnt something new today :) thanks guys May 15 00:15:33 number of LinearLayouts in a layout: how much is too much? May 15 00:16:30 I'm thinking about them being put into a ListView, wondering whether each item having about 6 linearlayout will make my GUI slow May 15 00:16:51 like, each list view item has 6 linear layouts in it? May 15 00:16:57 yes May 15 00:17:00 correct May 15 00:17:21 try it and see May 15 00:17:39 readme, the problem is i don't have a huge data set to try it with, really May 15 00:17:45 i wouldn't notice it right away May 15 00:17:54 you can't generate one ;)? May 15 00:18:00 Has anyone here got any experience with the NDK and ffmpeg May 15 00:18:01 what data set do you need May 15 00:18:09 also, i'm used to CSS layouts on websites,
.......... May 15 00:18:15 hesperaux thats what a loop is for :P May 15 00:18:23 readme, yeah...i could fill my database with sad data i suppose May 15 00:18:24 lol May 15 00:18:30 sigh May 15 00:19:46 I'm desperately seeking a functional, ndk-r8 ffmpeg jni May 15 00:19:51 anyone seen anything like it May 15 00:19:56 so, testing it aside, you guys don't really know? May 15 00:21:09 hesperaux: i imagine that being unusable in a list May 15 00:21:20 wouldn't each item be huge? May 15 00:21:38 not in my mind, no. that's why i feel like i'm doinitwrong May 15 00:21:54 are these arranged horizontally or vertically? May 15 00:21:58 both May 15 00:22:27 i would not anticipate performance issues May 15 00:22:29 the thought is there's a list item with an icon, a checkbox, a number picker (0-10), and some textviews that explain the item a bit May 15 00:22:34 toanswer that specific question May 15 00:22:49 all of that for each item in the list May 15 00:23:06 maximum items expected in the list over time is probably 100-150 (when really pushing the limit) May 15 00:23:11 premature optimization is a waste May 15 00:23:11 only a small handful of items actually have views at any one time May 15 00:23:12 most likely 20-30 May 15 00:23:19 optimize programmer time first, cpu time second. May 15 00:23:26 wongk-home, that's true May 15 00:23:44 readme, roger that May 15 00:23:53 at least if you want to get shit done May 15 00:23:57 that's what you'll do :) May 15 00:24:01 next question, how can I get a small number picker in a view? May 15 00:24:04 my listview items have 4 textviews May 15 00:24:16 it would look a lot like the time picker views, except from 0-10 May 15 00:24:31 hesperaux: NumberPicker doesn't work for you May 15 00:24:36 lol May 15 00:25:14 sounds like a good answer. didn't know it was so obvious. I was looking for something like that in the XML GUI in eclipse and didn't see it. I usually start out with the GUI XML tool and then modify it in XML May 15 00:25:23 k-9 has an icon, 2 checkboxes, and 3 text view per item May 15 00:25:55 bah! i see NumberPicker now. I didn't notice it before. excellent May 15 00:26:22 SimonVT has a NumberPicker also, backported to older versions of android May 15 00:26:45 oh, will NumberPicker work >=API7? May 15 00:27:08 no, its api 11 May 15 00:27:14 damn May 15 00:27:33 https://github.com/SimonVT/android-numberpicker May 15 00:27:38 never tried it , YMMV May 15 00:27:44 ok May 15 00:27:48 is it apache license? May 15 00:27:54 i have it working in my project with 2.2 and above May 15 00:28:04 if it's from SimonVT it's probably garbage!!1 ;) May 15 00:28:25 huh, requires NineOldAndroids, weird May 15 00:28:34 indeed May 15 00:28:42 SimonVT: wtf May 15 00:28:42 because pre 3.0 animation apis are teh suck May 15 00:29:01 * g00s sighs May 15 00:29:11 ron_frown: oi! May 15 00:29:34 oi May 15 00:29:58 ron_frown: i'm gonna be pissed if the next MBP doesn't have an ethernet port :X May 15 00:30:24 I only use an ethernet port on ONE of my mbp's May 15 00:30:33 and only because I frequently have to restore oracle backups on it etc May 15 00:30:44 oh, i was going to ask - the one you do your banking from :D May 15 00:31:48 wtf, eclipse never imports source code properly May 15 00:32:02 it decides not to add the manifest.xml and other files every time May 15 00:32:23 if you import, those things are supposed to be there May 15 00:32:35 if you need to create new one, try 'New Android Project' … from sources May 15 00:32:44 i used the second method^ May 15 00:34:27 if you already have the manifest xml, you should be using the first method May 15 00:34:29 i can't import the numberpicker ZIP either May 15 00:34:47 I think... can't remember exactly with eclipse May 15 00:35:11 you'll have to unpack the zip to import it May 15 00:35:24 g00s honestly I *NEVER* look at my bank account May 15 00:35:24 i need to save his project as a ZIP at ./library/ May 15 00:35:40 pfn, you around? May 15 00:35:56 t0mless, i've imported projects as ZIP before. it seems to work ok. I actually already tried to do it as a folder instead of ZIP and it couldn't find a project to import May 15 00:38:49 I would extract it and goto file->new android project May 15 00:38:57 and do create from sources May 15 00:41:29 i did that just now, and then i just copied all the files into the project directory and refreshed it May 15 00:41:31 i think it might have worked May 15 00:41:42 that's what i had to do for ActionBarSherlock May 15 00:42:46 anyone here using any scala for android projects? May 15 00:43:50 yes May 15 00:44:00 pfn does I think May 15 00:44:05 yp May 15 00:44:33 t0mless, so then when I wanna use a NumberPicker now, I would import net.simonvt.widget.NumberPicker; correct? May 15 00:44:43 yea May 15 00:44:47 cool May 15 00:47:00 hehe t0mless yeah but he aint around May 15 00:47:31 That's not my fault or problem May 15 00:49:50 Is there a smarter way to launch a custom dialog from a preferences screen than just overriding the onclick handler of one? May 15 00:49:57 * t0mless tips canadiancow|work May 15 00:50:01 sigh May 15 00:50:23 why doesn't draw something make notification sounds? May 15 00:50:23 t0mless, eh? can't tell if you're being serious. no one placed any fault or said it was a problem May 15 00:51:04 dunno May 15 00:51:06 email support@zynga.com May 15 00:51:20 lol May 15 00:53:10 i'm calling it early tonight. bye all May 15 00:53:20 bai May 15 00:53:57 boy... writing 3d apps is mindblowing May 15 00:54:36 all the 3d/4d space stuff May 15 00:55:51 3d is an illusion: http://www.google.com/#hl=en&output=search&sclient=psy-ab&q=3+dimensions+is+an+illusion&oq=3+dimensions+is+an+illusion&aq=f&aqi=&aql=&gs_l=hp.3...8016.18185.0.18424.27.16.0.0.0.0.831.2506.13j1j6-2.16.0...0.0.UgiCJRw8j2E&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=a026b5e33ed2fa7&biw=1536&bih=795 May 15 00:56:00 ron_frown: wait until you start working on 5d May 15 00:56:17 no kiddin May 15 00:58:39 where in eclipse is compiler options May 15 01:01:13 does anyone get a crap pot of errors when importing the actionbarsherlock library? May 15 01:01:26 nope May 15 01:01:39 I don't understand why i am... May 15 01:01:47 i think we need #android-abs May 15 01:01:54 ahem May 15 01:01:58 #actionbarsherlock May 15 01:02:02 orly May 15 01:02:16 oh, nice! I didn't know they had their own channel May 15 01:02:30 only troublemakers there :) May 15 01:02:54 lol, looks like I can talk to you here or there May 15 01:03:23 o.O May 15 01:03:49 can't talk there? May 15 01:10:47 a public service announcement http://phandroid.com/2012/05/13/developers-please-dont-ever-use-sellaring-to-monetize-your-app/ May 15 01:12:50 What could cause the stock tablet keyboard on ICS to not send my key listener tab key events? It works fine with custom keyboards May 15 01:42:35 freaking cool http://www.theverge.com/2012/5/10/3012143/smartphone-equipped-floating-robots-water-testing May 15 01:43:21 is it bad form to access a sharefpreferences from inside a preferencesactivity? May 15 02:04:37 how do i uninstall adt plugin? May 15 02:09:52 amoxibos: go to 'About Eclipse Platform' -> 'Installation Details" -> "Installed Software' … uninstall May 15 02:11:44 g00s, wawawiwa, great success :) May 15 02:11:50 i need to reinstall it May 15 02:11:56 so i need to remove it firat May 15 02:11:58 firast May 15 02:12:00 first May 15 02:12:04 :) May 15 02:15:43 when installing motodev studio for motorola devices, it sais i need to uninstall adt plugin if i have it installed and then do fresh install of motodev adt plugin May 15 02:15:54 thats why i needed to uninstall adt May 15 02:15:58 :) May 15 02:16:47 hm, haven't used motodevstudio in a long time May 15 02:17:15 they had that cool sqlite browser, but it still had to read the db from a public location on the phone May 15 02:17:49 yea, they have now stuff like create new broadcast receive, new service etc May 15 02:18:01 http://developer.motorola.com/tools/motodevstudio/ May 15 02:18:13 i'm surprised the ADT doesn't have this feature; better yet I should be able to add some library to my app like romain's ViewServer thingy … that communicates back to eclipse so I can issue commands to the on-phone sqlite db May 15 02:18:34 http://developer.motorola.com/tools/motodevstudio/video/ May 15 02:19:10 http://developer.motorola.com/tools/motodevstudio/features/ May 15 02:19:30 amoxibos: depending what you're trying to do, you don't need motodevstudio May 15 02:20:01 yeah, i only used it for about 10 minutes May 15 02:20:24 i would rather use the official toolchain May 15 02:20:32 but i'm boring like that May 15 02:24:50 Greetings!!! May 15 02:25:15 Whether when there is a call going on could be make the internet via the sim? will this support May 15 02:26:23 I am planning for an application that should use the internet via GPRS even when the call is being run? could this be done? May 15 02:27:28 Is there anyone who could reply here May 15 02:28:15 hrm May 15 02:28:29 this should not be ghosting my other nick May 15 02:29:00 nickserv can ghost nicks May 15 02:29:16 it was definitely my client May 15 02:29:20 doing it May 15 02:29:33 though I told it to stop doing it May 15 02:30:57 what an exhausting day May 15 02:31:16 hey pfn, how did it go ? May 15 02:31:32 second place I interviewed wants to make an offer May 15 02:31:47 first interview was ok, flubbed parts of the interviews May 15 02:32:05 do you think your cram session helped at all ? May 15 02:32:17 not really May 15 02:32:27 Hi I'm getting this error 05-15 02:31:30.419: E/AndroidRuntime(1022): java.lang.IllegalArgumentException: No view found for id 0x7f06000b for fragment Fragment{412a8ed8 #0 id=0x7f06000b} , how can I find exactly where it's occuring? May 15 02:32:34 I don't think anything I studied was used at all during my interviews May 15 02:32:47 Always seems to go that way May 15 02:33:08 maybe some graph problems I suppose May 15 02:33:44 last couple interviews of the first session were graph related May 15 02:33:54 I guess maybe it was a little useful reviewing dfs a bit May 15 02:33:56 where did you interview? May 15 02:34:08 not gonna jinx it 'til I get an offer, or a refusal May 15 02:34:24 second place was mr number, an ocaml + scala + android shop May 15 02:35:04 neat, where are they based? May 15 02:35:12 Is there anyone here could answer my question? May 15 02:35:15 mr number in palo alto May 15 02:35:22 ponrajuganesh, only if you asked it? May 15 02:35:37 have asked before itself pfn May 15 02:35:47 ponrajuganesh, gprs while on phone call? I believe gsm supports it May 15 02:36:53 kg020 we saw that error before when trying to add an adapter to a ViewPager that hadn't been measured yet May 15 02:36:59 so evey SIM card which is of GSM supports it pfn May 15 02:37:24 ponrajuganesh, I guess so May 15 02:37:40 fine pfn May 15 02:37:54 t0mless, I don't follow. May 15 02:38:24 its a runtime error. May 15 02:38:49 right May 15 02:38:52 are you using a viewpager? May 15 02:39:37 t0mless, no. May 15 02:39:44 hrm May 15 02:39:54 I'm not sure where the error is happening May 15 02:39:55 well, somewhere a fragment is not returning a view May 15 02:40:03 pastebin your full stacktrace May 15 02:41:49 anybody can point me to a class implementing a simple timer that fires a plain callback every X msecs (possibly without using threads) ? May 15 02:41:58 t0mless, http://pastebin.com/CBHsDmzy May 15 02:42:13 AlarmManager won't work Pragma? May 15 02:43:00 you need to check wherever you're using your fragments May 15 02:43:08 t0mless: will it call a function in my activity every N seconds while it's running? May 15 02:43:43 no, it can send a broadcast that you can have a receiver catch and do something with May 15 02:43:53 broadcast... May 15 02:44:03 hum, no, I need a simple timer May 15 02:44:14 you can register a static listener on start and unregister onstop May 15 02:44:22 t0mless, so its an error with how the fagment is being called and not the fragment itself? May 15 02:44:37 it's an error that your fragment it's trying to add has no view May 15 02:44:49 t0mless: thnx, I'll take a look at it May 15 02:45:12 whether that's an error in your fragment, or implementation of the fragment we can't know without seeing codez May 15 02:48:54 the AlarmManager is far too complicated May 15 02:49:19 I need a timer... simple timer :D May 15 02:50:23 that's going to be hard without using threads May 15 02:50:52 I must say that certain simple things are incredibly complicated on java/android :/ May 15 02:51:09 handler.postDelayed() May 15 02:51:12 will do it May 15 02:56:12 Pragma, lol you should try program for bb then :P May 15 02:56:47 kg020: I've tried... it sucks :D May 15 02:57:28 kg020: android is far better.. (but still sometimes makes me grin on certain things that should be extremely simple) May 15 02:57:52 haha I was being sarcastic. May 15 02:58:02 CountdownTimer is the closest thing to a timer I've found May 15 02:58:13 hey guys, I am looking to start learning NFC on android.. has anyone done this? i am curious to see the level of difficulty there is involved in making some NFC environment May 15 02:58:28 drpenguin: canadiancow has done some May 15 02:59:17 cool thanks.. im hoping this becomes some really cool idea for my senior design :D **** ENDING LOGGING AT Tue May 15 02:59:59 2012