**** BEGIN LOGGING AT Fri Jun 29 02:59:59 2012 Jun 29 02:59:59 ron_frown: the default settings seem to be the same for the timeouts.. wonder what setting i should set it too.. if network connection drops, i kind of want it to end immediately though. Jun 29 03:00:33 I have seen weird shit like that, when I would create network requests and they'd get orphaned Jun 29 03:00:51 and if I had connection pooling options off Jun 29 03:01:01 also, I've not had much uck with apache httpclient Jun 29 03:01:06 Im trying to make it so I can upload pictures, so once im in the gallery how can i select a picture for upload? Jun 29 03:01:08 that library is pretty much balls Jun 29 03:01:29 TehRealGawd - there is a post abotusharing with intents Jun 29 03:01:39 do you have a link for an example? Jun 29 03:01:45 I know it covers sending our stuff to other social sites Jun 29 03:02:00 oh neverind Jun 29 03:02:05 you need to start intent for result Jun 29 03:02:07 and catch the result Jun 29 03:02:25 http://stackoverflow.com/questions/2507898/how-to-pick-a-image-from-gallery-sd-card-for-my-app-in-android Jun 29 03:02:30 answer 1 Jun 29 03:02:31 and hen Jun 29 03:02:36 pboos, if you can SET a timeout, set it to like a second. that's a LONG time in network-land. If not, I'm not familiar with your APIs, and I apologize for the useless information :) Jun 29 03:02:46 spawn that intent with the code with 41 below Jun 29 03:02:57 plus there are two diff kind of timeout Jun 29 03:03:07 connection time out, and timeout timeout Jun 29 03:03:38 my point is if you network is farting around in the background waiting for a timeout, it may not be ready for inbound events for airplane mode etc Jun 29 03:03:43 aarcane_ will try it with a second :) thx Jun 29 03:04:07 Hello, package tree.measure; Jun 29 03:04:07 import android.app.Activity; Jun 29 03:04:08 import android.os.Bundle; Jun 29 03:04:08 import android.view.View; Jun 29 03:04:08 import android.widget.Button; Jun 29 03:04:08 import android.widget.EditText; Jun 29 03:04:09 import android.widget.TextView; Jun 29 03:04:09 public class TreeMeasureActivity extends Activity { Jun 29 03:04:10 Button button1; Jun 29 03:04:11 EditText txtbox1,txtbox2,txtbox3; Jun 29 03:04:12 WOAH Jun 29 03:04:12 sorry :'< Jun 29 03:04:18 o,.,0 Jun 29 03:04:24 i dont know what happened Jun 29 03:04:26 sorry D: Jun 29 03:04:33 did you middle-click in the text-box ? Jun 29 03:04:39 i dont know D: Jun 29 03:04:43 i just exploded code Jun 29 03:04:44 hey Jun 29 03:04:55 How can I call Java code from a native lib? Jun 29 03:05:22 I need to call gl.glEnable from native code Jun 29 03:07:24 so I've done a lot of searching. I can't figure out how to take a picture without SHOWING a preview. I need to enable a preview, but I want to just either discard the preview data, or just show it "in memory" or something. After a few dozen frames, I want to take a picture, and move on. Jun 29 03:07:57 what's worse, I can't even use the simple enable-disable trick, 'cause I'm trying to do it from a service with no activity visible. Jun 29 03:09:52 Okay who is completely pro at fixing an invisible issue - nothing on the logs - nothing in the code, it just DOESNT WORK :'< - before i exploded code into the chat i was going to paste a LINK to my code - here it is:www.autohotkey.net/paste/xehbxm.txt notice the four commented out lines- they detail what works and what doesn't work - this is all i know Jun 29 03:10:02 bloody paste stilll ioadhfaiosud www.autohotkey.net/paste/xehbxm.txt Jun 29 03:11:17 why do you have tv.set ("gibberish"); down at the bottom? Jun 29 03:11:42 that was for fun until i found this problem - it's commented out Jun 29 03:12:00 so i made a more sensible response above it :D Jun 29 03:12:33 hello all Jun 29 03:12:44 Google really stepped it up a notch with 4.1 and ADT20 -- wow Jun 29 03:12:45 it seems to work but as soon as i want to add "6.2" to the numbers - it just goes to "error. infinite result" - nothing on the logs Jun 29 03:12:55 also the Cloud Messaging service, im drooling Jun 29 03:13:02 4.1 made my phone lag bricks outta it's nostrils Jun 29 03:13:25 QubeZ, what do you like about the cloud messaging so much? Jun 29 03:13:33 maybe its not made for that ??? Jun 29 03:13:39 Bugz000, what do you get without the .substring portion ? Jun 29 03:13:44 luxurymode: main thing? no quota --- secondary - much easier to implement than C2DM Jun 29 03:14:04 I've been working with my web service guy and he's raving about GCM (vs C2DM) Jun 29 03:14:10 QubeZ, right. so does no quota mean you dont have to implement exponential backoff? Jun 29 03:14:17 aarcane, i shall try one sec Jun 29 03:14:52 also does GCM work with any device that has google play? or only 4.1 and up? Jun 29 03:14:57 luxurymode: why do you need to worry about backoff anyhow? you can use collapseable messaging Jun 29 03:15:03 luxurymode: 2.2+ i believe Jun 29 03:15:07 like C2DM Jun 29 03:15:11 right Jun 29 03:15:13 sweet Jun 29 03:15:33 aarcane, what the hell it's working O_O Jun 29 03:15:40 YOU DO MAGIC HOW Jun 29 03:15:42 How can I call Java code from a native lib? I need to call gl.glEnable from C Jun 29 03:15:44 brainz. Jun 29 03:15:47 MAGIC. Jun 29 03:15:51 MAGIC I TELL YOU! Jun 29 03:16:03 you tested all four lines of code ? Jun 29 03:16:23 noh but it works Jun 29 03:16:32 only issue is that it now shows all decimal places XD Jun 29 03:16:41 thats why i used substring Jun 29 03:16:45 Hmm. Jun 29 03:16:47 i'll try some stuff - i'll get back to you Jun 29 03:16:47 :) Jun 29 03:16:50 test Jun 29 03:17:19 luxurymode: not to mention the 4KB message limit instead of the 1KB in C2DM -- now I dont need to "tickle" the phone, I can just send the data right to it Jun 29 03:17:28 since my JSON is typically < 4K Jun 29 03:17:30 right Jun 29 03:17:30 Bugz000, you can store the string, and use the substring and the length to prevent getting exceptions. Jun 29 03:17:40 pretty sweet Jun 29 03:17:43 tv.setText("Height: " + Final.substring(0,5) + " ft"); Jun 29 03:17:45 im trying this Jun 29 03:18:14 pff error'z back back back Jun 29 03:18:39 if it possible to make a statement do something multiple times , the number of times depending on a int variable Jun 29 03:18:49 *Is it possible Jun 29 03:18:58 Rogue, you serious? Jun 29 03:19:07 yeah its the basis of all imperative languages Jun 29 03:19:09 iteration Jun 29 03:19:12 you use a for loop Jun 29 03:19:23 no Jun 29 03:19:29 not like that Jun 29 03:19:33 oh then what Jun 29 03:19:44 Bugz000, use .length() to figure out how long you can substring. take the max of .length() and 5. Jun 29 03:21:54 I want to do the instructions inside the if statement the same number of times as the the value of a certain int variable. and the int variable adds by one every time we do when we click a certain button Jun 29 03:23:07 Length = Final.length(); Jun 29 03:23:08 like the second time you click the button, do something, then the 3rd time do the same something but do it twice Jun 29 03:23:16 im not quite following - do the substring but backwards? Jun 29 03:23:27 instead of selecting an area- delete the rest Jun 29 03:23:51 ^returnspam sorry Jun 29 03:24:03 Rogue, have a counter variable in your class. Each time the onClick is called, increment that counter, then inside loop the counter number of times... Jun 29 03:24:05 Bugz000, I'm saying take from 0 to min(5, Length); Jun 29 03:24:15 How can I call Java code from a native lib? I need to call gl.glEnable from C Jun 29 03:24:31 i see Jun 29 03:28:59 * p_l|backup wonders if Google Compute might be used for EC2-style hosting Jun 29 03:30:04 luxurymode you wrong... Jun 29 03:30:50 Rogue, use a counter, and a for loop. Jun 29 03:30:55 Rogue: nah i'm pretty sure he's right Jun 29 03:31:04 why is a for loop required? Jun 29 03:31:16 seems like an if and ++ would do the trick. Jun 29 03:31:30 dblshot, it could be a while loop, but a for loop is more compact. Jun 29 03:31:33 what he described to me is how to add to a variable Jun 29 03:31:39 aarcane: why is a loop required? Jun 29 03:31:41 i dont want that Jun 29 03:31:45 dblshot, he wants to do it 1x the first time, 2x the 2nd time, 3x the 3rd time, etc. Jun 29 03:31:46 i already know how to do that Jun 29 03:31:51 Rogue, im back what did i miss? Jun 29 03:31:53 oh, I see Jun 29 03:32:04 yeah, a loop would be nice. Jun 29 03:32:08 i already know how to ++ Jun 29 03:32:19 Rogue, so whats the problem? Jun 29 03:33:03 i want to do the inside the code inside a if statement a certain amount of times based on a certain int variable Jun 29 03:33:35 so a nested if then Jun 29 03:33:41 Rogue, we've given you the answer to the problem you've described. If the answer we gave you isn't the same as the problem you have, then you've insufficiently stated the problem you have. Jun 29 03:33:43 no Jun 29 03:33:48 Rogue you keep saying the same thing but arent really explaining the problem Jun 29 03:34:06 luxurymode: that what i was thinking nestetd if statement but that would take to long Jun 29 03:34:21 *nested if statement Jun 29 03:34:26 what? why? Jun 29 03:34:29 if(condition){ for (i = 0; i < counter; i++;) {do_something()}} Jun 29 03:34:39 exactly what aarcane said Jun 29 03:34:45 you're just describing two things Jun 29 03:34:57 ...ima pastebin.... Jun 29 03:35:00 1) you'd like a loop 2) you'd like that loop to execute based on a conditional Jun 29 03:35:46 http://pastebin.com/EqkVNZsq Jun 29 03:36:22 see the line 'if(done == 2){' Jun 29 03:36:53 aarcane, i done it Jun 29 03:37:00 Final = String.valueOf(Math.round((Math.tan(degree)*distance) + extra)); Jun 29 03:37:00 Jun 29 03:37:03 just rounded the damn thing Jun 29 03:37:04 xD Jun 29 03:37:07 I want to do the code inside it a number of times depending on a int variable Jun 29 03:37:09 Bugz000, nice. Jun 29 03:37:23 Rogue, use a loop. That's the very purpose of a loop. Jun 29 03:37:31 im missing two decimal points but it's measuring trees,i dont think the tree is going to miss 5 inches of it's height Jun 29 03:37:38 6 inches* Jun 29 03:37:43 What's the difference between "total user installs" and "active device installs" ? Jun 29 03:37:43 o,.,0 Jun 29 03:37:59 6 inches is a big deal for humans i know! XD Jun 29 03:38:08 Rogue, so you dont the loop to iterate N times, but to iterate at all if foo == N? Jun 29 03:39:09 aarcane: it only needs to be done when the button is click, and the third time it is click, it those the code in that line twice and the fourth time it does it three times, and so on and so on Jun 29 03:39:32 the only way i see it can be done is with nested if statement Jun 29 03:39:41 the only way i see it can be done Jun 29 03:39:50 but i need a shorter way Jun 29 03:40:42 hm can someone enlighten me a little how I should build the architechture of my application. I have 5 tabs for different areas of the application, each being quite different in both looks and functionality. I'm pretty new to android and I haven't really grasped yet how fragments actually work (and how to make them work), and if not using fragments how should I enable the sherlock actionbar tabs with activity switch Jun 29 03:41:49 dude why not just increment a counter Jun 29 03:41:51 the app is already on the first 7 lines when the app is starter, so when the person click next i need it read the next 7 lines so it can go to question 2. So far it has got too question 2 but i need it to keep going Jun 29 03:42:07 then on click doSomething(count) Jun 29 03:42:07 aarcane, Thankyou for your help, this program is now fully functional and complete :) it is ready for it's first field test! LETS GO... wait it's 4:00 AM... maybe later xD Jun 29 03:43:48 Bugz000, if not field testing, you could find some tree diagrams on teh intarwebz easily enough :) Jun 29 03:44:24 What's the difference between "total user installs" and "active device installs" ? Jun 29 03:44:45 Notevision: active device are those who actually have your app installed now Jun 29 03:44:59 Rogue, re-paste, but comment the code you want to run multiple times, so we know which code, and comment what the condition variable is, too. Jun 29 03:45:12 also it's specific to devices. Jun 29 03:45:22 exacltly what aarcane said Jun 29 03:45:28 (opens image of tree) - (measures) - "this tree is 3 inches tall" "damn." Jun 29 03:45:39 i think if the same user has it on two devices, it counts only +1 towards total user installs. Jun 29 03:45:46 Rogue, you cant assume we're al gonna read that whole huge thing and dig in trying to understand the domain you're working with. just paste whats relevant Jun 29 03:46:32 aarcane, my first to measure will be this one near my house - it's so big i actually think it'll be a close candidate for the tallest in the UK - if not i am certain it's the tallest of it's species http://i.imgur.com/yDR91.jpg Jun 29 03:46:34 Rogue, if the issue is the readline you're almost certainly doing that wrong. writing readline, readline, readline means you have no idea what you're doing. dont be a computer! use the computer! Jun 29 03:47:43 but im using the readline for different vairable, like the next variable for a, b, c , then d Jun 29 03:47:57 Rogue, i have no idea what that means Jun 29 03:48:05 explain in clear terms what you're trying to do Jun 29 03:48:10 i cant get it from your code Jun 29 03:48:12 its too confusing Jun 29 03:48:12 aarcane, http://i.imgur.com/a2h6C.jpg here's the base of it Jun 29 03:48:19 seriously Jun 29 03:48:37 lets explain this teeny tiny bit of code Jun 29 03:48:45 but not explain the real problem Jun 29 03:48:48 http://pastebin.com/3fEuzC4Q Jun 29 03:48:54 and then bitch when I cant get someone to explain how to do it better Jun 29 03:49:08 forgot to put 'counter++' end though Jun 29 03:49:34 Bugz000, why is it growing sideways, and is that you hugging it ? Jun 29 03:49:35 buffreader.readLine(); is just there to move the reading ahead? cuz you're not assignign that any variable Jun 29 03:49:48 thats my sister hugging it and didn't you know? all trees grow sideways in the UK Jun 29 03:49:53 so the first click it will do the readline codes only once, then second time it will do the read line code twice, and so on and so on Jun 29 03:50:07 luxurymode: yeah Jun 29 03:50:22 aarcane, http://www.youtube.com/watch?v=pJU04j7JMD4&feature=youtu.be this is me at the bottom of this unhealthy looking redwood at lake vernwy Jun 29 03:50:43 luxurymode: the app starts at question 1 so it needs those to moves to question 2 in the text file Jun 29 03:51:00 so lets get this straight Jun 29 03:51:26 you have some textfile, where each line represents a question and you'd like to start parsing these into questions in your app Jun 29 03:51:34 correct? Jun 29 03:51:48 Rogue, why not use a loop to skip N questions in the file? Jun 29 03:51:48 yeah Jun 29 03:52:21 though it seems to me xml would be the solution, but you should be able to at least use a loop. Jun 29 03:52:25 questions, answers, explanations, and correct answer Jun 29 03:52:58 GOT GIANT OAK TREEZ??? http://i.imgur.com/t96gd.jpg I DO!! with purple lazarrz Jun 29 03:53:14 Bugz000, so the first pic wasn't you hugging the oak ? Jun 29 03:53:17 Rogue, holy crap dude Jun 29 03:53:27 it was my sister hugging a black poplar Jun 29 03:53:42 http://pastebin.com/2QKKD7vE Jun 29 03:53:45 (grey trees - ironic i know) Jun 29 03:53:46 one method Jun 29 03:54:06 now lines[0] is the first question and so on Jun 29 03:54:19 you're asking a basic question about text manipulating and reading lines into an array Jun 29 03:54:38 just parse the whole damn thing to begin with and put it into this tidy little data structure known as an array Jun 29 03:54:56 then depending on the click number, grab that Nth position of the array Jun 29 03:54:59 and thats your question Jun 29 03:55:38 dont parse the damn thing as you go with all this complicated crap Jun 29 03:55:51 just have your logic figure out one thing and one thing only: which question should i present Jun 29 03:55:56 not which line do i read now Jun 29 03:56:25 1) create text file with lines 2) read the whole thing into an array 3) present the Nth question depending on the Nth click Jun 29 03:56:26 simple Jun 29 03:56:35 but the first line is question, second is 'A' variable, third, is 'B' variable and so one and so one Jun 29 03:57:00 it assigns the text to that variable Jun 29 03:57:02 each 2nd line is not a question? Jun 29 03:57:12 each even line is something other than question? Jun 29 03:57:18 if you can't write this program you shouldn't be trying to design a UI around it Jun 29 03:57:20 yep Jun 29 03:57:29 try writing it as a plain old console program first. Jun 29 03:57:50 the problem is just moving to the third question Jun 29 03:58:00 i got it to the second question Jun 29 03:58:02 Rogue, so create a damn array of pairs or whatever the hell Jun 29 03:58:32 where pair.first = a or b or c whatever and pair.second = the actual question Jun 29 03:58:40 then grab which ever one you need based on position Jun 29 03:58:46 and you'll get the stupid letters Jun 29 03:59:40 or use a linkedhashmap or some crap Jun 29 04:00:02 unfortunately with a linked hashmap you'd still have to iterate though Jun 29 04:01:00 Rogue, why the hell is the third any harder Jun 29 04:01:01 do what i said Jun 29 04:01:08 if you cant get it to the third, ask again Jun 29 04:01:17 dont complain about it not working with your current solution Jun 29 04:01:22 bc your current code is horrendous Jun 29 04:03:02 array of pairs you said? Jun 29 04:04:09 yeah probably not the best solution but thats the basic idea Jun 29 04:04:39 Rogue: this isn't homework, by any chance? Jun 29 04:04:59 no lol Jun 29 04:05:08 To sum it up, your mistake is that you already know which line you need since you're just calling reader.readLine a predetermined amount of times and ignoring the result JUST so you can get to a specific line. If that's the case, then there's no reason not to parse the whole thing into some data structure and grab whichever part you know you need Jun 29 04:05:34 anyhow im out Jun 29 04:05:36 good luck Jun 29 04:05:40 oh, and learn java Jun 29 04:05:42 and programming Jun 29 04:05:43 :) Jun 29 04:06:07 w8 Jun 29 04:06:24 i think i found the solution Jun 29 04:06:40 contact it out to someone who has experience? Jun 29 04:07:06 no Jun 29 04:07:37 dude fucking seek intelligently Jun 29 04:07:38 =) Jun 29 04:07:51 I know crazy ass concept Jun 29 04:08:26 I can tell you this much, database engines dont just readline(),readline() Jun 29 04:08:28 How can I call Java code from a native lib? I need to call gl.glEnable from C Jun 29 04:08:34 thats called a motherfuckin tablescamn Jun 29 04:08:40 johnnyonflame, this is the 5th time you've asked this Jun 29 04:08:41 jni Jun 29 04:08:42 stop asking Jun 29 04:09:08 jni is bidirectional, toss your java in a service or have it fire off a broadcast intent Jun 29 04:09:27 arite maybe 5th times a charm Jun 29 04:09:29 my bad :) Jun 29 04:10:10 ron_frown, thanks, I'll try finding something Jun 29 04:10:36 like, I cant really open another java service, because its a library Jun 29 04:10:58 you can have a service in a library project as far as I know Jun 29 04:11:17 you gotta have java code running to be the other side of the gni Jun 29 04:11:20 jni Jun 29 04:11:29 I don't think I follow you- I dont know much about java Jun 29 04:11:54 service in android is just a class that inherits from a proper base Jun 29 04:12:12 if you put the service registration in the android manifest Jun 29 04:12:15 johnnyonflame: in you initialization code (where Java loads your C library etc.) you can then call a function which will get as argument the data necessary to call from C to Java Jun 29 04:12:17 I dont think it matters where it comes from Jun 29 04:13:19 p_l|backup, I think I see what you mean, static JNIEnv* and static jobject Jun 29 04:13:30 but I don't really know what to do with those Jun 29 04:13:44 any function I should look for? Jun 29 04:13:44 read JNI docs - I don't know that part of java well Jun 29 04:14:02 there should be information about calling methods of an object you have reference too Jun 29 04:14:05 *to Jun 29 04:14:06 theres typically a registration method, and then your c++ names have to mirror the name of the java class Jun 29 04:14:20 once you've got it setup you can call c++ from java and vice versa Jun 29 04:14:29 and pass data back and forth between the two environments Jun 29 04:14:42 there are some helepr c++ classes for Log.I and shit Jun 29 04:15:46 I'll take a look on that, thanks both of you Jun 29 04:15:50 :) Jun 29 04:16:08 johnnyonflame - there are a TON of examples of this in AOSP source Jun 29 04:16:59 for the naming stuff, I think there's some covention that lets you auto-bind functions by name which you then specify as "native" in your Java class Jun 29 04:17:14 it does, but you need to use a specific convention for that to work Jun 29 04:17:22 that would make it so much easier Jun 29 04:17:51 Hey all, if I want to run android on my PC, what's the fastest solution available (with GPU support)? Jun 29 04:18:01 android-x86 Jun 29 04:18:16 And that's for vmware/virtualbox, correct? Jun 29 04:18:19 or instlal intel-haxm and run hardware accelerated emu image Jun 29 04:18:29 android-x86 can run native on x86 hardware Jun 29 04:18:30 no emu Jun 29 04:19:14 there's no support for most GPUs, though Jun 29 04:19:31 that's why I sometimes wish for X11-based surface flinger Jun 29 04:19:41 oh god no you dont Jun 29 04:19:47 x11 is way way way more bloated Jun 29 04:19:49 you could then run Android in sub-namespace Jun 29 04:20:12 ron_frown: it also has drivers that work Jun 29 04:20:40 Question about developing for android in Eclipse. I'm just getting started, reading a book, I'm experienced with java. Both the android page and this book say to start off use an "Android Project" but that option doesn't exist my my choices for creating a new project in eclipse. Any ideas? Jun 29 04:20:43 and there really wouldn't be a lot of X11 code needed, since drawing would go through GL Jun 29 04:20:55 ron_frown: also, lennart-os is more bloated IMHO Jun 29 04:20:55 I'm an AVID hater of x11. I've been involved in linux since slack 1, which was what... 20yr ago? Jun 29 04:21:00 linux is a gigantic pile Jun 29 04:21:05 not linux Jun 29 04:21:06 haha Jun 29 04:21:07 x11 Jun 29 04:21:25 wayland/weston will solve that problem Jun 29 04:21:30 one thing I have to give it to the android devs dude, developing for it can be quite the nightmare Jun 29 04:21:32 fuck no lennart-os Jun 29 04:22:04 after most of the barriers were broken, now I have to create millions of workarounds for stuff that doesnt work for no reason Jun 29 04:22:30 thats mobile dev in general Jun 29 04:22:56 johnnyonflame: welcome to open environment. Microsoft created one for PC and is still paying for it with reputation for bugs that were often caused in name of compatibility :P Jun 29 04:23:14 and what things that dont work for no reason Jun 29 04:23:44 you can't call a bunch of GLenums using glEnable on the native environment with OpenGL ES 1 Jun 29 04:23:48 if you use the guidelines google tosses out there, theres really not a ton I've seen that doenst "just work" Jun 29 04:23:49 they just wont work Jun 29 04:24:08 dont do a ton of opengl, but opengl es 1 is dated Jun 29 04:24:31 I use OpenGL ES because I already have libraries that wrap OpenGL into OpenGL ES Jun 29 04:24:41 and (after some fiddling) they work quite well Jun 29 04:54:28 "Google Chrome Causing Freezing and Crashing on New Mac Notebooks" Jun 29 04:54:34 my notebook is not new :| Jun 29 04:57:12 :( Jun 29 04:57:29 I'm sure it's chrome's fault (yeah, right) Jun 29 04:58:01 dblshot: well... all it needs is do what it does best - eat all available ram and then some Jun 29 04:58:40 something related to gpu acceleration Jun 29 04:58:54 p_l|backup: heh Jun 29 04:58:56 i've restarted the thing probably a dozen times today Jun 29 04:59:15 i lose like half a pound on an amazing new diet Jun 29 04:59:36 frozen burritos and granola Jun 29 05:00:22 let me see if i can get crome running long enough to find that article Jun 29 05:00:38 dblshot: http://www.sciencedaily.com/releases/2012/06/120626163807.htm Jun 29 05:02:00 g00s: you can disable gpu rendering Jun 29 05:02:21 fucking colquy Jun 29 05:02:34 p_l|backup: i already have it disabled, its still acting up though Jun 29 05:04:14 Grr, I just did an adb backup, and then formatted my device as instructed, and now I'm running adb restore, and it's hangong seemingly on the first item. How long should an adb restore take ? Jun 29 05:05:29 g00s: damn that first paragraph is hard to read Jun 29 05:05:47 I'm breaking it down on prepositions in a text editor. Jun 29 05:10:26 g00s: found it Jun 29 05:10:56 language can be very confusing :| Jun 29 05:12:05 mainly that a comma in english can indicate a pause or an implicit 'and' has posed a problem to my programmer-afflicted brain. Jun 29 05:14:32 anyway the study is very believable :) Jun 29 05:16:55 trying to figure out why sensor are not working in this cm9 port for the htc wildfire s cdma version and i get this in my logcat http://pastebin.com/0YrbRnWr any ideas about this? I suspect it's a missing kernel module but i don't know Jun 29 05:18:01 any ideas where to go from here? Jun 29 05:38:00 wow, it looks like RIM exceeded expectations :| Jun 29 05:38:05 that is, the wrong way Jun 29 05:38:44 "Say goodbye to AirPush: you can now disable notifications in Android 4.1 Jelly Beans" bwahahahahaha Jun 29 05:39:14 I dunno Jun 29 05:39:28 I got some satisfaction in uninstalling the apps that implemented it Jun 29 05:40:17 heh, indeed ! Jun 29 05:40:35 if i recall, someone asked if an app canquery to see if its notifications have been disabled, and the answer was "no" Jun 29 05:40:36 hahahahahaha Jun 29 05:40:55 haha Jun 29 05:40:59 that's great Jun 29 05:41:06 this application tepmlates thing looks cool Jun 29 05:41:42 hm.... bit of a user question Jun 29 05:41:54 Galaxy Nexus 4.0.1, unlocked Jun 29 05:42:02 want to root and move to 4.1 Jun 29 05:42:31 HorizonXP: personally i switch back to ICS. already missing the Cyanogenmod features :D Jun 29 05:42:46 HorizonXP: i will wait until cyanogenmod has its 4.1 builds Jun 29 05:43:01 HorizonXP: i think eassiest would be to use the galaxy nexus toolkit, root, then flash jellybean zip and root zip (i got those from xda) Jun 29 05:44:02 pboos: i want it to be as close to stock as possible Jun 29 05:44:08 HorizonXP: but yeah, its pretty featureless compared to AOKP/Cyanogenmod for now Jun 29 05:44:21 i'm trying to use it mostly for dev purposes Jun 29 05:44:35 but out of curiosity, link to cyanogenmod so i know what i'm missing? Jun 29 05:45:48 "RIM board under pressure to split company or partner with Microsoft, says Reuters" holy shit Jun 29 05:46:03 HorizonXP: google -> cyanogenmod ;-) Jun 29 05:46:27 g00s: that article is biggest load of bull I've ever heard, LOL Jun 29 05:46:34 its amazing how very quickly a seemingly insurmountable lead can evaporate into a total disaster Jun 29 05:46:40 pboos: no, do the work for me! :-P Jun 29 05:46:46 * HorizonXP goes to google Jun 29 05:46:51 HorizonXP: the verge one ? Jun 29 05:47:03 g00s: the Reuters article. Jun 29 05:47:09 oh Jun 29 05:47:17 hehe, yeah i should have figured that :D Jun 29 05:47:58 "One of the options on the table is reportedly to sell off the software services division that runs the back-end for BlackBerry smartphones with an aim to make it work for any smartphone." Jun 29 05:48:04 i agree with this, they should do it for android Jun 29 05:48:13 g00s: and they're started with Mobile Fusion Jun 29 05:48:18 * they've. Jun 29 05:49:23 well they have a few dire options: dire option a, dire option b, or dire option c Jun 29 05:49:51 err... not really. Jun 29 05:49:52 :) Jun 29 05:49:58 i should be an analyst ! Jun 29 05:50:05 they have plenty of cash to stick it out for another 1-1.5 years. Jun 29 05:50:20 if things don't turn around by then, i'll join everyone chanting their death. Jun 29 05:50:30 they also lost one of their hw manufacturers this past month Jun 29 05:50:51 ? Jun 29 05:50:53 RIM should start just developing an "enterprise" os on top of android or something Jun 29 05:51:38 deebo: QNX is actually much more secure than Android's Linux-based kernel can ever be Jun 29 05:51:43 it's not a knock against Android Jun 29 05:51:47 also, HorizonXP from surveys i have read: RIM is the or one of the least desirable platforms to develop for Jun 29 05:51:53 it was just designed with different goals in mind. Jun 29 05:52:00 oh yeah, QNX sounds great Jun 29 05:52:07 nuclear reactors, etc Jun 29 05:52:10 HorizonXP: point was, their hardware or os isnt special, the enterprise stuff is Jun 29 05:52:10 g00s: BB7 yes, BB10, not quite true. Jun 29 05:52:17 or well the keyboards are special Jun 29 05:52:40 deebo: my bold 9900 has better build quality than my galaxy nexus. Jun 29 05:52:48 even my Dev Alpha is better Jun 29 05:52:52 and that's a prototype. Jun 29 05:52:59 pretty much all the execs at my work have switched from blackberry to iphone Jun 29 05:53:14 HorizonXP: i got my info about dev interest here, btw. http://www.visionmobile.com/blog/2012/06/report-developer-economics-2012-the-new-app-economy/ Jun 29 05:53:26 the real report is like 75 pages long, but ok - they are in 3rd to last Jun 29 05:53:52 g00s: again, that's legacy BBOS Jun 29 05:54:00 i'm writing an app for BBOS now Jun 29 05:54:03 it's a fuckin pain Jun 29 05:54:24 so totally understandable why no one wants to write apps for it, especially when it's got a reduced marketplace Jun 29 05:54:26 HorizonXP: so are you saying that devs are lining up to dev for BB10 ? Jun 29 05:54:29 and even RIM is moving on. Jun 29 05:54:36 g00s: for BB10? yes. Jun 29 05:54:50 well, to be fair BB devs do monetize extremely well Jun 29 05:54:53 but today's announcement likely took away some wind from the sails. Jun 29 05:54:59 Grr, I just did an adb backup, and then formatted my device as instructed, and now I'm running adb restore, and it's hangong seemingly on the first item. How long should an adb restore take ? Jun 29 05:56:00 HorizonXP: this is what i was referring to before, about RIM losing their odm http://www.fiercewireless.com/story/rim-loses-odm-celestica-hardware-supplier/2012-06-18 Jun 29 05:56:10 well, they have several Jun 29 05:56:26 g00s: wow, what spin! Jun 29 05:56:34 not you, the article. Jun 29 05:56:51 g00s: 'iOS apps are the most expensive to develop" does that ring true with you? Jun 29 05:56:52 no worries, nothing personal :) Jun 29 05:56:53 since when is consolidating your manufacturing efforts a bad thing? lol Jun 29 05:57:15 especially when you are winding down manufacturing on your legacy platform? Jun 29 05:57:25 i unno Jun 29 05:57:28 "for example iOS is faster to develop communication and social networking apps than Android." ?!??! Jun 29 05:57:45 i'm likely a bit of a RIM fanboy, but I'm trying to be realistic too Jun 29 05:58:00 it's why I'm in #android-dev trying to figure things out ;-) Jun 29 05:58:17 wabz: i'm so rusty on iOS, i honestly don't know. generally, i believe each OS has its strengths, and depending on a project, one can be easier than the next. so i'm sure ther are projects that are easier on iOS, as there are some easier on android … what is easier in general, hmm Jun 29 05:58:39 but RIM is in a very similar position to what Apple was in 1997, in terms of product offering, market share, and financials. Jun 29 05:59:01 RIM's BB10 platform is shaping up to be a dream to develop for, and I really hope it works out for them. Jun 29 05:59:04 I think iOS is cheaper simply because it's easier for designers to work with Jun 29 05:59:07 I don't see them being another Palm. Jun 29 05:59:17 but with today's delay, things aren't looking great. Jun 29 05:59:24 So we'll see if they meet their deadline. Jun 29 05:59:31 And what they actually meet it with. Jun 29 05:59:54 If it doesn't achieve feature parity with Android, they will have a tough time in the market. Jun 29 06:00:07 and Android didn't gain its features overnight, so we know how hard that will be to achieve. Jun 29 06:00:07 HorizonXP: i think their biggest problem is WP8 Jun 29 06:00:09 not android Jun 29 06:00:21 WP8 is the wildcard. Jun 29 06:00:27 RIM is all about the enterprise, and that where they are going to face new competition from MS Jun 29 06:00:28 yeah Jun 29 06:00:33 I cannot retrieve a sharedpreferences value from a service.. what alternative can I use. Jun 29 06:00:34 but I think their dev ecosystems isn't as friendly. Jun 29 06:00:41 But i'll be honest, it's a bit of a black box to me. Jun 29 06:00:50 i used to know people that had BB for consumer use, but not any more Jun 29 06:01:09 g00s: i still know a number that do, but it's dwinding Jun 29 06:01:10 PowerInside: that should not be a problem Jun 29 06:01:13 I think there are still people that have it for BB< Jun 29 06:01:16 er, BBM Jun 29 06:01:16 but like I said, legacy BBOS is dead Jun 29 06:01:23 man I lobed BBM Jun 29 06:01:26 it's moot to continue talking about it Jun 29 06:01:29 *loved Jun 29 06:01:41 too bad rim is closing out now Jun 29 06:01:52 it's best to think about RIM starting fresh, with a brand new product offering, from scratch. Jun 29 06:02:03 XXCoder: RIM's closing? Jun 29 06:02:22 where'd you get this wonderfully poignant information?! Jun 29 06:02:24 i think so, I remember reading about phasing out phone business Jun 29 06:02:31 lemme see if can find Jun 29 06:02:39 ... Jun 29 06:02:41 PowerInside: a Service inherits from Context, and getSharedPreferences is a method on Context Jun 29 06:02:49 anyway, this is #android-dev Jun 29 06:03:02 not really the place for me to evangelise BlackBerry Jun 29 06:03:16 g00s: Erm, but it shows getPreferences() is not defined.. :/ Jun 29 06:03:40 PowerInside: it helps if you use the right method name... Jun 29 06:03:57 PowerInside: um Jun 29 06:04:02 Leeds: "The method getPreferences(int) is undefined for the type UpdateService" Jun 29 06:04:15 that's because it's getSharedPreferences Jun 29 06:04:15 don't you use the PreferenceManager Jun 29 06:04:35 Um no.. ok lemme see.. bit of a noob here Jun 29 06:04:40 also, because it's (string, int) not (int) Jun 29 06:04:43 PreferenceManager.getSharedPreferences() Jun 29 06:04:48 http://www.howardforums.com/showthread.php/1767869-Celestica-to-wind-down-manufacturing-for-RIM Jun 29 06:04:53 I got it a little bit wrong Jun 29 06:05:12 wait... are we talking about Preferences or SharedPreferences? Jun 29 06:06:29 XXCoder: that's actually a lot wrong dude. :-/ Jun 29 06:06:39 yes. Jun 29 06:06:44 XXCoder: ramping down a manufacturing line to consolidate is not a bad thing Jun 29 06:06:58 especially when you're phasing out your old and shitty legacy phones. Jun 29 06:07:02 anyway Jun 29 06:07:02 yeah. Jun 29 06:07:06 forget Jelly Bean Jun 29 06:07:09 Lets see what happens Jun 29 06:07:15 how the hell do I update this from 4.0.1 to 4.0.4? Jun 29 06:07:23 GNex Jun 29 06:07:29 they may become kickass again, or be gone Jun 29 06:07:34 or somewhere in between Jun 29 06:07:54 XXCoder: i'm hoping they kickass, but i'm making sure i'm prepared for the scenario where they don't ;-) Jun 29 06:07:57 celestia said they were winding down over the next 3-6 mos tho … when is BB 10 supposed to be out ? Jun 29 06:08:00 again, one reason why i'm in here. Jun 29 06:08:14 g00s: Celestica has nothing to do with new hardware. Jun 29 06:08:16 HorizonXP: indeed. I loved 8830 world edition Jun 29 06:08:28 g00s: RIM builds new hardware themselves in their own factories. Jun 29 06:08:53 XXCoder: That was a good phone. I love my 9900, it's my daily. Jun 29 06:09:02 woohoo, yesterday was already my biggest admob day ever, and today we're going to get a *real* typhoon warning - T3 aka "wind and rain" rather than T1 aka "there's a storm a-coming" Jun 29 06:09:13 at this rate I'll be able to afford lunch! Jun 29 06:09:13 Leeds: SharedPreferences.. Jun 29 06:09:31 oh its hard watching this lady talk about Googles project glass -- she looks awfully nervous and unprepared Jun 29 06:09:34 Leeds: Mind if I ask what a big admob day would be? Jun 29 06:09:38 i made 51 bucks this month on app sales ;) Jun 29 06:09:44 Does anyone know how I can send Intents to android devices? Jun 29 06:09:46 Knossos: in my case, more than $1 :D Jun 29 06:09:51 from the command line? Jun 29 06:09:52 HorizonXP: my 8830 lasted years. couple years past expire of contract Jun 29 06:09:52 ho ho ho :> Jun 29 06:10:01 hwrd|work: which command line? Jun 29 06:10:10 Leeds: bash? OSX Jun 29 06:10:20 if only I could multiply that by even 10... i'd be thrilled. Jun 29 06:10:29 Leeds: trying to make the emulator do something. Jun 29 06:10:32 hwrd|work: you can use adb shell to connect, then am to issue an intent Jun 29 06:10:43 hmmm okay i'll look into it Jun 29 06:10:46 Leeds: thanks. Jun 29 06:11:05 dblshot: what's your app? Jun 29 06:11:19 I made $100 in 1.5 hours of app sales once Jun 29 06:11:19 can't say, i'm anon Jun 29 06:11:21 PowerInside: and this.getSharedPreferences() doesn't work - *not* getPreferences(), but getSharedPreferences? Jun 29 06:11:25 nice Jun 29 06:11:26 before it got pulled ;-/ Jun 29 06:11:31 HorizonXP: aw :( Jun 29 06:11:36 what kind of app was it that it got pulled Jun 29 06:11:37 HorizonXP: dodgy? Jun 29 06:11:45 BlackBerry PlayBook app Jun 29 06:11:50 let me get my blog link Jun 29 06:11:58 HorizonXP: do you think it would be worthwile for Goog to buy RIM ? Jun 29 06:12:06 g00s: nope. Jun 29 06:12:09 they could shore up their enterprise support, get some patents, etc Jun 29 06:12:11 Knossos: I should say that my app is niche in at least two dimensions - it's a weather app, so it only 'exists' when there's heavy weather, and it's limited to Hong Kong Jun 29 06:12:24 here's the results of the launch http://www.xitijpatel.com/2012/06/results-of-launching-desktop-bridge/ Jun 29 06:12:36 and here's why they pulled it http://www.xitijpatel.com/2012/06/a-desktop-bridge-too-far/ Jun 29 06:12:45 Leeds: i need an app to warn me of dust storms in AZ :| Jun 29 06:12:46 man i hope to earn enough to fix my car window, then get enough to buy another hard drive before second drive in my oc dies :( Jun 29 06:12:53 g00s: yeah, the patents would be the only thing that's valuable to Google Jun 29 06:12:59 g00s: where's the RSS feed with warnings in it? Jun 29 06:13:02 i always bring a dusk mask when i go trail running now ;) Jun 29 06:13:09 short of that, Google would likely dump everything else except QNX. Jun 29 06:13:21 RIM's focus doesn't align with Google's. Jun 29 06:13:54 RIM has a focus? Jun 29 06:14:02 Leeds: That is very niche indeed :D Jun 29 06:14:16 Why only Hong kong? Jun 29 06:14:30 Leeds: trolling? Jun 29 06:14:40 heh I remember that little disk demo for qnx Jun 29 06:14:49 because I live in Hong Kong, I want to see weather warnings for Hong Kong, and the local government weather office has an easy-to-parse RSS feed Jun 29 06:14:50 it was flipping amazing Jun 29 06:14:55 HorizonXP: off-topic? Jun 29 06:15:02 Ahh Jun 29 06:15:04 Leeds: it definitely is off-topic Jun 29 06:15:07 Fair enough :) Jun 29 06:15:14 i've tried to steer the discussion away :-/ Jun 29 06:16:43 how did we get on rim anyhow ? Jun 29 06:16:49 oh yeah, oops i started it Jun 29 06:16:53 :D Jun 29 06:16:57 lol yeah Jun 29 06:17:12 and i latched onto the flamebait :P Jun 29 06:17:32 dblshot: i pasted the links above Jun 29 06:17:40 HorizonXP: reading em Jun 29 06:17:43 :) Jun 29 06:17:44 :) Jun 29 06:20:04 did something change in the getSharedPreferences for new SDK? I have the same code running on two phones (one was built yesterday then another phone which build of my app from today)... when I read preferences it returns false when in fact my preferences.xml file has the key value and string defined. Jun 29 06:20:08 HorizonXP: how is it that it was posted on a pirate site before you launched it? Jun 29 06:20:12 someone at RIM? Jun 29 06:20:50 dblshot: it wasn't someone at RIM Jun 29 06:20:52 but it was RIM. Jun 29 06:21:40 seems like they totally burned you Jun 29 06:21:56 yup. Jun 29 06:22:01 did you see the conference call post? Jun 29 06:22:05 my impression is that someone at rim probably said "WE need to do that, not him!" Jun 29 06:22:10 silence this man Jun 29 06:22:32 dblshot: definitely a possibility. Jun 29 06:22:38 it really wouldn't be hard for them to do. Jun 29 06:22:41 and then since RIM is massive fail -- they won't ever do ti Jun 29 06:22:43 and many would welcome it. Jun 29 06:22:45 they are a sinking ship Jun 29 06:22:46 ;) Jun 29 06:22:58 dblshot: if they keep pulling shit like that, they are a sinking ship. Jun 29 06:23:14 I read an article once that said rim was a corporate nightmare for employees Jun 29 06:23:32 i did a co-op term there Jun 29 06:23:32 dblshot: I know dev was nightmare for rim Jun 29 06:23:40 how was it Jun 29 06:23:42 but then not personally experenced Jun 29 06:23:44 it's a corporate culture issue. Jun 29 06:23:56 dblshot: it was ok Jun 29 06:23:59 it was back in 2004 Jun 29 06:24:11 bahh restart required. Jun 29 06:24:20 why cant windows update without restart like linux Jun 29 06:24:47 i click postpone, 4 hours, every time Jun 29 06:24:51 XXCoder: Linux needs restarts too Jun 29 06:25:02 just, only for kernel updates. :-P Jun 29 06:25:06 you know, like sane OSes. Jun 29 06:25:10 much rarer. Jun 29 06:25:12 indeed Jun 29 06:25:35 wonder if someone would invent dynimatic kernel update without restart Jun 29 06:25:44 that'd make uptimes large Jun 29 06:26:19 well bye Jun 29 06:27:48 aiight guys, i haven't slept in 2 days, so best i get some shut eye Jun 29 06:27:59 i'll see you guys on the weekend, with plenty more dev questions. Jun 29 06:28:13 * jasta scratches his head Jun 29 06:29:18 dont you just hate bugreports from users with nightly rom builds? Jun 29 06:29:47 hi. my eclipse on linux keeps crashing my Xwindow system when I drag things from the layout maker. what should I do? Jun 29 06:30:19 superlinux-hp: update your X to a non-buggy version? Jun 29 06:30:27 or downdate, whatever Jun 29 06:30:37 Leeds, I am on Debian stable Jun 29 06:30:44 woohoo! Jun 29 06:30:54 then go ask in #debian Jun 29 06:31:13 why!? it only happens in eclipse! Jun 29 06:31:21 adb backup is so slow Jun 29 06:31:58 leeds: thanks! I think I got it now.. thanks for pointing me in the right direction.. its getSharedPreferences I should have been using.. Respect! Jun 29 06:32:26 superlinux-hp: ah! #eclipse then Jun 29 06:32:57 PowerInside: no problem... erm, can I point out that I had to say getSharedPreferences 3 or 4 times before you noticed? Jun 29 06:32:59 Hi! I'm trying to add a context menu to my ListView. The context menu appears, but when selecting a context item the onContextItemSelected method is not called :-(. http://pastebin.com/UANSrGbz Jun 29 06:33:17 and #eclipse of course will tell me: go #android and it's a forever loop Jun 29 06:34:37 Leeds: you did.. but I used getPreferences(int) in a single activity and there was no problem.. Jun 29 06:35:39 superlinux-hp: sucks to be you... Jun 29 06:37:17 actually, sucks to be using Eclipse, I think Jun 29 06:39:07 does anyone know how to get dumpsys to output memory information for bitmaps specifically? it used to be in meminfo now i can't find it. gfxinfo also appears not to contain it. Jun 29 06:39:41 well romain would be the guy to ask, if he was here :) Jun 29 06:42:47 superlinux-hp: don't use the layout makre Jun 29 06:42:51 maker* Jun 29 06:43:05 If you do use it.. just use it to preview Jun 29 06:43:11 dblshot, i understand that Jun 29 06:44:23 sdkr20 is fucking things up on my dev env Jun 29 06:44:24 arggh Jun 29 06:44:36 i have read about increasing the memory dedicated to eclipse. maybe it has a roll Jun 29 06:44:38 check whether it happens in all window managers Jun 29 06:44:45 ok Jun 29 07:05:31 QubeZ: what platform ? Jun 29 07:06:05 i noticed xavier was demoing adt2x on eclipse 4.2 on mac Jun 29 07:06:14 i'm playing around with it now on mac Jun 29 07:07:23 "In the wake of Android 4.1 Jelly Bean's announcement this week, Adobe has issued a note saying that it hasn't been developing and testing Flash against it and there won't be any "certified implementations" offered" Jun 29 07:07:27 \o/ Jun 29 07:07:38 we can thank steve for this ;) Jun 29 07:07:48 this is weird. program quits itself but without error message. Jun 29 07:08:09 g00s: good that flash is gone :) finally more people will turn to html5 :) Jun 29 07:08:34 (oh nevermind. stupid me. found where it went awry) Jun 29 07:12:17 pboos: I think you mean "finally users won't be able to use thousands, millions of existing websites" Jun 29 07:12:41 Leeds: "old websites" ;-) Jun 29 07:12:47 "existing websites" Jun 29 07:13:17 Leeds: how often do you need flash for the websites you use on your phone? Jun 29 07:13:26 at least a few times a month Jun 29 07:13:45 Leeds: really? what kind of websites? i noticed, i never need flash on my phone. Jun 29 07:13:59 restaurants are probably the most common thing Jun 29 07:14:33 oh man, restaurants have the suckiest websites - universally Jun 29 07:15:12 but however sucky they are, sometimes you want to check a menu, or opening hours... Jun 29 07:15:30 theyre not IT professionals Jun 29 07:15:39 and hiring an expensive one is probably not worth it Jun 29 07:16:04 i imagine theyre doing the webpages themselves in a lot of cases, with no prior experience Jun 29 07:16:09 at least thats what they look like Jun 29 07:16:19 nah, they'll be paying for cheap local agencies Jun 29 07:16:43 WordPress has a mobile plugin; seems pretty easy. most of it is graphics design Jun 29 07:17:01 a new manage will have come in a few years ago, and as part of a refresh they launched a website, budgeted a few $100 for it, got something sucky and flashy put together by someone's nephew Jun 29 07:17:01 the designers have to come up with the feel of the restaurant Jun 29 07:17:38 the point is that like it or not, there are many many live websites which simply don't work without flash Jun 29 07:17:49 http://news.ycombinator.com/item?id=2865836 Jun 29 07:18:03 slate actually wrote about this Jun 29 07:18:30 http://www.slate.com/articles/technology/technology/2011/08/overdone.html Jun 29 07:19:47 maybe because restaurant owners aren't nerds Jun 29 07:20:29 the one i talked to ; the chef was the owner Jun 29 07:21:24 meh, ... Jun 29 07:21:37 story is boring ;) Jun 29 07:22:16 and my point still stands - they may be crappy sites, they may be old and barely-maintained... but there are lots and lots of existing, live websites which are unusable without Flash Jun 29 07:22:21 (my discussion with the chef on how bad the site is, why they should have a mobile site, etc) Jun 29 07:22:40 (also, by the way, people will still be able to get flash on their N7/JB - they'll just have to try harder) Jun 29 07:22:58 i don't think having a good website is going to tempt many people to eat there Jun 29 07:23:23 stork: no, it was more about holiday hours, not being able to read the site on the phone, etc Jun 29 07:24:02 stork: no, but having a bad one is going to put people off Jun 29 07:24:11 plus some places allow orders too :) Jun 29 07:25:21 if I'm out shopping with my young lady, we're thinking of places for dinner, I find a reference to a restaurant online, or remember one someone mentioned somewhere... if I look it up and find an unusable website, it's a good incentive to find somewhere else Jun 29 07:25:55 that's bizarre Jun 29 07:26:01 personally i'd judge it on the food Jun 29 07:26:04 not an unlikely scenario, in a world with majority smartphone ownership Jun 29 07:26:15 I might never make it to the restaurant Jun 29 07:26:19 Leeds: do you remember that product where people where sharing pictures of their meals ? Jun 29 07:26:31 g00s: there are a few... foodspotting? Jun 29 07:26:54 taking photos of food is *ubiquitous* here... Jun 29 07:27:14 that could be it. the owner was also talking about getting a photographer because "the dishes looked bad when shot from an iPhone" Jun 29 07:27:16 haha Jun 29 07:27:43 heh, that would be an interesting gimmick for a restaurant - a staff photographer Jun 29 07:27:46 what is the easiest way to create a "map fragment" ? Jun 29 07:27:53 okand_: oh god Jun 29 07:27:56 i think you have your priorities in the wrong place :p Jun 29 07:28:10 not with tab host ._. Jun 29 07:28:14 food photography is a profession. just as food styling is Jun 29 07:28:25 okand_: did you see the defect tracker ? Jun 29 07:28:41 basically, someone hunted down dianne at i/o today and asked her - the answer is in there Jun 29 07:29:50 what was the topics name? Jun 29 07:29:54 i can't find it on google Jun 29 07:29:58 okand_: let me see if i can find it, hold on Jun 29 07:30:30 okand_: here you go http://code.google.com/p/android/issues/detail?id=15347 Jun 29 07:30:36 ok thanks :D Jun 29 07:30:41 JakeWharton might be able to help you Jun 29 07:31:24 ctate, I'm sure you're not here, but that adb backup is now hung at adb restore, and it stops at the very first item, seemingly indefinitely. Jun 29 07:31:42 okand_: the conclusion is towards the bottom of the thread Jun 29 07:32:17 aarcane: try him tomorrow 10-5 PST Jun 29 07:32:40 or today rather :) depends where you are Jun 29 07:33:11 or possibly yesterday, if your name is McFly Jun 29 07:33:53 I'm PST too Jun 29 07:33:58 people will not stop asking about maps and fragments at I/O Jun 29 07:34:00 it's sickening Jun 29 07:34:03 s/people/morons/ Jun 29 07:34:38 like asking someone else is going to magically solve their problem Jun 29 07:35:08 thank you g00s Jun 29 07:35:09 hi, can somebody show how to read/change the android settings using the am commandline tool? Jun 29 07:35:14 JakeWharton: somebody said there is a hacky way to get it work though ;-) he said he would share it in the sandbox... Jun 29 07:35:22 there are tons of well documented ways Jun 29 07:35:28 and they've been documented for months Jun 29 07:35:49 JakeWharton: well, never needed to get a solution, so never googled :D Jun 29 07:36:21 anybody there Jun 29 07:36:24 no Jun 29 07:36:28 y? Jun 29 07:36:33 because it's past your bed time Jun 29 07:36:48 so what is the correct time? Jun 29 07:36:53 42 Jun 29 07:36:57 JakeWharton: lol Jun 29 07:37:09 what is meaning of 42 Jun 29 07:37:24 it is the answer for everything Jun 29 07:37:24 thats the answer Jun 29 07:37:26 jagruti_: it is the answer to everything! Jun 29 07:37:43 sorry but i cant understan Jun 29 07:37:59 yes, people are here. what is your question? Jun 29 07:38:01 jagruti_: neither could anyone else, so they built another computer to find the question Jun 29 07:38:04 jagruti_: he was joking :D Jun 29 07:38:16 ohh :) Jun 29 07:38:30 g00s: but that computer (earth) kind of went wrong because of some stupid people :D Jun 29 07:38:32 i am not as much as you clever but still i follow to all fo u Jun 29 07:38:54 i just feel like people tread far too lightly and attending I/O has all but confirmed that assumption Jun 29 07:38:57 nobody tries things Jun 29 07:39:00 Hi all.. I can't get my IDE set up at_all... google USB will not install, AVD gives error (The connection to adb is down, and a severe error has occured.), and eclipse doesn't show 'New Android Project'.. i have everything installed but nothing works.. so frustrating Jun 29 07:39:01 they wait to be told what to do Jun 29 07:39:05 http://www.theverge.com/2012/6/29/3125396/google-nexus-7-review GODITSSOPRETTY Jun 29 07:39:07 how to do it Jun 29 07:39:08 etc. Jun 29 07:39:14 pboos: i'm betting the guys clearing way for the intergalactic bypass were using google maps and there was a map error, so they blew up the wrong planet Jun 29 07:39:15 JakeWharton: often people at google io just ask question to ask a question. even though they never needed to solve that problem. and they never tried to google or think about it. Jun 29 07:39:19 hhey. i have an api client which i need to save between Activities. any way of doing so? can't put it in Bundle.. it doesn't accept objects.. Jun 29 07:39:31 JakeWharton: that was how it felt to me last year. I was there and like: WHY ARE YOU ASKING THAT QUESTION MORON? Jun 29 07:39:39 ok anyway thx for your kok Jun 29 07:40:15 i am using the application class which will call only once at the lauch time of application right Jun 29 07:40:19 wonder if anyone asked if google will finally have customer service since they released the compute platform Jun 29 07:40:34 not having anyone to call if shit hits the fan makes the whole thing unusable Jun 29 07:40:41 atleast for long term deployments Jun 29 07:40:59 and i have call the api for fetch data from server in this application class Jun 29 07:41:25 yeah it's pretty pathetic actually. we need people who will drive the platform forward and not nip at the heels of what's easily available and consumable Jun 29 07:41:41 there are far too few to do that on Android, en masse Jun 29 07:41:52 deebo, i called google the other day for a customer service issue and got to talk to a real person in about 5 minutes Jun 29 07:42:07 1-800-google? Jun 29 07:42:12 1-800-off-topic Jun 29 07:42:19 do I really need to put it in sqllitedb? Jun 29 07:42:29 but the problem is that when the application launch and if at that time connection error occure then the application will stop.and if i mnaually solve the connection problem and again i start the application then it will still give the connection error. Jun 29 07:42:48 I have an API object that I need to save in between pages.. how can I do so Jun 29 07:43:08 stork: pretty good review Jun 29 07:43:12 and it's quite a sexy beast Jun 29 07:43:13 so can anybody have idea how to manually lauch the application Jun 29 07:43:25 i've been using mine regularly much to my enjoyment Jun 29 07:43:40 it really bridges the gap between the 10" and 4" experience Jun 29 07:43:50 anybody read my question? Jun 29 07:44:20 jagruti_, what do you mean manually? Jun 29 07:44:31 you find your application and click its icon Jun 29 07:44:45 krad: just split it into a bunch a small objects and put those in the bundle, and in the next activity rebuild your object, or serialize it if your object is Serializable, i m almost sure that you can put an byte[] in a bundle Jun 29 07:45:39 manually means when i click the application icon then it should be call the applicationclass which is only call when the application lauch first time Jun 29 07:47:10 giantpune: when i click on icon then it will only start from the 1st activity not call the application class Jun 29 07:48:54 Anyone with Evo LTE having problems with Exchange ActiveSync? - I've tried stock and rooted stock no luck. I keep getting: "Exchange Policy Error. Policy setting incompatible: Allow remote desktop." This didn't happen on my old Evo and nothing's changed except the phone (evo->evo lte). I Jun 29 07:50:48 JakeWharton: are you at i/o? Jun 29 07:50:54 not at the moment Jun 29 07:51:01 :) Jun 29 07:51:03 but yes Jun 29 07:51:26 anybody know my problem's solution Jun 29 07:51:34 cool Jun 29 07:51:39 i hope they gave you that ticket for free Jun 29 07:52:19 Heh, they did not. I feel like Googlers probably have a strong love/hate relationship with me. Jun 29 07:53:08 did you get a free gnex/nexus q/chromebox/nexus 7? Jun 29 07:53:43 i did Jun 29 07:54:04 dayumn Jun 29 07:54:16 JakeWharton:wouyld u like help me Jun 29 07:54:26 i would like to go to bed Jun 29 07:54:31 but i'm still at the office :( Jun 29 07:54:34 aww Jun 29 07:54:36 Denied! Jun 29 07:54:39 :P Jun 29 07:54:48 * Mavrik gives cookie to JakeWharton. Jun 29 07:54:51 There there :) Jun 29 07:54:55 olivier_b, my api uses HttpClient which is not serializable Jun 29 07:55:05 CLAW ATTACKS Jun 29 07:55:08 bad idea: coding in bed :) Jun 29 07:55:11 you don't need to pass HttpClient between activities Jun 29 07:55:15 Mavrik: one big cookie or lots of small ones :P (did you see that one?) Jun 29 07:55:27 wow, don t hink passing an httpclient sounds good Jun 29 07:55:41 maybe you can put it in a service and bind your activity to this service ? Jun 29 07:55:53 ixc, bed bugs? Jun 29 07:55:59 olivier_b, you mean store it on the server side? Jun 29 07:56:14 no, i mean put it in a Service on the device Jun 29 07:56:33 you should read the doc if you don t know what a service is Jun 29 07:57:01 ok Jun 29 07:57:59 hi i'm using ActionbarSherlock and got a ViewPager with tabs Jun 29 07:58:27 when the display is in landscape mode it sometimes doesn't make tabs but a dropdownlist instead Jun 29 07:58:32 anyone use joe64's graphview library? I'm trying to get a scrolling updating graph, but it's setup to get the data, and the add the Series, and then Set the layout options, and finally draw the graph. I can't figure out how to re-organize this to draw the graph first, then update it with data periodically. I can't even form a decent question to ask here. Jun 29 07:58:42 now when i swipe to next tabs,the dropdownlist doesn't get updated Jun 29 07:58:51 does anyone know how to fix that? Jun 29 07:58:51 jnewt: yeah, its a retarded design Jun 29 07:58:57 alowaniak: if you look at the Actionbar docs, that's expected behavior. If you look at the bug tracker, that's a known bug. Jun 29 07:59:02 jnewt: you will have to change it yourself. Jun 29 07:59:08 but its LGPL Jun 29 07:59:15 that's the Android bug tracker, not ABS Jun 29 07:59:29 though someone filed it on ABS, of course, since nobody seems to realize it's exactly the same code Jun 29 07:59:33 wat? expected behavior to not let the dropdownlist update? Jun 29 07:59:44 no, collapsing to list navigation Jun 29 07:59:48 ye that's not the problem Jun 29 07:59:54 the problem is the list navigation isn't updating Jun 29 07:59:55 hence the second part of my statement Jun 29 08:00:09 ah Jun 29 08:00:11 olivier_b, so there's no component in android that can save my Object in between Activities? Jun 29 08:00:20 is there a workaround for it JakeWharton ? Jun 29 08:00:42 g00s: I realize I'll need to change it. problem is, I don't even know where to start. I can follow the metodology (it's actually pretty cleanly written), but it's so ingrained in it's ways, I may be better off starting anew, or going with aplot or something Jun 29 08:00:47 no Jun 29 08:01:06 (also what I found weird, when I did some debugging the mode didn't change to list navigation but still stayed on tabs) Jun 29 08:01:21 krad: no, but the service keeps running when you change activity Jun 29 08:01:26 are you handling config changes in the manifest? Jun 29 08:02:04 uh not afaik Jun 29 08:03:03 nope, not handling config changes in manifest Jun 29 08:03:13 thank the gods Jun 29 08:03:49 i have a table with names and values... in first activity(screen) user choose some name and in second i should show him value of that chosen name... i dont know how to show him value, thx Jun 29 08:03:49 did i see that google are planning to make their own ABS? Jun 29 08:04:11 do you know the link to the bug tracker JakeWharton ? i can't find it Jun 29 08:04:32 stork: they will be releasing an action bar back port as part of their AppCompat library Jun 29 08:04:36 it will not be as fully featured Jun 29 08:04:58 but it will appease those who otherwise can't think for themselves and need everything handed to them Jun 29 08:05:25 i'm eager to see how elegant they can make it Jun 29 08:05:30 puuh. think I managed to restructure/rewrite my program tad more easily manageable Jun 29 08:05:31 because it can't be done elegantly Jun 29 08:06:31 oh dear that's aweful Jun 29 08:06:51 why couldn't they just throw money at you instead.. why do we need two action bar compat libraries Jun 29 08:07:01 there's a reason it took ABS version 4 four and a half months to be released Jun 29 08:07:07 i don't want the money Jun 29 08:07:34 you do it for the fans :p ? Jun 29 08:07:45 oh hells no Jun 29 08:07:49 i do it for the apps Jun 29 08:08:11 i do it so that all of these people who want to write apps don't have to waste time figuring out how to do it themselves Jun 29 08:08:17 focus on the damn app and make it amazing Jun 29 08:08:43 too many people tiptoe around researching this and that before making a single steps and their apps look like shit and perform like shit Jun 29 08:09:08 grab a handful of open source libraries that kick ass, throw them together, and write some revolutionary content for me to play with Jun 29 08:09:37 i don't care if you use my libraries or not, just don't waste time trying to do everything yourself Jun 29 08:10:04 Android is perceived as a weaker platform because of the incompetence of top developers Jun 29 08:10:44 anytime a top developer chooses PhoneGap or Titanium or a stupid custom-rolled action bar that doesn't use the native version on HC/ICS+ we (the community) look like crap Jun 29 08:10:55 and the huge amount of mediocre developers like myself Jun 29 08:11:06 mediocre developers make the best apps Jun 29 08:11:11 hah Jun 29 08:11:17 because they're not constrained by corporate idiots and can think for themselves Jun 29 08:11:42 my boss is pretty savvy when it comes to this shit Jun 29 08:11:47 they realize that they can leverage the work of the open source community to alleviate the burden of developing parts of their app that they would otherwise waste time on Jun 29 08:12:52 i still don't understand themes very well Jun 29 08:13:47 yeah there's a lot to grasp Jun 29 08:13:53 best way to learn is by experimentation Jun 29 08:14:22 grab the frameworks/base.git repository from AOSP too and dig around in the Android source if you can Jun 29 08:14:26 that's a great way to learn Jun 29 08:14:30 back port something yourself Jun 29 08:14:39 Switch is a perfect example Jun 29 08:16:02 switch? Jun 29 08:20:52 http://developer.android.com/design/media/settings_master_on_off.png Jun 29 08:20:56 Switch Jun 29 08:21:52 i just learned about the switch today :) Jun 29 08:22:00 hehe Jun 29 08:22:11 that makes me really sad Jun 29 08:22:46 hi, i have a layout-related question. this (picture) is my idea and current implementation http://goo.gl/ukZ0F. this means both nested linearlayouts and nested weights, so i thought there has to be another, nicer, solution. do you have any ideas? Jun 29 08:22:49 i played with ics/hc in the emu and just missed it Jun 29 08:23:04 and then you enabled it in your app wherever you use checkboxes right? Jun 29 08:23:09 because it's trivial right? Jun 29 08:23:17 because it takes two seconds right? Jun 29 08:23:48 i will now that i know about it :) i don't have any hc/ics hardware, and playing around on the emu is a pretty limited experience Jun 29 08:24:20 i'm sure if i had an ics phone i would have been more on top of things Jun 29 08:24:24 the x86 emu is 90% of what you get on a device. it's hard to get much better than that Jun 29 08:24:29 i need it to scale Jun 29 08:24:35 the Nexus 7 is also $200 which I highly recommend you pre-order Jun 29 08:24:44 Jelly Bean is insanely fluid and responsive Jun 29 08:24:46 yes, i am hoping to get one :D Jun 29 08:25:00 GNex is also only $350 now Jun 29 08:26:56 1:30, heading home, night Jun 29 08:28:07 i have to confess, i actually thought the Switch was a checkbox just styled in Holo theme or whatever Jun 29 08:30:03 g00s: confess together :) Jun 29 08:30:49 i think not actually playing with ics, and ics apps, has impacted my understanding of what i should be doing myself Jun 29 08:31:57 i mean, outside the emu Jun 29 08:32:08 I have ICS but the crappy Samsung styles made me wrong Jun 29 08:32:34 but you have ICS, which means you are the 7% ! Jun 29 08:33:14 well, you should have a Nexus device for development anyway ;) Jun 29 08:33:24 i should , yeah. i wish , more like Jun 29 08:34:48 I'll install CM9 soon... Jun 29 08:35:31 Hello folks. Jun 29 08:36:05 Is there any way of using Chrome as a WebView? Jun 29 08:36:40 no Jun 29 08:36:40 The default WebView has very limited svg capabilities, which I need for my application. While the Chrome browser works awesomely! Jun 29 08:37:07 moving forward the chrome rendering engine will be used as the basis for WebView but it will be tied to the platform and not updated with the app Jun 29 08:37:54 Does WebKit handle the svg's? Jun 29 08:38:19 JakeWharton, did they elaborate on that - is that a feature of the "Nexus 7" only or is it integrated into JellyBean? Jun 29 08:38:30 i have a fragment-a and replace that with fragment-b using fragment transactions. onSaveInstanceState of fragment-a is not called. what is the preffered way to save the instance state on fragment transactions? i hope i do not have to implement the backstackchangedlistener for that ... Jun 29 08:38:34 GeorgeJ: As JakeWharton said, see the presentation about new Android features, an answer is given to your question Jun 29 08:39:16 Mavrik: as I understand it starting with Jelly Bean and moving forwarding the Chrome rendering engine will be used Jun 29 08:39:29 I allready know that Chrome's rendering engine will also be the default rendering engine used by the platform. But that is irrelevant to my question. Jun 29 08:39:54 then your answer is simply: no Jun 29 08:40:24 I was talking about my last question. Does WebKit handle the svg's? Jun 29 08:40:35 if it can, yes Jun 29 08:41:19 Hmm, what do you mean by "if it can"? You mean if the specific feature was included at compile-time? Jun 29 08:41:20 ah, some things werent really clear in the announcement - it sounded like some features were Nexus 7 specific Jun 29 08:42:29 GeorgeJ: i'm not familiar enough with how WebKit is compiled as part of the Android build Jun 29 08:42:37 but it would seem to be the case, yes Jun 29 08:43:01 I see, thank you. Jun 29 08:43:30 So the only way of solving my problem would appear to be using Chrome's engine. Jun 29 08:43:39 to simplify my previous question, if you need all views in a layout to scale, what would your choice of layout be? Jun 29 08:44:19 if I use a handler to postDelayed a bunch of setText calls in some textViews, what happens if the window is not visible or in the foreground? Jun 29 08:46:07 hi everyone Jun 29 08:46:15 is there a way to increase the initial heap size in a 'clean' way? (like in the manifest file or something), so I don't get a lot of GC_CONCURRENT FREED when loading ~ 500 KB in the memory? Jun 29 08:46:29 How can I tell android to always run everything since boot in portrait mode? Jun 29 08:47:02 I want the whole system to run only in portrait Jun 29 08:50:06 mrAlmond: http://stackoverflow.com/questions/4885620/force-portrait-orientation-mode Jun 29 08:50:10 mrAlmond: http://goo.gl/T9e4M Jun 29 08:50:46 vavirta: i think he was talking about the phone in general, not just the app Jun 29 08:51:07 ah, yeah Jun 29 08:51:09 there's a system setting for that Jun 29 08:55:40 Leeds: UofA has a new system that is supposed help with the dust storm warnings, they have a feed. i wonder if there is an app in this. http://www.atmo.arizona.edu/?id=wrf§ion=weather Jun 29 08:57:06 I'm trying to create a new 4.1 project, but I only get that it can't find the android support library, even though I have it installed .. Anyone had similar problems? I'm on mac btw. Jun 29 08:58:35 Did you 'install' it from the SDK Manager _and_ include it in your project? Jun 29 09:00:14 https://developer.android.com/training/basics/fragments/support-lib.html Jun 29 09:00:20 if I use a handler to postDelayed a bunch of setText calls in some textViews, what happens if the window is not visible or in the foreground? Jun 29 09:01:00 kakazza: this is on the new "create project" wizard. I have projects that are using the support library just fine, just the wizard can't seem to find it Jun 29 09:01:23 themirror: if you are really worried about it, in onDestroy remove the pending messages. if its just hidden, there is no harm Jun 29 09:02:10 g00s: will it still update for when focus returns, or will it skip a draw? Jun 29 09:02:11 anyone got any suggestions regarding my issue? Jun 29 09:02:40 it will be up to date Jun 29 09:02:53 okay wonderful, thanks! Jun 29 09:03:57 Morning gents. Jun 29 09:04:25 interesting.. updated adt, syntax errors in commented out lines.. Jun 29 09:05:50 yuck, Eclipse Juno did something bad with its interface Jun 29 09:06:10 bad with its already bad ui? Jun 29 09:06:24 yeah, now it doesnt even render correctly :) Jun 29 09:06:44 ok, the sdk tools have an update ready, too Jun 29 09:07:08 Ups, wrong chan. Jun 29 09:07:56 Mavrik: fullack Jun 29 09:08:02 looks aweful Jun 29 09:08:35 I think its a bug though, since toolbars recolor when you click on them Jun 29 09:08:43 however it shows up on OS X and Linux Jun 29 09:32:24 ok, great.. Jun 29 09:32:29 lint has many new bugs it seems :D Jun 29 09:32:49 i need to clean the whole project all the time for it to see that there's no syntax errors in my code.. Jun 29 09:32:53 urks Jun 29 09:33:45 Hello guys, when I cancel progressdialog, also my activity gets destroyed. I don't know why, but I set progressDialog to cancelable, so I assume the progressdialog should catch the back button. Any idea? Jun 29 09:34:06 Number5: show minimal example that exhibits the problem Jun 29 09:34:21 tapas, ok. Jun 29 09:34:48 I'm trying to debug something using logcat, and all i get is E/AndroidRuntime( 1039): at. (then some function, file and line number) , no actual error. how do i know what's wrong. Jun 29 09:35:27 it shows 5 of these error lines, then a Force finishing activity Warning Jun 29 09:37:15 romain guy has a sexy voice Jun 29 09:37:23 i could listen to him talk about android all friggin day Jun 29 09:38:38 i saw something in one of the dev talks about an x86 emulator build of ICS - anyone got any info on that? Jun 29 09:39:17 tapas, http://pastebin.com/2NhBMtJH Jun 29 09:42:36 tapas: this version of lint was supposed to *fix* bugs :P Jun 29 09:45:20 stork: Yes, available in SDK manager Jun 29 09:45:42 g00s: yeah, well, sometimes you introduce new bugs with bugfixes :D Jun 29 09:46:03 it seems to work ok now, after cleanning the whole project once.. Jun 29 09:46:21 JulienDev: it's not listed for me :( Jun 29 09:46:27 only the api level 8 x86 one Jun 29 09:47:39 oh weird it shows up now, had to run the sdk manager as admin :| Jun 29 09:47:54 stork: Did you refresh the list? It's also available on API15 Jun 29 09:48:00 :) Jun 29 09:50:08 must have been a permissions thing Jun 29 09:58:21 i'm trying to understand how Runnable works. i setup just like this: http://stackoverflow.com/questions/1921514/how-to-run-a-runnable-thread-in-android, but on the handler.postDelated(r,1000), the one ouside of the Runnable, i get an n expected @ the r. Jun 29 10:13:21 jnewt: how runnable works? runnable is simply an interface defining one method, run Jun 29 10:13:31 to encapsulate bits of code Jun 29 10:13:37 it doesn't 'do' anything Jun 29 10:14:00 MDijkstra: you have to use a Thread or an ExecurtorService, or something like that Jun 29 10:14:32 well no, you can use a Thread or ExecutorService Jun 29 10:14:55 but Runnables are used whereever you want to pass a bit of code around Jun 29 10:15:07 MDijkstra: yeah, I get that, and have looked at the java.lang.Runnable interface, there's nothing but Run there. that's fine, I just want to try to use the handler / runnable setup. but my hander always says theres an error Jun 29 10:15:46 jnewt: stacktrace? Jun 29 10:16:28 also note that the title of the SO post is wrong; this does not run anything in a new thread Jun 29 10:16:53 it posts it for execution on the event loop of the thread the handler is bound to (most likely the main thread) Jun 29 10:19:01 main_activity.java Error(120,25) error: expected , line 120: mHandler.postDelayed(myRunnable,1000); Jun 29 10:20:23 this is a compilation error right? Jun 29 10:20:28 yeah. Jun 29 10:20:57 not enough context to be able to tell what's wrong Jun 29 10:21:21 well, maybe i can ask some questions here to get to the bottom of this Jun 29 10:21:21 you should name classes LikeThis though Jun 29 10:21:32 it's probably a simple problem Jun 29 10:21:38 * Utopiah wishes apps (e.g. Facebook) would remove notifications when they have been checked on other devices... Jun 29 10:21:56 hmm.. if i make a dialog cancelable, is there a way to postpone the disappearing of the dialog until i have performed some stuff? Jun 29 10:22:09 but I can't (and am not willing to) debug this without context Jun 29 10:22:13 it seems the dialog disappears immediately... Jun 29 10:22:19 jnewt: post more context / code, this is a syntax error caused by some other piece of code. Jun 29 10:22:34 although i don't call dialog,dismiss in the onCancel() method of the dialog.. Jun 29 10:22:41 http://ideone.com/6AmB7 that's all i have related to this in my activity Jun 29 10:24:38 jnewt: your example doesn't compile but the reason isn't the same as the error you pasted. Jun 29 10:24:56 For the runnable to be able to use mHandler, mHandler needs to be final. Jun 29 10:25:14 But your error makes me think there's something wrong with the structure of the code around it. Jun 29 10:25:32 jnewt: what you're getting is a syntax error, implying you've forgotten something somewhere Jun 29 10:25:50 jnewt: so those 4 lines are not of much use Jun 29 10:25:54 Yes, I wouldn't be surprised if you were missing a bracket or parenthesis somewhere. Jun 29 10:26:03 (outside the code you pasted) Jun 29 10:26:47 if i rumove that last line, it compiles, but the runnable doesn't run Jun 29 10:28:03 i've got this bit of code in the root of my activity class. maybe the handler needs to be created in onCreate()? Jun 29 10:28:26 What on earth is "the root of a class"? :D Jun 29 10:28:43 outside any methods or other shtuff Jun 29 10:28:45 It needs to be in a method, yes. Jun 29 10:28:58 You can't just call methods from the class body. Jun 29 10:29:35 Something we would have instantly seen if you had just posted the entire effing thing. Jun 29 10:29:52 Agreed. Sorry. Jun 29 10:30:17 problem is, all examples all over the internet are bits of stuff, never shown how to be used. Jun 29 10:30:44 same with developer.android.com, just classes and extremely complicated examples using 500 different classes and methods Jun 29 10:31:04 no offense, but the problem is you're trying to learn java by building android apps Jun 29 10:31:06 Well, Android assumes you have some basic java skills, if the examples are too hard to understand, the best approach is to improve your general java skills up to a level where the examples become understandable. Jun 29 10:31:09 that's usually not such a good idea Jun 29 10:31:58 I can see how the examples are hard to read without java knowledge, but I as a java dev would be pretty pissed off if every example started with explanations about what an if-statement is, etc. Jun 29 10:33:50 where is the postDelayed statemnent (the external one) supposed to go? Jun 29 10:34:31 Wherever.... you want it to go. When the activity is created? onCreate. On button press? In an OnClickListener Jun 29 10:35:07 the way i see this, if i put all that handler and runnable stuff in oncreate, it only gets called once. I want the runnable called repeatedly Jun 29 10:35:24 so, I still can't get an ICS x86 emulator? every time I open the avd manager it doesn't give me an option to create one when i hit 'new' Jun 29 10:35:35 Repeatedly? Then in a Timer or something. Jun 29 10:36:12 HDroid: that's what the delay is for, it's supposed to be a timer, "the android way" Jun 29 10:37:06 jnewt: as far as I know, Handler doesn't provide repeating events Jun 29 10:37:11 i got timer and timertask to work, i'm trying to learn the diffent ways. Jun 29 10:37:36 I guess that's why the Runnable posts itself. Jun 29 10:37:40 HDroid: http://saeedsiam.blogspot.com/2009/03/timer-in-android-better-way.html Jun 29 10:37:57 has anyone gotten this to work?? Jun 29 10:37:58 but i have no idea where that code fits into an activity, obviously Jun 29 10:38:16 jnewt: you can put that in onCreate. Jun 29 10:38:29 The runnable posts itself to the handler when it finishes. Jun 29 10:38:47 Anybody knows some good RSS feeds concerning smartphone dev discussions which are regularly updated? Jun 29 10:39:46 jnewt: I'm opposed to the title of that blog, by the way... "the better way". Jun 29 10:40:18 It's a stupid pattern to implement something that timer supports by default. Jun 29 10:40:59 As far as handlers are concerned, repeating tasks _are_ non-trivial in the context of that blog. Jun 29 10:42:34 And I don't really see why I "should really think twice" about using a thread. Jun 29 10:42:37 HDroid: doesn't the handler.postDelayed re set the process to re-occur 1000 ms later? Jun 29 10:42:48 jnewt: yes Jun 29 10:43:25 what is non-trivial about that? Jun 29 10:43:41 jnewt: but instead of setting an interval and letting the timer handle it, you handle the repetition manually... Jun 29 10:44:00 I.e. you're reimplementing a part of Timer... just to prevent the creation of a thread... o.O Jun 29 10:44:27 hi all Jun 29 10:44:46 im sitting on my first android app atm Jun 29 10:44:55 and im confused by notifications Jun 29 10:45:00 this is my code atm: Jun 29 10:45:03 http://paste.s0uthp4rk.eu/?a5265a9955c1be09#UU6DSSUVqwZnjPMtsgC77xsD3u3gNQAmvxDHlj1wCn0= Jun 29 10:45:41 how can i define that when someone clicks the notification in the drawer that a popup opens containing more information? Jun 29 10:45:54 i dont want to return to the apps main thread Jun 29 10:46:23 more something like this: http://www.gadgetsdna.com/wp-content/uploads/2009/12/SMS-Popup-Android-1.png Jun 29 10:46:40 but only after the user touched the notification Jun 29 10:47:13 cronix: well, the popup has to have an underlying activity. I'm pretty sure they're using either an Activity styled as a dialog or running an invisible activity in the background. Jun 29 10:47:42 HDroid: mhm well i need to have a background activity anyway running Jun 29 10:47:52 reciving the notifications via c2dm api Jun 29 10:48:24 not receiving C2DM message when the app is killed, is that right? Jun 29 10:48:35 yep Jun 29 10:48:41 I thought the point was it awakes the activity when it recieves Jun 29 10:48:56 as i said im not overly experienced Jun 29 10:49:03 and its more alpha than anything else Jun 29 10:49:17 Can't you run a service for that or something? Or a syncadapter? Jun 29 10:49:23 basically the whole app should consist of a background service, catching the c2dm's Jun 29 10:49:37 and pushing them to the notification drawer Jun 29 10:49:41 AND into a sqlite db Jun 29 10:49:55 the main app can then be used to view the entrys in the sqlite database Jun 29 10:50:34 currently its more a proof of concept and learning java kind of thing than anything near the concept of what it should be when its finished Jun 29 10:51:34 [2012-06-29 20:41:36 - game] Installing game.apk... Jun 29 10:51:34 [2012-06-29 20:41:37 - game] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Jun 29 10:51:34 [2012-06-29 20:41:37 - game] Please check logcat output for more details. Jun 29 10:51:34 [2012-06-29 20:41:37 - game] Launch canceled! Jun 29 10:51:36 Why does this happen? Jun 29 10:51:50 and more importantly, how can I avoid it? Jun 29 10:51:58 emulator? Jun 29 10:52:03 no, device Jun 29 10:52:06 uve created a virtual sdcard? Jun 29 10:52:09 awe Jun 29 10:52:18 LG-P500 Jun 29 10:52:19 looks like no storage is left on device Jun 29 10:52:32 erm Jun 29 10:52:38 Ram or actual storage? Jun 29 10:52:40 adb logcat tells you nothing more? Jun 29 10:52:41 Onions, why? Because theres insufficent storage space. How to avoid it? Make space. Jun 29 10:52:44 storage Jun 29 10:52:53 I have plenty of storage space Jun 29 10:52:53 o.o Jun 29 10:53:00 do you? Jun 29 10:53:05 well, enough Jun 29 10:53:07 then get the logcat output to further pin it down Jun 29 10:53:12 Onions, how much? Jun 29 10:53:18 21mb atm Jun 29 10:53:21 of free space Jun 29 10:53:24 and my game is like Jun 29 10:53:24 oO Jun 29 10:53:26 sec Jun 29 10:53:46 That isn't enough free space Jun 29 10:53:54 HDroid: yeah, still not getting code called in the RUN(){} portion. somethings not right. Jun 29 10:53:58 200kb Jun 29 10:54:09 There's more on the SD card Jun 29 10:54:23 .apk is 56kb Jun 29 10:54:23 What have you got it set to install to in your manifest? Jun 29 10:54:26 hmm Jun 29 10:54:31 Onions, sd card doesnt matter Jun 29 10:54:43 but 21MB should be enough Jun 29 10:54:46 umm what am I looking for Dark-Side? Jun 29 10:55:01 installLocation=" Jun 29 10:55:13 it's not there Jun 29 10:55:13 xD Jun 29 10:55:14 what is the glow seen when reaching the end of a scrollview, list etc called? Jun 29 10:55:44 why can't i type with my keyboard into the android ics emulator :'( ? Jun 29 10:55:54 joel135: overscroll effect Jun 29 10:55:57 should I set it to preferExternal, Dark-Side? Jun 29 10:55:59 jnewt: if you want my suggestions, I'm gonna have to see the entire code, I'm done poking around in the dark (and I imagine most of us in here are) :) Jun 29 10:56:09 maraz: thank you Jun 29 10:56:13 That might help Onions Jun 29 10:56:33 What i don't understand is Jun 29 10:56:36 if it's storage space Jun 29 10:56:49 Then why is me using advanced task killer allowing it to be installed? Jun 29 10:58:28 where is the overscroll effect implemented? Jun 29 10:58:57 fricking hell I want a better phone Jun 29 10:58:58 <.< Jun 29 10:59:07 This is a piece of crap to develop on Jun 29 10:59:07 xD Jun 29 10:59:26 joel135, ScrollView probabl Jun 29 10:59:43 joel135, its gone in ICS+ however Jun 29 11:10:45 sorry to restate my question from before: fragment-a gets replaced by fragment-b, the transaction is put on the backstack -> when pressing back, fragment-a is not restored to its previouse state. what is the preffered way of restoring a fragment in that case? Jun 29 11:17:57 I have {Min SDK Version: 6, Target SDK Version: 9} and want to use a method available only from api level 9 (only on supported devices of course). How do I do this? Jun 29 11:21:13 Has anyone managed to get a newer version of WebKit running than the default? Jun 29 11:21:18 Where I can find older Eclipse plugins for Android? Jun 29 11:21:55 I think you cant Jun 29 11:22:18 Mavrik: Who was that ment for? Jun 29 11:23:09 for ukkopekka Jun 29 11:23:44 We were just going to release our own plugin which was working with 18. Then I updated to 20 and our plugin is totally broken :/ Jun 29 11:24:17 plugin for Eclipse? Jun 29 11:24:24 yes Jun 29 11:24:48 Is that when they switched around the external library / jar system? Jun 29 11:25:01 Or might it be enough to install 18 sdk? Jun 29 11:25:28 I updated that also to 20 Jun 29 11:26:06 This sounds like a recipe for disaster, what's so broken that it can't be fixed in a few hours? Jun 29 11:26:42 HDroid: Not many working hours left today and this week :P Jun 29 11:27:10 how to compile ApiDemos in Android source tree? Jun 29 11:28:03 ukkopekka: true, just saying that downgrading the plugin might be more work than simply fixing your issue. Jun 29 11:28:50 HDroid: I'm just testing plugin, not developing it. They told me to test with older version. Jun 29 11:28:57 ukkopekka: I'd start poking at the update site, if I absolutely had to, though. But I see dependency hell in your future :) Jun 29 11:29:13 Found it: http://dl.google.com/android/ADT-18.0.0.zip Jun 29 11:29:44 HDroid: Just another Eclipse instance with clean workspace and stuff :P Jun 29 11:30:37 i'm asking the same question about chrome; where can i get 19 - 20 is a major fuck up on the mac Jun 29 11:31:46 g00s: you can't Jun 29 11:31:57 Can't can't can't Jun 29 11:32:10 p_l|backup: gpu accel is disabled; it constantly hangs Jun 29 11:52:08 http://pastebin.com/EuwkCkhC Jun 29 11:52:11 Hello! Jun 29 11:52:26 Can anyone help? Jun 29 11:53:33 Hi there! I'm having a project on the com.localhost domain and I'm trying to import com.localhost.R . When I attempt that, Eclipse tells me that com.localhost.R could not be resolved. If I put android.R it works, but all my bitmaps are present in com.android.R. Can you please tell me how to fix that? Jun 29 11:54:02 sorry, the bitmaps are present in com.localhost.R Jun 29 11:55:11 Dvorak_: don't import R at all. it doesn't work that way. :) Jun 29 11:56:21 maraz: if I don't import R I can't load the texture. I'm using the command Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.texture); Jun 29 11:57:13 hi, we're developing a component for an app of a third party. we try to integrate the cdm google service.. Jun 29 11:57:31 Is there another way of loading a bitmap? Jun 29 11:58:38 Dvorak_: that is exactly the way it should work. what is the error you're getting? Jun 29 11:59:07 oops, gcm, not cdm Jun 29 11:59:17 I've got fragments loaded inside a single activity. Can I set a button's onClick behavior for all the buttons tagged "myButton"? i.e. can I find the views via tag and then set the listener once for all? Jun 29 12:00:05 the problem seems to be that we have to specify the target app package name for gcm and the service is in a different package (in our library) Jun 29 12:00:59 maraz: I'm getting 3 errors: "The import com.localhost.R cannot be resolved" "R cannot be resolved to a variable" and "Unparsed aapt error(s)! Check the console for output" Jun 29 12:01:07 Dvorak_: remove the import. Jun 29 12:01:14 it will not work if you import R manually. Jun 29 12:01:55 maraz: I have removed the import. Now I'm only getting the last two errors. Jun 29 12:02:49 Dvorak_: ... maybe check the console for aapt errors? :) Jun 29 12:06:07 maraz: Well, the console does mention aapt once: 'aapt' error. Pre Compiler Build aborted. Jun 29 12:07:13 interesting. has it worked before or is this your first build? Jun 29 12:08:09 anyway, you probably have an error in an XML file Jun 29 12:09:09 The last time i prepared graphics for uploading to google play, the thumbnails where shown distorted and had little squares in them, how do i avoid that happening ? Jun 29 12:09:27 maraz: Yes, it worked before. Then I have added a texture (which is a copy of one that has previously worked) and it gave me the error: "Unparsed aapt error(s)! Check the console for output". I have cleaned the project and those two new errors came up. Jun 29 12:09:44 ah, it seems we can subclass GCMBroadcastReceiver to overwrite the method that returns the name of the intent service Jun 29 12:10:09 Dvorak_: you might want to turn on verbose logging in preferences -> android -> build Jun 29 12:10:34 maraz: I already did that and it is the same thing. Jun 29 12:21:11 maraz, i dont know if this will help, but i found that having an apostrophe in a string resource will cause problems Jun 29 12:25:00 Hello. Short question: How do I build and test an Android-Maven-Project via console? (That I can programm in eclipse, but install dpendencies via console) Jun 29 12:28:17 how can I get my last fragment's class? Jun 29 12:28:57 The_Fred: you have to escape apics (i.e. \') Jun 29 12:29:45 elegos, thank you, thats good to know :) Jun 29 12:30:06 btw it won't even compile, if you don't escape them Jun 29 12:30:55 thats the exact problem i had Jun 29 12:32:03 Im still searching to find out how to avoid that horrible blocky image problem for images on the publish page... Jun 29 12:33:27 The_Fred: I hope you're using PNG images Jun 29 12:33:53 yes, but last time i they appeard blocky on google play Jun 29 12:34:13 maybe they got resized Jun 29 12:34:17 i cant remember what happened, perhaps i left compression on Jun 29 12:34:30 make sure they're lightweight, maybe Google Play reduced the size Jun 29 12:34:52 right Jun 29 12:34:53 thanks Jun 29 12:37:35 elegos, do you know if there is a prefered dpi for the google play images? Jun 29 12:37:56 The_Fred: no, I'm not aware of Jun 29 12:38:03 photoshop PNG defaults should be ok Jun 29 12:38:34 im using GIMP, and for some reason my defaults are 299 dpi.... i think thats too high Jun 29 12:39:21 try with... 72 DPI? Jun 29 12:39:27 lemme see the default Jun 29 12:41:00 btw ~300 DPI is for printing Jun 29 12:41:14 thats what i thought... Jun 29 12:41:35 thing is when I've brought a poster I've made to the shop, they had to load the image in 10 minutes AHAHAHH! Jun 29 12:41:56 the problem is if i get it wrong then im stuck with horrid looking images thats a big fail Jun 29 12:42:22 10 mins! Jun 29 12:42:31 lol yeah it was more than 1GB Jun 29 12:42:50 (load on the printer) Jun 29 12:43:00 (and yes, on the computer as well :P) Jun 29 12:43:18 damit! i've been trying to get and answer to 2 questions all day now. Jun 29 12:43:29 q1: compression :yes or no Jun 29 12:43:34 q2: dpi Jun 29 12:43:41 i cant afford to gamble Jun 29 12:44:58 do not interlace Jun 29 12:45:36 right - noted, thanks Jun 29 12:46:02 btw the TIFF image is 1.07 GB... to load on the printer :P Jun 29 12:47:17 whoa! Jun 29 12:48:05 oh boy am i tired,i was up late watching the google io conference stream. Jun 29 12:50:37 ok, so im dealing with the hi-res application icon, at 72 dpi, and page is saying thats its too big... its only 512x512 (as asked), but it disk size 1026 Kb... Jun 29 12:57:09 I'm trying to get a GraphView to update when new data is presented. I'm not even sure what i should be looking for. I can build arrays and plot the data, but when i replace the data, and call invalidate, i expected it to update. it did not. Jun 29 12:57:16 Considering I'm trying to construct an AsyncTask, the parameters I need to pass to it is an instance of an object and two strings. Should I use AsyncTask or AsyncTask? Jun 29 12:57:42 Boolean* Jun 29 12:58:51 here's the portion of onCreate tied to the Graphing: http://ideone.com/ Jun 29 13:00:09 this is the class i'm using: https://github.com/jjoe64/GraphView/blob/master/src/com/jjoe64/graphview/LineGraphView.java Jun 29 13:00:26 and this is the class it extends: https://github.com/jjoe64/GraphView/blob/master/src/com/jjoe64/graphview/GraphView.java Jun 29 13:02:51 the developer blog says i need to invalidate() GraphViewContentView, but that is a private class, within the GraphViewClass. I'm not sure why it's private, or if it's safe to change it to public, or if that would even help. Jun 29 13:03:39 Ah, at Google I/O they announced smart updates Jun 29 13:03:57 A one line change no longer requires downloading the whole APK. Jun 29 13:04:46 I have a listview with custom itemviews (adapter.getView). In getView i set the background color of the item to eg. yellow. But now the highlight effect doesn't occur anymore. (I mean the effect when the finger toughes the item, not the one when the item is selected)... Jun 29 13:06:53 if i change GraphViewContentView to public class and attempt with myGraph.GraphViewContentView.invalidate(); i get an unexpected type error, required: class, package, found: variable Jun 29 13:14:41 Is it possible to increase the number of times when we pass inside applyTransformation of a custom Animation? Jun 29 13:30:25 Hi everyone Jun 29 13:30:57 How can I start an activity from another app forcing an orientation? Jun 29 13:50:18 AdMob Jun 29 13:50:22 anybody tried it Jun 29 13:50:22 ? Jun 29 13:50:30 a long time ago Jun 29 13:50:39 how good is it ? Jun 29 13:50:47 erm Jun 29 13:51:08 depends, what for? are you a developer or you want to advertise? Jun 29 13:51:34 I am going to publish something, I am a developer, I was adverts in my free app. Jun 29 13:51:48 I don't know if it's still the same as it was 1.5 years ago but Jun 29 13:51:58 you need tons of downloads to make a penny Jun 29 13:52:04 how do they pay? impressions ? clicks ? fixed amount ? Jun 29 13:52:08 really :/ Jun 29 13:52:23 you could choose impressions or clicks Jun 29 13:52:33 (I think) Jun 29 13:52:37 1 impress = $? Jun 29 13:52:45 bsilwal, unless you have 10k+ downloads i'd not bother tbh Jun 29 13:53:00 wow Jun 29 13:53:10 any better ones ? Jun 29 13:53:16 better than AdMob ? Jun 29 13:54:09 if you don't mind torturing your users (or if they're too dumb to notice it's you), there's these thing that uses notifications for sort-of popup ads Jun 29 13:55:06 airpush < had to search for it, I have a bad memory Jun 29 13:55:08 nx5: i want to create a space in my app for adverts that wouldnt ideally shouldnt affect my users Jun 29 13:55:55 like The_Fred said, don't bother without tens of thousands of downloads Jun 29 13:56:02 hmm Jun 29 13:56:07 then, try several options, see which pay well and which don't Jun 29 13:56:31 you mean patch it after it has been downloaded 10 K times ? Jun 29 13:57:12 update it....yes Jun 29 13:57:26 hmm Jun 29 13:58:35 I just installed the ADT in eclipse and it is asking me if it should "install the latest Android SDK" or use an existing one...I downloaded and installed the latest from the site and have that ready so the adt does not have access to anything newer right??? (please answer quick so I can finish my install :) ) Jun 29 13:59:06 the one I have is from June 11 but I want to be sure to have all the goodness they showed at google i/o Jun 29 13:59:48 so my question is, let it download again, or the one I already installed should be the latest Jun 29 13:59:49 i think you have to tell adt where the sdk is, and that's it Jun 29 14:01:00 yep, it used to be that way, apparently the latest version of the ADT offers to download it at the same time it asks for the directory which just had me wondering if it had access to anything newer...but I doubt it, I just wanted some reassurance that what I got from the regular SDK download has all the cool stuff they showed in I/O Jun 29 14:01:20 what is the average time it takes for google play to update when a new app is published? Jun 29 14:01:20 Google I/O that is Jun 29 14:01:34 i thought it was damn near instant Jun 29 14:01:45 1-2 hours or so Jun 29 14:01:55 depends, you never know... Jun 29 14:03:00 i'll just have to wait :) Jun 29 14:05:25 hello Jun 29 14:05:35 Can i get some help on C2DM please. Jun 29 14:05:54 None of my messages are being recieved by the device. But i am getting a success 200 code. and an ID too. Jun 29 14:06:20 nx5 this is the latest ADT SDK prompt fyi http://imagebin.org/218870 Jun 29 14:07:45 heelloooo Jun 29 14:08:36 Aeon10, I cant help with C2DM, but im curious, what format are messages sent/recvd? Jun 29 14:10:00 Just a simple payload of "message=feed". I have tried with the new GCM API too. using command line curl. no success at all. Jun 29 14:10:50 ah, so plain text. Jun 29 14:10:55 yes. Jun 29 14:11:09 is there a limit on msg length? Jun 29 14:11:24 the weird thing is I am getting a 200 success code. An id:somerandomnumber too. And according to Google API that means success. but no messages on the device Jun 29 14:12:10 i dont think just the text "message=feed" could exceed any limit. And this was working a few weeks back. I am working on a project. Checked it out yesterday. and not working. no change in code anywhere. Jun 29 14:12:34 hmm, i just seen that there is a few tutorials about C2DM Jun 29 14:17:51 I don't understand what the Configuration. UI_MODE_TYPE_MASKs mean. What are UI_MODE_TYPE_UNDEFINED, UI_MODE_TYPE_NORMAL, UI_MODE_TYPE_DESK, UI_MODE_TYPE_CAR, UI_MODE_TYPE_TELEVISION? normal means its a handheld device and desk is….? Jun 29 14:18:37 Maybe a desk dock Jun 29 14:19:18 Constant for uiMode: a UI_MODE_TYPE_MASK value that corresponds to the desk resource qualifier. Jun 29 14:19:23 desk: Device is displaying in a desk dock Jun 29 14:19:28 ah ok Jun 29 14:19:29 What do you know.. Jun 29 14:19:33 thought that might be what it was Jun 29 14:19:36 reading the docs paid off Jun 29 14:19:47 just thought i had seen other terms for that in the api before Jun 29 14:19:49 so was confused Jun 29 14:20:17 yeah "resource qualifier" is super helpful lol Jun 29 14:20:47 The "desk" part is a link that takes you right there Jun 29 14:22:06 oh ok Jun 29 14:22:07 lol Jun 29 14:22:15 dunno why i missed the link Jun 29 14:22:18 hmmm it seems i can't use setProgressStyle on a ProgressDialog created with one of the show() methods Jun 29 14:22:37 the redesign of the site looks ok and all, but honestly just makes it harder for me to find what im lookiong for Jun 29 14:22:55 i get a null pointer exception, but not in my code ;D Jun 29 14:23:01 ok, will create it per pedes Jun 29 14:25:22 tapas you using a dialogfragment? Jun 29 14:26:04 luxurymode: nope.. jusgt ProgressDialog.show() Jun 29 14:26:06 the static functions Jun 29 14:26:22 using a constructure and setting the members manually works with the progressstyle though Jun 29 14:26:30 so i'll ust leave it at that :D Jun 29 14:28:24 is it possible to get the activity's class from a view? Jun 29 14:31:00 elegos: i don't know, but why would you need that? :D Jun 29 14:31:13 elegos: one approach (dirty) would be: Jun 29 14:31:25 iterate over all your activities, get their content view.. Jun 29 14:31:39 then traverse each view hierarchy and see if you find your view.. Jun 29 14:32:07 tapas: 'cause if I'm on a tablet view, I've got one activity "to rule them all" (fragments), while on a smartphone I've got two different activities Jun 29 14:32:23 so I'd like to differentiate the tablet and smartphone behavior Jun 29 14:32:47 elegos: i guess you could tag the views with a reference to your activity Jun 29 14:32:56 unless you use the tagging stuff for something else already Jun 29 14:33:16 tapas: I'd even add a bool to my Singleton to know the status at this point Jun 29 14:34:34 elegos: :D Jun 29 14:34:56 I think it's smarter :P Jun 29 14:35:16 yeah if the second activity gets instantiated, just set the bool Jun 29 14:35:28 [the one that only gets used when in "tablet mode"] Jun 29 14:35:39 maybe it's an architectural problem though.. Jun 29 14:35:48 why do you need to make that distinction? Jun 29 14:35:58 nah, I've got a menu on the left and the content window on the right Jun 29 14:36:01 (on tablets) Jun 29 14:36:22 the menu entries replace the content's fragment Jun 29 14:36:38 in the case of smartphones, the content's fragment is stored in a separate activity Jun 29 14:37:00 so, if I have to "go back to menu", I don't have to do it on tablets Jun 29 14:37:13 and here comes the bool :) Jun 29 14:37:15 hi Jun 29 14:37:28 yo Jun 29 14:37:37 did anyone try new google GCM service? Jun 29 14:37:55 I always get "Unavailable" as response Jun 29 14:38:04 GCM? Jun 29 14:38:17 so deliverResult in AsyncTaskLoader is similar to onPostExecute in AsyncTask? Jun 29 14:38:21 http://developer.android.com/guide/google/gcm/gcm.html#server Jun 29 14:38:41 GCM = Google Cloud Messaging Jun 29 14:39:08 cool, what's it exactly? Something program message sharing through the cloud? Jun 29 14:39:53 luxurymode: I've learned the AsyncTaskLoader from a very piece of code, this one: http://neilgoodman.net/2011/12/26/modern-techniques-for-implementing-rest-clients-on-android-4-0-and-below-part-1/ Jun 29 14:40:04 there's a github source code demo Jun 29 14:40:08 (too) Jun 29 14:40:13 it's well-explained Jun 29 14:40:23 elegos, im not so much trying to learn it as just had a question Jun 29 14:40:28 but i'll check that out, thanks Jun 29 14:40:30 ok :) Jun 29 14:40:56 actually might be helpful to answer my question: why/when should i use an asynctaskloader as opposed to asynctask? not sure i "get" it Jun 29 14:41:18 is the main difference that asynctaskloader makes sense for when there could be changing things and you need to update when changes happen? Jun 29 14:41:38 err has anything been done to address the amount of refunds on apps? Jun 29 14:41:47 I think people are getting apps, pulling them with root, and then refunding Jun 29 14:42:39 luxurymode: not having used AsyncTaskLoader, I think it's not meant to be a replacement for AsyncTask Jun 29 14:42:46 or something used in place of AsyncTask Jun 29 14:42:58 but simply a convenience class for android's loader infrastructure Jun 29 14:43:04 that uses an AsyncTask to do the work Jun 29 14:43:04 so where/why is it different? Jun 29 14:43:21 oh ok MDijkstra, guess i didnt start fundamentally enough Jun 29 14:43:23 luxurymode: I personally find AsyncTaskLoader way easier to code Jun 29 14:43:25 skipped the loader step Jun 29 14:43:35 asynctask is a breeze, but yeah Jun 29 14:43:38 issue isnt ease of use Jun 29 14:43:44 gotta find out what this whole loader thing is Jun 29 14:43:46 :) Jun 29 14:43:53 I dunno either, haven't used it Jun 29 14:44:01 strikes me as a bit overengineered Jun 29 14:44:04 I think Google made AsyncTasks easy, just that :) Jun 29 14:44:09 you only have to handle the callbacks Jun 29 14:44:24 MDijkstra, yes the convenience classes are always overengineered :) Jun 29 14:44:42 asynctasks are overkill a lot of the time Jun 29 14:44:47 but whatever Jun 29 14:45:03 MDijkstra, so are we talking about android.content.loader? thats what ATL's relate to? Jun 29 14:45:16 oh see, im right Jun 29 14:45:29 the whole idea of the loader is that you are monitoring changes to the data source Jun 29 14:45:38 not necessarily Jun 29 14:45:41 so the example of listening for changes in package installations makes sense Jun 29 14:46:00 asynctask is more like when you just have a one shot network call or some crap and then wanna deliver those results to the UI Jun 29 14:46:28 well yeah, but even when you're not reloading Jun 29 14:46:35 or watching for updates Jun 29 14:46:54 then loader is still slightly more convenient than writing your own loading logic Jun 29 14:47:21 ie, start loading asynchronously, when callback arrives swap out loading view for content view Jun 29 14:47:35 hmm, didnt realize it helped with actual loading of stuff Jun 29 14:47:39 that's what loader offers, a simple state machine for activities Jun 29 14:47:41 oh oh i see Jun 29 14:47:53 asyntask sort of has that in terms of showing progress Jun 29 14:47:56 but not much else Jun 29 14:48:10 well yeah, but this logic is usually like 5 lines of code Jun 29 14:48:25 so imo there's not much of a point Jun 29 14:48:30 but maybe I'm missing something :) Jun 29 14:48:30 MDijkstra, im happy to hear this and that you clarified. because it confirms my suspicions that ATL is exactly what i need for fragments, instead of the other async type approaches im currently using Jun 29 14:48:36 MDijkstra, oh lol Jun 29 14:48:37 haha Jun 29 14:48:42 i gotta mess with it a bit Jun 29 14:48:49 i dont so much mind the code being verbose Jun 29 14:48:59 bc i can cut down on that to some extent eventually Jun 29 14:49:13 i just want it to be simple and smooth without TOO much overkill Jun 29 14:49:22 at least, I usually just have a setContentView(R.layout.loading); and then a setContentView(R.layout.some_view); when the asynctask completes Jun 29 14:49:22 and that last consideration might just be the issue here, lol Jun 29 14:49:39 MDijkstra, yeah but what about when you're using fragments? Jun 29 14:49:46 you cant have a new onCreateView Jun 29 14:50:01 i suppose you could have onCreate in the fragment call getActivity().setContentView Jun 29 14:50:14 but then how do you prevent your fragment from loading Jun 29 14:50:17 its not simple Jun 29 14:50:20 same deal really, only you overlay the loading screen over the content Jun 29 14:50:28 MDijkstra, right thats what i do Jun 29 14:50:34 and then set View.GONE when you're done loading Jun 29 14:50:41 but i hate having to make everything have some framelayout just so i can show and hide progress Jun 29 14:50:46 its very awkward to me Jun 29 14:50:47 fair enough Jun 29 14:50:54 like i make this whole layout or some crap Jun 29 14:51:04 and then when i later discover theres actually some loading taking place Jun 29 14:51:17 im like, ok time to wrap this whole thing in a framelayout and include a progressbar, bla bla Jun 29 14:51:22 it seems very awkward to me Jun 29 14:51:46 i think there should be a simple way to have your fragments UI be something else temporarily Jun 29 14:52:11 like where you can almost indicate that onCreateView should wait until the data needed for it is ready Jun 29 14:52:18 dont you think that'd be nice? Jun 29 14:52:29 and show some other view in meantime Jun 29 14:52:36 yeah, although I dunno whether that's the best way to solve it Jun 29 14:52:52 MDijkstra, yeah i agree. thats why im not on the sdk team, lol Jun 29 14:52:59 any other ideas? interested to hear what you think Jun 29 14:53:11 its just weird that fragments should make something like this a whole work around Jun 29 14:53:16 like i understand WHY that is Jun 29 14:53:27 because a fragments are really just views Jun 29 14:53:39 and adding and replacing and removing fragments is just complicated view stuff Jun 29 14:53:41 nothing special really Jun 29 14:54:03 but its annoying when fragments make SOME things harder Jun 29 15:09:06 MDijkstra, would grabbing the activity in the Fragment's onCreate and setting it to the loading layout and then also calling setUserVisibleHint(false) then set up your view in onCreateView and having a loader populate the view, then when its done setUserVisibleHint(true) make any sense here? Jun 29 15:10:31 woohoo, typhoon time! Jun 29 15:10:40 wha? Jun 29 15:11:14 luxurymode: that'll break on a tablet layout right? Jun 29 15:11:32 why? Jun 29 15:11:41 because you'll have two panes in one activity Jun 29 15:11:48 and you'll set the entire activity to the loading screen Jun 29 15:11:49 right Jun 29 15:11:54 good point Jun 29 15:11:58 Leeds: Is that like peanut butter jelly time? Jun 29 15:12:22 you can also just add the loading fragment to that part of the layout Jun 29 15:12:29 lov: I am not aware of this peanut butter jelly time to which you referrings Jun 29 15:12:31 pb&j sandwich with some chai really hits the spot Jun 29 15:12:35 i might make some Jun 29 15:12:38 but thats basically just doing what you said befoee Jun 29 15:12:44 just managing it all manually yourself Jun 29 15:13:27 well, I prefer doing it inside one layout, but I haven't really thought about this before Jun 29 15:13:37 yeah just seems like a common problem Jun 29 15:13:40 ie, you simply have a framelayout as root Jun 29 15:13:48 and include the loading layout Jun 29 15:13:51 not ideal though Jun 29 15:14:11 like it just feel weird to have some async data fetching triggered in oncreateview, but meanwhile the view returned in oncreateview is not populated when it returns Jun 29 15:14:28 hence you do what you said: framelayout with a progressbar or whatever set to visible and the rest set to invisible Jun 29 15:14:40 no need to do that in oncreateview though Jun 29 15:14:44 onStart is also fine for that Jun 29 15:15:04 (optionally with a check to see whether you've already loaded the data) Jun 29 15:15:14 MDijkstra, right Jun 29 15:15:39 Leeds: http://www.youtube.com/watch?v=Z3ZAGBL6UBA Jun 29 15:16:13 lol Jun 29 15:17:29 lov: http://www.youtube.com/watch?v=sj4amYIGias Jun 29 15:18:22 can I get an ImageView's drawable resource ID? Jun 29 15:19:07 does anyone know if it is possible to get the list of Wifi networks that the user has associated to previously? They show up in my "Settings -> Wifi" as "Out of range." … however I can't find anything in WifiManager to get them Jun 29 15:23:09 I've been asked to help out with a program being developed for the Android platform but I have never done this before. I'm only acquainted with Python and C yet it seems Android applications are written entirely in Java, is this correct? Jun 29 15:23:34 totte: yep Jun 29 15:23:49 UI facing parts are generally written in java (except for games) Jun 29 15:24:16 but you may talk to native code using the java native interface Jun 29 15:24:41 MDijkstra: Okay, thanks. Jun 29 15:26:12 Doesn't this make the user experience a tad sluggish, though? I've never used an Android device but Java desktop programs always felt bit slow when processing a lot of data. Jun 29 15:26:31 totte, no java is fast Jun 29 15:26:37 cant speak to why desktop apps suck Jun 29 15:26:50 also there have been some improvements in the dalvik vm above the jvm Jun 29 15:26:52 but its not huge Jun 29 15:27:05 but does help to optimize it for resource constrained environments a bit Jun 29 15:27:16 but if you write fast, memory efficient code, then its fast Jun 29 15:27:21 if not, its slow :) Jun 29 15:27:37 luxurymode: Ah, cool, thanks. Jun 29 15:28:25 totte: "lawl java = slow" hasn't been true in like 10 years. Jun 29 15:28:32 if your desktop java apps are slow, they were poorly coded Jun 29 15:28:49 totte: anyway, you can use the NDK to write most/all of the app in C Jun 29 15:29:35 Leeds: whoever put the giant fan next to that fountain was an idiot Jun 29 15:30:15 lov: well, java's tendency to pile abstraction onto abstraction also doesn't increase the speed Jun 29 15:30:24 doesn't apply to android though Jun 29 15:32:37 Most of the abstraction should be compile time, not runtime Jun 29 15:32:40 lov: that would be God... Jun 29 15:34:18 MDijkstra: that's a failing of an API more than of the language/runtime Jun 29 15:35:51 lov: well, I just understand why java as a language has gotten a reputation for being slow Jun 29 15:36:21 lov: not that it's inherently slow of course, but it's much easier to write slow code in java Jun 29 15:36:29 well, not just that. Jun 29 15:36:31 Pre-JIT it was very slow Jun 29 15:36:34 lov: I found out about the NDK. Still, it seems that Java is the "official" route and choosing C/C++ is only recommended if necessary - not by preference. Jun 29 15:36:34 before the advent of JIT, yeah that Jun 29 15:36:44 totte: that's the case. Jun 29 15:36:50 JITs didn't get good for awhile, either :p Jun 29 15:36:51 not the lang, the jvm, but that slowness got fixed Jun 29 15:36:52 totte: it depends on your particular use case, of course. Jun 29 15:37:07 totte: In theory you can now implement a full lifecycle in pure NDK. I've never seen it done tho. Jun 29 15:37:10 totte: if you're writing a cross-platform app, it may be simplest to write it in C and have an abstraction layer in Obj-C and/or Java Jun 29 15:37:14 and "mitigated" might be better than "fixed" Jun 29 15:37:47 does anyone know if i can use special unicode characters (ä and ö) in C2DM payload? Jun 29 15:38:05 i'm pretty sure everything is encoded in utf8 on my part Jun 29 15:38:08 both server and client Jun 29 15:38:10 I never got into Java so I'm not to keen on trying to learn it again. Then again, it does seem to be popular. Jun 29 15:38:13 why all the new cool activity templates are only for ics, most of us are developing for 2.2 Jun 29 15:38:34 lov: That sounds nice. Jun 29 15:38:36 okand_: because most of us would like to see 2.2 go away eventually :) Jun 29 15:38:44 hopefully Jun 29 15:39:12 totte: if you're going to be developing anything that's really meant to act like a native android app, it's probably worth your time to suck it up and deal w/ the java Jun 29 15:39:53 have they implemented the new avd manager already? i still don't see the new 'device' option Jun 29 15:40:06 I've got this layout: http://pastebin.com/0iVMk4fW I want the browse_folders_grid to be as high as the parent but 50dip on the bottom in order not to overlay the button... I've set the layout_marginBottom to 50dp, still it won't do it... http://pastebin.com/0iVMk4fW Jun 29 15:40:12 does anyone know if it is possible to get the list of Wifi networks that the user has associated to previously? They show up in my "Settings -> Wifi" as "Out of range." … however I can't find anything in WifiManager to get them Jun 29 15:41:59 gnychis: I've found the reverse thing, you may study it out: http://kmansoft.com/2010/04/08/adding-wifi-networks-to-known-list/ Jun 29 15:43:16 elegos: thanks! i will take a look at that. not sure if it will allow me to go the other way, but i'll check it out Jun 29 15:45:14 dragorn: Well, I'm not too fond of my iPhone so I guess you have a point there. Jun 29 15:45:40 the new relativelayout support is amazing! Jun 29 15:45:57 okand_ agreed Jun 29 15:46:04 I've had an iPhone for 1 month now (for dev use) and as a user -- it's losing it's initial luster Jun 29 15:46:13 i come home and use my droid razr on wifi Jun 29 15:46:13 no more playing around with the xml files :D Jun 29 15:46:57 from now on, I'm just buying Google phones -- they get new OS first. God damn Moto and their piece of shit process. Jun 29 15:47:03 still no ICS on my RAZR Jun 29 15:47:14 QubeZ: Yes, but it does seem to allow for more options whent it comes to programming languages. Jun 29 15:47:31 does anybody know why ndk-build would only produce armeabi-v7a? Jun 29 15:47:32 totte: iOS does? Jun 29 15:47:32 QubeZ: i swore off motorola after the x2 Jun 29 15:47:40 no more moto for me Jun 29 15:47:43 i need to sell this razr Jun 29 15:48:43 QubeZ: Yeah, Objective C, C, C++... unless I'm mistaken you can even run other code as long as it is within the program bundle. Jun 29 15:49:21 you can run anything you want on android .. i'm not sure how that's "less" Jun 29 15:49:31 i'm new to iOS, still porting my app over but I"ll take your word for taht :) Jun 29 15:50:22 oGMo: I thought the earlier consensus was Java, and to some extent C/C++... :) Jun 29 15:50:42 totte: anything that compiles to armv5/7 and soon x86 Jun 29 15:50:57 QubeZ: you can compile C and variants of C; it doesn't matter as long as it compiles to a library. Jun 29 15:50:59 and i think most new devices are armv7 so you can probably drop the v5 Jun 29 15:51:00 er Jun 29 15:51:01 totte: ^^ Jun 29 15:51:08 totte: ANY OTHER language and you're forbidden. Jun 29 15:51:19 apple explicitly forbids using other languages, or releasing scripting utilities Jun 29 15:51:35 Android has no such restrictions; if you wish to port or use python somehow, it's tough but go ahead. Jun 29 15:52:07 android only "officially" supports Java and C/C++ to a small extent Jun 29 15:52:08 and on android since there are C bindings for basic stuff (i'm not sure how much the ndk addresses now), anything that can make C calls can access what C can .. if you're creative, you could bridge via jni Jun 29 15:52:10 Android has a great future Jun 29 15:52:34 after watching the keynote from Day 1 of IO -- very impressed Jun 29 15:52:47 not sure if Day 2 is available. I need to watch the section on cloud messaging Jun 29 15:52:50 that said i'd probably use a java (or variant) for any primarily-android-widgety stuff, but Jun 29 15:52:58 QubeZ: which keynote? Jun 29 15:53:09 yuizy: Day 1 keynote of IO Jun 29 15:53:18 oh, there's just one keynote? Jun 29 15:53:23 i thought they all were keynotes Jun 29 15:53:24 (from Jun 27) Jun 29 15:53:35 well, that makes more sense Jun 29 15:53:37 well keynote from Day 1 I've seen Jun 29 15:53:41 waiting for Day 2 to be posted Jun 29 15:54:05 and of course sessions but the reason I want to watch Day 2 keynote is I'm interested in GCM Jun 29 15:54:10 what are the rest of the events called? sessions? Jun 29 15:54:15 yuizy: yes Jun 29 15:54:23 kk Jun 29 15:54:31 my web service guy has been working with C2DM and now we're moving to GCM Jun 29 15:55:21 lov: I think Apple lifted that ban back in 2010 - as long as the code is in the bundle, it's cool. No source for this rumor though. Jun 29 15:56:21 totte: my understanding is that this is not the case; they do enjoy their dictatorial control. Jun 29 15:56:54 I have some native code with a .so in libs/armeabi, and I get unsatisfied link error if I run it on an older test device, but not on a newer device (galaxy nexus) Jun 29 15:56:57 Well the draconic and obsessive dictatorship remains. :) Jun 29 15:57:13 if I include it in libs/armeabi-v7a the old phone finds it, but there are bugs in the native functionality Jun 29 15:57:21 anyone have any idea how I can look into/debug this/ Jun 29 15:58:11 I would also like to know why the old phone does not find the .so in the libs/armeabi folder, but does find it in the libs/armeabi-v7a folder Jun 29 16:01:14 zambo: If I recall, there's some bug in the resourcing; if you have a libs/armeabi-v7a and libs/armeabi folder, it'll ignore the .so in armeabi but consider armeabi-v7a unsuitable. Jun 29 16:01:25 I don't remember offhand, however. Jun 29 16:01:38 try using armeabi-v5 Jun 29 16:05:18 i wonder when verizon's nexus will get jellybean Jun 29 16:21:51 next month right? Jun 29 16:22:18 i thought the keynote from day1 said jelly bean will be delivered to nexus phones in July Jun 29 16:22:29 I figured they meant the unlocked GSM ones Jun 29 16:22:40 ahh Jun 29 16:23:15 although I can't imagine it taking verizon very long to follow suit Jun 29 16:25:38 verizon is horribley slow with updates Jun 29 16:28:04 is there a way to make the Contextual action bar scrollable , to fit more in it ? Jun 29 16:29:26 ever since I updated my ADT to 20 my sharedPreferences are not reading properly. When I run the same apk on my gingerbread vs ICS phone, the ICS phone just keeps returning false for the preference while the gingerbread one returns the correct value based on what I have done in the app. Jun 29 16:29:53 wongk: I was hoping it wouldn't be so bad for a vanilla android device Jun 29 16:30:59 tnzr: has that device even seen single update yet? Jun 29 16:34:46 anyone else having an issue on GN with JB where you cant use the touch screen when a call is coming in Jun 29 16:34:48 so you cant answer Jun 29 16:35:27 perhaps your phone is suggesting you need to slow down and take a break :P Jun 29 16:39:03 any reason to not always use the latest ACL? Jun 29 16:39:08 i seem to always see ppl using V4 Jun 29 16:39:51 the different versions have different classes available Jun 29 16:40:06 they correspond to the lowest API number they support Jun 29 16:40:20 v4 has fragments and the like Jun 29 16:40:25 oh ok so if i want to go back to 1.6 i need v4 Jun 29 16:40:32 wongk-sf: yeah the GN from verizon got 4.04 a few weeks ago Jun 29 16:40:37 (sorry for the late response) Jun 29 16:40:44 if you want to use fragments you need to use v4 Jun 29 16:47:15 anyone here use intellij? Jun 29 16:52:25 hells yes i do Jun 29 16:52:42 I do Jun 29 16:53:03 also v4 speaks to the API level it supports, the latest version if revision 9 which you should most definitely be using! Jun 29 16:53:08 except i think we covered that Jun 29 16:53:20 i should read the scroll back before commenting Jun 29 16:53:20 JakeWharton u had a callout yesterday @ io Jun 29 16:53:35 yeah i was there but left when some doofus asked about a map fragment Jun 29 16:53:45 o haha Jun 29 16:56:48 cnbc is hating on zynga :P Jun 29 16:56:55 wat Jun 29 16:57:08 thy'e obviously referring to the stock Jun 29 16:58:19 JakeWharton, so im trying to create a new library project. in that project, it has ACL V4 in the libs as a dependency. when i try using this library project in my project, intellij tells me the libs dependency inside of the library project is an invalid dependency. i can only get it to work if in the library project i directly add the V4 as a jar dependency (as opposed to adding the whole libs folder as library dependency) Jun 29 16:58:40 i actually bought some stock when it dipped below $5 then sold it after it raised up a bit... made a couple hundress Jun 29 16:58:43 *hundred Jun 29 16:58:54 canadiancow|work: has a highlight on zynga Jun 29 16:59:02 maybe <.< Jun 29 16:59:14 he's watching Jun 29 16:59:32 time for me to head out for an interview Jun 29 16:59:44 wtf this sharedpref issue is driving me nuts on ics Jun 29 16:59:55 ics is old news Jun 29 17:00:19 luxurymode: in the library project's properties is the support library dependency have a checkbox in the "exported" column? Jun 29 17:00:54 no i have it as compiled Jun 29 17:01:10 oh sorry the checkbox Jun 29 17:01:11 nope Jun 29 17:01:12 there should be another column where you can mark it as exported Jun 29 17:01:15 should check that? Jun 29 17:01:30 actually yeah it is checked already Jun 29 17:01:31 if that's checked, it means that any project which depends on the library project will also pick up that jar as well Jun 29 17:01:46 btw, i added the whole libs folder as a library in the library project Jun 29 17:02:00 thats how i always added the libs folder in intellij…not sure if that makes a difference Jun 29 17:02:03 yo dawg i heard you like libs Jun 29 17:03:11 you mean as a dependency? Jun 29 17:03:17 that's find, it'll pick up any .jars inside Jun 29 17:03:20 fine Jun 29 17:03:50 yea Jun 29 17:03:53 doesnt work though Jun 29 17:04:01 still shows libs as invalid in my non-library project Jun 29 17:04:07 is there a way to make the Contextual action bar scrollable , to fit more in it ? Jun 29 17:04:49 also another question related to libs: no reason i should have to declare services of the library project inside my non-library project, right? Jun 29 17:06:33 if you're using ADTr20 you can enabled manifest inheritance and it will automatically add anything defined in the library project to the application project's manifest Jun 29 17:06:37 going to I/O, back later Jun 29 17:07:04 JakeWharton, how do i enable that? Jun 29 17:08:09 do i enable it in the library project or in the non-lib proj? Jun 29 17:12:05 yea luxurymode i couldnt get it working with r20 preview 3 Jun 29 17:12:10 havent tried with the final release Jun 29 17:12:13 Anyone have any tips for preventing a SimpleCursorAdapter from calling bindView() over and over again? It's caught in a loop of drawing and remeasuring, probably because I'm generating parts of the row contents dynamically. I just don't understand why it insists on remeasuring over and over and over and over… Jun 29 17:12:51 hmm, yeah i added that to my project.properties but cant seem to start that service Jun 29 17:14:35 canadiancow|work, actually i think im not using the preview Jun 29 17:14:43 im using the one available directly in the sdk manager Jun 29 17:14:46 yea Jun 29 17:14:49 i havent tried with that one yet Jun 29 17:16:22 but manifestmerger is available even before the preview? Jun 29 17:16:36 can i still include the service without this? Jun 29 17:16:45 by declaring it outright in my application manifest? Jun 29 17:17:22 looks like my problem related to ICS is only occurring when I set targetSdkVersion in my manifest, if I remove that and only leave minSdkVersion then all is well, wtf Jun 29 17:17:42 looks like that works fine Jun 29 17:17:48 PeteS: we can't help without source code Jun 29 17:18:21 QubeZ: what's your issue? Jun 29 17:19:00 http://dl.dropbox.com/u/904165/available_wifi.png Jun 29 17:19:03 look at the second network Jun 29 17:19:10 lol wtf Jun 29 17:19:11 !!! Jun 29 17:19:14 evancharlton: I have a method where I read a sharedPref value (by key) -- I can see in my _preferences.xml that the key is in there but it keeps returning false. Jun 29 17:19:23 regardless if the key is set or not, it always returns false Jun 29 17:19:28 canadiancow|work: https://plus.google.com/117081144164759109682/posts/QwqydLuASJ3 Jun 29 17:19:44 is there some restrictions on reading sharedPref on UI thread? Jun 29 17:19:52 hah Jun 29 17:19:53 QubeZ: I doubt it, but check logcat Jun 29 17:19:55 QubeZ, hell no Jun 29 17:20:18 for example, when I set the targetSdkVersion to 20 -- I get an error about some of my code that is on mainthread... so I moved it to ASyncTask but this sharedPref always returns false Jun 29 17:20:27 evancharlton: checked logcat, nothing there related to this Jun 29 17:20:57 so now I just removed the targetSdkVersion from my manifest and it works as expected -- when key is there, it returns true and when key is absent it returns false on both my gingerbread and ics Jun 29 17:22:07 anyone use achartengine? i've got a chart that is updating via series.add(x,y); and myChartView.repaint(); but when i touch the screen, it quits working. Jun 29 17:27:11 evancharlton: wanna take a shot at why my sharedpref returns false always when I have targetSdkVersion set? whether its 15, 17, 20 etc.. anything Jun 29 17:27:17 once I remove that, it behaves as expected Jun 29 17:31:32 QubeZ: what if you set it to minSdkVersion? Jun 29 17:32:07 i thought if you dont set targetSdkVersion explicitly, its implicitly set to minSdkVersion, in my case its 8 Jun 29 17:32:08 Here's my SimpleCursorAdapter that most of the time ends up calling bindView() in a nearly infinite loop. I've taken out almost all of the code, so it's not even doing anything anymore, yet still calls bindView nonstop: http://http://pastebin.com/eJMaGQmT Jun 29 17:32:12 06-29 10:29:29.305: W/Resources(8293): Converting to string: TypedValue{t=0x10/d=0x493e0 a=-1} Jun 29 17:32:17 that's showing up in my logcat on JB Jun 29 17:33:10 but i didnt think id seen it on ICS Jun 29 17:33:12 sigh Jun 29 17:37:08 strange shit Jun 29 17:37:11 driving me nuts Jun 29 17:42:23 i do like how the new adt allows you to view the xml's graphically for other locales Jun 29 17:42:32 i can see how spanish will look now in my app Jun 29 17:42:42 without having to view it on a real phone Jun 29 17:43:26 does anyone know if it is possible to get the list of Wifi networks that the user has associated to previously? They show up in my "Settings -> Wifi" as "Out of range." … however I can't find anything in WifiManager to get them. There is an App in Google Market called "Wifi Manager" that has an option to show "Known Networks" but I can't figure out how they're doing it. Jun 29 17:45:21 I'm trying to encode a JSON object but it keeps escaping my forward slashes. "uri" : "some/place" turns into "uri": "some\/place" Googling returns that's just the way it is. There has to be a way to remove the escape characters. Any ideas? Jun 29 17:45:41 also, I think you'll find that to be valid JSON, it has to escape some characters, including '/' Jun 29 17:45:54 SpNg: why don't you want to change that? does your json parser on the other end not handle it properly? Jun 29 17:46:17 mdwright: yeah the socket server I'm working with is not expecting the escape char Jun 29 17:46:38 SpNg: then it's not handling JSON correctly Jun 29 17:47:34 Leeds: I can talk with the dev to have it updated, but is there anyway around this? When I perform the same flow on a web application this is not the case. Jun 29 17:48:00 is there any way to get the json encoder to generate incorrect json? Jun 29 17:48:05 doubt it... Jun 29 17:48:13 gnychis: this is older code, but it'll probably be what you are looking for ... https://github.com/joakime/android-build-info/blob/master/src/com/solshen/buildinfo/BuildInfoActivity.java#L72 Jun 29 17:48:31 Leeds: haha, when you put it like that it sounds ridiculous. Jun 29 17:48:31 SpNg: this isn't robust, but a simple solution is to just do a find replace on the resulting json Jun 29 17:48:33 joakime: rock on! that's what i needed Jun 29 17:48:59 mdwright: so after it has been encoded, just crawl the string? Jun 29 17:49:18 I'm really just trying to do some prototyping right now Jun 29 17:49:24 SpNg: Yeah Jun 29 17:50:00 bare slashes aren't valid anywhere, so you should be able to replace \/ with just / without much or any problems Jun 29 17:51:32 mdwright: ok cool. going to give it a run, brb Jun 29 17:53:59 has anyone been able to download the JB sdk? Jun 29 17:54:07 i can only see the google apis, which require the sdk Jun 29 17:54:43 canadiancow|work: Packages > Reload Jun 29 17:55:11 thank you sir Jun 29 17:55:16 that worked beautifully Jun 29 18:06:16 for dependencies like pull to refresh do you guys build and reference the binaries or build it always? Jun 29 18:16:55 ello? Jun 29 18:17:36 eggie5 my darling, welcome! Jun 29 18:17:46 Leeds: haha thanks Jun 29 18:18:33 ctate, ping Jun 29 18:20:33 i'm curious how it is common to keep state in an android app. I want to move from on activity to the other and have a reference to some data in each. But there seems to be no notion of of global above the activity class.. Jun 29 18:21:05 say I want to access a variable in Activity A. Then A launches B and I want to use variable again Jun 29 18:21:20 eggie5: There are plenty of ways to do this. Jun 29 18:21:28 It depends on what kind of information you want to keep track of Jun 29 18:21:31 eggie5, seems the "Application" class was designed for that, but in the documentation for application, they say to use a static singleton. Jun 29 18:21:33 it might make more sense to use a Service for some things. Jun 29 18:21:47 Or, you might want to just use a static class, if it's ok for that info to go away when the app is killed Jun 29 18:22:02 or, use a content provider Jun 29 18:22:06 or use one of many other things Jun 29 18:22:08 lov: well when the app starts it gets some data from the network Jun 29 18:22:18 ok, you should PROBABLY be using a Service for that part. Jun 29 18:22:18 lov: i want to use that across activity A and B Jun 29 18:22:27 Yeah, you want a Service. Jun 29 18:23:15 lov: so say I create Service S in Activity A. There's a way to reference S in Activity B? Jun 29 18:23:25 yes Jun 29 18:23:35 you sent a bind request to it from your activity. Jun 29 18:23:39 er, you don't create the service IN your activity Jun 29 18:23:46 the service is another type of application component Jun 29 18:23:49 LIKE an activity Jun 29 18:23:58 *send Jun 29 18:23:59 so you'll BIND to the service from your activities Jun 29 18:24:00 if the data is stringifiable, and there is not much of it, consider just putting it in a sharedpreference. Jun 29 18:24:16 the Service will be available to ALL activities, because it doesn't live within one of them. Jun 29 18:24:32 It's important to realize that Activity is just one of several components that make up an application Jun 29 18:24:41 activities are not the whole thing in and of themselves Jun 29 18:24:47 the service trick is nice and all but pretty complexy just to retain a little bit of state if alternative ways to retain that state exist -- including making a custom file on filesystem to hold it. Jun 29 18:25:01 eggie5: http://developer.android.com/guide/components/services.html Jun 29 18:25:11 read that, or take a look at the API demos app and find one that references services. Jun 29 18:25:15 alankila, he wants to get it from the network, so using a service makes sense anyway. Jun 29 18:25:22 bah. Jun 29 18:25:25 alankila: that's true, but he wants to do network operations and share that info across multiple activities Jun 29 18:25:28 ^^ Jun 29 18:25:37 so, a service is what he needs in this case. Jun 29 18:25:48 SharedPrefs definitely make sense for just keeping track of simple prefs, etc. Jun 29 18:26:04 Services are not more suited to access the network than anything else, but they have one property that makes them useful -- the ability to tell android task killer to sod off Jun 29 18:26:12 er Jun 29 18:26:18 lov, still, if the service isn't doing anything, it makes no sense to keep it around if all it's doing is holding data. It'll die off if it's unbound for the activity transfer anyway. Jun 29 18:26:26 Services are useful for anything that happens in the background which your app or other apps might w2ant to interact with. Jun 29 18:26:27 you still need to run a thread in the service, so you could just as well do that in the activity Jun 29 18:26:45 aarcane: you can call startService; they can live without activities bound to them, mind you. Jun 29 18:27:00 <_Zer0_> Hi all Jun 29 18:27:29 lov, yeah, but if he's doing ONE download, then just storing data, a service makes no sense, at least not more than a singleton, which is a bit simpler to manage. Jun 29 18:27:39 i'll look into a service and somebody also mentioned some Application activity Jun 29 18:27:41 well I don't know what it is that he's actually doing. Jun 29 18:27:48 eggie5: Application is not an activity Jun 29 18:27:56 eggie5: this is important: Activities are not the base class of everything in android Jun 29 18:28:06 activities are just ONE user facing component Jun 29 18:28:24 lov: oh ok. so it's just the android Application class I need to lookup? Jun 29 18:28:30 MAYBE. Jun 29 18:28:36 You PROBABLY don't want Application. Jun 29 18:29:06 ahh "Base class for those who need to maintain global application state" Jun 29 18:29:25 ngg Jun 29 18:29:28 well the thing I'm using is already exposed as a service Jun 29 18:29:38 eggie5: I VERY strongly urge you to read the following: http://android-developers.blogspot.com/2010/04/multitasking-android-way.html Jun 29 18:29:42 so I'll just figure out how to reference it from diff activities Jun 29 18:29:51 lov: i'll read that Jun 29 18:30:02 <_Zer0_> usually its stupid to ask to ask something,but i will do anyway :) can u help me with my simple app? Jun 29 18:30:17 <_Zer0_> im having problems running it Jun 29 18:30:17 eggie5, there are three approaches. 1) Service (for downloading, and storing data, not perfect, but suitable), 2) Application (Reference for Application suggests using a Singleton) 3) Singleton (Not suitable for downloading from the network) Jun 29 18:30:21 _Zer0_: cool story bro. Jun 29 18:30:31 _Zer0_: you could pastebin some code and ask a specific question. Jun 29 18:30:48 don't ask to ask just ask Jun 29 18:30:55 <_Zer0_> sure here is the pastebin: http://www.vpaste.net/PZBGM Jun 29 18:30:58 Hey all. Using native code with the NDK, I'm using dlopen/dlsym on a shared library. The dlopen() succeeds however the dlsym fails with the error "Symbol not found:" -- any ideas? Jun 29 18:31:00 we are nerds after all Jun 29 18:31:17 nerd alert! Jun 29 18:31:40 <_Zer0_> i think the code works,but when i press the login button,it just freeze,and then the app stop working Jun 29 18:31:47 zomg Jun 29 18:32:35 "stop working" means it crashes, hangs, force closes, gives an error in the log, or turns your phone into a transformer which trashes half of New York? Jun 29 18:32:47 <_Zer0_> crashes Jun 29 18:33:23 _Zer0_: look in logcat, look for the stacktrace. Jun 29 18:33:32 The stacktrace will give a line in your app where something bad happened Jun 29 18:33:34 look for that line! Jun 29 18:33:48 loled at the "turns your phone into a transformer which trashes half of New York" xD Jun 29 18:33:51 also, does your app have the Network permission? Jun 29 18:33:55 well that's random... awwwwh PMed me for some random root support, I asked why he was asking me, he said he couldn't talk in the channel, then said nevermind... then randomly swore at me and quit Jun 29 18:33:59 <_Zer0_> lov: yes it does Jun 29 18:34:08 so I've got a file queue that stores files until the system is low on ram (by using a guestimate as to how much ram is available and saving N files). Is it a wise idea to overload the memory related application members, such that the queue is halved, or even flushed upon request of the OS, or will this not work as expected ? Jun 29 18:34:11 Leeds: haha Jun 29 18:34:17 bah.. android-support-v4 and two dependencies that depend on it.. how to fix this? Jun 29 18:34:17 _Zer0_: http://android.vmlinuz.org/bbp.html Jun 29 18:34:21 Did you point him to the topic of the channel? Jun 29 18:34:26 the part that says "Can't talk? register your nick!" Jun 29 18:34:30 Leeds, htcman ? Jun 29 18:34:42 aarcane: what now? Jun 29 18:34:51 Leeds, was it htcman who bugged you ? Jun 29 18:34:55 lov: yeah, I asked him if he was registered... Jun 29 18:34:57 <_Zer0_> Leeds: thanks :) Jun 29 18:35:02 aarcane: no, awwwwwh Jun 29 18:35:30 Leeds, hmm, 'cause htcman did that to me, so I sent him to #freenode to get help. Jun 29 18:35:49 bummer, i guess there are no live streams from day 3 of i/o ? Jun 29 18:35:57 * aarcane facepalms at all the people who can't register today Jun 29 18:36:02 aarcane: I've got better things to do with my life than give support for general IRC issues... like watching paint dry Jun 29 18:36:08 aarcane: how about trying softreference? Jun 29 18:36:13 err, weakreference Jun 29 18:36:36 alankila, what's that do ? I'm not familiar with it at all Jun 29 18:36:37 g00s: no keynote today, apparently it's mainly over-full sessions - even most of the exhibition area is gone... seen a few people a little disgruntled about it on G+ Jun 29 18:36:50 <_Zer0_> just another question :) can i still reading the stacktrace from my phone cause im using the AIDE for the client side of the app Jun 29 18:37:33 aarcane: just something that ties into the memory subsystem. maybe you want a softreference. It is a construct that is collectible when necessary but kept around until memory pressure forces its death Jun 29 18:38:06 Okay to answer my own question, in my Android.mk file I needed to add 'LOCAL_LDFLAGS += -Wl,--export-dynamic' , otherwise the symbols couldn't be found in the dlsym() call Jun 29 18:38:22 <_Zer0_> oh nvm,i can Jun 29 18:38:42 alankila, I'm creating small files at about one per second, and not writing them to disk until I've got enough to roughly fill memory. Is a reference of some sort appropriate? will it let me write it to disk on memory pressure, or just destroy it ? Jun 29 18:39:38 aarcane: hmm, well I suppose the finalizer could be used to write the file, but imho you should write the contents as quickly as possible and then let them hang around in some kind of cache either as weakreference or softreference Jun 29 18:39:42 I'd consider building them in memory and only going to the file creation stage when you have enough Jun 29 18:40:33 alankila, the file is created and never used again until the user interacts with it. the point of saving it in memory instead of on disk is to save battery life by not always writing to the memory. Jun 29 18:40:36 not sure what you are doing, but I'd rather save the state early rather than late, if it must be saved at some point anyway Jun 29 18:40:37 *to the storage Jun 29 18:40:54 you can look at how sharedPreferences.Editor.commit() works also; i think they write to a temp spot and then atomically rename it Jun 29 18:41:07 <_Zer0_> i think its impossible to me do that using AIDE,i mean reading the logcat,it keep updating and i cant even read a line :( Jun 29 18:41:11 there is some helper class called JournalingFile or something Jun 29 18:41:48 _Zer0_: we have these things called "computers" which can help with development Jun 29 18:42:26 one thing that is tricky is writing files in a service; the service may get killed with no chance of onDestroy() happening; so you don't get a chance to flush/sync Jun 29 18:42:49 <_Zer0_> Leeds: lol i know,but now i cant use a computer to code ,i should install eclipse,android-sdk ,jdk,... and the computer is not mine :( Jun 29 18:43:17 g00s, it's okay if some of the files don't get flushed. it's a user tunable how much data they're willing to lose in the event of an unexpected shutdown. Jun 29 18:43:39 _Zer0_: you shouldn't need admin rights or anything like that for the SDK Jun 29 18:43:39 k Jun 29 18:44:03 _Zer0_: but you're starting your development with a *massive* handicap Jun 29 18:44:22 <_Zer0_> Leeds: i can develop with my computer,but now im not using my computer so :( Jun 29 18:44:41 _Zer0_: then use your computer? is this complicated...? Jun 29 18:44:44 _Zer0_, the android-sdk and eclipse both don't need to be installed. you can unzip them to a flashdrive and they should work. Jun 29 18:44:57 <_Zer0_> Leeds: i cant use it now? :P Jun 29 18:45:14 then wait until you can, rather than banging your head against AIDE Jun 29 18:45:41 _Zer0_, if you work somewhere where policy prevents using applications from flashdrives, you should just wait until you get home and use your computer or that of your home. Jun 29 18:45:45 <_Zer0_> aarcane: i know,but as long as the owner doesnt want me to install anything on the computer i wont Jun 29 18:45:59 learning to code on Android using AIDE is a really weird thing to do, and likely to be very unproductive Jun 29 18:46:37 <_Zer0_> Leeds: i usually study on my sweet computer at home but since im not at home,and i will not be there for a while ,i was just wondering i could fix it :( Jun 29 18:46:58 _Zer0_: spend the time to get half-decent access to a computer, rather than wasting it on AIDE Jun 29 18:47:23 is anyone watching Google IO ? Jun 29 18:47:32 <_Zer0_> Leeds: i surely will ,any (even far) ideas of what may cause the problem? Jun 29 18:47:44 yes, the problem is not having a computer Jun 29 18:47:54 <_Zer0_> Leeds: lol funny -.- Jun 29 18:48:59 <_Zer0_> thanks anyway,i will re-do it on my computer and see what happends Jun 29 18:49:02 <_Zer0_> :) Jun 29 18:49:28 <_Zer0_> gotta go now,and thanks to you all :D Jun 29 18:49:45 is anyone watching Google IO ? Jun 29 18:49:52 Longbeach, not a single person. Jun 29 18:50:23 it's not streaming now, i dont know why Jun 29 18:50:51 I think it's lunch... but I didn't know it was streaming before. Where can I watch the captured streams from yesterday? Jun 29 18:53:47 https://developers.google.com/events/io/ Jun 29 18:55:54 man, people are itching for this n7 to ship Jun 29 18:56:05 It is weird-- they have charged the full amount t our cards. Jun 29 18:57:57 Longbeach: doesn't seem to be any streams today Jun 29 18:58:04 hasn't been working so far atleast Jun 29 18:58:26 how come Jun 29 18:58:37 oh my. n7. Cue mass effect jokes. Jun 29 18:58:43 who knows Jun 29 18:59:00 I am impressed people have already rooted it apparently Jun 29 18:59:22 of course if you have physical access to just about any device you can get inside ti Jun 29 18:59:24 it Jun 29 18:59:38 "already rooted it" -- rooted what? Jun 29 18:59:42 the N7? Jun 29 18:59:50 yep Jun 29 18:59:52 "fastboot oem unlock" OMG IT'S ROOTED NOW I AM SO L33T Jun 29 18:59:57 kee-rist. Jun 29 19:00:24 is there a way to pass an object (arbitrary class instance) to an activity in your app? I just see simply types like strings, ints, etc in Intent.putExtras.... Jun 29 19:00:56 eggie5: passing objects from *other* apps into yours? Jun 29 19:01:16 ctate: no, in my app from A -> B Jun 29 19:01:22 if it's from within the same app, uh, you're running in the same VM Jun 29 19:01:32 so anything can use all the same objects Jun 29 19:01:39 just call a method on the activity and pass the object in. done. Jun 29 19:02:10 now, backing up a bit... what sort of thing are you trying to accomplish? Jun 29 19:02:37 ctate: ok. So If i'm in Activity A and start Activity B. Now in Activity B, call an instance method on A? Jun 29 19:02:51 eggie5: if you want to put it in an intent, then make it parcelable or serializable Jun 29 19:02:55 ctate: its still impressive given that nobody even has these in their hands yet (except you apparently) Jun 29 19:03:08 and other google employees im sure Jun 29 19:03:08 hays_: and 5000 people at GoogleIO? Jun 29 19:03:21 i mean, they handed them out a couple days ago Jun 29 19:03:22 did they hand them out? didn't know that. Jun 29 19:03:38 eggie5: but why do you need to make a call on activity A, which is not active? Jun 29 19:03:41 Kenji: how do you pass an arbitrary object with the intent? Jun 29 19:03:49 I don't follow the detailed news on these releases. too many of them to care Jun 29 19:03:55 ctate: i thought that's what you were saying... Jun 29 19:04:05 eggie5: nope, i'm not talking about using Intents at all. Jun 29 19:04:08 err Jun 29 19:04:16 eggie5: intent.putSerializable if you make the object serializable Jun 29 19:04:27 Kenji: ewwwww no do not use Serializable Jun 29 19:04:33 yuck and a half. it's so awful. Jun 29 19:04:45 or parcelable same method Jun 29 19:05:23 ha, i'm just trying to create a flow for one activity to the other. I have a an object created in A. Then I launch B from A and I want to reference that object created in A Jun 29 19:05:26 eggie5: i'm asking *why* you need to call an instance method on A, specifically. what information are you trying to pass, and why does it need to be passed that way [when A is not currently running] Jun 29 19:05:45 eggie5: stick it in a static so that any component can reference it. Jun 29 19:06:12 do not muck around with remembering pointers to activity instances; it will get you into trouble. Jun 29 19:06:38 then when A is resumed again later, it looks at that static and hey, there's the info that B provided Jun 29 19:06:42 ctate: does yours have an hdmi port? Jun 29 19:06:45 ctate: it's an instantiated object, how can I get it from a static method? Jun 29 19:06:57 hays_: N7s do not do HDMI out. Jun 29 19:07:29 not even MHL over the usb port. Jun 29 19:07:35 dang. and I was going to blow some cach on one of those video eyeglasses for my flight to S. Africa Jun 29 19:08:13 i'm sure there must be more expensive 7" tablets that do hdmi out Jun 29 19:08:19 (key point: more expensive) Jun 29 19:08:33 eggie5: another method is to put in the application class since all activities can access that Jun 29 19:08:45 notice I said "dang" and not "OMG OMG OMG" Jun 29 19:08:48 that's effectively just putting it in a static, Kenji Jun 29 19:08:54 would have been a nice to have but eh Jun 29 19:09:05 ctate: what do you mean putting it in a static? Jun 29 19:10:36 static MyGlobals sGlobals = new MyGlobals(); Jun 29 19:10:49 etc. singleton stuff. Jun 29 19:11:06 and put shared data inside that class, for easy reference by any of your code Jun 29 19:11:19 ctate: sure, but say it is a common application state that multiple activities use, then i doesn't make much sence to have it as a static in activity A, what makes it belong more in A then in B etc. Makes most sence to have it then in the Application class from a logic stance Jun 29 19:11:34 no no Jun 29 19:11:42 don't put it *in* A Jun 29 19:11:51 make it a public static in its own class Jun 29 19:12:07 if that scoping makes more sense to you. Jun 29 19:12:14 ah ye sure Jun 29 19:12:33 but then why not just use the Application class, that is made for storing common states:P Jun 29 19:13:17 in the end it makes no difference, both works Jun 29 19:13:32 in general i'm not positive about overriding Application Jun 29 19:13:43 you basically never need to, and it's slightly more intrusive on the framework's operation Jun 29 19:13:58 "not positive" meaning "i do not have positive feelings about" :) Jun 29 19:14:27 android docs even say the class is made for just this:P" Base class for those who need to maintain global application state. " Jun 29 19:15:34 can you use a PreferenceFragment in a FragmentActivity or is shit going to fuck up Jun 29 19:15:40 but ye, do what you are most comfortable with yourself i guess Jun 29 19:16:25 Kenji: yeah except that there are people who were involved in the design & implementation who now say "sigh, i really dont' think we should have made Application overrideable" :) Jun 29 19:16:30 anyway, it's not a big deal Jun 29 19:16:47 i'm trying to make a string-array with a dash in it, so the string will come up like "age 0-17" … however it keeps telling me to use an "en dash" character but I can't figure out how to create it in Eclipse Jun 29 19:17:25 – Jun 29 19:17:27 just copy that out :) Jun 29 19:17:29 ctate: some people probobly abuse it to do stuff they really should not :) Jun 29 19:17:46 haha thanks bud Jun 29 19:18:01 our myriad lines... em, en and minus Jun 29 19:18:20 anyone know if it's possibly to buy that alarm clock from the ADK talk at I/O? Jun 29 19:18:24 possible* Jun 29 19:19:10 I've been thinking about overriding application if only because I've got a bunch of objects in memory that I can clean up, but that require manual intervention before cleaning up. Jun 29 19:21:34 ctate: i can't believe that worked.... Jun 29 19:21:40 aarcane: if there are objects that should be gced, but the system can't do it automatically, then you probobly did something wrong somewhere else in the system Jun 29 19:21:50 eggie5: Ye of little faith! :) Jun 29 19:22:19 if i want all my activities, listeners to use one instance of service, then what is the best practice? Jun 29 19:22:28 aarcane: yeah i don't think putting things in an Application subclass rather than in an independent static object will help ypu Jun 29 19:22:35 ctate: i just put public static Device global_Device; in my activity A class and set it. Then I launch B. Then from B I went A.global_Device and it's there... Jun 29 19:22:41 ctate: i'm perplexed Jun 29 19:22:50 hey ctate, I took the backups from last night, formatted my device, and tried to restore. It gets stuck, semi-reliably on the very first package. I've got a logcat of it passing out an xml file to a handler, and then nothing. Jun 29 19:23:02 eggie5: perplexed why? this is basic Java stuff. :) Jun 29 19:23:12 aarcane: oh for Jun 29 19:23:14 say as an example, i have a UserManager, and I want all activities to use same instance of UserManager, like a singleton design pattern. then what is the best practice to keep that single instance? should I use static? Jun 29 19:23:38 trying to run an example app from macos. getting "Failure [INSTALL_FAILED_OLDER_SDK]" what gives? Jun 29 19:23:40 aarcane: that actually sounds suspiciously like "slightly flaky cable and/or usb port" Jun 29 19:23:48 ctate, Kenji: they're in a queue, when it's time to dump to disk, they get written out in order, and unreferenced. Jun 29 19:23:56 i just downloaded sdk and all that jazz Jun 29 19:23:56 jahid: yes. there are some standard Java idioms for managing singletons. Jun 29 19:24:00 ctate, is there some way I can copy the .ab to shared storage and run it manually ? Jun 29 19:24:03 ctate: more like basic programming stuff right. I though since it was static it coudn't hold an instance of Device... Jun 29 19:24:21 ctate, what are those? Jun 29 19:24:43 i bet google could suggest things if you searched for JAVA SINGLETON Jun 29 19:25:13 ctate, nah, i know what is java singleton. but I want to know how that is followed in Android? Jun 29 19:25:31 well I guess it's just like a static method which I understand, but I just never knew you could actually set it with something from an instance Jun 29 19:25:40 ctate: yeah i'll study up Jun 29 19:25:57 what will happen if my activity died? will that also kills jvm attached to my app? on that case static singleton will be lost as well Jun 29 19:26:03 yeah. 'static' in that usage is basically just a scope indicator; it means the variable is not tied to its declaring class's lifetime, but is global to the VM's lifetime. Jun 29 19:26:18 what do you mean by "if my activity died"? Jun 29 19:26:33 there are well-defined points in time where an activity instance will be destroyed and GC'd Jun 29 19:26:39 these do not affect hte rest of the VM's objecgts Jun 29 19:26:45 ctate: ahh, so activity A's instance is gone but the static ref still exists Jun 29 19:26:47 eggie5: just be carefull about what you put in the static variable, as it will keep it from being GCed. Like if you put an activity reference there that will be bad Jun 29 19:27:07 activity1--->activity2--->activity3, letes say this is my navigation graph. now if i press back button 3 times, i will be out of my application and will be on main menu Jun 29 19:27:09 things declared static will last forever (because the VM itself will never execute an orderly shutdown; it will eventually die via a kill -9) Jun 29 19:27:29 does that mean the jvm for my app is also shout down? then the static singleton is lost as well Jun 29 19:27:31 jahid: those three activity instances will all be finished and GC'd, yes Jun 29 19:27:32 b Jun 29 19:27:33 ut Jun 29 19:27:34 the Jun 29 19:27:35 Jun 29 19:27:39 but the VM is not automatically shut down. Jun 29 19:27:44 (note: it's not a JVM) Jun 29 19:27:52 b Jun 29 19:27:53 ut Jun 29 19:27:55 the Jun 29 19:27:59 VMis Jun 29 19:28:00 notau Jun 29 19:28:03 tomati Jun 29 19:28:04 lov: be nice. Jun 29 19:28:05 Kenji: ok Jun 29 19:28:07 :> Jun 29 19:28:08 Colloquy hates me. :( Jun 29 19:28:17 I was making a phrase pyramid! Jun 29 19:28:27 ctate, ahh, so you mean the jvm will still be up, and the singleton service/manager will still be in memory? Jun 29 19:28:38 jahid: It is not a JVM, but yes, that's true. Jun 29 19:28:52 ctate, not a jvm? Jun 29 19:28:54 and then if one of your activities is launched again, it will be created *in that VM instance* Jun 29 19:29:07 That is what I said. The Dalvik VM is not a JVM. Jun 29 19:29:13 ctate, would a singleton get properly GC'd if you called a destroy method on the singleton class or instance that set the singleton instance to null and returned ? Jun 29 19:29:15 ctate, in the same vm instance? Jun 29 19:29:27 jahid: yes that is what "in that VM instance" means Jun 29 19:29:40 aarcane: if you deref the singleton it'll get freed, of course, yes. Jun 29 19:29:52 hmm, interesting. how can i know more about this vm graph or android? any link? Jun 29 19:30:20 http://source.android.com Jun 29 19:30:22 go nuts :) Jun 29 19:30:27 Anyone know how I can get to the recent apps button in the emulator? Jun 29 19:30:41 ctate, :/ asking me to look into android source? no tutorial? Jun 29 19:30:43 ctate, so about my "Slightly flaky cable", it seems to work for everything else. I copied about 100MB back to my device right away, just fine. Is there some way I can copy the .ab file to my device and restore from there ? Jun 29 19:30:47 hwrd|work: long-press the home button Jun 29 19:30:49 hwrd|work: what buttons show? Jun 29 19:30:52 do you know any download manager framework/service for android? It seems that the default Download Manager sucks 'cause it will randomly fail Jun 29 19:30:59 if there's a hjome button but no recents on-screen affordance, longpress on Home Jun 29 19:31:07 [which is what it's been since 1.0, btw] Jun 29 19:31:18 Are there any details on the differences in implementation of permissions/file system for phones with mtp vs mass storage for external storage? I'm trying to crush a bug that isn't happening on a phone that uses mtp Jun 29 19:31:33 ctate: wanted to run something by you -- i have a shared pref that I am reading, works fine on gingerbread and ics when only minSdkVersion is set in my manifest. However, when I set targetSdkVersion to something high like 15, 17 or 20 etc... then my sharedPref for the key I'm looking up always returns false on ICS. On GB, works. Jun 29 19:31:48 wait nix that last statement, not sure if it works on GB. Jun 29 19:32:10 zambo: Mass storage takes the entire filesystem that's mounted offline for the app Jun 29 19:32:16 was it sony that had some sort of program for lending devices for testing to devs ? Jun 29 19:32:21 so any file handles will magically become invalid Jun 29 19:32:32 Hi, in eclipse, is there a way to color methods that belong to androids api? Jun 29 19:32:47 and any apps that have open files on the shared storage volume when it's unmounted will be killed by the kernel Jun 29 19:32:49 having a hard time telling the difference between user made methods and android api methods Jun 29 19:32:51 s/apps/processes/ Jun 29 19:33:09 jrockjiggz: name your shit better :> Jun 29 19:33:19 lov: +1 Jun 29 19:33:40 Hmm, then my bug probably isn't related to that. The storage is not being unmounted Jun 29 19:33:48 so what's up with Gallery being deprecated? What's wrong with it? Is it that the implementation is a problem, or does Google just think it's an ugly design? What is likely to happen if I release my product with Gallerys in it? Jun 29 19:33:49 unmounted, eh? Jun 29 19:34:04 bloop: both Jun 29 19:34:17 bloop: and it's only deprecated, not removed Jun 29 19:34:26 bloop: AbsoluteLayout has been deprecated since 1.5 for instance Jun 29 19:34:28 lov, lol, thanks that solves everything ;) Jun 29 19:34:33 so don't worry about it Jun 29 19:34:36 oh god AbsoluteLayout kill it with fire Jun 29 19:34:38 zambo: if the device is entering USB mass storage mode, it is. Jun 29 19:34:43 but don't expect improvements or bug fixes Jun 29 19:34:56 (I'm thinking SlidingDrawer should suffer the same fate) Jun 29 19:34:57 i think we should start making AbsoluteLayout do an arbitrary partial-window coordinate offset Jun 29 19:35:11 ctate: but AbsoluteLayout is a simple example to learn how to implement other custom layouts :) Jun 29 19:35:18 ctate: make AbsoluteLayout have "This dev is a moron" be the default onPaint :> Jun 29 19:35:20 romainguy_: I have noticed little bugs with it, but I like the way it looks and feels :/ Jun 29 19:35:24 ... and write some more good docs on how to write a layout :) Jun 29 19:35:34 note that you can always copy Gallery's code in your app :) Jun 29 19:36:30 romainguy_: right. So I think it's probably not worth it to spend a day or two replacing all of my Gallerys with (?) ViewPagers if they aren't buggy and look and act how I want. Is that right? Jun 29 19:36:53 bloop: nope, you can still use a Gallery Jun 29 19:37:11 but anyways, what prompted the deprecation? I'm just curious Jun 29 19:37:20 yeah that's kind of my reaction Jun 29 19:37:54 I mean a little bug I've noticed for instance is that if you set the OnClickListener of something in the Gallery, *even to null*, it disables the swiping of the gallery over that View. Jun 29 19:38:01 I thought that was weird. Jun 29 19:38:08 but other than that I haven't really had problems Jun 29 19:38:16 herriojr: we don't like the interaction, we haven't updated the implementation in years, it has serious performance issues, very few apps use it Jun 29 19:39:33 what day of io is today, the last? Jun 29 19:39:38 yes, last day today Jun 29 19:39:52 (you want it to run into the weekend? AS IF! :) Jun 29 19:40:06 hehe Jun 29 19:40:14 very nice week of google releases Jun 29 19:40:20 loving where Android is headed Jun 29 19:40:23 i want the ADK kit really bad :) Jun 29 19:40:36 but I do want this sharedPref issue addressed (or explained at least) Jun 29 19:41:16 tnzr: Check out the IOIO Jun 29 19:41:29 pronounced yo-yo Jun 29 19:41:37 i have no clue how they get to that but .. Jun 29 19:41:47 dragorn: ooh what's that Jun 29 19:41:52 tnzr: also for a $10 bluetooth module you can talk to an arduino directly w/out much trouble Jun 29 19:41:57 oh cool Jun 29 19:42:04 tnzr: or anything else really; I just finished a board that comms w/ android and zigbee Jun 29 19:42:21 Anyone know hwo to take a picture with android camera from a service where there is no activity active and no way to provide a surface or texture from the screen to draw to ? Jun 29 19:42:42 dragorn: the IOIO is retired on sparkfun :( Jun 29 19:42:45 tnzr: look for bluetooth on mdfly.com (one of many cheap suppliers) also dx has them (or search for linvor). IOIO is on sparkfun Jun 29 19:42:48 there's another version coming soon Jun 29 19:44:35 sweet Jun 29 19:47:28 QubeZ: I is pronounced "ee" often, and the "Y" sound is as much a compound of two vowel sounds as it is a true consonant sound (similar to W but with "oo" instead of "ee") Jun 29 19:48:04 er, if you say "ee-oh" fast enough it sounds like "yo" >.> Jun 29 19:48:09 is the point I'm making Jun 29 19:48:18 makes sense, thanks for the grammar lesson Jun 29 19:49:53 Hi, i'm having a very hard time getting eclipse and android IDE setup.. i've installed the sdk and plugin, and I can build a project.. but i cannot create an android project.. (I can though, choose 'project...' and find android). I'm having a hard time explaining, maybe this screenshot will help http://i50.tinypic.com/2czcbgz.jpg Jun 29 19:50:15 well, To Do Mapr is up to 800 downloads in 3 1/2 months. Jun 29 19:50:51 jrockjiggz: new -> other Jun 29 19:50:55 select android project from that list Jun 29 19:50:58 jrock: can you not find it in other or do you just want to see it theer? Jun 29 19:51:23 QubeZ: congrats ! Jun 29 19:52:22 lov, jayd16: yes i see it in other.. its the dialogs that are different, I can create an android project, but it has different artwork and the layout and classnames are different.. instead of main.xml I now have activity_main.xml Jun 29 19:52:22 QubeZ: Is it a shared pref that you yourself set? Jun 29 19:52:30 lov: yes Jun 29 19:52:34 jrockjiggz: ..... and? Jun 29 19:52:41 jrockjiggz: that's probably an ADT change or SDK change or something Jun 29 19:52:46 i can cat out the xml and see that its set then also absent when I remove it via an action in my app Jun 29 19:52:47 those are just placeholders Jun 29 19:52:57 so its working fine and also working fine on GB Jun 29 19:53:06 but on ICS, it just returns false everytime Jun 29 19:53:08 hmph Jun 29 19:53:10 know what Jun 29 19:53:57 lov: I was following tutorials and they are all match the IDE layout, but this re-install is different and I was thinking my install is corrupt or incomplete Jun 29 19:54:09 I vaguely recall hearing something about concurrency w/ shared prefs Jun 29 19:54:13 jrockjiggz: it's not. Jun 29 19:54:22 jrockjiggz: the SDK update probably changed the default names of things. Jun 29 19:54:29 NOTHING IS BROKEN. Jun 29 19:54:44 as long as the "hello world" app that it autogenerates can actually compile and run, you're fine Jun 29 19:54:51 for example, a while back, icon.png changed to ic_icon.png Jun 29 19:55:16 and the placement of file -> new -> ... content is up to eclipse, not android Jun 29 19:55:21 lov: thats the only thing I can think of because here's what I found out... when I set targetSdkVersion (where sharedPref doesn't work on ICS), then I get an error stating that I have some code running on main thread. So I put that in ASyncTask -- but this sharedPref I didn't think you needed to do that in a bg thread. Jun 29 19:55:22 lov: yes it compiles.. well thanks I can not worry about it then :) ty Jun 29 19:55:38 QubeZ: yeah, sorry, this is all half-remembered. Jun 29 19:55:49 lov: no worries, no one can figure this out Jun 29 19:55:55 i've been googling for like a month now Jun 29 19:55:57 QubeZ: you could always pull AOSP :P Jun 29 19:56:02 take a look at the SharedPrefs implementation Jun 29 19:56:07 hell, even build your own emu and step through Jun 29 19:56:09 so I just remove the targetSdkVersion from my manifest and it just works Jun 29 19:56:15 QubeZ: that's not a good solution though Jun 29 19:56:31 lov: i know, thats why I'm still addressing this instead of just saying it works now and leaving it Jun 29 19:56:34 I want to fix this Jun 29 19:56:40 QubeZ: if you can break this down into a reproducable test case, I'd recommend filing it on b.android.com Jun 29 19:57:21 well it is reproducible on ICS. I have the same apk on GB and ICS and they behave differently Jun 29 19:57:40 GB - shared pref returns true/false correctly based on what the shared pref xml has in it. ICS always returns false. Jun 29 19:57:48 QubeZ: right, but I'm saying "break it down to a tiny test case that you can redistribute" Jun 29 19:58:01 oh ok Jun 29 19:58:12 if you can prove SharedPrefs.getBoolean is broken in ICS for values XYZ you'll get attention :P Jun 29 19:58:35 I wonder when the new Android Developer Console they showed at I/O is coming in Jun 29 19:58:59 lov: easy enough, i'll post to b.android.com Jun 29 19:59:17 and its jsut a reading issue -- when I set the preference via an action in my ICS phone, it writes to the xml Jun 29 19:59:30 then removing via another action also removes the key from the xml Jun 29 19:59:36 but reading always returns false Jun 29 19:59:40 speaking of IO, anyone catch if java 7 or 8 was mentioned in any of the talks? Jun 29 20:01:06 lov: note that where I am reading the preference is from another process (via my manifest) Jun 29 20:01:10 Is 8 even anywhere close to being released? Jun 29 20:01:30 Only read about the lambda syntax lately. Jun 29 20:02:26 lov: this is what Android's site says: Note: currently this class does not support use across multiple processes. This will be added later. Jun 29 20:02:29 well I'm not looking for dates, just curious about how they plan to handle updates to Java Jun 29 20:02:35 for SharedPreferences but wtf does that mean? It works in GB Jun 29 20:02:58 jayd16: Sorry, I don't know. But they handled the update from 1.5 to 1.6. Not sure how they did it besides 'you can now use Java 6' Jun 29 20:03:28 kakazza, fair eough Jun 29 20:04:14 QubeZ: You can actually have multiple processes in the same app. Audible does this. Jun 29 20:04:26 shared preferences won't update between those multiple processes, however. Jun 29 20:04:51 isn't that pretty much not recommended? Jun 29 20:04:51 this is very likely not the root of your problem, unless you use multiple processes (very rare). Jun 29 20:05:08 that said, if you poke at the prefs xml file, it will NOT be automatically picked up by the app. Jun 29 20:05:36 QubeZ: create a test case. It will help you confirm exactly what's happening. If your test case doesn't behave like your app is, refine your test case to figure out what's different. Jun 29 20:05:56 oh Jun 29 20:05:57 16:01:37 < QubeZ> lov: note that where I am reading the preference is from another process (via my manifest) Jun 29 20:06:00 I completely skipped that Jun 29 20:06:03 there's your problem then :> Jun 29 20:06:11 but it works on GB Jun 29 20:06:14 thats whats puzzling Jun 29 20:06:14 so? Jun 29 20:06:21 that's probably a happy coincidence Jun 29 20:06:30 the docs say that there's no official support. If it works, great. if not, welp. Jun 29 20:06:37 figure out something that's not shared prefs to propagate this Jun 29 20:06:39 i thought that was actually working; it was a documentation bug Jun 29 20:06:42 or have one process be the official keeper Jun 29 20:06:51 orly? Jun 29 20:06:53 I miss Romain Guy this year on Google I/O… Jun 29 20:06:53 * lov shrugs Jun 29 20:06:57 source.android.com Jun 29 20:07:08 ok, so i guess how do I handle this situation? Maybe I need to read the preference first then pass it to the activity Jun 29 20:07:47 QubeZ: i hope you have multiple processes for your app --- for really really good reasons Jun 29 20:08:13 g00s: I read a post awhile ago to put mapping activities in a separate process -- i'll have to readdress this Jun 29 20:09:45 i'm removing the process directive from my manifest and re-testing Jun 29 20:10:06 luyang: Missed how? Jun 29 20:10:24 QubeZ: yeah, you should generally avoid putting different components in different processes, unless you have a Very Good Very Specific Reason Jun 29 20:11:04 for one thing it generally means that you go straight to AIDL, do not pass go, do not collect a simple Service subclassclass Jun 29 20:11:07 *subclass Jun 29 20:11:18 heh Jun 29 20:11:31 that is the nerdiest monopoly reference i've ever read Jun 29 20:12:43 ha! that was it Jun 29 20:14:45 looks like the reason I put two separate processes was that was the only way I could get 2 mapview activities in my app Jun 29 20:14:57 not sure if this is still the case but its working on ICS, going to test on older Android now Jun 29 20:18:31 QubeZ: i think that is still the limitation; 1 mapview activity per app Jun 29 20:18:52 in code or running? Jun 29 20:19:01 its a singleton Jun 29 20:19:06 I just tested two map activities after removing the process directive from manifest and it works Jun 29 20:19:30 i have 2 map activities in my app (optimal route and by due date/time) -- I generated both maps one after another and it worked Jun 29 20:19:55 in settings I allow user to set what type of map they want generated so when they actually hit map -- the tasks are mapped based on that selection Jun 29 20:20:32 hmph Jun 29 20:20:43 ok I give up coding and play some bf3 now instead Jun 29 20:20:55 I guess that's a reason, though I'd work around by having one activity pull double-duty and have some sort of controller that gets set based on the calling intent, etc. Jun 29 20:21:26 here is another way you could try 1t : just have one Map activity; and then inspect the incoming bundle in oncreate. if it has (a) optimal route instantiate that fragment and (b) due date instantiates another fragment. these are non-ui fragments that just get the mapview from their containing activity Jun 29 20:21:27 Okay, I'm not a GL developer, but I think I can use GL to solve my problem... How can I get an instance of gl, so I can get a texture from it ? I can't create a new GL10 or GL11, and it doesn't have a get method... How does it work? the documentation on d.android.com is not being helpful Jun 29 20:21:57 aarcane: use a GLSurfaceView Jun 29 20:22:10 lov, in a service, don't have one available. Jun 29 20:22:14 ugh, I wiped out all my data on my GN by updating to JB Jun 29 20:22:15 g00s: yea, I'd do that eventaully but wondering why it works -- I recall putting the separate processes because of an issue with multiple map activities Jun 29 20:22:19 aarcane: hmm! Jun 29 20:22:20 now... I think my google wallet is fucked :( Jun 29 20:22:23 how do I unlock it? Jun 29 20:22:28 I don't have a backup I can go back to anymore Jun 29 20:22:36 aarcane: I don't actually know how you can get a raw GL reference that isn't mapped to a screen Jun 29 20:22:42 you could always write some native code :> Jun 29 20:22:49 pfn: i remember reading factory reset fucks wallet forever Jun 29 20:23:00 lov, it's on the list of things to do. I just need a texture too, that's the messed up part! Jun 29 20:23:12 is it really possible to get google wallet on the cdma nexus? Jun 29 20:23:15 aarcane: you need an instance of GLSurfaceView to get it, I believe. I don't think there's anyway around it. (this isn't definitive, but I looked for one awhile back and wasn't able to find a way) Jun 29 20:23:26 g00s, I know :( Jun 29 20:23:27 pfn: might be relevant, dunno http://phandroid.com/2012/05/28/android-alert-enjoy-using-google-wallet-a-factory-reset-could-break-it-forever/ Jun 29 20:23:39 I saw that, that's why I'm screwed :( Jun 29 20:23:52 I tried to restore a nandroid backup, but the backup was fubar Jun 29 20:23:57 it didn't even launch a lockscreen Jun 29 20:24:10 I do have an adb backup -all -apk... Jun 29 20:24:16 * pfn pokes ctate ;-) Jun 29 20:24:24 he seems rather knowledgeable about adb backup Jun 29 20:24:31 3 down vote Jun 29 20:24:32 I wonder if I can restore just the google wallet stuff Jun 29 20:24:32 You can have more than one MapActivity per process as long as only one is running at a time. Jun 29 20:24:41 c'est vrais Jun 29 20:24:43 pfn: that... sounds like bad design Jun 29 20:24:49 what's the question? Jun 29 20:24:52 I'd use titanium backup to restore my apps, but my /sdcard got wiped :( Jun 29 20:25:05 ctate, can I restore individual app data from adb backup? (that was -all) Jun 29 20:25:12 I need this because I think I broke my google wallet Jun 29 20:25:25 if I can restore just google wallet, /maybe/, I hope it will work Jun 29 20:25:43 not without blowing open the archive, extracting that app's data, repacking just that into a new archive, and restoring that. Jun 29 20:25:49 pfn: if the person who responded to them is actually correct (which, i think, is not likely)... then no Jun 29 20:25:57 there's no "restore just this package from this archive" UI Jun 29 20:26:08 Hi.. is there a way to understand LogCat? I can't make sense of errors.. http://dpaste.org/MAaaN/ Jun 29 20:26:23 zinx, who responded where? Jun 29 20:26:40 jrockjiggz: generally I'd look for where your code is Jun 29 20:26:49 pfn: start reading at "After a quick call to Google to find a solution, their response?" Jun 29 20:27:15 I see Jun 29 20:27:25 ctate, what format is the archive in? Jun 29 20:27:35 jrockjiggz, the lines that say android.os are probably not your code. Nor is com.android. The liens that say com.dygmm I'd bet are your code Jun 29 20:27:44 pfn: but anyway they say a ROM restore will let you redo it, so idk Jun 29 20:27:50 pfn: there's a header [text, newline delimited] Jun 29 20:28:05 yeah, but I don't have a backup I can use to restore Jun 29 20:28:06 the the data itself is a pax stream run through zlib deflate Jun 29 20:28:12 I had a backup, but it's fooked Jun 29 20:28:19 when I restored it, it was all fubar Jun 29 20:28:23 and optionally run through encryption Jun 29 20:28:34 ctate, sounds like a pain to work with manually Jun 29 20:28:36 pax not so bad Jun 29 20:28:42 but the crypto, I think I put a 1 letter passwd on it Jun 29 20:28:56 jrockjiggz, as the last error you'd have for the com.dygmm code before going into other code and failing was in the JSONParser class in the GetJSonfromURL method, on line 42 of JSONParse.java, I'd start by looking there Jun 29 20:29:10 pfn: http://git.omapzoom.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/BackupManagerService.java;h=4d5e0a6488442a4f5f3f92cc4c15fd9d19d1c9ec;hb=master#l2385 Jun 29 20:29:22 yeah if it's encrypted then you're gonna have a hard time Jun 29 20:29:31 unencrypted is easy-peasy Jun 29 20:29:32 Hi there, can somebody tell me how can I set AsyncTask to receive multiple parameters of different types for its doInBackground method? Jun 29 20:29:52 Dvorak_: use a differetn AsyncTask<> specialization for each parameter type? Jun 29 20:30:15 I guess my google wallet is permanently fubar :( Jun 29 20:30:17 * pfn sighs Jun 29 20:30:28 at least I never really got an opportunity to use it Jun 29 20:30:34 "IV" here means intiialization vector Jun 29 20:30:45 used my $10 credit at petco Jun 29 20:31:09 what did you do that screwed up wallet? Jun 29 20:31:21 ctate: How do I do that? Should I write a different method? Can you please provide a quick example? Jun 29 20:31:23 is losing the google wallet that big of a deal? why not jsut re-set it up? Am I missing something? Jun 29 20:31:27 installed a jb rom Jun 29 20:31:31 which required a factory reset Jun 29 20:31:40 ctate: http://phandroid.com/2012/05/28/android-alert-enjoy-using-google-wallet-a-factory-reset-could-break-it-forever/ Jun 29 20:32:06 I forgot to go into the wallet app to unlock it for reset beforehand Jun 29 20:32:19 Ologn: thanks, I thought the beginning of the error is the root of the issue. i suppose not. I didn't realize to break-down based on package.. to me its completely vague and there must be a better way to debug.. Jun 29 20:32:23 oh, it blew the fuse on the secure element? yikes Jun 29 20:32:43 well, I dunno if the fuse is blown yet Jun 29 20:32:47 Ologn and i didn't know :42 meant line 42 :) thanks Jun 29 20:32:52 I tried running wallet once, and it force-closed Jun 29 20:33:43 jrockjiggz, It's line 42 at time of APK compile Jun 29 20:34:24 hi Jun 29 20:35:26 ctate: known bug :p Jun 29 20:35:40 :-( Jun 29 20:39:45 has anyone managed to get manifestmerger working? Jun 29 20:40:23 nm just got it Jun 29 20:40:26 had to do a full a clean Jun 29 20:44:49 huh, seems to work... Jun 29 20:44:52 I wonder why Jun 29 20:44:59 (logged into wallet, no errors...) Jun 29 20:46:55 does anyone bother building desktop versions of their apps for testing? i just thought testing on emulators/devices is slightly slower, so people might build a desktop prototype to test mechanics of a big game or something? Jun 29 20:47:05 hmm, maybe it worked because I did a full wipe... Jun 29 20:47:15 (and lost all data on phone in the process....) Jun 29 20:47:34 I think it is always best to test on devices tbh Jun 29 20:47:58 hey I have a simple question -- is it possible to pack and load shared libraries in with your applications using the NDK (c++)? or does everything have to be static Jun 29 20:47:59 If you are making a game, you will want to test on a system with the kind of power that you are going to distribute on Jun 29 20:48:08 good point Jun 29 20:48:43 yeah Jun 29 20:48:52 devtekbeta: depends. There's libraries like libgdx that actually allow you to build against desktop Jun 29 20:49:02 but i meant like say it was a class based game, balancing the classes and weapons... but then i guess you could just test that stuff in a text game without the graphics Jun 29 20:49:08 it has an abstraction layer that you program against that works for both desktop and android Jun 29 20:49:15 I find this super neat. Jun 29 20:49:20 i see. ill look into it Jun 29 20:49:32 otoh libgdx is programmed by a crazy russian so ymmv Jun 29 20:49:57 canurabus: yes, you can absolutely distribute shared libs. This is the expected behavior, in fact. Jun 29 20:50:20 lov, cool. I was asking because I know iOS doesn't allow them. Jun 29 20:50:25 toss them into libs/armeabi or libs/x86 Jun 29 20:50:31 canurabus: no, apple doesn't allow them ;) Jun 29 20:51:08 shared libs, bleh Jun 29 20:52:27 i htink manifest merging broke my library projects or something :S Jun 29 20:52:29 jgw_, what's wrong with shared libs? Jun 29 20:52:37 so I need a working surfaceview or surfaceTexture from my service, able to be generated with no visible activity... Anyone know how to do either ? Jun 29 20:53:33 devtekbeta, that's what I'm doing Jun 29 20:53:52 I have a version of my game running on windows for testing and development Jun 29 20:54:11 canurabus: its asking for trouble, but maybe i did too much windows programming. Jun 29 20:54:12 and another one I just build to test it out on the device Jun 29 20:54:29 imbusy, sounds cool. is the testing going well then? Jun 29 20:54:31 ah if you enable manifest merging in a lib project's manifest, it doesnt compile reosurces Jun 29 20:54:44 aarcane: at this rate, I'd recommend that you just download the ndk and use the gl calls from C. Jun 29 20:55:10 devtekbeta, yep. But I don't have that many devices and there are some texturing issues with powervr graphics chips Jun 29 20:55:15 why that? GLSurfaceView, full screen activity, off you go. Jun 29 20:55:22 and I have no devices with powervr graphics Jun 29 20:55:37 "texturing issues"? Jun 29 20:55:43 like what? Jun 29 20:55:50 ahh Jun 29 20:56:00 textures don't show up Jun 29 20:56:02 romainguy i rubbed butter on my screen like you said Jun 29 20:56:07 but im not getting the antialiasing Jun 29 20:56:07 are they compressed textures? Jun 29 20:56:10 nope Jun 29 20:56:14 GL_RGBA Jun 29 20:56:19 are they power-of-two dimensions? Jun 29 20:56:21 yes Jun 29 20:56:21 canadiancow|work: squint Jun 29 20:56:25 wack Jun 29 20:56:34 ah there we go Jun 29 20:56:35 thanks Jun 29 20:56:46 I have not seen any issue with textures on IMG's GPUs Jun 29 20:56:54 what issues do you see/ Jun 29 20:56:55 ? Jun 29 20:57:06 * ctate | textures don't show up Jun 29 20:57:09 some of them Jun 29 20:57:12 not even all of them Jun 29 20:57:13 so, just black? just white? Jun 29 20:57:15 justa few Jun 29 20:57:18 just white Jun 29 20:57:27 did you check glGetError() after every GL call? Jun 29 20:57:36 and if I load more textures, some of the other ones that didn't show up start showing up Jun 29 20:57:40 romainguy, no Jun 29 20:57:48 you should start with that Jun 29 20:58:30 I wish I had a device to test it on though Jun 29 21:00:23 enum Blah { FOO, BAR } ... Blah b; b == FOO, right? Jun 29 21:00:37 what are you asking? Jun 29 21:00:48 tophyr, no Jun 29 21:00:52 tophyr: no, b == null Jun 29 21:00:54 (in Java) Jun 29 21:01:13 guh. k Jun 29 21:01:21 and in C++ it's undefined Jun 29 21:01:30 unless you're in debug mode Jun 29 21:01:39 in that case, yes Jun 29 21:01:40 yeah, i know c/c++ etc Jun 29 21:02:28 was hoping that java was smrt enough to figure enum shouldn't be a nullable type, but oh well. i get the mechanics on why Jun 29 21:02:44 people who know c or c++ don't write a slash as if they're a slight variant of another Jun 29 21:03:16 tophyr: turns out java is not the same as c++? Jun 29 21:03:33 i.e. Object o; does not create an object, o is null. Jun 29 21:03:35 whodathunkit Jun 29 21:03:41 lawl you said "shouldn't be nullable" Jun 29 21:03:58 what do you think this is, Haskell? :) Jun 29 21:04:05 lulz Jun 29 21:05:31 lov, that seems like a lot of work to simply take a picture. Jun 29 21:05:46 ughhh android!!! http://lawfirmblogging.com/images/complicated.jpg Jun 29 21:05:56 holy balls am display-size Jun 29 21:06:03 i dont even... Jun 29 21:06:12 canadiancow|work: :))) Jun 29 21:06:31 can i override density too? Jun 29 21:06:32 this looks wrong Jun 29 21:06:39 i set my GN to 800x480 Jun 29 21:07:06 ctate, so about that backup... is there something I can do to say... Copy the backup to the device, then restore from device shared memory, or similar ? Jun 29 21:07:14 why does a site called "lawfirmblogging" have a chalkboard full of O-chem? Jun 29 21:07:26 aarcane: sorry, no; you have to do it through adb Jun 29 21:07:40 [there's permission guarding in place around that, too] Jun 29 21:07:53 o-chem? i thought that was the collaboration diagram for surfaceflinger Jun 29 21:08:11 surfaceflinger BETTER not involve benzene rings Jun 29 21:08:21 canadiancow|work: density is physical Jun 29 21:08:35 yea but i mean can i get my GN to pretend it's a NS or something? Jun 29 21:08:53 like its great to override my size to 800x480, but if that's treated as 400x240dp, it's not as useful Jun 29 21:09:05 it shouldn't Jun 29 21:09:06 yeah there's some way to do that Jun 29 21:09:21 make your xoom show a NS-sized display or something like that Jun 29 21:09:49 or what i really want is to emulate a size/density configuration i guess Jun 29 21:09:49 Guys, I see many references to articles located at http://developer.android.com/resources/articles , but they are all missing (404 error). where are they located now? Jun 29 21:10:08 because if i try 800x480 on an mdpi tablet, that's going to be "large" Jun 29 21:10:13 xa0c: http://developer.android.com/training/index.html Jun 29 21:10:14 and will load different resources Jun 29 21:12:44 romainguy_: well, according to your's link. Go to the http://developer.android.com/training/improving-layouts/smooth-scrolling.html, click link "background optimization", you'll be redirected to http://developer.android.com/resources/articles/listview-backgrounds.html Jun 29 21:12:59 that is what I'm looking for. And that is ehat is missing. Jun 29 21:13:09 *ehat=what Jun 29 21:13:20 I don't know then Jun 29 21:13:36 maybe somewhere in http://developer.android.com/guide/components/index.html Jun 29 21:13:58 they're still ironing out wrinkles in the site redesign, btw Jun 29 21:14:01 sorry Jun 29 21:14:23 eh... Jun 29 21:14:46 ctate: i hope they fix the frame scrolling stuff XD Jun 29 21:15:17 oh, that was supposed to be :x Jun 29 21:16:08 g00s: what specifically do you mean by "the frame scrolling stuff"? Jun 29 21:17:04 found that article in google cache. hurray. Jun 29 21:17:45 ctate: for example here, http://developer.android.com/training/basics/location/locationmanager.html … scrolling to the end of the nav pane causes the content pane to start scrolling Jun 29 21:18:09 g00s: ahh. that is not unique to that site. pretty much any web page with multiple scrollers will do that. Jun 29 21:18:22 browsers are all fucked w.r.t. scrolling. :( Jun 29 21:18:44 when you say "scrolling to the end of the nav pane" -- i bet you mean *mousewheeling* to the end. Jun 29 21:19:29 yeah, mousewheel to the end of the nav pane. keep going. the content pane will start scrolling. then try to scroll back UP on the nav pane Jun 29 21:19:49 that is a basic webbowser mutliple-scroller mousewheel behavior Jun 29 21:20:01 and people wonder why we tell them not to put listviews inside of scrollviews. Jun 29 21:20:02 s Jun 29 21:20:03 romainguy, if i try to set the display-size without being in a root shell, i get java.lang.SecurityException: Neither user 2000 nor current process has android.permission.WAKE_LOCK. Jun 29 21:20:03 he Jun 29 21:20:04 e Jun 29 21:20:05 . Jun 29 21:20:05 is that expected? Jun 29 21:20:15 sometimes, when i start scrolling up on the nav pane, it doesn't scroll, the content scrolls instead Jun 29 21:20:18 WAKE_LOCK? lawl Jun 29 21:20:27 yo dawg i heard you like scrolling Jun 29 21:20:34 hehe Jun 29 21:20:44 ctate did i tell you the story of where my team lead wanted to put three listviews in a (vertical) scrollview? Jun 29 21:20:53 he wouldnt believe me that it was stupid Jun 29 21:20:57 bwahaha Jun 29 21:21:01 i had to get higher powers to shut him down Jun 29 21:21:06 3 listviews.... Jun 29 21:21:10 atop each other Jun 29 21:21:15 in another scrolling container Jun 29 21:21:19 no, successively Jun 29 21:21:29 bwahahahahahahahaha Jun 29 21:21:29 side-by-side? Jun 29 21:21:30 if you have a with friends game installed, i can show you exactly what he wanted Jun 29 21:21:43 pfn: one right after the other, i'm envisioning Jun 29 21:21:45 side-by-side doesn't sound absolutely terrible Jun 29 21:21:50 Jun 29 21:21:52 but atop one another is pretty crappy Jun 29 21:21:55 so that when you're at the seam it is totally awful to ... ha ha yes Jun 29 21:22:03 SO WRONG Jun 29 21:22:10 he wanted the listviews to wrap content Jun 29 21:22:14 so they wouldnt actually scroll Jun 29 21:22:17 "THAT WAY IT WILL WORK" Jun 29 21:22:22 weird Jun 29 21:23:16 ctate / romainguy, with JB on my GN, my touchscreen doesnt respond when i have an incoming call, so i cant answer Jun 29 21:23:23 but i can answer iwth an attached headset Jun 29 21:23:36 so if there's a 4.1.1 planned... :) Jun 29 21:23:52 incoming calls work for me... Jun 29 21:23:54 Google I/O phone, or your own reflashed with a greymarket build? Jun 29 21:24:00 reflashed =\ Jun 29 21:24:18 dont tell me the i/o phone was diff hardware Jun 29 21:24:24 might be a diff radio Jun 29 21:24:30 nah i took that radio too Jun 29 21:24:34 k Jun 29 21:25:10 note that we do not kjnow for sure what is in the hw of most GNs, only the ones we sell ourselves Jun 29 21:25:21 [and the vendores have been known to change thing swithout telling us] Jun 29 21:25:27 sigh Jun 29 21:25:44 not saying that's it, but fyi. Jun 29 21:27:08 4.1 on emulator-arm seems noticably smoother than 4.0.. really looking forward to an x86 image Jun 29 21:29:04 I'm having a WEIRD issue... I just changed a native function to return int instead of void. Now, sometimes, not every time, when I run the app there is a mismatch, i get Error: could not find native method Jun 29 21:29:35 Requested: blablaI Candidate: blablaV Jun 29 21:29:39 anyone know if the new eclipse is compatible with the art? Jun 29 21:29:43 adt* Jun 29 21:30:16 the thing is it happens only sometimes, like 50% of the times I upload a new apk Jun 29 21:30:37 lk16: they were demoing it in the 'whats new' session, if that means anything Jun 29 21:32:34 lk16: 4.2? yes, everything should work Jun 29 21:33:20 if something doesn't work, file a bug :) Jun 29 21:33:57 mdwright: i had heard that were some errors for people who are using 4.2 classic and don't have wst installed Jun 29 21:36:09 lk16: Only ADT20 will work (latest) and it still uses the compatibility layer Jun 29 21:36:26 https://developers.google.com/maps/documentation/android/ still mentions the API key Jun 29 21:36:28 some last minute bug fixes went in for R20, but if you find any more just file them Jun 29 21:36:40 Need some additional info about ListView's "cacheColorHint". What is that? When it used? How it affects on performance? Why in 99% articles used #0000 instead of average bg color value? Jun 29 21:37:11 mdwright: gotcha, thanks Jun 29 21:37:50 lk16: some extra info: https://groups.google.com/d/msg/adt-dev/2NgxVv_epjA/to5-2eINTZQJ Jun 29 21:39:00 "Indicates that this list will always be drawn on top of solid, single-color opaque background. This allows the list to optimize drawing" What optimization exactly? I sont see much difference when I'm using #0000 and when it is set to bg image color. Jun 29 21:39:06 xa0c: if you use a non-solid background you have to disable the optimization (using the value #000) Jun 29 21:39:14 *sont=dont Jun 29 21:39:29 i wonder if its better to stick with eclipse 3.7.2 Jun 29 21:39:41 mdwright: yeah, in shuch case I'll get really laggy scrolling :) Jun 29 21:39:50 I need to optimize something :) Jun 29 21:40:02 *shuch=such Jun 29 21:40:09 g00s: I would suggest sticking with eclipse 3.7/3.8 for now Jun 29 21:40:22 mdwright: ok, thx Jun 29 21:40:36 xa0c: if you have laggy scrolling, I'd recommend pulling up a profiler and finding out what the root issue is rather than guessing and optimizing things that may not be important :) Jun 29 21:40:53 already did it. it's because of background image Jun 29 21:41:28 which version of android? Jun 29 21:41:47 if it's gingerbread, then you can use the show screen updates developer feature and see if background image incurs full-screen updates while solid bg might not Jun 29 21:42:25 jrr: 2.1 Jun 29 21:42:41 here is my background, reeeeally simple: http://img28.imageshack.us/img28/1111/commonbackground.png Jun 29 21:43:21 which device? Jun 29 21:43:29 xperia s Jun 29 21:43:41 it doesn't matter how simple the background is, it's still more expensive than with a cacheColorHint Jun 29 21:43:49 are your list items all of the same height? Jun 29 21:43:55 romainguy_: no Jun 29 21:44:21 try to disable the scrolling cache then Jun 29 21:44:23 it might help Jun 29 21:44:34 but I would recommend you used a solid background color Jun 29 21:46:09 Right now I ended with using scroll listener, and on scroll idle I'm changeing bg to image and on scroll begin to solid color. :) Jun 29 21:46:27 that sounds awful Jun 29 21:46:49 laggy scrolling is awful. that sounds "best I can do" Jun 29 21:49:01 So i got my app working, it plots data using achartengine that is coming from and android openAccessory protocol usb connection. the usb read / write + chart causes the UI to freeze. what do i need to do to stop this from happening? do i need multiple threads? something other than a timer to update the chart is faster? Jun 29 21:49:51 i'm still pretty fresh with android, so any examples / links to material would be helpful. Jun 29 21:51:00 jnewt: yeah, you should be doing the read/writes off of the UI thread Jun 29 21:51:38 Is the API key no longer needed? Jun 29 21:51:41 for Maps Jun 29 21:52:17 mdwright: i'm using a vendor provided usbManager class, which i don't fully understand, but it does use syncronized read, so i think it's doing some stuff off the ui thread, otherwise that would be unecessary from what i do undernstand. Jun 29 21:52:58 but as long as the UI thread is blocking, you're going to have a bad time Jun 29 21:53:04 oh, yeah, here it is, readThread = new ReadThread(parcelFileDescriptor); Jun 29 21:53:31 jnewt: easy way to figure out why your UI is freezing: profile it Jun 29 21:54:59 lov: When i posted my screenshot about not having the right dialogs.. it was because my perspective was 'java ee', and not 'java' ;p Jun 29 21:55:13 sheesh Jun 29 21:55:51 is it possible to do something like this? when the user clicks on a notification, it will be executed a new activity only if that activity is not already executed. If not, create a new instance of the activity Jun 29 21:55:56 jnewt: I would suggest taking a look at traceview: http://developer.android.com/tools/debugging/debugging-tracing.html Jun 29 21:56:09 so live streaming pretty much sucks on Android, huh? Jun 29 21:56:41 jrockjiggz: not necessarily, it supports streaming and webm... you only have to create a proper video buffer Jun 29 21:57:00 (and pass it to a video player) Jun 29 21:57:04 I should clarify: on the vast majority of Android devices (i.e. those running 2.3) Jun 29 21:57:22 uh Jun 29 21:57:33 jcromartie: well, WebM support should be since 2.3 Gingerbread Jun 29 21:58:07 but that's not HTTP Live Streaming, and HLS is definitely A Thingâ„¢ Jun 29 21:58:26 and HLS is what's already in place for this app on other platforms ;) Jun 29 21:58:54 jcromartie: I don't know if Android supports RTP protocols (but if it doesn't, you can still implement it), but you can for sure download things via HTTP from byte to byte Jun 29 21:59:01 this means you can still load videos in a buffer Jun 29 21:59:12 and to output the result in a video player buffer Jun 29 21:59:44 (there are no real RTP free services out there, YouTube like all the other services are buffered videos) Jun 29 22:01:05 can an "old" activity be forced to be used in a new Intent, if there is an instance of said activity running? Jun 29 22:01:31 isn't that the default behavior? Jun 29 22:01:46 ctate: I could check, never tried Jun 29 22:01:52 Yes, that should be default behavior Jun 29 22:01:53 hence the callback onNewIntent() Jun 29 22:02:02 ctate: thanks :) Jun 29 22:02:37 and can I pass a message to said activity? Jun 29 22:02:42 hm you may need to set your activity to be singleTop in its manifest; read the docs Jun 29 22:03:08 elegos: http://developer.android.com/guide/components/tasks-and-back-stack.html#TaskLaunchModes Jun 29 22:03:12 err, pass a messag ehow? i mean, the activity will receive the Intent that was used with startActivity(); is that not the message that you mean? Jun 29 22:04:48 ctate: I've got a download manager which has been developed by another person. It actually calls a "download manager" activity all the times the notification is clicked Jun 29 22:05:15 though I work on fragments and I have one (tablets) or two (smartphones) activities Jun 29 22:05:45 so, I'd like to call the activity and tell it to replace the "content" fragment with the download manager one Jun 29 22:09:39 was there any indication as to when this new AppCompat lib was supposed to be released? maybe they were just referring to new stuff added to the support library Jun 29 22:09:56 would like to check out the actionbar stuff they mentioned Jun 29 22:10:18 activities called by intents call the onIntent or onNewIntent methods, right?? Jun 29 22:10:25 if its a few weeks, i'll just wait; if its a few months, i guess i'll keep looking at abs Jun 29 22:13:15 hiall Jun 29 22:13:23 elegos: please read the documentation about the Activity lifecycle Jun 29 22:13:44 I'm getting error Jun 29 22:13:50 i'm having problems with CountDownTimer registering onTick multiple times Jun 29 22:13:53 I'm there ctate Jun 29 22:13:58 a new activity instance gets onCreate(); an existing Activity instance that gets a new Intent will get onNewIntent() instead Jun 29 22:14:07 I'm getting error 'Invalid Char Constant' when i try to log: Log.d(logTag, url); Jun 29 22:14:21 jrockjiggz: what type is 'url' ? Jun 29 22:14:31 and what type is 'logTag' ? Jun 29 22:14:35 thanks ctate Jun 29 22:14:41 string Jun 29 22:14:52 final String logTag = "dygmm_log"; Jun 29 22:15:01 okay. and 'url' is what type? Jun 29 22:15:09 url is String Jun 29 22:15:32 and you're importing android.util.Log properly? Jun 29 22:15:38 yes Jun 29 22:15:41 hm hrm. Jun 29 22:15:44 import android.util.Log; Jun 29 22:15:59 time to pastebin some code & the full error message. Jun 29 22:16:07 okay Jun 29 22:17:40 ctate: http://pastebin.com/7Ppc1jwz (see comment) Jun 29 22:17:59 this is my first attempt at logging.. i'm probably doing something clearly wrong Jun 29 22:18:42 jrockjiggz: are you sure your String encoding is correct? Jun 29 22:19:02 should be. i copy and paste the code from a tutorial Jun 29 22:19:16 you may not be getting latin-1 but rather UTF8 or something Jun 29 22:19:29 oh wow. i have no idea about that Jun 29 22:19:38 mdwright: that's irrelevant at compile time Jun 29 22:19:40 url would be: private static String loginURL = "http://10.0.2.2/ah_login_api/index.php"; Jun 29 22:20:01 at a glance this looks like it should totally work :) Jun 29 22:20:16 comment out everythign but the Log.d() line and see if it still fails to build Jun 29 22:20:33 jrockjiggz: this is a compile time error? Jun 29 22:20:36 just have it return null or something for that purpose Jun 29 22:20:37 i Jun 29 22:20:37 'm Jun 29 22:20:38 a Jun 29 22:20:43 well.. i appreciate your time.. but learning android is getting pretty hard to say the least Jun 29 22:20:44 err, i'm assuming this is a compoile-time error Jun 29 22:20:54 no, this error is in eclipse Jun 29 22:21:00 yeah, that's compile time Jun 29 22:21:20 typically it has to do with escapted char constants Jun 29 22:21:29 *escaped Jun 29 22:21:44 e.g. a single slash ('\') instead of a double slash ('\\') Jun 29 22:21:53 hmm. i cut the line, and then pasted it, and the error went away Jun 29 22:22:32 ha ha Eclipse FTL Jun 29 22:22:38 Ah, yeah, those happen Jun 29 22:22:41 Eclipse :( Jun 29 22:23:11 lol. well atleast you let me know the code was correct ;) Jun 29 22:25:32 i'm trying to access my apache localhost (http://localhost/) using http://10.0.2.2/ but I am getting a list of errors... i tried http://192.168.2.6 (local ip address) and doesn't work either.. I can't seem to figure out a way to narrow the problem down Jun 29 22:26:48 jrockjiggz try http://172.0.0.1 Jun 29 22:27:43 127.0.0.1? Jun 29 22:28:15 tried both.. same error.. Jun 29 22:28:45 LogCat tells me where the problem is.. the line.. but not any more information on what the problem is Jun 29 22:29:36 is there any way to tell an app to store to external storage vs internal storage? Jun 29 22:30:06 jrockjiggz: can you access it from a browser? Jun 29 22:30:09 yes Jun 29 22:30:26 where is the error happening? Jun 29 22:30:37 your code? Jun 29 22:30:42 LogCat gives a vague idea what line is the problem Jun 29 22:30:49 this is from my LogCat: http://dpaste.org/fZEV9/ Jun 29 22:31:57 * ctate | 06-29 18:26:10.665: E/Handler(6849): android.os.NetworkOnMainThreadException Jun 29 22:32:02 tells you right there Jun 29 22:32:09 you're doing network operations on the main (UI) thread Jun 29 22:32:14 Don't do that. :) Jun 29 22:33:14 * Bumble-Bee wonders if the phone UI on the nexus 7 will cause app issues Jun 29 22:33:24 why would it? Jun 29 22:33:33 ctate: lol i would not know that if you didnt tell me Jun 29 22:33:35 or, to put it a different way Jun 29 22:33:48 it causes no more issues than having the tablet ui on the nexus 7 would :) Jun 29 22:34:36 ctate do fragments still show 2 fragments in landscape ? as on the tablet ui ? Jun 29 22:34:57 for example the gmail app Jun 29 22:35:26 that's obviously entirely up to the app Jun 29 22:35:39 well Jun 29 22:35:46 GMail on the N7 shows the tablet-like "two fragments always" UI in landscape Jun 29 22:35:55 ok Jun 29 22:35:59 then no issue ;) Jun 29 22:36:25 ctate: then, if network operations on the main (UI) is forbidden.. how can I do a network operation? (my manifest has permissioins) Jun 29 22:36:35 and a hybrid UI in portrait; two fragments (labels and inbox) general view, single-fragment for reading a conversation Jun 29 22:36:44 jrockjiggz: on a background thread, of course Jun 29 22:36:46 Is there a way to force the creation of a Depth Buffer and then use it for rendering? Jun 29 22:36:57 ctate my only other reservation is wether nexus 7 can get into APX mode ;) Jun 29 22:37:03 jrockjiggz: the basic principle is that you are not permitted to block on the main thread Jun 29 22:37:15 Bumble-Bee: i have no idea what "APX mode" means Jun 29 22:37:29 ctate tegra bootrom interface Jun 29 22:37:42 [note that the gmail-in-portrait behavior i described just now is *not* the behavior on phones] Jun 29 22:37:51 why would you care about tegra bootrom? Jun 29 22:37:52 normaly used if someone messes up bootloader Jun 29 22:38:01 yeah whatevs :) Jun 29 22:38:17 ctate to recover Jun 29 22:38:23 step 1. don't reflash the bootloader Jun 29 22:38:27 problem solved! Jun 29 22:38:30 well Jun 29 22:38:45 what if i wanted to repartition the device Jun 29 22:38:59 by "the device" you mean the internal disk? Jun 29 22:39:00 ctate: so, to not block the main thread, it is required to create a new thread? Jun 29 22:39:04 ctate yes Jun 29 22:39:08 so do that from recovery Jun 29 22:39:13 jrockjiggz: Yes Jun 29 22:39:20 you cant without APX Jun 29 22:39:25 AsyncTask is your friend, or whatever other approach you want to take Jun 29 22:39:33 Bumble-Bee: err, whyever not? Jun 29 22:39:44 ctate: your help has gone a long way, thanks Jun 29 22:40:00 ctate long story or short ? Jun 29 22:40:01 it's not liek the SoC has anything to do with the disks Jun 29 22:40:18 well, it's out of scope for this channel anyway :) Jun 29 22:40:25 yes probably Jun 29 22:40:41 well it is Jun 29 22:40:46 more of a HW level thing Jun 29 22:41:59 ctate only reason i asked about the phone vs tablet UI was when my tf201 was in phone UI some apps didnt run correctly Jun 29 22:42:33 what resolution, what density, etc Jun 29 22:42:34 m Jun 29 22:42:34 at Jun 29 22:42:35 te Jun 29 22:42:36 matters a lot Jun 29 22:42:46 true Jun 29 22:42:48 plus a lot of apps are just not well written Jun 29 22:42:59 its the same as the xoom Jun 29 22:43:26 and yes some apps dont follow these things correctly Jun 29 22:43:57 also also, note that the N7 is 216 dpi Jun 29 22:44:13 pretty much exactly between mdpi and hdpi Jun 29 22:44:19 yes Jun 29 22:46:29 ctate in any case im very much looking forward getting my Nexus 7 :) Jun 29 22:46:47 * Bumble-Bee looks at the other asus devices Jun 29 22:48:20 i think the N7 is a very sweet device Jun 29 22:48:50 ctate, so I've tried numerous times, with three different backup files (all of which seem to have succeeded), and get the same result each time. stops at the first apk, or second at the latest. Is there anything else you can suggest to try to restore from this backup ? Jun 29 22:49:25 well tegra 3 + 7" screen + $199 is insane any way you think of it Jun 29 22:50:31 aarcane: if it's not encrypted, write a tool to blow it open. if it is encrypted, i'm sorry ther'es no even remotely easy way to do it. :( Jun 29 22:50:49 Bumble-Bee: fwiw the tegra3 is nice but not world-shaking or anything Jun 29 22:51:03 ctate, it's not encrypted, and I don't even know where the documentation for the format is. Jun 29 22:51:53 ctate ohh i know :) Jun 29 22:52:05 waiting for full A15 chips for that Jun 29 22:52:29 tbh if tegra3 didnt have its LP core it would be worthless on a mobile device Jun 29 22:53:06 but seeing as it can decode 1080p on its LP core alone all is good :) Jun 29 22:56:52 decoding 1080p is such a lame basis for comparison Jun 29 22:56:53 i Jun 29 22:56:54 t's Jun 29 22:56:54 Jun 29 22:57:02 it's got hardware for that, yippee skip Jun 29 22:57:03 a Jun 29 22:57:04 ny Jun 29 22:57:10 anybody with a two dollar dsp can do that Jun 29 22:57:21 what i'm unhappy about is that it can't actually run at full speed. Jun 29 22:57:47 whats that the LP core ? Jun 29 22:57:56 does it not run at ~50Mhz Jun 29 22:58:00 -- 500Mhz Jun 29 23:02:00 * Bumble-Bee thats what the kernel shows it maxing out at Jun 29 23:04:17 well 620000000 Jun 29 23:05:22 i don't care about the LP core Jun 29 23:05:31 it can't run the real cores at full tilt Jun 29 23:06:29 ohh Jun 29 23:06:41 ctate what do you concider full speed ? Jun 29 23:07:26 the tegra3 can boost clocks in 1 or 2 core operation AFAIK Jun 29 23:08:18 full rated clock on all cpus in parallel Jun 29 23:08:34 hell, i'd even take 1 GHz on all cpus in parallel Jun 29 23:08:44 wtf Jun 29 23:08:47 but it can't even do that Jun 29 23:08:56 has to step down to ... i forget. 800 mhz? Jun 29 23:08:58 humm Jun 29 23:09:07 when all 4 are ramped up ? Jun 29 23:09:10 right Jun 29 23:09:18 or you can run only two full cores, at 1.2 Jun 29 23:09:36 there's too much smoke & mirrors for my taste in the marketing Jun 29 23:09:37 thats .... strange Jun 29 23:09:43 well Jun 29 23:09:46 it's about heat and power Jun 29 23:10:07 assuming this is the t30l Jun 29 23:10:22 and then of course getting good governor behavior out of the kernel is ... curious :) Jun 29 23:10:35 ctate well yes Jun 29 23:10:41 i found that with tf201 :P Jun 29 23:10:56 also i dont trust asus kernel code Jun 29 23:12:26 oh we don't trust oem kernel code eitehr Jun 29 23:12:32 or oem userspace code, come to that Jun 29 23:12:46 who uses an oem kernel these days? ;) Jun 29 23:13:02 ctate hahah Jun 29 23:13:15 wongk-home: OEMs do, unfortunately.... Jun 29 23:13:32 i'm just kidding... mostly Jun 29 23:13:38 i don't use an oem kernel, though Jun 29 23:13:49 ctate we got fed up with asus changes to the tf201 kernel that we remove all non needed changes (cleaned up the needed ones) and rebased on nvtegra 3.1.10 Jun 29 23:13:58 works soo much better Jun 29 23:15:12 who is "we" btw? Jun 29 23:16:17 ctate androidroot.mobi Jun 29 23:20:49 ctate work on asus transformer and asus transformer prime mostly Jun 29 23:27:14 This is a great talk about the new Android dev tools http://youtu.be/Erd2k6EKxCQ Jun 29 23:30:02 is youtu.be a virus? Jun 29 23:30:33 it looks like something suspiciously trying to look like youtube so i never cliked one of them Jun 29 23:30:55 devtekbeta: go to youtube, click "share" then you get such links Jun 29 23:30:58 it's their shortener Jun 29 23:31:06 (on any video) Jun 29 23:31:22 the long link is http://www.youtube.com/watch?v=Erd2k6EKxCQ&feature=youtu.be Jun 29 23:31:36 you're overly concerned this time Jun 29 23:31:58 so this article is bs ? http://listofscams.blogspot.co.uk/2011/07/youtube-links-hackvirus-alert.html Jun 29 23:32:41 yes a hoax Jun 29 23:33:26 ahhh i see Jun 29 23:34:14 im watching the android dev tools video now :) no virus Jun 29 23:34:57 true Jun 29 23:35:01 and a great video too Jun 29 23:35:26 youtu.be is an official shortener, afaik Jun 29 23:35:33 the only thing this video and a virus and an overcomplicated text editor has in common is the two first letters vi Jun 29 23:35:48 ctate: yes gotta be… since it is what Share button gives Jun 29 23:45:22 "Patent troll gets injuction on Galaxy Nexus" … i like this way of saying it Jun 29 23:56:33 lol Jun 29 23:56:42 i'd discuss, but past experience tells me not to Jun 29 23:56:52 Please don't. Jun 30 00:02:28 Hello, lately i'm looking at roboguice and robolectric and i try to migrate my project to use these tools Jun 30 00:02:45 but anyway, do any of you know reason for which android sdk is still using junit3? Jun 30 00:02:55 is there any? Jun 30 00:04:50 junit 4 came out in 2005, should have been enough time to switch over :P Jun 30 00:07:18 Activating the DEPTH Buffer on Native apps simply wont work, anyone has an idea of why? Jun 30 00:07:29 I'm talking about OpenGL ES btw Jun 30 00:08:04 activating it on the java side of things work, but I dont really want to do native -> java calls all the time to save on performance Jun 30 00:12:04 Hi, I'm working on a widget with a couple ImageViews that have attached listeners that launch activities. It works fine at first, but after awhile (a few hours) clicking the images no longer launches the activities. Jun 30 00:12:52 because your app was likely killed Jun 30 00:13:42 what do you see in the log when that's happening? Jun 30 00:13:55 though using an intent should relaunch it Jun 30 00:14:31 I'll have to keep it plugged in for a few hours so it's logging when it happens again Jun 30 00:15:06 it will write to the log even when it isn't plugged in Jun 30 00:15:19 then you plug it in ot watch the log when it's in that state Jun 30 00:15:26 it just won't stay around very long Jun 30 00:15:26 wongk-sf, I'm using setOnClickPendingIntent Jun 30 00:15:51 I must have missed it then Jun 30 00:18:19 see it happen Jun 30 00:18:21 plug in Jun 30 00:18:29 "adb logcat" on the command line Jun 30 00:18:30 boom Jun 30 00:22:24 ok, there's something weird there Jun 30 00:22:31 thx Jun 30 00:26:46 Hello. Jun 30 00:26:50 I'm trying to spawn the following Service in the background (http://bit.ly/MZVmrN) in my main Activity with the following 3 lines of code: (http://bit.ly/LmqaVc). I also added this line to my AndroidManifest.xml (http://bit.ly/MGVHky). But, my service doesn't start. Does anyone see anything i'm missing? Jun 30 00:28:40 add "android:enabled="true" to manifest? Jun 30 00:29:22 do the or the service block? Jun 30 00:29:46 The service block Jun 30 00:30:04 android:enabled="true"> Jun 30 00:32:46 hmmmm, that didn't seem to do the trick Jun 30 00:34:12 Out of curiosity, is there any program in place so that one may borrow hardware to test on? Jun 30 00:35:00 vshaker: google search yielded http://stackoverflow.com/questions/6352748/any-service-for-testing-android-applications-on-multiple-hardware-devices Jun 30 00:37:44 Yes, I have read that as well, I was curious as to wether there was an official service, akin to nokia's developer program. I am a college student, and the cost of $180 for 20 hrs a month is a bit much, especially by a third party I do not know about. Jun 30 00:38:31 what android version introduced the onClick attribute in the main xml file for buttons versus having to manually set the onclick listener? Jun 30 00:40:25 Hasn't the onclick atribute in the xml file been there since version 1.0? Jun 30 00:40:50 pardon, totally wrong. Jun 30 00:40:52 my mistake Jun 30 00:42:03 on a tablet got an activity with 2 fragments, listfragment on the left, detail on the right, why do i keep getting an IllegalStateException: Fragment ... not attached to Activity? Jun 30 00:42:06 listener has been there since api level one. the manifest is api level 4 I think Jun 30 01:03:47 Fragment not attached to activity...any ideas on how to fix this? Jun 30 01:25:54 can't seem to use Debug.startMethodTracing("calc"); due to permissions on /mnt/sdcard. my actual sd card is at /mnt/usb_storage, there is a /mnt/sdcard, but it's not actually my sd card. what should i do to fix this? Jun 30 01:45:46 jnewt: startMethodTracing("/mnt/usb_storage/calc"); ? Jun 30 01:47:25 Fragment not attached to activity...any ideas on how to fix this? Jun 30 02:03:43 What's the average android version that comes on smartphones now..are people still using pre-3.0? Jun 30 02:08:02 http://developer.android.com/about/dashboards/index.html Jun 30 02:08:33 oh wow Jun 30 02:08:35 that's cool Jun 30 02:11:51 where is jakey? Jun 30 02:14:20 in your dreams? =) Jun 30 02:16:13 will you come with me? Jun 30 02:16:22 we can share jakey.... Jun 30 02:18:09 you can have him for yourself -- he's cool and all but im married w/ a baby :) Jun 30 02:19:34 its cool too be married but you know what i always say 'Accident happen' Jun 30 02:19:55 just dont tell your spouse... **** ENDING LOGGING AT Sat Jun 30 02:59:58 2012