**** BEGIN LOGGING AT Mon Apr 23 02:59:58 2012 Apr 23 03:00:36 I am going to say that "stream type's bit" just means a bit in some bitfield that is being used to keep track of the streams, internally. Apr 23 03:01:01 but where did you read that Apr 23 03:02:48 readme: in the AudioManager page you linked after clicking on the MUTE_STREAMS_AFFECTED constant Apr 23 03:02:54 Thank you, readme. I think you gave me the tip I needed. Apr 23 03:03:06 Hi, anyone recommend a free SVN? Apr 23 03:03:45 intraAction: i cannot find MUTE_STREAMS_AFECTED. Is that the right name? Apr 23 03:04:13 Descra: google code Apr 23 03:04:28 readme, it must be open source Apr 23 03:04:35 huh, what do you mean Apr 23 03:04:48 you mean that their web service & infrastructure must be open source? Apr 23 03:05:05 readme, google code impose that your project is open source Apr 23 03:05:09 readme, nono Apr 23 03:05:18 I don't know of any free SVN for closed source. Apr 23 03:05:22 Descra: so you're looking for free hosting for a commercial project? Apr 23 03:05:23 only git and mercurial Apr 23 03:05:31 Leeds, yes Apr 23 03:05:43 how about paying for hosting for your commercial projecT? Apr 23 03:05:53 readme: oh sorry i was accidentally searching in System.Settings again Apr 23 03:05:57 if you have a commercial project that you care about... I wouldn't put it on someone else's server Apr 23 03:05:59 i have seen XP-Dev Apr 23 03:06:13 my proprietary code is on tight lockdown in my own server Apr 23 03:06:22 which also hosts my email Apr 23 03:07:01 readme, i can make my personal PC host the project but sometimes inet fails Apr 23 03:07:40 Descra: get a vps Apr 23 03:07:41 readme, if someone like google hosted private projects for free, I would trust them Apr 23 03:07:53 yeah, you can get a vps for $10-$15 per month Apr 23 03:07:54 that's naive Apr 23 03:08:05 trusting someone not to steal proprietary code when it is on their server Apr 23 03:08:06 lol Apr 23 03:08:08 readme: anyway what i did is this and it had no effect at all: AudioManager am = (AudioManager) MyActivity.this.getSystemService(Context.AUDIO_SERVICE); am.setStreamMute(AudioManager.STREAM_ALARM, true); am.setStreamMute(AudioManager.STREAM_DTMF, true); am.setStreamMute(AudioManager.STREAM_MUSIC, true); am.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); am.setStreamMute(AudioManager.STREAM_RING, true); am.se Apr 23 03:08:17 Leeds, oh, really not expensive Apr 23 03:08:25 it didnt mute the device and it didnt display the little mute symbol Apr 23 03:08:27 i pay 25/mo including automated backups Apr 23 03:08:31 for my linode mail/git Apr 23 03:08:33 Descra: of course that means you need to run your own services Apr 23 03:08:34 wtf why is it so hard to mute it Apr 23 03:08:45 intraAction: did you get permission to do that? Apr 23 03:08:54 Guys I have one of these http://farm7.static.flickr.com/6070/6101981900_ff487868da.jpg It has a Qualcomm MDM8200A, I want to make changes to the software inside. Is building a kernel for it possibly doable? Apr 23 03:08:55 more than likely, that requires a permission in the manifest Apr 23 03:08:55 readme: sure, i guess Apr 23 03:09:03 well, what did you put in manifest? Apr 23 03:09:04 readme: well i did not get any errors Apr 23 03:09:07 so? Apr 23 03:09:11 It has a web server and does not share the sdcard over wifi Apr 23 03:09:18 research the permission Apr 23 03:09:20 readme: dont i get errors if i do it without permission? Apr 23 03:09:21 it's your job not mine :) Apr 23 03:09:35 poke around the docs and list of perms Apr 23 03:09:43 look for existing code on the net that does this Apr 23 03:09:47 readme: yes but can you anser this question with the perms? Apr 23 03:09:58 readme: dont i get errors if i do something without permission? Apr 23 03:10:05 in general this would be useful to know for debugging Apr 23 03:10:21 intraAction: that depends on how the code was written. You could start by checking out the source tree and reading AudioManager.java Apr 23 03:10:21 i got nothing in logcat, at all Apr 23 03:10:36 no i mean is there nothing i can rely on? Apr 23 03:10:38 no rule? Apr 23 03:10:56 intraAction: you need to rely on yourself more :) Apr 23 03:11:14 I could do this but I believe in teaching a man to fish. Apr 23 03:11:40 borillion: welcome to #android-dev - we do Android app development here, not kernel development for whatever the hell that is :) Apr 23 03:11:43 readme: if you read the doc for the method startBluetoothSco () then it says "REQUIRES PERMISSON" Apr 23 03:11:53 it doesnt say naything for setStreamMute in the same file Apr 23 03:12:03 so it does not require permissions and thats why i didnt get an error Apr 23 03:12:06 still it doesnt work :( Apr 23 03:12:06 intraAction: the problem is you're assuming that the documentation is perfect Apr 23 03:12:09 which it isn't Apr 23 03:12:21 Leeds, I am aware lol it was just a random question. Apr 23 03:12:21 if it doesn't work: make a list of hypothesis as to why Apr 23 03:12:24 and eliminate them one by one Apr 23 03:13:05 readme: well but i can assume that the doc is consistent within the same file. and my second indicator is that i dont get errors which is unlikely as well. so i can fairly confidently conclude i dont need permissions Apr 23 03:13:22 > well but i can assume that the doc is consistent within the same file. -- you shouldn't Apr 23 03:13:29 oh cmon Apr 23 03:13:35 Leeds, actually working on getting my Lilliput touchscreen working, androids drivers dont take into account the issues with the egalax chips and reversed signals Apr 23 03:13:35 i'm telling you from experience Apr 23 03:13:42 :( wow i hate google Apr 23 03:13:46 intraAction: when it's not working, at least one of your assumptions is wrong. Apr 23 03:14:02 readme: there can be others reason no? Apr 23 03:14:17 come up with a few reasons you think Apr 23 03:14:22 on paper or a text file Apr 23 03:14:25 then challenge them Apr 23 03:14:35 my first guess is that you need a permission Apr 23 03:14:39 you can challenge it, or disregard it. Apr 23 03:14:41 i have no clue because i dont know the system as well as you guys do Apr 23 03:14:54 hence i came here for a theory that i can test Apr 23 03:15:01 I don't know it as well as you think I do. I just know how to form hypothesis and read documentation better. Apr 23 03:15:21 i'm fairly familiar, but never used AudioManager before. Apr 23 03:15:29 Is anyone allowed to submit changes to the official android sources? Apr 23 03:15:36 lets go with the form guesses on why it doesn't work, and challenge them strategy Apr 23 03:15:41 readme: but i did everything i could. the doc says i dont need permission. (well the same file mentions permissions in upper case warnings for others methds in that file) and i dont get errors Apr 23 03:15:51 what would i do now? read the entire source code? Apr 23 03:16:02 intraAction: I can tell you at least two things you haven't done Apr 23 03:16:05 Anyone knows if there's a region setting somewhere in the system for GPS? Apr 23 03:16:15 1. find a project on the web or in the stock apps that does this, and read the code. Apr 23 03:16:20 2. look at the framework source Apr 23 03:16:27 3. try reading the permissions list Apr 23 03:16:48 readme: 1. i did even before i came here but found nothing Apr 23 03:17:03 intraAction: if I find that there is a permission for this... Apr 23 03:17:04 I swear Apr 23 03:17:11 readme: ok i will now test my theory by putting ALL PERMISSIONS in the manifest Apr 23 03:17:19 that tarded, lol Apr 23 03:17:19 and then i will try it again Apr 23 03:17:33 and then i can conclude i needed permissions or didnt Apr 23 03:17:43 unless you stumble upon some other bug Apr 23 03:17:47 like, permission overload Apr 23 03:17:53 lol no thats impossible Apr 23 03:17:57 oh? Apr 23 03:18:00 you assume a lot Apr 23 03:18:04 we must have something to work with Apr 23 03:18:18 in the end you tell me the universe doesnt exist or i need permissions to think so Apr 23 03:18:23 try this http://developer.android.com/reference/android/Manifest.permission.html#MODIFY_AUDIO_SETTINGS Apr 23 03:18:30 I NEED ORDER AND RULES IN THIS CHAOS Apr 23 03:18:43 ORDO! Apr 23 03:18:44 the order and rules are there. you're just not willing to examine the phenomena critically. Apr 23 03:18:49 ok readme Apr 23 03:19:03 how do i get a view that's inside a fragment? Apr 23 03:19:15 from the FragmentActivity (parent) Apr 23 03:19:49 hesperaux: i think the idea of fragments is that you should use them to encapsulate the handling of logic related to their views. Apr 23 03:20:05 but if you want to, just make a getter Apr 23 03:20:50 how can I make plug-ins for my Android application? Apr 23 03:21:03 And is using Rhino for scripting a good idea? Apr 23 03:21:13 Jacky: DexClassLoader Apr 23 03:21:13 readme: ok i recompiled and tested, it still does not work, i hear sounds, i dont see the mute symbol in the status bar. it is fucked up. also it is fucked up having to set 7 different streams to mute and having to remember which werent and which were muted before etc to retain the original state etc, instead of just doing a simple "mute()" that bevahes exactly likethe one when you press the power button Apr 23 03:21:33 intraAction: lets try googling "mute android programatically" Apr 23 03:21:42 readme: i did that before i asked here Apr 23 03:21:48 bet you it is hard? Apr 23 03:21:54 readme: thanks. Apr 23 03:21:55 I bet I could do it Apr 23 03:22:02 1 sec, I'll give it a try. Apr 23 03:22:37 http://lmgtfy.com/?q=mute+android+programmatically Apr 23 03:22:52 this channel is actually a Google Suggestion Engine Apr 23 03:22:56 it suggests that you google things Apr 23 03:23:03 hesperaux: stop using that fuckingly stupid annoying site if you dont know what you are talking about kthx Apr 23 03:23:15 intraAction, read what i said carefully Apr 23 03:23:23 hesperaux: did you ever try it? do you know what streams are? did you read the doc and discover it is inconsistent? Apr 23 03:23:39 intraAction, shut the hell up. i was standing up for you Apr 23 03:23:51 it is useless for people to tell you to google something in a help channel. that was my point Apr 23 03:23:53 hesperaux: ok sorry it wasnt dircted at you specifically Apr 23 03:24:03 just hate that site if i did try so hard already Apr 23 03:24:11 hesperaux: exactly! Apr 23 03:24:23 intraAction: it worked. Apr 23 03:24:29 readme: WHAAA Apr 23 03:24:41 I tried muting the call volume, and it worked. Apr 23 03:24:52 the ring, specifically. Apr 23 03:24:56 readme: not the call volume, everything Apr 23 03:25:18 readme: exaclty the same behavior as when you press power button longer and then mute Apr 23 03:25:30 it is not just ring Apr 23 03:25:37 it is general mute Apr 23 03:25:43 I am guessing that that button calls setStreamMute on each stream. Apr 23 03:25:50 and i want the same symbol displayed in the status bar Apr 23 03:25:52 which stream are you failing to mute. Apr 23 03:25:58 well that's a whole nother story. Apr 23 03:26:03 who even knows if you can do that. Apr 23 03:26:13 You know, you can get a handle to the status bar, but it's unsupported. Apr 23 03:26:14 readme: i tested that, it had no effect. how did you do it, also with setStreamMute? Apr 23 03:26:28 I didn't test changing the status bar Apr 23 03:26:30 readme: its not a new story it was my explicit quetion from the start Apr 23 03:26:31 I tested muting a ring. Apr 23 03:26:43 readme: you know that wasnt my question because i stated it three times now Apr 23 03:26:53 intraAction: well it's your problem, not mine. So far I've helped you find quite a bit of information. Apr 23 03:27:02 So if you do not want my help, you are free to disregard it. Apr 23 03:27:06 readme: i know, but in this case you were wrong. it is not easy and you cannot even do it Apr 23 03:27:07 good luck :) Apr 23 03:27:12 but i appreciate your help Apr 23 03:27:39 so stop using stupid strawman arguments like "if u dont want my help" Apr 23 03:27:44 I could actually tell you how to start investigating your status bar issue, but I'm not going to because you were an idiot about it. Apr 23 03:27:52 :) Apr 23 03:28:07 i wanted help with my question. you couldnt solve it either although you said it is easy. no problem with tht, just dont say "if u dont want my help" after that Apr 23 03:28:21 intraAction: haha, ok. Apr 23 03:28:30 protip: if you want help, don't insult your helpers. Apr 23 03:28:33 i just want you to understand Apr 23 03:28:36 i am not insultung you! Apr 23 03:28:46 I understand that you want the world, at the wave of a magic wand, to fall into your hands Apr 23 03:28:49 i just want you to understand how it feels for me Apr 23 03:28:50 and that is not how programming works. Apr 23 03:29:01 readme: that, again, is a strawman argument Apr 23 03:29:15 readme: a distorted misrepresentation of what i said Apr 23 03:29:27 which you can easily attack and then pretend you were right from the start Apr 23 03:29:35 although i wanted or said something different Apr 23 03:29:37 there's a fairly good chance you're not going to get the status bar to change Apr 23 03:29:44 haha ok. Apr 23 03:29:48 more drama, bring it on Apr 23 03:29:55 weird, android is sometimes hard to use Apr 23 03:30:04 readme: i am completely calm, i just want you to understand Apr 23 03:30:06 the StatusBarManager is not a public API. Apr 23 03:30:14 ok Apr 23 03:30:51 i will try even harder Apr 23 03:31:26 https://gist.github.com/2468681 Apr 23 03:31:33 see what you have to do to modify the status bar? Apr 23 03:31:37 it's not supported Apr 23 03:32:02 wow that sucks Apr 23 03:32:39 actually i dont want to modify it directly, like hide symbols or anything, i just want to mute the phone and android should handle the status bar, just like enabling wifi or whatever Apr 23 03:33:32 intraAction: your statement above that the 5-6 calls to audiomanager do nothing is false Apr 23 03:33:39 they mute the streams Apr 23 03:34:28 readme: maybe i didnt wait long enough. can i register a callback that tells me when it is done? Apr 23 03:35:28 I don't believe it is that you didn't wait long enough. I believe it is that you only looked for visual indicators of the change and did not actually try to play a sound. Apr 23 03:35:42 but no, there doesn't appear to be a callback for that. Apr 23 03:35:54 yes i did play a sound Apr 23 03:36:02 did you do so by starting an application? Apr 23 03:36:28 I think you can guess what I'll say next Apr 23 03:36:40 the streams are only muted for my app? Apr 23 03:36:51 nah, that the app you used could have reset the setting Apr 23 03:37:03 that is NOT what i want, i want to mute it like i said exactly as if i was pressing power long enough and then muting it Apr 23 03:37:16 apps do not reset the power button mute Apr 23 03:37:17 you can't stop apps from changing the volume back Apr 23 03:37:22 if they have MODIFY_AUDIO_PERMISSION Apr 23 03:37:26 when setting widget parameters programmatically (ie, TextView.setMaxWidth = 5;) is there any way to specify density-independnet pixels instead of regular pixels? Apr 23 03:37:33 I experienced this today when I was playing with a scare app Apr 23 03:37:41 I muted the phone, then turned on the scare app Apr 23 03:37:52 it changed the volume back to full then scared my pants off Apr 23 03:38:02 sounds like fun Apr 23 03:38:10 good way to fix the hiccups Apr 23 03:38:16 i see Apr 23 03:38:23 thats what it was for, I was going to scare my gf with it, but she heard it while I was testing Apr 23 03:38:29 it still scared her tho Apr 23 03:38:50 lol, my g/f gets scared if i tell her there's a spider nearby, but when i tried that once to cure her hiccups she just got annoyed after the fear died down and her hiccups remained Apr 23 03:38:54 readme: sounds like the app worked Apr 23 03:39:05 ok this is time for the root hammer Apr 23 03:39:24 * intraAction pulls out /system/bin/su Apr 23 03:39:29 ENOUGH! Apr 23 03:39:46 /system/bin/su mute mute mute mute Apr 23 03:39:55 sudo evne Apr 23 03:39:57 even* Apr 23 03:39:59 as root, you can probably do some sort of permanent muting Apr 23 03:40:21 readme: how can i make an app request root rights? Apr 23 03:40:29 so that superuser.apk pops up a dialog etc Apr 23 03:40:39 setuid() Apr 23 03:40:46 ah Apr 23 03:40:55 you sure? Apr 23 03:41:03 that's how you change UID on Linux Apr 23 03:41:25 but usually superuser.apk works together with /system/bin/su Apr 23 03:41:28 (it's what su does) Apr 23 03:41:37 su calls setuid Apr 23 03:41:44 you could also invoke su Apr 23 03:41:46 readme: yeah but setuid doesnt call su Apr 23 03:41:54 hence i asked whether you are sure Apr 23 03:42:07 dunno, ChainsDD would. he made superuser. Apr 23 03:42:22 wow cool Apr 23 03:42:24 I'd try setuid before executing su Apr 23 03:42:24 hello ChainsDD Apr 23 03:42:39 oh wow, that's why i recognized ChainsDD before...cuz I use his app all the time. derp. Apr 23 03:42:45 maybe ask him when he is active o_o Apr 23 03:42:54 ok Apr 23 03:43:11 i will wait for you ChainsDD Apr 23 03:43:15 lol Apr 23 03:43:21 lol Apr 23 03:43:34 until the sky falls down and ripples the ocean like a tidal wave, we will wait for ChainsDD Apr 23 03:43:45 Apr 23 03:43:58 we long for the root! Apr 23 03:46:29 i'm out for a while. bye now Apr 23 03:48:28 bye hesperaux Apr 23 03:49:02 where does ChainsDD live? Apr 23 03:49:11 i mean when is he usually active? Apr 23 03:49:28 because i might be out for a while Apr 23 03:49:32 too Apr 23 03:53:07 intraAction: run this Apr 23 03:53:09 http://pastie.org/3837164 Apr 23 03:54:00 some of the code is unnecessary, because I adapted it from code that runs the ls command. Apr 23 03:56:38 you just open a new process to /system/xbin/su Apr 23 04:01:12 readme: ok let me try that Apr 23 04:01:25 readme: where did you get that code? Apr 23 04:01:27 cool it works! Apr 23 04:03:29 it kinda hangs but it did launch the superuser.apk Apr 23 04:07:14 intraAction: I googled for "execute console application android" or something of that nature Apr 23 04:07:19 then substituted /system/xbin/su Apr 23 04:07:43 ah Apr 23 04:08:02 so setuid would not be enough right? Apr 23 04:08:16 not unless you had called it from a setuid binary Apr 23 04:08:20 like su Apr 23 04:08:21 yeah Apr 23 04:08:28 ok thanks readme Apr 23 04:08:42 I created a table by this sql String "String sql = String.format( Apr 23 04:08:42 "create table %s (%s INTEGER PRIMARY KEY,%s TEXT,%s INT)", Apr 23 04:08:42 TABLE_NAME, COL_ID, COL_TEXT, COL_TIME);" Apr 23 04:09:02 is there anyway to get COL_ID value as return on inserting data? Apr 23 04:09:29 hello SQL injection. Apr 23 04:10:50 sql injection?? Apr 23 04:11:18 readme, can you please help me with my above problem? ^^ Apr 23 04:12:10 c2tarun: if you are going to ever insert user input in those format strings, they need to be sanitized Apr 23 04:12:20 look up sql injection Apr 23 04:12:59 readme, yeah I know that this is kind of hackable by sql injection, I'll fix that as soon as my this problem is fixed :( Apr 23 04:14:07 insert returns the ROW_ID (_id) of the inserted row. Apr 23 04:15:05 readme, yeah, but I was not able to get ROW_ID's automatically generated so I created a column which is equivalent to ROW_ID (I read somewher) Apr 23 04:15:29 but I am not sure how to return this value instead or ROW_ID. Apr 23 04:16:42 http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/provider/ScheduleDatabase.java Apr 23 04:16:51 look at onCreate for how they create the tables in iosched Apr 23 04:16:55 do it like that Apr 23 04:17:38 readme, thanks :) Apr 23 04:19:21 readme: is the superuser.apk source available? Apr 23 04:22:58 readme: ah yes i found it on google source Apr 23 04:23:37 i was going to give you a lmgtfy link, but my clipboard works odd in chromium Apr 23 04:24:16 :) Apr 23 04:24:17 has anyone run ant debug to build your android project? Apr 23 04:24:44 readme: is the chromium source available? Apr 23 04:24:59 xD Apr 23 04:25:02 so you can fix it Apr 23 04:25:26 although the clipboard not working should be a bug the developers should immediately notice Apr 23 04:25:36 and fix Apr 23 04:25:40 not the users Apr 23 04:26:17 hi Apr 23 04:26:40 intraAction: yeah.. It's not really in my area of interest Apr 23 04:26:52 i have a query, where is TTS data stored Apr 23 04:26:59 I should probably look for a bug, though, and at least file one if it's not there. Apr 23 04:27:43 intraAction: it seems to me that a lot of bugs on linux versions don't get as high of priority on multiplatform projects. i've currently got two no-brainers filed in intellij. Apr 23 04:27:56 that sucks Apr 23 04:28:07 i don't care. like you said. if I really cared i'd fix it. Apr 23 04:28:13 i like linux :P Apr 23 04:28:35 maybe I'll start using opera again Apr 23 04:28:50 I do have a nice extension for chrome though, Readability Apr 23 04:28:58 which I wish had source highlight, but doesn't. Apr 23 04:29:01 i want to have the bottom half of my screen change to a completely different layout/content when pressing a button. is there a way that i can define those bottom views using xml layouts and then just swap them out in realtime? Apr 23 04:29:35 faeezkadiri: i was under the impression that the TTS data is on google servers. But there are TTS engines you can use, like CMU Flite Apr 23 04:29:44 readme wayland will change all that shit Apr 23 04:29:57 is that a new version of chrome? Apr 23 04:30:18 readme: actually they deleted all the code Apr 23 04:30:25 intraAction: superuser? Apr 23 04:30:30 see http://code.google.com/p/android-superuser/source/browse/ Apr 23 04:30:32 yes Apr 23 04:30:34 search github for it Apr 23 04:30:38 everything is gone Apr 23 04:30:42 they killed it Apr 23 04:30:49 with fire Apr 23 04:30:51 ok Apr 23 04:31:03 readme its a new windowing server for linux Apr 23 04:31:12 they should at least set a link to github if it is on github Apr 23 04:31:21 and I really think thats what its gonna take to make linux a serious contender in the workstation dept Apr 23 04:31:23 readme: http://eyes-free.googlecode.com/svn/trunk/documentation/tutorial/tutorial.html says that if the sd card is mounted on computer then TTS wont work properly Apr 23 04:31:25 ron_frow_: Linux could use one of those. I hope it works well. Apr 23 04:31:45 I hope they ditch the client-server arch that while making it fun to dev for makes it slow as molasses compared to windows and mac. Apr 23 04:31:47 readme: oh ChainsDD is the project owner now? Apr 23 04:31:56 intraAction: dunno, i'm not a groupie Apr 23 04:32:00 readme thats the idea Apr 23 04:32:04 because on googlecode it said he was a major contributor Apr 23 04:32:15 ron_frow_: is this like directfb? because that didn't gain much traction. Apr 23 04:32:29 but seems like he took over now Apr 23 04:32:46 ubuntu is talking about ripping out x and going ot wayland in the next version Apr 23 04:32:46 Oh, wow, ubuntu plans to use it Apr 23 04:32:53 that will be interesting Apr 23 04:33:33 I think it was a problem everyone knew needed to be fixed, but took somone that was intimately familliar with the interworkings to make those changes Apr 23 04:33:34 is it better than X? Apr 23 04:33:50 ron_frow_: i think one of the motivatins for wayland, was that X did not serve well for mobile touch enabled devices; i think if it helps linux, thats where it would help te most Apr 23 04:34:05 on github is this the latest version? Apr 23 04:34:10 I think thats where you'd see the biggest gains Apr 23 04:34:14 i don't know. is there project activity? Apr 23 04:34:18 read the log Apr 23 04:34:38 but desktop linux ui is basically built on a foundation of shit Apr 23 04:34:52 usually I just check to see if a project has recent commits, and if not, see ya. Apr 23 04:34:53 and now, its super nice that it wont require complete re-architecture of your apps Apr 23 04:34:56 or did they silently move to svnhub.com Apr 23 04:34:58 it does. Apr 23 04:36:54 its pretty cool that everybody uses the same app for rooting Apr 23 04:37:06 i mean EVERYBODY uses the same su and the same superuser.apk Apr 23 04:37:22 for other apps there re usually many different alternatives, like think a calculator Apr 23 04:37:40 or an editor Apr 23 04:37:55 why is that so? Apr 23 04:40:06 why re-invent the wheel Apr 23 04:40:13 ron_frow_: i can't imagine the confidence you must need to take on such a juggernaut of a project with a new alternative Apr 23 04:40:22 that person must really, really, hate x Apr 23 04:41:01 x is plagued with a number of issues; both political and technical. the code is a fucking mess Apr 23 04:41:09 intraAction: alternatives are good, but you need a reason that yours is an improvement Apr 23 04:41:10 readme - well the good thing is you can plug x right into it and use x as a last resort Apr 23 04:41:10 remember xfree86 -< x.org ? Apr 23 04:41:13 x is garbage Apr 23 04:41:21 g00s: yeah, i've been using linux for 8-10 years Apr 23 04:41:25 I used to configure it by hand Apr 23 04:41:41 keith packard, etc Apr 23 04:41:57 they couldn't get shit done on xfree86 so they abandoned it Apr 23 04:42:25 its just code decay Apr 23 04:42:36 I didn't pay that much attention to the politics of it at the time Apr 23 04:42:37 for the original requirements it did what it was supposed to well Apr 23 04:42:41 i was just a kid who liked to use linux Apr 23 04:42:43 in his own bubble Apr 23 04:43:01 but as peoples needs were realized, code got poluted, and priorities changed Apr 23 04:43:09 readme I played with slackware from like v1 Apr 23 04:43:12 much more important was: what XMMS theme I was using Apr 23 04:43:15 and freebsd 1 Apr 23 04:43:19 awesome Apr 23 04:43:22 readme: heh Apr 23 04:43:24 I didn't even have a computer at the time Apr 23 04:43:32 I didn't get one until I was 15 Apr 23 04:43:42 * readme had to buy it Apr 23 04:44:22 wow the superuser code is pretty huge Apr 23 04:44:36 that's ok though. not having a computer until 15 gave me time to learn criticial social skills Apr 23 04:44:45 i thought it would simply be one activity and a db Apr 23 04:44:45 soojn as I got the computer, I just threw my social life in the can. Apr 23 04:45:26 intraAction: how does it know when you invoke su? replaces with its own binary, right? Apr 23 04:45:48 readme: nobody needs better social skills than with age 15 Apr 23 04:46:14 readme: i didnt understand it yet, i think the su binary source comes with a .cpp file that is an activity as well or something Apr 23 04:46:20 intraAction: i sat inside and coded binary trees all day Apr 23 04:46:25 that integrates into the android stuff Apr 23 04:46:29 lol Apr 23 04:47:48 it consists of 17 activities and 20 helper classes Apr 23 04:48:55 and it requests NFC permissions Apr 23 04:49:12 Apr 23 04:49:14 thats weird Apr 23 04:49:53 weird, more like pretty cool Apr 23 04:50:07 look and see what the nfc code deos Apr 23 04:50:11 does* Apr 23 04:50:11 and it requests permissions for its own classes Apr 23 04:50:14 that is even weirder Apr 23 04:50:18 Apr 23 04:50:18 Apr 23 04:50:21 Apr 23 04:50:31 why does it request permissions for its own stuff? Apr 23 04:50:33 that's not weird, read the content provider and broadcast receiver documentation Apr 23 04:50:46 ok Apr 23 04:50:46 because it can :) Apr 23 04:51:06 sometimes you don't want just any app to be able to use your provider Apr 23 04:51:11 or receiver Apr 23 04:51:23 well fair point Apr 23 04:51:31 especially if you provider gives root permissions Apr 23 04:52:25 https://github.com/ChainsDD/Superuser/issues Apr 23 04:52:30 maybe it will be integrated into mainline android once Apr 23 04:52:38 haha, doubtful Apr 23 04:52:40 it is the de facto standard Apr 23 04:52:47 the de facto rooting standard Apr 23 04:52:59 it comes with cyanogen and other custom roms. Apr 23 04:53:02 just like linux shadow files for example Apr 23 04:53:06 android itself will not include it. Apr 23 04:53:09 everybody uses shadow files Apr 23 04:53:16 it is the android equivalent of it Apr 23 04:53:30 how is superuser analogous to a shadow file? Apr 23 04:53:36 please explain Apr 23 04:53:37 it manages user rights Apr 23 04:53:49 intraAction doubltful Apr 23 04:54:00 that's not what the shadow file does, though Apr 23 04:54:12 it stores hashes Apr 23 04:54:14 readme: then who does on linux? Apr 23 04:54:21 /etc/passwd et al Apr 23 04:54:23 whats the linux equivalent of superuser Apr 23 04:54:25 what google wants for android is for it to be secure etc. Carriers want to be able to lock devices down Apr 23 04:54:36 intraAction: su, i guess Apr 23 04:54:36 they are vaguely related Apr 23 04:54:42 superuser is basically a frontend to su with some acls Apr 23 04:54:51 you can allow/deny access to su Apr 23 04:54:58 ron_frow_: yeah but there have been laws passed that this is illegal and that carriers must allow unlocking Apr 23 04:55:10 because if i buy it then i want to do with it what i want Apr 23 04:55:12 intraAction - still happens every day Apr 23 04:55:13 because i own it Apr 23 04:55:13 unlock != root Apr 23 04:55:23 readme: unlock -> root Apr 23 04:55:27 no Apr 23 04:55:35 unlock something you do to a bootloader Apr 23 04:55:38 well if you unlock it then yuou can root it Apr 23 04:55:44 you can root without unlock, too :) Apr 23 04:55:51 you just need an exploit. Apr 23 04:55:55 yes i didnt say you cant Apr 23 04:55:59 ok Apr 23 04:56:28 yeah superuser is basically acls Apr 23 04:58:42 anyway, the netsplits are gathering and approaching Apr 23 04:58:51 better take shelter Apr 23 04:58:58 cu later Apr 23 04:59:40 IRC GO BANG! Apr 23 05:11:15 hi guys Apr 23 05:12:03 just a general question, i have a new project to do a fast image encryption.. would anyone spare their expert view on the fastest encryption that is available? Apr 23 05:12:22 depends on who you ask Apr 23 05:12:24 rot13? Apr 23 05:12:26 xor Apr 23 05:12:28 hahaaha Apr 23 05:12:29 oh shit Apr 23 05:12:32 thats waht I was going to say Apr 23 05:12:50 smear pigeon poop on the pic - guaranteed nobody will want to touch that Apr 23 05:12:56 my job, I started here and class library has Encryption.Encrypt() Apr 23 05:13:00 I go and look at it Apr 23 05:13:06 rot13 Apr 23 05:13:14 how creative Apr 23 05:13:17 It's an image encryption guys . Apr 23 05:13:22 --! Apr 23 05:13:23 ron_frow_: it really has rot13 Apr 23 05:13:44 elnews: as in, a jpeg? Apr 23 05:13:46 readme I shit you not Apr 23 05:13:50 haha Apr 23 05:13:56 someone didnt realize rot13 was not REAL encryption Apr 23 05:14:00 maybe png, bmp and gif as well Apr 23 05:14:02 just more obfuscation Apr 23 05:14:07 dude Apr 23 05:14:11 i don't even know if this shit is possible Apr 23 05:14:18 of course it is Apr 23 05:14:26 elnews: i would zip it with a password Apr 23 05:14:31 if you have bytes you can encrypt it Apr 23 05:14:31 i was asked to do a dynamic decryption on a list of images Apr 23 05:14:32 thats a portable and easy to understand way Apr 23 05:14:42 homework! Apr 23 05:14:54 oh, are you writing the actual encryption code? Apr 23 05:14:57 it should be as smooth as .. normal gallery without encryption Apr 23 05:15:03 is this homework? Apr 23 05:15:12 is the normal galary even smooth :P Apr 23 05:15:14 nah Apr 23 05:15:18 actual project Apr 23 05:15:30 just i am doing a research Apr 23 05:15:44 quess might as well ask those who have ever done it Apr 23 05:15:45 * ron_frow_ remembers his idea for a porn vault and thinks there are some coincidences here Apr 23 05:16:06 lol.. those are not really running encryption do they? Apr 23 05:16:14 more like renaming the extension Apr 23 05:16:16 --! Apr 23 05:16:23 and hide it from the app Apr 23 05:16:32 I dotn know... I dont even know there are apps that do that Apr 23 05:16:37 I just know porn industry is huge Apr 23 05:16:44 ew. Apr 23 05:16:46 figured thats something porn addicts would want =) Apr 23 05:16:51 i am doing it for android Apr 23 05:16:55 lol Apr 23 05:17:12 ya i quess it must be some private photos / videos Apr 23 05:17:20 >. http://stackoverflow.com/questions/166340/write-a-password-protected-zip-file-in-java Apr 23 05:17:26 this is what I'd do Apr 23 05:17:32 that way the user can unzip it himself without your tool if shit hits the fan Apr 23 05:17:35 seriously heres the thing Apr 23 05:17:49 encryption is a subject you'd want someone who had a clue as to what you are doing Apr 23 05:17:58 not just a first attempt at encrypting files Apr 23 05:18:21 but wouldn't a password protected zip be slow? Apr 23 05:18:37 did you benchmark it? Apr 23 05:18:48 nope, just an educational quess Apr 23 05:18:59 my educated guess is you should tias Apr 23 05:19:07 tias? Apr 23 05:19:10 try it and see Apr 23 05:19:22 damn I thought i thad to be something more crude than that Apr 23 05:19:26 oh all right, i will put that as a reference Apr 23 05:19:26 haha, I wish Apr 23 05:19:41 don't quote me on anything, i'm just casually chatting Apr 23 05:19:47 have you guys done AES 2 before? Apr 23 05:19:57 what is the speed for image encryption? Apr 23 05:20:00 aes is heavier duty encryption Apr 23 05:20:09 dude it doesnt matter what the fuck it is Apr 23 05:20:15 i wonder why speed is your main concern Apr 23 05:20:16 all that matters is binary size Apr 23 05:20:21 for just encrypting a few small files Apr 23 05:20:32 portability, stability, reliability, those would be on the top of my list Apr 23 05:20:34 speed last. Apr 23 05:20:38 dude, problem is the app should work fast.. Apr 23 05:20:44 it's basically an app to hide photos Apr 23 05:20:47 you haven't even measured it yet Apr 23 05:20:49 I gotta know what this app is Apr 23 05:20:52 it will probably be sufficiently fast Apr 23 05:20:55 imagine u have hundreds of photos Apr 23 05:20:57 no matter what you use Apr 23 05:21:06 also, mobile devices arent going to be the best things for encryption anyway Apr 23 05:21:07 and while viewing it u have to decrypt it Apr 23 05:21:11 highly mathematical Apr 23 05:21:27 elnews: premature optimization. Apr 23 05:21:43 i'd rather be able to get on the cmdline and unzip when your tool breaks than have a fast tool Apr 23 05:21:46 just sayin Apr 23 05:21:59 i quess your suggestion works.. Apr 23 05:22:04 man, of course it will Apr 23 05:22:15 i can't think of a better idea. on how to meet the requirement Apr 23 05:22:27 shit does happen with those ridiculous requirement Apr 23 05:22:29 grr Apr 23 05:22:34 and then you can impress your boss with: even if it breaks, look, it still works. Apr 23 05:22:45 rolf. Apr 23 05:23:18 Thanks guys Apr 23 05:25:33 I didnt mean to be so harsh Apr 23 05:25:39 but sounds like encryption is a priority Apr 23 05:25:49 and if it is, you really need someone whos done it Apr 23 05:26:05 public vs private key, symmetric vs asymetric encryption Apr 23 05:27:27 actually, i seem to think that the security is the priority Apr 23 05:27:40 but opinion differs between mine and my boss Apr 23 05:27:53 it depends on what the purpose of the app is Apr 23 05:28:03 is to hide pictures. Apr 23 05:28:18 private . secret nasty pics of.. Apr 23 05:28:21 :X Apr 23 05:28:23 are you making an app for general consumers? super strong encrpytion not required. Are you making it for the CIA? *very* strong encryption required. Apr 23 05:28:24 those kind Apr 23 05:28:33 general customer Apr 23 05:28:52 I hope not cia if somone is asking here= Apr 23 05:28:53 haha Apr 23 05:28:55 but i do think that the security is of highest priority .. imagine it was your pic and your wife. Apr 23 05:29:03 haha Apr 23 05:29:04 my idea Apr 23 05:29:17 doing some nasty stuffs.. Apr 23 05:29:19 elnews: most likely the "security flaws" that come up in your app will be UX mistakes that lead people to not use the software to encrypt proper Apr 23 05:29:35 you'll get reports of people having their pics found Apr 23 05:29:41 because they couldn't figure out how to use it properly Apr 23 05:29:46 that will be the bulk of support requests Apr 23 05:29:55 i mean, one stars. Apr 23 05:29:59 haha Apr 23 05:30:19 that's true. a true read me is required i think Apr 23 05:30:52 adobe releases cs6, still out of my price range :) Apr 23 05:30:54 i'd use the FileObserver to watch the sdcard for when pictures are taken and prompt them to encrypt the file immediately Apr 23 05:31:00 then remove the old copy after Apr 23 05:31:15 or hook the camera Apr 23 05:31:23 not sure if you can though. Apr 23 05:31:28 read me .. i don't think they would want to encrypt all files Apr 23 05:31:31 just some. Apr 23 05:31:50 the problem is you're going to have idiots who will take a picture and assume it's safe because they installed your magic software. Apr 23 05:31:58 that's why the default needs to be prompt them Apr 23 05:31:59 g00s - I wonder if adobe realizes how many more sales they'd get if they didnt ream you in the ass for it Apr 23 05:32:05 let them disable it as a setting Apr 23 05:32:16 i quess that wasn't a bad idea Apr 23 05:32:23 of course it wasn't; it's my idea Apr 23 05:32:23 i will make that as a reference Apr 23 05:32:31 lol. u seem confident Apr 23 05:32:34 hh Apr 23 05:32:37 ;P Apr 23 05:32:48 If I have a runnable that is going to be called very frequently to update a UI string, should I have a static runnable class and just update the string and use it, or use "new runnable" every time? Apr 23 05:33:27 readme, what's your job? Apr 23 05:33:31 if u dun mind Apr 23 05:33:35 i freelance android stuff Apr 23 05:34:00 should be starting a new contract today, once it is people-time. Apr 23 05:34:10 i see.. Apr 23 05:34:14 how much do you charge? Apr 23 05:34:22 i will check if my boss is interested Apr 23 05:34:30 http://www.toyotaofberkeley.com/is-2012-the-year-of-the-enterprise-tablet Apr 23 05:34:38 elnews: my rates are negotiable. email tom@tomdignan.com Apr 23 05:36:38 wp7 finally gets skype :) good, since ms owns it :D Apr 23 05:37:04 i'm curious about this http://www.theverge.com/2012/4/21/2964794/next-generation-pixel-qi-display-proposal Apr 23 05:37:17 I beleive they could do it Apr 23 05:37:36 we evaluated pixelqi stuff.. pretty impressive what they did with high visibility lcds Apr 23 05:53:49 here's that passworded zip file benchmark, using the zip program from a linux mint install... not very slow :) http://pastie.org/3837504 Apr 23 05:54:28 * readme notes that zip/unzip have different syntax and it is ugly. Apr 23 06:02:41 XVincent: you should definitely not recreate the runnable again and again. Apr 23 06:03:57 hi, is there a way to export the ssl certificates that my android phone trusts to my computer? Apr 23 06:04:13 that is a good question Apr 23 06:04:24 i have gone through hell and back with SSL certs in the past week Apr 23 06:05:06 i can view them on my phone, but i don't know how to pull them on my computer Apr 23 06:05:40 do you need to trust an ssl cert that is not usually on android devices? Apr 23 06:06:29 no, i want a bks file with all certificate my phone trusts Apr 23 06:08:56 i will help you look for it Apr 23 06:08:59 for what purpose Apr 23 06:10:00 but, if you want example code for say, trusting all certificates and then more, I've got that. Apr 23 06:10:07 i need some MgT apparently, http://www.gizmag.com/magnesium-boosts-brainpower/14022/ Apr 23 06:10:26 thought you ate lots of greens Apr 23 06:10:42 i have a huge bag of collard greens Apr 23 06:10:48 was eating a bunch of raw kale too Apr 23 06:10:53 MgT is not normal Mg Apr 23 06:11:07 oh Apr 23 06:11:40 lef seems to license it; they always have the kick ass stuff Apr 23 06:12:23 * g00s just finished his kale salad :D Apr 23 06:13:11 readme, no i do not want to trust all certificates :) Apr 23 06:13:27 i really want all certificates my phone trusts to do some analytics based on them Apr 23 06:13:37 hm Apr 23 06:13:44 well, I believe you can get that with the TrustManager. Apr 23 06:14:31 https://github.com/tom-dignan/Android-OpenCNAM-Library/blob/master/android-opencnam-library/src/com/tomdignan/android/opencnam/library/ssl/AdditionalKeyStoresSSLSocketFactory.java Apr 23 06:14:44 see the loop on line 81 Apr 23 06:14:53 it loops through all the keystores on the device Apr 23 06:16:14 I use that code to trust: all certs on device + any user added certs. Apr 23 06:17:07 I had to read a lot to figure this stuff out. If you want my links I can get them for you. Apr 23 06:24:17 wtf are my /proc files owned by the user 'keystore' :| Apr 23 06:28:39 readme: better than being owned by g00s :) Apr 23 06:34:24 magnesium enhanced brain function. Apr 23 06:34:33 that's some news there Apr 23 06:35:48 readme: Thanks, I thought so but some bad stackoverflow post was making me question myself. :) using a single instance class with a synchronized run. Otherwise, by the time the UI thread gets around to updating the string, they will all just repeat the last string. Apr 23 06:36:08 readme, thanks for the bench mark Apr 23 06:36:17 hope it works as fast on linux Apr 23 06:36:24 elnews: np, it will probably be slower from java. Apr 23 06:36:29 seeing as how, java Apr 23 06:36:39 ya.. Apr 23 06:36:42 >. that scares me.. maybe i should use NDK Apr 23 06:37:09 instead .. use a native C library Apr 23 06:37:19 the existing encryption libs probably do use native code Apr 23 06:37:30 just a guess Apr 23 06:37:49 now u mentioned it .. Apr 23 06:37:56 i think it should be Apr 23 06:38:11 what is with the magnesium think? Apr 23 06:38:13 does it work? Apr 23 07:31:52 Can anyone confirm that ABS is under Apache 2.0? Apr 23 07:32:21 isn't there a license file in the root directory ? Apr 23 07:34:08 Good Morning Apr 23 07:34:10 good point Apr 23 07:35:17 Hello I have a strange issue...I'm including a module as an apklib, with maven all is fine, except than the gen sources are'nt compiled, no class files so it crashes at runtime Apr 23 07:35:33 what can I do ??? anyone with maven ? Apr 23 07:37:01 tstebut: search m2e-android on Github Apr 23 07:37:28 yep Apr 23 07:38:10 but...anyway it doesn't only crash at runtime...it just not compilke at all , because of R.java ignored by the compile phase :/ Apr 23 07:38:51 anyway, I 'm not supposed to be using eclipe though Apr 23 07:41:28 no sorry I already use it thats not gonna solve my issue :/ Apr 23 07:41:33 ...I doubt Apr 23 07:43:01 Hm, doesn't seem like a TextView accepts html formatting when set from XML Apr 23 07:43:08 And a Webview can't have pre-set text? Apr 23 08:10:25 huh, is there a reason why I couldn't activate new APK on Play Store? Apr 23 08:15:59 hi, i am new to android and i have to do some network stuff within a thread. does somebody know, how to pass context from activity-class to inner class (thread) to store data in sqlite? Apr 23 08:30:57 Greets Gents, is there a callback for when a fragment has finished animating in? I've tried allot of things - the last being reading the transition's animation time and doing handler.postDelayed(...,duration). Nothing seems to be working. Apr 23 08:32:15 It needs to be as accurate as possible and I find timers takes away stability. i.e. Back-button spam causes the views I'm trying to modify at this callback to not be available, etc. Apr 23 08:35:28 I see that FragmentManager (android source) has the animation protected and subsequently overrides the AnimationListener - so I can't set the onAnimationEnd callbacks, etc. Apr 23 08:44:29 Hello guys, I wrote an app using someone else's socket class. I handle the connections in a service in a separate thread. What happens is, when I close my app, the OS shows my app as still running, so I have to "Force stop". My question is, if somehow a thread is not correctly closed, does this prevent my app from closing from the OS point of view? Apr 23 08:50:25 hEY the new zeird thing is : why is the R class generated from my apklib different thant from within the apklib project itself ??? Apr 23 08:50:55 I found some little difference which make my build fail Apr 23 08:51:41 See...for example no variable R.id.gdi_grid anymore... Apr 23 08:51:59 but gd-quick_action-grid something Apr 23 08:56:25 java needs shorthand for inner classes :((((( Apr 23 08:56:57 how much shorter could it get? Apr 23 08:57:09 anonymous inner classes i mean Apr 23 08:57:31 hm, I have downloaded opencv and it has some android example stuffs I want to try. There is a big exclamation mark on the project's name and the error log complains about a missing project.properties file. The internet suggests the fix is to right click ion the project, select android tools, then select fix project properties, but this appears to have no effect. Apr 23 08:57:32 runOnUiThread(new Runnable() { public void run() { doSomeshitOnUiThread(); } }); Apr 23 08:57:45 it's like 5 lines of code properly indented Apr 23 08:57:52 anonymous inner classes suck Apr 23 08:58:16 why? Apr 23 08:58:32 * g00s notices leeds still doesn't like anonymous inner classes :) Apr 23 08:58:53 I think they make for totally unreadable code Apr 23 08:58:58 storkme: I'd rather have proper functions as a parameters and closures :) Apr 23 08:59:26 same Apr 23 08:59:42 did they ever publish the syntax for the proposed closures in the jsr spec Apr 23 08:59:49 especially in Android, the lack of possibility to pass functions as parameters is painful :( Apr 23 09:00:00 I think they did, they just never accepted it. Apr 23 09:00:44 Mavrik: i think its for java 8 Apr 23 09:01:13 anyhow, thats years away - and android support for that is … years more away, so :D Apr 23 09:02:09 *sigh* Apr 23 09:02:35 everytime I have to write a class to just handle a callback, a small part of my childhood dies Apr 23 09:08:40 can i pass an Object to an Activity? Apr 23 09:09:00 if it's parcelable Apr 23 09:10:35 oh my, why is that? it seems that i can pass ArrayLists but not Objects that could be more simply Apr 23 09:14:05 joelmob: see what alex_PP said Apr 23 09:15:14 getParcelableExtra(), getParcelableArrayListExtra() Apr 23 09:15:33 the reason you can't just pass "any object" is because there has to be a known way of serializing that object, in order to pass it through Apr 23 09:15:42 when you implement Parcelable, you give it that way Apr 23 09:16:02 ArrayList is a collection and how it works is known to the framework developers Apr 23 09:16:06 but your random object, is not Apr 23 09:16:47 i'm still not sure how to solve the following: Apr 23 09:17:17 i have an imageview which i scale up to screen width using djustViewBounds="true" and scaleType="centerInside" Apr 23 09:17:50 and i would like to position some views on top of it. both the views's positions as their size should be scaled accordingly with the imageview Apr 23 09:18:18 i played around with a relative layout where one child is the imageview. and also having a second child which is a linear layout. Apr 23 09:18:30 yeah, that is how you should do it. Apr 23 09:18:38 so i can make use of the proportional scaling behaviour of the linearlayout's layout_weight features Apr 23 09:19:00 it seems i won't get around hacking my own viewgroup for this purpose :d Apr 23 09:19:40 interesting to know you could get the scaling behavior you wanted out of a regular ImageView Apr 23 09:20:41 readme: i actually do use a webview to get the image to scale all the way up to large screeens Apr 23 09:20:53 ah but i see now i can send objects that implements Serializable, but which is to preferr? Serializable or Parcable lol Apr 23 09:20:57 but i didn't want to complicate the question.. as it's quite independent of what i use to display the image Apr 23 09:21:27 joelmob: didn't know you could use Serializable objects in an intent/bundle Apr 23 09:21:29 which method? Apr 23 09:21:56 putExtra acceppts arguments of Serializable Apr 23 09:22:32 here's a xml snippet to illustrate the problem: Apr 23 09:22:35 maybe they just implemented Parcable because of copyright reasons Apr 23 09:22:39 http://pastesite.com/34896 Apr 23 09:22:39 ah, it does Apr 23 09:23:00 joelmob: I doubt it. It's more than likely a technical one. Apr 23 09:23:16 interestingly the linearlayout containing the two colored views extends over the whole screen height.. which is somewhat surprising to me Apr 23 09:23:16 I've read some threads about Serializable not being as well developed Apr 23 09:23:27 but I've used it before to serialize some data. It was probably not a good choice. Apr 23 09:23:42 parcelable, however, you will find is a PITA to implement. So do whatever, I don't care. Apr 23 09:24:24 tapas: show XML for linear layout Apr 23 09:25:50 readme: i pasted the xml a little up Apr 23 09:26:23 readme, i would like to read up on differences between them some day but for now i will just choose any of them :P thanks Apr 23 09:27:04 maybe i approach this problem completely the wrong way though.. Apr 23 09:27:37 tapas: i think it may be because the size of the View is just defaulting to take up as much as it can Apr 23 09:27:46 i would have thought that this problem should come up quite often: you have some image that gets scaled to full screen width maintaining aspect ratio. and then you want to place some buttons on top of it Apr 23 09:28:05 tapas: what happens if you replace the views with buttons and set a font size for them & stick some text in. Apr 23 09:29:02 readme: that might work.. but in the end the views will have images and i want to scale them proportionally.. so just using colors for them tests whether my mechanism to get them layouted is sound Apr 23 09:29:38 tapas: i don't think you're right about that because View doesn't know how big it needs to be. Apr 23 09:29:48 also you don't need fill_parent on the height, you should set it to 0dp Apr 23 09:29:53 that's because you are using layout_weight. Apr 23 09:30:01 set wrap_content to an absolute size to test. Apr 23 09:30:05 like 20dp. Apr 23 09:30:08 that is, change it. Apr 23 09:30:44 readme: on what element exactly? Apr 23 09:30:47 if you want to accomidate any size image, then there's no reason an image the size of the screen wouldn't take up the whole screen if you used wrap_content Apr 23 09:31:02 you realize that the elements inside a RelativeLayout don't share the space. They overlap Apr 23 09:31:09 that's why your solution works. Apr 23 09:31:17 tapas: on the Views Apr 23 09:31:27 change layout_height="0dp" and layout_width="20dp" Apr 23 09:31:41 height is 0, because you used weights. No need to set fill_parent. Apr 23 09:31:49 What's the best way to display html content in an alert? a webview + load the data in at runtime? Apr 23 09:32:02 readme: oh ok.. Apr 23 09:32:14 i predict that will make them stop taking the whole screen up, right? Apr 23 09:33:09 readme: yes, then they collapse to 0 size.. Apr 23 09:33:20 is there a tutorial on how to write a layoutmanager :D Apr 23 09:33:27 tapas: they collapse to 0? Apr 23 09:33:34 horizontally, or vertically Apr 23 09:34:05 oh, it's because I told you the inverse of what I meant to tell you Apr 23 09:34:11 :D Apr 23 09:34:21 yeah, i played iwth height to some fixed size Apr 23 09:34:22 layout_height="20dp" layout_width="0dp" Apr 23 09:34:25 that should fix it Apr 23 09:34:26 right? Apr 23 09:34:38 then they get proportionally sized and take up only part of the screen Apr 23 09:34:41 but then you have another challenge Apr 23 09:34:50 you need those "Views" to accomidate any size image? Apr 23 09:34:55 but not take up the whole screen Apr 23 09:35:28 exactly.. i think the way to go is a custom layout,, Apr 23 09:36:54 maybe you can simply set the layout_heights back to wrap_content and then set a maxHeight on each of them Apr 23 09:49:20 anyone with any NDK/openGL experience Apr 23 09:50:50 specifically, i'm having issues with eglMakeCurrent Apr 23 09:53:02 Hey folks -- I'm new to Android development, and sorry to just jump in here with this, but can someone tell me what simple thing I may be missing that'd cause a NullPointerException at content.ContextWrapper.getApplicationInfo() at runtime? Apr 23 09:53:51 anyone deployed flex-air app on android ? Apr 23 09:53:52 ...I have the impression that it's due to my manifest file being incomplete, or something... >_> Apr 23 09:54:06 Medlam: pastebin the stacktrace Apr 23 09:54:43 the logcat output? Apr 23 09:55:00 not sure how to get eclipse to copy/paste that info... :/ Apr 23 09:55:08 Hi, I need to add jar libraries in a project, is there any special procedure to do so ? Apr 23 09:55:40 have someone deployed adobe AIR app on android ? Apr 23 09:55:43 cause when I start my app it crashes, saying that class is not found, opening the apk archive, I don't see the jars Apr 23 09:55:58 Put the jar in libs/ Apr 23 09:56:16 SimonVT: I did that Apr 23 09:56:37 You didn't accidentally name it lib or something? Apr 23 09:56:37 lib :D woops Apr 23 09:56:41 :D Apr 23 09:57:06 aha: http://pastebin.com/2CN2aBjG Apr 23 09:57:55 ... are you calling it in your activitys constructor? Apr 23 09:58:10 nope Apr 23 09:58:20 Are you doing ANYTHING in your activitys constructor? Apr 23 09:58:46 Medlam: have you got some var like private AlertDialog blah = new AlertDialog(something); Apr 23 09:58:57 in the activity Apr 23 09:58:58 I do, that Apr 23 09:59:00 yea Apr 23 09:59:02 thats the problem Apr 23 09:59:10 mmkay Apr 23 09:59:13 Yeeah Apr 23 09:59:13 why? :( Apr 23 09:59:20 onCreate is the soonest you should be doing anything Apr 23 09:59:37 construct the AlertDialog in onCreate Apr 23 09:59:56 ookay. I assume I can still declare the variables at the top of the class, though? Apr 23 10:00:05 just not instantiate them? Apr 23 10:00:11 correct Apr 23 10:00:36 its because you are doing AlertDialog(this); and the context of this has not yet been initialised Apr 23 10:00:53 it should be fine to instantiate stuff, as long as it doesn't require a context Apr 23 10:01:01 ah, k... so it's *just* context-sensitive stuff Apr 23 10:01:06 awesome, thanks Apr 23 10:01:09 s/should be/is/ Apr 23 10:01:17 I was looking in the wrong place for the error all this time. >_> Apr 23 10:02:26 yay! it runs! :D Apr 23 10:05:01 <[twisti]> i feel like an idiot, but is there no way to specify something like "make this 50% of the screen width" in android ? other than getting the device resolution and manually calculating it, i mean Apr 23 10:05:57 [twisti]: you can use layout_weights Apr 23 10:06:17 put two views in a linear layout, and set layout_width to 0dp and layout_width to 1 on each of them Apr 23 10:06:27 layout_weight* Apr 23 10:06:37 <[twisti]> ill try that, thanks Apr 23 10:06:44 what if it were three, two should be 25% and one 50%, what are the weights? Apr 23 10:06:50 (out of interest's sake) Apr 23 10:07:13 1 for the 50% and 0.5 for the 25%'s ? Apr 23 10:07:36 <[twisti]> i would expect it to be a sum game Apr 23 10:07:52 <[twisti]> so 1, 1, 2 would probably work, and 5, 5, 10 or 0.1, 0.1, 0.2 as well Apr 23 10:08:10 <[twisti]> at least it works like that in a different UI system i used Apr 23 10:08:40 yes Apr 23 10:08:50 1,1,2 Apr 23 10:09:37 anyone knows an alternation for ksoap :( Apr 23 10:10:02 size of layout = layout_weight / sum of all layout weights Apr 23 10:10:08 hmm, i wonder how i can declare and use new layout parameters for a viewgroup's children :D Apr 23 10:11:38 <[twisti]> while ive got some helpful people around with nothing more interesting to answer, is there a way to add something to a view/layout that works like the top (notify) bar, only on the sides ? as in, something thats hidden that you can drag open over the current view ? does that thing have a name that i could google ? Apr 23 10:14:08 [twisti]: you want to drag something over the status bar? Apr 23 10:15:05 <[twisti]> no, over my view, i want it to work the way the status bar works Apr 23 10:15:05 you can only detect when a user touches the status bar area in 2.x Apr 23 10:15:12 oh, you just want to do something SIMILAR to it Apr 23 10:15:15 <[twisti]> yes Apr 23 10:15:16 use a SlidingDrawer Apr 23 10:15:22 <[twisti]> thanks, ill look that up Apr 23 10:17:21 can anyone answer this please? http://stackoverflow.com/questions/10278549/jerky-scroll-in-listview-when-using-a-custom-simplecursoradapter Apr 23 10:23:23 Hi all Apr 23 10:24:14 royale1223: What are mbpath and vspath used for ? Apr 23 10:24:17 have you tried profiling it Apr 23 10:24:28 royale1223: http://developer.android.com/videos/index.html#v=wDBM6wVEO70 Apr 23 10:25:04 http://www.forbes.com/sites/stevensalzberg/2012/04/22/university-of-florida-eliminates-computer-science-department-increases-athletic-budgets-hmm/ Apr 23 10:25:13 royale1223: do not code things like that "Integer.parseInt(cursor.getString(4))" => cursor.getInt(4) Apr 23 10:25:53 Color.parseColor("#4B8A08") is also stupid use 0xff4b8a08 Apr 23 10:27:03 royale1223: ? Apr 23 10:27:49 readme: so they're cutting CS funding for one uni, then opening a whole new uni for sciences (including cs) - what's the problem? Apr 23 10:28:16 that the university of florida isn't one university, it's a bunch Apr 23 10:28:24 so the balance is a joke Apr 23 10:30:36 hm, maybe it is just one campus Apr 23 10:30:43 test Apr 23 10:30:50 anyway, if it wasn't shocking it wouldn't be in forbes and have tons of major CS people complaining about it. Apr 23 10:30:55 glad I don't live in florida. Apr 23 10:32:38 heh Apr 23 10:32:56 maybe they're all wrong Apr 23 10:32:58 it would suck to be enrolled and then have someone tell you, "oh, sorry" Apr 23 10:33:04 you'll have to transfer Apr 23 10:33:32 take up football instead Apr 23 10:33:46 handegg* Apr 23 10:33:54 haha Apr 23 10:35:39 <= test Apr 23 10:36:46 * hoangtran reading help about irc Apr 23 10:37:04 we saw you Apr 23 10:37:12 i just don't know of an answer to your question Apr 23 10:39:49 * hoangtran is wondering if a pure android freelance can afford his food ... Apr 23 10:44:27 most of the work is given to consultants who can't even code for android Apr 23 10:44:34 the main skill here is not coding for android, but slick talking Apr 23 10:44:42 those guys then subcontract the work out to actual developers Apr 23 10:44:57 and take 50%? :) Apr 23 10:45:08 hopefully no more than that :P Apr 23 10:45:22 yeah, bill gates bought dos Apr 23 10:47:44 guys sorry I got disconnected. Still not able to solve http://developer.android.com/videos/index.html#v=wDBM6wVEO70 Apr 23 10:47:59 sorry http://stackoverflow.com/questions/10278549/jerky-scroll-in-listview-when-using-a-custom-simplecursoradapter Apr 23 10:48:01 in this channel are more App coders as Android OS coders, I think. Not? Apr 23 10:48:52 MarcAurelio: maybe Apr 23 10:48:57 MarcAurelio: it's pretty much just app dev here. Apr 23 10:48:58 MarcAurelio? Apr 23 10:49:19 in this channel more are app coders as android os coders, I think. Maybe? Apr 23 10:49:48 If you wanna meet few os coders, see #motomagic Apr 23 10:50:35 This is driving me crazy... http://stackoverflow.com/questions/10278549/jerky-scroll-in-listview-when-using-a-custom-simplecursoradapter Apr 23 10:53:24 debug or put in some debug code and see what takes time Apr 23 10:53:35 is it version specific royale1223? Apr 23 10:53:57 asfdd: I'm not familer with ddms :( Apr 23 10:54:10 chups: no, its api15 Apr 23 10:54:13 royale1223: try pasting the link again, i'm not sure everyone has noticed it yet Apr 23 10:54:30 have you tried it in other emulators? Apr 23 10:54:48 Yes, on api 10, and the on a real device Apr 23 10:55:06 it's giving the same effect? Apr 23 10:55:06 jerky every time Apr 23 10:55:08 Has anyone here had any experience with sony's smart extensions api? Apr 23 10:55:18 try removing the imageview Apr 23 10:55:33 i'm thinking that what's causing the jerkiness might be the gc Apr 23 10:55:41 I've knocked together an example of issues blending a VideoView and ImageButton at http://85.119.82.81/src/videoblending.zip , Basically the pixel blending isn't quite right. cc freecandy Apr 23 10:55:54 A sample video location is in the readme Apr 23 10:56:29 is someone awake that can help me with a building question? Apr 23 10:56:30 http://stackoverflow.com/questions/3322681/jerky-scrolling-when-using-simplecursoradapter-with-listview Apr 23 10:56:42 have you seen this royale1223? Apr 23 10:57:05 chpo: yes, i have Apr 23 10:57:26 chpo: probably unrelated since my problem applies for all apis Apr 23 10:57:52 chups: let me try removing the imaheview Apr 23 11:01:34 Hi, does any1 knows if I'm dynamically adding rows as tablerows how can I save the rows I'm adding that when I leave the application and then came back the rows I've add before will stay? Apr 23 11:01:55 write them to a file Apr 23 11:02:25 and than read the file in OnCreate? Apr 23 11:02:36 sounds great Apr 23 11:02:40 try it! Apr 23 11:03:27 I will.. Apr 23 11:03:52 thanks! Apr 23 11:08:34 Are there any run-time flags I can check to see if the app is in release or debug mode? Apr 23 11:10:05 BuildConfig.DEBUG Apr 23 11:13:05 chups: No change on removing ImageView :( Apr 23 11:13:51 Is anyone able to answer this please? http://stackoverflow.com/questions/10278549/jerky-scroll-in-listview-when-using-a-custom-simplecursoradapter Apr 23 11:14:56 low-priority sheer-curiosity question: Why is it that, when a device changes orientation, Android *kills* and *restarts* the current activity, instead of simply suspending and re-drawing it in the new layout? Apr 23 11:15:35 royale1223: cyrilmottier gave you advice on how to improve that earlier Apr 23 11:15:38 did you ignore him? Apr 23 11:16:05 I understand it's handy to be able to use a new landscape/portrait layout, and I've already worked around it, but I'm curious why Android destroys all that data by default. Apr 23 11:17:31 4 things you can do: 1. fix the Color.ParseColor to be 0xff4b8a08 instead 2. Don't convert to string and then convert to int, just use cursor.getInt(). 3. Don't fetch the drawables from the resources every time you hit the code, and 4. implement the viewholder pattern, to prevent having to fetch the views each time from findViewById() Apr 23 11:17:40 I'm interested to know as well. It's a pain more than anything else when you're first starting. Apr 23 11:18:17 readme: I think royale1223 don't care about his/her problem ... Apr 23 11:18:41 maybe adhd Apr 23 11:18:45 severe case Apr 23 11:19:25 mhmm...took me a while to handle it properly (by putting everything in a placeholder activity that just restores the old one when it's suspended) but I don't see why it's not handled more robustly by Android by default Apr 23 11:20:05 oops. what does this down arrow do...:P Apr 23 11:20:21 You handle runtime changes properly by saving your sate in onSaveInstanceState and restoring it in onCreate Apr 23 11:20:29 s/sate/state/ Apr 23 11:20:29 i;m looking for some documentation about how to package libraries Apr 23 11:20:31 How can I obtain the width of an ActionBar item so that I can have a custom (with an action view) ActionBar item which width is equal to the other items ? Apr 23 11:20:42 Medlam: fragments seem to have an option to keep the state, by the way. They're a new thing in 3.0+ Apr 23 11:20:49 especially: i have a custom layout with custom atttributes in my library project.. Apr 23 11:20:56 oh? I should look into that Apr 23 11:21:00 now my main project fails to build :( Apr 23 11:21:42 Medlam: Yeah, it's what you actually should be using instead of just Activities now. It's not all that clear or intuitive, but with the platform moving more onto tablets, their significance and importance is rising. Apr 23 11:21:45 I'm dealing with a webview that has 'savestate' functions, but it doesn't save everything, really. Using those, it would only reload the page you were on, not keep all your inputted data. Apr 23 11:22:11 Ah, yes, your solution is OK then. I don't think a fragment will help. Apr 23 11:22:31 I'll still look into it... sounds like something I should know. (thanks) Apr 23 11:22:46 but if I were to try to explain to someone "why Android does it that way"...? Apr 23 11:22:55 No clue. Apr 23 11:23:36 should I just say 'because it's too difficult to store and reload all the data like that, so it's left up to the developer? Apr 23 11:23:38 Because you might want to load different resources based on configuration, because you might want to do different initialization based on configuration Apr 23 11:24:09 That's a poor way to go about it, if that's the case. Apr 23 11:24:15 right, but I would've thought that'd be a reason to *override* the default method of changing screen orientation, not *be* the default behaviour Apr 23 11:24:23 ^ Apr 23 11:24:43 _^ Apr 23 11:24:45 -1 Apr 23 11:24:54 ...? Apr 23 11:25:05 He doesn't agree. Apr 23 11:25:07 It's a VERY common usecase to have different resources based on configuration Apr 23 11:25:11 ah Apr 23 11:25:21 It's much less common to simply ignore configuration changes Apr 23 11:25:21 well, true Apr 23 11:25:37 alright, I'll go with that. Apr 23 11:26:06 Most people who ignore configuration changes are doing it wrong Apr 23 11:26:09 thanks... it's just not intuitive, at first glance... particularly when your first app is a browser that redraws itself nicely in any orientation :p Apr 23 11:26:13 And will eventually end up wondering why something doesn't work Apr 23 11:26:26 well, I'm sure I'll do *that* Apr 23 11:27:22 There are quite a few questions on stackoverflow on why android doesn't load layout-land/-port when they change orientation, but only when the app is first started Apr 23 11:27:30 nobody knows about the ActionBar items width ? Apr 23 11:29:21 i have the source checked out. I will look Apr 23 11:29:32 Has anyone here had any experience with sony's smart extensions api? Apr 23 11:30:12 What does: "Dalvik format failed: Unable to execute dex: GC overhead limit exceeded" means, I just included some large jars :) ? Apr 23 11:31:05 Strange, http://developer.android.com/reference/android/os/Build.html#TAGS is giving me "release-keys" on an Eclipse debug build... Apr 23 11:32:22 cyrilmottier: The problem is irssi does not support notifications. Apr 23 11:32:28 uru, have you show on the sony mobile developer site for more informations? Apr 23 11:33:34 cyrilmottier: is this the link that you suggested? http://developer.android.com/training/improving-layouts/smooth-scrolling.html Apr 23 11:34:03 gnu_d: You probably use too many methods Apr 23 11:34:10 uru: i've got a Sony Live View coming in the mail so just wait :) Apr 23 11:34:11 MarcAurelio: I checked but there's not much info on what I am looking for or at all. The API is not too well explained and I am having trouble getting the app to register with the liveware extension manger and I can't see why as my code is near identical to the sample code Apr 23 11:34:18 royale1223: No I asked what are your paths used for Apr 23 11:34:32 readme: Awesome! We can struggle together with it XP Apr 23 11:34:35 and I suggested few optimizations that readme posted back Apr 23 11:34:42 uru: lol struggle. i will pwn it Apr 23 11:34:50 haha :D Apr 23 11:34:50 SimonVT: I haven't, I just made an instance of one library, and then called some method, but 3 jar libraries, pretty large are included. Apr 23 11:35:03 gnu_d: Yeah, try proguarding or something Apr 23 11:35:18 There's a max of 2^16 methods Apr 23 11:35:25 Including those you call in the framework Apr 23 11:36:03 uru: actually i've read a lot of reviews saying bluetooth is flaky Apr 23 11:36:05 ;) Apr 23 11:36:17 ok, found the solution: last answer here: http://stackoverflow.com/questions/4461407/help-with-a-custom-view-attributes-inside-a-android-library-project Apr 23 11:36:34 btw: my proportional layout wasn't soooo hard to implement in the end :D Apr 23 11:36:56 http://pastesite.com/34903 Apr 23 11:37:04 snippet to illustrate it,, Apr 23 11:37:14 readme: I have had no problem at all with the bluetooth. (with sgs2) The only thing is if watch and phone get disconnected (but only if they are both on to begin with) I have to set the phone to show as visible before the watch reconnects. But if I turn the phone on and the watch is on it connects fine Apr 23 11:37:31 the layout takes the measurement from the first child and all other children can specify proportional mesurements for left top right and bottom Apr 23 11:38:02 i'll check with my bosses whether i can open source the sucker :D Apr 23 11:38:09 ok, lunch time... Apr 23 11:38:19 uru: oh, you have to make the phone discoverable? Apr 23 11:38:30 cyrilmottier: Used for displaying in listview Apr 23 11:38:36 readme: Yea, but only if the phone is already on Apr 23 11:38:39 I would have preferred that the liveview be the discoverable device. Apr 23 11:38:49 Oh well. Apr 23 11:39:04 royale1223: so you load images from your SDcard ? Apr 23 11:39:24 i worked extensively with some bluetooth sensors. the biggest pain was just getting them to connect. Apr 23 11:39:27 The smart watch only becomes discoverable when it's looking for a connection, so might be me being impatient Apr 23 11:40:06 cyrilmottier: no, from res Apr 23 11:41:36 cyrilmottier: I read some filesizes from sdcard though, and they show up in ListView, could that be the problem? Apr 23 11:41:51 readme: I don't really have any android/phone dev experience at all. The most complex thing I have coded is a bill tip calculator for a uni assignment. It did not really cover development in any great detail Apr 23 11:42:00 royale1223: if you are doing it in the main Thread, yes Apr 23 11:42:15 uru: thats fine, you will make it Apr 23 11:42:52 sorry Apr 23 11:42:59 cyrilmottier: let me confirm that, gimme a sec Apr 23 11:43:10 uru: you have an idea for a good liveview app though, I am guessing? Apr 23 11:43:18 readme: Yea, I have a strong java background and love programming so I am sure I'll do ok :) Are there any books you could recommend? Apr 23 11:43:23 readme: I do have a couple :) Apr 23 11:43:26 my liveview is in ft worth right now Apr 23 11:43:37 the apress books and commonsware's books are good Apr 23 11:43:45 Thanks :) Apr 23 11:43:48 but i rely mostly on the documentation and just reading sample projects Apr 23 11:43:56 of which commonsware has a lot Apr 23 11:44:31 The docs and things are good but I just need some good tutorials to get the hang of it. I need something I can code along with rather than just reading a wall of text Apr 23 11:45:36 https://github.com/commonsguy/cw-android Apr 23 11:45:38 SimonVT: Is there any way to load them by another way so they want load all at once ? Apr 23 11:46:33 gnu_d: You might also just be running out of memory, I don't know Apr 23 11:46:45 SimonVT: 8 gb of ram ? Apr 23 11:46:53 vm heap Apr 23 11:47:07 readme: Thanks. Those are a great help :) Apr 23 11:48:45 SimonVT: ok, I set the vm max heap to 1gb. Apr 23 11:51:05 I'm using android.net.NetworkInfo wifi = connec.getNetworkInfo(ConnectivityManager.TYPE_WIFI); and android.net.NetworkInfo mobile = connec.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); for inet connection an i get sometimes wrong results what could i do ? Apr 23 12:15:51 this just in: adobe to offer fair prices for all of their products. Apr 23 12:17:21 <`z> oh really Apr 23 12:17:22 <`z> :| Apr 23 12:18:39 http://goo.gl/VQbVO 50/mo for the whole package, and you can suspend it if you're not using it, i think. Apr 23 12:26:13 grr, I'm tempted to buy xperia mini pro Apr 23 12:26:34 grrr! Apr 23 12:30:58 Zharf: why buy it when you can try it free for 30 days Apr 23 12:31:06 it is on the list, right Apr 23 12:31:25 readme, I'm not in the US Apr 23 12:31:38 oh, sorry. I didn't look that closely at the fine print Apr 23 12:32:00 international shipping and customs and stuff would be my responsibility Apr 23 12:32:09 seeing as how I saw "free devices" I basically just clicked as fast as I could, but stupidly ordered a sony liveview instead of an xperia Apr 23 12:32:14 and it's ~190€ Apr 23 12:32:28 the liveview was only ~40, i should of just bought one Apr 23 12:32:36 I mean, buying the device would be 190€ :p Apr 23 12:33:58 oh, and xperia mini pro isn't on the list apparently :) Apr 23 12:43:09 mini pro does look like a good choice Apr 23 12:46:03 readme: I have a smartwatch, not a liveview Apr 23 12:48:28 readme, I think so too, I'm just really bad at buying stuff Apr 23 12:48:34 takes me months to make the decision Apr 23 12:48:36 usually :p Apr 23 12:48:40 uru: oh, awesome. Apr 23 12:48:51 uru: the api is probably the same. Apr 23 12:49:11 I just found out that munich city surfing is a thing, because of sony's marketing Apr 23 12:49:38 readme: I would think they are similar, they don't seem to share an api though Apr 23 12:50:04 Just bugs me that the example code works but when I take that code and start to do things with it the app no longer registers Apr 23 12:50:22 ah, you're right. the sdk is different. Apr 23 12:50:44 smartwatch price is nice Apr 23 12:50:51 I may get one Apr 23 12:50:54 There are examples and some documentation but it's not that complete and I can't find anything that can help Apr 23 12:51:11 There's not many apps for it yet but I am working on that :3 Apr 23 12:51:58 good opportunity. Apr 23 12:52:37 The most annoying thing is that media controls go to the default media player (which I can't get rid of) instead of my downloaded one Apr 23 12:59:27 * sickmind2x|AFK is away ($ı©kmınÐ) Apr 23 13:03:36 cd Apr 23 13:03:39 erp Apr 23 13:03:50 hello, if I wanted to make an app that stored information on our servers about the user so they could access our site and our app and it all be sync'd, should I use in app external SQL or something or http POST/GET requests? Apr 23 13:21:21 my widget is working on 2.1 but not showing on 4 android what could i check Apr 23 13:22:46 I want to wait until a message was handled. I have just call message.wait(); after sendMessage(message)? Apr 23 13:40:33 Hmm... best way to maintain soft-keyboard onscreen + focus after a rotation, anyone? Apr 23 13:47:26 hi Apr 23 13:47:47 i have something like this : String[][] FRAZA= { {"foo1","bar3"}, {"foo2","bar1"}, {"foo3","bar4"}, {"foo4","bar3"} }; and i want to sort it by value of bar-s --- how to do that ? Apr 23 13:50:45 kselos: you ask in #java because this is a java question, not an Android question. Apr 23 13:51:58 kselos: try a Mexican Jumping Sort Apr 23 13:54:31 Just don't tell them you're going to run the sort code on android Apr 23 13:54:34 they'll flip out on you. Apr 23 13:54:39 haha Apr 23 13:54:50 They will tell you to go #android-dev Apr 23 13:55:00 and more like "FUCK OFF!!!!" Apr 23 13:55:04 Lol. Apr 23 13:55:51 I wonder what would happen if I Googled: Sort Array Java. Apr 23 13:56:17 Sure as hell wont give me the exact code. Apr 23 13:56:30 top result is api doc. looks like for that you'd implement a comparator. Apr 23 13:56:45 right, except he's got a 2D array and wants to sort based on a particular element Apr 23 13:56:55 rather than say "Make a Tuple class, implement comparator....." Apr 23 13:56:59 I just told him to fuck off to #java Apr 23 13:57:01 he could instead have List right Apr 23 13:57:07 that would make it a lot easier Apr 23 13:57:20 readme that's way to confusing. Apr 23 13:57:24 A list inside a list? Apr 23 13:57:26 yo dawg Apr 23 13:57:29 i heard you liked lists Apr 23 13:57:31 that's not a list in a list yo Apr 23 13:57:33 Lol. Apr 23 13:57:38 Array inside a list. Apr 23 13:57:43 this is List Damnnn Apr 23 13:57:53 Inception. Apr 23 13:57:56 so I made a reference to a list subclass inside of your list subclass Apr 23 13:58:03 so you can traverse your linked list in O(n) time Apr 23 13:58:04 http://inception.davepedu.com/ Apr 23 13:58:25 JoeTheGuest: with a List he can use Collections.sort Apr 23 13:59:10 So I google sort multidimensional array java and this was the first responce. http://stackoverflow.com/questions/4907683/sort-a-two-dimensional-array-based-on-one-column Apr 23 13:59:17 What does android:stretchColumns actually do? I find the Android development website slightly ambiguous Apr 23 13:59:30 Can someone put it in layman terms? Apr 23 13:59:48 JoeTheGuest: nice Apr 23 13:59:56 Someone needs to bring an eggdrop bot in here that responds to every single question being asked with "GOOGLE IT!" Apr 23 14:00:11 My app is getting onDraw() calls very frequently, but I dont know from where it comes. There are no invalidate calls. Any ideas? Apr 23 14:00:18 You will fail in life if you can't use google to find a ismple answer. Apr 23 14:00:28 JoeTheGuest: i thought about that in the past few hours, except instead of an eggdrop I want to write a script that scrapes important keywords and pipes them into stackoverflow Apr 23 14:00:38 then just suggests result #! Apr 23 14:00:40 Lol. Apr 23 14:00:41 #1* Apr 23 14:00:56 Hell, if not for google I wouldn't know Java/Some C/C++, PHP, HTML,.... Apr 23 14:01:01 a good start would be to make an index of all the class names and java keywords Apr 23 14:01:13 and a list of interrogative words Apr 23 14:01:34 if the line contains both an interrogative word and a word from the class names/java keywords, then search stackoverflow and display first result Apr 23 14:02:24 then we need support to answer the people who come in and say "HI, I wanna develop for android, but I'd rather talk to you guys about it and never do it" Apr 23 14:02:38 Wow. There is nothing good on TV at 7 AM Apr 23 14:02:41 Can someone give me a link for good android 4.0 video tutorials? Apr 23 14:03:02 juria_roberts Could I suggest youtube.com? Apr 23 14:04:23 mhmm, there are actually some good ones. Apr 23 14:05:02 but not sure about 4.0 Apr 23 14:05:13 seems there are false positives, because people use the number 4 for things other than 4.0 Apr 23 14:05:28 fornext: your "app" isn't specific. Do you mean a particular view? is it only that view, or is it all views? Apr 23 14:05:30 Maybe... ICS Apr 23 14:05:46 JoeTheGuest: whats ICS? Apr 23 14:05:48 I get frustrated when watching videos ... so inefficient to wait for code examples and instructions :) Apr 23 14:05:49 Do people not know how to use keywords? Apr 23 14:05:51 JoeTheGuest: nah, most of the results seem to be made by modders Apr 23 14:05:52 is there an scripting layer for android? Apr 23 14:05:53 ohh sorry ice cream sandwich Apr 23 14:06:02 lua or python Apr 23 14:06:03 juria_roberts ICS = Ice Cream Sandwich Aka Android 4.0 Apr 23 14:06:06 sllide: there's SLA, but it may or may not be what you want. Apr 23 14:06:22 You can write bash script and just run it. Apr 23 14:06:22 lov, what is SLA? Apr 23 14:06:28 JoeTheGuest: there appear to be no good 4.0 tutorials. Can you find some? Apr 23 14:06:31 sllide: lmgtfy.com Apr 23 14:06:35 .. Apr 23 14:06:36 because if there's a market for them, I may make some. Apr 23 14:06:39 readme what am I looking for. Apr 23 14:06:43 kay Apr 23 14:06:55 readme what am I looking for? Apr 23 14:06:55 JoeTheGuest: find me a video tutorial on making a tabbed UI with the action bar and fragments Apr 23 14:07:06 something I was thinking about making a tutorial on Apr 23 14:07:09 sllide: http://code.google.com/p/android-scripting/ Apr 23 14:07:16 a video one, for the illiterate Apr 23 14:07:18 http://thenewboston.org/list.php?cat=6 readme Apr 23 14:07:27 Ok i dont know android at all whats the best place to start learning it?I want to learn android ice cream sandwich Apr 23 14:07:34 juria_roberts: d.android.com Apr 23 14:07:42 JoeTheGuest: that doesn't have a single tutorial involving fragments Apr 23 14:07:43 they're old Apr 23 14:07:47 juria_roberts: do you know java? yes/no Apr 23 14:07:47 lov, thanks Apr 23 14:07:53 juria_roberts: if no, learn java, then android. Apr 23 14:07:59 lov: i know java Apr 23 14:08:01 http://www.youtube.com/watch?v=-K7NQiIPVgE readme Apr 23 14:08:05 then go to d.android.com Apr 23 14:08:13 sllide: yw Apr 23 14:08:15 JoeTheGuest: low quality Apr 23 14:08:16 lov: but dev guide seems confusing Apr 23 14:08:31 it starts in the middle of coding with "It's a fragment, look!" Apr 23 14:08:34 and that's abou tit. Apr 23 14:08:40 juria_roberts: ..... and? Apr 23 14:08:46 I think I will make some tutorials. Apr 23 14:08:51 juria_roberts: http://developer.android.com/sdk/index.html Apr 23 14:08:52 download Apr 23 14:08:53 install Apr 23 14:08:55 lov: i dunno where to begin Apr 23 14:09:00 anyway, I won't make good ones sitting here on irc. Apr 23 14:09:03 readme just show them the API docs/examples. Apr 23 14:09:07 Tutorial right there. Apr 23 14:09:11 juria_roberts: http://developer.android.com/training/index.html Apr 23 14:09:12 there. Apr 23 14:09:27 in particular http://developer.android.com/training/basics/firstapp/index.html Apr 23 14:09:31 lov: tanks Apr 23 14:09:49 lov: tats exactly what i needed Apr 23 14:13:06 also, how does kernel development work on android? Apr 23 14:13:16 i mean a kernel from scratch Apr 23 14:14:18 sllide: start here http://source.android.com/source/building-kernels.html Apr 23 14:14:38 lov, thanks again Apr 23 14:19:41 yw Apr 23 14:20:30 lov, I made a testapp and see, that it is not a problem of my app. But I ask me, why onDraw() is called in a high frequenz. Apr 23 14:21:08 ... Apr 23 14:21:17 fornext: you answer my questions, and I'll answer yours. Apr 23 14:21:29 there are many possible reasons that onDraw is called frequently! Apr 23 14:21:34 Are you: Using a GLSurfaceView? Apr 23 14:21:41 Are you: Constantly calling invalidate somewhere by accident? Apr 23 14:21:59 Are you: rotating the device, having the app be recreated, and then calling that "frequent" ? Apr 23 14:22:10 onDraw is going to be called as often as its told to Apr 23 14:22:20 instead of telling me "Hay my app si teh broke HELP ME WITH THE DROIDS" Apr 23 14:22:28 why don't you give me some information to actually help you figure out your problem Apr 23 14:23:41 How do I set the developer id for google play? Apr 23 14:24:03 poorly, it seems. Apr 23 14:24:40 I assume you only get one after publishing an app? Apr 23 14:24:41 wat Apr 23 14:24:46 developer id? Apr 23 14:24:48 what are you talking about Apr 23 14:25:04 e.g. https://play.google.com/store/apps/developer?id=OMGWAT Apr 23 14:25:12 yo why does google keep emialing me about a job Apr 23 14:27:33 luv, was my fault. Apr 23 14:28:24 How do those unlock key apps work to upgrade free apps? Apr 23 14:28:57 lov, i dont think thats what i need Apr 23 14:29:01 luv, to see when my View is redrawn, I put in a setBackground(). But this was very silly, cause, setBackground is initiating a onDraw(). Apr 23 14:29:14 i actually mean starting from scratch, no base code Apr 23 14:29:19 uh... Apr 23 14:29:24 kernel.org? :X Apr 23 14:29:29 you know what a kernel IS, right? Apr 23 14:29:32 yes Apr 23 14:29:46 if you'd really like to make your own kernel from scratch, you probably shouldn't be asking me for advice. Apr 23 14:30:22 lov, well i wrote a simple kernel on x86 but i want to fool around with the arm processor Apr 23 14:30:36 sllide: fair enough, but you might want to just buy a gumstix or something Apr 23 14:30:53 the kernel controls getting the device into a state where it can be booted; if you mess that up you've bricked the phone. Apr 23 14:31:01 thats true.. Apr 23 14:31:04 no ifs, ands, or buts. Apr 23 14:31:10 lov, ill go for a raspberry Apr 23 14:38:07 sounds good. Apr 23 14:38:33 what just happend? I got kicked for asking how I can implement an unlock key for my free app? Apr 23 14:39:53 code1: you phrased your question badly Apr 23 14:40:03 I making a free app but looking on implementing paid upgrade options, and asked how the unlock apps work that I see on Google Play. Apr 23 14:40:30 oh. Apr 23 14:40:38 sorry, that came across as "how do I pirate apps" Apr 23 14:40:40 it sounded like you were asking how to get free access to paid apps Apr 23 14:41:19 to answer your question, http://developer.android.com/guide/market/billing/index.html Apr 23 14:42:01 ok fair enough but kicking without warning or asking was a bit off. I've been on here a number of times asking development questions! Apr 23 14:42:21 I'm on a trolling hair trigger lately Apr 23 14:42:26 I'm deeply sorry Apr 23 14:42:40 yeah I can see :p - no worries! Apr 23 14:44:10 * Jug6ernaut considers lov the #android-dev forman Apr 23 14:44:59 So do I just create a seperate (unlock) app that sets a prefernce flag and then check that flag in my main app to unlock certain features? Apr 23 14:45:41 you could. Apr 23 14:45:44 or you could use in-app billing. Apr 23 14:45:56 code1 dont mak ea separate app Apr 23 14:46:04 in-app billing will make everything a lot cleaner Apr 23 14:46:32 Ok so forget about using a seperate paid unlock app and just do it all from within the main app Apr 23 14:47:03 yes, using in-app billing ( Apr 23 14:47:06 http://developer.android.com/guide/market/billing/index.html Apr 23 14:49:49 This is an example of what I meant: https://play.google.com/store/apps/details?id=com.dataviz.roadsynckey1 Apr 23 14:49:57 it seems a lot of devs opt for this route Apr 23 14:50:47 mostly because in-app billing wasn't available Apr 23 14:50:54 it's up to you; you can go the multiple app route if you really want to Apr 23 14:51:05 it involves having to communicate between and authenticate your apps Apr 23 14:51:21 if you haven't actually launched your app yet, you should set the userid now; you can't change it after it's been installed Apr 23 14:51:51 by which I mean http://developer.android.com/guide/topics/manifest/manifest-element.html#uid Apr 23 14:52:14 if multiple apps have the same uid and are signed with the same key, trust becomes much easier Apr 23 14:52:53 ok thanks. Should I set the same uid for related apps only? Apr 23 14:54:04 btw in-app billing sound like the better option. Apr 23 14:54:08 hi all Apr 23 14:54:35 I'm kind of stuck trying to figure out how I can send files from my desktop to the phone in a manner that the phone can access them right away. Apr 23 14:55:22 The simplest thing would be to let the computer mount the SD card as generic USB storage -- but then as far as I know the Android cannot access it. Apr 23 14:55:24 i have an image 640x960 pixel at 300dpi, i would produce the same image for mdpi (160dpi), is sufficient to reduce the dpi to 160 ? Apr 23 14:55:44 is there a general Java channel on freenode? Apr 23 14:55:55 ##java? Apr 23 14:56:08 sweet, thanks Apr 23 14:57:13 guys , I got a question. Apr 23 14:57:49 Can I make an Access database (for example) and use it in my android APP ? to add and delete things ... etc Apr 23 14:57:56 Oof. Apr 23 14:58:12 luci1093: I wonder if Access can work with sqlite? Probably it can. Apr 23 14:58:31 it's not necesariy with access Apr 23 14:58:57 luci1093: Well, my point is that if you can get Access to work with a sqlite DB, then the Android can easily work with that. Apr 23 14:59:06 but can I make an visual database ... like a file ... and then use it with the android app ? Apr 23 14:59:09 Looks like it requires an external ODBC application - http://sqlite.awardspace.info/syntax/sqliteodbc.htm Apr 23 14:59:51 I mean... Apr 23 15:00:07 if I can make an sql database just like the Access one Apr 23 15:00:22 code11: inapp billing really is the better option; you should do that instead of having multiple apps. Apr 23 15:00:23 to edit it the same way ... visually , and then use it in my app Apr 23 15:00:38 luci1093: uh.... Apr 23 15:00:43 luci1093: Did you look at that URL? Those steps don't look too bad. Apr 23 15:00:50 I have a series of images inside a leanear (horz) layout. I'd like to include a caption with these images, is this possible? Apr 23 15:00:54 luci1093: do you know what sqlite is? Apr 23 15:01:07 lov: can we move to -dev-dev now? :) Apr 23 15:01:09 luci1093: or JDBC or ODBC? if you don't, the short answer "no, this is not possible" Apr 23 15:01:10 luci1093: But I would understand if you wouldn't want to make your users have to do that, if you're trying to come up with a solution for poeple other than yourself. Apr 23 15:01:12 canadiancow|work: yes Apr 23 15:01:19 to be clear, 4 images will have 4 captions Apr 23 15:02:06 canadiancow|work: s/-dev-dev/-yo-dawg/ Apr 23 15:02:18 SimonVT, you say that, but... Apr 23 15:02:21 we need a new -dev Apr 23 15:02:34 nah, we're just jaded is all Apr 23 15:02:36 We got one Apr 23 15:02:41 g+ messenger Apr 23 15:02:57 I'm actually pretty new to android , I've been studying it for qute a while , but I hate databases -.- . I know they are very important and that's why I'm trying to find an easyer way to access it and set some relations between the tables ... Apr 23 15:03:15 ... Apr 23 15:03:18 luci1093: the answer is "no" Apr 23 15:03:28 lol Apr 23 15:03:30 if you don't know how to translate between an access format and sqlite3 format, no. Apr 23 15:03:37 don't forget, access is itself a type of database Apr 23 15:03:41 sqlite3 is a type of database Apr 23 15:03:42 I know Apr 23 15:03:51 there are probably visual frontends to sqlite3 Apr 23 15:04:01 What is the name for the storage device that is not the SD card? Apr 23 15:04:01 but you should learn what databases ARE and WHY they're important, before you use them. Apr 23 15:04:15 rking: external-but-not-really-external storage Apr 23 15:04:17 i have an image 640x960 pixel at 300dpi, i would produce the same image for mdpi (160dpi), is sufficient to reduce the dpi to 160 ? Apr 23 15:04:17 rking: there's no real name. Apr 23 15:04:32 lov: That's a good point -- probably Access is the wrong tool for this. Surely there are 100s of sqlite tools... web-based, desktop-based, command-line-based, etc. Apr 23 15:04:34 ech0s7: no, you need to change the actual image dimensions. Apr 23 15:04:42 lov: Oh, that's unfortunate. =\ Names of things are good. Apr 23 15:04:45 rking: I'm sure there are, you're more than welcome to look for them. Apr 23 15:04:54 rking: the problem is that the manufacturers just kind of started doing this Apr 23 15:04:55 lov, resizing to 160dpi i get an image of 341x512 pixel Apr 23 15:04:58 I pretty much got that, my father explained me about databases (and he's been working with them in SQL for many years) .... it's just that he doesn't know android to help me lol Apr 23 15:05:14 luci1093: The question is, why does it have to be Access? Apr 23 15:05:32 rking: but access has such nice pretty pictures! Apr 23 15:05:44 I don't want to futz around with TEXT, no sir! Apr 23 15:05:46 it doesnt .... it just looked (for me at least) a bit easyer .... Apr 23 15:05:48 I want to drag and drop my database! Apr 23 15:05:50 We can get you pretty pictures, surely. Apr 23 15:06:10 luci1093: Seriously. Look at this list: http://www.sqlite.org/cvstrac/wiki?p=ManagementTools Apr 23 15:06:45 I'm sure there are many that are actually better than Access. Apr 23 15:07:32 lov, resizing to 160dpi i get an image of 341x512 pixel Apr 23 15:09:50 I have 3 activities in the stack A B C, and C is in the current view, and I want to push A now, but android will not instantiate a new activity instead it will try to instantiate B and then A and the application context is also gone too. Apr 23 15:10:02 I'm using intent and startActivity Apr 23 15:11:39 pen: I'm new to this -- what do you mean by them being a stack? Is that a particular way you configure activities? Apr 23 15:12:10 rking: it's in the dev guide, activities are organized in a stack fashion, so the top most will be popped if you hit the back button on the phone Apr 23 15:12:20 pen: Aha, thanks. Apr 23 15:13:18 anyone could help me with this? I'm confused. because I followed what the guide said but it is not doing what it is suppose to do Apr 23 15:21:44 guys , from where you learned android ? from the android dev site ? ...or somewhere else ? Apr 23 15:24:30 Hello Apr 23 15:24:33 Anyone else notice a bug when switching editing configs in the Graphical Layout editor in eclipse, that the correct UI does not show unless you twiddle the "portrait/landscape" spinner, and instead a big blue box that says "TAB1" is shown? Apr 23 15:25:14 could someone tell me how to develop a tcp connection oriented application? Apr 23 15:25:22 android(java) Apr 23 15:26:05 i have an image 640x960 pixel at 300dpi, i would produce the same image for mdpi (160dpi), is sufficient to reduce the dpi to 160 ? Apr 23 15:30:23 ech0s7 try working in pixels not dpi Apr 23 15:30:50 AkhlD: that's kind of a vague request. Apr 23 15:31:04 :/ Apr 23 15:31:16 hook me up with a link to start with Apr 23 15:31:46 AkhlD: http://developer.android.com/reference/java/net/package-summary.html Apr 23 15:31:50 i'm about to develop some android application as my uni project Apr 23 15:31:53 anyone? Apr 23 15:31:56 You literally asked "hey guys how do I make an app using the internet" Apr 23 15:32:01 +1 Apr 23 15:32:02 I think it is a bug Apr 23 15:32:03 xorgate, yes, but for example if i would produce an image for splash screen that supports multiple screens (ldpi=120dpi, mdpi=160dpi, hdpi=240dpi), how many pixels the image should be? Apr 23 15:32:04 it's kind of OPEN ENDED. Apr 23 15:32:11 lol Apr 23 15:32:19 <--- android noob Apr 23 15:32:26 lov thanks :) Apr 23 15:32:30 for splash sreen i mean an image in full screen Apr 23 15:32:39 don't fucking use "oh lawl im new lawl" as an excuse Apr 23 15:32:47 lol Apr 23 15:33:03 anytime you write "lol" as part of an answer i read it as "disregard anything I say, I'm a moron" Apr 23 15:33:07 "lol". Apr 23 15:33:16 ech0s7, there is no answer to your question Apr 23 15:33:18 I'm a moron Apr 23 15:33:19 :/ Apr 23 15:33:20 density != screen size Apr 23 15:33:47 Just joking mate, lov thanks for the link, lemme start reading it :) Apr 23 15:33:48 density = potato size Apr 23 15:33:49 yes, but devices haven't the same screen size Apr 23 15:33:52 lol Apr 23 15:34:09 but screen size != density Apr 23 15:34:17 also, dont use a splash screen Apr 23 15:34:20 most annoying thing EVER Apr 23 15:34:24 unless you'r actually loading something Apr 23 15:34:29 a splash screen gives awesome branding Apr 23 15:34:29 in which case, stop doing so much work on a mobile device Apr 23 15:34:42 splash screen is a good way to make someone close the app before it's even open Apr 23 15:34:43 how are people going to know that you are facebooking unless your splash screen projects from their phone Apr 23 15:34:54 this is sort of an abstract question but if i have a set of urls that i want to access differently based on some device configuration (i.e. if it's debug release use the debug servers, production release us production servers etc etc) any suggestions for the best way to do that? Apr 23 15:34:57 lov, can i pm you? Apr 23 15:34:59 canadiancow|work: thats why you just start an asynctask that runs no matter what Apr 23 15:35:40 "you hit back? lol, startActivity anyway!" Apr 23 15:35:45 unfortunately I do not decide the specifications of the app Apr 23 15:36:00 ech0s7: that sounds like monkey talk Apr 23 15:36:05 do you love cheetos? Apr 23 15:36:08 tab and mountain dew? Apr 23 15:37:04 code monkey love mikedg Apr 23 15:38:20 Does anyone know of any good examples or tutorials on how to get the width and height of a view during run-time? Oh, and what's the point of having View.getWidth() and View.getHeight() if they never work??? lol Apr 23 15:38:37 AkhlD: ask in the channel, please. Apr 23 15:38:55 can i build a ircd with android? Apr 23 15:38:58 for* Apr 23 15:39:07 probably. no, we don't know how. Apr 23 15:39:28 lov, seriously? Apr 23 15:39:33 i think the answer to his question is "no" Apr 23 15:39:40 he can't build one Apr 23 15:39:41 technically it'd be possible. Apr 23 15:39:45 it'd just be a horrible idea Apr 23 15:39:50 you're missing my point Apr 23 15:40:04 dlaroche: they work? Apr 23 15:40:05 emphasis on the "i" Apr 23 15:40:07 i do that all the time Apr 23 15:40:07 can't they open incomin port? Apr 23 15:40:08 noob Apr 23 15:40:17 bird bar is built around getwidth and getHeight Apr 23 15:40:19 canadiancow|work: as long as everything is on the same network it'd work Apr 23 15:40:28 AkhlD: you could, the problem is forwarding that port to your network. Apr 23 15:40:37 mikedg: it always returns 0 at run-time for me Apr 23 15:40:41 guessed so Apr 23 15:40:42 AkhlD: generally you can't host anything on a mobile device because the incoming connection isn't exposed at the ISP level Apr 23 15:40:46 try adding +1 Apr 23 15:41:06 i wrote an ircd once Apr 23 15:41:08 so, i'd stick with irc client then Apr 23 15:41:11 it predates android Apr 23 15:41:21 i wrote kircd Apr 23 15:41:32 when are you calling getWidth? Apr 23 15:41:46 put a button in your activity and in onclick output getWidth Apr 23 15:42:02 onResume Apr 23 15:42:19 One more doubt, can i use this Pirc framework with an android java? Apr 23 15:42:51 no one knows what Pirc is Apr 23 15:42:52 so we dont know Apr 23 15:42:56 its an irc API package Apr 23 15:42:57 AkhlD: why the fuck are you asking us Apr 23 15:42:58 seriously Apr 23 15:42:59 why Apr 23 15:43:00 http://www.jibble.org/pircbot.php Apr 23 15:43:01 why are you asking us Apr 23 15:43:08 +1 Apr 23 15:43:09 i wanna build some application Apr 23 15:43:12 you seem to be under the impression that we give any shit what your college project is Apr 23 15:43:15 yes yes you can use them all Apr 23 15:43:21 as part of my uni porject Apr 23 15:43:24 use ALL the libs Apr 23 15:43:27 i wanna build a robot urmom to stick a dick into Apr 23 15:43:28 ok, AWESOME Apr 23 15:43:40 that doesn't explain why we know how every single package in the universe works Apr 23 15:43:43 :/ Apr 23 15:43:47 or why you're not literally doing 2 minutes of research first Apr 23 15:43:51 you're in university, yes? Apr 23 15:43:55 yes Apr 23 15:43:57 research is part of your general job description, yes? Apr 23 15:44:02 +1 Apr 23 15:44:03 nope Apr 23 15:44:03 sounds like he's in pooniversity Apr 23 15:44:06 ... Apr 23 15:44:07 he's just there for the tang Apr 23 15:44:08 maybe instead of being "hay guys how 2 android" Apr 23 15:44:10 what university is htis? Apr 23 15:44:11 you should figure out your project Apr 23 15:44:17 university of fakeville? Apr 23 15:44:25 AkhlD: you FAIL! Apr 23 15:44:28 F for you! Apr 23 15:44:37 +1 Apr 23 15:44:37 * AkhlD slaps AkhldsProfessor proffessor with a dildo Apr 23 15:44:42 shut up dildo Apr 23 15:45:07 he's not your dildo Apr 23 15:45:20 canadiancow|work: how do you know this? Apr 23 15:45:29 O.O Apr 23 15:45:41 um... ok im not 100% sure Apr 23 15:45:48 but...but... Apr 23 15:45:56 ok so REAL quesiton Apr 23 15:46:06 is there any reason that you can think of to require a wakelock for C2DM? Apr 23 15:46:12 (im reviewing some code) Apr 23 15:46:21 no, isn't the point of C2DM that you don't need one Apr 23 15:46:28 depends on what you mean Apr 23 15:46:40 acquiring the wakelock when you get the broadcast to do some work, yes, definitely Apr 23 15:46:40 this is a library that wraps C2Dm to make it "easier" Apr 23 15:46:50 the only owrk that's done is notifying something else Apr 23 15:46:51 as long as you release it properly Apr 23 15:47:12 right, but as soon as the onReceive returns the device could go right back to sleep. Apr 23 15:47:23 why does it need to be awake to do work? Apr 23 15:47:23 so you really ought to acquire a wakelock and pass it off to someone else Apr 23 15:48:19 the CPU does Apr 23 15:50:28 hello Apr 23 15:53:04 lov, if all you're doing is starting an activity or displaying a local notif or something though... ? Apr 23 15:53:38 canadiancow|work: obviously, it depends on the work being done... Apr 23 15:53:53 yea ok Apr 23 15:53:54 I can't seem to get traceview to open. when i try opening it, it opens a shell, runs a command and just ends… any thoughts? Apr 23 15:53:55 there is no gurantee the activity will fully start before the phone goes back to sleep Apr 23 15:53:55 and frankly I'd view his library with a tremendous degree of skepticism, because it sounds like it'll be WAY too easy to leak wakelocks Apr 23 15:54:05 heh Apr 23 15:54:27 well the rest of our app doesnt need a wakelock, so im very hesitant to add the permission just for c2dm, which, ITSELF, has no need for it Apr 23 15:56:18 canadiancow|work: have him refactor his code to only request and hand-off the wakelock if there's a permission for it given Apr 23 15:56:35 yea, im probably just going to rewrite some stuff :P Apr 23 15:56:37 also, make sure that there's some sort of really, really iron-clad contract/guarantee that the wakelock won't be leaked by an inept dev Apr 23 15:57:17 Can someone guide me though getting traceview to work? had it working before…not sure what changed... Apr 23 16:03:22 I want to cancel a particular reminder, I have the requestCode of the PendingIntent and this request code is also there in the intent passed as an extra? how can I do that? Apr 23 16:03:36 AlarmManager.cancel() will remove all the alarms. Apr 23 16:09:02 oldPending = PendingIntent.getService(context, oldRequestCode, mIntent, PendingIntent.FLAG_NO_CREATE); if(oldPending != null) alarmManager.cancel(oldPending); Apr 23 16:09:24 you need to create an pending intent to match the one you want to cancel Apr 23 16:12:03 c2tarun ^ Apr 23 16:12:44 does mInent need to be same as oldIntent passed? Apr 23 16:12:51 luxurymode, ^ Apr 23 16:13:24 by same I mean similar!! Apr 23 16:13:57 the docs say that it needs to be an intent that matches this one as defined by Intent.filterEquals Apr 23 16:14:16 so the action, data, type, class, and categories of the intent need to be the same Apr 23 16:14:45 so it doesnt need be the same object obviously, but the same meaningfully equivalent intent, i.e. an intent that describes the same thing Apr 23 16:16:19 hmm... this is lot of work :( it should have been just the oldRequestCode. Anyway, thanks Apr 23 16:18:59 no, that'd be a bad design decision…. you want to be able to describe with specificity which request you want canceled Apr 23 16:19:09 and not be limited by request codes Apr 23 16:19:21 its really pretty easy Apr 23 16:19:37 just make a new intent that's the same as the one you originally used to schedule an alarm Apr 23 16:20:08 yup :) Apr 23 16:31:30 luxurymode, it worked, thanks a lot :) Apr 23 16:39:29 badger badger badger badger... Apr 23 16:40:07 mushroom mushroom Apr 23 16:45:55 Hello... Apr 23 16:46:54 So to recap. Hi everyone. I wishes to develop android apps.. reading the developer.android tutorials and... if you have recommendations, please message me. Thank you very much. Apr 23 16:50:01 Mossa: d.android.com, that's my recommendation. Apr 23 16:50:32 And there are a lot of material there.. So let me dive into the mess of all things droid-y.. Apr 23 16:50:34 throwing kindle in the fire... Apr 23 16:51:25 you know what sucks? Apr 23 16:51:30 i bought an ebook through google play Apr 23 16:51:34 apparently it was part 1 of a 2 part book Apr 23 16:51:37 google doesnt sell part 2 Apr 23 16:51:42 ick. Apr 23 16:51:46 Mossa: android. not droid. Apr 23 16:51:51 so now i have kindle installed Apr 23 16:51:56 i was very tempted to just pirate teh book Apr 23 16:52:01 canadiancow|work: arrr Apr 23 16:53:28 For some reason i'm unable to run java apps, eventhough i've installed both the JRE and JDK Apr 23 16:53:35 Anyone knows how to solve this? Apr 23 16:53:39 psychuil: perhaps #java would be more help? :> Apr 23 16:53:53 lov, awesome idea, thanks :P Apr 23 16:54:35 .j ##ps3 Apr 23 16:54:51 lov, thanks Apr 23 16:56:06 hello all Apr 23 16:56:55 fuck ndk on windows is a pita Apr 23 16:58:51 hi all Apr 23 16:59:25 Hi to you both! Apr 23 17:00:55 I have 2 fragment and a button . Is it possible to change the ContentView at runtime ? Apr 23 17:01:33 is there anything in the googles terms of use agains using a gmail account for application support/feedback? Apr 23 17:01:47 no Apr 23 17:02:13 bc i have an email i used for such...and it got disabled :\ Apr 23 17:02:19 lol what Apr 23 17:02:27 no warning, just disabled? Apr 23 17:02:30 what reason did they give Apr 23 17:02:40 tried to log in today and got redirected to a "your account is disabled" page Apr 23 17:02:45 nope, non Apr 23 17:02:50 just said read terms of service Apr 23 17:03:14 it would make no sense to not let you use a gmail account for that. Apr 23 17:03:25 gah. Apr 23 17:03:36 how can i do a setText in a Fragment? Apr 23 17:03:45 readme yea idk lol, i emailed the "contact us" link provided but im not hoping for much Apr 23 17:03:52 iSeeDeadPixels: i assume you want to call it on a TextView? Apr 23 17:03:53 What's the language we use here? Apr 23 17:03:56 more over i have no idea what i did wrong Apr 23 17:03:57 English Apr 23 17:04:09 readme, for android apps.. Apr 23 17:04:18 maybe if you spent 5 seconds on d.android.com you'd know Apr 23 17:05:04 Installing stuff.. Apr 23 17:05:16 Kindle Fire compatibility: Your app cannot require a gyroscope, camera, WAN module, Bluetooth, microphone, GPS, or micro-SD to function <-- no GPS, are you kidding me? Apr 23 17:06:01 basically all the good parts of android, gone. Apr 23 17:06:07 hmm, is Amazon shipping Fires outside of US yet? Apr 23 17:06:46 I'm trying to figure out how to get Kindle compliant since my app doesn't *require* GPS to function, can use network location instead but it does ask for GPS permissions so Kindle will be filtered out. Apr 23 17:07:00 To Do Mapr did get approved for the Amazon AppStore as of this morning though Apr 23 17:07:51 hmm, doesn't that mean that you can ask for GPS permissions, but they have to be optional Apr 23 17:07:58 QubeZ: why? Apr 23 17:08:22 I thought that they will see GPS permissions in my manifest then deny the Kindle Fire compatibility Apr 23 17:08:25 ? Apr 23 17:08:32 QubeZ: only if you mark GPS as mandatory Apr 23 17:08:44 how do you mark it mandatory vs optional? Apr 23 17:08:51 manifest simply just asks for the permissions Apr 23 17:09:33 no, manifest also claims what is mandatory by adding Apr 23 17:10:00 so how do I set GPS optional? Apr 23 17:10:48 by going to d.android.com and reading about . Apr 23 17:10:51 required="no" Apr 23 17:11:19 android:required="false" isn't it? Apr 23 17:11:46 but yea, request the permission, and request the feautre, but set hte feature's required attribute to false Apr 23 17:12:01 Providing they even bother to filter devices based on it :p Apr 23 17:12:13 Mavrik: I think you mean Apr 23 17:12:20 no. Apr 23 17:12:37 SimonVT, the play store does, but the device has to be configured properly Apr 23 17:12:44 which is a big problem for custom ROMs Apr 23 17:12:47 canadiancow|work: Yes, the play store does Apr 23 17:12:52 yeah, and some devices Apr 23 17:12:54 amazon appstore on the other hand Apr 23 17:12:57 ah Apr 23 17:12:59 lol Apr 23 17:13:11 The two permissions I have for location-based is ACCESS_FINE_LOCATION (since it encompasses coarse and fine) Apr 23 17:13:13 Amazon already said they might choose to ignore any requirements you set in your manifest Apr 23 17:13:13 i wish the other ones would go die Apr 23 17:13:22 that's...ridiculous Apr 23 17:13:27 maybe i'll leave it until they actually deny me Apr 23 17:13:36 for now its on the appstore and avail for dl Apr 23 17:13:42 that's like ignoring minSdkVersion or something Apr 23 17:13:49 OH YOU REQUIRE A HARDWARE GPS? WELL TOO BAD Apr 23 17:14:02 In Logs when we swipe from left to right it goes to call, right to left message, how can we take this type of input? Apr 23 17:14:50 i dont require it... network location works just fine but how do I differentiate this in my manifest? Apr 23 17:14:53 c2tarun: maybe you'd want to try a ViewPager or a GestureDetector Apr 23 17:14:54 canadiancow|work: There are stories of devs who use manifest to filter out some device configurations, which amazon chose to ignore, and causing bad reviews (app simply didn't work on those devices) Apr 23 17:15:00 meaning, how do I state network locaiton required but GPS (fine) optional Apr 23 17:15:06 readme, thanks :) Apr 23 17:15:27 hi, i'm on arch linux and i keep getting an error with repo: File "/home/james/bin/repo", line 184 Apr 23 17:15:31 except OSError, e: Apr 23 17:15:33 ^ Apr 23 17:15:36 SyntaxError: invalid syntax Apr 23 17:16:35 yea SimonVT i think i read some of those Apr 23 17:16:41 Jimmothy: what version of python is your default? Apr 23 17:16:52 2 i think Apr 23 17:16:55 check Apr 23 17:18:02 Mavrik: would this be correct usage: http://pastebin.com/GS88Q7ds ? Apr 23 17:18:07 it may be 3.2 but it errors like mad Apr 23 17:18:12 i guess that could be it Apr 23 17:18:14 Jimmothy: that's the prob Apr 23 17:18:22 your default python should be 2.7 Apr 23 17:18:22 oh wait, nvm Apr 23 17:18:41 for python3 stuff, you should use virtualenv or something Apr 23 17:18:52 no idea why arch has it that way. that distro is nuts. Apr 23 17:19:38 yeah i'm not keen tbh. once my pc is fixed ill probably go back to debian. Apr 23 17:20:57 just go back to it now :) you are going to waste your time getting that stuff to work on arch. Apr 23 17:21:02 faster to just reinstall Apr 23 17:21:07 do you guys have any links/guides on creating a device vendor to use to compile AOSP with? Apr 23 17:21:23 i know but the source took donkeys to get ;[ Apr 23 17:21:46 might be worth tarring and putting on usb actually Apr 23 17:24:53 Anyone here use AIDE? I got my project to compile, but when I run it, I get a runtime exception of NoClassDefFoundError: ....R$string . I don't get this error when I install the APK built on my desktop. Any ideas of what I could check? I'm not sure why it wouldn't be able to find R.string. Apr 23 17:25:03 AIDE or AIDL Apr 23 17:25:23 AIDE, the Android IDE guy Apr 23 17:25:29 Clean project Apr 23 17:25:33 NoClassDef errors usually happen because something wasn't properly exported Apr 23 17:25:38 yeah, try clean and rebuild Apr 23 17:25:53 hello Apr 23 17:26:02 I get class not found in R once in a while, seems pretty random Apr 23 17:26:25 hmmm... fair enough Apr 23 17:26:43 I get a big "TAB1" when I change the configuration in the graphical layout editor instead of my expected layout Apr 23 17:26:52 until I flip the portrait/landscape spinner twice Apr 23 17:27:15 still trying to figure out if it's a genuine bug or my stale tools cause it Apr 23 17:27:28 reinstalled eclipse and adt and removed all my homedir dot-directories related to them Apr 23 17:27:34 just need to reinstall sdk next Apr 23 17:28:03 if I want to differenciate "types" of views I make up (like to differenciate between an OK button and a Cancel button), should I extend the Views so I can check my "made-up types" with instanceof, or is there some specific property I can freely set which is made for that purpose? Apr 23 17:28:23 nonono Apr 23 17:28:35 Eh, give them an id? Apr 23 17:28:40 ^ Apr 23 17:28:58 amcsi: you COULD do this but strongly consider whether you actually want to do this. Apr 23 17:29:02 id's are unique, that's not good Apr 23 17:29:03 there's theming you can do Apr 23 17:29:06 and styling Apr 23 17:29:20 hey all Apr 23 17:29:24 IDs don't have to be unique Apr 23 17:29:26 in css, I'd just use class names Apr 23 17:29:30 amcsi: that is already how android does buttons. they each get an id and you differentiate between which button was pressed using that id. Apr 23 17:29:49 your "class name" is R.id.button_foo Apr 23 17:30:03 readme: I think he was asking how to theme OK and Cancel to actually look different Apr 23 17:30:09 for bubbling reasons I want this Apr 23 17:30:14 I'm trying to do a basic animation in a view, so I'm drawing a frame every 50ms or so the problem I have is that when the update hasn't reached 50ms total (I don't draw) the screen is redrawn empty, anyway to not have it empty at all and simply show the last frame? Apr 23 17:30:23 lov: in which case inheritance is still not the answer, though Apr 23 17:30:36 styles/themes are Apr 23 17:32:19 imaging two columns, and a buch of buttons in each column. Each column represents its own information, and each button manipulates the information of the column it is in. I want to store in the column view certain data so I can differentiate that view from other views when bubbling up from the buttons to find the nearest column view so I'd find out which information I should manipulate Apr 23 17:32:44 er.... Apr 23 17:32:50 amcsi: consider using a listview and a listadapter? Apr 23 17:33:02 they aren't lists Apr 23 17:33:18 let me show you an html-css-javascript example Apr 23 17:33:27 anyone have an ide? Apr 23 17:33:31 idea* Apr 23 17:33:31 so you can visualize the situation better Apr 23 17:34:36 http://elmacucc.fw.hu/referencia/5.0.html Apr 23 17:34:58 you want that exact thing in android? Apr 23 17:35:16 here you type a number in a text input, then press one of the operation buttons to do the operation for the column it is in Apr 23 17:35:27 yea :D Apr 23 17:35:57 use a RelativeLayout, two TextViews, two EditText, and 8 buttons Apr 23 17:36:03 hello? Apr 23 17:36:09 so what needs to be done is that whenever a button is pressed, it should bubble up to the column so I can see whether the button was pressed in the first or second column Apr 23 17:37:29 and so that you would see my real problem: Apr 23 17:38:07 Ali1331 it appears something is cleaning the canvas then Apr 23 17:39:22 I need to bubble up to the nearest "something I make up" so I can let the handlers on the columns do their job. But commanding that I want to buble up to the nearest viewgroup with verticallayout isn't good, because there may be a verticallayout before I get to the actual main column Apr 23 17:39:41 bubble trouble Apr 23 17:39:53 so I want to be able to set certain custom attributes on my columns, such as "maincolumn", like as a string, somewhere Apr 23 17:40:06 well atm the only thing I've found to re-call the draw method is invalidate :p so its probably part of that, is there another way, I tried calling drawNow directly but it just crashes Apr 23 17:40:25 so I can specify that I'm looking for the nearest viewgroup with a custom attribute of "maincolumn" Apr 23 17:40:46 If a button is clicked, that button will consume your event Apr 23 17:43:51 yea Apr 23 17:43:57 and I'd bubble it upward Apr 23 17:47:13 atm my animation is just calling invalidate at the end of every run to get it called again, is there some way to setup a timer to call it, rather than spamming recursive calls? Apr 23 17:48:20 droiddraw is a long abandonded project, right? Apr 23 17:48:33 do any good alternative layout editors exist? Apr 23 17:48:34 droiddraw stopped being useful in 2009 Apr 23 17:48:36 ADT Apr 23 17:48:44 I mean other than ADT Apr 23 17:48:51 nothing that is anywhere near as good Apr 23 17:49:02 readme, yup Apr 23 17:49:08 do you actually use the drag/drop interface in ADT, canadiancow|work Apr 23 17:49:39 because I have to code everything in XML. I find it impossible. Apr 23 17:50:07 i prefer xml, but the drag and drop has proved useful too Apr 23 17:50:20 drag and drop is difficult for everything other than AbsoluteLayout Apr 23 17:50:23 from an implementation standpoint Apr 23 17:50:28 i guess LinearLayout wouldn't be badd Apr 23 17:51:07 yeah, I am trying now with one linearlayout and it isn't that hard Apr 23 17:51:11 lets try nesting one, though. Apr 23 17:51:32 no no, im saying from the create of the tool Apr 23 17:51:44 im surprised they have RelativeLayout working as well as it does Apr 23 17:52:33 just a question out of curiosity.. can i use any java library for my android apps? Apr 23 17:52:46 Is there a way to switch the root layout without editing xml? Apr 23 17:53:13 Mossa: not if it depends on java libraries that aren't part of android Apr 23 17:53:49 Ah I see there's View.setTag() and View.getTag(). Those are the ones I want. Apr 23 17:53:58 hmm.. so anything has to be derived from these Android libraries? What if it is xml and mailsystem stuff.. Apr 23 17:54:08 and internet protocol stuff.. Apr 23 17:54:17 readme, switching a ViewGroup with children is not something i'd trust any tool to do Apr 23 17:54:21 Mossa: not derived from Android libraries Apr 23 17:54:27 becuase layout params are different for the children based on their contianer Apr 23 17:54:42 Mossa: you just can't use any libraries that depend on other Java libraries that aren't included in Android Apr 23 17:54:53 Android doesn't have full Java standard library available Apr 23 17:55:10 Is it something that is "going" to happen any time "soon"? Apr 23 17:55:32 canadiancow|work: i personally wouldn't care too much either. but I think others would want it Apr 23 17:55:32 happen what? Apr 23 17:55:53 but how would it work? Apr 23 17:55:56 at least a visual indicator of what the root layout is Apr 23 17:56:02 oh Apr 23 17:56:07 dunno Apr 23 17:56:21 i only use the graphical interface to see what my layout looks like - not to edit it Apr 23 17:56:29 yeah, that is the way I use it too Apr 23 17:56:48 I'm just thinking about making a layout editor of my own. I think there's a market for it. Apr 23 17:57:18 Mavrik, make the android have all the java libraries.. Apr 23 17:57:30 Mossa: I don't think Google is ever planning that Apr 23 17:57:44 why not? what am I not grasping here? Apr 23 17:58:38 Eclipse question: I have no SDK Targets inside of Android Preferences.. what am I missing? my link to SDK location is C:\Program Files (x86)\Android\android-sdk Apr 23 17:58:47 readme, how can i change the textview in a fragment? Apr 23 17:58:48 :o Apr 23 17:59:03 iSeeDeadPixels: save a handle to the view you created in onCreateView Apr 23 17:59:24 Mossa: you need to run SDK Manager and download the SDK Platforms Apr 23 17:59:47 Mavrik, did that, I missed a \ in that path :( Apr 23 18:00:24 when loading a theme for the first time in ADT layout editor, I get a big orange rectangle at the top, and nothing else. Apr 23 18:00:29 reloading fixes it Apr 23 18:02:13 When I load a theme in the ADT lay.. oh wait :p Apr 23 18:02:31 SimonVT: intellij has a preview, right? Apr 23 18:02:37 Yea Apr 23 18:02:47 I found 2 bugs in intellij that made it unusable for me. Waiting for it to get fixed. Apr 23 18:02:48 Used it for 1 layout so far Apr 23 18:02:52 Super effective Apr 23 18:02:55 you just edit blind? Apr 23 18:03:02 and preview in the device? Apr 23 18:03:20 I haven't been able to make the damn layout editor work for I don't know how long. It's an annoyance that I have to test my layouts out on the emulator/device to see what things look like. Apr 23 18:03:23 Mostly I have an idea what I'm doing Apr 23 18:03:36 This was a relativelayout with 15 childs Apr 23 18:03:38 Had no idea Apr 23 18:03:45 But I'm getting the hang of it. Apr 23 18:04:06 SimonVT: when you have to make it look like someone's mockup, you really should have some sort of preview tool Apr 23 18:04:48 man I'm just going to make a preview tool that loads the XML right into the current activity Apr 23 18:04:51 like a live-device preview Apr 23 18:05:29 You should rather make actual live device previewing :p Apr 23 18:05:37 doing it now Apr 23 18:05:43 can't take it anymore. Apr 23 18:09:26 readme? Apr 23 18:10:02 hello Apr 23 18:10:16 if I have a question pertaining to android-webkit Apr 23 18:10:22 more like a bug Apr 23 18:10:27 can I post that here? Apr 23 18:17:21 you could, but you might be better off on b.android.com Apr 23 18:17:21 Okay, my android emulation opens a hundred cmd things whenever I run it. Apr 23 18:17:27 Mossa: just leave it alone. Apr 23 18:17:30 Also, the emulator takes forever to load. Apr 23 18:17:35 lov, ? Apr 23 18:17:39 belgianguy: what'choo talkin 'bout? Apr 23 18:18:34 lov, do you know how to do a setText on a textview in a fragment? Apr 23 18:19:34 textView.setText(...) Apr 23 18:20:04 SimonVT, not working :C findViewById is impossible in a fragment it seems. Apr 23 18:20:29 parent.findViewById(R.id.yourTextView) Apr 23 18:20:52 http://pastebin.com/VnCyqS77 Apr 23 18:21:28 You got your textview right there Apr 23 18:21:46 that errors.. Apr 23 18:21:56 NullPointerException Apr 23 18:21:58 or well, you didn't create any layout yet Apr 23 18:22:08 .. Apr 23 18:22:16 You're inflating your layout AFTER you try to find the view Apr 23 18:22:16 true Apr 23 18:22:21 didn't see it... Apr 23 18:22:36 but i can't issue anything after that return, can i? Apr 23 18:22:48 So don't return the layout until after you got your textview Apr 23 18:23:01 lol Apr 23 18:23:12 -.- Apr 23 18:24:30 so yeah, SimonVT, you can't run code after a return, right? Apr 23 18:24:38 Right Apr 23 18:24:48 so, what do i do then? :( Apr 23 18:24:53 20:22 So don't return the layout until after you got your textview Apr 23 18:25:03 yeah, but... Apr 23 18:25:05 >< Apr 23 18:25:15 what i got there is example code.. Apr 23 18:25:28 Do you need help keeping a reference to a returned value from a method? Apr 23 18:25:45 holy cock and balls, batman Apr 23 18:26:19 so uh, what do i exactly do? Apr 23 18:26:27 i feel so stupid. Apr 23 18:26:29 View v = inflater.inflate(...); TextView tv = v.findViewById(...); tv.setText(...); return v; Apr 23 18:27:01 Next time, understand what the code does rather than just copy examples Apr 23 18:29:16 caeserguy, someone told me about some odd behaviour in android-webkit Apr 23 18:29:33 and I was wondering who to verify this with Apr 23 18:29:53 I will never understand JNI Apr 23 18:30:04 so wht do we think about reto meiers new book Apr 23 18:31:01 I bet you that g00s will ask the same question within the next hour :p Apr 23 18:31:11 huh , wut Apr 23 18:31:17 SimonVT, thanx Apr 23 18:31:24 heh Apr 23 18:31:30 fuck, i hated when my first samsung had dead pixels Apr 23 18:31:33 Wait an hour and you'll see, g00s :p Apr 23 18:31:47 SimonVT, time for -dev-dev Apr 23 18:31:49 <.< Apr 23 18:31:51 >.> Apr 23 18:32:20 20:30 so wht do we think about reto meiers new book Apr 23 18:32:20 20:30 → g00s joined Apr 23 18:32:47 oh. the 2e was pretty authoritative, but had lots of typos Apr 23 18:33:07 if i had to choose 1 android book, that would be it (3e) although i have never seen it Apr 23 18:33:16 also, android in practive was very good Apr 23 18:33:19 (manning) Apr 23 18:33:23 the rest can be burned. next ! Apr 23 18:33:47 worth getting? Apr 23 18:34:06 i would think so Apr 23 18:34:16 unless you are simonvt Apr 23 18:34:20 not like i'm gonna pay for it anyway Apr 23 18:34:24 :| Apr 23 18:34:33 i'll get my boss to do it :3 Apr 23 18:34:34 I'm that pro! Apr 23 18:34:45 :trollface: Apr 23 18:37:38 erm Apr 23 18:37:44 where does one file bugs Apr 23 18:37:50 b.android.com Apr 23 18:37:56 thx Apr 23 18:40:09 well, roadblock 1 Apr 23 18:40:18 layouts are preprocessed at compile time Apr 23 18:40:33 Quantal Quetzal, may - wtf Apr 23 18:40:35 *man Apr 23 18:41:01 so in order to make my thing work, I neeed to either write my own layoutinflater, or find a way to do the same preprocessing to my XML that is done at build time. Apr 23 18:41:30 I think it would be easier to do the former Apr 23 18:41:34 thoughts Apr 23 18:41:36 ? Apr 23 18:41:46 you could use a metalanguage for it Apr 23 18:41:57 to make it faster Apr 23 18:42:02 I like that idea Apr 23 18:42:05 a DSL for layouts Apr 23 18:42:26 i remember seeing a tool on eclipse.org that can make awesome dls Apr 23 18:42:29 DSL* Apr 23 18:42:41 readme: why do you need to preprocess your layout? Apr 23 18:43:04 lov: i've got this crazy idea to make a live-layout previewer that lets you preview your work on the device without compiling and running your app Apr 23 18:43:31 .... good luck! :D Apr 23 18:43:37 yeah I didn't think it'd be easy, heh Apr 23 18:43:52 I like Snuffel's DSL idea though. I'm going to try it, and if I fail at least i played with a DSL. Apr 23 18:43:53 you're strongly encouraged to look at how attributes and such work on Android. Apr 23 18:44:01 along with the constructors for most views Apr 23 18:44:21 i've got the source checked out Apr 23 18:44:35 poked around a bit there before and I wrote a view with my own attributes in it once Apr 23 18:44:39 it was 1337TextView Apr 23 18:44:42 printed all the text in 1337 Apr 23 18:44:46 forgot what I did with it Apr 23 18:45:07 oh right, I deleted it because it was childish. Apr 23 18:45:13 You should totally offer all your apps in 1337 Apr 23 18:45:22 thats what I was thinking when I wrote it Apr 23 18:46:45 If a user type in a secret word in a TextEdit, is it possible that are some phones chaning the word? Apr 23 18:46:55 readme: xtext Apr 23 18:47:20 g00s: looking at it now. sure there's nothing more recent? Apr 23 18:47:44 readme: no, but i think the books around antlr make antlr more attractive to me Apr 23 18:48:06 i read the antlr ref quide, it was very good - language design patterns loows awesome, but i did not go into it deeply Apr 23 18:48:23 btw, there is a dsl for creating fragments and activities already :D Apr 23 18:48:44 but i never hear ofit, so maybe it was abandoned. the idea is, you specifiy the navigation structure and layout in this nice dsl Apr 23 18:48:48 and it cranked out code Apr 23 18:49:07 i would probably restrict it to just cranking out the xml and other resources; though Apr 23 18:49:41 i'll try them both and see Apr 23 18:52:40 :O http://www.h-online.com/open/news/item/US-Patent-Office-declares-Oracle-patent-valid-after-reexamination-1545901.html Apr 23 18:52:49 :( Apr 23 18:54:09 bummer, i hope apple doesn't abandon the 17" mbp. i was actually thinking of that size after using my 15", but not having to move it around much Apr 23 18:54:17 hello, anyone using maven and phonegap? Apr 23 18:54:39 in other news, apple is having supply issues with its 'retina' display, which means we won't see any android tablets with those any time soon likely Apr 23 18:55:18 Just gotta make sure you hold it right, then everything is retina Apr 23 18:55:59 17", so huge Apr 23 18:57:37 someone here use fragments ? I am trying to use them to have different layouts on tablet and mobiles. I'd like to use use the fragments fullscreen on mobile and have both in the table. Someone could suggest me how to do it ? Apr 23 18:58:07 so use different layouts to accomodate it Apr 23 18:58:43 pfn ok ... but the code ? in une case I have to replace the fragments in the other I do nothing Apr 23 18:58:47 Any idea how to shoot a Video on Android and Add a watermark to it ? Apr 23 18:58:58 http://developer.android.com/guide/topics/fundamentals/fragments.html#Example Apr 23 18:59:04 aLeSD, look at the honeycomb+ samples Apr 23 19:01:35 Is there a way to prevent androids localization from messing with my Strings? It's currently changing a dot to a punctuation like 0.000 to 0,000 Apr 23 19:02:31 chemfy: it just follows the standard for that locale Apr 23 19:03:04 or were you talking about a specific app? Apr 23 19:03:17 chemfy, you need to specify what you're using in order to give you alternatives Apr 23 19:03:21 does the emulator provides a way to simulate media key presses (play, pause, next) ? Apr 23 19:03:58 chemfy: I had that problem, I changed Locale to US to do all of the calculations on my doubles then converted back to default Locale to display the data. Apr 23 19:04:00 Ok, I'm writing an app and I would like to stop android from messing with the strings in my app Apr 23 19:04:10 For example, my app in Spain shows 3,13 kilometers Apr 23 19:04:53 QubeZ: er Apr 23 19:04:55 QubeZ, that's expected Apr 23 19:05:00 ^^ Apr 23 19:05:08 Different locations use different values. Apr 23 19:05:15 chemfy, it doesn't mess with strings in your app Apr 23 19:05:19 yes i know its expected and I expect it Apr 23 19:05:27 be specific on what you're doing and what you expect to change Apr 23 19:05:40 QubeZ: if you really, really want to force it, then use String.format and provide a locale. Apr 23 19:07:05 Thank you, I think I got my answer. Apr 23 19:07:20 i handle only simple case so I handle it differently but yes, String.format is probably best to use. Apr 23 19:07:20 s/QubeZ/chemfy Apr 23 19:07:52 SimonVT, I saw the example . It uses the first fragment to control the second. Does it break the MVC model ? I mean I think the activity has to control it. no ? Apr 23 19:10:20 no Apr 23 19:11:58 no Apr 23 19:12:24 fragments are self-contained Apr 23 19:13:06 pfn, you mean they are the Controller of what is inside ? Apr 23 19:13:29 if you want to use the mvc paradigm, yes Apr 23 19:13:38 I see thanks Apr 23 19:15:46 in my case I have to control them in the Activity Apr 23 19:18:23 then you're doing it wrong Apr 23 19:21:13 m/sg nickserv identify mikedg ifuckhamsters Apr 23 19:21:51 It's true Apr 23 19:26:09 ^^ haha Apr 23 19:32:58 hi everybody! I have strange problem with my ListView. Apr 23 19:33:30 Sometimes it append -1 to the return of listView.getCheckItemIds() Apr 23 19:33:46 how to cope with that problem? Apr 23 19:34:14 "append -1" ? Apr 23 19:34:44 alankila, for example [-1, 123,124,125] Apr 23 19:35:38 I see. Apr 23 19:35:46 that would be prepending -1, to be very technical Apr 23 19:35:53 Do you ever return -1 in your adapters getItemId? Apr 23 19:36:42 SimonVT, no, i'm using SimpleCursorAdapter Apr 23 19:37:11 your adapter has "stable ids"? Apr 23 19:37:11 http://pastebin.com/u0aPmQxf some logs Apr 23 19:37:15 yes Apr 23 19:37:24 all my data are persisted in sqlite Apr 23 19:37:42 it's very difficult to catch this bug Apr 23 19:37:56 Interesting, but can't you just ignore the -1 element if you see it? Apr 23 19:38:10 don't know what causes it or anything Apr 23 19:38:24 alankila, yes. But I don't think it's a good aproach) Apr 23 19:38:34 do someone know how to turn of the autocorrect while typing in a TextEdit? While using it with a Passwordmask, it is kind of useless- Apr 23 19:38:40 the simple answer is to make sure none of your data has an id of -1 Apr 23 19:38:44 which it sounds like it does Apr 23 19:38:47 i have got a vertical layout that consists of a simple TextView and below that a GridView. The TextView should be hidden by default, but provided that some condition is fulfilled it should be pushed in from the top. This works fine, except that the GridView "makes room" for the TextView before the animation takes place. How can I make the GridView be part of the animation? Apr 23 19:39:55 pfn, is it possible query database on real device(not on the emulator) from the computer? Apr 23 19:40:04 not-rooted device Apr 23 19:40:34 fornext: I use autocorrect to enter my password Apr 23 19:41:21 pragma-, hmm, not very safe. Apr 23 19:42:10 pfn, but it's impossible, that i have -1 in my database. In my app there are always 4 options to choose. And if I choose all 4, in logs appears this [-1, 673, 674, 675, 676] Apr 23 19:42:25 pfn, 67* - ids from db Apr 23 19:43:14 how would I make a text number input widget default to the number '0'? Apr 23 19:46:58 What is the correct way to export my applications database for the purpose of backup/import? Apr 23 19:48:01 rootty: I'd start by logging the id and position in getItemId Apr 23 19:49:13 SimonVT: position? Apr 23 19:49:30 So you know what item in your list has a fucked up id Apr 23 19:51:23 i don't think that some View in my ListView can spoil something Apr 23 19:51:31 anyone? Apr 23 19:51:38 ninjai: err, however you want to? Apr 23 19:52:12 ctate, I was wondering if there was a proper way, since to directly copy the file from /data/data/com.....etc I would need root or something, wouldn't I? Apr 23 19:52:13 if you can assume that it'll be imported by the same or later version of SQLite, then a raw .db file copy should be fine Apr 23 19:52:13 in my case listview is loaded by 4 items, and when I check them all in logs appears this [-1, 673, 674, 675, 676] - my 4 checked items, and -1 at the beginning Apr 23 19:52:26 ctate, how do I do that? Apr 23 19:52:30 is there a guide osmewhere? Apr 23 19:52:31 ninjai: your app can copy its own data out to external storage, for exampl Apr 23 19:52:37 e Apr 23 19:53:05 SimonVT: any ideas? Apr 23 19:53:06 dont just copy a database as a form of backup Apr 23 19:53:20 ninjai: whatever data format you use, your app will need to be the one moving the data (since it's the only one that has permission to access it) Apr 23 19:53:44 note that 'adb backup' essentially just makes a tarball of your app's data directory hierarchy Apr 23 19:53:56 [introduced with ICS] Apr 23 19:56:25 thanks ctate I'll look into this further Apr 23 20:00:12 cyrilmottier: are you there? Apr 23 20:00:24 yes Apr 23 20:00:47 cyrilmottier: Do you remember the problem that I had? Apr 23 20:00:54 yes Apr 23 20:01:22 It was because of some cursor operations. Apr 23 20:01:36 I fixed it using AsyncTask Apr 23 20:01:41 Thanks Apr 23 20:02:08 SimonVT, alankila, pfn it looks like it appears after I click on the header of ListView Apr 23 20:02:23 cyrilmottier: But now I have problems with AsyncTask :D Apr 23 20:02:49 if you deprecate method foo(), and a subclass overrides it, but doesn't declare it deprecated, eclipse doesn't treat it as being deprecated? T_T Apr 23 20:03:18 cyrilmottier: can you help me out with this? :) http://stackoverflow.com/questions/10287358/using-asynctask-in-simplecursoradapter Apr 23 20:03:23 You should return false in isAllItemsEnabled and false in isEnabled when the position is a header Apr 23 20:03:31 areAll...* Apr 23 20:03:59 sounds like an iOS method name Apr 23 20:04:20 didDoViewDidAppeared() Apr 23 20:04:28 didDoViewDidAppear() * Apr 23 20:04:38 lol Apr 23 20:04:48 * Jug6ernaut hates objective c Apr 23 20:04:53 setNameAndIdAndTitleAndAddressAndZipCodeAndCityAndCountryAndPhoneNumberAnd.. Apr 23 20:04:58 why they had to go screw up a c is beyond me Apr 23 20:05:21 lol Apr 23 20:05:52 showDialogWithTitleAndMessageAndIconAndOkButtonNameAndOkButtonListenerAndCancelButtonNameAndCancelButtonListener Apr 23 20:06:06 MINE'S LONGER Apr 23 20:06:14 haha Apr 23 20:06:26 so i made this: http://i335.photobucket.com/albums/m470/jmartin866/buttonswut.png Apr 23 20:06:30 That's what she said to you Apr 23 20:06:36 and um... it's pretty ugly. Apr 23 20:06:39 jesus Apr 23 20:06:45 You are right Apr 23 20:06:47 It's ugly Apr 23 20:07:02 how do i get the text to ellipsize and get the buttons to line up without setting static widths and heights? Apr 23 20:07:08 http://pastebin.com/f14iGVze Apr 23 20:07:17 that's the xml for the page. Apr 23 20:07:36 Who told you to use wrap_content with weights Apr 23 20:07:37 meh moonlightcheese, ive seen longer Apr 23 20:07:38 i tried using layout_weight=1. Apr 23 20:07:41 Slap them hard Apr 23 20:07:43 also that Apr 23 20:07:51 SimonVT : i change lv.addHeaderView(tv) to lv.addHeaderView(tv, null, false); and it works Apr 23 20:08:09 use fill_parent? Apr 23 20:08:19 is there an ICS phone that has *no* hardware keys ? ie on-screen keys ? Apr 23 20:08:20 Use 0dp in the direction it stretches Apr 23 20:08:45 They all have hardware power and volume buttons Apr 23 20:09:08 I meant menu, back, home keys Apr 23 20:09:15 galaxy nexus Apr 23 20:09:19 ok Apr 23 20:09:36 Is SharedPreferences.Editor thread-safe? Apr 23 20:09:41 what is the definition of hardware Apr 23 20:09:48 * royale1233 is going crazy Apr 23 20:09:53 the one X has 3 buttons at the bottom Apr 23 20:10:42 how would i go about setting an editText widget to the number '0' on create? 'editText.setText(0);' ? Apr 23 20:10:43 hardware = not software :p Apr 23 20:10:49 bubbleguuum yep, any device that gets upgrade from gb -> ics isnt going to have on-screen buttons Apr 23 20:10:53 aka softkeys Apr 23 20:10:58 String.valueOf(0) Apr 23 20:11:00 "" + 0 Apr 23 20:11:10 Integer.toString(0) Apr 23 20:11:20 new StringBuilder(0).toString() Apr 23 20:11:23 lol Apr 23 20:11:36 ok..I'm confused Apr 23 20:11:37 new StringBuilder().append(0+""); Apr 23 20:11:38 SimonVT u forgot Apr 23 20:11:39 can you help me out with this? :) http://stackoverflow.com/questions/10287358/using-asynctask-in-simplecursoradapter Apr 23 20:11:41 "0" Apr 23 20:11:42 :P Apr 23 20:11:46 Fuck Apr 23 20:11:50 :D Apr 23 20:12:00 hehe Apr 23 20:12:05 oh Apr 23 20:12:12 new StringBuilder().append(0+"").toString() of course Apr 23 20:12:12 oops Apr 23 20:12:27 Integer.toString(1-1 + 1-1) Apr 23 20:12:36 Why'd you use 0+"" in appent :( Apr 23 20:12:56 String.valueOf((1+2+3+4+5+6+7+8+9)*0) Apr 23 20:13:07 lol Apr 23 20:13:14 too cool Apr 23 20:13:58 how is it better to fill initiall data to sqlite? I have an XML and parse it during onCreate() Apr 23 20:14:08 Are there better practisise? Apr 23 20:14:11 "0000000000000000000000000000".substring(4, 5) Apr 23 20:14:23 *practise Apr 23 20:14:37 rootty, just add ur db to ur apk Apr 23 20:14:42 the no adding Apr 23 20:14:43 royale1233: I imagine getCursor() returns the same instance each time, so you use one cursor from multiple threads Apr 23 20:15:47 ok ... can someone help me with it? Apr 23 20:16:02 john_doe_jr: You need to setText(someString) Apr 23 20:16:07 "0" is a string Apr 23 20:16:10 0 is not a string Apr 23 20:16:11 alankila: Still it goes to a unique position of cursor right? Apr 23 20:16:16 Jug6ernaut : and it wouldn't compatibility problems with different versions of Sqlite? In which place put it: /res/raw? Apr 23 20:16:26 yes, make it a raw asset Apr 23 20:16:27 royale1233: also you are using View objects not from ui thread -- a big no-no Apr 23 20:16:42 Sqlite is very good about backwards compatibility fo their db format Apr 23 20:16:49 oh excuse me, you are not Apr 23 20:17:01 is there a programattic way to figure out whether the positive button is on the right or left in a dialog? Apr 23 20:17:02 SimonVT: I need to set it to a number though Apr 23 20:17:07 like if i want to display my own custom dialog Apr 23 20:17:08 SimonVT: not a string Apr 23 20:17:12 Yes, convert the number to a string Apr 23 20:17:15 alankila: I'l change that Apr 23 20:17:31 String.valueOf(someNumber); Apr 23 20:17:34 You just got a lot of options on how to do that Apr 23 20:17:42 * Jug6ernaut almost waited for autocomplete right htere xD Apr 23 20:17:48 royale1233: maybe you could make this work if you make sure you execute only the single-threaded executor Apr 23 20:18:29 I mean, execute your asynctasks on the single-threaded executor and never use cursor from any other thread. Or maybe android's cursor factories are smart enough to cope with this. Not sure, to be honest. Apr 23 20:18:55 royale1233: the big answer is of course that there's something android calls loaders these days to deal with populating lists slowly Apr 23 20:18:59 alankila: I'm not using View object in asynctask Apr 23 20:19:22 alankila: I need to support api 7 Apr 23 20:19:23 yes I noticed my mistake already Apr 23 20:20:08 SimonVT: the following crashes it: 'editText18.setText('0');' Apr 23 20:20:15 alankila: what is the argument position for getView? Is it unique for each child? Apr 23 20:20:28 you cant call setText with an int Apr 23 20:20:30 alankila: what is the argument `position` for getView? Is it unique for each child? Apr 23 20:20:32 that's for resource ids Apr 23 20:20:36 royale1233: I think the position is supposed to be the row Apr 23 20:20:39 rtf javadocs Apr 23 20:21:19 canadiancow|work: use Holo and then you know which side the button's on :) Apr 23 20:21:20 john_doe_jr: difference between "0" and '0'. Observe it. Apr 23 20:21:36 ctate, i need a CUSTOM dialog Apr 23 20:21:46 royale1223: I thought so too, but debug shows 'position' only upto 4, I have 8 rows.. Apr 23 20:21:46 and it needs to match the system dialog on 2.1+ Apr 23 20:21:57 ew. Apr 23 20:21:58 alankila: one is a string 0 and the other is a number 0 Apr 23 20:22:04 in terms of button positioning Apr 23 20:22:07 so that it's consisten Apr 23 20:22:17 but the layout/design is totally custom Apr 23 20:22:17 john_doe_jr: if you said character 0, I would have believed you know what you mean Apr 23 20:22:30 canadiancow|work: i'm pretty sure you can't; that OEMs switched the right/left order sometimes for some build-in elements Apr 23 20:22:38 bleh Apr 23 20:22:41 fine, positive on right Apr 23 20:22:56 alankila: : I thought so too, but debug shows 'position' only upto 4, I have 8 rows.. Apr 23 20:23:43 alankila: I've tried both the string 0 and the number 0 and both crash....how do I solve this problem? Apr 23 20:24:22 royale1233: I don't know why that would be. It is supposed to be the actual row number. Apr 23 20:24:40 canadiancow|work: in general: pre-ICS was positive on left; ICS+ is positive on right. Apr 23 20:24:41 john_doe_jr: Check your stacktrace Apr 23 20:24:45 not number 0, the character 0. Why not try string 0? Apr 23 20:24:48 That's how you debug Apr 23 20:24:54 ctate, i know that Apr 23 20:24:58 so i add 0dp for the layout_width and improve to this: http://i335.photobucket.com/albums/m470/jmartin866/buttonswut-1.png Apr 23 20:25:06 i just dont want code like if (< 14) { go on left } else { go on right} Apr 23 20:25:12 java's 0, '0' and "0" are entirely different things. Apr 23 20:25:22 table, cheese. Apr 23 20:25:29 canadiancow|work: but why would you care in the code? i mean, the layout will take care of that, no? Apr 23 20:25:32 adding to confusion is that at 'x' can be translated to integer if necessary. Apr 23 20:25:34 canadiancow|work: layout-v14 :> Apr 23 20:25:51 ok well not in code, but i still dont wnat to depend on that Apr 23 20:25:54 no it would be in code Apr 23 20:25:57 Is there a way to test if a device is a tablet or phone? Apr 23 20:25:59 because as i said, i want to match system dialogs Apr 23 20:26:05 and if OEM hcanged that, i want the app consistent with the system Apr 23 20:26:12 '0' == 48 in java Apr 23 20:26:13 Then you're fucked Apr 23 20:26:16 canadiancow|work: you can't know at runtime, i'm afraid. Apr 23 20:26:21 shame Apr 23 20:26:23 svm_invictvs: with hybrid phone tablets, how exactly would classify them? Apr 23 20:26:26 [16:22:38] bleh Apr 23 20:26:26 [16:22:41] fine, positive on right Apr 23 20:26:34 *would you Apr 23 20:26:37 svm_invictvs: you can get the screen size Apr 23 20:26:43 Good point. Apr 23 20:26:44 svm_invictvs: and judge based on that Apr 23 20:26:57 hi all, there is any android-security irc chan ? Apr 23 20:27:01 canadiancow|work: this sort of thing is exactly why we introduced Holo as a hard requirement Apr 23 20:27:14 but that still doesnt make it CONSISTENT Apr 23 20:27:20 so that you, the developer, can *know*what it's going to be. Apr 23 20:27:26 at least from here on out Apr 23 20:27:30 not really Apr 23 20:27:33 because devicedefault != holo Apr 23 20:27:35 yes i realize this doesn't solv eyour problem with 2.1 etc Apr 23 20:27:49 * SimonVT sticks to holo Apr 23 20:27:57 if all the system apps use device default, i want my dialogs to have the same ordering Apr 23 20:27:59 sure but if you just use holo then you know you'll look like the rest of the holo apps *and* that you'll look the way you expect Apr 23 20:28:00 can someone please help me with this error Apr 23 20:28:01 http://pastebin.com/37LVApQ8 Apr 23 20:28:04 dantheman: yeah... Apr 23 20:28:15 anyone using this git branching scheme on their android project ? http://nvie.com/posts/a-successful-git-branching-model/ Apr 23 20:28:16 we never wanted anything but a single style, to be honest. It's an annoying mistake to let manufacturer customize android ui Apr 23 20:28:20 we'll see whether we see ICS+ devices ship with non-holo system default Apr 23 20:28:22 all it does is make supporting this shit worse Apr 23 20:28:22 svm_invictvs: if it is running 3.0 you know it is a table Apr 23 20:28:24 I can't figure it out Apr 23 20:28:25 tablet* Apr 23 20:28:45 john_doe_jr: foo.setText("0") ? Apr 23 20:28:45 alankila: tbqh the manufacturers consider it basically *mandatory* that they be able to customize their appearance Apr 23 20:28:55 yes, and they're wrong. -p Apr 23 20:28:59 :-p Apr 23 20:29:16 Pre-ICS they were right to customize it.. Android looked horrible :p Apr 23 20:29:57 That their apps and shit mostly just slowed down the system was a sad sideeffect Apr 23 20:30:11 anyway, good job with the holo. I hope it's enough to make everyone stick to something that largely looks like holo because there will be apps that just specify it Apr 23 20:30:33 royale1223: maybe that's the problem, can you see anything wrong with the way I'm handling 'position'? Apr 23 20:30:44 alankila: maybe that's the problem, can you see anything wrong with the way I'm handling 'position'? Apr 23 20:31:14 royale1233: well that asynctask stuff looks ugly to me because I think you may be getting multiple threads using same cursor concurrently, but I already mentioned that. Apr 23 20:31:22 http://i335.photobucket.com/albums/m470/jmartin866/buttonswut-1.png so how do i make these line up horizontally? Apr 23 20:32:29 and why are they all wonky-jawed in the first place? Apr 23 20:33:13 moonlightcheese: o_O Apr 23 20:33:24 is that a TableLayout? Apr 23 20:34:13 ctate: no, here's the latest version of the xml http://pastebin.com/f14iGVze Apr 23 20:34:20 alankila: I corrected that already but no change. :( Apr 23 20:34:26 moonlightcheese: let me rephrase. Apr 23 20:34:31 Y U NO TableLayout?!? Apr 23 20:35:09 ctate, this is where we were a while back: http://i335.photobucket.com/albums/m470/jmartin866/buttonswut.png Apr 23 20:35:21 :/ Apr 23 20:35:28 o.O Apr 23 20:35:31 moonlightcheese: You can use GridView Apr 23 20:35:33 freecandy: don't take this the wrong way, but christ almighty Apr 23 20:35:39 lol Apr 23 20:35:41 GridLayout! Apr 23 20:35:44 It wasn't mine! Apr 23 20:35:52 i could :/ Apr 23 20:35:56 also you've got baseline alignments where you probably shouldn't Apr 23 20:35:58 <[twisti]> freecandy: mind if i submit that to dailywtf ? :p Apr 23 20:36:03 i do? Apr 23 20:36:19 ask moonlightcheese. Apr 23 20:36:35 * moonlightcheese waddles off with his tail between his legs in shame. Apr 23 20:36:47 YOU GAIS R MEEN. Apr 23 20:36:47 <[twisti]> oh, sorry Apr 23 20:36:52 what are you actually after here? having buttons flow like text, basically? Apr 23 20:36:55 <[twisti]> i was kidding anyways Apr 23 20:36:56 write your own layout for that Apr 23 20:36:59 LOL, thats funny Apr 23 20:37:15 just need a grid layout that lines up. Apr 23 20:37:46 GridLayout then Apr 23 20:37:49 or TableLayout Apr 23 20:37:50 moonlightcheese: http://developer.android.com/reference/android/widget/GridLayout.html Apr 23 20:38:01 [16:35:41] GridLayout! Apr 23 20:38:05 first Apr 23 20:38:13 FRIST!!!1 Apr 23 20:38:16 exactly Apr 23 20:38:19 http://android-developers.blogspot.com/2011/11/new-layout-widgets-space-and-gridlayout.html Apr 23 20:38:22 [16:37:16] just need a grid layout that lines up. Apr 23 20:38:29 you even knwo the NAME of what you want T_T Apr 23 20:38:34 :D Apr 23 20:39:09 YOU SHUT UR MOUTH. Apr 23 20:39:37 I'm dying here somebody please help me... http://stackoverflow.com/questions/10287358/using-asynctask-in-simplecursoradapter Apr 23 20:39:50 moonlightcheese: manners Apr 23 20:39:57 k. Apr 23 20:40:47 vdstatus == "false" <- That's not how you compare strings Apr 23 20:41:18 vdstatus.equals( "chlamydia" ) Apr 23 20:41:30 +1 Apr 23 20:41:31 what if you also have herpes Apr 23 20:41:32 SimonVT: I know, it's a bit crude, but used to work before AsyncTask. :( Apr 23 20:41:38 "false".equals(vdstatus) Apr 23 20:41:46 incase vdstatus is null Apr 23 20:41:53 canadiancow, ah nice defensive programming Apr 23 20:41:56 ==canadiancow|work is a good habit to get into Apr 23 20:41:57 very solid coding there canadiancow Apr 23 20:42:06 you guys just made my day :) Apr 23 20:42:34 canadiancow|work: thanks, just modified ti your code Apr 23 20:42:55 royale1233: I doubt that is actually going to help your performance Apr 23 20:43:00 canadiancow|work: but that doesn't solve my problem sadly Apr 23 20:43:37 it solves one of them... Apr 23 20:43:43 how do you default the value of an EditText to zero? Apr 23 20:43:43 Also, y u not use newView/bindView Apr 23 20:44:01 In a CursorAdapter Apr 23 20:44:17 SimonVT: It does, do you see the line `propmanager.mbActivePath()` , that takes up a bit cputime. Apr 23 20:44:35 maybe Apr 23 20:44:42 canadiancow|work: yep :) thanks Apr 23 20:45:03 Does that method return the same value every time? Apr 23 20:45:14 Anyway, if that takes time, then JUST move that into a thread Apr 23 20:45:20 SimonVT: nope Apr 23 20:45:34 SimonVT: sorry , yes, and I'm an idiot.. Apr 23 20:46:02 SimonVT: next problem solved by SimonVT Apr 23 20:47:14 Anyway why doesn't I get 'postion' value upto 6? I have 6 listview childs. Apr 23 20:47:23 0 1 2 3 4 5 Apr 23 20:47:27 ^that's 6 Apr 23 20:47:39 i get only upto 3 Apr 23 20:47:53 Then getCount doesn't return 6 Apr 23 20:48:18 Yes, as I said only upto 3 Apr 23 20:48:36 ... Apr 23 20:48:39 so make it return 6? Apr 23 20:48:54 Put 6 items in the cursor Apr 23 20:49:02 Return cursor.size or .length or whatever it is Apr 23 20:49:10 wth are you talking about Apr 23 20:50:14 SimonVT: there ar 6 items in cursor, row length of listview is 6 etc... max value of `position` should be 5, but I'm only getting 3. Apr 23 20:50:33 only 4 are on screen? Apr 23 20:50:44 xorgate: 6 on screen Apr 23 20:50:48 I doubt that Apr 23 20:51:02 on screen as in you can physically see them at the same time? Apr 23 20:51:05 or after scrolling Apr 23 20:51:12 ehm Apr 23 20:51:16 So, how many are visible at a time? Apr 23 20:51:25 You only set viewholder.position when convertview is null Apr 23 20:51:34 SimonVT: I can physically see only 4... Apr 23 20:51:47 tada Apr 23 20:52:03 There you go Apr 23 20:52:09 I see Apr 23 20:52:16 you see it didnt help that you said you could see 6 Apr 23 20:52:40 So how do I set data to a ListView child whoose Row id is say 101? Apr 23 20:52:58 setTag() Apr 23 20:53:05 put some object in there Apr 23 20:53:21 I don't understand the question Apr 23 20:53:42 royale1223 watch 'world of listview' on youtube Apr 23 20:55:11 xorgate: okay, how can I get the rowId of a child from getView if I have 101 childs? Apr 23 20:55:27 getItemId Apr 23 20:55:44 But still, use a cursoradapter and override newView and bindView, not getView Apr 23 20:55:52 rowId doesn't really mean anything Apr 23 20:56:07 listview deals with 'position', from there you figure it out Apr 23 20:56:14 SimonVT: wow, I'll modify and post results.. Apr 23 20:56:16 16:53:52 < xorgate> royale1223 watch 'world of listview' on youtube Apr 23 20:56:21 please do this Apr 23 20:56:26 please do this and THEN come back and talk to us Apr 23 20:56:38 22:56 here Apr 23 20:56:43 lov: okay, brb Apr 23 20:56:52 b RIGHT back he says :0 Apr 23 20:57:26 lov: is this the one? http://www.youtube.com/watch?v=wDBM6wVEO70 Apr 23 20:57:36 yes Apr 23 20:57:37 yes Apr 23 20:57:46 THAT should be the channel's topic Apr 23 20:57:56 also: 'did you try #android-root?' Apr 23 20:58:04 also 'go to #java' Apr 23 20:58:36 And 'put jar dependencies in libs/' Apr 23 20:58:48 xorgate, lov thanks, I'll do that. Apr 23 20:58:56 godspeed Apr 23 20:59:17 SimonVT: no jar dependencies as of now... :) but I'' keep that in mind.. Apr 23 21:00:01 Pre-emptive help right there Apr 23 21:03:37 God damn, the emulator is useless. Apr 23 21:08:01 can anyone explain this? Tabbed FragmentActivity with ViewPager... Apr 23 21:08:13 Each fragment has a custom options menu Apr 23 21:08:36 Quickly switching pages with AdMob when ad loading means option menu items don't display in action bar. Apr 23 21:12:31 hello, i experienced a strange behavior in an broadcastreceiver, i use static variables but they dont retain their value it seems Apr 23 21:12:37 is this a known problem? Apr 23 21:13:50 A problem? Probably not Apr 23 21:13:57 Maybe the process is getting killed Apr 23 21:14:14 well it is a problem because i cannot rely on the values Apr 23 21:14:37 and static variables usually survive even if the last instance of the class is killed, as long as the process is still running, which it is Apr 23 21:14:38 static variables are a horrible way to retain state Apr 23 21:14:44 SharedPrefs? Apr 23 21:14:47 so it might be a bug? Apr 23 21:15:07 snodnipper: static variables should work too, according to the java specification Apr 23 21:15:09 nah, android just has broken static variables. Avoid using them. Apr 23 21:15:30 SimonVT: they are not a horrible way to retain state if you implement the java specifiction correctly Apr 23 21:15:34 the lifecycle of the vm and various instances of android objects is not under your control Apr 23 21:15:37 alankila: so this *is* a known issue? Apr 23 21:15:37 alankila, what? really? Apr 23 21:15:42 coslo: erm...this is android....and your broadcast receiver could be started at any time Apr 23 21:15:50 Wavesonics: see my clarification :-p Apr 23 21:16:05 coslo: just don't do what you try to do. Keep state in sharedpreferences. Apr 23 21:16:06 coslo: the process could get killed at any time Apr 23 21:16:15 alankila, oo using them to return state, got ya Apr 23 21:16:23 snodnipper: that is irrelevant, static variables are created upon process creation according to the java specification, and stay in memory until the process is killed Apr 23 21:16:24 *keep state Apr 23 21:16:30 alankila: ok thanks for pointing it out Apr 23 21:16:40 coslo: so the process is killed....so what Apr 23 21:16:45 you lose your vars Apr 23 21:16:47 snodnipper: the process is still running though Apr 23 21:16:56 how many processes? Apr 23 21:17:01 10 Apr 23 21:17:07 one process Apr 23 21:17:16 I heard broadcastreceivers might run in the intent sender application Apr 23 21:17:16 coslo: as soon as onReceive() returns, your process could be killed. Apr 23 21:17:25 alankila: that is not true Apr 23 21:17:34 no code is ever run in another app's VM instance Apr 23 21:17:37 ctate: oh, didn't you or somebody say that it might happen? Apr 23 21:17:38 ctate: i even set priority to 1000 Apr 23 21:17:55 I'm pretty sure this came up last time I complained about this Apr 23 21:18:10 coslo: like i said: as soon as onReceive() returns, unless your app is retained for any particular reason [like running the foreground UI], it is a candidate to be killed immediately. Apr 23 21:18:29 ctate: even if it features a service? Apr 23 21:18:37 if it features a service that is less likely Apr 23 21:18:41 but not impossible Apr 23 21:18:51 ctate: it does feature a service and i verified that the service is still running Apr 23 21:18:56 hence this is really strange Apr 23 21:19:09 hello Apr 23 21:19:14 yes, that is indeed strange. this works in other apps, so i suspect you're doing something odd. Apr 23 21:20:19 in AndroidBoard.mk can i not tell it to copy an entire directory and it's contents rather than each individual line? Apr 23 21:20:20 "the package file was not signed correctly" just updated to the market and trying to do I get this message. I signed the updated app with the same key, what could be the issue? Apr 23 21:20:31 q: with API-8 I want to be able to load data for a custom URL. Is this possible? Or will the webview always want to load data for me? Apr 23 21:20:38 ctate: is it correct that if the app "features" a service, like it just starts a service somewhere, then the static variables of the service-unrelated broadcastreceiver should also stay in memory until every part of the app gets wiped out of memory. and the service usually stays Apr 23 21:20:41 worried all my customers are going to see the same message. Apr 23 21:21:14 coslo: yes, modulo imprecision in your terminology :) Apr 23 21:21:20 a broadcastreceiver is just an object Apr 23 21:21:35 static variables in dalvik are not attached to an object; they're global Apr 23 21:21:35 thanks ctate Apr 23 21:21:35 I'm looking to get a ROM made for a device, can anyone help? Apr 23 21:21:38 ok this is weird Apr 23 21:21:50 ctate: yes, thats what the java specification demands Apr 23 21:21:52 or to find an existing one, if any exist Apr 23 21:21:53 can you pastebin some code or something to show what exactly you're seeing? Apr 23 21:21:59 i am just verifying that i understand it Apr 23 21:22:16 Changeyou: #android-root Apr 23 21:22:36 ctate: just came from there, they suggested dev Apr 23 21:22:43 They were wrong Apr 23 21:22:46 that's crazy talk :) Apr 23 21:22:51 -dev is for application development Apr 23 21:22:56 anything to do with custom roms is -root Apr 23 21:23:00 sorry Apr 23 21:23:14 i'll head back to root with my head down in shame, then Apr 23 21:23:21 not your fault :) Apr 23 21:23:23 thanks for the pointer :p Apr 23 21:24:00 ctate: basically i am doing class fooBR extends BR { private static boolean foo = false; onReceive(c, i) { Log(foo); foo=true; Log(foo); }} and what i see in the log is: false, true, false, true, false, true Apr 23 21:24:26 and i verified it is never set to false inside the onReceive or somewhere else Apr 23 21:24:35 coslo: can you paste the *actual* code? Apr 23 21:24:41 because that's insane Apr 23 21:25:08 ctate: no it is too large and it would take ages to dump it down to a testcase Apr 23 21:25:12 grrarr Apr 23 21:25:31 and you are not logging the contents of 'foo' from any other location? Apr 23 21:25:42 ctate: definitely not Apr 23 21:26:27 this is so weird Apr 23 21:26:30 let me check my code again Apr 23 21:30:30 coslo: is it at all possible that your app is being destroyed between receiver calls? Apr 23 21:32:52 I have an app that streams audio from a shoutcast stream. It works fine for me, but the app was developed for a client in the UK and it doesn't work for him. Could it be that because it was coded in the US make it not work in the UK? Apr 23 21:33:09 lov: if it is possible that the service is destroyed and transparently restarted, then maybe, because the service is always responding Apr 23 21:35:02 wait. Apr 23 21:35:15 cr5315: phones don't speak british java. Apr 23 21:35:22 tell your client to send you crash repors. Apr 23 21:35:29 cr5315, maybe the stream is not available in UK ? "geolocation-limitation" Apr 23 21:35:41 ^ Apr 23 21:35:55 it could very well be what Boeby suggested. Is it possible for him to provide any sort of diagnostic info? Apr 23 21:35:58 coslo: strange. Apr 23 21:36:05 or you just assumed everyone uses your date format, time format, timezone or char encodings Apr 23 21:36:15 There are no crash reports. It starts buffering but never plays. Apr 23 21:36:19 http://www.fiercedeveloper.com/story/enterprise-mobile-developers-we-need-business-apps/2012-04-20 Apr 23 21:36:54 I'm having an issue: I accidentally rendered my app widget too large. This caused the launcher to think that the widget is 4x2 instead of 4x1 (as specified in the provider XML). I tried clearing the launcher data and app data - but it still thinks the app has a size of 4x2. Any idea how I can fix this? Apr 23 21:37:31 coslo: fwiw, i basically just did exactly what you described, have a broadcast receiver that maintains a static variable, and i see it correctly maintaining state across invocations Apr 23 21:37:58 i suspect you're seeing something else happening, possibly as lov suggested with the lifetime of the service [and thus with the lifetime of the app process], etc. Apr 23 21:38:01 skfax: What size did you define Apr 23 21:38:24 also make sure you aren't specifying in your app's manifest that the service and the broadcast receiver run in separate processes, etc. Apr 23 21:39:34 is it possible to see the memory usage of my app via adb? Apr 23 21:39:48 ctate: weird, ok i will check again Apr 23 21:39:49 coslo: ddms can tell you that Apr 23 21:40:01 Mavrik: will try that Apr 23 21:40:02 adb shell dumpsys meminfo [packagename] Apr 23 21:40:11 without the [packcagename] it will show all processes Apr 23 21:40:13 ctate: cool thanks Apr 23 21:40:20 yes Apr 23 21:40:35 SimonVT: android:minWidth="294dp" android:minHeight="72dp" is defined - and has been used for over a year in my app Apr 23 21:40:43 (actually not all processes; all Android apps. it won't show non-Android stuff like init :) ) Apr 23 21:40:45 250dp and 40dp Apr 23 21:40:47 Use that Apr 23 21:41:04 (aka follow the guidelines :p) Apr 23 21:41:16 Well my dimensions are according to the original guidelines Apr 23 21:41:23 They were recently changed Apr 23 21:41:53 But thanks :-) I guess it's about time to update them in my app. Hopefully that doesn't break anything for others. Apr 23 21:42:44 It shouldn't.. Otherwise you just make separate definitions for >=guideline changes Apr 23 21:43:07 can i list all running processes with adb? Apr 23 21:45:57 SimonVT: Thanks for that hint. I just found out why this happened. I used to only have a minSdkVersion of 4 in my app manifest. This problem occured when I just added a targetVersion of 15 earlier. Because the calculation is done differently in the two versions, you end up with two different widget sizes. Apr 23 21:45:57 i rather mean all running apps, not ps Apr 23 21:46:12 Yep, skfax Apr 23 21:46:31 That's what targetSdkVersion is for Apr 23 21:48:02 I'm looking for a way to return custom data to a webview for a given url. Can anyone help? Apr 23 21:48:03 Meh. This is a bit annoying though, because my app is a customly rendered bitmap. So if I render to the new dimensions, it will look pretty small on a Galaxy Nexus. While rendering using the "old method", it fills the space available. Apr 23 21:49:18 You'll figure it out :P Apr 23 21:49:29 is it just me or android ics really sucks? Apr 23 21:49:41 go away Apr 23 21:49:42 trololol Apr 23 21:49:49 it's just you phpN00b Apr 23 21:49:53 now gtfo Apr 23 21:50:13 i can understand that it might not appeal universally Apr 23 21:50:19 i mean, some people can't stand iPhone UIs. Apr 23 21:50:28 * p_l raises hand Apr 23 21:50:29 what a strange world if we were all alike Apr 23 21:50:37 ctate, the UI of android still lags. ICS is even worse Apr 23 21:50:59 That's a reflection on your hardware, not Android Apr 23 21:51:09 inb4 runs custom rom Apr 23 21:51:19 JakeWharton, so you are saying android can not run decently on a dual core? Apr 23 21:51:21 it does indeed matter a lot what hardware (and graphics drivers) it uses Apr 23 21:51:29 dual core is not really relevant Apr 23 21:51:34 SimonVT: I've actually made an insane solution already, where you can manually calibrate the widget by using an interference pattern such that it can match any device. Guess I'll just tweak the targetSdkLevel to fix this issue temporary. No fun finding new issues in the last hour before pushing a release =) Apr 23 21:51:35 GPU is hugely important Apr 23 21:51:36 JakeWharton: you said you didn't like this git branching model, right? http://nvie.com/posts/a-successful-git-branching-model/ … what do you guys use at square ? Apr 23 21:51:38 phpN00b, are you using a device that has official ICS? Apr 23 21:51:38 and screen size Apr 23 21:51:48 what device are you using, phpN00b? Apr 23 21:51:51 ctate, sgs2 is one of the best and fastest phone and yet android can't run w/o any lag Apr 23 21:51:57 I find ICS quite a bit more responsive Apr 23 21:51:57 ctate: and memory bandwidth Apr 23 21:51:58 >.< Apr 23 21:51:59 ctate, samsung sgs2 Apr 23 21:52:02 ctate: i think i get it now Apr 23 21:52:03 skfax: is the lack of square pixel grid the problem? Apr 23 21:52:09 okay, so really great memory bandwidth and probably quite shitty graphics drivers Apr 23 21:52:12 is it possible that broadcastreceivers are not thread safe? Apr 23 21:52:19 phpN00b: ... you screwed something, I think. Haven't seen any jerkiness in SGS2 Apr 23 21:52:20 skfax: I mean, you should be able to find the pixel dimensions of the widget, probably Apr 23 21:52:24 note that is a phone (and gpu!) that Google has never worked with Apr 23 21:52:30 that multiple of them are instantiated at the same time if the events happen fast in a row? Apr 23 21:52:36 that might explain it Apr 23 21:52:37 ctate, all android devices I ever otuched are laggy in some way Apr 23 21:52:44 I am talking over 20 devices... Apr 23 21:52:47 alankila: It's not possible as far as I know, to figure out the available dimensions for an app widget Apr 23 21:52:49 phpN00b, then you're doing it wrong Apr 23 21:53:01 note that pretty much all Android devices other than the Nexus S have been seriously underpowered for the complexity of the UI and the size of the screen Apr 23 21:53:07 could i make use os synchronized maybe? although i never understood that concept really Apr 23 21:53:13 or he disabled animations and got defeated by perception bias Apr 23 21:53:15 no, Google should focus on smoothness of the UI instead of features Apr 23 21:53:22 at least, the seven or so that Google has worked on Apr 23 21:53:28 this lag is annoying Apr 23 21:53:29 file a bug, phpN00b Apr 23 21:53:32 lets move on Apr 23 21:53:33 does anybody know about broadcastreceiver threading? Apr 23 21:53:38 coslo: i do :) Apr 23 21:53:45 broadcast receivers run on the app process's main looper thread Apr 23 21:53:50 I have seen that cpu frequency governor is often the reason why android ui lags initially Apr 23 21:53:53 ah shit Apr 23 21:53:53 phpN00b, remember, the only phones that don't have outside intervention by OEMS and carries are the nexi Apr 23 21:53:57 "The onReceive() method is called on the main thread. So, in case all your access to the service class is done from within the main thread, you don't need any synchronization." Apr 23 21:53:59 the cpu is simply not ramped up quickly enough to not be annoying for user Apr 23 21:54:02 http://stackoverflow.com/questions/5394950/are-android-broadcastreceiver-started-in-a-new-thread Apr 23 21:54:10 so this does not explain it Apr 23 21:54:11 coslo: what i just said :) Apr 23 21:54:19 ctate, btw, I am running ics official firmware. phone crashed twice today Apr 23 21:54:22 does anyone know how to override file loading in a webview? Apr 23 21:54:25 seeing the app drawer for the first time after a while is a bit laggy too Apr 23 21:54:30 yes ctate Apr 23 21:54:39 maybe loading all the bitmaps or discovering what should go there takes the time Apr 23 21:54:39 google is NOT a software company. Google should face that fact Apr 23 21:54:39 alankila: samdroid community for i5700 had such results, yes Apr 23 21:54:42 DAMN this is weird Apr 23 21:54:50 phpN00b, all google does is software Apr 23 21:54:50 phpN00b: like i said, that's all Samsung. they took the open source ICS code and adapted it however they wanted. Apr 23 21:54:56 I have android 4.0.4, a cm9 beta, on samsung galaxy s 1 Apr 23 21:55:06 it's not like the Galaxy Nexus, a device that Google worked on directly. Apr 23 21:55:09 alankila: switching to ondemand actually lowered cpu and power use Apr 23 21:55:14 this is kinda alright otherwise, and the lagginess that was fairly obvious in 2.x is at least pretty much completely gone Apr 23 21:55:38 ctate, can you sincerely tell me that you never experienced lag on your nexus? Apr 23 21:55:40 I use the "conservative" cpu governor here. It's the default. Apr 23 21:55:42 also, a lot of issues with lags etc. are caused by app writers... Apr 23 21:55:49 every phone lags Apr 23 21:55:57 define "lag" Apr 23 21:55:58 i can get an iPhone and WP7 phone to lag easily Apr 23 21:55:59 there's that ondemand too, but haven't really tried using it. conservative works fine. Apr 23 21:56:01 i don't notice my Galaxy Nexus being laggy unless it's in a poorly-written app, frankly Apr 23 21:56:15 p_l, that means google needs a better resource management Apr 23 21:56:24 that said, not everything runs at 60 fps all the time; we know that. you don't have to tell us that imrpovement would be good. Apr 23 21:56:27 phpN00b: well they're hiring, apply and fix it yourself Apr 23 21:56:34 wtf are you talking about phpN00b Apr 23 21:56:36 phpN00b: no resource management will help if someone locks up UI thread with shit Apr 23 21:56:49 one thing that really annoys me about android nowadays is the cgroups usage Apr 23 21:56:51 or loads 2k lines of XML layout Apr 23 21:56:58 lol Apr 23 21:57:01 background tasks get ruthlessly squeezed from taking almost any resources Apr 23 21:57:20 makes me think of getting a dualcore to make it more likely that there's one full core to spend on background tasks nevertheless Apr 23 21:57:23 anybody develop ad-supported apps? What do you use? Apr 23 21:57:24 or Apr 23 21:57:27 and is it worth it... Apr 23 21:57:30 * phpN00b is switching to wp7 Apr 23 21:57:43 alankila: maybe because developers launch idiotic amounts of background services... Apr 23 21:57:45 Such a loss for the Android community :-( Apr 23 21:57:46 /part then Apr 23 21:57:58 skfax, ikr Apr 23 21:58:15 p_l: yeh, well, whatever, but I happen to have very cpu intensive music player that suffers from it. I'll try to increase buffering to try to cope with this though. Apr 23 21:58:29 we are talking about a phone with a dual core cpu. the apps must be very poorly written to lag Apr 23 21:58:32 currently I do a very bad job with buffering Apr 23 21:58:41 this means Google needs to test the apps before approving! Apr 23 21:58:45 phpN00b, i don't like you Apr 23 21:58:48 like what MS is doing Apr 23 21:59:02 they actually do test the app and give back reports Apr 23 21:59:20 i think you don't understand what "open" means. Apr 23 21:59:31 Google needs to clean up Play Store Apr 23 21:59:41 phpN00b: ... it's not hard to lag any kind of cpy Apr 23 21:59:42 send them an email then Apr 23 21:59:43 spare us Apr 23 21:59:43 *cpu Apr 23 21:59:46 Less whine, more dev Apr 23 21:59:52 the way that Microsoft won't let people sell crappy Windows apps? :) Apr 23 22:00:06 right now the only thing that actually does bother me on 4.0.4 vanilla is the too long time it takes to see the app drawer. :-/ Apr 23 22:00:11 thank you lov Apr 23 22:00:13 lov: fair enough Apr 23 22:00:19 phpN00b: also, I want vid of how you go through the 5h on-site gauntlet if you get there ;) Apr 23 22:00:30 "Package file was not signed correctly" when I try to install an update I just pushed to the market. How can this be I used the same key to sign with. Apr 23 22:00:31 but then again, this phone is past replacement age anyway Apr 23 22:00:36 ahh ;) Apr 23 22:01:10 and the lack of dualcore, obviously. Wouldn't hurt to have some 50 % boost per core, and whole other core to work with. Apr 23 22:01:12 alankila: 9 months? Apr 23 22:01:17 alankila: I don't really have that issue on a GN Apr 23 22:01:19 To anyone using admob..... "Must match name on tax return" I don't own/have a business... what do you guys do in this situation? Apr 23 22:01:29 p_l: uh, I think I bought this sometime in late 2010 Apr 23 22:01:47 alankila: heh. Mine was bought summer 2010 Apr 23 22:02:08 unfortunately I suspect it will first start failing due to RoHS before I upgrade it Apr 23 22:02:21 I think it was autumn, but can't remember more closely. Only remember it was dark outside when I was sitting in a taxi and unboxed it to ward off boredom Apr 23 22:02:51 alankila: hopefully it was at least top of the line? :) Apr 23 22:03:25 Eh, I don't really pay attention. Its specifications seemed good enough Apr 23 22:03:53 i've got a question to preference-activity - okay ? Apr 23 22:04:03 also I quite liked the headset that came with it. I've been using them since and they only recently broke. :-( Apr 23 22:04:21 Boeby: just go ahead and ask your question; you don't need permission :) Apr 23 22:04:22 so maybe to get a new headset is excuse enough to get either sgs2 or galaxy nexus s. Apr 23 22:04:25 I have a PreferenceFragment with "addPreferencesFromResource(R.xml.preferences);", and one Activity which should display these settings. Which Context in the PreferenceManager.getDefaultSharedPreferences("context") should I use to map these settings ? how do i connect these 2 parts together ? I read lot of tutorials, but i dont understood the connection between the 2 parts. Apr 23 22:04:50 Boeby: Any context Apr 23 22:05:13 Boeby: try getActivity() for the context? Apr 23 22:05:58 I did play with galaxy nexus s and sgs2 on the store and I thought that both of them felt a bit laggy. This does bother me. Apr 23 22:06:34 It's the thing that prevents me from upgrading, that and the fact nexus s seems almost exactly identical to a sgs1 running 4.0.4. The display resolution is higher but physical dimensions almost the same Apr 23 22:07:11 does anyone know how to override file loading in a webview? Apr 23 22:07:12 SimonVT, alankila, hmm okay.. but what happens if I have a second PreferenceFragment ? any idea why the context here is needed ? - it looks unnecessary imho.. Apr 23 22:07:14 somehow subjectively it feels like spending cash to get exactly the same phone again :-p Apr 23 22:07:48 Boeby: I hope your preferences have unique keys to them. If not, you indeed need to define a method that returns an appropriate preferencemanager as you need Apr 23 22:08:21 can a webview be used on a 2.2 android version to allow the app to load custom data Apr 23 22:08:21 i'm hoping with the emu improvements, speedup, and future bt support, i never have to buy another android device for development again :D Apr 23 22:09:05 getPreferenceManager().setSharedPreferencesName() is what I use to fix the name actually. Apr 23 22:09:19 Boeby: by default preferenceactivity/preferencefragment saves settings to the default sharedpreferences Apr 23 22:09:26 (I have pretty much the same prefs screen 3 times for 3 different configuration groups.) Apr 23 22:10:14 alankila, I will use unique keys.. for the first test i will use the default preferencemanager Apr 23 22:10:37 Boeby: that's probably alright. PreferenceFragment is designed to pretty much just work, I guess Apr 23 22:10:55 SimonVT, okay, I will do some tests.. Apr 23 22:11:32 alankila, SimonVT - Thanks for your replies Apr 23 22:12:00 Is there a flag of some sort that lets me run one section of code when developing in the simulator or over usb, and another bit of code when exporting the app for the market? Apr 23 22:13:11 emulator, not simulator Apr 23 22:13:30 and no, you can't tell from code whether you're running in the emulator or on a real device Apr 23 22:13:35 why do you want to distinguish? Apr 23 22:14:54 I've tried creatinv a webviewclient and overloading onLoadResource. However, calling loadDataWithBaseUrl doesn't seem to stop the webview from trying to load the url on its own and failing. Someone got an idea how to work around this? Apr 23 22:16:33 * alankila wonders again if android-x86 project and its virtualbox images have produced anything worthwhile Apr 23 22:16:50 they're fast for one thing Apr 23 22:16:54 a lot of people complain about the emulator, but I guess the alternatives are even worse Apr 23 22:18:34 alankila: technically it's what runs the "intel atom" image, in a way Apr 23 22:21:57 roler: you could always check for the debug flag in the manifest within your app. Apr 23 22:22:14 hey guys i have a git server running linux and I want to push my local workspace projects in eclipse onto that git and use git from within eclipse. i've been googling around and can't find someone that says how to do this Apr 23 22:22:29 lov; is that what I see here? http://stackoverflow.com/questions/7427906/android-testing-vs-production-version Apr 23 22:22:48 looks like it. Apr 23 22:25:13 roler: yes, that's what lov was talking about Apr 23 22:25:34 thanks guys Apr 23 22:25:37 i *believe* the Play store will now warn you if you publish an .apk with 'debuggable' turned on Apr 23 22:25:52 it'll let you do it, but warn you about it (because of course typically it isn't actually what you want) Apr 23 22:27:17 yay! im not going to be an apple employee any time soon Apr 23 22:32:05 nobody uses git? Apr 23 22:32:29 many people here use git Apr 23 22:32:53 and it is becoming increasingly popular both at companies and among hobbyists who have historically been using things like svn Apr 23 22:33:12 do you use it ctate, and do you integrate it with eclipse? Apr 23 22:33:14 people who still use SourceSafe are beyond redemption Apr 23 22:33:23 i've got a git server running on my linux box Apr 23 22:33:36 i want to push my workspace from eclipse onto the git server using eclipse Apr 23 22:33:41 i do use git (only in conjunction with gerrit/repo) and do not use any Eclipse integration whatsoever Apr 23 22:33:45 And here I thought you were all down on git ctate :> Apr 23 22:33:48 i can't find a good page on google that explains this thoroughly Apr 23 22:33:54 hesperaux: #git might be a bigger help Apr 23 22:34:02 lov: all of that can be true and i can still hate it :) Apr 23 22:34:02 i'll see if they know Apr 23 22:35:03 hesperaux: newer versions of eclipse come with egit built in Apr 23 22:35:20 i have egit installed, yeah Apr 23 22:35:30 so you just check out a project :) Apr 23 22:35:37 but it really wants to create a local repository and offers no obvious way to link to a remote one Apr 23 22:35:50 you need to initialize git Apr 23 22:35:56 i have done so Apr 23 22:36:10 i also created a blank repository for this first project and added a commit for a test file Apr 23 22:36:36 does eclipse give any errors or log anything? Apr 23 22:37:01 what confuses me is 1) how to add my existing code to the git server through eclipse and 2) how to even add the remote repository aside from trying the "Import" function Apr 23 22:37:18 i dont use git often myself and only by command line, so im not entirely sure about eclipse integration Apr 23 22:37:29 birbeck, i did all of that from ssh. I don't even know where to add this repo in eclipse =/ Apr 23 22:37:34 eclipse has a "share project" option Apr 23 22:37:45 under the team menu when you right click your project Apr 23 22:37:52 typically IDEs expect a valid working copy Apr 23 22:37:57 birbeck, that's the wizard that when I try to use it, it only wants to make a local git repo (on this comp) Apr 23 22:38:58 i.e., they don't offer 'add to source control', except maybe in a new project wizard Apr 23 22:40:02 wongk-home: both eclipse and idea have a add to repository feature Apr 23 22:40:19 i'm asking in #eclipse now. Apr 23 22:40:24 in eclipse: project > team > share Apr 23 22:41:16 birbeck, look at the first useful dialog of that wizard. It does not have any input fields for a remote server, only a local git directory Apr 23 22:43:27 hesperaux: have you ever used git? Apr 23 22:45:01 birbeck, earlier today was my first time Apr 23 22:47:10 hesperaux: it doesnt work like svn or cvs Apr 23 22:50:33 there is not necessarily any upstream repository Apr 23 22:50:46 and in fact 'upstream' is a slippery concept with git Apr 23 22:53:34 isnt upstream just what people often call certain remote branhces? Apr 23 22:53:40 err.. not branches Apr 23 22:53:43 <`michael`> I own a horse. Apr 23 22:53:44 but remote...repos? Apr 23 22:54:32 hey Apr 23 22:54:34 I have a problem Apr 23 22:55:02 when I have activity A, B and C and C on top, now when I try to launch activity A from C, android tried to launch B instead Apr 23 22:55:06 I wonder why Apr 23 22:56:07 you did something wrong Apr 23 22:56:30 half my electricity bill is shit like "meter fee" and "administration fee"... fuck this shit Apr 23 22:57:15 canadiancow, maybe you should use more electricity? Apr 23 22:57:18 wrong? it worked for other new activities before now suddenly calling an activities that exists in the stack doesn't work anymore Apr 23 22:57:18 get your money's worth? lol Apr 23 22:57:34 and I use a normal launch mode Apr 23 22:57:35 hesperaux, but that costs more and serves no purpose :( Apr 23 22:57:44 stick it to the man! Apr 23 22:57:46 so it should create a new instance of that activity Apr 23 22:58:12 or you could create a customized wire loop and induce currents from nearby power lines to harvest other people's energy Apr 23 22:58:24 it could be done fairly discretely Apr 23 22:58:55 lol Apr 23 22:59:06 my building gives me free hot water Apr 23 22:59:19 i wonder if i could use the heat for a generator of some sort Apr 23 22:59:21 :D Apr 23 22:59:28 just leave my shower running 24/7 and get free electricity Apr 23 23:02:27 I believe there was an xkcd about this Apr 23 23:04:05 thanks guys Apr 23 23:04:37 "discretely" == things being quite separate from one another Apr 23 23:04:44 "discreetly" == surreptitiously Apr 23 23:04:47 HTH Apr 23 23:04:58 lov: http://xkcd.com/221/ - related to earlier Apr 23 23:07:15 hey. would anyone mind taking a look into this? http://forum.xda-developers.com/showthread.php?t=946834&highlight=digitizer Apr 23 23:08:03 Fraz: uh Apr 23 23:08:09 you know this isn't #android or #android-root right Apr 23 23:08:19 this is app developer talk for app developers Apr 23 23:08:25 k Apr 23 23:08:26 -dev-dev Apr 23 23:08:35 thought it was for all dev stuff related to android Apr 23 23:08:35 we develop developers Apr 23 23:08:40 app-development, Fraz Apr 23 23:08:41 app dev stuff* Apr 23 23:08:54 who's in charge of the topic :0 Apr 23 23:08:55 i mean, to address the question at hand, yes; many phones have crappy touch panels Apr 23 23:08:59 that may well be one of them Apr 23 23:09:03 xorgate: i am. Apr 23 23:09:08 Fraz: are you an OEM? Yes/no Apr 23 23:09:12 * ctate flexes the +o Apr 23 23:09:14 if yes, you may discuss touch panel performance. Apr 23 23:09:18 If no, get out. Apr 23 23:09:34 ctate how about not having the current OLD stuff and put something more relevant in place :0 Apr 23 23:09:35 well further on in the thread, theres mention of driver problems Apr 23 23:09:41 and some info from the drivers Apr 23 23:09:43 xorgate: suggestions welcome Apr 23 23:09:46 .... and? Apr 23 23:09:53 Fraz: this is #android-dev not #android-circlejerk Apr 23 23:09:55 SURPRISE! Apr 23 23:09:58 Oems make horrible things! Apr 23 23:09:59 ctate, if you change topic don't remove the awesome comic. Apr 23 23:10:01 ctate something about being for app dev (not rooting etc) preferrably Apr 23 23:10:05 hesperaux: have no fear Apr 23 23:10:09 im answering ctate Apr 23 23:10:09 19:10:11 < hesperaux> ctate, if you change topic don't remove the awesome comic. Apr 23 23:10:22 xorgate: you mean like where it says "Android application development!" ? Apr 23 23:10:43 ctate sure, without the starting stuff Apr 23 23:10:44 ctate: how about making that first? :) Apr 23 23:10:45 Does eclipse adb tools automatically zipalign now when you export an apk? Apr 23 23:11:07 like every day 20 people need to be pointed to android-root Apr 23 23:11:17 why they come here i dunno Apr 23 23:11:30 btw lov. hi-five for being a troll Apr 23 23:12:00 so i came to the wrong channel. big deal Apr 23 23:12:08 ... Apr 23 23:12:22 yay! Apr 23 23:12:31 great! Apr 23 23:12:33 ctate, one more change: /mode #android-dev +v canadiancow Apr 23 23:12:36 3) profit! Apr 23 23:12:58 hi five! Apr 23 23:13:00 canadiancow: nice try Apr 23 23:13:06 oh well Apr 23 23:13:28 lov? :D Apr 23 23:13:57 que? Apr 23 23:14:10 ctate forgot to run: /mode #android-dev +v canadiancow Apr 23 23:14:33 T_T Apr 23 23:14:37 oh, shoot. Apr 23 23:14:41 was that not right? Apr 23 23:14:47 better get rid of that before I hurt myself Apr 23 23:15:08 others, no big deal Apr 23 23:16:43 man 6/10 top paid apps are games Apr 23 23:16:55 well, he's gone, but a general cautionary public service announcement: there's a ton of uninformed cargo culting on xda. it's pretty stunning. Apr 23 23:17:06 xorgate: only six? :) Apr 23 23:17:15 scramble with friends in there? :) Apr 23 23:17:19 How do I expand a log in logcat? there are some log backtrack it will try to hide from me with "more ..." Apr 23 23:18:54 you can't Apr 23 23:18:56 it's unpossible Apr 23 23:22:02 UNPOSSIBLE Apr 23 23:22:13 pen: what you see is what's actually emitted to logs, sorry. Apr 23 23:23:02 :( Apr 23 23:23:07 logcat works Apr 23 23:23:08 sucks Apr 23 23:23:09 :P Apr 23 23:23:18 i'll suck your logcat Apr 23 23:23:35 do it!! Apr 23 23:23:44 ... Apr 23 23:23:57 I wish there was a way I could -v you even further Apr 23 23:24:15 anyway, if I have activities A, B and C, how do I launch another new instance of activity A on top of C again? so far I can't and it will always try to launch B Apr 23 23:25:13 startActivity(new Intent(context, A.class)); Apr 23 23:25:59 also read (carefully) the documentation about the various flags you can pass in the intent, and declare in your manifest, that affect activity starting and task management Apr 23 23:26:54 it kind of sounds like you might be specifying some launch flags / manifest properties, to get the behavior you're describing Apr 23 23:32:08 what tool can I use to verify the resources in an apk actually map back to R.java values? Apr 23 23:32:16 aapt d resources doesn't seem to indicate ids Apr 23 23:32:42 o.O Apr 23 23:32:45 you think the build system is broken? Apr 23 23:33:26 my build system is broken Apr 23 23:33:28 that's different Apr 23 23:36:04 lawl scala :> Apr 23 23:36:11 has nothing to do with scala Apr 23 23:38:24 ah, aapt d --values resources Apr 23 23:39:23 yep Apr 23 23:39:36 spec resource 0x7f06004a Apr 23 23:39:50 public static final int button_accept=0x7f08004a Apr 23 23:39:54 * pfn wonders how he broke it Apr 23 23:50:37 i've had resource ids get foobared in the past; didn't have to do anything at all but add any id to an xml file and deploy --> kaboom Apr 23 23:50:54 clean always fixes that , though Apr 23 23:55:05 g00s: yeah, that sounds like an Eclipse / ant level bug Apr 23 23:56:22 yeah, but I'm doing something else, of course :p Apr 23 23:57:27 i have a program that used to work, and now it doesnt Apr 23 23:57:37 it loads a ~10GB database into RAM, and then... Apr 23 23:57:43 database has grown too quickly :( Apr 23 23:58:12 g00s, yea, i was going to say clean to fix Apr 23 23:58:39 10 GB? Apr 23 23:59:09 fun fact: i have less than 10GB of physical RAM Apr 23 23:59:23 and i just havent had time to optimize it Apr 23 23:59:31 i odnt need to load everything, it was just easier when iwrote it :( Apr 24 00:01:45 "A new poll of 600 people found that 11 percent of bachelors would rather own the latest in Apple tablet tech than find a new lover. Three percent of the surveyed single men even said they would leave their lovers to get the latest iPad." Apr 24 00:01:49 .. Apr 24 00:01:52 Anyone here have thoughts on http://stackoverflow.com/questions/10289952/android-listview-and-edittexts-with-live-data Apr 24 00:01:59 g00s: sampling bias much? Apr 24 00:02:38 i am currently loverless, and if the tablet was free, i'd take that over an immediate hookup Apr 24 00:02:54 you have to define "lover" Apr 24 00:02:57 like..."wife"? Apr 24 00:03:00 or "girl i sometimes fuck" Apr 24 00:03:07 heffer Apr 24 00:03:08 well this channel does have around 600 members Apr 24 00:03:26 *heifer Apr 24 00:03:51 g00s: ... Apr 24 00:03:57 haha Apr 24 00:04:11 some of us are not bachelors :) Apr 24 00:04:12 canadiancow: but you wouldn't exchange a iPad for a red heifer , i would bet Apr 24 00:04:42 im still not convinced of tablets Apr 24 00:04:48 im getting into ebooks, so they might be nice for that Apr 24 00:04:56 but they're too big to hold on a crowded subway easily Apr 24 00:05:10 heavier than i'd want to hold for long when im out Apr 24 00:05:11 canadiancow: who are you buying your ebooks from? i'm reluctant to get too sucked into any silo, like amazon Apr 24 00:05:14 too big to put in my pocket Apr 24 00:05:20 i bought part 1 of a book from google Apr 24 00:05:23 then they didnt have part 2 Apr 24 00:05:27 so i got suckered into kindle Apr 24 00:05:28 T_T Apr 24 00:05:35 like fuck google... TAKE MY MONEY Apr 24 00:05:55 i was looking around on play for ebooks, and they mention under features 'scanned' or 'scanned' plus reflowable text, ... Apr 24 00:05:59 I dunno, I like anyone that uses epub Apr 24 00:06:02 i'm wondering what they mean by scanned Apr 24 00:06:04 mostly ibooks Apr 24 00:06:10 g00s, exactly what it sounds Apr 24 00:06:16 reflowable isnt bad Apr 24 00:06:20 but i dont like the "pages" Apr 24 00:06:24 just keep scrolling down indefinitely Apr 24 00:06:29 this isnt a fucking paper book Apr 24 00:06:30 canadiancow: but most scanned stuff i sees looks aweful Apr 24 00:06:39 reflowable text isnt "scanned" like that Apr 24 00:06:47 g00s: I'm what is popularly called "Forever Alone", and slightly more professionally "Involuntarily Celibate". iPad doesn't have that big worth to me ;) Apr 24 00:06:50 but both google and amazon suck with italics Apr 24 00:06:54 g00s: that's for titles that were scanned and OCRed, but i am nto sure whether any of that actually became available for sale what with the lawsuit and all Apr 24 00:06:57 words get fucked, like italicnormal Apr 24 00:06:59 with no space Apr 24 00:07:47 also: page turn animation? Apr 24 00:07:48 4srs? Apr 24 00:07:59 page turning is a DRAWBACK of having text on multiple physical pages Apr 24 00:08:11 ctate: like this, https://play.google.com/store/books/details/Michael_Freeman_The_Photographer_s_Eye Apr 24 00:08:23 dont waste time, cpu, ram, etc to emulate a drawback of a 2000 year old technology Apr 24 00:08:31 We're sorry, the requested URL was not found on this server. Apr 24 00:08:37 <_Auron_> canadiancow: what about 70 year olds using it? Apr 24 00:08:44 let me turn it off? Apr 24 00:08:54 <_Auron_> oh, you can't? Apr 24 00:08:56 oope, link broken. https://play.google.com/store/books/details/Michael_Freeman_The_Photographer_s_Eye?id=00kVEuoSb9QC&feature=search_result#?t=W251bGwsMSwyLDEsImJvb2stMDBrVkV1b1NiOVFDIl0. Apr 24 00:09:24 g00s i dont even have the option to buy that Apr 24 00:09:27 oh, maybe because it has illustrations, g00s Apr 24 00:09:48 there needs to be some sourt of 'cloud reader' so i can preview the book Apr 24 00:09:48 oh you know what, the ones i bought are "flowing text" Apr 24 00:09:53 g00s, there is... Apr 24 00:09:58 oh wait, lemme see that Apr 24 00:10:47 yeah, this has the same problems as the kindle version Apr 24 00:10:52 ? Apr 24 00:11:00 somebody pressed 'make my ebook' and just uploaded it Apr 24 00:11:10 canadiancow: oh, not the previewer Apr 24 00:11:15 oh Apr 24 00:11:16 lol Apr 24 00:11:19 the actual book itself Apr 24 00:11:40 they need to get rid of "pages" Apr 24 00:11:41 fuck Apr 24 00:11:42 for example, wtf is this ? http://play.google.com/books/reader?id=00kVEuoSb9QC&printsec=frontcover&output=reader&hl=en&pg=GBS.PT19 Apr 24 00:11:56 No eBook available Apr 24 00:12:02 ah Apr 24 00:12:14 anyway dinner time Apr 24 00:12:20 hi Apr 24 00:12:38 how long does it take the googlep[lay webpage to reflect whats going on in publisher account?> Apr 24 00:19:03 this is pretty freaking cool http://hardware.slashdot.org/story/12/04/23/2128235/startup-claims-c-code-to-soc-in-8-16-weeks Apr 24 00:20:18 I second that Apr 24 00:21:44 ugh, stupid chrome for android Apr 24 00:21:58 it prompted me asking that "this site is requesting to download multiple files" Apr 24 00:22:01 I clicked deny on accident Apr 24 00:22:06 now I can't download files from that site :( Apr 24 00:24:40 its all over http://digg.com/newsbar/topnews/prototype_quadrotor_with_machine_gun Apr 24 00:27:06 Holy crap Apr 24 00:27:12 I hate bugs in my build process Apr 24 00:27:16 but yay, it's resolved! Apr 24 00:28:07 *blargh* Apr 24 00:28:08 now to figure out how to make my chrome download stuff again Apr 24 00:28:10 JEEZ that thing is potent Apr 24 00:28:23 http://developer.android.com/guide/webapps/targeting.html -- this information is extremely misleading... Apr 24 00:29:10 it gives you the sense that you can precisely specify the viewport width using the meta tag, however it would seem that for certain screen properties that isn't true. Apr 24 00:29:30 ? Apr 24 00:29:30 on the galaxy nexus, for instance, width=320 in the meta viewport causes the viewport to have a width of 360, curiously the actual device width (720) divided by 2. Apr 24 00:29:33 your mom is misleading Apr 24 00:29:36 (oh burn) Apr 24 00:29:55 I guess force killing it lets it download again Apr 24 00:30:00 yay for non-persisted settings Apr 24 00:30:54 can anyone fill me on how to protect my app Apr 24 00:30:59 i.e copyright Apr 24 00:31:11 or is it already protected once on the market Apr 24 00:31:21 well.. copyrighting would be "legal" advice right? we arent legal :P Apr 24 00:32:30 any suggestions? Apr 24 00:32:46 Seek out legal advice from someone who knows that kind of stuff? Apr 24 00:33:35 speaking very generally, in most parts of the world where Android apps are available, everything is automatically copyrighted Apr 24 00:33:53 ty ctate Apr 24 00:33:56 but i am not a lawyer, might be wrong in important respects, and if this matters significantly to you then you need some more expert advice Apr 24 00:34:51 hmm, this viewport problem is really not good Apr 24 00:34:56 does anyone know the logic here? Apr 24 00:34:57 * lov sues ctate Apr 24 00:35:24 why would a 480x800 device be able to support a webview viewport of 320, but a 780x1280 device could not? Apr 24 00:35:35 it's not like this a factor of 2 scaling issue, 480 => 320 is 2/3 Apr 24 00:36:19 maybe it's just applying the dpi scaling factor Apr 24 00:36:27 seems like it Apr 24 00:37:12 so that's just a 2x scaling from mdpi, hmm Apr 24 00:38:58 just write an Android app instead :) Apr 24 00:39:10 you know of course that i am ;) Apr 24 00:39:19 as opposed to a webapp Apr 24 00:39:23 i have a small presentation layer piece that i'm trying to use html for Apr 24 00:39:31 (i know, i know) Apr 24 00:39:32 just like google does ;) Apr 24 00:39:57 the problem is that WebView is a fairly capable and shiny hammer Apr 24 00:40:13 i think this can be done by just adjusting my layout to be more elastic Apr 24 00:40:27 compensating for an extra 40 pixels not present on other handsets, which is assuredly necessary in lots of scenarios anyway Apr 24 00:40:34 so i guess this is necessary to solve regardless Apr 24 00:51:09 whats good for the heart is good for the brain :) http://www.nytimes.com/2012/04/22/magazine/how-exercise-could-lead-to-a-better-brain.htm?_r=1 Apr 24 00:51:47 "'Brain' and 'brain' -- what is 'brain'?" Apr 24 00:52:21 <.< Apr 24 00:52:24 >.> Apr 24 00:52:26 http://www.youtube.com/watch?v=6o7UDpn1mKI Apr 24 00:52:57 poit? Apr 24 00:53:02 narf. Apr 24 00:54:22 what an odd lead-in picture Apr 24 00:55:10 heh, yeah wtf Apr 24 00:55:49 I've browsed through the docs but didn't really find an answer for this. When I create 3 threads and start them, they're all done synchronously. Is this just how Java works, or and Android-specific detail, or I'm looking at something wrong? Apr 24 00:55:59 you're doing it wrong Apr 24 00:56:14 running 3 independent threads is not synchronous Apr 24 00:56:32 Threads run at random, its really up tothe scheduler Apr 24 00:56:53 Looking at the logs for when the threads start/end, I'm not seeing overlaps heh Apr 24 00:57:30 yeah, you're doin' it wrong Apr 24 00:57:36 vadi2, jcip, read it, love it Apr 24 01:00:02 this might actually come down to the way the logging occurs, rather than how your threads are being executed Apr 24 01:00:35 you can't log stuff out of order Apr 24 01:00:57 "Lady fired after donating kidney to boss" Apr 24 01:01:01 .. Apr 24 01:01:05 .. .. .. .. Apr 24 01:01:16 whoa Apr 24 01:02:27 ok, slightly more on topic http://www.fiercedeveloper.com/story/enterprise-mobile-developers-we-need-business-apps/2012-04-20 Apr 24 01:02:35 maybe i posted this one already Apr 24 01:04:53 oo.. thanks for that g00s.. that may help me.. Apr 24 01:04:53 Is the market down for maintenance? I can't seem to access any of my apps in the dev console Apr 24 01:05:05 I need something to do for Senior Design and coming up with a viable idea isnt easy Apr 24 01:05:16 it's always hard coming up with viable ideas Apr 24 01:05:44 I really just wanna graduate >_>; Apr 24 01:06:27 another interesting article http://www.fiercedeveloper.com/story/sensor-based-apps-offer-lots-potential-are-hindered-fragmentation/2012-04-20 Apr 24 01:06:50 * g00s looks at Sensirion's website Apr 24 01:13:44 Is there any sort of a pre-build hook in ADT for Eclipse? Apr 24 01:13:58 Or Eclipse? I don't know how this works. Apr 24 01:14:07 not really Apr 24 01:14:15 maybe there's some options Apr 24 01:14:16 * pfn shrugs Apr 24 01:14:22 build with ant Apr 24 01:14:35 and yeah, build with something other than eclipse Apr 24 01:14:42 just use eclipse to write code, create builds elsewhere Apr 24 01:14:52 I switched from ant to eclipse, it was more convenient and seemed quicker Apr 24 01:15:09 you went the wrong way Apr 24 01:15:15 heh. Apr 24 01:16:09 indeed Apr 24 01:24:25 This is weird. I'm able to access app statistics, comments etc. But I cannot edit them. The link simply doesn't have a href. Does anyone know how I can fix this? Apr 24 01:26:31 why would you be able to edit them Apr 24 01:27:10 Well usually I can click on the title to edit the description, upload a new APK etc Apr 24 01:29:01 oh, I thought you wanted to edit your users comments & your app stats. That's what it sounded like. Apr 24 01:29:19 Sorry, misphrased Apr 24 01:29:49 maybe it's temporarily broken Apr 24 01:29:50 * pfn shrugs Apr 24 01:30:00 Should have gone to bed for like 4 hours ago, but really want to push this update. And now suddenly the Market wants to be.. temporarily evil Apr 24 01:31:17 i don't get this. git is supposed to be easy right? wtf? Apr 24 01:31:34 oh yes, another sale. Apr 24 01:31:36 i must be missing something fundamental Apr 24 01:31:43 hesperaux: what is supposed to be easy Apr 24 01:31:52 using git Apr 24 01:32:00 basic use is easy, yeah Apr 24 01:32:03 whoever told you that was lying through their teeth Apr 24 01:32:17 just to start a project and make commits is easy Apr 24 01:32:26 using it effectively isn't Apr 24 01:32:30 git is full of subtle pitfalls and it's really easy to get yourself into heavy trouble Apr 24 01:32:31 i want to edit code from two locations and push/pull the changes Apr 24 01:32:31 Is it a requirement to set up user accounts now? I'm listed as the account owner? Surely that's good enough to manage the apps? Apr 24 01:32:51 hesperaux: and the problem you're running into is? Apr 24 01:32:57 honestly, i don't even know Apr 24 01:33:19 git init; git add;git commit -a; git push; git pull--all you really need to know Apr 24 01:33:29 one of them is that i have to force update whenever i push from eclipse or it gives me an error: something-fast-forward Apr 24 01:33:38 hi Apr 24 01:33:42 git isn't happy when you push into a live repo Apr 24 01:33:51 i would recommend using git on the commandline until you are comfortable with it Apr 24 01:33:54 if you push into a live repo, you need to git reset --hard in the live repo Apr 24 01:33:56 how is it live? what does that even mean? Apr 24 01:33:58 and git status and git log Apr 24 01:33:59 is the android console down? Apr 24 01:34:07 hesperaux, means a repo that also contains a working copy Apr 24 01:34:15 fleend00d: skfax has the same problem atm Apr 24 01:34:27 ok, good Apr 24 01:34:31 a working copy... Apr 24 01:34:41 thx Apr 24 01:34:42 e.g. 1 computer has a git repo that you work with directly, you have a second computer that has the same, if you push from the second into the first, or vice versa, you'll need to git reset --hard in the repo you pushed into Apr 24 01:34:44 meaning i have one of the files open? Apr 24 01:34:50 hesperaux, meaning a non-bare repo Apr 24 01:34:52 well, no. but good to confirm the issue :> Apr 24 01:34:54 i.e. if you didn't git init --bare Apr 24 01:35:14 bare repos are for pushing into regularly Apr 24 01:35:18 ya, can't edit my apps. Apr 24 01:35:19 non-bare repos aren't Apr 24 01:35:37 fleend00d: same thing. can access statistics/comments etc Apr 24 01:36:00 http://gitready.com/ is actually a fairly neat resource Apr 24 01:36:05 the only way i got this to kinda work was to SCP my local git repo from Eclipse to the server, then clone it as --bare, and now I *think* i'm using the cloned --bare repo Apr 24 01:36:19 ctate: ah, nice Apr 24 01:36:34 when i look into the directory on the server, though, my files aren't even in the cloned --bare repo, just a bunch of git files that i cannot decipher Apr 24 01:36:43 hesperaux, that's what a --bare repo is Apr 24 01:36:46 the old repo on the server (which I had scp'd over) is the only one that has my actual src Apr 24 01:36:47 hesperaux, you don't see your files Apr 24 01:37:03 --bare = git metadata containing all of your sources Apr 24 01:37:05 what does it do then? keep diffs? Apr 24 01:37:14 hmm Apr 24 01:37:17 essentially Apr 24 01:37:33 it doesn't need to keep your sources in "normal" form Apr 24 01:37:34 #git Apr 24 01:37:38 "So, how does one create a tag? Just git tag v1.0.0 right? WRONG. You usually don’t want to do that." <-- sums up git for me Apr 24 01:37:40 ^ Apr 24 01:37:41 it's already packed into its own dataformat Apr 24 01:37:45 so when I commit to the local repo in eclipse, then push that to the --bare repo, i am probably actually updating it, i just can't tell? Apr 24 01:38:00 i was in #git, but they won't talk to me. #eclipse won't either Apr 24 01:38:04 hesperaux, yes, when you push into the bare, it's sending all the updates Apr 24 01:38:10 hesperaux, and when you pull from it, you get all updates Apr 24 01:38:15 easy-as-pie Apr 24 01:38:59 so is there anything bad about using a bare repo all the time? If not, how would I copy out my source files from it later? Would I just clone the --bare into a non-bare and get my source that way? If this is a problem I can talk in a /query with you pfn. Apr 24 01:39:14 hesperaux, you clone from a bare repo Apr 24 01:39:22 no queries Apr 24 01:39:24 unless you're paying me :p Apr 24 01:39:38 g00s, that seems rather out of context Apr 24 01:39:43 i say that because people are complaining about the /topic Apr 24 01:39:58 i didn't see anyone complain Apr 24 01:40:03 jeppy_ did Apr 24 01:40:06 who cares Apr 24 01:40:07 jeppy_, advised me to go to #git Apr 24 01:40:15 this is more on topic then "OH HAI, HOW DO I DEV FOR ANDROID" Apr 24 01:40:19 so lets talk about it Apr 24 01:40:25 i only said "#git", not really complaining Apr 24 01:40:35 hesperaux, anyway, the bare repo is what you push and pull from, that's all it is Apr 24 01:40:43 readme, i've been banned from channels before for not being on /topic. it's hard to tell which channels will be a pain in the ass about that. Apr 24 01:40:46 hesperaux, it contains all of your sources, just not in a "readable-to-you" format Apr 24 01:40:51 now if i said "#git out" (which i considered), that'd be different Apr 24 01:40:52 hesperaux: this channel, fortunately, is not stupid Apr 24 01:41:02 anyway, any more q's before I get bored and wander off Apr 24 01:41:20 pfn, okay, that makes some sense. That being said, why is it complaining about blah-fast-forward or whatever? Apr 24 01:41:33 hesperaux, no idea, you're paraphrasing important stuff Apr 24 01:41:45 i am pushing to the bare repo in eclipse, but i have to check the force update box. Apr 24 01:41:48 my only guess is that you pushed into a non-bare repository Apr 24 01:41:56 and you're using an eclipse plugin Apr 24 01:41:58 which I know nothing about Apr 24 01:42:04 I do all of my git work from commandline only Apr 24 01:42:17 yeah =/ Apr 24 01:42:35 actually, forcing the update is no longer necessary Apr 24 01:42:36 you're better off on cmdline Apr 24 01:42:46 at least until you get the hang of it Apr 24 01:42:47 * pfn really has no desire to cripple his productivity by reducing all interaction to mouse clicks Apr 24 01:43:05 i'd just like this all to be in one coherent tool Apr 24 01:43:06 it's unclear to me which UI elements map to what git command Apr 24 01:43:10 [21:37:38] "So, how does one create a tag? Just git tag v1.0.0 right? WRONG. You usually don’t want to do that." <-- sums up git for me Apr 24 01:43:10 wut? Apr 24 01:43:12 since my dev environment changes Apr 24 01:43:17 if i'm at school on my lappy, i use linux Apr 24 01:43:19 hesperaux: that's against the unix philosophy Apr 24 01:43:21 at home, usually windows Apr 24 01:43:27 hesperaux, coherent dev environment = terminal Apr 24 01:43:28 :p Apr 24 01:43:34 every tool should do one thing and do it well Apr 24 01:43:40 since porting eclipse settings across computers is a massive pain in the ass Apr 24 01:43:50 I use a single terminal I remote into, and everything works dandy Apr 24 01:44:06 I guess I could use VDI to maintain a single remote eclipse instance, but that's pretty lame Apr 24 01:44:09 do you write code in vim? Apr 24 01:44:15 canadiancow|work: from the 'git ready' website under tags Apr 24 01:44:17 not for java Apr 24 01:44:18 99.9% of the time, yeah Apr 24 01:44:27 i used to write all my code in nano Apr 24 01:44:35 now i find eclipse to be extremely useful Apr 24 01:44:41 g00s i dont know what you're talking about, but that absolutely makes a tag. but generally you want -a i think Apr 24 01:44:55 yeah, thats what he is saying Apr 24 01:45:11 git is more complicated than svn Apr 24 01:45:11 git tag vX is absolutely useful Apr 24 01:45:15 bah Apr 24 01:45:19 but to learn the equivalent of what svn can do takes like....not long Apr 24 01:45:24 but then git can do soooooooooooo much more Apr 24 01:45:27 to create a tag in svn it's git cp somebullshit somebullshit/tags/v1.0 Apr 24 01:45:35 seriously, you call that intuitive? Apr 24 01:45:47 thats lamesauce Apr 24 01:45:54 lol Apr 24 01:46:06 yea Apr 24 01:46:17 i cant really see how tagging is harder on git Apr 24 01:46:28 anyway, i can't keep my eyes open much longer. i have to sleep. thanks for clearing up that git junk, though Apr 24 01:46:30 I have an activity which is displaying list from a database. I created a menu option for deleting the databse and on deletion I am starting my activity again (as a refresh) its working fine. I overrided the onBackPressed() method to go to Android Home screen. Now if I am going to menu and starting my application I am seeing that data again. I have to refresh to clear that data from the list, why is this happening? Apr 24 01:46:35 git tag v1.0 works perfectly fine Apr 24 01:46:40 you'll want to go back later and annotate it Apr 24 01:46:45 but by itself, it does exactly what you expect Apr 24 01:46:50 skfax another symptom. Searched my app names and one was missing in the results. One small heart attack later I found it listed in "other apps" at one of my other apps Apr 24 01:46:52 it marks a version with a tag name Apr 24 01:46:58 +1 Apr 24 01:47:02 people expect a tag to be more, so they say it's "wrong" Apr 24 01:47:04 e.g. -s or -a Apr 24 01:47:27 c2tarun, i'd make a guess that it's onUpdate() that's causing the problem. did you run notifyDataSetChanged()? Apr 24 01:47:35 but i'm noob Apr 24 01:47:45 * pfn go home & Apr 24 01:48:00 hesperaux, I didn't use the two methods Apr 24 01:48:40 onUpdate() is ran automatically if your app's memory space was preserved between you closing it and reopening it (i.e. if appDestroy() wasn't called by the framework) Apr 24 01:48:59 and the default behavior might restore the old data unless you override onUpdate(). Apr 24 01:49:03 hesperaux, here is my code http://pastebin.com/0Vxm4JVJ can you please take a look Apr 24 01:49:22 wtf are onUpdate() and appDestroy()? Apr 24 01:49:39 do you mean onResume() and onDestroy() ? Apr 24 01:49:40 and if you're using an adapter to provide the list views of your DB data, you have to call notifyDataSetChanged() or whatever Apr 24 01:49:45 t0mless, yeah that's what i meant. sorry lol Apr 24 01:49:57 i should just go to bed now xD Apr 24 01:50:05 hesperaux, and I am refreshing and displaying my activity just after deletion. so it should keep that clear activity in memory right? Apr 24 01:50:36 i'm not sure i understand what you're asking, c2tarun Apr 24 01:50:57 i think i'll have to pass that to t0mless or somebody else cuz i have to sleep or i'll say very bad things :D Apr 24 01:51:08 hesperaux, you are also going to bed :) its better I wait for someone :) Apr 24 01:51:08 besides, they know much more about it than I do Apr 24 01:51:20 sure, thanks hesperaux Apr 24 01:51:29 yep. bye everyone Apr 24 01:51:53 where is this menu item you're talking about c2tarun? Apr 24 01:51:57 I don't see it in that code Apr 24 01:52:10 just a second its in BaseActivity Apr 24 01:52:44 t0mless, http://pastebin.com/SvGxgukW Apr 24 01:52:57 is anyone else having trouble uploading new versions or updating info on their apps in google play right now? Apr 24 01:53:20 someone was having an issue getting into the dev console earlier Apr 24 01:53:22 I haven't tried today Apr 24 01:53:36 t0mless, I know it might be very dirty code, I mean this is my first app and I am making it for practice :| Apr 24 01:53:40 i3339: Yes, can't update apps Apr 24 01:54:06 has this happened before? any guesses on when it will be up? Apr 24 01:54:51 c2tarun me too. first (well, first and second. lite and pro, if u know what I mean) Apr 24 01:55:12 i3339 ya, can't edit my apps Apr 24 01:55:30 google is banjacked for the indefinitude Apr 24 01:55:32 :) Apr 24 01:55:42 everybody smoke up Apr 24 01:58:49 t0mless, did you get anyidea what I am doing wrong?? Apr 24 01:59:15 I'm still trying to figure out your reasoning Apr 24 01:59:51 you mean the code?? Apr 24 02:00:36 i3339: fleend00d: I can update now :) Apr 24 02:01:27 skfax yay, me too. works Apr 24 02:01:48 Yea... there is a lot of stuff happeneing in other places that could be your issue Apr 24 02:02:05 but mainly, instead of restarting your activity, you should just update your adapter Apr 24 02:03:19 also, showDialog() is depreciated Apr 24 02:05:55 t0mless, updating adapter will automatically update the view? Apr 24 02:06:08 if you use notifyDataSetChanged() Apr 24 02:06:09 yes Apr 24 02:06:51 * c2tarun checking docs Apr 24 02:13:39 now its a problem :( I have adapter in different class and menu in different class :( Apr 24 02:15:22 That's your own fault Apr 24 02:17:01 t0mless, yup :( I thought I may extend BaseActivity to other activities so that menu gets there as well :( Apr 24 02:17:37 you could still add your menu item in your single activity if you wanted Apr 24 02:17:46 but your entire app structure has me confused Apr 24 02:17:51 so i'm just gunna leave it at that Apr 24 02:18:13 t0mless, me too confused now :( Apr 24 02:18:22 * c2tarun now understood why trainer is important Apr 24 02:19:10 anyway thanks t0mless I'll try to fix this issue :) Apr 24 02:19:17 I might have to do some major changes Apr 24 02:20:02 t0mless, just one last help, when I'll delete data from the DB from them I have to call adapter.notifyDataSetChanged() and it will refresh the view right? Apr 24 02:20:16 No Apr 24 02:20:23 you need to update the data in the adapter first Apr 24 02:20:29 then call notifyDataSetChanged Apr 24 02:20:37 okay :) thanks Apr 24 02:20:54 Hello i have a quick question i am trying to grab the android source for 2.3.6_r1 Apr 24 02:21:02 however i can't tell if i grabbed it.. Apr 24 02:21:13 Is it on your harddrive? Apr 24 02:21:21 correct Apr 24 02:21:27 repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.6_r1 Apr 24 02:21:41 i issued this command.. now would that get me the correct tag, and files Apr 24 02:21:49 repo sync Apr 24 02:21:59 i did do repo sync and took about a hour or so Apr 24 02:22:03 is there anything i need to do after? Apr 24 02:22:08 and the files are on your hard drive? Apr 24 02:22:11 yes Apr 24 02:22:16 Then I'd say you got it... Apr 24 02:22:26 any way to confirm its android-2.3.6_r1? Apr 24 02:22:56 Build it? Apr 24 02:24:02 alright then Apr 24 02:25:58 protip: repo sync -j 16 Apr 24 02:26:01 or whatever Apr 24 02:26:06 goes a lot faster :) Apr 24 02:26:18 * ctate uses -j 10 typically Apr 24 02:27:03 * readme has a quad core, but only 4, no virtual cores at all Apr 24 02:28:21 at least -j 4 then, and maybe -j 8 Apr 24 02:28:27 it's largely I/O, of course Apr 24 02:29:59 ctate: is there any way to confirm i got the right tag? Apr 24 02:30:06 also why do i have to download all 7gb?!? Apr 24 02:30:23 possibly something you could do in git to show you the tags Apr 24 02:30:34 a lot of that is binaries that you need Apr 24 02:30:34 whenever i do git anything in the main directory Apr 24 02:30:37 like, say, the compiler Apr 24 02:30:37 i get a git error Apr 24 02:30:40 I've never done an android app, beyond "Hello World". Apr 24 02:30:56 right; you have to go into an actual git package directory like system/core/ or frameworks/base/ Apr 24 02:31:02 then you can do git stuff Apr 24 02:31:09 or build/ Apr 24 02:31:19 so what im trying to do is create my own kernel module Apr 24 02:31:23 where would the kerenl source be located? Apr 24 02:31:28 That said, does android offer any advanced / deeper / C-like, or "system level" apis, for advanced things, like messing with hardware, NFC, wifi, etc. Apr 24 02:31:42 If that makes any sense. Apr 24 02:31:43 err, the kernel source is elsewhere; kernel.org innit? Apr 24 02:31:50 like the rest of the linux source Apr 24 02:31:59 the android kerenl for gingerbread 2.3.6 ? Apr 24 02:32:15 every device has it's own kernel Apr 24 02:32:26 http://source.android.com/source/building-kernels.html Apr 24 02:32:27 http://sourceforge.net/projects/droidrazr.motorola/files/DroidRAZR/6.5.1-73_DHD-11_TA-3/ << so Apr 24 02:32:36 im tyring to compile the droidRazr kernel Apr 24 02:32:56 it says i need a vanilla 2.3.6 source Apr 24 02:33:00 To expand, can I get real access to the hardware, or just a "baby proofed" api, like what android seems to offer in general. Apr 24 02:33:19 ltr Apr 24 02:33:34 IanWizard: http://developer.android.com/ Apr 24 02:33:37 if I start an activity with intent flat REORDER_TO_FRONT I should go to home screen on pressing back on the new activity? Apr 24 02:33:44 there are e.g. NFC APIs Apr 24 02:34:04 ctate: I've looked there breifly, I'm talking about things like, changing transmitter power, or getting raw access. Apr 24 02:34:11 c2tarun you should avoid overriding the back key Apr 24 02:34:24 unless you have VERY good reason to Apr 24 02:34:25 IanWizard: what you see there is what you get. anything else is not supported. Apr 24 02:34:39 t0mless, yeah I realised that :( that is why I was looking into flags Apr 24 02:34:58 c2tarun: no, that does not affect the position of the home app in the task stack Apr 24 02:35:09 read the docs about that flag; it explains what it does with the activities within your task Apr 24 02:35:18 okie Apr 24 02:35:26 You want Intent.FLAG_ACTIVITY_TASK_ON_HOME Apr 24 02:35:28 ctate: Create a workspace containing "vanilla" gingerbread release from Google. Apr 24 02:35:53 ctate, thanks for info :) and I will read the docs :) Apr 24 02:36:03 wildicv: you really want #android-root or XDA or something for this level of work Apr 24 02:36:16 ctate: thank you will do Apr 24 02:36:35 * ctate | Root/custom ROMs, head to #android-root Apr 24 02:36:39 ... it says in the channel topic :) Apr 24 02:37:49 haha Apr 24 02:37:55 nobody hangs out there Apr 24 02:38:21 nevertheless Apr 24 02:51:43 I'm using Log.d, but it's not showing up in LogCat... what am I supposed to be doing? Apr 24 02:52:37 t0mless, I just read this article tasks-and-back-stack and its like lightning bulb :) I fixed the adapter issue by adding a method updateAdapter() and calling that method on resume :) Apr 24 02:53:06 Ginto8: perhaps your code is not actually running? Apr 24 02:53:08 Ginto: you're not reaching that code, then. Apr 24 02:53:25 breakpoints are yor frend Apr 24 02:53:29 or you have some logcat filter Apr 24 02:53:31 Ginto8: do you have your filter set to Debug level in the logcat view? Apr 24 02:53:33 That's what I was thinking, but that seems like a very weird scenario Apr 24 02:54:24 ofc you can always just run 'adb logcat' on a command line :) Apr 24 02:56:22 Howdy. I've inherited an android codebase for a wireless scanning app; and i'm trying to figure out how to call some of the named methods like start and stop from my pc through ADB... Anyone happen to have a few moments to set me straight? Apr 24 02:57:02 one of the devs told me i should start adding intents; but i'm not exactly sure where to start; or where example code might be for such. Apr 24 02:59:16 okay I've determined that the code is being reached, but it's still not showing up, even if I look into "All messages (no filters)" **** ENDING LOGGING AT Tue Apr 24 02:59:58 2012