**** BEGIN LOGGING AT Mon Mar 26 02:59:58 2012 Mar 26 03:34:59 hmmmmmm Mar 26 03:35:23 Android tools r17 that supposedly fixed my dependency problem appears to have done so in a very naive way that doesn't satisfy my use cases Mar 26 03:38:28 nope, i was just being dense. criticism withdrawn :) Mar 26 04:11:02 Anyone know of an API to help with Android widget development? Mar 26 04:11:13 It's very overcomplicated Mar 26 04:13:53 NightmareApps i havent personally done a widget, but i know some people who have, and i dont think it was too difficult Mar 26 04:13:57 does d.android.com not have useful info? Mar 26 04:16:57 java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView Mar 26 04:17:03 it's not an ImageView :( Mar 26 04:19:08 Not really canadiancow: however im doing it, sometiems they work.. and sometimes they randomly stop working Mar 26 04:19:38 hmmm Mar 26 04:21:40 need some help regarding ICS dev for a samsung phone Mar 26 04:21:48 can nyone help? Mar 26 05:55:25 Hey Folks, How do I know what size (dimension) picture to display on the splash screen? Should I have several sizes? Just one? How do I go about choosing this? Any help would be greatly appreciated. Mar 26 06:05:46 splash screen size based off device screen size Mar 26 06:06:12 aLearner, make a really big one and then scale to the device on first run Mar 26 06:06:23 like 1280x720 Mar 26 06:06:45 JakeWharton: OK. Cool. I'll try that. Thanks very much. Mar 26 06:06:52 MysT_DooM: Right...Thanks. Mar 26 06:27:29 Would IllegalArgumentException be a good choice to throw if an Activity requires a certain extra to be passed? Mar 26 06:27:35 Extras are arguments, in a way, aren't they Mar 26 06:27:50 If the extra isn't passed, in this case it means that the programmer has made a mistake. Mar 26 06:36:15 readme, IllegalStateException might be more approrpiate Mar 26 06:36:23 though it's subjective Mar 26 06:36:32 I like that Mar 26 06:36:41 sounds more intuitive Mar 26 06:36:47 make sure the message is clear as well Mar 26 06:37:14 I declare my extras as public static final String in the activity that needs to get it Mar 26 06:37:20 the names, that is Mar 26 06:37:29 that's good practice Mar 26 06:37:31 my message is just "EXTRA_FOO required" Mar 26 06:37:35 I think it's clear Mar 26 06:38:21 ok so Mar 26 06:38:28 im back with trying to get my emulator to work Mar 26 06:38:47 i have installed the 2.3.3 andriod like i was told Mar 26 06:39:17 and, it is stuck at a screen that says "A N D R O I D " with a flashing '_' Mar 26 06:39:24 Jeevis: wait... Mar 26 06:39:41 and then wait a bit more Mar 26 06:39:55 oh damn Mar 26 06:39:57 waiting worked Mar 26 06:40:01 who would have guessed O.o Mar 26 06:40:30 everytime i want to look at my app, i dont have to re-open the emulator, right? Mar 26 06:40:37 well, JakeWharton and I guessed... Mar 26 06:40:39 i can just press "run" again, and it should upload it? Mar 26 06:40:53 no, you only need to start it once - you don't reboot your phone every time you install a new app, do you? Mar 26 06:41:10 i guess not Mar 26 06:41:15 now i am getting an error Mar 26 06:41:31 [2012-03-26 02:40:08 - test1] ERROR: Application requires API version 15. Device API version is 10 (Android 2.3.3). Mar 26 06:41:51 change your manifest minSdkVersion to 7 or 8 and then targetSdkVersion to 15 Mar 26 06:42:23 Jeevis: click snapshot, so that when you do restart the emulator, you don't have to wait as long Mar 26 06:45:38 wewt jake :D Mar 26 06:45:42 and i cant find snapshot Mar 26 06:46:41 nvm Mar 26 06:46:42 found it Mar 26 06:51:55 i do have one more question before i get started on learning this Mar 26 06:52:16 what are the legal implications for creating an app that has copyright characters Mar 26 06:52:20 like Mar 26 06:52:23 a digimon app Mar 26 06:53:07 a) it's illegal without permission b) don't do it c) it should get kicked out of the market Mar 26 06:53:14 (Play Store *spit*) Mar 26 06:54:53 So do you think if i emailed around, they would let me re-create the digivice toy that was released by bandai? Mar 26 07:01:58 Jeevis: If nothing else, keep a "Plan B" ready when/if you get a response that you don't get their permissions. Mar 26 07:03:07 Like change all the names to pig latin Mar 26 07:08:09 Sometimes it's actually more productive to start of with Plan B (pig latin names) while waiting for Plan A to succeed. Mar 26 07:08:14 off* Mar 26 07:12:51 well Mar 26 07:12:53 it is more Mar 26 07:13:01 to learn how to make an app Mar 26 07:13:10 i wanted to learn to make an idea happen Mar 26 07:16:11 maybe ill make it, then change it up to make it kind of my own game based off the idea of another game :D Mar 26 07:16:21 then ill take over the world Mar 26 07:17:10 that's what Zynga does Mar 26 07:17:15 it' Mar 26 07:17:20 it's a proven formula Mar 26 07:17:25 Taking over the world? Mar 26 07:17:38 =3 Mar 26 07:17:50 no, take someone elses idea then change it up to make it kind of their own Mar 26 07:19:01 Oh, well. That makes more sense. Or we'd have companies all over the globe that are taking over the world. Simultaneously. Wait, they might actually be doing that. [Philosoraptor] Mar 26 07:20:41 Anyways, I digress. What JakeWharton says is true. It's been done over and over again. Take something old, make something new and better (subjective term) out of it. Mar 26 07:21:18 well the digivice was based on the digimon virtual pet, which was based on tomagatchis Mar 26 07:22:25 which is based off real life Mar 26 07:23:19 which is based off chuck norris Mar 26 07:31:33 is it possible to tell android to do not launch the gui interface ? Mar 26 07:31:40 guys, i'm implementing the common data storage interface for Android and J2ME, and in Android implementation i have a dilemma: 1) i have multiple databases with just one table in each database (this is easier to implement) ; or 2) i have one database with multible tables in it (harder to implement). So the question is: is the first variant much more expensive than a second one? Mar 26 07:36:21 dflurker: why is #2 harder to implement? Mar 26 07:39:00 romainguy__: a bit harder. Long to explain, but, well, I said that i'm implementing my own common data storage interface, and in #1 i have just one String database_name, and all job to create or close it is done on the lower level. So, is it more expensive? Mar 26 07:39:13 romainguy__: btw, i'm dfrank, not dflurker ) Mar 26 07:40:51 sorry :) Mar 26 07:41:59 cactux: i'm not sure what do you want to achieve, but you can completely hide your app's icon from the launcher by removing from AndroidManifest.xml your activity that takes intent with action "android.intent.action.MAIN" and category "android.intent.category.LAUNCHER" Mar 26 07:42:40 dfrank:My target board has fully loaded AFS. but in parallel I need to have a second FS running some opengl apps. Since android has everthing that I need I am considering tell android to do not init the gui and my app will have full control of the env Mar 26 07:47:51 dfrank: any idea how to stop it? Mar 26 07:47:51 I'm listening for menu key events Mar 26 07:48:01 but I want to ignore long presses which open the IME Mar 26 07:48:15 there's no notable flags or difference between the KeyEvent that is fired though Mar 26 07:48:17 any suggesions? Mar 26 07:49:07 cactux: sorry, i think i can't help you. I even can't understand what is AFS ) Mar 26 07:49:32 Android File System Mar 26 07:50:01 JakeWharton: that's handled by the system Mar 26 07:50:43 which is why I want to ignore them or differentiate from normal menu key presses Mar 26 07:51:06 I guess I could use the onPreparePanel callback as a possible better indicator Mar 26 07:56:26 Does to Window get recreated as the activity does? Mar 26 07:56:31 *Does the Mar 26 07:56:48 I guess it would have to since it initializes the decor Mar 26 08:16:25 Did anyone encountered an error message "adbd cannot run as root in production builds" while invoking "adb root" usgin Galaxy S Plus (GT-I9001)? Mar 26 08:19:03 thedmd: I suspect it's because adbd cannot run as root in production builds, and you're using a stock consumer OS Mar 26 08:20:00 hey guys has the code changed for a Spinner in android 2.1 to 2.3.3 ? because i get some errors by just using a different device ?! Mar 26 08:20:15 yes Mar 26 08:20:40 Does that mean stock GT-I9001 cannot be used for native development? Mar 26 08:21:22 thedmd: do you really need root to develop using the ndk? Mar 26 08:25:30 http://pastebin.com/fd29jqPA this is the LogCat protocol ... using android 2.1 it works fine, trying it on 2.3.3. i get those errors ... i think the reason is a spinner element did the code or something change? Mar 26 08:28:01 looks like a problem with your adapter Mar 26 08:31:21 JakeWharton: but how/what? since it's running fine on 2.1 and now on a 2.3.3 not anymore? ... do you have any ideas? Mar 26 08:31:28 no Mar 26 08:31:39 look at the source on that line Mar 26 08:32:03 mikedg, go to bed Mar 26 08:32:22 Hello. I want to have GestureDetector on top of a ScrollView, but I fail (gesture detector does not work). How to do that? Mar 26 08:32:28 what line JakeWharton? Mar 26 08:32:39 whichever is topmost on the stacktrace Mar 26 08:32:42 there is no of my classes listed in the error Mar 26 08:33:40 is that all there is in the logs? Mar 26 08:33:53 hold i'm looking at the Android source Mar 26 08:34:13 didn't realize you weren't using your own adapter Mar 26 08:34:26 yes Mar 26 08:34:43 i'm using the standard Adapter Mar 26 08:34:53 text.setText(item.toString()) Mar 26 08:35:04 so either text or item is null, i'm betting the latter Mar 26 08:35:19 ArrayAdapter spiAdapter1 = new ArrayAdapter Mar 26 08:36:23 are you sure your dataset doesn't have any nulls in it? Mar 26 08:36:48 what arguments are you passing into that constructor? Mar 26 08:37:24 wait i make a pastbin of the code-part Mar 26 08:38:41 http://pastebin.com/MhdsEYfX Mar 26 08:39:16 line 68 are the two Spinner-adapters ... those should be the problem Mar 26 08:39:41 appel1: To develop? No. To debug? Apparently yes. I recieve message 'GdbServerReceiver: run-as: exec failed for gdbserver Error:Permission denied' Mar 26 08:40:04 while executing: 'NDK: Starting up run-as com.nvidia.devtech.NativeGlobe gdbserver +/data/data/com.nvidia.devtech.NativeGlobe/gdbsocket --attach 3281' Mar 26 08:43:43 any idea now seeing the code JakeWharton? Mar 26 08:43:52 i'm trying to follow it Mar 26 08:44:46 ok ... is pretty messy i know :( Mar 26 08:46:42 Did anyone manage to use GT-I9001 for native development? If yes, what is your system version? Mar 26 08:47:21 JakeWharton is you have questions ... or need other parts of the code please ask :) Mar 26 08:47:31 thedmd: have you set debuggable=true in the manifest? what is your target api level? Mar 26 08:48:16 Yeap. Debugging works like a charm on regular Galaxy S (GT-I9000), but not on Plus Mar 26 08:49:56 I'm investigating this issue for four days now. All obvious flags are double and tripple checked. Mar 26 08:50:41 This is more sophisticated. Now I want to make sure, it works for other people. Mar 26 08:51:32 thedmd: it is possible that samsung has broken something in the software for the gs+ Mar 26 08:52:27 JakeWharton ... the strange thing is ... that on a 2.1 it seems to work just fine Mar 26 08:52:27 I hope soo this is an software issue. ROM can always be upgraded or downgraded. Mar 26 09:00:23 JakeWharton? are you still looking? or did you give up because of my chaotic code? :-$ Mar 26 09:07:33 Jake? Mar 26 09:08:17 Surfer2010: does your array contain any null values? Mar 26 09:08:39 Hey guys, how can i use the hierarchy viewer with a logitech revue with google tv? It seems that no connected devices can be found alltough i am connected to the device via adb Mar 26 09:09:16 uhm nope Mar 26 09:09:23 contains 7 strings Mar 26 09:09:32 ok Mar 26 09:09:50 checked that allready Mar 26 09:14:36 i gotta go now sorry i will be back in about 100min ;) Mar 26 09:22:15 no one here knows why the hierarchy viewer does not show me anything for a google tv device? Mar 26 09:22:44 because it's not a developer device Mar 26 09:23:13 see https://github.com/romainguy/viewserver Mar 26 09:23:29 damn i was almost there! Mar 26 09:23:39 github search fails me yet again Mar 26 09:23:44 I should ask the SDK guys to add it to ADT Mar 26 09:24:03 that would be incredibly useful Mar 26 09:26:57 Ah okay, thanks a lot - i'm gonna try the Viewserver Mar 26 09:41:42 anyone know of a way to record a video of a running app? Mar 26 09:42:22 capture HDMI out Mar 26 09:42:30 hmmmh romainguy__: i wanted to add the Viewserver in my app like that ViewServer.get(this).addWindow(this); but i get this exception: 03-26 03:41:31.295: E/AndroidRuntime(8124): java.lang.NoClassDefFoundError: com.android.debug.hv.ViewServer Mar 26 09:42:36 okthx Mar 26 09:43:25 can you record hdmi with standard computer gear or do you need special hardware Mar 26 09:44:21 never done it myself Mar 26 09:44:27 you probably need someway to accept HDMI in Mar 26 09:45:14 the hardware should be cheap Mar 26 09:45:39 3am Mar 26 09:45:42 i should probably go to sleep Mar 26 09:47:07 sleep overrated Mar 26 09:47:20 i have interviews tomorrow Mar 26 09:47:28 still have to figure out questions Mar 26 09:47:51 TV, radio or press? Mar 26 09:48:31 programming Mar 26 09:49:05 i want to transfer a db query throgh webservice json. right now i just have a json array with a "columnname" : "value" mapping Mar 26 09:49:20 that is very risky Mar 26 09:49:20 Hello Mar 26 09:49:35 wait you mean the results of a query? Mar 26 09:49:40 yes Mar 26 09:49:43 result Mar 26 09:49:54 fixed query Mar 26 09:50:09 but i dont know how much columns it will be Mar 26 09:50:35 so i thought maybe i use jsonarray[0] to somehow give me that info Mar 26 09:51:03 since i cant use array.getobj[0].getstringfromindex(0) Mar 26 09:51:08 or somethign Mar 26 09:51:38 i have a exception 'database object not closed exception'....but i closed that even the exception arriving... Mar 26 09:54:09 can anybody know why this exception error occure? Mar 26 09:54:50 oh Mar 26 09:54:56 there is .names() Mar 26 09:54:56 nice Mar 26 10:04:10 i have one java file which extends PreferenceActivity and it uses the prefernce.xml file.And i have main activity in that menu are created but when the prefernce file is open then this meenu icant open why?in other xml file i can open the menu.. Mar 26 10:07:26 Hi, I have this simple method: http://pastebin.com/MEgGmnSG - it deletes just the phone number of a contact searched by phone number. How to modify it, so it deletes the whole contact instead? Mar 26 10:10:26 how can i use DP for width when i programmatically add a view Mar 26 10:10:31 it seems to be pixels Mar 26 10:10:34 or something else Mar 26 10:10:48 jagruti_: did you setup your onCreateOptionsMenu in your PreferenceActivity? Mar 26 10:10:51 in addview ( child, width, heigth)) Mar 26 10:11:42 tobib: http://developer.android.com/reference/android/util/TypedValue.html#applyDimension%28int,%20float,%20android.util.DisplayMetrics%29 Mar 26 10:12:17 tobib: normally though, you want to create dimen.xml files in res\values and put your dimension in there Mar 26 10:13:12 ok i take dimen.xml Mar 26 10:13:22 Hello! Anyone with Samsung Galaxy Player in here? I wanna install CWM on my device, but it's not officially supported, I know there are some matching builds in XDA, I don't know how to install it, I'm an Android noob. Can anyone help me plz? Mar 26 10:13:23 tobib: then you would call something like this int width = this.getResources().getDimensionPixelOffset(R.dimen.my_view_width); Mar 26 10:13:52 ah cool thanks for providing that line Mar 26 10:14:25 Shimmy: what is the rom name? Mar 26 10:14:39 Samsung use a tool called Odin Mar 26 10:15:00 theres plenty of tuts online for replacing samsung rom's Mar 26 10:15:59 shimmy: ask over in #cyanogenmod Mar 26 10:16:16 My question is simply if I need a new ROM (excuse me for that, I believe this question is funny) or there is way to "install" CMW? I now have a custom rooted ROM Mar 26 10:17:47 Shimmy: you mean CWM (ClockWorkMod)? again i think you should go ask in #cyanogenmod Mar 26 10:18:09 @Napalm, yes I meant clockworkmod Mar 26 10:18:18 or #android-root Mar 26 10:20:39 Napalm: No one's there... If you have a little experience with CWM you should be able to answer my question, it's now HOW TO, it's just: can I install CWM or I have to flash a new ROM to get it installed? Mar 26 10:21:07 you can install it seperately because its on a seperate partition i believe Mar 26 10:21:11 infact im sure Mar 26 10:21:39 yeah Mar 26 10:21:42 but on samsung devices Mar 26 10:21:46 it's on the kernel partition Mar 26 10:21:54 :/ Mar 26 10:22:07 tobib: yes but its still an image Mar 26 10:22:24 hello, quick question: I'm using some lists and the items call activities. I made a custom list adapter that holds the activity context and arguments etc and that's fine, but I'm a little concerned that's not the right way to have done it. Say I were to use android.R.layout.simple_list_item1 and I wanted to run a specific activity when that would be selected - how should this best be done? A mapping array? Mar 26 10:23:16 Napalm no i have not setup onCreateOptionsMenu. Mar 26 10:23:42 sure Mar 26 10:23:48 but you need to flash a kernel image Mar 26 10:23:53 not just "install" cwm Mar 26 10:25:09 jagruti_: of course you do, its an override in the activity Mar 26 10:25:35 tobib: the kernel is only an executable file not the rest of the system partition Mar 26 10:26:11 tobib: this is not really the talk for this channel? doesnt XDA list some other channels for you to try..? Mar 26 10:26:26 not my problem, i'm just saying Mar 26 10:27:17 what? Mar 26 10:29:42 Napalm,but i have already created the menu in main activity so why need to create in this preference file Mar 26 10:32:00 re hi Mar 26 10:33:10 Hi, I have this simple method: http://pastebin.com/MEgGmnSG - it deletes just the phone number of a contact searched by phone number. How to modify it, so it deletes the whole contact instead? Mar 26 10:35:07 is it possible to call an asynctask instance from its own onPostExecute() so that I could implement an ever repeating task? Mar 26 10:44:25 omg, jsonobject.names() is not in the same order as the json itself :( Mar 26 10:46:24 how can i react to a Spinner that has no more than 1 element in it, so right now if i try to open it, it gives me an error (of course because there are no more items in it) .... Mar 26 10:46:50 is there something like "if (spinner.length == 1) do ... whatever? Mar 26 10:51:27 tobib: json objects guarantee no order of elements, it's the spec. Mar 26 10:55:35 mhhh Mar 26 10:55:37 ;( Mar 26 10:57:55 how do i react to the "drop down" button of a Spinner? ... is there some method like "OnSpinnerOpen" ???? Mar 26 11:00:53 how can i use the menu created in main activity into other prefernce activity class? Mar 26 11:03:19 or how can we call public boolean onCreateOptionsMenu(Menu menu) of main activity from prefernceactivity class tthat extends prefernceactivity Mar 26 11:09:49 no one here knowing about spinners? :( Mar 26 11:12:38 so it seems Mar 26 11:15:18 Hi. I want the user to be able to select a value with a slider. The value can be either negativ and positive. Using a seekbar/progress bar does not feel allright, because it does not indicate that the values can be negative as well. But I have not found a straight-forward slider widget. Isn't this available? Mar 26 11:17:36 @mihu: just an idea, but how about using a seekbar, with your minimum value at the left end, the max value at the right end, "0" in the middle, and you handle the values in code? Mar 26 11:18:10 e.g. the seekbar is 256 units long, but under 128 you count it as negative Mar 26 11:18:35 -128 .... 0 ... +128 Mar 26 11:18:45 or whatever your values are Mar 26 11:19:45 dodgeCharger: I actually did that up to now. :-) But as you know, the seekbar has this green circle where it indicates the current value. And having this in the middle meaning 0 is kind of arkward, because the length of the green line and the position of the green circle does not correspond to this. The user has no feedback that having the seekbar at the very left means -128. Mar 26 11:20:19 ahaaa Mar 26 11:20:32 dodgeCharger: Every other toolkit has this simple slider widget, but not Android it seems. Mar 26 11:20:34 so use a relative layout with a couple of textview's and put the numbers on the screen Mar 26 11:20:35 lol Mar 26 11:20:46 and if you display the current value next to the bar? Mar 26 11:20:54 haha Napalm was quicker Mar 26 11:21:35 btw is it possible to get the green line out of the seekbar? Mar 26 11:21:42 Yes, I need to display the current value as well. Hm, perhaps I can just make that green line disappear? Mar 26 11:21:50 dodgeCharger: I just had the same idea... Mar 26 11:22:11 mihu: are you using http://developer.android.com/reference/android/widget/SeekBar.html Mar 26 11:22:13 ? Mar 26 11:22:30 Napalm: Yes. Mar 26 11:23:27 @mihu: check http://stackoverflow.com/questions/3480456/seek-bar-change-path-color-from-yellow-to-white Mar 26 11:24:18 how do i react to the "drop down" button of a Spinner? ... is there some method like "OnSpinnerOpen" ???? Mar 26 11:25:06 Surfer2010: I'm not sure I understand your problem, as you're saying that the spinner crashes when it has only one item. Mar 26 11:26:02 dodgeCharger: Thanks, will do, but it will take some minutes until I have understood how to actually do this. Mar 26 11:27:04 Surfer2010: When I add an (one) item to a spinner it shows me just one spinner item in the selection box and when I tap it, it's (getting) selected. I can't provoke a crash this way, at least. Mar 26 11:30:58 Surfer2010: see here: http://stackoverflow.com/questions/3928071/android-setting-a-spinner-onclicklistener/8520801#8520801 Mar 26 11:31:09 is this what you're trying to do? Mar 26 11:31:23 god I love stackoverflow :) Mar 26 11:32:28 dodgeCharger: AH! I didn't think of the onTouchListener. When I started scouting the Interwebs I just went for the onClickListener and found suggestions about creating custom spinners, which didn't sound all too appealing. Mar 26 11:33:11 dodgeCharger: Good call. Hopefully this will help Surfer2010 progress. Mar 26 11:33:19 hey, I didn't think of it either lol... I just followed a link in a post about (get this) setOnClickListener :D Mar 26 11:34:23 Somtimes Lady Google giveth, sometimes she taketh. :) This time she wasn't all too giving (about what I really wanted) to me. ;) Mar 26 11:35:30 yeah it's actually hard to ask the right questions... I still believe it takes more luck than skill tho Mar 26 11:35:41 dodgeCharger: i'm not sure i read it all ^^ and what i'm trying to do is ... if there are no elements in the spinner ... it should like Toast "spinner is empty" because i'm creating my spinner out of a sqlDB so it could be empty in some cases Mar 26 11:37:09 Surfer2010: set your spinner to a default value of "" or "none" or something... so there's always at least 1 element Mar 26 11:37:29 any of you guys got an iphone you wannt get rid of Mar 26 11:37:36 ill trade a nexus Mar 26 11:37:38 Surfer2010: Or, it could work if you disable the spinner. Mar 26 11:38:00 Surfer2010: That way it shouldn't pick up any taps/presses/clicks at all... Mar 26 11:38:22 you shouldn't just blindly fill the spinner with values anyway, without checks IMO Mar 26 11:38:40 a few friends has trouble building their projects after updating to the new version of the development tools. Is there any official problems? Mar 26 11:38:55 dodgeCharger: True. Disabling _and_ inserting a N/A value is probably the route I would've chosen. Mar 26 11:39:02 lapdis: are they using libraries Mar 26 11:39:09 they made massive changes to how libraries are used again Mar 26 11:39:10 true ... i allready did put a "default" String in it so it does have ONE element no matter what Mar 26 11:39:27 but now i get errors if i click on it ... but true i could enable it Mar 26 11:39:53 but then there is no chance to "tell the user" that there is nothing in it in case he trys to "open" the spinner Mar 26 11:39:55 mikedg yeah Mar 26 11:39:58 It's still strange that you get errors when clicking on it, if it's been populated with at least something... Mar 26 11:40:01 do you have a good source? Mar 26 11:40:27 Surfer2010: do you get errors because there's no action associated with the "default" element? Mar 26 11:41:00 Surfer2010: A stacktrace and some code of the spinner parts on pastebin would've been helpful. Mar 26 11:41:10 okay one sec Mar 26 11:41:32 hold on let me find a link Mar 26 11:43:12 here the code: http://pastebin.com/aSk6w12W Mar 26 11:43:17 i believe http://tools.android.com/recent/dealingwithdependenciesinandroidprojects explains everything Mar 26 11:43:39 and here the error in the case of me clicking on the spinner trying to "open" it: http://pastebin.com/kWrZFF9d Mar 26 11:43:55 (of course me knowing it is empty wouldn't click on it but users do ^^ Mar 26 11:44:03 The tl;dr to mikedg's link: Put jars in libs/ and remove them from java build path in eclipse Mar 26 11:44:57 line 32 is .... is about what i wanna "do" if it is "empty" ... just toast and tell the user that there is nothing in the spinner Mar 26 11:45:37 mikedgthanks! :) Mar 26 11:46:15 and you have to export java projects Mar 26 11:46:25 in anything that references them Mar 26 11:47:09 hey guys is there any documentation for the NDK and how it works? Mar 26 11:49:46 Surfer2010: I'll see if I can reconstruct what you are doing. Gimme a sec to look it through Mar 26 11:50:47 thanks drlaban take your time :) Mar 26 11:51:30 Surfer2010: While you wait, here's a short code example of something that does not result in a FC: http://www.pastebin.com/ZcqSM59Q Mar 26 11:54:30 if i want to put an image in my app that u can pan around on/zoom and press certain sections of to get more info (like i will need x/y) whats the best component to use for that? Mar 26 11:55:14 Surfer2010: The default string you've put in there, is this a string from ie, XML? Mar 26 11:56:38 no it's a element i added as first el. in the StringArrayList Mar 26 11:57:10 how can i open the menu of main activity into prefernceactivity? Mar 26 11:57:11 spiPlayerObjects.add("Subst.Player"); <--- is the first element which is also shown on my screen Mar 26 11:57:29 Surfer2010: Alright, just saw it, thanks. Mar 26 11:58:08 Surfer2010: What does the stacktrace say? Mar 26 11:59:07 http://pastebin.com/kWrZFF9d Mar 26 11:59:32 i hate mondays Mar 26 12:00:34 jagruti_: you have to load it again in onCreateOptionsMenu as i said Mar 26 12:04:37 Surfer2010: I've adjusted my code a bit to make it more like yours: http://www.pastebin.com/BmhQaj8z Mar 26 12:04:53 Surfer2010: It still doesn't crash. Mar 26 12:07:17 drlaban what happens if you "open" the spinner? Mar 26 12:07:37 Surfer2010: No problem. I can open it, select what's in there and it closes. Mar 26 12:08:40 anybody know about sip calling? Mar 26 12:09:03 and then there is only one elm. in it? "this" in your case? Mar 26 12:09:08 guys, I am frustrated. I have this list item which looks looks like I want it to in the graphical editor. But when it's displayed in my listFragment some views are not shown at all Mar 26 12:09:35 feels like a bug to me because I am definitely loading the right layout Mar 26 12:10:18 Surfer2010: Yupp Mar 26 12:10:42 mhh strange Mar 26 12:10:49 Surfer2010: I replaced the array with an ArrayAdapter and it still works. Mar 26 12:11:02 Surfer2010: Also added another spinner and it still works. Mar 26 12:11:30 one sec i try something Mar 26 12:11:49 Surfer2010: I'll give you the code: ndLazSni Mar 26 12:11:58 Surfer2010: I'll give you the code: http://www.pastebin.com/ndLazSni Mar 26 12:17:10 mghh still nothing changed ... i deleted all from the "OnItemSelected" Mar 26 12:17:18 but still fatal error Mar 26 12:18:07 not "touching" the Spinner ... shows "Subst.Player" ... which is fine ... the first element Mar 26 12:18:19 but as soon as i touch the spinner ... Fatal error Mar 26 12:18:28 Surfer2010: Alright, try and create a new fresh project with the spinner code i gave you, only. See if that works. Mar 26 12:18:40 ahhhhhhhh Mar 26 12:18:48 i think i found the problem Mar 26 12:19:20 i added this to the code in the beginning "filling the spinner" Mar 26 12:19:22 for(int i=0; i if(debug){System.out.println("spiPlayerObjects" + i + ":" + spiPlayerObjects.get(i));} Mar 26 12:19:22 } Mar 26 12:19:39 and now i got "two" elements in my system.out" Mar 26 12:19:46 03-26 12:22:13.134: I/System.out(1147): spiPlayerObjects0:Subst.Player Mar 26 12:19:47 03-26 12:22:13.134: I/System.out(1147): spiPlayerObjects1:null Mar 26 12:19:59 The null part is probably breaking your stuff Mar 26 12:20:02 so this "null" is messing it up Mar 26 12:20:05 yes Mar 26 12:20:53 but how do i get rid of that? Mar 26 12:20:54 Surfer2010: man, the size of an array is always one more than the position of the last element Mar 26 12:21:00 counting starts from 0, not 1 Mar 26 12:21:29 so if you have an array with 5 elements, you cannot go like myArray(5) Mar 26 12:21:33 only 0-4 Mar 26 12:21:51 try for(int i=0; i er... Mar 26 12:22:13 am I talking out of my ass? >O Mar 26 12:22:24 mhh ok ok ... that means i did NOT find my problem ? :-O Mar 26 12:22:33 wait Mar 26 12:22:47 i know what you said! Mar 26 12:22:57 and i know about starting at 0 Mar 26 12:23:07 i'm using api10 and things are working ok, now I want to add an actionbar and as that is not available in api10 I looked at ActionBarSherlock which seems to do what I want. The only problem is that I can't find a way to use/build it into my project without going to api14+ and when I do that the user interface for my app changes design. Does anyone know of an action bar library that works on api10 or some other way to solve this ? Mar 26 12:24:02 13:22 dodgeCharger am I talking out of my ass? >O <--- I apparently am :( Mar 26 12:24:02 Well, the thing is Surfer2010, you're having one too many items in your spiPlayerObjects when you populate your spinner. Mar 26 12:24:19 yes Mar 26 12:24:53 but how can this happen since i add elements ... then rtemove some ... there should not be any to much ?! Mar 26 12:24:57 put it in a try-catch block Mar 26 12:24:59 Probably, your for(i=1; i<= gbGamePlay.getsize....) { spiPlayerObjects.add()...} is being run Mar 26 12:25:01 rvsjoen: I'm achieving something similar to a titlebar on a project using api8 by using a layout with the titlebar that is included in all other layouts. Mar 26 12:25:21 rvsjoen: but probably there is a easier way Mar 26 12:25:30 rvsjoen: I'm quite new to android development Mar 26 12:25:41 all I really need in the action bar is a button to "refresh" the current Intent Mar 26 12:26:23 Surfer2010: Do some log outputs of your for loops to see what they are up to. Mar 26 12:26:28 rvsjoen: well.. create a layout that is "the title bar" (titlebar.xml for example) and with a linearlayout as root Mar 26 12:26:52 ok. I think I've found a bug because as soon as I wrap the list item layout in a RelativeLayout it works just fine... Mar 26 12:27:06 drlaban i add 7 elements to it (in this case 7) then i remove some ... (in this case 7) means i'm left with the very first one i added Mar 26 12:27:31 deviantpeer: i'll give that a go, thanks Mar 26 12:27:32 rvsjoen: then incude that layout as the first "child" of your activities layout using he include directive Mar 26 12:27:44 yup Mar 26 12:27:57 Surfer2010: Are you a 100% sure of this? I mean, did you output logs on each loop and checked the contents of spiPlayerObjects of each step? Mar 26 12:28:20 wait :) Mar 26 12:30:01 drlaban: http://pastebin.com/Jv837kwC (code with system.outs) Mar 26 12:30:17 drlaban: http://pastebin.com/ivdVaaf5 (logfile) Mar 26 12:32:07 as i said ... adding 7 and removing 7 ... if i start with one in it ... should end up with one ?! or am i being blind ^^ ... Mar 26 12:32:18 it ends up with two for some reasons Mar 26 12:32:24 also, if i'm looking for a way to periodically check for new content while the app is running, is Timer the way to go ? Mar 26 12:32:42 Surfer2010: It might be that the remove() can't find the object you are referring to. Mar 26 12:33:37 Surfer2010: Let's say you fill an item with null and try to remove an item with "Jenkins", then it won't match. Mar 26 12:33:49 Surfer2010: look at --> for(int i=1; i<=dbGameplay.getsize("peopleTable"); i++) Mar 26 12:33:49 i <= getsize() ...? should be just < , not? Mar 26 12:34:04 line 6 Mar 26 12:34:05 Try it with < Mar 26 12:34:10 Can't hurt. :) Mar 26 12:34:39 he pulls the data from a database, including the item AFTER the last item which'll be "null" Mar 26 12:35:08 mhhh that could be dodge :-O ;) Mar 26 12:35:16 I'm gathering theres a null getting put in there which the remove can't match Mar 26 12:35:32 dodgeCharger: And absolutely what you said. Mar 26 12:36:58 At times, these things make me feel like newb for not figuring out earlier... But then I get over it. :p Mar 26 12:37:25 lol don't worry, I AM a newb :D Mar 26 12:37:47 is the getsize() efficient? or will it do 'select count(*) from something'? Mar 26 12:38:29 what do you mean alankila by efficient? Mar 26 12:38:38 and i implies row-by-row access, another thing that databases do not generally provide in an efficient way -- they provide sequential reading... Mar 26 12:38:51 hmm any ideas how i make a image that i can pan aroudn and zoom on but also has buttons on it at certain points Mar 26 12:39:02 Just puzzled about the precise forms of the statements given -- if there's sql database behind here, and implementation is stupid, this is going to be incredibly inefficient code. Mar 26 12:39:37 sqlite does seem to provide indexable resultset somehow, though... Mar 26 12:40:06 yes there is a sqlite behind all this Mar 26 12:41:29 Surfer2010: does it behave itself if you replace the "<=" with "<" in line 6? let's see some log Mar 26 12:42:24 yes i "fixed" it ... the <= was the problem it's supossed to be a > Mar 26 12:42:26 < Mar 26 12:43:18 great :) Mar 26 12:43:27 and it's from i=0 ; i< ... Mar 26 12:44:06 haha I never saw that one :O Mar 26 12:44:24 there was some reason before why i changed that to 1 & <= ... but editing some more after a couple of days it seems like i fixed that so it now works being a i=0 and < Mar 26 12:45:03 things like this can amount to some serious hair loss over time Mar 26 12:45:41 very true Mar 26 12:46:34 now since we're on that anyway ... is it possible (in a easy way) to personilize the given standard array-adapter ... meaning giving the spinner a personal look without coding my own? Mar 26 12:47:06 sure, just give it a different layout to use Mar 26 12:47:25 these things aren't very well documented however in sense that if you change something you need to come up with the right kind of layout for the items Mar 26 12:47:41 usually end up reading the android source code to find out what you are supposed to do Mar 26 12:48:37 i tried to find the android.R.layout.simple_spinner_item XML File so i can copy it and edit this Mar 26 12:48:49 but it didn't work as i thought it would Mar 26 12:49:23 does anyone know of a way to dynamic "filter" the contents of Gallery widget? Mar 26 12:50:41 how can we change sip-useragent through code from application? Mar 26 12:52:51 argh Mar 26 12:52:56 binding not working :/ Mar 26 12:53:13 its not even a fucking remote service Mar 26 12:53:13 grr Mar 26 12:55:45 25 horus 5 minutes Mar 26 12:56:58 Surfer2010: see http://www.gersic.com/blog.php?id=57 for custom spinners Mar 26 13:13:58 if i want to draw to a view constanly, like a moving ball should i use for loops in the onDraw or use invalidate? Mar 26 13:14:31 how can we take the application from background running state to front? Mar 26 13:15:50 startactivity Mar 26 13:16:49 MaybeJust for loop would not work as you have to leave the ondraw for it to actually draw something. Mar 26 13:17:38 could start a thread have it do w/e processing u want and then then invalidate the view. have ur loop in that thread Mar 26 13:18:48 nobody here whixh can solve the problem of background runing application? Mar 26 13:20:00 when I try import a project with egit, it almost works but it is not recognized as an android project Mar 26 13:20:05 does someone know why ? Mar 26 13:22:27 jagruti_: someone already told you, startActivity Mar 26 13:38:39 are there known problems with the ADT download site? Mar 26 13:39:05 https://dl-ssl.google.com/android/eclipse/ says "404. That's an error." Mar 26 13:41:53 you're not supposed to go there in your browser. Mar 26 13:41:57 use it within eclipse Mar 26 13:42:06 follow the instructions Mar 26 13:43:38 lov: oh ok, I just checked with the browser because I got an error in eclipse :-) Mar 26 13:44:22 lov: looks like s/https/http/ did the trick Mar 26 13:53:07 hello, i have a project in eclipse that i've inherited, it currently has around 23k worth of styles and 2k worth of strings as resources, every time i change a string or style, it takes ~6 mins to compile and deploy to a device, is the only solution to this is to break this one huge project into multiple? Mar 26 13:59:27 o_O Mar 26 13:59:30 faster computer Mar 26 13:59:42 less string resources Mar 26 13:59:50 yeah, faster computer, and see whether you can cut down on the number of different resources to compile first. Mar 26 14:00:01 23,000 styles? Mar 26 14:00:03 splitting this into multiple projects probably won't help Mar 26 14:00:21 what computer is it running on? Mar 26 14:00:43 i7, 16 GB of ram Mar 26 14:00:54 need more specifics? Mar 26 14:01:09 the project has that many styles because it's very customizable Mar 26 14:01:14 damn Mar 26 14:01:22 hey guys...ive never posted to stack overflow b4, would this be acceptable without ppl biting my head off? http://pastebin.com/grj7jEd3 Mar 26 14:01:32 VERY customizable :P Mar 26 14:01:44 ya ive been there Mar 26 14:01:46 not much help Mar 26 14:01:50 as a rule of thumb, people on stackoverflow will always find a reason to bite your head off Mar 26 14:02:16 lol Mar 26 14:04:49 Could anybody help wtih this? http://stackoverflow.com/questions/9873399/how-to-determine-if-an-android-phone-is-using-the-data-connection-for-streaming/9873551#9873551 Mar 26 14:06:34 mohadel: because streaming is just a TCP socket like any other connection, you will not be able to 'detect streaming' Mar 26 14:06:54 you might be able to detect the use of certain apps, using the ActivityManager or /proc/ directory Mar 26 14:07:55 I have an application that uses network sockets to get mouse information from an Android device. When I test the desktop application on my Macbook Pro running OS X everything works great, and is super fast, however, when I run the same code on Windows 7 it is extremely slow, and lags. I have two threads, one waits for new network connections, and then starts another thread to handle the new connection. In the second thread should I spawn off another t Mar 26 14:07:55 to handle the actual processing of the mouse commands or can I just handle them in that thread? I think this might be where the issue is. Mar 26 14:08:45 dlaroche: your question is too general and isn't it about windows development? Mar 26 14:08:50 there are channels for that Mar 26 14:09:00 readme: thanks! So, is there a way to know if the established connection is using TCP or UDP packets? Mar 26 14:09:08 mohadel: netstat Mar 26 14:09:22 which reads from the /proc fs, that you have access to. Mar 26 14:09:29 so if you cant run netstat, you can write your own code. Mar 26 14:09:32 readme: I have an Android app programmed in Java, and a desktop application programmed in Java....yes these questions can be asked in here Mar 26 14:09:49 dlaroche: this channel is for android development. it sounds like the problem is in your desktop app? Mar 26 14:09:59 Im making a game, I am adding bitmaps as objects. Can I use getResources() in a object-class or is it for activity only? Mar 26 14:10:09 It's all Java related....either way Mar 26 14:10:25 dlaroche: well your question is too vague to warrant an answer. Maybe post a code sample or something Mar 26 14:11:53 Duke_Puke pass context to w/e class u need to grab the resource Mar 26 14:11:59 or create one class to do all resource grabbing Mar 26 14:12:04 organization ftw Mar 26 14:12:18 Oh never thought of that, thanks :) Mar 26 14:12:29 lol np Mar 26 14:12:47 * Jug6ernaut wishes he listened to his own advice some times xD Mar 26 14:12:52 readme: does the phone have to be rooted to access netstat? Also, I've tried to find how to read it, but I couldn't find it... I'll guess I'll keep googling it... Mar 26 14:14:00 mohadel depends if netstat is an included binary Mar 26 14:14:01 mohadel: hm, I thought net was readable, but it mighjt not be Mar 26 14:14:10 yeah, dlaroche, if your problem is "this client app works on os x but not on windows" this is probably the wrong channel to discuss it. I'd strongly recommend asking in #java, where you'll get reasonable feedback. Mar 26 14:14:17 netstat is runnable, so the files it use must be readable Mar 26 14:14:17 http://pastebin.com/VrPkKLMW Mar 26 14:14:36 it sounds like there's no problem with the android app itself Mar 26 14:14:49 lov: there isn't Mar 26 14:14:50 yeah no if your code has JFrame in it, this is NOT the right place to ask. Mar 26 14:14:56 please go to #java Mar 26 14:15:10 it seems that netstat IS readable, but I can't figure out how to read it... Mar 26 14:15:13 damn it lov....don't go app shit crazy on me now....i'm already there Mar 26 14:15:25 mohadel process Mar 26 14:15:28 I'm being nice here. Mar 26 14:15:33 dlaroche: it is slow? Mar 26 14:15:37 do you know where it is slow? Mar 26 14:15:48 lov's being nice for once.....what's today?? Mar 26 14:16:15 your chance to ask this question in #java and NOT here. Mar 26 14:16:22 I'm thinking when the mouse commands get processed...but I thought reading into a buffer would overcome this Mar 26 14:16:26 but while we're at it Mar 26 14:16:29 else if(commandType.contentEquals("Left_Click") Mar 26 14:16:33 mohadel: you can execute it Mar 26 14:16:42 "Left_Click" et al should be private final Strings, for clarity Mar 26 14:16:48 and/or they're probably already defined by Java somewhere Mar 26 14:16:52 and open a pipe to its stdout Mar 26 14:17:20 http://snippets.dzone.com/posts/show/5921 something like this should work Mar 26 14:17:39 dlaroche: profile your app, figure out where the slowdowns etc happen. Figure out if it's when you're sending content to the device or when you're getting it read in. Mar 26 14:17:42 but I am not responsible for the quality of that snippet. it was a quick google. Mar 26 14:17:53 REGARDLESS, this is not the right place to worry about the question, so please don't discuss it here, neat as it may be Mar 26 14:18:02 I'll check it out, thanks! Mar 26 14:18:02 there is also ##java Mar 26 14:19:03 lov....see there you go....I left it alone a long time ago, and here you are dragging it on telling me not to discuss it Mar 26 14:19:10 nice role modeling.... Mar 26 14:19:14 lol Mar 26 14:19:31 Hello Mar 26 14:20:47 Q: Is it possible to find retried resource programmatically. Instead of 'R.id.my_edit' to get it via Fn call, such as: GetResource ("my_edit"); ? Mar 26 14:21:17 silur: what is the use case Mar 26 14:21:54 and yes, it is possible Mar 26 14:21:57 but I doubt it's the right solution Mar 26 14:22:03 readme, I have many forms and I want to make a set of universal API's (using only ID's) to prepopulate/retrieve info from these forms Mar 26 14:22:22 why not just create a static HashMap that maps Strings to resource ids Mar 26 14:22:29 you can initialize the whole thing in a static block Mar 26 14:22:52 readme, possibly might be a solution too... Mar 26 14:23:53 look up the Class class Mar 26 14:23:56 R.id.class Mar 26 14:24:01 you can call getFields etc, and reflect them Mar 26 14:24:45 readme, see, part of this task is having string "amount" - to retrieve value from form using "R.id.edit__amount" and then submit POST request to custom SaaS using "x_amount" variable Mar 26 14:24:45 but I recommend you do your reflection in a static block so it doesnt slow your code down to molasses speed Mar 26 14:25:42 readme, so passing an array of strings will give me all that is needed to read data from form and to submit request to other server Mar 26 14:25:52 any linux buffs out there? Mar 26 14:26:08 jeppy: of course Mar 26 14:26:33 can you tell me the difference between /dev/block/mmcblk#p## (system) and /dev/block/mmcblk#p## (systemorig) ? Mar 26 14:26:34 silur: yeah.. you can get that value with reflection. Mar 26 14:26:45 readme, so any: "blah" == R.id.edit__blah == POST var: x_blah Mar 26 14:26:58 jeppy: no idea, tried ##linux Mar 26 14:27:18 silur: where's X come from Mar 26 14:28:10 readme, 'x' is just common prefix to all vars to be POST-ed Mar 26 14:28:37 x_customer, x_amount, x_credit_card_number, etc.... Mar 26 14:29:34 silur: https://gist.github.com/2205481 Mar 26 14:29:55 something I used when I needed to switch languages based on what button was clicked within code during runtime Mar 26 14:30:01 does the same thing you want Mar 26 14:30:24 it parses the actual name of the resource for data Mar 26 14:30:51 I did this inside a static block and cached the results, so it was not burdensome for performance Mar 26 14:31:47 readme, thanks. Got to read more about it to get a grip on this technique Mar 26 14:50:49 I am getting an "Unable to load Widget" when adding my own - what could the reason be ? Mar 26 14:51:02 sorry for the quotes, its "Problem loading widget" Mar 26 14:51:25 Insayne: check logcat Mar 26 14:51:43 that should be your first reaction to every problem Mar 26 14:51:52 but if I had to guess, I would say your layout is not inflating properly Mar 26 14:51:57 because of errors in it Mar 26 14:52:08 you are correct Mar 26 14:52:31 It tells me "Couldn't find any view, using error view Mar 26 14:53:10 how come it tells me that though? Mar 26 14:53:32 look at a basic widget example Mar 26 14:53:58 I am sure you are not specifying the layour properly Mar 26 14:54:02 layout* Mar 26 14:54:07 or your layout is invalid Mar 26 14:54:46 well, there is something odd - in my "example" widget Mar 26 14:54:49 i can use: android:layout_width="match_parent" Mar 26 14:54:51 here I can not Mar 26 14:55:53 do you know why this would be ? Mar 26 14:56:03 it doesn't sound like you are beavily invested in your current start Mar 26 14:56:07 heavily* Mar 26 14:56:15 just srat over with a working example Mar 26 14:56:31 Well, I did - i tried to implement it into another project, there it fails Mar 26 14:56:43 it does however not make sense - except the OS version i build against Mar 26 14:56:56 you are trying to shoehorn widget code into existing code which I can't vouch for Mar 26 14:57:15 okay; So how should I do it? Mar 26 14:57:29 I would start with a working widget Mar 26 14:57:35 then migrate the classes from my other project Mar 26 14:57:39 done so Mar 26 14:57:42 and it doesnt work Mar 26 14:57:46 thats where it is failing Mar 26 14:57:48 *sigh* Mar 26 14:57:56 debugging is the most important part od coding Mar 26 14:57:58 yeah, exactly my point :) Mar 26 14:58:02 and you obviously have no patience for it Mar 26 14:58:07 yes, I understand - no thats not it Mar 26 14:58:17 I am to supply a layout_width attribute Mar 26 14:58:18 hey guys, my app isn't working, any idea what could be wrong? Mar 26 14:58:33 however, android:layout_width="match_parent" - gives me an error, that I can't use it Mar 26 14:58:39 evancharlton: it's line 76 in MainActivity.java - you've missed a ) Mar 26 14:58:40 and I do not understand why it would not Mar 26 14:58:49 Leeds: nope, try again Mar 26 14:59:10 you mean fill_parent? Mar 26 14:59:11 so I wonder what could prevent, my layout xml not to allow android:layout_width="match_parent" ? Mar 26 14:59:11 Insayne: are you building against something super old like 1.5? (api 3) Mar 26 14:59:20 no, I meant match_parent Mar 26 14:59:22 Insayne: why didn't you ask that in the first place? Mar 26 14:59:31 Cause english isn't my first language Mar 26 14:59:31 Insayne: match_parent used to be called fill_parent Mar 26 14:59:39 oh my bad Mar 26 14:59:42 <- out of the loop Mar 26 14:59:55 so its fill_parent maybe (in the API I am working?) Mar 26 15:00:14 try it Mar 26 15:00:40 you were right Mar 26 15:00:45 thank you very much Mar 26 15:00:45 booya Mar 26 15:00:51 oldfad to the rescue Mar 26 15:00:59 *fag Mar 26 15:01:01 god Mar 26 15:01:09 smoking and typing with one eye squinted is not working out Mar 26 15:01:15 see, i was aware it had something to do with the API, but couldn't understand, how a parameter could not be acceptable, as i thought it was cross-api levels usable Mar 26 15:01:37 and that , you can't debug, you can only see its not working :P Mar 26 15:02:06 I am glad my lack of updated android knowledge was useful Mar 26 15:02:27 you get a symbolic <3 Mar 26 15:02:35 cause I wouldn't have ever found this Mar 26 15:03:05 i am one API level lower (7) than in the example (8) Mar 26 15:03:26 didn't think they would rename arguments :P Mar 26 15:03:47 I am surprised as well Mar 26 15:05:40 I have an Activity implements onClickListener and then another Activity extends MapActivity...the message i get is "org.teo.wall.maps.PlacesMapActivity}; have you declared this activity in your AndroidManifest.xml?" I have declared it like this : " " Mar 26 15:05:41 so, How do i define how many Cells or rows a widget takes up? I read some math... but not sure if thats the way I should approach it Mar 26 15:05:50 Should i change the way i declare it ? Mar 26 15:07:27 ancanta: what is your base package name? Mar 26 15:07:46 org.teo.wall , wmbest2 Mar 26 15:07:49 if maps is a sub package youll have to do .maps.PlacesMapActivity Mar 26 15:08:32 .maps.PlacesMapActivity or without the starting dot ? Mar 26 15:08:48 with? I honestly haven't ever tried without Mar 26 15:09:16 wmbest2, thnx a lot! works :) Mar 26 15:09:20 np Mar 26 15:24:09 how can I add an edittext to a widget? Mar 26 15:24:37 You can't Mar 26 15:24:50 aha... so how do other widgets work around this? Mar 26 15:25:01 Insayne: examples? Mar 26 15:25:08 Google bar in ICS is a widget Mar 26 15:25:22 It's a textview that looks like an edittext Mar 26 15:25:25 then, you got others like twitter, facebook, etc Mar 26 15:25:29 It just opens a new activity on click Mar 26 15:25:34 == SimonVT Mar 26 15:25:40 aha Mar 26 15:25:56 thats why edittext boxes look different then... Mar 26 15:26:00 and never standard Mar 26 15:26:49 what? Mar 26 15:26:57 just apply the EditText style to a TextView Mar 26 15:27:05 oh Mar 26 15:27:09 let me try that Mar 26 15:27:42 what tag/param is that? Mar 26 15:27:48 style Mar 26 15:29:18 hrm, says there is no attribute style (API lvl 7) Mar 26 15:29:29 I guarantee you there is Mar 26 15:29:59 I do a TextView, and added android:style="EditText" Mar 26 15:30:04 and I get that error Mar 26 15:30:23 (I do this in my layout XML file) Mar 26 15:30:31 I said "style" not "android:style" Mar 26 15:30:48 oh Mar 26 15:31:11 Is that.. the only attribute not in the android namespace? Mar 26 15:31:20 yeah I was wondering Mar 26 15:31:22 also: style="EditText" .. in what universe do you think that will work? Mar 26 15:31:38 well, i dont know the options :P Mar 26 15:31:54 HDroid: I don't know if it's the only one, but it needs to be processed before the android namespace does Mar 26 15:32:11 evancharlton: hm ok Mar 26 15:32:26 so, where do I see a list of style="" params, i can use ? Mar 26 15:32:46 iirc, style is processed by the compiler and the android namespace is processed at runtime or something Mar 26 15:32:52 Insayne: d.android.com Mar 26 15:34:12 hrm Mar 26 15:35:07 First off, you ref styles with @style/ .. second, you need to specify it's in the android namespace, so @android:style/ .. then you need the actual name of the style, so @android:style/Widget.EditText .. then you need to account for holo users, so duplicate the layout and use @android:style/Widget.holo.EditText.. Then you realize this is probably going to look horrible on some devices, and just co Mar 26 15:35:07 py the resources you need to your own project and apply the edittext selector directly to the textview as a background Mar 26 15:35:45 so can you give me a little boost here - I thought it would be style="@style/R/Widget_EditText", but clearly, i can't reference "R" like this Mar 26 15:36:02 how can I reference R.Style ? Mar 26 15:37:01 I also tried @R.Style/Widget_EditText which doesnt work... so I am a bit clueless about the structure here... Mar 26 15:38:02 Insayne: guess-and-check rarely works Mar 26 15:38:07 just as a heads up :) Mar 26 15:38:16 heh... I suppose so :s Mar 26 15:38:33 I just don't see it on android dev, where I believe it could/should be Mar 26 15:38:41 obviously I am wrong, but am getting more clueless as to where to find it Mar 26 15:39:13 I suggest you re-read what SimonVT explained to you above Mar 26 15:40:03 oh, i didnt see that Mar 26 15:40:04 sorry SimonVT Mar 26 15:41:03 What is this "holo" skin users ? Mar 26 15:41:10 Android does not have a single native skin ? Mar 26 15:42:24 Is there a way I can pass a value i parse from an xml file to a Class in another package ? Mar 26 15:43:39 api11+ has a holo theme Mar 26 15:43:58 hm, gonna google it, wonder what it looks like Mar 26 15:44:04 Insayne: ICS Mar 26 15:44:14 So to use their native edittext styling you need to put your layout in layout-v11 and use Widget.Holo.EditText Mar 26 15:44:25 ancanta: I really have absolutely no idea what you're asking Mar 26 15:44:39 And if you REALLY want to use the native styling, put your layout in layout-v14 and use Widget.DeviceDefaults.EditText Mar 26 15:44:41 holo = Galaxy Nexus ? Mar 26 15:44:46 ancanta: are you asking about passing values between activities? Mar 26 15:44:51 or Ice Cream Sandwich ? Mar 26 15:45:32 honeycomb+ uses the holo theme Mar 26 15:45:36 wmbest2, no i have an Activity an a simple Class...is it possible to pass from the Activity to the class ? Mar 26 15:45:50 okay, cool to know Mar 26 15:46:52 hi ;) Mar 26 15:48:14 ancanta: Contructor? or public method? Im with evancharlton, Im not really sure what youre trying to accomplish Mar 26 15:48:58 wmbest2, public method...im not sure if I can do it :/ Mar 26 15:49:13 ... what Mar 26 15:49:56 I guess it cant be done ! :) Mar 26 15:50:00 uhm.. Why can't you do it? Mar 26 15:50:10 ancanta: I would love to know why you think that's not possible Mar 26 15:50:41 :p ok evancharlton i'll try to make it simple..how i pass data from a Class to another? :) Mar 26 15:50:48 and sorry 4 my bad english Mar 26 15:50:52 just like you pass any other data Mar 26 15:50:59 ancanta: this is like a Java 101 question Mar 26 15:51:21 hm ok i need a coffee Mar 26 15:51:26 :) Mar 26 15:51:45 public void passMeSomeDataMoFo(String imGonnaPassSomeDataInHere) in your Class Mar 26 15:51:57 I programatically created some circles with shapedrawable(new OvalShape()), but they have little black bits on the sides Mar 26 15:52:04 so, if I get the widget structure right, buttons send intents, and you gotta listen to those intents, and thats where you can run yours tuff ? Mar 26 15:52:12 anyone know how to make nice clean circles? Mar 26 15:52:19 Insayne: yes Mar 26 15:52:23 aha! Mar 26 15:52:27 (I am learning, you see :P ) Mar 26 15:52:35 Ankhwatcher: canvas.drawCircle(..) Mar 26 15:52:45 wmbest2, thank you :) Mar 26 15:53:05 Buttons send intents only if you have that in the listener, or am I missing something? Mar 26 15:53:06 ancanta: I seriously suggest you learn how to program first Mar 26 15:53:17 evancharlton: I need to passthem to an ItemizedOverlay, so I need drawables. Mar 26 15:53:38 mikey|n1: well you set a pending click intent on the remoteview so that's taken care of Mar 26 15:53:43 if I want to email an apk for someone to test it, the apk cannot be signed with the developer key, right? Mar 26 15:53:50 DammitJim: why not? Mar 26 15:54:03 DammitJim, yeah it can Mar 26 15:54:05 Ankhwatcher: I suppose you could create a bitmap from your canvas and create a new BitmapDrawable Mar 26 15:54:08 I've tried that but then when the user tries to install it, the installation fails Mar 26 15:54:22 DammitJim: we're going to need more information than "LOL DUN WORK" :) Mar 26 15:54:24 I'm sorrry... I used the wrong word Mar 26 15:54:47 can I use the export unsigned application package from Eclipse Mar 26 15:54:51 instead of the signed one Mar 26 15:55:00 hold on, I'm testing it Mar 26 15:55:01 DammitJim: if you want to sign it afterward, then yes Mar 26 15:55:24 unsigned APKs cannot be installed on any device Mar 26 15:55:42 thanks, that's what I meant Mar 26 15:56:10 I'll google how to sign it with the developer key, then Mar 26 15:56:11 thanks Mar 26 15:56:31 just pull the APK out of your bin/ directory Mar 26 15:56:43 or just sign it with your release key Mar 26 15:56:46 or any other key :) Mar 26 15:57:03 oh, the apk in my bin directory is already signed? Mar 26 15:57:17 with your debug key, yes Mar 26 15:57:26 otherwise you wouldn't be able to install it :) Mar 26 15:57:39 awesome... the little things that make things work Mar 26 15:57:39 thanks Mar 26 16:05:15 The circles are fine! the black bits are shadows! Mar 26 16:05:28 how do I get rid of the shados? Mar 26 16:05:33 how do I get rid of the shadows? Mar 26 16:06:59 I didn't think it was possible to set shadows on a shape Mar 26 16:07:33 You said your shape drawable was being created with new OvalShape? Mar 26 16:07:47 actually I'd like to disable all shadows, if that is easier Mar 26 16:07:52 wmbest2: yes Mar 26 16:08:01 Have you tried using the drawable resource in xml? Mar 26 16:08:15 I dont know what shadow it could even be Mar 26 16:08:55 can one assume that an activity's window (getWindow()) and that its window's decorview (getWindow().getDecorView()) will be the same objects throughout the lifetime of the activity? Mar 26 16:09:05 wmbest2: I did try that, but I couldn't get the color to set. Mar 26 16:09:46 Ankhwatcher: im not sure... any chance you could screenshot what youre talking about? Mar 26 16:10:10 I want to create a tabbed app, like the contacts app. I want support for >= android 2.3 - but the TabActivity is deprecated, and Action Bars are not supported in 2.3 (well, there is a 3rd-party componente ActionBarSherlock) - so what should I use for this common use case? Mar 26 16:11:00 hrm, I want to run my own function from a button in a Widget, how would I achieve this? Mar 26 16:11:41 andihit: sounds like you just answered your own question: ActionBarSherlock :) Mar 26 16:12:56 evancharlton: do I *really* have to use a 3rd party component to get tabs? Mar 26 16:13:13 i.e, do I have to start an activity? Mar 26 16:13:31 andihit: you want a platform feature on old versions of the platform; I'm not really sure how you're expecting it to work otherwise Mar 26 16:13:56 you could build one version with TabActivity and one version with ActionBar tabs and choose the correct layout based on resource qualifiers if you want Mar 26 16:14:30 how to simulate hdpi, mdpi and ldpi in avd manager? Mar 26 16:14:49 create new emulator with the preferred screen size Mar 26 16:15:21 evancharlton: I want ActionBars inside the android compatibility package ;) Mar 26 16:15:30 like they did with Fragments Mar 26 16:15:50 andihit: as do many people :) Mar 26 16:16:06 vitor-br: create three different AVDs Mar 26 16:16:22 what are the sizes for each configuration? Mar 26 16:17:09 dpi has to do with density, not with resolution Mar 26 16:17:15 You can set the density of your avd Mar 26 16:19:50 http://forum.xda-developers.com/showpost.php?p=13339346&postcount=3 is that right? Mar 26 16:22:31 I short question, is it smart to call methods from other classes, ram wise? Mar 26 16:23:41 i.e, I have mywidget class, and want to access functions from the mainactivity, is that a good approach? (To me it seems wrong, comparing to python imports, and the memory footprint) Mar 26 16:24:31 it's bad design-wise, but it won't (realistically) affect your footprint Mar 26 16:24:38 effect? shoot Mar 26 16:25:01 yeah, I think I was right the first time. Someone correct me if I wasn't :P Mar 26 16:25:28 you were Mar 26 16:25:41 wooo Mar 26 16:25:48 evancharlton; is it better to copy paste the function ? or what would design wise be better? Mar 26 16:25:51 evancharlton im going to io! Mar 26 16:26:04 canadiancow|work: \o/ Mar 26 16:26:05 copy...paste... dont duplicate code :( Mar 26 16:26:19 it was more of a joke the copy-paste Mar 26 16:26:21 canadiancow|work: we'll have to get beers sometime Mar 26 16:26:25 i just wonder what the smart approach here is Mar 26 16:26:28 we dont joke around here Mar 26 16:26:31 Insayne: refactor it out to a common location or something Mar 26 16:26:38 evancharlton, sure... you owe me one dont you? Mar 26 16:26:42 someone promised me a beer :D Mar 26 16:26:47 a beard Mar 26 16:26:48 canadiancow|work: you got it Mar 26 16:26:50 i'll be in SF that whole week Mar 26 16:26:51 i promised you a beard Mar 26 16:26:58 mikedg can also buy me a beer Mar 26 16:27:01 mikedg: we both know you can't grow a beard Mar 26 16:27:10 well, its either in the main activity, or in the widget - and I would load those classes methods Mar 26 16:27:26 Insayne: and it's utterly impossible to create a third class? Mar 26 16:27:31 the only thing I can think of, is that I seperate the functions into their own class, and then load the method Mar 26 16:27:34 ill grow a bear Mar 26 16:27:42 an entire bear? Mar 26 16:28:05 so thats the approach then, I thought so... Mar 26 16:28:16 hey canadiancow|work Mar 26 16:29:04 wmbest2: I fixed it by implementing a draw in my ItemizedOverlay and disabling shading in the super.draw Mar 26 16:30:29 hi Napalm Mar 26 16:32:07 Army awkward android stock photography is the best awkward android stock photography: http://cdn.androidcentral.com/sites/androidcentral.com/files/postimages/634222/android-army-app.jpg Mar 26 16:32:33 evancharlton, wanna give Napalm a kick for me ;) Mar 26 16:33:43 canadiancow|work: hm? Mar 26 16:34:07 he pm'd me to fix draw something :( Mar 26 16:34:29 ah, that's up to you to /ignore Mar 26 16:36:12 ? Mar 26 16:36:13 :| Mar 26 16:37:10 canadiancow|work: have you seriously /ignore'd me for that.. im trying to help :| Mar 26 16:37:25 [12:32:07] https://play.google.com/store/apps/details?id=com.omgpop.dstfree Mar 26 16:37:25 [12:32:09] fix it :D Mar 26 16:37:29 that is not helping Mar 26 16:37:42 i have you more details Mar 26 16:37:45 did you not get my messages? Mar 26 16:37:55 i did, and i really dont care Mar 26 16:38:06 well maybe you can forward it on Mar 26 16:38:11 canadiancow|work: Wanna play draw something with me? Mar 26 16:38:12 Napalm: as a general rule, people in here aren't customer support, no matter which company they work for Mar 26 16:38:17 i tried to email, but it doesnt go through Mar 26 16:38:21 SimonVT: lol sure? Mar 26 16:38:24 i know Mar 26 16:38:52 Send me your username Mar 26 16:39:23 ... Mar 26 16:39:26 canadiancow Mar 26 16:39:26 Speaking of Draw Something, how can you add your facebook to an existing account? Mar 26 16:39:36 Alright then :p Mar 26 16:39:40 * canadiancow|work leaves Mar 26 16:39:43 lol Mar 26 16:40:45 canadiancow|work: seriously though, sorry for bothering you but i just wanted to point that bug out and if you can get it into the right hands thats great and all.. if not, im not bothered, as i said only trying to help Mar 26 16:41:18 back to code Mar 26 16:42:14 if anything wants to draw something at me I'm very consistent with my username Mar 26 16:42:26 Fuck that was a bad drawing Mar 26 16:42:45 http://www.youtube.com/watch?feature=player_embedded&v=JsPIzRsUtlE Mar 26 16:42:46 canada wins Mar 26 16:50:35 draw something fails Mar 26 16:51:18 :) Mar 26 16:51:50 it seems ok, i just dont really play games on android Mar 26 16:52:57 yeah ios games are better Mar 26 16:53:20 f that Mar 26 16:54:06 lol Mar 26 16:55:57 i wonder where my iphone and ipad are these days Mar 26 16:56:31 work gave me them for development, but i told them i didnt want to do ios anymore and to hire someone else Mar 26 16:56:57 then i let the devices float around the office and i havent seen them in a few months Mar 26 16:58:43 I feel like draw something can't be a game, because I play it. Mar 26 16:59:34 i played it saturday night Mar 26 17:00:06 both my wife and i laid in bed with our android tablets playing it with each other Mar 26 17:00:15 sexy Mar 26 17:00:16 then realized there were better things to do ... Mar 26 17:00:39 like make babies Mar 26 17:00:42 and then you made babies Mar 26 17:00:53 and they popped out of the oven in 25 minutes at 425 degrees Mar 26 17:00:55 no babies for us Mar 26 17:01:24 hey guys?, i have a xperia phone, does anyone know what tft mean?, and why developers from CM don't give their rom in tft file? Mar 26 17:01:45 thin film transistor Mar 26 17:02:17 isn't a tft like a bitmap? Mar 26 17:02:23 that's TIFF Mar 26 17:02:23 el_alexluna: #android-root, please. Mar 26 17:03:03 or #cyanogenmod Mar 26 17:03:16 * Ankhwatcher thinks lov is a bot. Mar 26 17:03:22 beep boop what is lov Mar 26 17:03:32 evancharlton, thanks Mar 26 17:03:36 baby don't hurt me... Mar 26 17:03:48 i flashed cm9 nightly this morning hoping that disabling root would make wallet work, but it still says unsupported device Mar 26 17:03:57 no more Mar 26 17:04:02 okay, it's time to go home and eat dinner! hurray! l8rs Mar 26 17:17:17 is there a way to refernece an explicit version of a layout... for example, the layout-normal-port so I can use it in a fragment in layout-xlarge-land? Mar 26 17:17:46 no Mar 26 17:18:03 boo Mar 26 17:18:28 pull it up to the top level Mar 26 17:18:41 and make your layout-normal-port just include it Mar 26 17:19:09 ah, k. Mar 26 17:20:49 not sure that will work... it will still pull my normal-land version when I reference it in xlarge-land Mar 26 17:27:42 I have a webview that does not display properly until the user scrolls on it Mar 26 17:28:01 does anyone have any idea why this might happen? it is right after I do an animation on the layout containing the webview Mar 26 17:29:53 smit: I'm saying rename it and then promote it to top-level Mar 26 17:30:33 so if you have section.xml, move it to top-level, name it section_whatever.xml and then layout-normal-port/section.xml contains simply Mar 26 17:30:53 hello world Mar 26 17:31:09 Hello aLeSD Mar 26 17:31:15 yea, that's mostly working. :) Mar 26 17:31:41 Has anyone tried going through the facebook SDK tutorial from their site here: https://developers.facebook.com/docs/mobile/android/build/? Mar 26 17:32:01 I'm trying to learn, but i'm sure there are some things missing from this tutorial / it's hard to follow Mar 26 17:32:05 althought normal-land is now showing section_whatever cuz I'm inflating section_whatever in my fragment Mar 26 17:32:18 NutterzUK: why not try out Socialize SDK? Mar 26 17:32:50 QubeZ: I'll look into that, thanks - this facebook tutorial is driving me nuts Mar 26 17:33:02 I hear the FB SDK is a pain in the ass Mar 26 17:33:48 Even the instructions on how to import a library are wrong... I got round that,.. then in my app, it flicks to the log in screen, the user logs in, it doesn't ask for any permissions then just goes back to my activity, I'm not really sure what's going on with it :S Mar 26 17:33:48 if its as good as their app, i can imagine its pretty bad Mar 26 17:33:56 oh, duh, I think I got it. Mar 26 17:34:07 the FB app isn't bad Mar 26 17:34:22 it's much improved imo Mar 26 17:34:24 from what it was before Mar 26 17:35:01 the girl that sits next to me, her boyfriend works on it Mar 26 17:35:49 The project manager for it recently did an AMA on reddit, if I remember correctly. Mar 26 17:35:54 is it possible to hide a View in a Layout at runtime ? Mar 26 17:36:14 aLeSD: yourView.setVisibility(View.GONE); Mar 26 17:36:14 .setVisibility(View.GONE) Mar 26 17:36:25 or View.INVISIBLE if you still want it to take up the space but not be seen Mar 26 17:36:25 wow .. thanks Mar 26 17:36:34 zambo: thats because you have app wide HW accelleration on, turn it off for WebViews Mar 26 17:42:09 QubeZ: NutterzUK: I had some trouble with the facebook sdk recently where I wanted to kick off a request to the api immediately after authorization Mar 26 17:42:18 does the fragment inflater respect tags? Mar 26 17:42:38 What happens is if you do so with the app installed it calls the callback before on resume Mar 26 17:43:01 but with the webview on resume doesn't need to be called because youre already in the app Mar 26 17:43:07 smit: why wouldn't it? Mar 26 17:43:23 QibeZ: wmbes2: I'm going to spend perhaps another hour trying to get it to work, then if not i'll look at the Socialize sdk more ( I watched the video on their page, it looks good ) Mar 26 17:43:40 how does this look to everyone? http://imgur.com/XIIe3 -- I want to make sure the compass icon is in a good place. Or should I move it to the left of the EditText box? Mar 26 17:43:50 cuz my code is crashing, so it must be the sdk. :P Mar 26 17:44:12 QubeZ: I like it Mar 26 17:44:27 smit: there's no such thing as a fragment inflater, there's a layoutinflater Mar 26 17:44:51 it doesn't care whether you inflate a layout from a fragment, an activity or a service Mar 26 17:45:01 QubeZ: Looks good to me, is the idea that you enter an address, if you press that it will show you... or? Mar 26 17:45:03 smit: http://imgur.com/jacoj Mar 26 17:45:34 QubeZ: I don't think it would look as good on the left Mar 26 17:45:35 word Mar 26 17:45:45 QubeZ: Just my opinion Mar 26 17:46:06 NutterzUK: user enters address or location then its Add (or) they just press the compass to add their current location. I hope its not confusing. Mar 26 17:46:39 QubeZ: You should make a pretty ics-styled icon Mar 26 17:47:16 SimonVT: that was just the android compass icon, i'll dig up the ics one Mar 26 17:47:18 evancharlton: it's working now. Thanks for your help. Mar 26 17:47:18 if it has changed Mar 26 17:48:04 QubeZ: I'd go for one in this style: http://developer.android.com/design/style/iconography.html#action-bar Mar 26 17:48:54 hmm, I'm having a hard time getting the home icon to show up with my project that uses the ActionBarCompat stuff Mar 26 17:49:14 SimonVT: sounds good, ill do that. Is the placement of my compass icon correct or should I move it away from the EditText? Mar 26 17:50:26 QubeZ: how do you draw images inside the edittext and listen for clicks? Mar 26 17:50:35 mikey|n1: framelayout Mar 26 17:50:46 QubeZ: I'd put it on the left Mar 26 17:51:10 SimonVT: left but still inside the edittext or do you mean ? Mar 26 17:51:12 If you have an ICS device, look at how e.g. the search icon is placed in play store search Mar 26 17:51:46 ahh got it Mar 26 17:51:55 yup, search within edittext on left Mar 26 17:52:21 QubeZ: do you mean the layout is set up in the frame layout in a way that the image appears inside the edittext? Mar 26 17:52:39 mikey|n1: yup, i wrap the edittext and imageview in framelayout Mar 26 17:53:11 so my Imageview ends up being on top Mar 26 17:53:11 Ok thanks Mar 26 17:53:28 Gotcha Mar 26 17:53:28 mmm ... is it possible to extends a Layout and call a method of all the view contained ? Mar 26 17:54:06 sure Mar 26 17:54:16 SUPER Mar 26 17:54:19 evancharlton, hot could I get all the view contained ? Mar 26 17:54:31 getChildCount() + getChildAt(int) Mar 26 17:54:50 SimonVT: how do they get the hint text to show to the right of the search icon? Mar 26 17:55:14 shouldn't you just use setDrawableLeft() or something? Mar 26 17:55:16 evancharlton, thanks Mar 26 17:55:34 iirc, there's a well-defined way to get an image into an edittext/textview Mar 26 17:55:36 aLeSD: why? Mar 26 17:56:02 I created an interface Mar 26 17:56:06 QubeZ: Look at SearchView Mar 26 17:56:14 that all my view will implemnet and I want to compose the view Mar 26 17:56:16 It's actually kinda similar to what you do Mar 26 17:56:37 I'd implement a visitor pattern Mar 26 17:56:54 but I'm not going to ask why you need this :) Mar 26 17:56:55 SimonVT: thanks Mar 26 17:56:56 I think they just set visibility to show/hide it Mar 26 17:56:57 so I am creating some layout with more of my view ... and I want to call the layout method .. and it will call the same method in the child Mar 26 17:57:01 childs Mar 26 17:57:30 I hope that's the best way to do it Mar 26 17:57:33 as opposed to, say, using a layout manager :p Mar 26 17:58:06 MDijkstra, what do you mean ? Mar 26 17:58:25 aLeSD: why do you need to layout your views manually? Mar 26 17:58:35 that should never ever be needed Mar 26 17:58:57 MDijkstra, dunno .. I am thinking in composing the stuff Mar 26 17:59:14 using an extended LAyout to group my view Mar 26 18:00:43 O_o Mar 26 18:00:50 MDijkstra, lol Mar 26 18:00:53 I am learning Mar 26 18:01:18 you told me about the Visitor pattern ... you mean it could be my solution ? Mar 26 18:01:32 no, you should definitely read up on android layouts Mar 26 18:01:50 I don't know what you are trying to accomplish exactly Mar 26 18:02:13 you should always use as many design patterns as possible without regard for their appropriateness Mar 26 18:02:17 (ie, not how you plan to do it, but what you are hoping to build with this technique) Mar 26 18:02:28 when library projects work right, they are the greatest thing on earth Mar 26 18:02:33 ok ok ... I will explain Mar 26 18:02:47 I have some points to show Mar 26 18:02:49 http://developer.android.com/design/index.html Mar 26 18:02:59 evancharlton implemented sarcasm pattern Mar 26 18:03:01 :( Mar 26 18:03:08 lol Mar 26 18:03:39 the user can chose how show them. So I am using a ListView where I put the Views the user want Mar 26 18:04:08 all my views implements an interface that I use to update the data. So the code doesn't care about the kind of view Mar 26 18:05:01 I've got a problem with switching layout based on orientation Mar 26 18:05:05 I made two directories : layout-port and layout-land. Mar 26 18:05:09 When I start the application, the correct layout is loaded. Mar 26 18:05:14 But if I change orientation after the app started, the layout is rotated, but doesn't change Mar 26 18:05:19 Although some dimensions that I set in values-port and values-land are correctly updated Mar 26 18:05:26 Does anyone know why ? What can I do to correctly update the layout on orientation change ? Mar 26 18:05:28 now I want to create some views that are more complex ... like a TextView more a ProgressBar view Mar 26 18:06:08 gyscos, are you seeing this in the emulator or on a phone? Mar 26 18:06:17 smit, phone, running ICS Mar 26 18:06:29 so I was thinking to create a layout that implement my dataupdate interface and that call all the dataupdate interface of of the childrens Mar 26 18:06:46 MDijkstra, do you see my point ? Mar 26 18:06:58 gyscos, are you handling your own onCofigurationChanage? Mar 26 18:07:15 Nope, not in the activity Mar 26 18:07:39 smit, and I didn't add anything about it in the manifest Mar 26 18:07:41 aLeSD: no, not really Mar 26 18:07:53 aLeSD: you should populate the listview with an adapter Mar 26 18:07:59 I have ti Mar 26 18:08:02 it works Mar 26 18:08:15 I have a extended adapter Mar 26 18:08:27 aLeSD: then why are you trying to update your data by looking into the listview's view hierarchy? Mar 26 18:08:46 gyscos, is there a typo in the name of the xml for layout-land? Mar 26 18:08:48 wait Mar 26 18:09:23 just call notifyDataSetChanged() on the adapter Mar 26 18:09:41 of course .. I call it each time the user add a View Mar 26 18:09:51 mmm Mar 26 18:09:59 I think I explained in a bad way Mar 26 18:10:05 more abstract Mar 26 18:10:13 smit, I don't think so, as the correct layout is loaded if the phone is in the correct orientation during app start Mar 26 18:10:48 gyscos, the name of the layout has to be the same in -port and -land. It sounds like the sdk is finding your -port version bu tnot your -land version Mar 26 18:11:37 if the sdk just shows your -port version, but in -land, than I suspect there is a typo in the name of the -land version. Mar 26 18:11:45 I have some view that implements an interface. I want to create complicated layout and I want that the user (code) of those view doesn't care if it's a single view of a groupof view Mar 26 18:12:19 It sounds more like he actually did add something to his manifest Mar 26 18:12:28 smit, the name is the same. It is just main.xml. If the app start when the phone is in landscape position, than the landscape layout is used. If the phone is in portrait during app launch, the portrait layout is used. So far, so good Mar 26 18:12:34 cause the user see only the interface that all the view implementsd Mar 26 18:12:43 gyscos, ah Mar 26 18:12:48 smit, Problems only happens when I change the orientation after start Mar 26 18:13:16 Hey. I'm having problems binding a service. It works when I bind in the initial activity, but when I start a new activity and attempt to bind from there, it returns null. Source is located here. https://bitbucket.org/matthewcarberry/mopedarmy/src/546cb27121a3/src/blahspace/matt/mopedarmy/ForumListView.java Mar 26 18:13:46 smit, I'm running CyanogenMod, I hope the issue is not from the ROM itself Mar 26 18:13:55 ok Mar 26 18:14:13 aLeSD: If your views are supplied by an adapter, don't touch them outside of the adapter Mar 26 18:14:16 CM shouldn't be the problem; those guys try to keep the stock behaviors [yay them] Mar 26 18:14:27 :) Mar 26 18:14:41 gyscos, sorry, I'm out of ideas. Mar 26 18:14:43 ctate, do you run CM? Mar 26 18:15:07 I'll make a simple app to show the issue... Mar 26 18:15:15 it seems like a terrible idea to just assume every view in a hierarchy can be casted to YourInterfaceView Mar 26 18:15:27 SimonVT, that adapter extends BaseAdapter Mar 26 18:15:33 canadiancow|work: nope Mar 26 18:15:37 I add elementes at runtime Mar 26 18:15:44 too busy with kulfi i suppose Mar 26 18:15:56 Yeah, so if you need to change the data of the views, give your adapter the new data Mar 26 18:16:21 maybe we should call it Kifli instead of Kulfi Mar 26 18:16:22 SimonVT, impossible every view has different data ... Observer pattern Mar 26 18:16:29 had a really awesome plum kifli over the weekend Mar 26 18:16:51 SimonVT, I use a different thread for it Mar 26 18:16:56 aLeSD: you're not making a lot of sense Mar 26 18:17:05 mmm Mar 26 18:17:14 so ctate, drinks june 27-29? Mar 26 18:17:20 sorry :( Mar 26 18:17:29 aLeSD: notifyDataSetChanged is pretty much 'observer pattern' Mar 26 18:17:35 You're using an adapter, but you don't want to use an adapter? That's all I'm hearing Mar 26 18:19:33 ctate: Keystone Light Mar 26 18:19:45 Do you need permissions to access if the phone is on an active call? Mar 26 18:19:52 what is keystone light Mar 26 18:20:23 who's eating kulfi? Mar 26 18:20:33 ctate Mar 26 18:20:36 canadiancow|work: shitty college beer Mar 26 18:20:42 lol Mar 26 18:20:52 kulfi as in the indian dessert? Mar 26 18:21:25 evancharlton: I do not know you, sir. Mar 26 18:21:58 you guys dont know each other? Mar 26 18:22:02 i thought you were like best friends Mar 26 18:22:19 not if he drinks Keystone Mar 26 18:22:34 Keystone Cops Mar 26 18:22:40 stones! ahhh, college Mar 26 18:22:56 mikey|n1: yes; i believe that's part of READ_PHONE_STATE Mar 26 18:22:57 i'm gonna make a keystone counter app for iphones Mar 26 18:23:05 you can count how many beers you drink Mar 26 18:23:30 no market. you want iPhone users it has to count PBRs. Mar 26 18:25:08 whose down with edward 40-hands with steel reserve? ;) Mar 26 18:26:48 MDijkstra, SimonVT : http://ideone.com/5l6G2 Mar 26 18:26:53 that's the idea Mar 26 18:27:22 updateView is run by the UIthread Mar 26 18:27:47 updateData by the maththread Mar 26 18:28:25 updateView invalidate() the view if I have new data ... Mar 26 18:28:59 up to now I had single view that implemented that interface. Now I want more Mar 26 18:29:34 wait... onResume gets called after onCreate when I launch an activity? Mar 26 18:29:38 how does that make sense? Mar 26 18:29:57 because it's created before it's resumed Mar 26 18:30:06 http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Mar 26 18:30:17 I mean, shouldn't you pause something before you may resume something? Mar 26 18:30:36 no Mar 26 18:30:44 it starts in the paused state Mar 26 18:32:14 so i published my first app, but i can't seem to find it using play.google.com's market search. Mar 26 18:33:21 kevwilde: how long ago Mar 26 18:33:38 wongk: the full 60 seconds Mar 26 18:33:45 give it a couple hours Mar 26 18:33:53 Kind of an unrelated issue, but hopefully someone can help. Why would Eclipse give me a warning under the problems tab that says "Duplicate id @+id/layoutContainer, already defined earlier in this layout", but when I double click on it, it opens an .xml file and highlights the layout_height row? Mar 26 18:34:07 layoutContainer isnt even defined anywhere in that xml file. Mar 26 18:35:00 wongk: ok cheers Mar 26 18:35:09 pastebin the xml Mar 26 18:35:48 ElevenSquared: re-run lint Mar 26 18:36:00 probably just has a stale line number Mar 26 18:36:24 Really nothing to show, but: http://pastebin.com/n5rwSjK2 Mar 26 18:36:29 How do I rerun lint? Mar 26 18:36:35 Ive tried closing eclipse Mar 26 18:36:39 Cleaning the project Mar 26 18:37:29 you did clean the project? Mar 26 18:37:38 Yes Mar 26 18:37:38 and re-build Mar 26 18:38:07 Build automatically is selected. I did Clean, and choose Clean all projects Mar 26 18:38:20 unusual Mar 26 18:38:32 ElevenSquared: right-click your project > android tools > Lint Mar 26 18:38:35 something like that anyway Mar 26 18:39:26 how helpful are Console applications in java. I intend to start on android but not any time soon (i've realised how bad i am at java). Is it worth beginning with console applications in Java before moving onto bigger things? Mar 26 18:40:44 That seems to have gotten rid of the warning. Thanks Mar 26 18:40:59 Made a bunch of other warnings show up as well, but at least they all seem to point to somethign that makes sense. Mar 26 18:44:03 how can I use the same list item selector as the system default for some button? Mar 26 18:46:15 Is it possible to specify a size for a drawableLeft in a TextView? I want it similar to he ImageView's fitCenter scaleType. Mar 26 18:47:47 what is the typical percentage of active installs vs total installs? Im curious if its high or low for Android. Mar 26 18:48:05 meaning, of the total people that install -- how many actually keep an app on their phone, in general. Mar 26 18:53:40 QubeZ, for my app it's 30 something percent Mar 26 18:54:16 etuleu: figured it was on the low end, just wondering Mar 26 18:54:27 Q: Does android has equivalent of HTML dropdown where value could be different from what is shown? Spinner seems to return selection at its face value. Mar 26 18:54:30 would you mind sharing your number? Mar 26 18:54:33 right now mine is at 45% and holding over the last week. Mar 26 18:54:45 QubeZ, is it a new app? Mar 26 18:54:47 but it was only released 17 days ago Mar 26 18:54:55 so that number will keep going down to the 30's im sure Mar 26 18:55:56 yea the numbers go down after some time maybe a few months Mar 26 18:56:05 is it a free or paid app? Mar 26 18:56:14 usually people say for paid apps the number is higher Mar 26 18:56:16 im waiting for it to be reviewed -- no luck so far. It's free. Mar 26 18:56:28 reviewed? Mar 26 18:56:48 yea, i've submitted it to a few sites to get reviewed but no response. Mar 26 18:57:02 what kind of sites? Mar 26 18:57:17 androidtapp.com, androidcentral.com etc.. Mar 26 19:01:47 whats a good hotel near moscone Mar 26 19:02:17 i think the google i/o site has a list Mar 26 19:02:36 yes, but id like a person's recommendation :P Mar 26 19:05:44 good hotel near moscone? Mar 26 19:05:47 I think people love the W Mar 26 19:05:58 canadiancow|work, you signed up already? Mar 26 19:06:11 the Four Seasons is near Moscone, too. ;) Mar 26 19:06:22 i have to book through a stupid corporate system that has inflated prices Mar 26 19:06:28 silur, your Adapter is what provides a display vs. value item Mar 26 19:06:32 and ifeel bad charging the company way more than it would cost me to go on my own Mar 26 19:06:49 canadiancow|work, book through the company, and book somewhere nice, like four seasons or W Mar 26 19:07:14 err. the four seasons probably costs at least 2 or 3 times what the W does.... Mar 26 19:07:36 2 times, probably Mar 26 19:07:41 W is like 190-240/night? Mar 26 19:07:47 four seasons is like 380-420? Mar 26 19:07:53 W google io rate is 279 Mar 26 19:08:08 ok, apparently, I have no iea what the going rate for hotels is anymore Mar 26 19:08:18 four seasons is min $555/night for I?O Mar 26 19:08:50 ugh... is there a 2D game engine for Android which doesn't suck? libgdx? Mar 26 19:08:56 up to $3k for a "one-bedroom suite" Mar 26 19:08:59 for liberal definitions of 'engine' Mar 26 19:09:06 ctate, but who is comparing suites... Mar 26 19:09:13 just saying Mar 26 19:09:24 it is the "hedgies only" hotel Mar 26 19:09:30 hedgies? Mar 26 19:09:38 pfn: people stealing money Mar 26 19:09:47 hedge fund managers Mar 26 19:10:01 the most overpaid people on the planet Mar 26 19:10:09 * hackkitten apologizes for talking on-topic Mar 26 19:10:15 err yeah sorry :) Mar 26 19:10:31 hackkitten: I think the problem is that I don't think there's an engine that doesn't suck Mar 26 19:10:45 hackkitten: porting something SDL-based might work... Mar 26 19:11:16 but android doesn't do sdl, does it? Mar 26 19:11:16 Eagerly awaiting a thousand angry devs beating me to an I/O ticket because I didn't get a preorder :( Mar 26 19:11:23 pfn: actually yes Mar 26 19:11:28 pfn: take a look at OpenTTD Mar 26 19:11:34 i thought someone had an SDL port for Android, yeah Mar 26 19:11:57 pfn: there's a port of SDL to Android Mar 26 19:12:05 Got a problem guys, Eclipse has begun to make random changes to my code in real-time and I have no idea why. Mar 26 19:12:05 This can start at any moment, lets take today for an example. I was building a layout for a highscores screen for my app and all of a sudden when I click around my XML code, Eclipse starts removing whole rows of code. I click the deleted row and Eclipse exchanges the code of another row with code from elsewhere in my XML file. Mar 26 19:12:05 This continues until I restart Eclipse, but start again a few minutes after restart. Mar 26 19:12:05 Is anyone else experiencing this totaly messed up bug? Is there a solution or should I learn to live with it? Mar 26 19:12:05 and yeah, OpenTTD uses it Mar 26 19:12:25 * hackkitten looks at OpenTTD Mar 26 19:12:27 Mattadoren: consider just editing the raw XML :P Mar 26 19:12:29 does it involve libgdx? :) Mar 26 19:12:38 hackkitten: I don't think so Mar 26 19:12:58 well, sdl should be implementable on top of opengl and opensl or something Mar 26 19:13:03 SDL is pretty nice, though Mar 26 19:13:15 but I haven't seen anything more recent than like 2008 for sdl on android Mar 26 19:13:21 Mattadoren: I get that all the time. No idea what causes it. Mar 26 19:13:34 I figured I was just doing something wrong since I am pretty new to Eclipse. :) Mar 26 19:13:54 http://www.libsdl.org/tmp/SDL/README.android Mar 26 19:13:56 I guess there's that Mar 26 19:15:31 ElevenSquared: that sounds pretty strange, it might be funky behavior since SDK17 was released a few days ago Mar 26 19:15:36 and you're encountering new and exciting bugs! Mar 26 19:15:47 lov: What do you mean by just editing the raw XML) Mar 26 19:16:03 Mattadoren: in your view, there will be a couple of tabs at the bottom Mar 26 19:16:05 Pretty sure its been happening to me since more than a few days ago. Mar 26 19:16:12 one of them will be for the GUI, the other is to actually edit the XML directly. Mar 26 19:16:15 lov: the problem I experience is in the raw xml view Mar 26 19:16:19 oh huh Mar 26 19:16:24 can you press ctrl-z and get it back? Mar 26 19:16:29 Youre on a line that says... layout_height Mar 26 19:16:39 Then out of nowhere, it now says background Mar 26 19:16:44 o_O Mar 26 19:16:51 then you click a different line, and it goes back. Mar 26 19:16:54 are you maybe pressing ctrl-space or something like that for autocomplete? Mar 26 19:16:56 oh uh Mar 26 19:16:58 wait Mar 26 19:17:04 so if you click away or highlight or something it reverts? Mar 26 19:17:11 that sounds more like a drawing issue than anything Mar 26 19:17:11 yeah. Atleast for me Mar 26 19:17:21 I dont want to hijack Mattadoren's question though. :) Mar 26 19:17:31 Im assuming we're having the same problem. Mar 26 19:17:39 Exactly my problem! Im working in raw xml and gets those problems. Since way before sdk 17 Mar 26 19:18:25 * lov shrugs Mar 26 19:18:30 file a bug Mar 26 19:19:01 Im using the Android Development Toolkit version 16.0.1.v201112150204-238534 Mar 26 19:19:08 The thing is Eclipse makes changes all over the code. If i click, if i type.. even ctrl + z. Totaly fckd up Mar 26 19:19:11 I assume that means im not using SDK 17? Mar 26 19:19:30 ok, so. Mar 26 19:19:46 When eclipse notices something changes outside the editor for that file and updates itself (it generally asks you first), it'll replace ALL of the text Mar 26 19:19:46 How do I get a ServiceInfo object for a given service? Not the ActivityManager.RunningServiceInfo but the straight up ServiceInfo object. Mar 26 19:20:34 Implemented some of facebook SDK without mental breakdown == success Mar 26 19:20:34 Not all, just bits and pieces from all over the xml file Mar 26 19:21:24 I'm hoping an Android expert might be able to help me out with a problem I've been encountering for ages. I'm recording videos on a repeating schedule with my app, which works just fine. If I simultaneously playback a video (unrelated to the recorded ones) in a VideoView, at some random point the app will hang at a call to MediaRecorder.stop(). Mar 26 19:21:36 You think i should file a bug the android team och to eclipse? Mar 26 19:21:38 Example code here: http://pastebin.com/53MWNDmL (195 lines) Mar 26 19:22:13 ejcweb, what's it hanging on, got thread dumps? Mar 26 19:22:22 pfn: Yes. Mar 26 19:22:26 One sec. Mar 26 19:24:08 Man, I just do not understand how the UI is laid out Any nice exhaustive resource on designing android UIs? (i.e. several demo examples as well). Mar 26 19:24:15 pfn: I don't have it to hand right now, but all I get is the log message "MSG_RECORDING_STOP", followed by nothing else apart from the usual GC messages. When I press a key on the phone, I then get an ANR crash. Mar 26 19:24:29 ejcweb, then pastebin the anr log Mar 26 19:24:49 shoerain: http://developer.android.com/training/multiscreen/index.html Mar 26 19:25:04 http://developer.android.com/resources/browser.html?tag=layout Mar 26 19:25:07 look at the api demos apps Mar 26 19:25:23 shoerain: aaaaaaand http://developer.android.com/design/index.html Mar 26 19:25:25 how helpful are Console applications in java. I intend to start on android but not any time soon (i've realised how bad i am at java). Is it worth beginning with console applications in Java before moving onto bigger things? Mar 26 19:25:41 (meant more for graphic designers and not developers) Mar 26 19:25:46 Special-G: yes, definitely. Mar 26 19:25:49 Special-G: walk before you run. Mar 26 19:25:58 Special-G, console applications are pretty useless in android Mar 26 19:26:10 pfn: I think he means for his computer, not his phone Mar 26 19:26:12 console as in commandline applications, I assume Mar 26 19:26:18 I'd suggest doing both, Java + Android together. You'll learn a lot more Java by having a real Android project to work on. Mar 26 19:26:30 you'll make mistakes and ditch a couple of designs but you'll learn. Mar 26 19:26:45 pfn: By ANR log, you still mean the log in logcat, right? I'm just re-running that snippet I posted to make sure I get the exact error message. Mar 26 19:26:46 i.e. pres butan, String nam = system.in.readline(), system.out.println("UR NAME IS " + nam); Mar 26 19:26:55 ejcweb, /data/data/log/somethingsomething.anr.txt Mar 26 19:26:59 or /data/log Mar 26 19:27:00 I forget Mar 26 19:28:29 desktop gui apps are pretty useless for android too Mar 26 19:28:30 pfn: As in the file it mentions here? Wrote stack traces to '/data/anr/traces.txt' Mar 26 19:28:38 yes Mar 26 19:28:45 mikedg, that's not completely true Mar 26 19:28:54 desktop gui apps map quite directly to android Mar 26 19:29:14 they'll teach someone how to bind data to uis using "Models", aka Adapters Mar 26 19:29:22 pfn: Can I grab it with adb easily? The file explorer in DDMS isn't showing anything in data/ at all strangely. Mar 26 19:29:36 ejcweb, if you have the filename, you should be able to adb pull it Mar 26 19:29:41 ejcweb, /data is not world-readable Mar 26 19:29:47 bind this 8==D Mar 26 19:30:06 desktop java gui apps also teach users to attach event listeners, and about the event queue Mar 26 19:30:14 which maps directly into android event handling and Handlers Mar 26 19:31:05 At uni they teach us Java first, then C/C++, then mobile application programming Mar 26 19:32:56 pfn: Okay, here's the ANR trace: http://pastebin.com/TUnU8ds7. The Exception is only raised when I press a key (sometime after the actual hang at the call to stop()). Mar 26 19:33:14 With the exception reason being: KeyDispatchingTimeOut. Mar 26 19:36:18 ejcweb, hmm, dunno, don't see what's holding locks in that, maybe ctate can help you decipher or something Mar 26 19:36:47 pfn: Do the first few lines of that just say that .stop() is still blocking? Mar 26 19:36:56 ejcweb, yes Mar 26 19:37:43 pfn: I can only suspect it's something to do with concurrent SD access, since I've never encountered the error when I've tried reproduce it without any other process accessing SD. Mar 26 19:37:53 it isn't a "holding locks" thing Mar 26 19:37:56 look at hte main thread: Mar 26 19:37:59 * ctate | at android.media.MediaRecorder.stop(Native Method) Mar 26 19:38:07 so, it's blocked somewhere in native code Mar 26 19:38:09 :( Mar 26 19:38:16 ctate: Exactly :( Mar 26 19:38:20 right... why, where, is it a mutex problem or what Mar 26 19:39:33 The big problem is this: You then lose lock to the camera, and then the process dies, and then nothing can use the camera until the phone is rebooted. Mar 26 19:39:35 Is it possible to disable the screen-timeout of my phone while the usb cable is plugged in? Mar 26 19:40:13 yes Mar 26 19:41:19 I am able to catch when this problem occurs by executing .stop() within a Future structure to see if it times out. Sadly the only thing then I can do is reboot the phone programatically (I'm rooted). Mar 26 19:41:45 pfn: it might be a bug in the media framework Mar 26 19:41:48 * ctate shrugs. Mar 26 19:42:12 Im guessing its device specific? I dont seem to have a 'stay awake' under my Settings -> Application -> Development. Mar 26 19:42:41 ctate: I'm pretty convinced it is a bug in the framework. Mar 26 19:43:05 This is on 2.3 btw, although I've noticed it on both 2.1 and 2.2. Not sure about never versions. Mar 26 19:43:18 ejcweb: please file a bug report with stack trace and thread dump on b.android.com Mar 26 19:44:15 flight booked :D Mar 26 19:44:27 canadiancow|work: \o/ Mar 26 19:44:34 canadiancow|work: did you get a ticket already? Mar 26 19:45:08 maybe ;) Mar 26 19:48:04 is it possible to have a java class or a xml file with a "color database" in it? which i can use in my java classes as well as in the XML files ??? (like "string.xml" or something) ? Mar 26 19:48:44 like colors.xml? Mar 26 19:48:47 :3 Mar 26 19:49:00 http://developer.android.com/guide/topics/resources/more-resources.html#color-element Mar 26 19:49:07 anyone have a multi core device that lists multiple processors for /proc/cpuinfo? Mar 26 19:49:20 argh, i keep getting java.lang.VerifyError's, what the heck are those? Mar 26 19:49:44 jeppy, GN lists multi cpu Mar 26 19:49:54 Some method or class in one of your classes doesn't exist Mar 26 19:49:58 kevwilde, unable to look up methods in older versions of android Mar 26 19:50:06 pfn, you have a gn? Mar 26 19:50:20 lol sorry SimonVT and Rockmaninoff ... thanks :) Mar 26 19:50:21 How can i figure out which method call it is? Mar 26 19:50:28 kevwilde, it's in logcat Mar 26 19:50:58 it's referring to an inner class that exists :/ Mar 26 19:51:05 i like turtles Mar 26 19:51:20 i just updated my SDK kit and the errors started happening :/ Mar 26 19:51:50 What class is it, and what api level are you testing on? Mar 26 19:52:00 pfn, nevermind i found it online Mar 26 19:52:01 kevwilde, you're using an api in that inner class Mar 26 19:52:20 ok so, i am getting an error with this line Mar 26 19:52:22 setContentView(R.layout.test1); Mar 26 19:52:25 pfn: could you explain? Mar 26 19:52:43 the error being, "test1 cannot be resolved or is not a field" Mar 26 19:52:44 kevwilde, you're using a not-present api Mar 26 19:54:24 pfn: what api? the line is just instantiating an inner class Mar 26 19:54:51 If a class is added in API14, and you try to use it on API10.. VerifyError Mar 26 19:55:02 ... Mar 26 19:55:03 i'm on a Galaxy Nexus Mar 26 19:55:17 that results with this inside R.java: test space=12345678; Mar 26 19:55:21 kevwilde, pastebin the inner class Mar 26 19:55:38 testing on a GN? Mar 26 19:55:42 kevwilde, pastebin logcat Mar 26 19:55:49 including 20 lines before and after the exception Mar 26 19:56:25 pfn: http://pastebin.com/iza3dzfk Mar 26 19:56:49 logcat says the error is on the line: DownloadTicketsTask downloadTickets = new DownloadTicketsTask(); Mar 26 19:57:06 do what I said Mar 26 19:57:37 Jeevis: Either you havent got the file "test1.xml" in the /res/layout-folder or something might be wrong in the XML, which stops R from getting built. Mar 26 19:58:00 oh, hold on a sec, do i need a permission to use SharedPreferences? Mar 26 19:58:04 nope Mar 26 19:58:17 what about to use String? Mar 26 19:58:32 Yep Mar 26 19:58:36 kevwilde: ask the doorman Mar 26 19:58:54 i do have the test1.xml inside of the res/layout folder Mar 26 19:58:54 and it is almost the same as main.xml Mar 26 19:58:57 pfn: @Override public void handleDecode(Result rawResult, Bitmap barcode) { Mar 26 19:58:57 try { Mar 26 19:58:57 JSONObject content = new JSONObject(rawResult.getText()); Mar 26 19:58:57 String secret = content.getString("secret"); Mar 26 19:58:57 String key = content.getString("key"); Mar 26 19:58:59 String eventId = content.getString("event_id"); Mar 26 19:59:02 Mar 26 19:59:04 kickban Mar 26 19:59:04 // fetch tickets for event Mar 26 19:59:07 DownloadTicketsTask downloadTickets = new DownloadTicketsTask(); Mar 26 19:59:08 that's not what I said Mar 26 19:59:09 downloadTickets.execute(key, secret, eventId); Mar 26 19:59:10 lov ctate Mar 26 19:59:12 evancharlton Mar 26 19:59:12 Mar 26 19:59:14 // save key & secret Mar 26 19:59:17 SharedPreferences sharedPreferences = getSharedPreferences(InternalPreferences.PREFS_NAME, 0); Mar 26 19:59:17 STOP THIS MADNESS Mar 26 19:59:20 SharedPreferences.Editor editor = sharedPreferences.edit(); Mar 26 19:59:22 editor.putString("key", key); Mar 26 19:59:25 editor.putString("secret", secret); Mar 26 19:59:25 ... Mar 26 19:59:27 editor.commit(); Mar 26 19:59:28 kevwilde: wont see you for awhile after that Mar 26 19:59:29 lov ctate evancharlton Mar 26 19:59:30 Mar 26 19:59:32 argh, sorry Mar 26 19:59:35 sorry Mar 26 19:59:37 pfn: http://pastebin.com/CqPE8x3E Mar 26 19:59:44 are there any in-depth ABS tutorials? Mar 26 19:59:45 two seconds away from /kick there kevwilde :) Mar 26 19:59:51 ctate: too slow Mar 26 19:59:54 kevwilde, I said logcat Mar 26 19:59:56 wanna give me +o? Mar 26 19:59:57 also, note that he said to pastebin logcat Mar 26 19:59:59 i'm fast with my fingers Mar 26 20:00:11 QubeZ: There's about a million samples Mar 26 20:00:11 i have to WFH tomorrow to make sure i get into IO Mar 26 20:00:12 i'm really sorry bout the spam post :( Mar 26 20:00:13 the *most* important thing is the error sequence in the log Mar 26 20:00:35 canadiancow|work: I need an anti-flood script Mar 26 20:00:46 this is logcat: http://pastebin.com/Xrwch4N8 Mar 26 20:00:56 wow Mar 26 20:00:57 evancharlton: i can be anti-flood :) Mar 26 20:01:01 so the hotels are all already booked for IO Mar 26 20:01:10 every hotel in SF Mar 26 20:01:12 every one Mar 26 20:01:33 the Four Seasons has rooms Mar 26 20:01:33 evancharlton: the ones on the travel page Mar 26 20:01:35 kevwilde, where's the 20 lines before and after Mar 26 20:01:42 :) Mar 26 20:01:53 kevwilde: he said to include 20 lines before/after hte stack trace Mar 26 20:01:58 ctate: we all booked the W already Mar 26 20:02:05 pfn: http://pastebin.com/0GRn3XPn Mar 26 20:02:07 sorry Mar 26 20:02:11 the most important messages from dalvik are from before the stacktrace Mar 26 20:02:12 man i want to go to Google I/O one day Mar 26 20:02:28 next year maybe, was thinking about going this year but little one on the way in a few weeks. Mar 26 20:02:34 next year he'll get a taste of code ;) Mar 26 20:02:39 kevwilde, that's more useful, include more lines before Mar 26 20:02:40 wtf is all this Mar 26 20:03:03 first off, it looks like *not enough* previous context Mar 26 20:03:03 TachyonDev, seriously? Mar 26 20:03:04 I want IO tickets Mar 26 20:03:06 pfn: just some garbage collects before Mar 26 20:03:12 canadiancow|work: hmm? Mar 26 20:03:16 secondly, it looks like your app or .jar or whatever is seriously corrupt Mar 26 20:03:19 * ctate | 03-26 21:58:18.164: E/dalvikvm(1646): Could not find class 'be.tickee.api.resources.Ticket', referenced from method be.tickee.android.scanner.AuthenticationScanActivity$DownloadTicketsTask.insertTickets Mar 26 20:03:23 kevwilde, are you using java7? Mar 26 20:03:29 but Mar 26 20:03:31 that shouldn't be it Mar 26 20:03:32 TachyonDev, the hotels Mar 26 20:03:34 should fail at dex Mar 26 20:03:34 * ctate | 03-26 21:58:18.164: D/dalvikvm(1646): VFY: replacing opcode 0x1f at 0x0022 Mar 26 20:03:36 no more discount codes? Mar 26 20:03:38 not that i know of Mar 26 20:03:40 when using an httpsurlconnection does the url get sent in plain text? Mar 26 20:03:41 the latter in particular is very weird Mar 26 20:04:07 this Ticket class in in a seperate eclipse project, but i added it as a project dependency to my android project Mar 26 20:04:30 pfn i did just mean stadard console apps unrelated to android Mar 26 20:04:42 lov thanks, i will try that soon Mar 26 20:05:14 and QubeZ, if only i understood android and stuff. i'm completely stuck so i think i'll go back to basics Mar 26 20:05:30 canadiancow|work: only the marriot has rooms left Mar 26 20:05:46 kevwilde: Android library project or java project? Mar 26 20:06:00 Special-G: but if you take the time to dig into Android stuff and get stuck, then go back and forth learning Java and Android until it gels for you. Mar 26 20:06:10 SimonVT: java project Mar 26 20:06:21 Then I bet you have to export it as a jar and put it in libs/ Mar 26 20:06:25 I'd only been writing Java for like 6 months before I picked up Android, there is still a great deal of gaps in my understanding of Java but I keep at it (through Android dev) Mar 26 20:06:28 but "it always worked before" Mar 26 20:06:40 Did it fuck up after you updated to adt17? Mar 26 20:06:44 SimonVT: yes Mar 26 20:06:45 TachyonDev: it's far :( Mar 26 20:06:48 There you go Mar 26 20:06:51 jar to libs/ Mar 26 20:06:58 They changed how dependency management works Mar 26 20:07:18 oh Mar 26 20:07:28 Or mark it as exported somewhere or something, I don't really know Mar 26 20:07:46 how do i make a jar of it? Mar 26 20:07:59 pfn, ctate, evancharlton: MediaRecorder stop() bug filed (http://code.google.com/p/android/issues/detail?id=27767). Mar 26 20:08:24 kevwilde, use dexdump to see if Tickee and family are actually in your classes.dex Mar 26 20:09:41 I'd only been writing Java for like 6 months before I picked up Android | those 6 months can teach me the basics which i need for android QubeZ, i think by then i should be able to start Mar 26 20:10:26 What would you recommend for communication between Android application and JSON-RPC service? Mar 26 20:10:51 for some reason I don't understand my dynamically added tab page disappears once I rotate my screen. Are there any common reasons for this? Mar 26 20:10:58 CrOOgie: TCP Mar 26 20:11:14 The internet! Mar 26 20:11:18 :D Mar 26 20:11:25 Special-G: sounds good. Mar 26 20:12:15 right, but I'm asking about any library which can help me with automatically incremented ID or parsing of JSON etc. Mar 26 20:12:48 CrOOgie: org.json? :p Mar 26 20:12:55 it was indeed the dependency mgmt thing Mar 26 20:12:58 thanks for helping Mar 26 20:13:55 have you heard about http://code.google.com/p/android-json-rpc/? I think it's a little bit outdated Mar 26 20:14:24 I wrote my own json tcp/ip service Mar 26 20:14:27 it's not that hard Mar 26 20:15:09 bl4ckcomb: you mean client, right? Mar 26 20:15:21 no, both client and server Mar 26 20:16:06 not that that's much different. a server just needs a listener that creates a socket connection for each incoming client connection Mar 26 20:17:58 I'm already have working JSONRPC service - I'm thinking of using it with some useful Java class and I don't know how to start with it... Mar 26 20:19:23 well, from your problem description I wouldn't know too... you're being pretty vague Mar 26 20:21:41 I don't want to use such library like android-json-rpc but from another way I don't know much about making requests to remote sever. What should I read first? Mar 26 20:22:47 just learn about TCP, how to establish connections (using TCP/IP sockets), how to know when to use a multithreaded model, how to re-establish broken connections, ... Mar 26 20:23:01 then think of a protocol that fits your usecase and implement it Mar 26 20:23:32 use 0MQ as transport layer? ;P Mar 26 20:23:35 it's pretty basic networking knowlegde (far from android-specific) Mar 26 20:24:48 bl4ckcomb: yes, and it's surprisingly rare these days Mar 26 20:25:17 p_l: 'basic networking knowledge' ? Mar 26 20:25:22 bl4ckcomb: yes Mar 26 20:27:12 has anyone seen the RickRoll in the IO registration page? Google has a sense of humor! Mar 26 20:27:52 yep Mar 26 20:28:36 I wonder how many people got a ore-invite because Google liked their IO machine Mar 26 20:28:43 in ICS device with no menu button, where does the three dots show up for compatibility? Mar 26 20:29:22 in the navigation bar (with home/back/app-switcher) Mar 26 20:29:27 also, do I need to write something in to enable that compatibility? I am still in the process of using ABS in the next build but curious how it behaves by default. My ICS emu freezes up on boot for some reason. Mar 26 20:29:37 evancharlton: ok so its not in the action bar... sounds good. Mar 26 20:30:31 cant figure out why my emu just disappears as a target from eclipse. It loads up, I try pushing my apk to it, it disappears from eclipse as targettable. Mar 26 20:30:56 any OpenGL wizzards in the chat by chance? I'm havinf trouble setting up a complete FBO on a Samsung device Mar 26 20:34:46 looks like i have The Hotel Rex Mar 26 20:35:16 hotel rex, sounds familiar Mar 26 20:35:34 canadiancow|work, that's kinda far from moscone Mar 26 20:35:51 at least vs. W and four seasons Mar 26 20:36:03 yes, well, im having a hard time getting approval for 459/night Mar 26 20:36:07 when i can get the rex for 142 Mar 26 20:36:22 its like 0.7 miles Mar 26 20:36:57 $459/night??? wow.. is that the conference price? Mar 26 20:36:59 I guess that's reasonable Mar 26 20:37:05 wangenma, I assume that's for four seasons Mar 26 20:37:12 W Mar 26 20:37:17 for the W? Mar 26 20:37:20 seriously? crazy Mar 26 20:37:26 lol Mar 26 20:37:26 no Mar 26 20:37:28 that is insane Mar 26 20:37:33 conference price is $279 Mar 26 20:37:44 yeah that's more like it Mar 26 20:37:51 MikeDG and I already booked Sun-Sat Mar 26 20:37:58 you already got your tix? Mar 26 20:38:00 lucky you Mar 26 20:38:06 nope Mar 26 20:38:09 oh Mar 26 20:38:10 just booked in advance Mar 26 20:38:13 doesnt cost money Mar 26 20:38:13 I see Mar 26 20:38:20 hmm wonder if I should book in advance too Mar 26 20:38:39 worked out last year Mar 26 20:38:49 yeah well just dont prepay Mar 26 20:38:51 even though I registered 3 days after registration closed Mar 26 20:38:53 worst case, cancel the reservation Mar 26 20:39:08 I hope the tickets don't sell out so quickly tomorrow Mar 26 20:39:11 I can't get up at 8am Mar 26 20:39:18 i even bought a flight on flightlock last year beforehand Mar 26 20:39:27 pfn: dude they will sell out in 30 minutes Mar 26 20:39:43 last year, got my ticket for free in like april ;-) Mar 26 20:39:50 yeah Mar 26 20:39:59 last year they sold out in 59 minutes with a crashed server Mar 26 20:40:10 last year as long as u made it to the first page u could register days later Mar 26 20:40:10 yeah, but the price is doubled up this year Mar 26 20:40:23 $900 is a bit hard to justify Mar 26 20:40:24 and there is even more people interest Mar 26 20:40:38 $300 academia tickets Mar 26 20:40:49 yeah, the academia tickets are what kill all the spots Mar 26 20:41:28 god, fucking ADT Mar 26 20:41:31 seriously. fuck this thing. Mar 26 20:41:32 they gotta limit those spots Mar 26 20:42:34 the ADT is just absolutely refusing to build this project Mar 26 20:42:49 build output on verbose, pritns nothing but "Starting incremental Package build" Mar 26 20:42:52 but it does not fucking build R.java Mar 26 20:42:55 and produces no errors from aapt Mar 26 20:43:22 * pfn hates IDE magic Mar 26 20:43:33 does HttpURLConnection use gzip behind the scenes? Mar 26 20:43:42 oh, fuck this piece of junk. i restart eclipse twice and it works. Mar 26 20:43:52 snooplsm: probably. Mar 26 20:43:57 but who knows for sure Mar 26 20:44:11 can someone give a definitable answer? Mar 26 20:44:11 it was a huge mistake for google to recommend HttpURLConnection over HttpClient IMO Mar 26 20:44:16 snooplsm: sure, wireshark. Mar 26 20:44:25 i hate this internet so much -.- Mar 26 20:44:27 jasta: getting mixed results Mar 26 20:44:33 snooplsm: how can that be? Mar 26 20:44:39 i don't see gzip, my co-worker sees gzip Mar 26 20:44:46 i'm using 2.x he was using 4.x Mar 26 20:44:49 that's not mixed results. that's just identifying a liar. Mar 26 20:45:05 no, it makes sense. He was using emulator, I wasn't. Mar 26 20:45:06 are those android versions? Mar 26 20:45:27 HttpURLConnection I know has changed somewhat as of 4.x. They probably added that as a feature. Mar 26 20:45:34 fudge Mar 26 20:46:02 hello! i got a problem with my dialog. cancel the dialog and trying to "re-open" it causes a problem. i've read about in google, but i still don't know how to remove the dialog. here is my code: http://pastebin.com/GxHTcw6W Mar 26 20:46:25 i would be happy if someone of you might help me! Mar 26 20:47:16 Here is the stacktrace: The specified child already has a parent. You must call removeView() on the child's parent first. Mar 26 20:47:39 that doesn't look like a stack trace at all. Mar 26 20:47:59 sorry Mar 26 20:48:12 wrong usage of this word Mar 26 20:52:20 where are the default wallpapers stored in android? Mar 26 20:52:56 or how big should a wallpaper be Mar 26 20:53:21 like raw size? Mar 26 20:53:27 relative to screen, i guess Mar 26 20:53:32 im seeing height by 2*width ? Mar 26 20:53:37 yep Mar 26 20:53:42 thats right afaik Mar 26 20:53:44 ok thanks Mar 26 20:53:49 np Mar 26 20:53:53 evancharlton: can you take a look at my code, please? Mar 26 20:54:43 chris_cross, i'll do it for $100/hour Mar 26 20:54:47 i think evancharlton charges more Mar 26 20:54:59 rounding up to the next hour, of course Mar 26 20:55:08 I charge $200/hr, but I actually just contract it out to canadiancow|work for $100/hr Mar 26 20:55:11 sorry for asking... Mar 26 20:55:11 ill undercut canadiancow at $99/hr Mar 26 20:55:23 hehe Mar 26 20:55:29 to be fair evancharlton, i get most of my work from you Mar 26 20:55:33 so i'm willing to accept 100 Mar 26 20:55:36 chris_cross: don't store references to dialogs Mar 26 20:55:38 lol Mar 26 20:55:45 chris_cross: use showDialog(int, Bundle) and removeDialog(int) Mar 26 20:55:47 a dialog should be created when used... Mar 26 20:55:58 showDialog and removeDialog are ass Mar 26 20:56:05 * Jug6ernaut just creates as needed Mar 26 20:56:05 chris_cross: google around for managed dialogs Mar 26 20:56:11 Jug6ernaut: as you should Mar 26 20:56:14 if method X displays dialog Y, i want the damn dialog created in method X Mar 26 20:56:21 not in onCreateDialog or whatever Mar 26 20:56:55 ok Mar 26 20:56:58 thank you Mar 26 20:57:05 * Jug6ernaut didnt know anyone used onCreateDialog anymore Mar 26 20:57:21 Hey Mar 26 20:57:27 http://weknowmemes.com/wp-content/uploads/2012/03/5-years-of-iphone-innovation.jpg Mar 26 20:57:46 they have innovated in the last 5 years? Mar 26 20:58:08 birbeck: DialogFragment Mar 26 20:58:14 Jug6ernaut: lol Mar 26 20:58:15 Is there any way to make a ViewPager only render 1 view at a time? I know the setOffscreenPageLimit method will determine how many previous and next views to load, but is there any way to tell it to literally only load the current view? Mar 26 20:58:19 And no other views? Mar 26 20:58:32 oh, I didn't understand the context for birbeck's context Mar 26 20:58:45 evancharlton: ios has dialogfragment? Mar 26 20:58:50 :) Mar 26 20:59:23 canadiancow|work > I still want my C++/Qt on Android :< Mar 26 20:59:35 hackkitten: go nuts with NativeActivity Mar 26 20:59:51 evancharlton > it's finally here? :o Mar 26 21:00:04 if by "finally" you mean "since Android 2.3" Mar 26 21:00:08 hackkitten: since Gingerbread Mar 26 21:00:19 I'm loading some HUGE bitmaps into a ViewPager, and naturally, it crashes after you've paged through several of them. Mar 26 21:00:29 lolol Mar 26 21:00:31 Subsampling isn't an option, so I'm thinking about only rendering 1 at a time in the ViewPager. Mar 26 21:00:32 Thoughts? Mar 26 21:01:19 that's basically what ViewPager is *for*, innit? Mar 26 21:01:32 evancharlton > of course, it's API 9+ so that means it's not available for 50% of devices out there :P Mar 26 21:01:37 so why not just not use a ViewPager and do the changes directly Mar 26 21:02:29 hackkitten: Gingerbread-and-later is almost 2/3 of the installed base, fwiw. Mar 26 21:02:33 http://developer.android.com/resources/dashboard/platform-versions.html Mar 26 21:02:33 hackkitten: good point, if you wait until > 90% have API9, the last five people caring about Qt will have retired Mar 26 21:02:51 lol Mar 26 21:02:52 haha Mar 26 21:03:24 Anyone having issues viewing their layouts? When i open a layout in Graphical Layout view, i get a java.lang.StackOverflow error Mar 26 21:03:37 ctate: Was that directed at me? If yes, will setting the setOffscreenPageLimit to 0 do the trick? Doesn't seem to. Mar 26 21:04:29 ctate > I'd be cutting out only 25% of my potential market, it seems :) Mar 26 21:04:50 hackkitten: smart smart Mar 26 21:04:53 check YOUR OWN stats Mar 26 21:04:56 not google's :) Mar 26 21:05:07 It's still a potential market :D Mar 26 21:05:09 Q: Is there a way to attach custom data to EditText element? I want to put hidden "default value" to edit fields that could be use to preload form with default data without hardcoding defaults in code Mar 26 21:05:15 but I see the same distribution on my own apps so far Mar 26 21:05:17 that is true Mar 26 21:05:50 silur: you're looking for "hint" Mar 26 21:05:59 oh, default data Mar 26 21:06:04 on an app of mine that supports 2.1+, and was released in 2012, 11.32% are on 2.1 and 17.63% are on 2.2 Mar 26 21:06:17 nice :) Mar 26 21:06:24 Jug6ernaut: in response to your link, my buddy says "i guess they got it right the first time" Mar 26 21:06:34 silur: you can extend EditText and add whatever data you want Mar 26 21:06:37 not upgrading to API 9+ any time soon, I take it, canadiancow|work? :) Mar 26 21:06:53 well for that app, the only reason i even require 2.1 is actionbarsherlock Mar 26 21:07:01 ABS is actually the limiting factor in both my personal apps :) Mar 26 21:07:15 evancharlton, but i want to code defaults within XML (if there is any field suitable for that) Mar 26 21:07:21 nice :) Mar 26 21:07:21 i take it hackkitten isnt dianne hackborn Mar 26 21:07:33 ha ha indeed not Mar 26 21:07:43 * hackkitten is a kitten Mar 26 21:08:12 ctate: diannes g+ picture is a cat, so you can see where i would get confused Mar 26 21:08:19 dianne hackborn == hackbod Mar 26 21:08:42 silur: so? use custom xml attributes on your EditText subclass Mar 26 21:09:15 Chronax: you probably have to recycle your bitmaps once they've scrolled offscreen Mar 26 21:09:23 evancharlton, ok, tjhanks. will look into that direction Mar 26 21:09:46 birbeck tell ur buddy its hard to mess up a row of icons ;) Mar 26 21:09:49 louielouie: That's exactly what I'm doing. I stole Google's unbindDrawables() method, and modified it slightly to find bitmaps and recycle them. Mar 26 21:10:04 And, I do this for each destroyItem() event. Mar 26 21:10:08 Still, OOM. :( Mar 26 21:10:13 These bitmaps might just be too huge. Mar 26 21:10:22 Jug6ernaut: thats gonna start another flame war Mar 26 21:10:24 Chronax: resize the bitmaps Mar 26 21:10:37 BitmapFactory.createScaledBitmap(..) or whatever it's called Mar 26 21:10:41 evancharlton: They come from a REST service to accommodate the user's exact screen-size. Mar 26 21:10:51 We pass in screen size, and get a bitmap that fills the screen exactly. Mar 26 21:11:03 ah Mar 26 21:11:07 Unfortunately when they're decompressed into BitMap, they're huge. Mar 26 21:11:09 birkbeck i dont flame ;) i just speak it like it is lol Mar 26 21:11:15 are you recycling them when the ViewPager called setUserVisibleHint to false inside of your Fragment? http://stackoverflow.com/questions/9779397/detect-viewpager-tab-change-inside-fragment/9779971#9779971 Mar 26 21:12:03 Jug6ernaut: nah, between my buddy and i Mar 26 21:12:24 IOS sucks! Mar 26 21:12:28 fight! Mar 26 21:13:06 WP7 <3 Mar 26 21:13:14 evancharlton: Yeah, I might need to subsample. Mar 26 21:13:22 louielouie: Fragments aren't really in play here. Mar 26 21:13:23 hackkitten: first Qt/C++ now WP7... I dont get you :P Mar 26 21:13:28 These are full-sized bitmaps in a ViewPager. Mar 26 21:13:35 QubeZ > I don't like to limit myself :) Mar 26 21:13:36 Good tip though - hadn't seen that before. Mar 26 21:14:36 birbeck ahh lol Mar 26 21:15:37 hackkitten: wp8 will have native c++ development :) Mar 26 21:16:15 i'm actually thinking about this $99 lumia 900 on at&t Mar 26 21:16:21 g00s > I love Microsoft :D Mar 26 21:16:25 g00s when? Mar 26 21:16:35 Jug6ernaut: early april Mar 26 21:16:38 * hackkitten is thinking of getting a WP7 phone too Mar 26 21:16:49 wp is awesome Mar 26 21:17:00 if it gets native c++ it will even more so :D Mar 26 21:17:04 * hackkitten hi-paws g00s~ Mar 26 21:17:09 :D Mar 26 21:17:40 * hackkitten just added Dianne Hackborn on G+ since she's apparently important Mar 26 21:17:47 has microsoft said they're going to give it native C++? :o Mar 26 21:17:54 * hackkitten also has a cat pic as G+ avatar BTW Mar 26 21:18:11 xaml, native c++ Mar 26 21:18:17 yum :o Mar 26 21:18:54 i think android would have been better off if more stuff was not in java Mar 26 21:19:06 I agree Mar 26 21:19:21 * hackkitten is struggling through handling binary protocols in Android ATM Mar 26 21:19:28 using the JNI a lot now Mar 26 21:19:35 there's no other sane way to go about it Mar 26 21:19:40 binary protocols are pretty easy Mar 26 21:19:47 im not getting flurry, i enabled it only like 10 days ago (my app released 17 days ago)... yet it is showing stats for new users / active users since the release of the app Mar 26 21:19:48 the lack of unsigned types are pretty bullshit, though Mar 26 21:19:55 Java is big-endian only, and signed ints only Mar 26 21:19:57 I'd prefer C to do that as well Mar 26 21:20:09 Java is a big pile of @#$# @#$# Mar 26 21:20:14 hackkitten, big endian doesn't really matter Mar 26 21:20:14 and that's putting it nicely Mar 26 21:20:18 OTOH, doesn't some parser library exist? Mar 26 21:20:21 hackkitten, you can easily convert endianness Mar 26 21:20:28 pfn > trust me, it does matter Mar 26 21:20:40 * hackkitten is sick of shuffling byte arrays around in Java Mar 26 21:20:42 hackkitten, it doesn't matter if you're using ByteBuffers Mar 26 21:20:50 pfn > ByteBuffer is slow Mar 26 21:20:56 doing it the array way is 5x faster Mar 26 21:21:12 heh Mar 26 21:21:15 doing it all in C via JNI is even faster :D Mar 26 21:21:33 parsing sqlite fts3 ranking function stuff is also great fun Mar 26 21:21:33 not Mar 26 21:21:35 Guys, if I set the inSampleSize on BitmapFactoryOptions to 2, how much of a subsample is being returned? Google's example says that a value of 4 = 1/4th, but how much is the value 2? Mar 26 21:21:45 Also, why the F did they use integers to represent fractional subsamples? Mar 26 21:21:54 hackkitten, oh well Mar 26 21:22:46 i thought it was interesting though, the other day in the ThoughtWorks tech radar, that they put a hold on cross platform mobile dev Mar 26 21:24:11 actually, it'd be cool if stuff could be compiled to llvm bytecode Mar 26 21:24:20 rather than having to compile to native binaries Mar 26 21:25:07 https://plus.google.com/115750341222356983405/posts/NUbCVahvYuX Mar 26 21:25:09 everyone +1 that Mar 26 21:25:26 fully booked? Mar 26 21:25:29 nice Mar 26 21:25:31 like flight, hotel, ec Mar 26 21:25:56 canadiancow|work > that you? Mar 26 21:25:57 +1'd like a villain Mar 26 21:26:02 yes hackkitten Mar 26 21:26:07 google i/o : where they talk about things they might do in a year, while you are using stuff from 2 years ago Mar 26 21:26:07 also, you booked the flight, hotel, etc before getting the ticket? Mar 26 21:26:18 i got a ticket Mar 26 21:26:21 who cares as long as everything is refundable Mar 26 21:26:23 fffffffff Mar 26 21:26:25 canadiancow|work, got your ticket already? lucky you Mar 26 21:26:26 * hackkitten totally adds canadiancow|work on G+ :D Mar 26 21:26:57 * hackkitten adds weak excuse comment to canadiancow|work's post~ Mar 26 21:27:02 also its not just a conference trip - gotta spend some time in SF office Mar 26 21:27:19 lucky you~ Mar 26 21:27:21 Anybody know the answer to my Bitmap subsample question? Mar 26 21:27:54 canadiancow|work: +1ed and put you in my "Android Devs" circle :) Mar 26 21:28:49 3 free beers and counting :D Mar 26 21:29:31 canadiancow|work solve my issue and ill buy u one ;) http://stackoverflow.com/questions/9873634/android-led-from-service-on-ics Mar 26 21:30:14 Jug6ernaut: draw a view from the service Mar 26 21:30:14 bam Mar 26 21:30:27 ^ Mar 26 21:30:41 I have no idea if it works with a camera, but I don't see why it wouldn't Mar 26 21:30:46 hmm Mar 26 21:30:49 hmm... Mar 26 21:30:54 * Jug6ernaut does that for another app Mar 26 21:30:59 * Jug6ernaut doesnt know why he didnt think of that Mar 26 21:32:33 writing about this IRC channel on G+: https://plus.google.com/u/0/114822401067576646327/posts/5zrEoM5eoSU Mar 26 21:32:35 :D Mar 26 21:32:43 noooooooooooooooo Mar 26 21:33:12 * Jug6ernaut hides Mar 26 21:33:53 they should give out windows phone at IO Mar 26 21:34:30 hahah Mar 26 21:34:45 silk-screened with the trollface guy Mar 26 21:34:56 lol Mar 26 21:35:07 when u boot it up u get rick rolled Mar 26 21:35:35 hackkitten: lumia 900 lol Mar 26 21:35:45 :) Mar 26 21:35:52 canadiancow|work > gimme one too :D Mar 26 21:36:03 err Mar 26 21:36:10 i dont have any... :S Mar 26 21:37:03 microsoft has a bright future when it comes to mobile? Mar 26 21:37:13 lol Mar 26 21:37:14 * pfn chuckles Mar 26 21:37:28 as if such things are decided by technical details alone ;) Mar 26 21:38:46 :P Mar 26 21:38:55 * hackkitten just loves riling people ;) Mar 26 21:40:26 hackkitten :( Mar 26 21:40:48 i demand you -1 that post :( Mar 26 21:41:23 canadiancow|work > sorry, too late now :( Mar 26 21:41:35 * hackkitten offers a virtual beer :) Mar 26 21:44:45 canadiancow|work > -1ed :P Mar 26 21:44:57 :D Mar 26 21:46:06 Can anybody tell me how much of a bitmap is subsampled if I set its inSampleSize to 2 on the factory options?> Mar 26 21:46:11 Google's example is no help. Mar 26 21:46:36 so i think that means it reads every other pixel Mar 26 21:47:18 hackkitten: interesting that you had most problems with video on SGS2... given that both me and few other people liked it exactly because we could handle videos that were on the bleeding-edge of encoding tech (aka fansubs. glorious 13GB fansubs) Mar 26 21:49:09 haven't tested it with 10bit though, wasn't yet properly handled on desktops at that time Mar 26 21:50:43 p_l > it surprised me too. I couldn't get x.264 video play back on it except with the most conservative of settings Mar 26 21:50:49 the client deemed it wasn't worth the trouble Mar 26 21:51:43 hackkitten: weird. Might be possibly some bug, I guess Mar 26 21:52:52 a friend of mine successfully played BD-quality movies, and the only reason he ended up using an extra player was lack of support for ASS with embedded fonts Mar 26 21:58:19 if i set my own OnTouchListeren to a button, the button doesn't change remains visibly unpressed. How can I manually set the button to appear pressed? Mar 26 21:59:09 nvm, it is as easy as .setPressed(true); Mar 26 21:59:31 Jug6ernaut: http://i.imgur.com/4GuM6.png Mar 26 21:59:35 i made that for you Mar 26 21:59:46 kevwilde: why are you doing your own ontouchlistener? Mar 26 21:59:58 kik Mar 26 22:00:03 lol* Mar 26 22:00:07 romainguy, well obviously so he can touch himself Mar 26 22:00:24 O_O Mar 26 22:00:26 birbeck: hey i like that Mar 26 22:00:42 android 2008 vs android 2012 Mar 26 22:00:45 romainguy: *poke* :) Mar 26 22:00:46 ltns Mar 26 22:00:56 ? Mar 26 22:01:14 wow birbeck Mar 26 22:01:21 its so cute and tiny :3 Mar 26 22:01:27 haha Mar 26 22:01:40 HUGE diff between 320x480 and 720x1280 Mar 26 22:01:45 hi romainguy ! i want to have manually set an action when the button is pressed and when it is released. Isn't that the correct approach? Mar 26 22:01:55 romainguy: i had a question fro you the other day. let's say i had a view that could be placed within a framelayout with gravity, but i wanted to draw a border around this view separating it from the other children in this framelayout Mar 26 22:02:05 just curious--how have othes handled asynctasks, config changes and the UI thread? i.e., you have an asynctask that downloads an image and updates a view, but if you change orientation your activity gets recreated causing an error once your asyncthread attempts to update a view on the old activity Mar 26 22:02:25 what would be an appropriate way to detect and remeasure the child such that there was enough space for the border on sides which could be adjacent or overlapping of other children? Mar 26 22:02:29 kevwilde: use OnClickListener? Mar 26 22:03:06 for example, say i had an small rectangle fixed on the bottom of a framelayout. it would ideally want a border on the top separating it from what's drawn behind. but how would it know not to draw a left/right/bottom border too? Mar 26 22:03:22 my first thought felt very wrong which was to require a two-pass layout to do it. Mar 26 22:03:23 i ended up using a localbroadcastmanager in the task to publish an intent, then subscribe to the intent with a localbroadcastmanager in my activity Mar 26 22:03:26 romainguy: does that support an ACTION_DOWN and ACTION_UP ? Mar 26 22:03:48 kevwilde: ah, you want two different actions? in this case, you can use an ontouchlistener but don't return true form the listener Mar 26 22:04:09 jasta: how do you decide what border to draw? Mar 26 22:04:26 aah, ok, gotcha, thanks romainguy. BTW: loved your devoxx presentation from 2009 Mar 26 22:05:12 romainguy: taht's the problem i'm trying to solve yes. my initial thought was to, on layout, have the child look at its parent bounding box and determine which edges the child is being laid out along Mar 26 22:05:28 Hmm. Stupid question; I'm doing the following: Mar 26 22:05:29 getContext().getContentResolver().registerContentObserver( Mar 26 22:05:29 System.getUriFor(System.VOLUME_SETTINGS[streamId]), false, mVolumeObserver); Mar 26 22:05:37 then request a new measure pass (during layout, thus two-pass) to pad itself for that border space Mar 26 22:05:41 jasta: sounds like you'd be better off writing a custom layout Mar 26 22:05:42 Unfortunately, the observer never seems to be getting called back. What the heck is going on? Mar 26 22:05:46 romainguy: i am writing a custom layout Mar 26 22:06:39 i suppose i could look at the child's layout_gravity and make some guesses Mar 26 22:06:49 ==romainguy Mar 26 22:07:05 oh heh, timin Mar 26 22:07:09 *g Mar 26 22:07:10 jasta: you could come up with your own custom attributes too Mar 26 22:07:22 if you can somehow mark what views should get borders Mar 26 22:07:30 romainguy: yes but they would feel quite redundant versus layout_width/height/gravity. Mar 26 22:07:51 for example, width=match, height=wrap, gravity=bottom would indicate a top border is required. Mar 26 22:08:00 ah I see Mar 26 22:08:07 perhaps that's the logic i should use. just look at the layout params and fit them in that way Mar 26 22:08:19 it seems like you could start with simple logic like what you just described Mar 26 22:08:32 you probably don't need to support all possible combos of width/height/gravity Mar 26 22:08:35 likewise, width=wrap, height=wrap, gravity=bottom|right would indicate a top and left border are needed. Mar 26 22:08:52 but the challenge i originally had was what if width=wrap, but it happens to measure the width of the parent Mar 26 22:09:02 then a left border is NOT needed, though it looks like it is Mar 26 22:09:34 so i was gonna detect that case during layout/measure, but that is not worth considering Mar 26 22:09:43 not worth a two-pass measure or worse a two pass layout Mar 26 22:10:54 romainguy: why do i need to return false for my onTouchListener? Mar 26 22:11:11 if you return true it means you want the View to ignore the touch event Mar 26 22:11:30 would that improve performance? Mar 26 22:11:52 no Mar 26 22:11:55 it would just make the button work Mar 26 22:12:04 I do everything i need with the button in the onTouch call :) Mar 26 22:12:06 (if you return false that is) Mar 26 22:12:16 except getting the proper pressed state Mar 26 22:12:24 ah Mar 26 22:12:41 thank you Mar 26 22:15:57 Guys, I wonder - if you write an application with minimum SDK for lets say froyo (2.2), and you want ICS to have the ICS look (the holo theme), how would you probe for its existence and switch the layout depending on OS version? and would it be accessible then? Mar 26 22:16:25 ... how nice of him to wait for answer? Mar 26 22:16:30 ah Mar 26 22:16:33 whom ? Mar 26 22:16:45 * p_l is too sleepy to recognize between I and l Mar 26 22:16:51 my bad Mar 26 22:17:07 heh Mar 26 22:17:15 no worries Mar 26 22:17:18 Insayne: you can use the -v14 to separate layouts for ICS Mar 26 22:17:24 ah, nice Mar 26 22:17:29 so i just append it to my layout? Mar 26 22:17:32 read on resource provisioning details Mar 26 22:17:35 i.e, blah.xml and blah-v14.xml ? Mar 26 22:17:54 Insayne: more like layouts/blah.xml and layouts-v14/blah.xml iirc Mar 26 22:18:01 ah, alright Mar 26 22:18:10 i found out something weird, when compiling in V14 Mar 26 22:18:17 docs have full list of acceptable selectors Mar 26 22:18:29 I used to make a res/drawable, and it would autoscale for the other folders (at least, i thought so) Mar 26 22:18:36 but on V14, it does not load the image at all Mar 26 22:18:46 http://developer.android.com/guide/topics/resources/providing-resources.html Mar 26 22:18:53 bookmarking, and tyvm Mar 26 22:19:33 why exactly would one have a layout for pre-ICS vs ICS? Wouldn't that be handled by theming? I thought layout's should be more screen size / density accomodating and not the version of Android running. Mar 26 22:20:04 Qube, well to apply another theme, you can do it from the layout file as well Mar 26 22:20:12 if you want to present a holo-theme UI when appropriate, and something legacy on earlier versions Mar 26 22:20:25 so I believe, rather than you coding a selector, ... well what ctate said Mar 26 22:20:27 :) Mar 26 22:20:32 someone backported holo Mar 26 22:20:44 Insayne: why not just have a values-v14 and use your styles.xml to appy the theme with a common name then set that theme across the entire app in your manifest? Mar 26 22:21:18 this is what I followed: http://www.chainfire.eu/articles/109/Themes_across_Android_versions/ Mar 26 22:21:28 QubeZ, wouldnt that bloat my strings to no end, rather than having an addition file? Mar 26 22:21:32 now my app looks fine on 2.x, 3.x and 4.x Mar 26 22:21:44 what strings? Mar 26 22:21:53 well, the ressources Mar 26 22:21:57 values.xml for example Mar 26 22:22:06 there is no values.xml... values is a folder Mar 26 22:22:10 QubeZ: do it your way Mar 26 22:22:18 ugh, you know what I meant :P Mar 26 22:22:31 values/strings.xml Mar 26 22:22:47 well, QubeZ makes a good point Mar 26 22:23:03 Insayne: i never touch values/strings.xml, well technically I do because I am localizing ie: values, values-es etc.. Mar 26 22:23:09 but for themes, you dont need to touch strings.xml Mar 26 22:23:11 * hackkitten loves it when people tell her that there is no fragmentation on Android Mar 26 22:23:18 well i pull the strings from there Mar 26 22:23:50 Insayne: i guess im not understanding what you are trying to do, are you trying to give a native look/feel for your app across the diff 2.x, 3.x and 4.x versions? Mar 26 22:24:02 QubeZ, yes Mar 26 22:24:05 hackkitten: well, from my pov the most fragmentation is related to things like multimedia support outside what is supported by AOSP, exact GL stuff, and well, OS versions Mar 26 22:24:17 and I was asking on how to do so, your link does the same programmatically Mar 26 22:24:32 Insayne: then follow that tutorial I posted a link to, its basically taken from Google recommended article Mar 26 22:24:46 QubeZ, yup - I bookmarked it, tyvm Mar 26 22:24:49 I need to activate some setting on Android 4.0 to show a Force Close dialog when an app crash or it's a normal behaviour? I'm getting some silent crashes Mar 26 22:24:53 Insayne: http://android-developers.blogspot.com/2012/01/holo-everywhere.html Mar 26 22:25:30 Insayne: np Mar 26 22:25:33 btw, can you unpack someone else apk, and change/fix things ? Mar 26 22:25:35 if i want to put a bunch of audio files (R.raw.*) into an array Mar 26 22:25:36 p_l > once you get into specific APIs the fragmentation becomes obvious, yes Mar 26 22:25:41 what type of array would it be? Mar 26 22:25:45 Insayne > sure Mar 26 22:25:56 I use slideIT, but i dislike that it doesnt popup number-only keyboard on an integer field Mar 26 22:26:00 is it an object array? Mar 26 22:26:07 and would for example like to change that, is that feasable ? Mar 26 22:26:58 hackkitten: unfortunately, the only way to avoid OpenGL fragmentation (the one behind some of the recent high-profile cases related to "it's too fragmented") would require cutting out most of possible competition Mar 26 22:28:12 fragmentation is present, but it is for a reason - and its not like you can't use the old API, you can - you just dont have access to newer things Mar 26 22:28:58 the fragmentation is just way more present when you wish to build someone for API v4, and want to do API v10 things, and i like that it seemingly is an option :P Mar 26 22:29:40 off to bed for me :D nn Mar 26 22:29:43 and thx everyone ^^ Mar 26 22:32:14 * p_l is tempted, oh so often tempted, to start dealing with fragmentation by using a more powerful language Mar 26 22:44:24 does the versionCode have to be incremented by 1 or can it be arbitrary? Mar 26 22:44:35 it can be arbitrary Mar 26 22:44:47 but it is definitely considered a *number*, and needs to rise monotonically Mar 26 22:44:53 (i.e. never going backwards) Mar 26 22:44:55 for example, I'm approaching release 1.3.0 (versionCode 13) and thought going forward I can keep the versionCode in sync with my versions i.e. 1.3.0 = 130 Mar 26 22:45:04 1.4.2 = 142 etc.. Mar 26 22:45:08 yeah that works fine Mar 26 22:45:18 easier to keep track of in the dev console Mar 26 22:45:21 breaks down when you hit 1.10.27 but you know :) Mar 26 22:45:42 curious... Mar 26 22:45:49 http://www.theverge.com/2012/3/26/2904389/google-play-bug-russian-email-app-samsung-android-seven Mar 26 22:45:53 wait, what bit integer is that? Mar 26 22:45:59 good reason why people need to pick good package names Mar 26 22:46:01 11,027 is the highest? Mar 26 22:46:27 QubeZ: no, i'm just saying that if you're using one digit for each part of the domain, then the .10 and the .27 are problematic :) Mar 26 22:46:47 pfn: also, good reason why people need to respect the domain-based package naming convention. Mar 26 22:47:03 ctate: ahh, ya got it. going from 1.10.2 to 2.0 would be an issue -- i see Mar 26 22:47:04 ctate, indeed Mar 26 22:47:14 maybe ill just increment by 1 until i find a better method Mar 26 22:47:58 seems a bit strange that you can screw with someone else's app just by using their app id? Mar 26 22:48:22 this has happened before hasn't it? Mar 26 22:48:38 wabz, well, it's a market app vs. some vendor-installed app Mar 26 22:48:56 vendor-installed app is colliding with a market-published app's id Mar 26 22:48:59 wabz: not that i know of Mar 26 22:49:09 Market won't permit package name collisions Mar 26 22:49:19 wabz, and it's also kind of a moral of the story, make sure the names are published in market Mar 26 22:49:21 (package names must be globally unique) Mar 26 22:49:43 pfn: yep, as soon as you start cutting builds, throw one up on Play Store and mark it unpublished Mar 26 22:49:48 stake your claim Mar 26 22:50:23 also, is there any way to c&d people that infringe upon your domain namespace? Mar 26 22:50:45 i doubt there's anything binding about the naming convention Mar 26 22:51:02 well if you have a trademark then you can invoke that, iirc Mar 26 22:51:13 DMCA might also apply; depends on what they're doing Mar 26 22:51:54 just curious in the event it ever happens Mar 26 22:52:17 am I missing something, but shouldn't the update have failed if the certificates didn't match? Mar 26 22:52:21 I know someone here was writing an unauthorized gta3 trainer that used the name com.rockstar.gta3... or something Mar 26 22:52:34 doc_savage, it doesn't update; it just shows as installed, I think Mar 26 22:52:36 I took down someone in my namespace under DMCA, but they were also infringing upon copyright (the package name was incidental) Mar 26 22:52:43 oh Mar 26 22:52:44 ah Mar 26 22:52:46 looks like it did update Mar 26 22:52:49 hmm, interesting Mar 26 22:53:27 I guess it's some sort of special exception code for vendor-installed apps Mar 26 22:53:29 anyone here localize to mandarin or cantonese chinese? Mar 26 22:53:45 that is pretty worrying Mar 26 22:54:04 spanish, french etc.. seems pretty straightforward. I'm doing Spanish right now but chinese, hindi etc.. would seem to be difficult to implement no? Mar 26 22:55:26 translate.google.com? Mar 26 22:57:01 my wife is doing the spanish translations but how accurate is translate.google.com ? Mar 26 22:57:14 i wouldnt' mind using it for chinese and say arabic Mar 26 22:57:37 simple as copy/pasting the characters into my strings.xml for that language i.e. values-ch ? Mar 26 22:58:32 hey pfn, what's the signatures on them though? Mar 26 22:58:44 I imagine they have different signatures Mar 26 22:58:45 how the heck is it updating if the signatures don't match Mar 26 22:58:52 yeah that seems impossible Mar 26 22:59:25 ah, I missed this part: "It's possible (and likely, actually) that OJSC simply received the same white label service from Seven and the identical app name and signing certificate is an unfortunate mix up." Mar 26 22:59:45 lov, no idea, sounds like special-case code for system software vs. updates Mar 26 23:01:00 pfn: I really don't think PackageManager has such code unless samsung put it in there Mar 26 23:01:06 like, I don't think it's possible Mar 26 23:01:14 adb pull the APKs and run jarsigner? Mar 26 23:01:23 pfn: pull the apks, unzip them, run keytool -printcert on the certs Mar 26 23:01:27 FOR SCIENCE Mar 26 23:02:25 I'm not affected Mar 26 23:02:31 the article suspects that Seven (who made the software) sold the same application, with same package names & signing cert to both samsung and rebranded to this russian firm who's then put it on the market with a newer version Mar 26 23:02:31 I just saw the link and thought it's interesting Mar 26 23:02:53 ah, they sold the signing cert Mar 26 23:02:55 how silly Mar 26 23:02:57 how very very silly Mar 26 23:03:37 well did they actually do that Mar 26 23:03:52 the article "suspects" != CLEAR PROOF Mar 26 23:04:09 I don't know, but it would explain the fact the certificates didn't match Mar 26 23:04:12 grrrrr why did Google change the target of the Register button... was better when it went to _blank Mar 26 23:13:52 could i make a widget that is constantly animating? Mar 26 23:14:28 I hope you can't :) Mar 26 23:14:35 if you want dead batteries and bad ratings sure Mar 26 23:16:10 fair enough :0 Mar 26 23:25:37 Is it possible to make a LinearLayout approx 90% wide, and centered? Mar 26 23:26:18 yep Mar 26 23:27:15 Man, I love you guys. :) Mar 26 23:27:27 How would I make a LinearLayout approx 90% wide, and centered? Mar 26 23:27:35 :p Mar 26 23:27:48 I dunno what's the most efficient solution Mar 26 23:27:55 the only thing I could seem to find hadme create two empty relativeLayouts Mar 26 23:28:09 Eclipse complains that they are 'useless' though. Mar 26 23:28:33 ElevenSquard: you'd have to nest it in another linearlayout Mar 26 23:28:34 but you could embed it inside a framelayout Mar 26 23:28:38 or framelayout Mar 26 23:28:52 put weightSum="10" on the parent, weight="9" on the child Mar 26 23:29:05 I'll look up framelayout. Thatsoundslike what i need Mar 26 23:29:16 crap,brb. my laptop keyboard sucks. :) Mar 26 23:29:18 imo it's better to use a fixed margin left and right Mar 26 23:29:42 if the goal is only to have a border to the left and right Mar 26 23:33:15 * hackkitten idly topples over Mar 26 23:34:49 Yea, you know what. The fixed margin works perfectly. Not sure why I wanted to over complicate it. Thanks. Mar 26 23:38:17 who is Luis de la Rosa Mar 26 23:39:50 Has anyone else seen this problem: C/C++ syntax error highlighting in while editing NDK code in Eclipse. The code is valid and compiles, but Eclipse highlights it as a syntax error. Mar 26 23:40:06 ugh, I think I'm done with AndEngine Mar 26 23:40:13 hackkitten :( Mar 26 23:40:21 I'll try to finish this last AE project Mar 26 23:40:24 hackkitten: try libgdx Mar 26 23:40:26 Luis de la rosa - Lead Organizer for http://iosdevcampdc.com. iOS and Android Developer. Mar 26 23:40:28 but then I'm not going to touch it ever again Mar 26 23:40:35 https://twitter.com/#!/louielouie Mar 26 23:40:35 yeah, libgdx seems alright Mar 26 23:40:39 as well as SDL Mar 26 23:40:52 ElevenSquard, im asking who IN HERE Mar 26 23:40:59 canadiancow: oh yea that's me :) Mar 26 23:41:00 :) Mar 26 23:41:11 i dont know you D: Mar 26 23:41:17 hackkitten whats wrong with AE? Mar 26 23:41:37 canadiancow|work > getting error 32, can't load library andengine Mar 26 23:41:51 the native lib? Mar 26 23:41:55 yup Mar 26 23:42:00 thats a device bug Mar 26 23:42:04 so I read Mar 26 23:42:11 2.2, right? Mar 26 23:42:12 it also should be fixed in the last github revision Mar 26 23:42:15 yup Mar 26 23:42:17 2.2.1 Mar 26 23:42:31 canadiancow: sorry but i'm planning to go to I/O if i can snag a ticket and I've been in and out of android-dev Mar 26 23:42:40 Does anyone use Eclipse to edit their NDK C/C++ code? Mar 26 23:42:49 I can't use the last revision, however Mar 26 23:42:54 as BuildConfig isn't included Mar 26 23:43:05 Nicolas says it should be auto-generated Mar 26 23:43:14 and that since it isn't for me, my project files are screwed Mar 26 23:43:20 http://pastebin.com/Wv2WC4yd Any idea why the "why cant I see this" TextView isnt visible? Mar 26 23:43:20 which isn't what I'm reading Mar 26 23:43:22 but hey~ Mar 26 23:43:36 Feel free to criticize my layout xml. Im new, and constructive criticism is good. :) Mar 26 23:43:37 * hackkitten has wasted months on AE already Mar 26 23:43:52 hackkitten, it's autogenerated in tools r17 Mar 26 23:44:02 its not wasted :( Mar 26 23:44:03 canadiancow|work > which I am running Mar 26 23:44:08 fine Mar 26 23:44:13 I'll sync with the latest revision Mar 26 23:44:16 and watch it break again Mar 26 23:44:35 hackkitten: what really sold me on libgdx is that you can test your apps on the PC. Mar 26 23:45:03 isnt libgdx native? Mar 26 23:45:08 so it doesnt work on google tv? Mar 26 23:45:34 canadiancow: it uses some NDK (arm) code Mar 26 23:45:41 So it won't work on GTV Mar 26 23:45:47 :( Mar 26 23:45:51 If I remove the LinearLayout with the @drawable/headersection background it works. Mar 26 23:45:52 dealbreaker Mar 26 23:46:06 hackkitten, if r17 isn't generating BuildConfig.java, that's a bug in the sdk tools Mar 26 23:46:23 canadiancow|work: what is the alternative, canvas? Mar 26 23:46:25 and its quite likely more libs will start depending on it Mar 26 23:46:28 pardom: andengine Mar 26 23:46:42 Crap. Nevermind, im an idiot. Mar 26 23:46:59 that builds to x86? Mar 26 23:47:04 doesn't it use NDK? Mar 26 23:47:21 I wonder why it took 'til r17 to add BuildConfig.java Mar 26 23:47:32 since there was a BuildConfigGenerator earlier Mar 26 23:47:44 no pardom Mar 26 23:47:51 there is a native library required on 2.2 Mar 26 23:47:58 and you get added performance on higher versions Mar 26 23:48:05 but on 2.3+, andengine can run with no native component Mar 26 23:48:05 and box2d Mar 26 23:48:12 google tv does not support the ndk, period Mar 26 23:48:17 right Mar 26 23:48:26 hackkitten, have you tried "android update project" ? Mar 26 23:49:09 shouldn't need to android update project, unless you've modified your build.xml Mar 26 23:49:32 no it changed some other stuff Mar 26 23:49:37 project.properties or something Mar 26 23:49:46 no Mar 26 23:49:48 * Jug6ernaut has no idea what everyone is talking about but always clean project! Mar 26 23:49:49 maybe Mar 26 23:49:56 i know it changed something Mar 26 23:51:38 * hackkitten fights with stupid Eclipse git tools Mar 26 23:52:11 hm. i have never used any IDE integration stuff with git / repo. Mar 26 23:52:14 why fight when you can do it from the commandline without pain Mar 26 23:53:03 I use some of IntelliJ's git support Mar 26 23:53:32 * pfn is going to be sad if/when the commandline ever goes away Mar 26 23:53:43 pfn: mac OS X 10.8 Mar 26 23:53:56 although tbqh i still hate git and use it in as minimal a way as i can get away with. YMMV. Mar 26 23:53:56 is it really planned to go away in 10.8? Mar 26 23:53:59 seriously Mar 26 23:54:02 pfn: no :) Mar 26 23:54:13 ctate, what are your preferences again? Mar 26 23:54:14 but they've already started doing annoying things in 10.7 Mar 26 23:54:18 like hiding ~/Library Mar 26 23:54:36 everything in mac is annoying ;-) Mar 26 23:54:37 pfn: for my stuff at home i typically just set up a p4 server; it's free for personal use Mar 26 23:54:43 p4? really? Mar 26 23:54:52 yeah, ctate is ... like that Mar 26 23:55:07 i wonder why this surprises people. p4 is better than everythign else non-distributed Mar 26 23:55:19 I've never enjoyed working at p4 Mar 26 23:55:21 the other distributed tools (meaning Hg) have signfiicatn shortcomings Mar 26 23:55:27 * p_l puts that somewhere in the "weirder fetishes" folder Mar 26 23:55:31 hey lov Mar 26 23:55:32 lov Mar 26 23:55:36 and git is the shittiest major tool i've ever had to use Mar 26 23:55:38 lov is another huge p4 fan Mar 26 23:55:50 really ctate? Mar 26 23:55:54 as a friend of mine put it: "git is a nuclear missile with a five-bladed chainsaw for a handle. But at least it has a time machine!" Mar 26 23:55:59 i've only really used cvs, svn, hg, git Mar 26 23:56:07 and i prefer igt Mar 26 23:56:08 ugh, hg is terrible Mar 26 23:56:35 git's unusable except by experts Mar 26 23:56:41 not true Mar 26 23:56:43 and there is no really good UI tooling for it even for money Mar 26 23:56:44 or....is that a complement? Mar 26 23:56:58 s/at/with Mar 26 23:57:03 * ctate . o O ( welcome to #android-git-rants ) Mar 26 23:57:16 * p_l found git to be quite nice to work with, since maybe ~3y ago Mar 26 23:57:18 canadiancow|work: compliment is the word you're looking for Mar 26 23:57:19 before that... yeah Mar 26 23:57:26 yea evancharlton i noticed it after i typed it Mar 26 23:57:31 but it wasnt worth the effort to correct myself Mar 26 23:57:35 or...apparently it would have been Mar 26 23:57:35 * pfn never cares for any gui tools, generally Mar 26 23:57:40 canadiancow|work: well you certainly didn't notice it before you typed it ;-) Mar 26 23:57:48 canadiancow|work: i'm serious, actually. until you're expert with it, you will get yourself into serious trouble from which it is basically impossible without significant expertise to extract yoruself from Mar 26 23:57:50 it was a typo - not a misunderstanding Mar 26 23:57:57 lol ctate Mar 26 23:57:59 ctate, that's not true Mar 26 23:58:00 then i guess im an expert Mar 26 23:58:01 :) Mar 26 23:58:07 all you need is git init; git commit; git push Mar 26 23:58:09 GOOGLE PLAY IS DOWN! Mar 26 23:58:12 :O Mar 26 23:58:14 what? Mar 26 23:58:17 * ra4king points in shame at Google Mar 26 23:58:24 this is an empirical observation based on seeing what happened to lots of people when Android switched from using p4 to using git Mar 26 23:58:30 hmm play wont load Mar 26 23:58:49 ra4king: they're just preparing for the I/O onslaught tomorrow Mar 26 23:58:56 now, it's true that we use a fairly unusual workflow with git, on account of needing to manage several codelines with merges between them as well as requiring code reviews / repo etc Mar 26 23:58:58 what's happening tomorrow? Mar 26 23:59:04 so we had to jump in the deep end Mar 26 23:59:16 ra4king: I/O tickets go on sale and presumably melt everything in about 30 seconds like they did last year Mar 26 23:59:17 if all you're doing is git commit etc on your local projects things are much simpler Mar 26 23:59:18 ctate: I suspect it might be related to *when* the change occured Mar 26 23:59:31 hm? git is no different today than it was then. Mar 26 23:59:35 ctate: oh it i Mar 26 23:59:38 *it is Mar 26 23:59:42 ra4king: I'm kidding, by the way (about Google Play's current outage being related to I/O) Mar 26 23:59:53 the basics aren't, but before, using it without some kind of wrapper was horrible Mar 26 23:59:56 evancharlton: yeah i suspected that ;) Mar 27 00:00:01 ra4king: just making sure :) Mar 27 00:00:03 now the UI is much better Mar 27 00:00:15 p_l: seriously, not in any way i'm aware of Mar 27 00:00:25 $300 to join! Mar 27 00:00:27 damn Mar 27 00:01:10 git changed a bit in terms of having shell script wrappers back then Mar 27 00:01:17 where all git commands were git-something-or-other Mar 27 00:01:24 19:55:51 < evancharlton> lov is another huge p4 fan Mar 27 00:01:28 p4 is hatred incarnate Mar 27 00:01:42 I want to see a lov/ctate cage match at i/o Mar 27 00:01:43 :D Mar 27 00:01:43 no lov, YOU are hatred incarnate. lov is the object of your ... afflictions. Mar 27 00:01:49 evancharlton: +1 Mar 27 00:01:49 *p4 is the... Mar 27 00:01:50 I'd rather use svn instead of p4... but that was probably a matter of familiarity Mar 27 00:01:54 ew! Mar 27 00:02:00 pfn: oh wow Mar 27 00:02:08 that's offensive (to p4) Mar 27 00:02:10 i've used svn a little bit Mar 27 00:02:13 much much rather use p4 Mar 27 00:02:28 My SharedPreferences don't seem to be saving. Mar 27 00:02:32 very similar capabilities and model; p4 has much better tooling; p4 is much more reliable Mar 27 00:02:40 gahahaha Mar 27 00:02:41 What's P4?! Mar 27 00:02:46 Pentium 4? Mar 27 00:02:46 that would be funny if it didn't make me sad Mar 27 00:02:50 I use commit and the changes work while the app is still running, but once its killed, the changesa re gone Mar 27 00:02:51 perforce Mar 27 00:02:56 the second worst SCM in the world imo Mar 27 00:03:02 what's Perforce? Mar 27 00:03:04 What's SCM? Mar 27 00:03:05 cr5315: are you remembering to commit/apply them? Mar 27 00:03:06 TERRIBLE Mar 27 00:03:11 * ra4king is asking lots and lots of questions Mar 27 00:03:12 How do I make the click of a button delay doing work for a period of time. Basically, if the user clicks the button 3 times, I want it to delay loading the data for each of the clicks, and instead only load it for the last click. Mar 27 00:03:13 hey lov or ctate, can i get +v before one of you guys mutes the other? Mar 27 00:03:16 * ra4king is too lazy to open a browser and google Mar 27 00:03:17 ha ha ha Mar 27 00:03:19 haha Mar 27 00:03:27 im serious Mar 27 00:03:27 ctate, I use prefEdit.commit() if that's what you mean Mar 27 00:03:28 i well know that lov hates p4 Mar 27 00:03:42 just to make sure Mar 27 00:03:42 The button changes the selected date, but instead of calling the SelectedDate_Changed function each time, I want it to only call it after the button hasnt been pressed for x amount of time. Mar 27 00:03:45 no that's the wrong way Mar 27 00:03:46 :( Mar 27 00:03:50 +v! Mar 27 00:03:55 i theorize that this is partly if not mostly due to the particular p4 repository designs that he has had to endure Mar 27 00:03:56 oh, sorry Mar 27 00:03:59 what does adding/removing voice do? Mar 27 00:04:00 ctate: tether your computer to your phone, then do all of your development through that. Mar 27 00:04:09 ctate: also have a repo that may or may not just time out when you try to do things Mar 27 00:04:10 evancharlton: ROFLMAO Mar 27 00:04:12 let me know how that one works out Mar 27 00:04:14 +v not -v! Mar 27 00:04:19 canadiancow|work: double negatives work that way, right? Mar 27 00:04:23 no, they do not Mar 27 00:04:27 XD Mar 27 00:04:28 lov: yeah, it's not suited for remote development Mar 27 00:04:33 i totally grant that Mar 27 00:04:35 understatement of the year Mar 27 00:04:35 just add me to the chanserv list and i'll never bother you again :) Mar 27 00:04:39 and hey guess what Mar 27 00:04:41 canadiancow|work: oh, sorry. You'll have to get someone better at math to help you :( Mar 27 00:04:42 audible is a remote site to amazon Mar 27 00:04:47 so surprise surprise, it's NON-OPTIMAL. Mar 27 00:04:48 evancharlton: DON"T DO IT Mar 27 00:04:53 He's CANADIAN! Mar 27 00:04:56 ... Mar 27 00:04:56 * ra4king shoots canadiancow|work Mar 27 00:04:58 the way i did that at previous jobs was to RemoteDesktop to my at-work machine Mar 27 00:05:01 this isn't #american-dev Mar 27 00:05:03 rather than use the laptop as the dev box Mar 27 00:05:07 anyway Mar 27 00:05:10 yeah. Mar 27 00:05:19 canadiancow|work: i do believe evancharlton is trolling you XD Mar 27 00:05:19 anyway, git can't get here fast enough Mar 27 00:05:25 the git model is great. git itself is really hugely powerful and wonderfully capable. Mar 27 00:05:29 ra4king... oh gee thanks, i hadn't noticed Mar 27 00:05:34 canadiancow|work: hahaha Mar 27 00:05:35 you must be new here Mar 27 00:05:40 it's just an insanely poorly designed tool in all the ways that the user has to deal with. Mar 27 00:05:47 IMO. Mar 27 00:05:49 I'll take the occasional nuclear landmine for the powerful tooling and the ability to work offline Mar 27 00:06:11 until you render the rest of the team unable to work for four days because you rebased the wrong thing. Mar 27 00:06:15 :D Mar 27 00:06:21 anyway, what does having "voice" mean? Mar 27 00:06:24 uh oh, talking about git ? Mar 27 00:06:32 dont ever rebase! Mar 27 00:06:46 ra4king: if a channel is marked as "moderated," only people with voice or ops are allowed to say anything Mar 27 00:06:48 ra4king, it means im better than you Mar 27 00:06:56 as opposed to "the team takes a day to get started because it is physically impossible to create a workspace" Mar 27 00:06:57 canadiancow|work: apparently not Mar 27 00:06:59 ctate: ah Mar 27 00:07:21 ctate: so in a non-moderated channel, it's a useless property? Mar 27 00:07:40 it's more of a status symbol Mar 27 00:07:43 correct Mar 27 00:07:54 if talking is moderated, only moderators will talk Mar 27 00:07:58 it's more of a joke than a status symbol Mar 27 00:08:43 sometimes bots might have extra privileges for voices Mar 27 00:09:02 like you can command the bot to fartbonk someone else Mar 27 00:09:24 that sounds hilarious Mar 27 00:09:27 we should get one in here Mar 27 00:09:32 and then we should all be twelve again Mar 27 00:09:42 lol... Mar 27 00:09:44 what about trivia bots Mar 27 00:09:45 * canadiancow|work slaps evancharlton around a bit with a large trout Mar 27 00:09:46 heh, no BuildConfig file :( Mar 27 00:09:52 canadiancow|work: don't make me +m you Mar 27 00:09:55 :( Mar 27 00:09:56 +v? Mar 27 00:09:57 wooo Mar 27 00:09:58 diss Mar 27 00:10:23 evancharlton thanks for tip earlier, i think its going to work :D Mar 27 00:10:30 so how do I get it to generate this BuildConfig file? Mar 27 00:10:30 ugh getting nervous about the damn registration .. Mar 27 00:10:34 hackkitten, grep buildconfig $ANDROID_SDK_HOME/tools/ant/build.xml Mar 27 00:10:36 t-minus 14 hours Mar 27 00:10:42 Jug6ernaut: no problem Mar 27 00:10:44 * hackkitten is on Windows Mar 27 00:10:48 what sucks is i'll be in SF the day before Mar 27 00:10:53 hackkitten: findstr then Mar 27 00:10:59 what sucks s ual be in SF Mar 27 00:11:00 and flying out the day i/o starts Mar 27 00:11:02 at all :P Mar 27 00:11:15 Jug6ernaut: meh. SF is ok. Better than SJ. Mar 27 00:11:18 i think im going to fly down sun-sat Mar 27 00:11:19 hackkitten: also, why not install SUA? Mar 27 00:11:25 dragorn: so... dont fly out? Mar 27 00:11:31 TachyonDev: im doing sat to mon Mar 27 00:11:33 23 - 2 Mar 27 00:11:35 how long you guys think it will take to fill at $900/ticket Mar 27 00:11:36 dragorn, yeah, buy tickets and stay over for IO :p Mar 27 00:11:41 p_l > what's that? Mar 27 00:11:43 canadiancow|work, the whole week? Mar 27 00:11:47 canadiancow|work, whyforsolong? Mar 27 00:11:47 pfn, yea Mar 27 00:11:51 well, i have friends there Mar 27 00:11:55 and i'll spend mon/tue at the SF office Mar 27 00:11:55 friends? Mar 27 00:11:56 wtf are those Mar 27 00:11:59 hah Mar 27 00:12:05 hackkitten: services for unix Mar 27 00:12:08 and then monday the 2nd is a holid---oh crap Mar 27 00:12:15 he just wants to get scared by bush bums at the harbor Mar 27 00:12:28 hackkitten: includes *native* posix runtime for windows nt, not the cygwin crap Mar 27 00:12:42 * ra4king slaps canadiancow|work a bit with a rhino Mar 27 00:12:55 :P Mar 27 00:12:56 though it might be... more annoying in portability (kinda like OpenBSD, with which it apparently shares source) Mar 27 00:13:03 * TachyonDev is glad there are no color codes Mar 27 00:13:09 buildconfig brokenness: http://www.andengine.org/forums/tutorials/updated-getting-started-with-andengine-t4858-110.html Mar 27 00:13:16 p_l: oh yeah. do you know of a decent command line terminal app for Windows? Mar 27 00:13:22 cygwin Mar 27 00:13:23 that post is why I reverted in the first place... Mar 27 00:13:26 ctate: powershell Mar 27 00:13:40 p_l: how dare you call cygwin crap Mar 27 00:13:48 hackkitten: use cygwin then you can follow his directions for *nix commands for the most part Mar 27 00:13:52 * ra4king slaps p_l around a bit with a canadian cow Mar 27 00:14:00 ra4king: I dare, because I know how it implements fork() Mar 27 00:14:00 i do all my ndk-build Mar 27 00:14:03 in cygwin Mar 27 00:14:09 * hackkitten just wants to know HTH this buildconfig stuff works Mar 27 00:14:11 @hackkitten are you sure you have the latest ADT/SDK? Mar 27 00:14:15 ra4king: and I'm enough of a systems programmer to be horrified by the inane hacks of it Mar 27 00:14:19 p_l: well it's windows Mar 27 00:14:23 hackkitten, it JUST WORKS :( Mar 27 00:14:28 oGMo: it was designed for 9x Mar 27 00:14:29 you can't really implement fork() well afaik Mar 27 00:14:30 @hackkitten it's kind like the R.java Mar 27 00:14:31 hackkitten did you android update project? Mar 27 00:14:32 canadiancow|work: [tm] Mar 27 00:14:34 NicolasGramlich > yes, updated to 17 yesterday Mar 27 00:14:45 canadiancow|work > I don' tknow that command Mar 27 00:14:56 oGMo: afaik SUA has it done better, because it can use NT's features for POSIX Mar 27 00:14:58 so navigate into your project directory and run: android update project -p . Mar 27 00:14:59 @hackkitten when you create a new project, do you get a BuildConfig.java then? Mar 27 00:15:00 and into andengine Mar 27 00:15:15 p_l: ah .. i thought fork() was still basically a lost cause Mar 27 00:15:23 i like how all the april holidays are lined up Mar 27 00:15:35 april fools, easter, tax day, earth day Mar 27 00:15:41 all on sundays Mar 27 00:15:46 canadiancow|work > I don't have an android exe Mar 27 00:15:50 maybe in the SDK? Mar 27 00:15:55 can't I do this from Eclipse? Mar 27 00:15:57 no Mar 27 00:16:01 I'm having troubles getting my SharedPreferences to save what I've set them to. I'm new with SP, so odds are I'm just doing something wrong. When my app starts, all the things I've saved have been reset to the default value. Here's the code I'm using: http://pastebin.com/FcPpb91D. Does anyone know what I'm doing wrong/not doing? Mar 27 00:16:01 maybe? Mar 27 00:16:03 fail then Mar 27 00:16:06 ive never done it from eclipse Mar 27 00:16:07 rm -rf / Mar 27 00:16:16 sudo rm -rf / Mar 27 00:16:24 ^ never do that Mar 27 00:17:17 * p_l had used techniques from dealing with aborted "root wipe" to answer his Google interview question. was fun Mar 27 00:17:27 lol Mar 27 00:17:44 hackkitten: try creating a plain new Android project and check if at least that has a BuildConfig. Mar 27 00:17:53 cr5315: Mar 27 00:17:56 public void onCreate(Bundle savedInstanceState) { Mar 27 00:17:56 final SharedPreferences themeChoice = getPreferences(MODE_PRIVATE); Mar 27 00:17:58 those two lines Mar 27 00:18:10 ctate: so how fast you think registration will go? Mar 27 00:18:12 note that your themeChoice variable is local to the onCreate() method; it is not being retained Mar 27 00:18:31 that is probably not what you want Mar 27 00:18:35 p_l, heh, how'd you manage to recover from that? Mar 27 00:18:36 http://tctechcrunch2011.files.wordpress.com/2012/03/condom-or-android.jpg?w=640 Mar 27 00:19:17 could we derive it with 5000 registrations @ $450 + crashed server = 59 minutes Mar 27 00:19:46 dylukes: haha .. is that a You Don't Know Jack Dis or Dat question? :P Mar 27 00:19:57 No idea. Mar 27 00:20:01 there actually was an android dis or dat question about device names Mar 27 00:20:01 pfn: still open terminal in a bloated enough shell. There's a story about that on the net which taught me about it (I avoided such cases) Mar 27 00:20:20 my question was related to forkbombs instead and exhausted process table Mar 27 00:20:34 (they didn't gave me NDA for questions so far...) Mar 27 00:20:42 that's not really an uncommon question. Mar 27 00:20:48 so you have more interviews incoming? Mar 27 00:20:51 forkbomb goes off, how do you kill the processes since ps is a process Mar 27 00:20:55 I have a custom adapter for an arraylist. I want to update some of the items in the list every 20 millis. Whats a good way to go about this while still having ui interaction. Mar 27 00:21:11 ctate, if I put the SharedPreferences themeChoice = getPreferences(MODE_PRIVATE); up with the strings and stuff, the app crashes on start Mar 27 00:21:13 NicolasGramlich > which folder should it be in? Mar 27 00:21:20 MrCartel: runnable and a handler? Mar 27 00:21:38 pfn: no, I'm waiting for interviewers to finish writing feedback so that the committee can convene Mar 27 00:21:44 I see Mar 27 00:22:01 had my on-site last wednesday Mar 27 00:22:06 TachyonDev, I was doing that and calling notifyDataSetChanged, but that bogs it down Mar 27 00:22:21 MrCartel: of course its going to depending on the size .. you are scanning for updates Mar 27 00:22:39 MrCartel: and redrawing 50 times a second Mar 27 00:22:43 NicolasGramlich > found it, it's being created in a new project Mar 27 00:22:45 hackkitten: in the /gen folder Mar 27 00:22:52 and yeah, the forkbomb was interesting, because in the end I just couldn't use signals and such (though I might have missed a technique... damn) Mar 27 00:22:55 yup Mar 27 00:23:05 same for my own AE project Mar 27 00:23:06 I ended up opening the memory of the forkbomb process and corrupting it Mar 27 00:23:06 MrCartel: why in gods name do you have to do that Mar 27 00:23:09 TachyonDev, yea, I just want to update one part of each item instead of the all of it. I know the data that has changed Mar 27 00:23:25 MrCartel: sounds like your application is too specialized to use a stock listview Mar 27 00:23:28 and it's also in the AndEngine Git folder Mar 27 00:23:30 in /gen Mar 27 00:23:39 Is there any error that would stop the project from building? like the .... Mar 27 00:23:40 MrCartel: is it animating something? Mar 27 00:23:50 So the problem is solved now? Mar 27 00:23:54 MrCartel: listviews arnt meant to update that fast Mar 27 00:24:09 TachyonDev, its essentually a timer application which you can dynamically add new timers and start/stop them individually Mar 27 00:24:19 o_o Mar 27 00:24:23 NicolasGramlich > no, it's still not picking up on it Mar 27 00:24:36 MrCartel: so you have timers running in a listview.. Mar 27 00:24:45 MrCartel: I would use a scrollview Mar 27 00:24:53 MrCartel: and access the views by hand Mar 27 00:25:13 Is there some other build error? Mar 27 00:25:14 What does scroll do differently? Mar 27 00:25:22 well, of course Mar 27 00:25:24 (i.e. in the Problems view) Mar 27 00:25:27 hmm... Mar 27 00:25:31 besides the BuildConfig ofc ;) Mar 27 00:25:35 MrCartel: well you could grab the views and update them directly instead of storing them in viewholders Mar 27 00:25:50 the issue is that I'm importing it into the project by having it as a folder in the project I'm using AE in Mar 27 00:25:58 which doesn't include the /gen folder Mar 27 00:26:05 MrCartel: then just access the views by hand and update them manually Mar 27 00:26:08 this worked fine before Mar 27 00:26:10 erm Mar 27 00:26:12 MrCartel: they wouldnt be recycled Mar 27 00:26:17 and is the only way I know how to use it Mar 27 00:26:25 AndEngine is supposed to be used as a library project. Mar 27 00:26:29 TachyonDev, would I not use an adapter then? Mar 27 00:26:43 NicolasGramlich > this was the recommended way from tutorials Mar 27 00:27:06 having AndEngine sitting in a subfolder of your actual project? Mar 27 00:27:24 no Mar 27 00:27:28 symlink Mar 27 00:27:40 it's included as a resource in the project Mar 27 00:27:44 then you watched a bad video Mar 27 00:27:51 Use it as a library project. Mar 27 00:27:55 MrCartel: i dont think the data in listviews is meant to work that way, no matter the case, you need to be accessing the textviews directly to update them, you cant do it by refreshing the whole list.. it doesnt make sense Mar 27 00:27:55 every tutorial I read recommended it this way Mar 27 00:28:01 Everything will magically work then, I promise!!! Mar 27 00:28:02 * hackkitten shrugs Mar 27 00:28:12 now to figure out how to set up that then Mar 27 00:28:16 I really hate Java~ Mar 27 00:28:24 o_O Mar 27 00:28:56 hackkitten: not only you, not only you... Mar 27 00:28:59 TachyonDev, I couldnt think of another way. Does scroll view allow you to do that? Mar 27 00:28:59 MrCartel: you need high speed access to the textviews so you can update them from the runnable Mar 27 00:29:05 hackkitten: i had no idea :) Mar 27 00:29:32 MrCartel: inflate views programmatically into a scrollview Mar 27 00:29:37 * hackkitten will have to find a new tutorial for Eclipse, then Mar 27 00:29:43 no friggin' idea how to set this up Mar 27 00:29:49 it's source, not a library Mar 27 00:29:54 so I can't set it up as a user lib Mar 27 00:30:15 hackkitten: Y U NO LIKE JAVA?!? Mar 27 00:30:27 * hackkitten checks the 'getting started' tutorials on the AE forums Mar 27 00:30:27 u mad? Mar 27 00:31:04 http://techland.time.com/2012/03/26/intel-and-microsofts-secret-weapon-against-apple/ Mar 27 00:31:23 this one insists this is the right way too: http://www.andengine.org/forums/tutorials/updated-getting-started-with-andengine-t4858.html Mar 27 00:31:25 * hackkitten grumbles Mar 27 00:31:47 MrCartel: either way you need to keep direct references to the textviews you want to update on the screen so you can do it directly from the runnable Mar 27 00:31:57 hackkitten: andengine sucks Mar 27 00:32:08 hackkitten: y u no use libgdx or unity? Mar 27 00:32:13 use LibGDX Mar 27 00:32:17 no Unity sucks Mar 27 00:32:29 * hackkitten pets the trolls~ Mar 27 00:32:48 * ra4king snaps at hackkitten's hand Mar 27 00:32:56 TachyonDev, well the runnable would have to send a message every 20 millis to tell the ui thread to update right? Mar 27 00:33:31 thus the ui thread is still going to be bogged down Mar 27 00:33:43 MrCartel: consider not updating every 20ms. Mar 27 00:33:47 Are SharedPreferences wiped when the device reboots? Mar 27 00:33:49 lol there is that Mar 27 00:33:51 why does unity suck? I've never used it, just curious Mar 27 00:33:57 cr5315: no Mar 27 00:34:00 but I guess if I had direct access and didnt have to refresh the list it would be quicker Mar 27 00:34:06 MrCartel: MUCH Mar 27 00:34:10 So that means it still isn't working Mar 27 00:34:12 my dj app does this Mar 27 00:34:37 MrCartel: https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree Mar 27 00:34:43 thats how i update my timers Mar 27 00:34:46 i do it every 10ms Mar 27 00:34:49 man im convincing all my friends to buy IO tickets Mar 27 00:34:49 it works fine Mar 27 00:34:49 whatever, just copied the buildconfig file out of /gen :P Mar 27 00:35:20 MrCartel: are you keeping time with the runnable or just updating the UI? Mar 27 00:35:52 just updating the ui Mar 27 00:35:58 ctate: are those colors better btw? Mar 27 00:36:11 so bright Mar 27 00:36:13 MrCartel: then if you schedule for 20ms later (not at systemtime+20ms) Mar 27 00:36:19 who do you think i am? a dj? Mar 27 00:36:23 canadiancow|work: umm remember what I mocked it up as? Mar 27 00:36:27 yes, i do Mar 27 00:36:34 that is a bit darker lol Mar 27 00:36:53 well Mar 27 00:36:53 canadiancow|work: http://www.tachyondev.com/android/ss7.png Mar 27 00:37:01 the good news is that I can launch my AE app now Mar 27 00:37:14 hackkitten: You can launch Titan AE? Mar 27 00:37:16 bad news is that I'm still getting the 'unsatisfied link' error Mar 27 00:37:18 sweet Mar 27 00:37:29 can't find andengine.so Mar 27 00:37:36 hm. powershell does not look like what i mean. Mar 27 00:37:39 (very belated) Mar 27 00:37:48 powershell is crazy Mar 27 00:37:51 it looks like an alternative to cmd.exe Mar 27 00:37:54 it is Mar 27 00:37:56 ctate yea Mar 27 00:37:57 but better Mar 27 00:38:04 it's so annoying that they diverged even further from typical unix Mar 27 00:38:04 hackkitten, there's a static method in the AndEngine class Mar 27 00:38:04 i want a replacement for *the window that cmd.exe runs in* Mar 27 00:38:08 isDeviceSupported() or something Mar 27 00:38:11 man i havent used powershell forever .. just use Cygwin Mar 27 00:38:15 which is also the window that bash runs in, in cygwin Mar 27 00:38:17 powershell is cool for .net stuff Mar 27 00:38:24 ill mess around with it for a bit and see if I can't get it working as you described Mar 27 00:38:27 ah i see Mar 27 00:38:28 hmm Mar 27 00:38:29 if that's what you're doing, but otherwise so stupid Mar 27 00:38:31 it's like the difference between bash and Terminal.app on Windows Mar 27 00:38:35 you want to replace the window shell Mar 27 00:38:38 yes Mar 27 00:38:46 you mean you want a real terminal app Mar 27 00:38:49 because the Windows one sucks harder than black holes Mar 27 00:38:52 rather than the fucked up cmd.exe bullshit Mar 27 00:38:53 http://en.wikipedia.org/wiki/List_of_alternative_shells_for_Windows Mar 27 00:38:59 TachyonDev: tat one reviewer was pissed about ads in the paid version O.o Mar 27 00:39:08 pfn: again, you're confusing the two things :) Mar 27 00:39:14 ? Mar 27 00:39:20 you mean TachyonDev Mar 27 00:39:21 i want a better window environment to run cmd.exe and bash.exe in Mar 27 00:39:29 ctate, that's what I said, you want a real terminal app Mar 27 00:39:35 g00s: eh? Mar 27 00:39:47 ctate: i dont know if you can do that .. the shell .. is the shell Mar 27 00:39:52 pfn: but then you mentioned cmd.exe Mar 27 00:39:54 TachyonDev: reading the review by vpn Mar 27 00:40:01 ctate: you can replace the window environment on Windows, you know... Mar 27 00:40:09 TachyonDev: is it cmd.exe that displays the window, handles the clipboard & line wrap, etc? Mar 27 00:40:09 ctate, cmd.exe is both the shell and the terminal... Mar 27 00:40:18 oh hrm Mar 27 00:40:36 so when i run bash in cygwin, it's running inside a cmd.exe instance? Mar 27 00:40:43 I think so, yeah Mar 27 00:40:45 yeah Mar 27 00:40:52 that explains it. Mar 27 00:40:53 its a windows shell application Mar 27 00:40:59 so yes, i want a decent terminal app / shell for Windows :) Mar 27 00:41:15 mks toolkit mayve Mar 27 00:41:17 you can compile a shell app or a win32 app Mar 27 00:41:18 err Mar 27 00:41:21 visual app Mar 27 00:41:23 so maybe powershell would be better, dunno Mar 27 00:41:36 it's kind of nuts that nobody's written a good one for Windows Mar 27 00:42:00 [yes, it's a problem that Windows uses the control key for shortcuts, but this is surmountable] Mar 27 00:42:17 ctate, so you're going to write me one? Mar 27 00:42:25 my answer: run a linux vm and use putty as my terminal Mar 27 00:42:30 g00s: he is complaining about so many ads in the free one Mar 27 00:42:35 putty -> vm which mounts my filesystem locally Mar 27 00:42:38 weren't they trying to get kde to run on windows? Mar 27 00:42:40 and voila Mar 27 00:42:42 canadiancow|work: i am not. Mar 27 00:42:56 :( Mar 27 00:42:57 powershell is a complete new shell Mar 27 00:42:58 isnt it? Mar 27 00:43:05 pfn: the gnome terminal shell is sort of okay Mar 27 00:43:08 TachyonDev, it's a completely new shell and different window Mar 27 00:43:11 yeah Mar 27 00:43:14 TachyonDev, but it isn't a real terminal Mar 27 00:43:16 cygwin runs in cmd Mar 27 00:43:19 right Mar 27 00:43:21 Terminal.app is still my gold standard Mar 27 00:43:23 it's still windows console bullshit Mar 27 00:43:24 or the BeOS terminal :) Mar 27 00:43:38 well the real terminal left along time ago Mar 27 00:43:49 they are all emulated now Mar 27 00:43:49 ctate, difficulty of a real terminal is that nothing in windows is vt100, or vtWhatever Mar 27 00:43:51 sensible resizing and line wrap and clipboard handling are really the important parts Mar 27 00:43:54 rxvt-unicode is the only real one Mar 27 00:43:57 who cares about vt100? Mar 27 00:43:59 TachyonDev: ... I've got a VT510 on my desk Mar 27 00:44:03 hah Mar 27 00:44:12 the 80s were a long time ago; get over it. Mar 27 00:44:19 TachyonDev: it works, and uses amber phosphor Mar 27 00:44:32 I have an UltraSparc1 downstairs with Dual 2GB SCSI drives Mar 27 00:44:37 ctate, you need some kind of real terminal emulation support in order to get any cool terminal stuff on windows Mar 27 00:44:40 it was also *deployed* in 1996 and last login was in 2000 before I rescued it in 2005 Mar 27 00:44:46 p_l: got Gentoo running on it Mar 27 00:44:59 p_l: found a years old bios patch to get 64bit working Mar 27 00:45:02 if by "cool terminal stuff" you mean ANSI color codes and curses positioning, then fuck it. Mar 27 00:45:06 welcome to the present. Mar 27 00:45:30 TachyonDev: I have 1994~1996 AlphaServer 255/233 with two scsi harddrives and VMS6.1 :) Mar 27 00:45:32 uhm... so in AndEngine GLES1 in onCreateScene you could launch an async task... in GLES2 you can't apparently? Mar 27 00:45:35 niice Mar 27 00:45:36 i want a command shell, not ascii art Mar 27 00:45:44 * hackkitten gets the fatal 'looper' error Mar 27 00:45:46 TachyonDev: also, it's not BIOS, it's *firmware*. OpenFirmware, in fact Mar 27 00:45:52 :P Mar 27 00:46:17 cant believe they shipped their first 64 bit machine without 64bit working Mar 27 00:46:36 not that any OS was really working Mar 27 00:46:58 TachyonDev: well... mine has *only* 64bit modes, with 32bit being an OS artifact for NT and VAX portability... Mar 27 00:47:04 * hackkitten pings canadiancow|work~ Mar 27 00:47:29 TachyonDev: by 32bit I mean compiler/linker switches to link everything in lower 32bits of address space ;) Mar 27 00:47:50 hah Mar 27 00:48:00 oh i still havent figured out how fast this thing can compile the android OS Mar 27 00:48:08 a ramdisk of 12GB wasnt big enough Mar 27 00:48:14 and I gave up Mar 27 00:48:31 I believe the number to beat, set by the CM guys, is 9 minutes and change Mar 27 00:48:49 is it worth giving the ramdisk 16GB and leaving 8GB of memory for the compile? Mar 27 00:48:53 anything longer than that is amateur bullshit Mar 27 00:49:08 i should make a nix partition Mar 27 00:49:11 and do 16/16 Mar 27 00:49:25 instead of doing this in a VM Mar 27 00:49:26 :P Mar 27 00:49:52 9min wow Mar 27 00:49:57 RAM available to the build tools is very important Mar 27 00:49:58 thats for CM9? Mar 27 00:50:03 especially if you're using ccache Mar 27 00:50:07 well have 32GB of ram Mar 27 00:50:17 guess i should have sprung the extra $400 for 64GB Mar 27 00:50:18 not if you're giving 12 gigs of it to the ramdisk :() Mar 27 00:50:19 TachyonDev: I believe that's CM7 but I don't remember Mar 27 00:50:42 evancharlton: well that makes a difference.. the damn galnex rom is gigantic Mar 27 00:50:50 yeah Mar 27 00:51:10 my work laptop went from making builds in 25 minutes to 55 minutes Mar 27 00:51:15 TachyonDev: I stand corrected: that was CM9 Mar 27 00:51:19 wow Mar 27 00:51:21 impressive Mar 27 00:51:52 well let me see what this will do on the SSD Mar 27 00:52:01 SSD helps a lot, yes Mar 27 00:52:46 Ubuntu VM, 12 cores, 24GB Ram, 550MB/sec SSD Mar 27 00:52:53 if you have 24 GB (maybe only 20-22) of RAM available to the build, it can keep everything in memory and not have to page anything from disk during the build Mar 27 00:53:04 so a build with a 'hot' cache will go nice and fast Mar 27 00:53:30 anything special besides a "time make -j12" ? Mar 27 00:54:06 nope Mar 27 00:54:25 i could squeeze and give it a few more gigs Mar 27 00:54:43 ill give it 28gb Mar 27 00:55:48 * hackkitten guesses she'll be porting this project over to libgdx or something Mar 27 00:55:52 or whatever~ Mar 27 00:56:39 * TachyonDev tried using libaudio out of that and had to port over the C himself Mar 27 00:56:46 didnt have the things i needed Mar 27 00:57:08 well, at this point I can revert to the OGL ES 1.1 version of the app Mar 27 00:57:13 which was working more or less alright Mar 27 00:57:22 or try something else Mar 27 00:57:39 either way this is has been a pretty big waste of time -.- Mar 27 00:57:43 -is Mar 27 00:58:21 repo syncing and buiding maguro Mar 27 00:58:41 i love that the google source servers can max my connection Mar 27 00:59:36 starting compile now.. Mar 27 01:00:22 wow, these are amazing pictures http://www.environmentalgraffiti.com/news-15-pictures-icelands-magical-j%C3%B6kuls%C3%A1rl%C3%B3n-glacier-0 Mar 27 01:01:21 g00s: wow indeed Mar 27 01:01:51 hey, I was there Mar 27 01:02:01 place is unreal Mar 27 01:04:31 * TachyonDev wants to go to the ice hotel Mar 27 01:04:45 http://www.youtube.com/watch?v=Bz8iEJeh26E&ob=av3n Mar 27 01:04:47 hackkitten :( Mar 27 01:05:42 ctate: windows only thinks im taking 8GB of ram Mar 27 01:06:05 the most ram heavy steps are a bit further along Mar 27 01:06:16 the dex compiler in particular Mar 27 01:06:48 canadiancow|work > only exception I get now is that I can not create an async task in oncreatescene(), which worked fine in GLES1 :( Mar 27 01:06:53 wow Mar 27 01:06:56 jumped up on the SEMA stuff Mar 27 01:07:14 hackkitten, why would you do that in onCreateScene? Mar 27 01:08:01 ctate: how much smaller is the ICS build for Nexus S vs GalNex? Mar 27 01:08:10 canadiancow|work > as that's when the scene is set... it's to load the resources for the next scene in the background Mar 27 01:08:17 again, following tutorials :) Mar 27 01:08:19 maybe i should just build the Nexus S CM9 rom :P Mar 27 01:08:25 this one recommended in the AE wiki Mar 27 01:08:25 TachyonDev: dunno; the difference is pretty much in the assets Mar 27 01:08:30 you cant really load them in the background Mar 27 01:08:35 the second you do that it pauses drawing Mar 27 01:08:44 worked fine in GLES1 Mar 27 01:08:45 i hope i get into all the afterparties at IO again Mar 27 01:08:52 everyone is using it Mar 27 01:08:54 * hackkitten shrugs Mar 27 01:08:55 i worked hard to get into the Samsung, HTC, and LG ones Mar 27 01:09:10 Got that optimus 3d from the LG one Mar 27 01:09:26 ctate: up to 13GB Mar 27 01:09:44 TachyonDev: i worked hard to follow you into the samsung one :) Mar 27 01:09:48 and i guess htc? Mar 27 01:09:49 lol Mar 27 01:09:50 i cnat remember Mar 27 01:09:54 lg was after i left Mar 27 01:10:05 canadiancow|work: the only one they gave shit out at :P Mar 27 01:10:19 TachyonDev: a lot of the ram is so that the contents of the .c and .h and .java etc files can be retained in the VM buffer cache Mar 27 01:10:30 instead of needing to be paged in repeatedly Mar 27 01:10:35 right on Mar 27 01:10:55 well TachyonDev it was after my flight...so...yea Mar 27 01:11:06 * TachyonDev likes his 8x8GB Quad-Channel DDR3-1866 Mar 27 01:11:17 cant believe these boards hold 8 dimms Mar 27 01:12:56 then there is this: http://www.evga.com/products/moreInfo.asp?pn=270-SE-W888-KR Mar 27 01:13:11 96GB of ram Mar 27 01:13:17 wtf Mar 27 01:13:18 dual 2011 slots for 24 logical cores Mar 27 01:14:10 7 pcie3.0 slots or some shit Mar 27 01:15:07 i ended up with this: http://www.asus.com/Motherboards/Intel_Socket_2011/SABERTOOTH_X79/ Mar 27 01:15:51 18GB of ram in use :) Mar 27 01:16:40 well... I was recently contemplating 64 physical cores... Mar 27 01:16:50 22GB of ram Mar 27 01:17:35 hackkitten: btw, there's (still experimental) work for accelerated OpenGLES in emulator Mar 27 01:18:10 ctate: yeah settled out at 22.5GB for Dex Mar 27 01:18:37 ctate: including windows use Mar 27 01:18:41 p_l > 2.0, hopefully :) Mar 27 01:18:46 TachyonDev: told you :) Mar 27 01:18:52 ctate: :P Mar 27 01:19:16 canadiancow|work > my menu screen loading is now broken in my AE game :( Mar 27 01:19:27 ctate: yeah this is probably faster than a ram drive Mar 27 01:19:34 hackkitten: well, it seems to be v2 Mar 27 01:19:45 libGLES_V2_translator.so <--- :) Mar 27 01:19:57 :) Mar 27 01:19:58 yay~ Mar 27 01:20:18 it crashes on my machine, but it's scumbag intel gma Mar 27 01:21:11 ctate: woops Mar 27 01:21:28 i just filled the VM's drive Mar 27 01:21:30 jesus Mar 27 01:21:41 32GB isnt enough for linux and to build android? Mar 27 01:22:22 ugh Mar 27 01:23:04 TachyonDev > obviously not :) Mar 27 01:23:07 heh Mar 27 01:23:13 SSD HD space is expensive Mar 27 01:23:16 * hackkitten can't build Qt on her system either :( Mar 27 01:23:23 not since 4.8 hit Mar 27 01:23:26 heh Mar 27 01:23:31 i have 2TB of HD space in here Mar 27 01:23:38 but only a 480GB SSD Mar 27 01:23:40 TachyonDev: that's why I'm considering taking a loan (if I get the job at google) and building a monster machine :D Mar 27 01:23:44 * hackkitten is on a 2008 budget system Mar 27 01:23:47 p_l: awesome Mar 27 01:23:53 * hackkitten got rejected at Google :( Mar 27 01:24:05 hackkitten: isobar.com Mar 27 01:24:10 Google rejects all but the most meek, it seems Mar 27 01:24:15 * p_l scratches hackkitten behind the ears Mar 27 01:24:19 TachyonDev > what's that? Mar 27 01:24:47 p_l: https://plus.google.com/109124286422639953134/posts/hX4LtDFLhag Mar 27 01:24:53 hackkitten: its the company roundarch merged with Mar 27 01:24:59 hackkitten: they have offices all over the world Mar 27 01:25:00 ah right Mar 27 01:25:27 who builds desktops anymore? :) Mar 27 01:25:35 QubeZ: proper geeks Mar 27 01:25:42 heh Mar 27 01:25:54 * hackkitten wouldn't mind a job instead of trying to wing things as a freelancer Mar 27 01:26:01 QubeZ: you should see star wars the old republic on this :P Mar 27 01:26:15 hackkitten: consultancies are cool like that Mar 27 01:26:19 TachyonDev: my plan was for 4x 16 core Opteron, a battery-backed RAID controller, lots of ram and storage, and some beefy nvidia card Mar 27 01:26:22 im a star trek guy.. never really got into star wars Mar 27 01:26:22 Hey. Do you need an API key to run an app on your physical device? Mar 27 01:26:25 weird huh? Mar 27 01:26:30 hstefan: no Mar 27 01:27:14 QubeZ: ive seen every star trek, wars, and gate :P Mar 27 01:27:25 is there anywhere good in north america to ski at this time of year? Mar 27 01:27:31 * QubeZ bows Mar 27 01:27:34 canadiancow|work: not really this year Mar 27 01:27:38 canadiancow|work: snow is gone dude Mar 27 01:27:41 spring came early Mar 27 01:27:51 minneapoils, its like 60's and 70's now Mar 27 01:28:14 vail is even dead Mar 27 01:28:54 QubeZ: you mean above moist air survival temperatures? Mar 27 01:29:20 hehe Mar 27 01:29:24 minneapolis is a freaking tundra Mar 27 01:29:28 whistler still seems decent? Mar 27 01:29:42 I am having an issue. I have an activity with 8 different layouts. There is one or two input fields per layout, and a next button to advance to the next. The issue I have is that when I click next, the keyboard is still attached to the previous view, so text never shows up on the current one. Any idea why this would be, or how to avoid it? Mar 27 01:29:44 this is my 2nd stint here... convinced my wife to come up with me (she's indian grew up in So. America) Mar 27 01:29:45 Thanks Mar 27 01:29:51 there's snow in tahoe finally Mar 27 01:29:54 not good snow, though Mar 27 01:30:00 * pfn just went this weekend Mar 27 01:30:03 but healthcare company has a good job here -- stable and good pay, can't beat that with first baby on the way Mar 27 01:30:13 stupid skier totally made me crash and tweak my knee and ankle though Mar 27 01:30:22 * hackkitten has lawsuit and other legal stuff to deal with this week @_@ Mar 27 01:30:39 being sued or suing? Mar 27 01:30:58 latter Mar 27 01:31:07 4 of the major Dutch hospitals :) Mar 27 01:32:00 hope you win Mar 27 01:32:55 i dont know how you can say that without knowing details of the case Mar 27 01:33:04 that makes it so meaningless Mar 27 01:33:08 not a bad sales run for the app the past few days, admob doesnt seem to be increasing like i thought it would though. They are giving me shit for eCPM, but im up to 12,000 impressions per day Mar 27 01:34:29 canadiancow|work: its called being nice, i dont give a fuck about the lawsuit Mar 27 01:34:44 any of you guys see hunger game? Mar 27 01:34:52 not yet Mar 27 01:34:55 TachyonDev: i did, give it a 7/10 Mar 27 01:35:00 waiting for my discount tickets to be usable Mar 27 01:35:02 yeah thats about where i am at Mar 27 01:35:07 kinda long Mar 27 01:35:13 could easily cut out 20 mins from that movie Mar 27 01:35:14 but i give the annoying preteen girls behind me a punch in the face Mar 27 01:35:30 squeeling at every kiss and death and shit Mar 27 01:35:41 and saying .. "why is she kissing him? kiss the cuter one!" Mar 27 01:36:00 TachyonDev: ... show her "God Bless America" trailer? :) Mar 27 01:36:18 it has a very fitting scene for that Mar 27 01:36:22 ugh when they saw the twilight trailer they about screamed Mar 27 01:36:25 their faces off Mar 27 01:36:36 p_l, that's such an awesome trailer Mar 27 01:36:49 TachyonDev: well, we kinda have behavioural programming to thanks for that... Mar 27 01:36:53 pfn: isn't it? Mar 27 01:36:59 Yeah, you can't see Hunger Games without running into Twilight people... Mar 27 01:37:02 "You killed Chloe? ………… Awesome" Mar 27 01:37:10 good morning devs :) Mar 27 01:37:22 can you help me with Home screen widgets for 2.3.3 ? Mar 27 01:37:28 10:38pm here, but good morning. Mar 27 01:37:31 :) Mar 27 01:37:37 I have tried in XDA,stack overflow and all...but no good,no replies Mar 27 01:37:42 www.axshort.it//75 Mar 27 01:37:45 that is my doubt Mar 27 01:38:03 Have googled for HelloWidget example for 2.3.3 but dint find anything Mar 27 01:38:06 please help... Mar 27 01:38:17 I just need a widget with just a TextView Mar 27 01:38:23 Just looking for info on getting started? Mar 27 01:38:31 But for Gingerbread? Mar 27 01:38:37 No,like I have tried making apps Mar 27 01:38:44 but little info about Widgets Mar 27 01:38:48 ya Gingerbread. Mar 27 01:39:02 Thats what I meant, a started on widgets for gingerbread? Mar 27 01:39:10 starter I menat Mar 27 01:39:11 my widget gets Forcely closed in AVD Mar 27 01:39:16 yes Mar 27 01:39:55 What errors are you getting when you debug? Mar 27 01:40:12 I get some PIDs on LogChat Mar 27 01:40:16 when running in AVD Mar 27 01:40:23 PID is 333 Mar 27 01:40:33 like, Mar 27 01:40:37 can you do one help? Mar 27 01:40:49 i got to go now,before that Mar 27 01:41:04 can you please make a homescreen widget with just "HELLO" textview Mar 27 01:41:14 and send its source to my mail? Mar 27 01:41:25 on 2.3.3 Mar 27 01:41:49 BtW,I fixed the no launcher found in my doubt that i gave the link for Mar 27 01:41:56 but I cant get the widget working Mar 27 01:42:03 I tried the same code as in vogella.de Mar 27 01:42:12 claiming to be 2.3.3 Mar 27 01:42:14 but no good Mar 27 01:42:24 still it forcely closes on AVD Mar 27 01:42:48 You were following this: http://www.vogella.de/articles/AndroidWidgets/article.html ? Mar 27 01:43:01 yes Mar 27 01:43:24 will catch you soon.need to go now. Mar 27 01:43:32 if you have time,please make an example and send it to Mar 27 01:43:37 dileeptheequalizer@yahoo.com Mar 27 01:43:43 thank you for replying :) Mar 27 01:44:16 Wow Mar 27 01:44:30 I like helping when I can, but really? Mar 27 01:44:56 Hey, can you code this for m and shoot me an email. I am leaving now, thanks.... Mar 27 01:47:14 does Environment.getExternalStorageDirectory() return /sdcard/Android/data/ ? Mar 27 01:47:30 No Mar 27 01:48:05 You want to use Context. getExternalFilesDir(...) Mar 27 01:48:05 ) Mar 27 01:48:14 http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Mar 27 01:48:25 thx Mar 27 01:49:04 Environment will tell you something like "/sdcard" (though not necessarily that) Mar 27 01:49:17 but it's pretty unfriendly to just use that; please do use the Context-named location Mar 27 01:49:50 what is the string param passed to getExternalFilesDir? Mar 27 01:49:57 in the docs u linked its always nulled Mar 27 01:50:03 * Jug6ernaut might as well just & see lol Mar 27 01:51:20 Jug6ernaut: quoting from the docs: Mar 27 01:51:25 * ctate | type - The type of files directory to return. May be null for the root of the files directory or one of the following Environment constants for a subdirectory: DIRECTORY_MUSIC, DIRECTORY_PODCASTS, DIRECTORY_RINGTONES, DIRECTORY_ALARMS, DIRECTORY_NOTIFICATIONS, DIRECTORY_PICTURES, or DIRECTORY_MOVIES. Mar 27 01:51:45 that is, from the docs for the method i linked you to :) Mar 27 01:51:53 ahh Mar 27 01:51:54 ok Mar 27 01:51:55 xD Mar 27 01:51:59 makes since hehe Mar 27 01:52:35 I know some quotes, too. Mar 27 01:57:27 WTF Mar 27 01:57:39 20 piece mcnuggets are 4.99 in the US? Mar 27 01:57:44 theyre like 8.99 here T_T Mar 27 01:57:46 expensive right now, yeah Mar 27 01:57:49 lol Mar 27 01:57:55 and our dollar is worth more T_T Mar 27 01:57:57 ppl eat at mcdonalds? Mar 27 01:58:14 I just buy nuggets from costco now, the price is much better that way Mar 27 01:58:23 i just Mar 27 01:58:26 dont eat nuggets Mar 27 01:58:29 yeah, well, in the US they serve some kind of connective-tissue meat paste. I imagine you have real chicken. Mar 27 01:59:10 I just chop up a whole chicken and multipurpose it. Mar 27 01:59:17 Soup, nuggets, burritoes, etc. Mar 27 01:59:24 Healthier, tastes better and cheaper. Mar 27 01:59:28 Have fun with your Costco. Mar 27 02:01:16 costco is like a sams in the states right? Mar 27 02:01:31 Oh, did I mention they soak the resulting connective-tissue meat paste in ammonia, and then dye it pink? Mar 27 02:01:45 costco is like a giant sized wal-mart, yeah usa Mar 27 02:01:46 sounds awesome Mar 27 02:01:47 what about the pink slime ground beef fiasco Mar 27 02:02:00 Jug6ernaut: Check out Superstore USA Mar 27 02:02:11 its even bigger than costco Mar 27 02:02:19 * Jug6ernaut looks Mar 27 02:02:25 err Mar 27 02:02:31 damnit what is the real name of the place Mar 27 02:02:35 damn you family guy Mar 27 02:02:37 Costco is like some silly club that charges its patrons a yearly fee for overpriced bulk quantities that they don't use completely before it spoils. Mar 27 02:02:40 lol Mar 27 02:02:41 we used to go to one in texas Mar 27 02:02:54 brandsmart usa? Mar 27 02:02:56 * Jug6ernaut lives in texas Mar 27 02:03:14 If you like buying huge vats of frozen chicken nuggets, Costco has them. Mar 27 02:03:21 it was near dallas Mar 27 02:03:25 damnit i cant remmeber the name Mar 27 02:03:33 not sams? Mar 27 02:03:35 they had a ball pit you could throw your kids in while you shopped Mar 27 02:03:43 haha Mar 27 02:05:10 maybe they got bought out Mar 27 02:05:15 Costco is like wal-mart, except wal-mart tries to lower prices whereas costco tries to keep them high. Mar 27 02:05:27 what about BJs Mar 27 02:05:47 You can get BJs for free from a drunk bar patron. Mar 27 02:06:02 www.bjs.com Mar 27 02:06:06 hahah Mar 27 02:06:17 we get TP and PT from there Mar 27 02:06:59 Okay, those things are too filthy to talk about here. Mar 27 02:07:05 lol Mar 27 02:07:29 gah .. less than 12 hours to IO registration Mar 27 02:07:59 hello Mar 27 02:18:23 are there time synchronization issues with android? Mar 27 02:20:42 karstensrage: what do you mean? Mar 27 02:21:05 i mean does the clock ever get skewed off on an android devices? Mar 27 02:21:09 -s Mar 27 02:21:41 karstensrage: it shouldn't. It pulls time in from the network, whether it be wifi or cellular Mar 27 02:22:06 hmm Mar 27 02:22:06 ok Mar 27 02:42:17 900 buckazoids for io ticket Mar 27 02:57:54 I've got a question... Is there any reason this bit of code (http://ideone.com/GpNeQ) shouldn't work? Mar 27 02:58:44 yes, it won't compile because the brackets are in the wrong place on the int path declaration Mar 27 02:58:49 int[] path; would be correct Mar 27 02:59:57 finishactivity finishes an activity that you started from inside this one, is that what you mean to do? **** ENDING LOGGING AT Tue Mar 27 02:59:57 2012