**** BEGIN LOGGING AT Thu Jun 14 02:59:58 2012 Jun 14 03:01:27 I'm having a pretty weird problem. My activity includes a tabhost and a child activity is running inside it. And the problem is, there is a textbox in the parent activity in which I can type something in only using the onscreen keyboard. When using the keypad, it immediately loses focus! I'm concerned that this will affect the user experience since some devices have keypad on them. Can someone help me out? Jun 14 03:05:19 now thats weird nap Jun 14 03:12:54 XXCoder: yep! Jun 14 03:16:41 cant help though, im newbie on android. Jun 14 03:18:47 working on yet another hacker news client right now: http://imgur.com/XhJTF Jun 14 03:48:59 spinner vs expandable list view? Jun 14 03:53:16 hello all Jun 14 03:53:19 oi Jun 14 03:53:30 sup ron_frown Jun 14 04:02:57 afternoon Jun 14 04:02:59 :) Jun 14 04:03:50 is it possible to get raw touchscreen input data? Jun 14 04:04:01 something that does not depend on a particular View? Jun 14 05:09:54 hey anybody around? Jun 14 05:10:44 no, because you lack commitment Jun 14 05:10:55 sleep then, we'll build the future ourselves Jun 14 05:10:57 No.. you're the last human on Earth. Jun 14 05:11:07 there is a knock on the door Jun 14 05:11:08 hopefully anyone knows what this is lol http://dl.dropbox.com/u/53432577/weirdledcat5.png Jun 14 05:11:14 And me, your plucky comic relief AI. Jun 14 05:11:23 I know its ethernet but those is odd additions Jun 14 05:11:27 And XXCoder, ruining the mystery. Jun 14 05:11:38 better than odd addictions Jun 14 05:11:54 yeah im IT AI um yeah Jun 14 05:12:03 totally. Jun 14 05:12:37 what base class should I generally use for my own random objects...I assume just java.lang.object? Jun 14 05:13:27 im writing an app with random objects...my theory is if it's random enough I can spark android into consciousness Jun 14 05:13:51 sounds like an idea worth trying Jun 14 05:14:18 they said the wright brothers machine would never fly Jun 14 05:14:35 That's because they were working on bicycles at the time. Jun 14 05:14:52 thats probably a good point Jun 14 05:15:12 they made crap planes if truth be told Jun 14 05:15:34 Just extend Java.AI.Skynet Jun 14 05:15:48 Have to add plugins to make that work but thats it. Jun 14 05:16:26 do you think artificial consciousness is even possible? I'm open minded but I don't think it's possible...because it boils down to processor instructions Jun 14 05:16:55 yeah it will be Jun 14 05:17:33 at most we have to wait for computer badass enough to emulute entire human brain. then boom Ai Jun 14 05:17:56 there is some other ingredient besides just the process...a computer can be made mechanically, electronic is not magic, just way faster but ultimately electronic is a form of mechanical...could a computer made out of wood and gears be consciouss? Jun 14 05:18:36 I think it'd be cool...I'm waiting for the singularity too Jun 14 05:19:15 after teh singularity we can all be slackers as long as were not enslaved by the overlords Jun 14 05:19:27 heh I bet ya someday we would send nanomachines to moon or something to turn it into pure cpu power Jun 14 05:20:06 if we get nano machines we wont need that Jun 14 05:20:11 when we do Jun 14 05:21:20 well bet ya computation needs will always increase. Jun 14 05:21:34 it means at some point we would be turning planets into computers Jun 14 05:21:57 thats probably true...I definately think we have not scratched the surface with what can be done with computer technology Jun 14 05:22:34 yeah scientists calculated approx max computation we can do with entire universe. we are not even at 1% of 1 % of... Jun 14 05:22:37 and I think we can develop amazing artificial intelligence, as in it can learn and make decisions better than humans...but I don't think it would be aware Jun 14 05:23:01 One of the problems with computation is a lot of people are saying Moore's law may be approaching its end Jun 14 05:23:28 Ologn: likely due to limitions of silican Jun 14 05:23:30 yah, I think that appears to be the case...hardware is definately not growing like it was in power Jun 14 05:23:31 And as everyone knows, concurrency is a pain Jun 14 05:24:12 well all these years we've been wasting clock cycles with shitty software...there is lots of room in increased computation with better software Jun 14 05:24:57 and of course if we can no longer vertically scale to faster processors we can horizontally scale to more processors Jun 14 05:26:03 9781607060932 51299 Jun 14 05:26:06 one good thing about mobile is I think it forces you to make more efficient software...I never had to worry about wasting electricity before mobile Jun 14 05:26:14 oops forgot to switch windows first Jun 14 05:26:22 what window does that work in lol Jun 14 05:26:41 so I had an interview today for hopefully my first android job and it went great :) Jun 14 05:27:01 that's exciting Jun 14 05:27:08 they sent me home with a take home test which is a app project, I'm trying to stay up all night to get it done and hopefully impress them Jun 14 05:27:21 GeeksOnHugs: nice! Jun 14 05:27:29 been seeking job for over 2 years Jun 14 05:27:34 heh...yah thanks :) Jun 14 05:27:39 what area? Jun 14 05:27:49 CS Jun 14 05:28:01 I have 17 years experience in programming, but new to android/mobile development Jun 14 05:28:03 CS? Jun 14 05:28:04 I think what hurts most is I dont have enough experence. Jun 14 05:28:14 software engineer really Jun 14 05:28:23 oh I meant geographically lol Jun 14 05:28:28 I'm having a pretty weird problem. My activity includes a tabhost and a child activity is running inside it. And the problem is, there is a textbox in the parent activity in which I can type something in only using the onscreen keyboard. When using the keypad, it immediately loses focus! I'm concerned that this will affect the user experience since some devices have keypad on them. Can someone help me out? Jun 14 05:28:30 you meant CS = computer science? Jun 14 05:28:35 yeah Jun 14 05:28:51 northwest. near microsoft lol few hours away anyway Jun 14 05:29:07 dude, awesome, I lived in portland...love the northwest Jun 14 05:29:12 did you finish your degree? Jun 14 05:29:18 yeah with honors Jun 14 05:29:30 well you should have your school help you get your first job Jun 14 05:29:45 did you do an internship? Jun 14 05:29:54 only small one with fbi Jun 14 05:30:02 I helped configure machine for analysis Jun 14 05:30:03 what school? Jun 14 05:30:07 wsu Jun 14 05:30:26 you need to call your schools career department first thing tommorow Jun 14 05:30:41 My opinion is the Android marketplace (pay, ads, freemium etc.) is going to get much larger in the coming years. It will start to take off at some point in terms of VC laid out and jobs. Although in the short-term, it's dependent on odd things like whether the Greeks will vote in old eurocommunists on Sunday. Jun 14 05:30:44 when your a recent grad they can totally help place you...2 years is probably recent enough Jun 14 05:30:57 tried few times. guess I suck on finding job part. Jun 14 05:31:12 but yeah gonna check Jun 14 05:31:20 well you gotta get good or be an indie developer, it's a great time for that Jun 14 05:31:51 even if you don't have a hit you can make a living with several apps, mixed pay and ad based Jun 14 05:32:19 but man if you get a hit with an app...it's retarded. The first guy to make an iphone fart app made a million dollars Jun 14 05:32:33 thats if I have ideas :) jeez thats insane Jun 14 05:32:35 I'm gobbling up as many active user installs, and hopefully active daily uses as possible. I think it's a great time, I'm glad they're not hiring anyone with Android experience for $100k left and right. Jun 14 05:33:15 well what I do is cary around a list with me all the time and when I get an idea, good or bad, I jot it down...and then you get better at noticing ideas...I can share some of mine if you need an idea Jun 14 05:33:25 One of my apps has about 750,000 downloads...that's not really a hit though... Jun 14 05:33:46 if you charge one dollar for it, I'd say it is heh Jun 14 05:33:51 It is nice to pull in $7-8 a day on it though Jun 14 05:34:09 750k! lol my best livewallpaper is at 125 Jun 14 05:34:13 no doubt...I mean even at that level you just build and build and build Jun 14 05:34:15 notice lack of k Jun 14 05:34:19 it's a golden age for indie development Jun 14 05:34:45 The book to read is The Lean Startup Jun 14 05:34:56 They talk about the Minimum Viable Product Jun 14 05:35:29 hmm not bad Jun 14 05:35:49 what do they say Jun 14 05:35:54 I think the thing to do is push out a lot of apps, and maybe one of them will be a hit Jun 14 05:35:54 if youre curiopus on what I made public android-wise, look for windyflowers. should make finding other 2 easy Jun 14 05:36:15 windyflowers is definitely silly app. node batle is weird Jun 14 05:36:16 I'm reading something called "App Empire" Jun 14 05:36:32 yah exactly...a numbers game Jun 14 05:36:44 i'll share one of my app ideas with you... Jun 14 05:36:59 nah I got one big idea. just need to get my ass off Jun 14 05:37:12 or rather, ass firmly on chair and hands coding lol Jun 14 05:37:21 Like my File Manager has over 10k active installs...that's 100% piggybacked off my 750k downloads app Jun 14 05:37:58 OK, if you are like me, and there are quite a few android fanbois out there...you have several android phones...but only service on one...the idea is an app that connects your serviceless phones to your serviced phone over bluetooth or wifi or something and lets you make calls through it Jun 14 05:38:02 It pulled my file manager up in the word search ranks on Google Play, and now it gets downloads on its own Jun 14 05:38:09 nice Jun 14 05:38:18 yeah Ologn chain effects Jun 14 05:38:19 Ologn are you making your living off apps? Jun 14 05:38:59 brb...urine and cigarette need is here Jun 14 05:39:09 GeeksOnHugs, no, I'm only making $8 a day on apps Jun 14 05:39:26 dang...it sounds like you have lots of users Jun 14 05:39:37 lol I made $6.. total. Jun 14 05:39:57 I'm not even a coder really until recently Jun 14 05:40:04 well more than me, I don't have my first app on the market yet...and I might not finish it if I get this job...then I'll get my companies apps up Jun 14 05:40:08 Ologn: you just need to make that 8 bucks per 8 hours a day. thats fairly close to full time minium wage Jun 14 05:40:10 I was a Unix sysadmin from 1996 until 2008 or so Jun 14 05:40:45 i'm a long time coder...brand new android/java...been doing windows/delphi for many moons Jun 14 05:40:47 Now I'm going to school to finish my BSCS Jun 14 05:41:43 For the past few months I've been dealing more with C++ and the JNI then Java Jun 14 05:41:53 nice...I have a business degree in information systems...sometimes I wish I did comp sci, but I didn't want to do all the math and was scared of assembler at the time (though now I'd love to learn it) Jun 14 05:42:03 well time wise im long time coder. but AMOUNT wise its small Jun 14 05:42:14 GeeksOnHugs: really? I loved asm! Jun 14 05:42:37 your the only one here with a comp sci degree heh Jun 14 05:42:58 you need to get your but in gear....the programmer job market is getting hotter and hotter, don't miss out Jun 14 05:43:15 cause ive been doing this long enough that theres good times and then theres bad times... Jun 14 05:43:29 so gotta get the gettin while the gettins good Jun 14 05:43:56 brb Jun 14 05:43:57 yeah I think i got some problems preventing me from getting my ass up. im going to see doc soon Jun 14 05:44:08 Screw the job market...I want to be the next Instagram...getting a programming job is my safety net Jun 14 05:44:57 You do need to keep a foot in both though Jun 14 05:45:30 :) Jun 14 05:45:31 good for you Ologn, I agree Jun 14 05:46:02 before this job I worked for a company I founded, but I was forced out...they are still going and still might make money off it if they succeed Jun 14 05:46:20 but right now I'm ready for a stable job for a while Jun 14 05:46:49 wow you formed a company eh Jun 14 05:47:38 My advice is just study the Android API like crazy. Jun 14 05:47:45 made amateur porn with an ex? Jun 14 05:47:57 I've only had two tech interviews so far Jun 14 05:48:27 If I knew the API better I probably would have gotten hired Jun 14 05:49:27 you can't become the next instagram unless you have connections to rich people. that kind of stuff is not based on merit Jun 14 05:49:28 yeah its those kind of thing im weak on Jun 14 05:49:40 instagram is a joke Jun 14 05:49:42 apis stuff that is Jun 14 05:49:49 you can start a company, though :) Jun 14 05:50:07 I started one years ago. not related to software though. Jun 14 05:50:11 and probably a good one. just don't expect zuckerberg to throw you a billion for it Jun 14 05:50:14 lots colorful toy parts lol Jun 14 05:51:17 Things change. In 1999 it was much, much easier to get millions in venture capital then it was 5 years before 1999 or 5 years after 1999. Jun 14 05:52:48 http://articles.cnn.com/2010-08-06/living/geek.camp.talented_1_programs-for-gifted-students-three-week-session-talented-youth?_s=PM:LIVING Jun 14 05:53:03 zuckerberg, sergey, and lady gaga all went to the same gifted children program Jun 14 05:53:19 heh dotcom Jun 14 05:53:48 people who just get a billion dollars handed to them are not simply lucky. they are part of an elite social class Jun 14 05:53:52 some person with some stupid idea had people following and stuffing money in pockets Jun 14 05:54:04 for example cuecat Jun 14 05:54:07 instagram was not worth a billion, not by a long shot Jun 14 05:54:19 I have device. its very nice, but biz idea on it? fucking stupid/ Jun 14 05:54:22 in a rational world it would be worth $0 :) Jun 14 05:55:38 readme, you're absolutely correct that these heirs with capital are ripping everyone off, but with some good ideas, hard work, and luck, you can make at least decent money on the mobile boom Jun 14 05:55:54 I agree completely -- just don't try for the social space Jun 14 05:56:05 just do it Jun 14 05:56:13 b2b is where it is at Jun 14 05:56:14 if its hit its hit. if not.. well its not a hit Jun 14 05:57:33 * readme intends to make lots of money Jun 14 05:58:53 readme: who does not :D agree with social space.. just had a friend tell me: "let us make a new social network". he lost me right there in the first sentence :D Jun 14 05:59:21 The thing is, is I watched the dot-com boom from 1994 to 2000 up close. One company I was at went from 40 people to a publicly listed company with offices on both coasts within less than two years. So it motivates me to do Android work. Jun 14 05:59:21 lol yeah its all rage but it'll end evenually./ Jun 14 05:59:25 or in least burn out Jun 14 06:00:32 So does Instagram...or the OMGPop buyout...or all the other mobile VC venture rounds and buyouts...and I don't think the real money has hit yet Jun 14 06:34:39 what do I use to maintain a list of objects? Jun 14 06:36:44 ArrayList Jun 14 06:38:42 thank you Jun 14 06:38:56 why not list just wondering Jun 14 06:39:06 is there a known bug/workaround for Plone 3 in which it cannot handle succefully special characters on most of forms (such as portlets, configuration and so on) so characters like á become Ä! Jun 14 06:39:34 it sounds very familiar and i'm googling it but cannot find it Jun 14 06:39:35 GeeksOnHugs: List is an interface Jun 14 06:40:05 sorry, wrong window Jun 14 06:40:51 explain interfaces in one sentence :P Jun 14 06:41:04 I have a vague idea...the example I see... Jun 14 06:41:23 sets List as type of object but calls arraylist constructor Jun 14 06:42:05 an interface is a list of methods that a class will provide Jun 14 06:42:20 ArrayList is the class that provides the actual code that exposes a List Jun 14 06:42:25 so does LinkedList Jun 14 06:42:41 they store the data differently behind the scenes, but both provide all of the methods from List Jun 14 06:42:54 I strongly suggest you pick up a Java book and work through it Jun 14 06:43:49 books are for sissies Jun 14 06:43:53 hehe j/k Jun 14 06:44:03 ty Jun 14 06:44:43 if you're a noob to programming, i suggest the head first java series. it's noob friendly from my experience of tutoring and getting feedback from it versus other books Jun 14 06:45:28 What's java ? Jun 14 06:45:35 what im drinking right now Jun 14 06:45:36 I dont seem to understand this properly. do I just add images to res/drawable then get it by R.drawable.myimage ? Jun 14 06:45:43 yareally: haha :D Jun 14 06:46:04 XXCoder: kind of.. depends what you want to do with the image. Jun 14 06:46:12 load it as picture Jun 14 06:46:14 also an island in indonesia Jun 14 06:46:18 XXCoder: R.drawable.myimage is the Resource ID of the image Jun 14 06:46:21 make Bitmap Jun 14 06:46:27 XXCoder: load it where? into a Drawable? into an ImageView? Jun 14 06:46:31 ohh I didnt read close enough Jun 14 06:46:37 brb while I read better Jun 14 06:47:00 XXCoder: if you want to SHOW it with a ImageView just do: imageView.setImageResource(R.drawable.myimage); Jun 14 06:47:45 I just need it in Bitmap :) Jun 14 06:48:42 XXCoder: Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), R.drawable.myimage); Jun 14 06:48:55 very nice. thanks Jun 14 06:49:11 XXCoder: this is done in the Activity. otherwise try getContext().getResources() Jun 14 06:53:44 spinning this subpart of function into function of its own Jun 14 06:54:01 its rather long and having it twice, one each image just arent good coding debugging. Jun 14 06:58:53 There. if I ever want to have more than 2 images, I can too lol Jun 14 07:05:54 any of ya ever used Activator on a jailbroken iPhone? im looking the most similar app for android if one exists.. google didn't help much Jun 14 07:06:51 you dont "jail break" an android phone Jun 14 07:07:06 and this isn't a rooting channel Jun 14 07:07:35 try #android-root or #Cyanogenmod Jun 14 07:07:55 my bad Jun 14 07:08:47 what device do you have? Jun 14 07:08:57 doesnt have to be rooted app, just wondering if theres anything similar.. i found gmdgestures but its very limited in comparison Jun 14 07:08:59 i can point you in the proper direction Jun 14 07:09:03 i717 us galaxy note Jun 14 07:10:13 but also have an HTC Jetstream just rooted and deodexed/mildly themed ,and HP TouchPad running CM Jun 14 07:10:14 th3g1z: http://forum.xda-developers.com/showthread.php?t=1329360 Jun 14 07:10:21 mainly just looking for it for mynote tho Jun 14 07:11:21 ya i have CWM installed and the link there is for the international galaxy note (n7000) but i appreciate the effort none the less Jun 14 07:11:51 er, wrong link on my part Jun 14 07:12:34 http://forum.xda-developers.com/showthread.php?t=1518962 Jun 14 07:12:36 there ↑ Jun 14 07:14:07 yep already done that Jun 14 07:14:09 but thank you Jun 14 07:14:15 so what is your problem then? lol Jun 14 07:14:18 if you already rooted Jun 14 07:14:23 im looking for an app Jun 14 07:14:32 thats similar to Activator on iOS Jun 14 07:14:43 apps don't exist for rooting on android, well not in the market at least Jun 14 07:14:58 Activator isnt for jailbraking or rooting Jun 14 07:15:09 you would have to describe what it is then please Jun 14 07:15:42 its an app that lets you assign gestures or combinations of hw buttons and gestures on screen from anywhere in the android OS Jun 14 07:15:59 then assign that gesture or button to a specific command or app Jun 14 07:16:11 some launchers allow you to do gestures Jun 14 07:16:19 if you have ICS at least Jun 14 07:16:25 not sure about before that Jun 14 07:16:34 ya i use Apex Pro Jun 14 07:16:47 and have gestures for when im on the launcher screen Jun 14 07:16:49 system wide would probably have to be built into the ROM to be done right Jun 14 07:17:04 looking for a more universal OS gesture app Jun 14 07:17:27 yeah idk Jun 14 07:17:30 cool no worries Jun 14 07:17:34 just thought id ask Jun 14 07:17:39 ive found work arounds Jun 14 07:17:55 just thought maybe there was some app known that i just havent come accross Jun 14 07:18:06 thanks for looking though, I do appreciate that Jun 14 07:18:14 ask on the forums under a general android section and wait for a reply Jun 14 07:18:19 if you havent Jun 14 07:18:46 ask ios questions in android forum? Jun 14 07:18:47 i did several months ago never got a reply to what i was looking for Jun 14 07:18:59 the question is for android Jun 14 07:19:10 oh ok Jun 14 07:19:13 im just using the ios app as a comparison Jun 14 07:19:17 for what im looking to do Jun 14 07:19:24 ok misunderstood. Jun 14 07:19:31 man got weird error Jun 14 07:19:36 error: Found tag int-array where item is expected Jun 14 07:19:47 probably nothing exist. i would say it's tricky to try to do that system wide without being built into the core of the OS. Jun 14 07:20:03 odd thing? that tag dont exist. integer-array does. Jun 14 07:20:06 so some ROM developer would probably have to add it if they like your request Jun 14 07:20:11 ya thats kinda what ive found as well Jun 14 07:20:28 but i have yet to see a custom ROM for any android device that has a similar function Jun 14 07:20:55 but no worries it was a shot in the dark Jun 14 07:20:59 request they add it. if enough interest, they might Jun 14 07:21:01 i can work around it Jun 14 07:21:21 ya not a bad idea Jun 14 07:21:50 i havent done that yet, meaning ask a dev for the ROM(s) i use on the i717 Jun 14 07:21:53 good idea Jun 14 07:21:59 cyanogen usually wants code along with requests, but you can perhaps peak the interest of someone that will submit to their gerrit for it. otherwise you could ask another large ROM development project like AOKP Jun 14 07:22:13 clean fixed it lol Jun 14 07:22:50 ive asked my buddy who is dev'ing AOKP for i717 but he hasnt gotten back to me yet, i just msg'd him on irc a day or two ago Jun 14 07:23:00 but he has lots of other great things cooking :) Jun 14 07:23:12 you can also ask here i suppose: http://rootzwiki.com/forum/424-aokp/ Jun 14 07:24:12 cool good looking out i will give that a shot Jun 14 07:24:16 sure, np Jun 14 07:24:24 ive only asked on XDA and that was several months ago Jun 14 07:24:35 that's aokp's official forum or whatever Jun 14 07:24:58 cool ty Jun 14 07:25:31 can a constructor not call a different overloaded constructor? Jun 14 07:27:00 declare the one you want to use final? Jun 14 07:27:39 alright, good night all thanks again Jun 14 07:43:48 can anyone tell me what settings to use in a Samsung Galaxy Note emulator? Jun 14 07:45:58 is there a recommended way to install the android-sdk on linux where it gets installed once for everyone's use in /bin/, /usr/bin, /opt, etc. rather than in each and every individual developers home directory? Jun 14 07:48:08 ...really a .deb package would be really useful along with maybe a repo such that apt could keep things updated. Jun 14 07:48:19 jgalt: May be in /opt/ Jun 14 07:48:22 I'm not sure Jun 14 07:48:54 jgalt: I agree with you about the packaging stuff anyway Jun 14 07:50:46 anyone found or developed alternative install directions such that the sdk gets installed once for everyone? Jun 14 07:51:09 Snuffel: I guess it's not a special AVD in any way? Jun 14 07:51:13 just mimic its specs Jun 14 07:51:19 jgalt: /opt/android ? Jun 14 07:51:21 ... Jun 14 07:51:35 what kind of question is that... Jun 14 07:52:02 Snuffel: I mean, pointer input is about as precise as the stylus input, so you don't need anything special for that Jun 14 07:55:01 i know, i was just looking for the specs Jun 14 07:55:14 but I found something here http://stackoverflow.com/questions/10221680/samsung-galaxy-note-emulator Jun 14 07:57:24 Snuffel: well, just saying, but what would you hope to gain with a specific galaxy note emulator? Jun 14 07:57:59 i am going to develop a webapp for this particular device Jun 14 07:59:35 anyone a good link about the flash content of a SGS+ (I9001) and where/how the loader grabs the kernel ? Jun 14 07:59:49 Snuffel: yes, but what does a galaxy note-specific emulator add? Jun 14 08:00:04 ie, a standard AVD will get you something like stylus input Jun 14 08:00:06 i need to test it, non? Jun 14 08:00:17 a note has a big screen Jun 14 08:00:20 you can't support the galaxy note specific API's in a webapp anyway Jun 14 08:00:23 other than than I don't know Jun 14 08:00:37 i found that my firefox user agent extension sucked Jun 14 08:00:46 so I figured I'd create a real emulator Jun 14 08:03:51 i would test with my One X but I forgot my cable Jun 14 08:06:54 can I move my .android folder? Jun 14 08:06:58 right now it is on a share Jun 14 08:07:02 i want it to be on C Jun 14 08:07:15 and besides, when I start the emulator it looks in the wrong place anyway Jun 14 08:12:11 d Jun 14 08:12:16 hi, we can write Integer.class , but how to write ArrayList.class Jun 14 08:12:17 Snuffel: you can connect to adb over wifi and install your app. Jun 14 08:13:42 ppo01: What are trying to achieve? Jun 14 08:14:27 i've a method that accept a generic type and return a new stance of that class Jun 14 08:14:56 example: return new MyType(); Jun 14 08:15:10 wifi Jun 14 08:15:14 and I can call this method: getInstance(Integer.class) Jun 14 08:15:15 i don't have that :) Jun 14 08:16:14 any idea? Jun 14 08:16:42 ppo01: why wouldn't you just use the class's existing constructor? Jun 14 08:17:54 i need to embed an arbitrary object variable inside my custom object, that's why i create a static method to accept class type Jun 14 08:19:20 generics are stripped at runtime, just cast it Jun 14 08:19:30 return (MyType) new MyType(); Jun 14 08:19:58 public static MyType doThings(T val) { return (MyType) new MyType(val); } Jun 14 08:24:11 not really what's looking for. my code is here: http://pastebin.com/NuZRnffU Jun 14 08:24:54 too bad Snuffel ;) Jun 14 08:25:36 lol I start the emulator and the firs thing I see is "system is not responding" Jun 14 08:25:42 this is going to be a hell of a job Jun 14 08:26:21 launcher keeps crashing :( Jun 14 08:28:20 ppo01: generics are a compile-time only enforcement, just use ArrayList.class Jun 14 08:28:37 otherwise lookup TypeToken from GSON Jun 14 08:30:44 ppo01: you should be able to say public static MyObject getInstance() { return new MyObject(); } Jun 14 08:31:50 great Jun 14 08:33:47 but how to call the method? Jun 14 08:34:23 MyObject.getInstance() ? Jun 14 08:34:29 MyObject = Foo.getInstance() Jun 14 08:34:39 MyObject.getInstance() ? Jun 14 08:34:39 its hilarious how a crappy cheap android tablet can browse and copy files faster than a iMac with an i7 and 16gb of ram Jun 14 08:34:51 over a windoze network Jun 14 08:35:46 it works now. Thanks Jun 14 08:36:22 yw Jun 14 08:36:33 its amazing how outdated macs are Jun 14 08:36:46 pboos: heh the wallpaper is very rapidly getting polisged Jun 14 08:36:49 *polished Jun 14 08:36:56 are there any rumors for what will be announced at i/o 2012 ? i'm bored Jun 14 08:37:08 well, beside maybe jellybean Jun 14 08:37:14 g00s: I think everyone who goes is getting a self-driving car Jun 14 08:37:23 Leeds: i already have one Jun 14 08:37:25 :) Jun 14 08:37:49 a taxi or /parents/wife ? Jun 14 08:37:57 when i take my hands off the wheel, it just goes straight ! Jun 14 08:38:05 its amazing Jun 14 08:38:17 ok, dumb. next rumor. Jun 14 08:38:33 iPhone5 Jun 14 08:38:34 GO! Jun 14 08:38:52 i think we have not heard all of the ios 6 features :) Jun 14 08:39:09 i don't think siri was announced when ios 5 was talked about initially Jun 14 08:39:13 nexus tablets are a pretty substantiated rumour Jun 14 08:39:22 yeah ! Jun 14 08:39:28 and I wants one Jun 14 08:39:33 why Jun 14 08:39:42 i want one too, for dev Jun 14 08:39:55 to replace my existing single-core chunky tablet Jun 14 08:41:22 iOS 6 is getting Facebook sharing WOWOWOWOWOWOW like 2/10000000 steps closer to Android's sharing methods Jun 14 08:42:38 i'm reading about the HTC OpenSense SDK Jun 14 08:42:48 "Yep, that means even more possibilities to differentiate your apps, without fragmentation, when they are running on an HTC device. " Jun 14 08:42:58 i thought this was the onion ! Jun 14 08:43:17 http://blog.htc.com/2012/03/new-apis/ Jun 14 08:43:29 wish i could go to IO. but too expensive if i have to pay 900$ + flight + hotel :( Jun 14 08:43:46 yeah, I'd go if it wasn't for the whole flight and hotel thing Jun 14 08:43:53 pboos: they do have smaller events in Asia Jun 14 08:43:58 so just going to google io extended. should be fun too to meet the local devs. even though i enjoyed talking and questioning the googlers at google io :) Jun 14 08:44:11 I don't think there's even an extended event here :( Jun 14 08:44:20 Leeds: I know. I will go to the google office in shibuya at midnight to watch the keynote... will be fun :) Jun 14 08:44:27 Leeds: where are you at? Jun 14 08:44:28 cool, can you get me in? Jun 14 08:44:33 I'm in Hong Kong Jun 14 08:45:19 my adb is not working. when i type adb connect 192.168.2.114:5555 it responds: unable to connect to 192.168.2.114:5555:5555 Jun 14 08:45:43 jnewt: have you turned on adb-over-wifi? Jun 14 08:46:07 it's on. the tablet says type adb connect 192.16.2.114:5555 Jun 14 08:46:12 oh man ! http://www.nytimes.com/reuters/2012/06/14/business/14reuters-nokia-restructuring-jobs.html?_r=1&hp Jun 14 08:46:13 from your computer Jun 14 08:46:14 "192.168.2.114:5555:5555" isn't there something wrong with this? Jun 14 08:46:18 Leeds: https://developers.google.com/events/io/io-extended there are two events in china :) and to get into the tokyo one, just sign up over the link in this message Jun 14 08:46:19 yeah Jun 14 08:46:27 yuizy: yeah, two ports Jun 14 08:47:03 it's odd. i had it working a couple of months ago, but my memory is a bit fuzzy on how i had it all setup then Jun 14 08:47:27 pboos: yeah, Shanghai and Beijing... Tokyo is probably physically closer (and more fun), but more expensive to get to Jun 14 08:47:36 nothing is listed in adb devices Jun 14 08:48:19 Leeds: and the tokyo event is only 8 hours long that first night. :( Jun 14 08:48:19 jnewt: "adb tcpip 5555" then "adb connect 192.168.2.114" Jun 14 08:48:45 Leeds: midnight until 8am.. so perfect. i can go to work after that.. :D Jun 14 08:48:52 sweet Jun 14 08:49:17 I guess I'll just stay up and watch it online... got to have a use for home gigabit, after all ;) Jun 14 08:49:26 Leeds: first command resulted in error device not found Jun 14 08:49:41 jnewt: you've got to be connected over USB to do that, obviously Jun 14 08:49:42 second one resulted in unable to connect to 192.168.2.114 Jun 14 08:49:46 otherwise it's a bootstrap problem Jun 14 08:49:53 is this some crappy tablet or something? Jun 14 08:50:06 it's an acer iconia Jun 14 08:50:16 windows? Jun 14 08:51:13 yeah 7 Jun 14 08:51:35 oh well... you might need some drivers or some crap then :) Jun 14 08:51:36 so i plugged it in via usb and ran the commands you recommended, same result Jun 14 08:52:08 Leeds: sweet, i'll go look for some drivers or some crap Jun 14 08:52:17 for the USB, that is Jun 14 08:52:32 when you plugged it in, did adb connect at all? Jun 14 08:53:01 it tried Jun 14 08:53:16 an existing connectio was forcibly closed by the remote host Jun 14 08:53:52 Is it easy to convert PCM sound data to MP3 or some other usable format? Jun 14 08:54:15 Leeds: i only got 100mbit :D my wife messed up and only bought the 100mb instead of 1gb :D but who cares. 100mb is fast enough. and 1gb does not make US sites load faster... Jun 14 08:54:23 pboos: want to work at Google? :) http://www.google.com/about/jobs/locations/tokyo/client-facing/dev-rel/developer-advocate-android-tokyo.html Jun 14 08:55:07 Leeds: windows recognizes the tablet, it shows up in my computer Jun 14 08:55:24 i don't think it's a driver. must be some crap Jun 14 08:55:56 Leeds: my japanese is not good enough to work at google tokyo i think.. and not sure if google is the right company for me. why you even asking? you not working at google, or do you? Jun 14 08:56:01 what does it recognise it as? Jun 14 08:56:21 Acer Iconia A11, media player / storage device Jun 14 08:56:32 pboos: nah, I'm not - my (non-existent) Mandarin wasn't good enough, the one time I applied :) just saw that link in my twitters Jun 14 08:56:46 jnewt: does adb work? Jun 14 08:56:53 i have learned from others to avoid acer :| Jun 14 08:57:52 Leeds: what do i use for the [:] for usb? Jun 14 08:58:12 jnewt: um, obviously... nothing - you don't use adb connect for USB Jun 14 08:58:25 have you actually R'ed TFM? Jun 14 08:59:03 not in a while, i though adb usb would restart for usb, then devices would show. Jun 14 09:00:06 Leeds: so what nationality are you? working in hong kong sounds like fun too :) Jun 14 09:00:26 pboos: I'm from the UK, been here about 7 years now Jun 14 09:00:58 I'm not sure how it works but with the usb package for android, can you hook up any device and talk to it ? Jun 14 09:01:11 where you hail from pboos? im from usa Jun 14 09:01:41 like a game controller, or say even a bluetooth dongle? even though that is stupid because most phones tablets come with bluetooth, but just saying Jun 14 09:02:02 Blou_Aap: some dont work, I tried some devices with my touchpad Jun 14 09:02:10 some keyboard and mouse work Jun 14 09:02:14 ah, like what? Jun 14 09:02:22 XXCoder: from switzerland, you? Jun 14 09:02:24 ye figured that Jun 14 09:02:32 webcam dont, my apple keyboard (only apple product I owns) dont work properly Jun 14 09:02:57 pboos: usa. my grandfather immgranted from switzerland. :) Jun 14 09:02:58 mmm, a web cam would have been useful Jun 14 09:03:15 <-- South Africa Jun 14 09:03:15 yeah since touchpad camera dont work, cm9 dont support it yet. Jun 14 09:04:08 but adruino would work ? Jun 14 09:04:19 unknown. Jun 14 09:04:33 well that should, because they made that rubix cube solver with an old htc desire Jun 14 09:04:34 probably just need dev some driver. Jun 14 09:04:38 XXCoder: nice :) so you have swiss blood! :D Jun 14 09:04:49 swiss cheese! Jun 14 09:04:53 as blood Jun 14 09:05:14 XXCoder, Leeds: well then. i am off, work done for today. 6pm, ready to go home :) Jun 14 09:05:26 yeah pboos lol. my other side of family has been in amerca area for 200+ years. mostly canada Jun 14 09:05:29 pboos: have a good evening Jun 14 09:05:36 have great evening Jun 14 09:05:37 XXCoder: are you just extra large, or like XCode ? Jun 14 09:06:01 lol g00s no, softporn coder ;) Jun 14 09:06:02 JK Jun 14 09:06:21 :O Jun 14 09:06:22 deadcoder like X_X Jun 14 09:07:36 man i love Android again after last night. got a psx emu, with ps controllers hooked up playing the old classics. my mate bought an iPad 3 and is like awe why can't i do that :'( Jun 14 09:07:59 android :) Jun 14 09:08:46 how easy is it to hook a ps controller to android? Jun 14 09:08:58 ps3 controller ot Jun 14 09:09:04 or what? Jun 14 09:09:16 hm Jun 14 09:09:18 I've had a bit of a play with controllers... problem is, some devices support external stuff better than others, *and* you probably need some support from the app Jun 14 09:09:22 my emulator starts in landscape mode Jun 14 09:09:26 bought a new Samsung 27" screen for my pc, they give you a micro usb to HDMI so i can jam on there as well with my S2 Jun 14 09:09:28 stupid thing Jun 14 09:09:55 eSatsu, its very wasy, there is an app called six axis on the paly store Jun 14 09:10:03 for like a dollar Jun 14 09:10:22 there is also a compatibility checker from same dev Jun 14 09:10:34 that is free so you don't buy it and it doesn't work Jun 14 09:10:43 also you have to be rooted Jun 14 09:10:45 guys I heard of new kind of device Jun 14 09:11:04 it looks like laptop, but uses android phone cpu stuff as resource Jun 14 09:11:25 Transformer ? Jun 14 09:11:26 XXCoder: padfone? Jun 14 09:11:33 no, ANY android Jun 14 09:11:42 presumely that supports it anyway Jun 14 09:11:44 hm Jun 14 09:12:09 you also get that Android on a usb stick you can hook up to your tele Jun 14 09:12:13 i rooted my galaxy tab but not my s3 and not planning to for a while Jun 14 09:12:20 with a ir remote Jun 14 09:12:44 when i get my s3 it will be rooted before i even take it out the box :P Jun 14 09:12:56 i HATE stock roms Jun 14 09:13:37 i want to be able to use cifs or be able to remove bloatware etc Jun 14 09:13:41 etc Jun 14 09:13:44 et Jun 14 09:13:45 e Jun 14 09:13:53 finally found the damn thing Jun 14 09:13:55 https://www.pcworld.com/article/257237/clambook_turns_the_laptop_into_a_smartphonepowered_peripheral_cats_herd_sheep.html Jun 14 09:16:01 yeah saw that. could be cool when android has the ubuntu piece Jun 14 09:16:10 indeed Jun 14 09:16:15 i still think android is a plaything for anything other than phones Jun 14 09:16:17 if it costs more than a padsone or transformer, i won't see the point of getting that Jun 14 09:16:17 Its so damn thin Jun 14 09:16:33 g00s: surpise. its different when you has mouse and keyboard Jun 14 09:16:51 the mouse pointer on android is so damn big Jun 14 09:16:52 I have this strange Y usb cable so I can power keyboard and mouse and connect it to tp Jun 14 09:17:09 like a missile targeting system or something Jun 14 09:17:30 Blou_Aap: really? on my touchpad it was small Jun 14 09:17:41 cm9? Jun 14 09:17:48 yeah Jun 14 09:18:06 whats the res on that thing? Jun 14 09:18:08 better this way Jun 14 09:18:14 mine is 1280x800 Jun 14 09:18:18 if i understand this correctly, adb start-server and the tablet having usb debugging selected, should then list under >adb devices have i missed something? Jun 14 09:18:19 tab 10.1 Jun 14 09:18:19 oh hmm I think its on default Jun 14 09:18:25 160, whatever it is Jun 14 09:18:33 density that is Jun 14 09:18:48 ye mine too… mmm maybe its just my build for tab 10.1 Jun 14 09:19:15 your camera work on cm9? Jun 14 09:19:22 sadly no Jun 14 09:19:28 I want to use my tp for vp too Jun 14 09:19:33 even if camera sucks Jun 14 09:19:50 ye i got a s2, so i don't use the cam on my tab Jun 14 09:20:07 i use my tab for gaming and reading or browsing Jun 14 09:20:27 its the forgotten one the 10.1v Jun 14 09:20:30 the fatty Jun 14 09:20:36 lol Jun 14 09:21:27 heh i use epic for phone Jun 14 09:21:31 not touch one Jun 14 09:21:40 no keyboard = no buy for me Jun 14 09:22:13 epic? Jun 14 09:22:25 yeah android phone, epic 4g Jun 14 09:24:03 oh, we don't get those here Jun 14 09:24:20 we have only a small 4g setup atm Jun 14 09:24:41 I dont even use 4g around here. network isnt good enough Jun 14 09:25:05 how much is an s3 contract over there in dollars? Jun 14 09:25:55 well im on special deaf plan, so $50 for unlimited everything but 0 min voice and no mms Jun 14 09:26:01 its like $50 dollars here and all you get is 250mb of data. sigh we are still 3rd world here Jun 14 09:26:09 $50 inclues insurance and $10 "additional data" Jun 14 09:26:36 I got offered a Tab 8.9 LTE model for free on a 2-year US$40-per-month contract today Jun 14 09:26:50 send it here Jun 14 09:26:58 \\:D Jun 14 09:27:02 :D// Jun 14 09:27:11 me no need another tab lol Jun 14 09:27:39 should I go to Saigon for the weekend next month? Jun 14 09:27:45 i gave away my Tab 7 Jun 14 09:27:47 :/ Jun 14 09:28:03 galaxy tab 7? Jun 14 09:28:14 ye the first one Jun 14 09:28:18 from sam Jun 14 09:28:41 nice. its decent one Jun 14 09:28:55 first galaxy tab 10.1 is very good, my bro has it Jun 14 09:29:02 the 10.1v? Jun 14 09:29:03 I've got a tab 10.1, it's pretty decent Jun 14 09:29:04 I just habe HP touchpad Jun 14 09:29:16 not best, but hey $200. Jun 14 09:29:16 i got the 10.1 v Jun 14 09:29:34 32 gb even Jun 14 09:33:08 hey, guys. i need to test my application going into and out of a suspended date. is there any easy way to force this on hardware, either via a desktop command line tool or via terminal on the device? Jun 14 09:39:14 suspended date? Jun 14 09:39:26 sorry, state Jun 14 09:39:27 is the emulator supposed to required a really big machine or does it just need a bit of time to load? Jun 14 09:39:37 don't think she would like that dude Jun 14 09:40:00 Utopiah, emulator is garbage Jun 14 09:40:02 Utopiah: it takes a reasonably large machine - but it should be a lot faster if you've got the very newest SDK Jun 14 09:40:04 Utopiah: it's slooooooooow Jun 14 09:40:30 josheee12: suspended as in the user presses home or turns off the screen or what? Jun 14 09:40:33 emulator lags a ton even on a really beefy machine Jun 14 09:40:51 also, the emulator is a *lot* quicker at being a phone than a tablet... Jun 14 09:41:28 hmm... I really do think I'm about to book a weekend in Ho Chi Min City Jun 14 09:42:02 appel1: onpause/resume, presumably. i'm trying to test my onrestoreinstancestate. Jun 14 09:42:29 well I have quite a decent desktop so I was a bit surprised Jun 14 09:42:36 josheee12: then launch your app, press home and launch it again :) Jun 14 09:43:30 Utopiah, best bet is an actual device over adb Jun 14 09:43:58 Blou_Aap: yes that's what I did until now because I worked on my laptop and the emulator seems not to even boot.. but it's a bit more risky Jun 14 09:44:12 risky? Jun 14 09:44:33 i think i was previously misunderstanding the app lifecycle. is there any way to simulate a high memory usage care, so the app's process is killed, then resumed? Jun 14 09:44:50 Blou_Aap: erase all the SDcard content? Jun 14 09:45:23 why you want to do that? Jun 14 09:45:40 I dont want to do that but I make mistakes Jun 14 09:46:05 i have like 4 devices connected at a time, just selecting which one i want to try on a menu etc Jun 14 09:46:16 so you working on sdcard stuff etc ? Jun 14 09:46:58 android dev is very frustrating on an emulator only, so you better get a device for testing, even a cheapy is better than the emulator Jun 14 09:47:21 josheee12: there's the don't keep activities developer option, and to test when the whole process is restarted I guess you can stop it before starting the activity again. Jun 14 09:47:37 ok, thanks Jun 14 09:47:49 Blou_Aap: so you mean having and extra phone for tests Jun 14 09:48:08 josheee12, you can always fil up a bitmap object with random crap till the app crashes :P Jun 14 09:48:20 lol Jun 14 09:48:33 Utopiah, ye, are you diving for yourself? Jun 14 09:48:48 deving* Jun 14 09:49:25 Blou_Aap: just go my first Android few days ago and only started playing with the SDK 3 or 4 days ago so Im still discovering Jun 14 09:49:40 so Im not pro obviously Jun 14 09:49:58 its save to use your phone man, won't erase anything Jun 14 09:50:35 code with "folder.delete" won't delete a folder also Jun 14 09:50:55 its actually hard to erase a sdcard from your app Jun 14 09:52:33 ok Im convinced I just drop the emulator, if I mess up I'll remember your name though ;) Jun 14 09:54:54 for the emu performance, having a vt-x capable CPU matters. But it takes lot of time to boot anyway Jun 14 09:56:20 particularly the first time, which puts people off Jun 14 09:56:24 hi Jun 14 10:11:09 is there a way to find out which drawables etc. do not get used in an apk? Jun 14 10:11:33 i am aware that a static check could find false positives for unused resources Jun 14 10:11:41 that would be so useful Jun 14 10:11:47 [as one could assemble resource file names at runtime] Jun 14 10:12:00 but it would be nice to have usage statistics gathered at runtime.. Jun 14 10:12:18 it will be a hell of a job to go through all our drawables to find out which are outdated.. Jun 14 10:12:26 do you know of an existing static checker? Jun 14 10:20:10 so from within an AsyncTasks's doInBackground(), i am calling a function foo(new Runnable(){blahblahblah}) Jun 14 10:20:31 which thread will the runnable execute in? Jun 14 10:22:04 in the background thread Jun 14 10:22:12 same as the doinbackground Jun 14 10:23:07 I'm trying to play video using surfaceholder, videoview and mediaplayer. I get a black screen but sound plays. Here is my code: http://piratepad.net/8duHlB3kNk Jun 14 10:23:10 what is wrong with my code? Jun 14 10:25:12 yuizy, thats not happening Jun 14 10:25:33 the doInBackground() is returning immediately and it ends up running in a new thread, i believe Jun 14 10:25:59 how do you launch the runnable? Jun 14 10:26:56 the actual .run() occurs from within ANOTHER new Thread(new Runnable() { Jun 14 10:27:07 then that's a new thread Jun 14 10:27:22 :/ Jun 14 10:28:46 hi Jun 14 10:33:00 hiii all Jun 14 10:33:18 hoi Jun 14 11:12:46 Could some point me to the right direction. I want to have adMob on my app (banner left bottom of the screen). I'm sliding thru different views (a viewpager sort of thing). And i want the banner to stay on the left bottom of the screen while sliding thru views. How do i set up my layout so that i dont need to put banner to each view? Jun 14 11:31:04 hello Jun 14 11:31:51 someone can answer me if i can use a message box when i use openGL? thanks Jun 14 11:37:32 hi Jun 14 11:51:01 holy crap Jun 14 11:51:15 IDEA code analysis on this android project takes forever Jun 14 11:56:56 so i need to call super.onActivityResult() ? Jun 14 11:57:45 s/so/do Jun 14 11:59:47 osxorgate: ? Jun 14 12:00:17 probably not Jun 14 12:00:23 depends on what you're doing Jun 14 12:00:25 :/ Jun 14 12:00:29 can anyone explain: ImageView imageView; ? I expected to see an = in there, (learning java) Jun 14 12:00:59 well i have an activity that fires up another with startActivityForResult Jun 14 12:01:20 jrockjiggz it means you define an ImageView called imageView, and not initialize it to anything Jun 14 12:01:48 though, it it's a member, java initializes it to null Jun 14 12:04:08 thanks i wasn't sure which way it went :) Jun 14 12:04:15 Hooray! I get to relearn Fragments after not having worked on an android project here at work for somewhere in the neighborhood of 6 months. Boo to Web Development and iOS. Jun 14 12:14:18 sorry, I got disconnected Jun 14 12:14:50 so, my question was: how can one class be both Jun 14 12:14:50 static and abstract at the same time? For example, when you generate Jun 14 12:14:50 Binder interface from the .aidl file, you get a class that is declared as Jun 14 12:14:50 "static abstract class", inside of interface Jun 14 12:16:30 a class has to be an inner class to be static Jun 14 12:16:36 in which case static has a special meaning Jun 14 12:20:26 wongk: as far as I figured it out, inner class is static so it can be instantiated out of the context of the containing class Jun 14 12:20:47 correct Jun 14 12:21:08 it does not have an implicit reference to the containing class Jun 14 12:21:44 on the other hand, if a class is abstract, then it cannot be instantiated, right? Jun 14 12:21:54 correct Jun 14 12:21:59 not directly Jun 14 12:22:29 then how can a class be both static and abstract? Jun 14 12:22:59 what leads you to believe it could not be both? Jun 14 12:23:29 oh man i love me android. lunch time at work i can play mortal combat with a ps controller and kick my colleague's ass Jun 14 12:23:31 hahahah Jun 14 12:23:47 kombat* stupid mac autocorrect Jun 14 12:30:04 wongk: if static is so it can be instantiated out of containing class'es context, and abstract so it cannot be instantiated, how come there is a "new .Stub()" (a static abstract class) command? Jun 14 12:30:43 cannot be instantiated directly Jun 14 12:30:50 very different from cannot be instantiated Jun 14 12:32:03 hi Jun 14 12:35:43 I'm not going crazy, right? They enabled support for fragments back to 1.6, right? Jun 14 12:36:09 yes, api 4 Jun 14 12:36:22 Ok. then there is something seriously wrong with my code. Jun 14 12:36:25 with the support library, of course Jun 14 12:36:55 I have everything(short of a few specific phone options) installed. so that shouldn't be a problem. Jun 14 12:37:24 let's say i have two views and i use the same translate animation on them Jun 14 12:37:34 how can i make sure that they are animated in sync? Jun 14 12:37:40 it seems one leads the other a little bit Jun 14 12:37:45 sue them then run animation Jun 14 12:37:52 que*** Jun 14 12:38:00 DAMN THIS AUTOCORRECT LOL Jun 14 12:38:02 queue them? Jun 14 12:38:16 how do you turn of autocorrect on a mac Jun 14 12:38:27 Lol. Legal precedence required to sue two views. Jun 14 12:38:30 Blou_Aap: install linux Jun 14 12:38:32 is making me cwazy Jun 14 12:38:53 can't dev iPhone on linux without serious missions Jun 14 12:38:55 Blou_Aap: it's in the system preferences somewhere Jun 14 12:38:59 Blou_Aap: I didn't know it had it. I've had a mac for 10 years and never seen it. Jun 14 12:39:04 and that is not a solution to turn off autocorrect Jun 14 12:39:04 tru dat Jun 14 12:39:19 vexxecon: it drove me up the wall too, when i got my macbook here at work.. Jun 14 12:39:29 like my car's got a flat tire, buy a new car! Jun 14 12:39:40 ^ Jun 14 12:39:43 Good option Jun 14 12:40:05 system preferences -> language and text Jun 14 12:40:16 second tab "text" topmost option Jun 14 12:40:36 when i call startActivityForResult(), when exactly does this activity start? Does the calling method get finished first? Jun 14 12:40:37 almost like "my mac is having issues, let me ask how to fix it in #android-dev" ;0 Jun 14 12:41:07 osxorgate: i'm not sure the order is guaranteed explocitly Jun 14 12:41:35 ex0a, hops in here without any context Jun 14 12:41:51 osxorgate: i guess since the UI thread needs to render the new activity's layouts etc the starting of the activity might be postponed until your current method ends and the main application loop has got a chance to run Jun 14 12:41:51 :P Jun 14 12:42:07 ex0a: "#android-dev, where ALL of your problems can be solved!" Jun 14 12:42:25 Blou_Aap: did you see my message about te system preferences? Jun 14 12:42:30 [autocorrect] Jun 14 12:42:30 onStatActivity opens it's intent immediately. its up to you to handle other life cycle events Jun 14 12:43:20 Did I declare it in the manifest DDMS asks. Of course I didn't declare it in the manifest. That would mean I thought ahead. Jun 14 12:43:27 but i think a return result will crash the app if you closed the activity it was called from Jun 14 12:43:50 mmmm i never tried that before, so i dont know what would happen lol Jun 14 12:44:01 Just a curiosity, does anybody know why HTC's default keyboard will give IME_NULL when pressing its enter-button? :D Jun 14 12:44:33 i got an htc desire, but its miui. :) Jun 14 12:45:31 Yeah, just did "autolog when pressing done in the keyboard"-feature and every other keyboard I tried will give keycode 6, as I expected Jun 14 12:45:52 except htc Jun 14 12:45:56 no surprise there Jun 14 12:45:58 though Jun 14 12:46:27 they love making Android more fragmented than it already is Jun 14 12:46:41 YEah Jun 14 12:47:02 And I don't even want to mention the browser it is using Jun 14 12:47:20 which htc is this? Jun 14 12:47:45 umm, htc desire Jun 14 12:48:26 oh lol, ye mine is gathering dust some where Jun 14 12:48:53 Hey everybody, Jun 14 12:48:54 Is it possible to automatically run a .bat when connecting an android phone in debugging mode? Jun 14 12:48:54 i want to open it up and do some random messing around with it Jun 14 12:49:04 maybe something with anduino Jun 14 12:49:05 yeah, it is only a testphone at work Jun 14 12:49:20 guys, can I develop and publish an paid application without testing it on a real device? Jun 14 12:49:33 u can, but i hope u dont do :) Jun 14 12:49:36 is it possible to mix etc with ? Jun 14 12:49:36 And the client has a desire z (who reported the problem) Jun 14 12:49:37 hehe Jun 14 12:50:38 it's just that I don't have the money to buy a good device (and I don't want a crappy one) and I was thinking of releasing an app to get the money... Jun 14 12:50:55 tho, I'll test it on a firend device if that's the case... Jun 14 12:51:08 Well, If your app works with crappy one, it propably will work with a good device Jun 14 12:51:14 Blou_Aap: Maybe I need to borrow that autocorrect. Just failed typing in my activity into the manifest 3 times, running it, and getting angry when it kept breaking. Jun 14 12:51:41 probably* Jun 14 12:51:42 yvez, http://www.paulski.com/zpages.php?id=1624 Jun 14 12:51:46 I know ... but I don't wanna waste my money on a crappy device... Jun 14 12:52:03 maybe friend's phone then :P Jun 14 12:52:09 vexxecon, thats why i rather use the picker from ADT Jun 14 12:53:01 i started on a crappy device Jun 14 12:53:22 i still have it, somewhere gathering dust too Jun 14 12:53:26 lol Jun 14 12:53:28 ow another thing, does the gpu_emulation work for you guys??? if I activate it, my emlator won't start anymore... :| Jun 14 12:53:29 htc hero Jun 14 12:54:51 Blou_Aap: I used to have the verizon version of that, the Droid Eris. Jun 14 12:55:01 That was my first Jun 14 12:55:08 Blou_Aap ye,but instead of buying a crappy device I prefer my SE w910i witch isn;t even touchscreen lol Jun 14 12:55:41 i had that same sony walkman. was a nice phone back before touch screens Jun 14 12:56:04 I know<3 Jun 14 12:56:28 but now I'm pretty ashamed to get it out of my pocket lol Jun 14 12:56:43 My first smartphone was a Blackberry Pearl. Which wasn't very smart(of me, or it) Jun 14 12:56:59 i still have mine, somewhere gathering dust….geez i keep all my phones Jun 14 12:57:34 tnx, but don't I need to enable mass storage in order to use this? Jun 14 12:57:46 It makes cry when I see on the street a damn 10years old kid with an S2.... Jun 14 12:58:01 or people that buy android phone just for angry birds X( Jun 14 12:59:00 ludev: I was still using my shitty Droid Eris when my mom got her Droid charge. She still has issues with accidentally removing icons from the home screen and can't get them back on. Jun 14 13:00:40 vexxecon, install Launcher pro, then lock icons Jun 14 13:00:52 i had to do the same for my gran Jun 14 13:01:22 omg, your gran has an android phone and I don't? T.T Jun 14 13:01:30 hahaha ya Jun 14 13:01:48 she got one of my older ones, i think it was galaxy s1 Jun 14 13:02:03 -.- Jun 14 13:02:18 I was expecting a samsung mini or something ,not an s1 lol Jun 14 13:02:38 i go through phones like toilet paper lol Jun 14 13:02:48 Blou_Aap: My mom is only 45, and claims to be proficient with technology. Jun 14 13:02:55 only the s2 that i kept for so long Jun 14 13:03:14 vexxecon, all our moms say that, until they get cornered Jun 14 13:03:20 I got the HTC Thunderbolt currently, and regretting that decision. Jun 14 13:03:38 ye, I've had 6 phones in 3 years .... until the damn ecomonic crisis lol -.- Jun 14 13:03:45 i like my thunderbolt Jun 14 13:03:47 i still dunno how to make two views thar are animated by the same translation animation to move in lockstep Jun 14 13:04:07 anyone know how to stop my listview reacting to clicks ive removed onItemListClick but it still highlights the row when i press Jun 14 13:04:22 and now I'm pretty much stuck with this one for some time, and idk why it's so damn hard to find something to work on this whole damn internet lol Jun 14 13:04:24 tapas, i dont think you can use the same translation Jun 14 13:04:42 give each their own Jun 14 13:04:45 wongk: I have one of the first generation ones, with shit battery life. I get maybe 2 hours out of a full charge with just texting and phone calls. Jun 14 13:05:08 vexxecon: i've never heard of batter life anywhere near that bad Jun 14 13:05:22 i've had mine for over a year, i get 24 hours or more Jun 14 13:05:34 wongk: ;_; I can only hope to have that. Jun 14 13:05:45 cm7 + imo's kernel Jun 14 13:05:50 gaz` can you set the list selector to transparent? Jun 14 13:05:54 even 24 hrs is lame as Jun 14 13:06:07 canvs2321 i will try right now settingclickable to false to see what happens Jun 14 13:06:07 Blou_Aap: will try that ok.. Jun 14 13:06:07 it's even moderately overclocked Jun 14 13:06:15 view.setInAnimation(inAnimation()); view.setOutAnimation(outAnimation()); Jun 14 13:06:19 for a smartphone it's pretty normal if you ask me... Jun 14 13:06:42 I used to run that. but it didn't help my battery life but maybe an extra hour. Jun 14 13:07:06 Blou_Aap: crazy :D it works with two instances of the animations Jun 14 13:07:10 you have either a hardware issue or some rogue software Jun 14 13:07:16 Now I'm running on BAMF Son Of A Bliss Jun 14 13:07:53 It is a hardware issue. Mine is one of the firsts, when they had rampant hardware issues. Jun 14 13:08:03 m gna go with rogue software Jun 14 13:08:28 wongk, you know Juice Defender? Jun 14 13:08:40 i know, no need for it Jun 14 13:08:46 know it Jun 14 13:08:52 ye i used it before on gb Jun 14 13:08:58 and helped a lot Jun 14 13:09:01 i put it on ics Jun 14 13:09:09 and my battery lasts 30 minutes Jun 14 13:09:13 even when off Jun 14 13:09:14 XD Jun 14 13:09:41 like Juice Kegger Jun 14 13:09:52 vexxecon: call verizon and make them give you a new one Jun 14 13:10:03 "new" one Jun 14 13:10:35 i read tear you a new one Jun 14 13:10:36 :/ Jun 14 13:10:44 hehe Jun 14 13:10:47 heh Jun 14 13:10:56 sounds like they already did that Jun 14 13:11:09 argh i cant get my list selector to vanish, anyone ? Jun 14 13:11:27 i tried setselector to null, and setclickable/setfocusable to false still no luck Jun 14 13:11:31 wongk: I'm up for renewal in a couple months, I'm going to get a new phone anyways. Jun 14 13:11:42 what happens gaz` Jun 14 13:11:43 ? Jun 14 13:11:45 I've had nothing but HTC androids, so I'm going to go to something else. Jun 14 13:12:33 you using a custom adapter at all? Jun 14 13:12:54 nothing happens Jun 14 13:12:56 yes cusotm adapter Jun 14 13:13:18 and you are setting these in your getView right? Jun 14 13:13:24 ill commit suicide if this app isnt done soon Jun 14 13:13:27 yes Jun 14 13:13:29 vexxecon: at first i wante a gnex, but i've heard big red has taken control from google, so there's no point Jun 14 13:13:46 it's just another android phone that doesn't get updated Jun 14 13:13:49 post your getview code on pastebin or something? Jun 14 13:14:05 wongk: As with every phone on Verizon. Jun 14 13:14:15 yup Jun 14 13:14:20 Blou_Aap hows it gonna help? Jun 14 13:14:25 standard looking getview Jun 14 13:14:29 might be time to switch carriers, their pricing is outrageous anyway Jun 14 13:14:30 so i can see :P Jun 14 13:14:39 but they're the only ones with LTE =/ Jun 14 13:14:41 I was also thinking about just ditching them altogether and going to another carrier and get a phone that won't be a piece of crap. Jun 14 13:14:45 you might be doing something silly that you are not seeing Jun 14 13:14:47 I'm getting some really weird behaviour on an animation I'm doing on a listview. Half the listview is not drawn after it completes - if I go to another app or something and then come back in, it's drawn correctly Jun 14 13:15:12 ok Blou_Aap im reluctant to post shit on here because ppl just give u abuse and tell u to go and learn to code :) http://pastebin.com/rXEYiwUN Jun 14 13:15:20 you have to be able to make individual list items unclickable or what ever you want with them Jun 14 13:15:22 wongk: I live in super small rural ohio. We just got 4g from a neighboring 'city'. Like a month ago. Jun 14 13:15:34 u cuda pm'd lol :P Jun 14 13:15:42 vexxecon: i am also in ohio, but cincy :P Jun 14 13:16:02 :) yeh well u might turn out to be "one of them" still hehe Jun 14 13:16:06 Oh snap! I'm about an hour west of Toledo. Almost in Indiana Jun 14 13:19:20 Ugh. I'm going to destroy this emulator. 06-14 13:16:13.531: E/AndroidRuntime(2729): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.company.FragmentsTest/com.ruralogic.FragmentsTest.DetailActivity}; have you declared this activity in your AndroidManifest.xml? Yes it exists, Yes I've declared it. Jun 14 13:19:47 oh sure, i change one company name, but not the one next to it. /facepalm Jun 14 13:24:14 Oh right, you just don't want to work in portrait mode. Landscape you're fine. Jun 14 13:24:21 I need a table to flip. Jun 14 13:30:14 you need to write better code ;) Jun 14 13:33:31 ok ICs is out for my device, now if I update to kies all my SMS , App ,contacts and card data will be deleted ? please reply Jun 14 13:34:47 jennie: try #android Jun 14 13:34:48 Hello guys, what's the best way to show up a menu at the bottom when I check an item on a list? Jun 14 13:35:50 I was thinking of show/hide a custom layout as menu, when I check on an item. Is there a better way? Jun 14 13:42:32 hey guys i have a problem with modifying the Model Matrix in opengl es 2.0. whenever i move the model, setRotateM() resets the movement... any ideas? Jun 14 13:50:30 can anybody point me to a good example that retrieves and parses a JSON file from across the internet? Jun 14 13:53:34 GeeksOnHugs: do you need more help with the retrieving part or the json parsing part? (or all the parts)? Jun 14 13:53:51 guys, I've create layout but it doesn't resolves with R.layout. :/ Jun 14 13:53:56 what I do wrong? :/ Jun 14 13:54:35 Oh.. I do 'Project->Clean...' and it appear Jun 14 14:03:41 woozly: eclipse? Jun 14 14:03:52 vexxecon: yes) Jun 14 14:04:43 try deleting your r file(it's autogenerated, so it'll pop back up). That will force the R file to update. Jun 14 14:05:05 or just don't rely on code completion to be 100% accurate all the time Jun 14 14:11:47 protip: dont use eclipse Jun 14 14:12:29 hello Jun 14 14:13:05 how can I download only a few source files from Android? i want a few .cpp files , from its JNI Jun 14 14:13:08 JNI Jun 14 14:13:23 dont want to get gigs of source code, any help ? Jun 14 14:13:51 osxorgate: what should i use then? Jun 14 14:14:15 b00^wk: you can get just the git project you want Jun 14 14:14:22 but you can't just get a few source files Jun 14 14:14:49 b00^wk: fetch the repo manifest; that will tell you a list of all the branches and projects. From there, just git clone like normal Jun 14 14:16:53 (so far best tutorial Ive found http://www.vogella.com/articles/Android/article.html#components_services ) Jun 14 14:16:54 evancharlton, how can i find out to which project the packages-apps-Nfc/jni belong to ? Jun 14 14:17:10 yuizy i'm quite partial to intellij idea Jun 14 14:22:07 Is it way for activating numpad (where numbers only?) for EditText ? Jun 14 14:22:48 woozly: inputType="decimal" or something like that Jun 14 14:22:51 oh.. android:numeric Jun 14 14:22:56 thanks! Jun 14 14:22:57 woozly: use inputType Jun 14 14:23:04 numeric is deprecated, iirc Jun 14 14:23:23 oh.. okay Jun 14 14:23:24 thanks! Jun 14 14:23:30 hmm is there a way to make the background scale on a linearlayout rather than making the linear layout bigger ifthe graphic is too big Jun 14 14:25:46 nt4cats sorry got a call and stepped away...yah I need all of it :P Jun 14 14:26:17 nt4cats I was hoping for something that would do one chunk of code rather than two seperate procedures if possible Jun 14 14:26:26 or whatever is right, I've never done it before Jun 14 14:27:40 gaz`: linearlayout set to height/width wrap_content would scale it for the image Jun 14 14:29:40 GeeksOnHugs: let me browse around and see what I can find that will be useful for you. Jun 14 14:30:10 Where can i find the source for android apps? Jun 14 14:30:24 nt4cats thx bro...I searched and saw bits and pieces with none working code and couldn't see how to get them to work together Jun 14 14:30:50 hello! Jun 14 14:31:04 aye Jun 14 14:31:37 can somebody help me find the source for android apps on the market??? Jun 14 14:31:44 I just got my Samsung Galaxy Mini, and I'd like to do C programming for it. I am aware that google advises to use Java, but I'd rather use C. I can't find a cross-compiler though. Anybody assist? Jun 14 14:32:17 Question: I have a custom view which i add to a RelativeLayout via xml like this: . In CustomView()-constructor i do "LayoutInflater.from(context).inflate(R.layout.customview, this);" . If i check the Hierarchy Viewer, i see RelativeLayout > CustomView > LinearLayout > childviews. Jun 14 14:32:43 Can i somehow remove the intermediate LinearLayout between my CustomView and the childviews ? Jun 14 14:33:07 QHDD you want to reverse engineer? Jun 14 14:33:34 soryy708: The only way to do C programming for Android that I know of is http://developer.android.com/sdk/ndk/index.html Jun 14 14:34:01 if it's the only way, it's the best way Jun 14 14:34:11 nt4cats - Do you think you're able toa ssist? Jun 14 14:34:18 sam - Why is the best way? Jun 14 14:34:30 because there's no best way Jun 14 14:34:32 QHDD if the dev hasn't published their source you can't get it, however my understanding is that unless purposefuly obfuscated java and/or dex byte code is easy to reverse engineer Jun 14 14:34:54 sure reverse engineer would do, but i want it java not smali Jun 14 14:35:06 nt4cats anything look promising for me bra? Jun 14 14:35:23 soryy708: you're asking me to assist with NDK programming? We've used the NDK in the limited areas where we needed it, but I've/we've never tried to build an entire app using the NDK. I'm not going to be much help, Jun 14 14:35:28 QHDD I hear it's very good except you don't have helpful object names Jun 14 14:35:35 i thought google takes down apps who ddontbreleasebsource Jun 14 14:35:45 no way, why would they do that Jun 14 14:36:05 nt4cats - I wish to make games for it. I know OpenGL, and I know SDL. SDL supports android, so I believe SDL will take care of everything. Jun 14 14:36:48 nt4cats: sounds great, but that's not the sort of stuff I do so I doubt I can be of much help. Jun 14 14:36:57 so when you say reverse engineer i dont supposdd u mean apktool - smali Jun 14 14:37:11 QHDD check it, from google themselves for reverse engineering http://code.google.com/p/android-apktool/ Jun 14 14:37:13 are new devices still coming out with trackballs/trackpads? Jun 14 14:37:15 GeeksOnHugs: http://developer.android.com/training/basics/network-ops/xml.html is pretty good, although it covers XML parsing not JSON Jun 14 14:37:23 oh is that smali? Jun 14 14:37:27 i thought it gave you java Jun 14 14:37:53 GeeksOnHugs: I think http://wiki.fasterxml.com/JacksonInFiveMinutes is a great intro on JSON parsing Jun 14 14:38:16 I think if you read and understand the first one, and then read/understand the second one you'll be golden Jun 14 14:38:48 i use dex2jar and jd-gui Jun 14 14:38:49 nt4cats right on bro, thanks...so the XML article for transport and the json article for parsing Jun 14 14:39:31 QHDD it says it gets it into "original form" and it says it includes smali code but I'm not clear if that's all you can get Jun 14 14:39:36 <3 nt4cats Jun 14 14:39:49 how do you guys recommend drawing multiple objects in openGL es? also how would you handle rezzing objects while inside the application? Jun 14 14:39:55 GeeksOnHugs: That's where I'd start. There are a LOT of examples and explanations on http://developer.android.com/resources/index.html -- I highly recommending checking there first Jun 14 14:40:52 Bakis - What do you mean? Jun 14 14:41:08 cool ty nt4cats...yah I search there but allways just get the reference but that links looks like some examples, ty Jun 14 14:41:12 like take second life for an example: how does it handle creating new objects on the fly? Jun 14 14:41:33 hey guys QHDD is going out to pirate your apps Jun 14 14:41:40 lol Jun 14 14:43:03 Bakis - malloc. Jun 14 14:43:12 nt4cats I see why I never see that section, the search does not include "resources" Jun 14 14:43:14 Bakis - I can help you in C & OpenGL & SDL terms. Jun 14 14:43:35 i mean opengl is relatively similar to es 2 Jun 14 14:43:52 there are differences but the concepts are the same Jun 14 14:44:51 has anyone tried putting SDL programs onto an app? I was thinking about giving it a whirl Jun 14 14:45:05 Bakis - Objects and stuff are not really the matter of OpenGL Jun 14 14:45:07 the NDK looks intimidating though :P Jun 14 14:45:09 Rich787 - I wanna! Jun 14 14:45:29 Rich787 - I'm trying to figure out how to program apps for my android device in C. Jun 14 14:45:51 huh? Jun 14 14:46:13 I've just been powering through some really basic SDL games like blackjack. Hopefully I'll get the motivation to try the NDK soon though. Jun 14 14:46:15 Bakis - It's a matter of data structures. OpenGL only represents the data graphically Jun 14 14:46:33 Rich787 - I am actually making a top-down 2D shooter game in SDL and OpenGL Jun 14 14:46:43 you can have each of your data structure have some sort of Draw function that makes it's OpenGL calls Jun 14 14:47:01 okay...; Jun 14 14:47:02 sorry. That was poorly worded. hehe Jun 14 14:47:05 Rich787 - It's still not OpenGL's business though Jun 14 14:47:19 Rich787 - Yes, you can make a rendering method; but I use C, not C++. Jun 14 14:47:46 but isn't Bakis using java? I was referring to his question about objects Jun 14 14:48:15 Rich787 - Yes, so he must use an OOP approach with a goddamn method for rendering Jun 14 14:48:33 Rich787 - OR he could have a method for rendering in the scene class which loops through all entities and renders them. Jun 14 14:49:05 soryy708: Yea that could work. I'd imagine it could get complicated with scale though Jun 14 14:49:43 Rich787 - No, not at all Jun 14 14:49:51 Rich787 - If the design is good, there's no problem. Jun 14 14:49:59 Definitely Jun 14 14:50:19 Rich787 - Have an entity class which is inherited by all object types. The entity class has only basic stuff like x/y/z location, dimensions, etc... Jun 14 14:50:40 Rich787 - Then the rendering method could just run through a linked list of entities, rendering them. Jun 14 14:51:07 Right. That would be pretty clean. Jun 14 14:51:13 Okay that's weird. My phone says my kernel version is 2.6.35.7, but there's no 2.6 in the SDK manager. Jun 14 14:51:28 Is that how you are doing it for your shooter, soryy708 ? Jun 14 14:51:45 Rich787 - I use C, so I don't do any classes / inherintence fancy stuff Jun 14 14:52:07 Rich787 - I just have a function which runs through a doubly linked list of all the actors to render the actors. Jun 14 14:52:48 Rich787 - Every type of entity has it's own data type, so I have to do multiple loops and so the code might be abit longer. But that's just C being C. Jun 14 14:52:59 How do i pass my main activity to a subclass? AdMob initiation requires an activity parameter but i cant pass it from sub-class. Jun 14 14:53:03 Rich787 - I can provide you with source code, if you wish. Jun 14 14:53:08 n4tcats would downloading a JSON resource be done via a "REST API"? Jun 14 14:53:31 People? This is fairly weird: My phone says my kernel version is 2.6.35.7, but there's no 2.6 in the SDK manager. Jun 14 14:53:41 GeeksOnHugs: that's a fair assumption for an academic exercise Jun 14 14:54:06 soryy708: the kernel version != the Android OS version Jun 14 14:54:19 nt4cats - Okay, so how do I check what's my Android OS version? Jun 14 14:55:00 my phone says "Android Version" in the same screen that shows the kernel version Jun 14 14:55:25 I realized my android book might cover it...it has a "reciepe" for parsing JSON and one for accessing a rest api to access GET, POST, PUT and DELETE requests i think over http Jun 14 14:55:43 Okay, I missed it before. It says it's 2.3.4. The SDK has 2.3.3 and immediately 3.0 Jun 14 14:55:55 2.3.3 is for you Jun 14 14:56:15 soryy708: They don't up the API level with every point-release of Android Jun 14 14:56:30 nt4cats "RESTful APIs are typically built using standard HTTP verbs to create requests of the remote resouce and the responses are typically returned in a structured document format, such as XML, JSON, or comma seperated values" Jun 14 14:56:30 guys, is the a project similar or using the code of inputattach for android? Jun 14 14:56:32 soryy708: the SDK versions correspond to those where they upped the API level Jun 14 14:57:11 nt4cats - ok thanks. Jun 14 14:57:39 soryy708: Sorry about that.. someone asked me a question. I would like to see it, if you don't mind Jun 14 14:57:59 soryy708: I'm using C++ to do my SDL programs, but the calls and general idea should be similar Jun 14 14:58:17 what the fuck is rockstar smoking. i go ot the max payne page in the play store, and it lists GTA3 FOUR TIMES under "more from developer" Jun 14 14:58:45 or is that a play store bug Jun 14 14:58:55 it's just that good Jun 14 14:59:09 canadiancow|work: same here Jun 14 14:59:13 Rich787 - Have you got Skype/ Jun 14 14:59:35 ?* Jun 14 14:59:35 canadiancow|work: I *suspect* it's a region thing... Jun 14 14:59:43 soryy708: yup. richard.whalen787 Jun 14 14:59:43 yea it is Jun 14 14:59:47 the others are .gta3aus Jun 14 14:59:50 .gta3jpn Jun 14 14:59:51 etc Jun 14 14:59:52 You could have PM'd that Jun 14 14:59:58 canadiancow|work: I suspect that Leeds' suspicion is correct. Jun 14 14:59:59 but like...for serious? Jun 14 15:00:11 heh woops Jun 14 15:00:20 * nt4cats can't speel Jun 14 15:00:25 Hello guys, what's the best way to show up a menu at the bottom when I check an item on a list? Jun 14 15:00:32 as opposed to EA, who have different accounts for US apps and EU apps Jun 14 15:00:40 canadiancow|work: EA does that all the time Jun 14 15:03:25 sh*t Jun 14 15:15:40 Hi, is there anyway to get proximity alert using only NETWORK_PROVIDER? Jun 14 15:16:09 The documentation says, it uses both network and gps. but this drains out the battery Jun 14 15:16:56 doesn't it only use network if gps is off? Jun 14 15:17:42 Zider, Perhaps, but I want it like this ---> devloper will decide what to use, but not the implentation Jun 14 15:20:51 how reliable is addProximityAlert? Jun 14 15:21:49 Ge0rG, it gives me alert, but Android's weak API design doesnt let developer decide provier to use. Jun 14 15:22:40 Infact the API let the developer choose provider for for location updates. but not proximity notification Jun 14 15:22:47 yes, if only android was more idiotic Jun 14 15:22:52 does it enable GPS as soon as you register? or only if an app is actually asking for gps at the same time? Jun 14 15:23:36 oh, never mind, location provider heh Jun 14 15:23:48 The API says-----> Internally, this method uses both NETWORK_PROVIDER and GPS_PROVIDER. Jun 14 15:23:55 Bizzare API design Jun 14 15:24:07 howso? do you only want network provider? Jun 14 15:24:09 jahid: why? if it is using the providers sanely, you should not care Jun 14 15:24:35 i thought the coarse location stuff did that Jun 14 15:24:36 Ge0rG, I do. Because I want to provide a solution that saves battery for use. Jun 14 15:24:42 I'd uninstall your app immediately if it would keep GPS turned on all the time Jun 14 15:24:54 jahid: 17:22:51 does it enable GPS as soon as you register? or only if an app is actually asking for gps at the same time? Jun 14 15:25:06 if it let you choose, silly developers would try to force GPS on all the time, just in case the user went anywhere near the proximity - because silly developers think their app and only their app is important enough to break the rules Jun 14 15:25:28 Ge0rG, that is the problem. It keeps GPS online always. And its not my app thats turning GPS on, but the API is forcing. Jun 14 15:25:38 Leeds: yeah, developers are silly indeed. everyone should know that only my apps are important enough for permanent gps geofencing! Jun 14 15:25:50 Ge0rG, yes enables GPS as soon as you register Jun 14 15:25:52 jahid: now we are talking. Jun 14 15:26:14 Ge0rG, and on the api there is no way to say which provider to use Jun 14 15:26:14 jahid: have you tested it on different devices? maybe it is a bug? Jun 14 15:26:19 Wait, you're saying I'm not suposed to hog system resources? Jun 14 15:26:23 This is an outrage. Jun 14 15:26:44 Ge0rG, tested on diff devices, but still the API verifies the behavior ----> Internally, this method uses both NETWORK_PROVIDER and GPS_PROVIDER. Jun 14 15:27:12 vexxecon: I bet you can do it on the iPhone - which means Android is fragmented and infringing on design patents if you can't do exactly the same thing Jun 14 15:27:49 Leeds, dude, lets keep legal things for them to decide Jun 14 15:28:34 "In case the screen goes to sleep, checks for proximity alerts happen only once every 4 minutes. This conserves battery life by ensuring that the device isn't perpetually awake." Jun 14 15:28:54 yeah, lets fire up GPS every four minutes. Jun 14 15:29:29 I'd say this implementation renders geofencing apps useless. Jun 14 15:29:53 upsetting. now i have to make my own proximity alert system Jun 14 15:30:36 jahid: did you check if you are not re-reinventing the wheel? Jun 14 15:31:12 like, maybe https://developers.geoloqi.com/features/geofencing Jun 14 15:31:13 Ge0rG, you can check it yourself and suggest me something ---> http://developer.android.com/reference/android/location/LocationManager.html#addProximityAlert(double,%20double,%20float,%20long,%20android.app.PendingIntent) Jun 14 15:32:02 jahid: I'd go digging the implementation of LocationManager, but currently I'm 120% busy with non-android stuff, so I'm putting this on my TODO list Jun 14 15:32:36 Ge0rG, i will try my best, thanks Jun 14 15:32:39 jahid: I am pretty sure you can google up some existing geofencing lib that works around the dumbf*cked android implementation Jun 14 15:32:55 jahid: if not, this is something that should be implemented as a library project :) Jun 14 15:34:11 meh. http://stackoverflow.com/questions/1113606/does-anyone-know-whether-the-android-addproximityalert-on-the-locationmanager-is Jun 14 15:35:59 Leeds: if the intention behind internally forcing the provider choice in addProximityAlert was to prevent developers from doing dumb things, why is its implementation doing dumb things then? Jun 14 15:45:06 Is there any way with multiple-apks to provide different localized versions? Our content per language is about 600MB Jun 14 15:46:35 wow, that's a lot Jun 14 15:46:39 wow, sounds like a lot of voice data Jun 14 15:46:40 theneb, there's a resource apk downloader thing Jun 14 15:46:45 dunno if it'll do per-locale Jun 14 15:46:48 theneb: if you have so large data, you should implement your own system to download them depending on system locale Jun 14 15:47:47 i doubt resource downloader can choose on any variables, i think they have to be always same on all cases for single apk Jun 14 15:49:03 pfn pihhan: yeah already using the large apk downloader Jun 14 15:56:20 how to set default firmware settings? Jun 14 15:57:27 How do i pass my main activity to a subclass? AdMob initiation requires an activity parameter but i cant pass it to sub-class. Jun 14 15:58:05 the idea of "passing to a subclass" doesn't make sense Jun 14 15:58:18 you're not asking the question correctly Jun 14 16:01:42 hey guys, its ok to put a webview in a scrollview yeh? Jun 14 16:02:03 doesnt webview contain its own scroll stuff? Jun 14 16:02:15 how do you scroll in the parent scroller? Jun 14 16:02:30 ah maybe Jun 14 16:02:31 2 secs Jun 14 16:02:47 yes, webview also has scrolling Jun 14 16:02:56 ok Jun 14 16:03:02 amazed anyone noticed form using it Jun 14 16:03:06 but it must scroll weirdly Jun 14 16:04:04 the worst thing ever about webview is that it forgets your last scrolling position, starting at 2.2 or so Jun 14 16:04:15 actuallyi move dit outside the scrollview and it wont scroll Jun 14 16:04:16 it f*cking breaks my rss reader app Jun 14 16:04:27 its goign back in the scrollview Jun 14 16:10:25 wongk passing from subclass then i guess ;P Jun 14 16:11:30 valiolap: maybe you can pastebin the code, so we don't have to try to guess what you're trying to say Jun 14 16:11:41 sure hang on Jun 14 16:15:43 wongk here u go: http://piratepad.net/8duHlB3kNk Jun 14 16:16:22 i create an instance of ImageSlide class on my main activity Jun 14 16:16:30 how do i pass the activity Jun 14 16:16:45 cos the AdView constructor want the activity parameter Jun 14 16:16:48 wants* Jun 14 16:18:46 valiolap: so what is the problem? Jun 14 16:18:52 java Jun 14 16:19:05 i dont know how i pass the activity Jun 14 16:19:13 you are passing the activity Jun 14 16:20:05 umh.. yes it would seems so but. No i'm not Jun 14 16:20:17 cos i dont know what type when i create new imageslide Jun 14 16:20:26 you're going to have to give me more information Jun 14 16:20:34 ImageSlide is = new ImageSlide(ACTIVITY, asd, asd); Jun 14 16:20:37 what goes to ACTIVITY Jun 14 16:20:38 ?? Jun 14 16:20:42 an Activity Jun 14 16:21:00 yes but i dont know how i get my activity Jun 14 16:21:05 how i refer to my activity Jun 14 16:21:11 this? Jun 14 16:21:16 didnt accept Jun 14 16:21:20 i can't read your mind Jun 14 16:21:31 i don't know what your code looks like Jun 14 16:21:34 i'm sorry i explained my problem poorly Jun 14 16:21:39 where are you using ImageSlide? Jun 14 16:21:48 let me paste my main activity to piratepad.. sec Jun 14 16:23:19 i pasted it Jun 14 16:23:45 you are passing a Context, not an Activity Jun 14 16:23:56 i didnt put there anything yet Jun 14 16:24:15 see my lines have 2 parameteres Jun 14 16:24:17 parameters Jun 14 16:24:18 not 3 Jun 14 16:24:21 oic Jun 14 16:24:23 "this" Jun 14 16:24:29 ok i try it again Jun 14 16:24:50 The constructor ImageSlide(WhoppingTrains2Activity, Context, int) is undefined Jun 14 16:24:54 btw, an Activity is a Context Jun 14 16:25:28 what is the order of the parameters in the constructor definition? Jun 14 16:25:34 ops sec wrong order.. Jun 14 16:26:02 wow.. no more erro Jun 14 16:26:08 errors* Jun 14 16:26:14 sorry i should have double-checked Jun 14 16:26:35 i tried "this" earlier but put it in wrong order Jun 14 16:26:39 thanks Jun 14 16:28:15 programming: it's guess and check, essentially Jun 14 16:29:56 if i go to a mobile facebook page in a webview it constantly calls onNewPicture for some reason Jun 14 16:32:40 Hey, I am looking to use my finger to slide between activities with a slide animation included, is this possible, if so, is this a good way to design an app? Jun 14 16:32:51 wongk it shows the ad now. How can i make the ad over-lap the image? What layout is best for this? I want the image centered and the ad to the bottom left corner of the screen Jun 14 16:33:42 Snicers-Work2 I'm working on smth like that at the moment. But i'm sliding thru layouts. Not thru activities. Is that something u're not looking for? Jun 14 16:34:04 Layouts as in views? Jun 14 16:34:07 yes Jun 14 16:34:12 Snicers-Work2: ViewPager Jun 14 16:34:27 valiolap: i can't help you with layering Jun 14 16:34:37 damn Jun 14 16:34:59 absoluthe layout should work i suppose Jun 14 16:35:14 wongk, that ViewPager works to change activities as well as views? Jun 14 16:35:14 what Jun 14 16:35:14 no Jun 14 16:35:51 I am looking to slide activities, not views. Jun 14 16:35:57 valiolap: as a general rule, if you're using AbsoluteLayout, you're doing it wrong Jun 14 16:36:00 Snicers-Work2: you can't Jun 14 16:36:05 alrite Jun 14 16:36:07 Snicers-Work2: use fragments Jun 14 16:36:07 evancharlton Jun 14 16:36:13 Snicers-Work2: you want fragments for this Jun 14 16:36:15 evancharlton, that's a bummer. I will look into fragments again. Jun 14 16:37:33 do you have answer to my question? I have a view which has an image that is centered and maxed in size (keeping the ratio). to this view i'm adding an AdView as well. I want the AdView to show in the bottom left corner of the screen. And i want it to over-lap the image if they "collide". Jun 14 16:37:46 evancharlton u knon which layout is should use? Jun 14 16:37:54 know* Jun 14 16:38:02 How far back do fragments go for OS compatability? Jun 14 16:38:12 api 4 Jun 14 16:38:16 valiolap: I have no idea what problem you're trying to solve, so no. I do know that you shouldn't use AbsoluteLayout. Jun 14 16:38:22 valiolap: use absolute layout :) Jun 14 16:38:28 haha Jun 14 16:38:46 valiolap: a relative layout or frame layout probably Jun 14 16:38:53 i think it's time for a cage match Jun 14 16:39:00 birbeck vs. evancharlton Jun 14 16:39:11 haha, i surrender Jun 14 16:39:34 don't punk out now! ;) Jun 14 16:39:43 hmm.. yes. I think relative layout should work fine Jun 14 16:40:05 or wait.. Jun 14 16:40:37 i once played around with relative layout. It seemed like items couldnt over-lap each-other Jun 14 16:40:45 is this the case? Jun 14 16:41:30 it can, you would position the ad view relative to the parent Jun 14 16:42:07 layout_alignParentBottom="true" layout_alignParentLeft="true" Jun 14 16:43:14 ok thanks i will try that out Jun 14 16:44:22 So fragments are not compatible with Android 2.3 Jun 14 16:44:39 2.3 is atleast api 7 Jun 14 16:44:45 didnt he say level 4? Jun 14 16:44:56 I was looking online and it says API 11 Jun 14 16:45:06 so it should work? Jun 14 16:45:16 Fragments require API Level 11 or greater Jun 14 16:45:21 aha Jun 14 16:45:37 2.1 is api level 7 that i know Jun 14 16:45:44 Mainly for tablet use. Fragments arn't really what I need :\ Jun 14 16:45:53  there is a compat library bringing fragments support down to API 4 Jun 14 16:45:53 Snicers-Work2: you need to use the android compatibility package Jun 14 16:46:13 Ge0rG: the latest version (r7) only supports 2.0+ (api 7) Jun 14 16:46:32 birbeck how do i do layout_alignParent ... code-wise. I'm not setting up my layouts in xml Jun 14 16:47:12 valiolap: i would recommend using xml first of all. you can then set the adview in the container programatically Jun 14 16:47:19 fragments ease targetting of large screen devices, they aren't "for tablets" Jun 14 16:47:32 birbeck i'm not doing that. I'm generating over 300 views in my code Jun 14 16:47:35 valiolap: however, you can do setLayoutParams() on your view from code Jun 14 16:47:51 So if I use the ACP I should be able to have fragments in gingerbread? Jun 14 16:47:58 Snicers-Work2: yes Jun 14 16:48:12 ok Jun 14 16:48:46 Snicers-Work2: right click on your project and select Android Tools > Add support library Jun 14 16:49:00 if you dont already have it, install it from sdk manager Jun 14 16:49:09 birbeck so what do i type to "params": adView.setLayoutParams(params); Jun 14 16:49:19 btw, v7 only has GridLayout Jun 14 16:49:26 v4 has fragments Jun 14 16:49:52 valiolap: not sure off the top of my head Jun 14 16:50:09 Thanks all, I will try this out. Jun 14 16:51:16 birbeck: Jun 14 16:51:18 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(30, 30); Jun 14 16:51:18 yourImageView.setLayoutParams(layoutParams); Jun 14 16:51:33 i found this. But the text doesnt say what the 30, 30 are Jun 14 16:52:37 its width and height obviously but. Jun 14 16:53:17 its top Jun 14 16:55:00 you should use the static properties ALIGN_PARENT_BOTTOM and ALIGN_PARENT_LEFT Jun 14 16:56:34 interesting, the android SDK include swt.jar, yet trying to run "android" complains about not finding swt.jar Jun 14 16:56:48 this is a new phenomenon Jun 14 16:59:24 birbeck even if i use 0,0 or say 50,50 it wont work. It didnt work with the align_parents either Jun 14 16:59:30 the ad wont show Jun 14 16:59:38 and i'm pretty sure its not off-screen Jun 14 17:00:35 try setBottom(RelativeLayout.ALIGN_PARENT_BOTTOM) and setLeft(RelativeLayout.ALIGN_PARENT_LEFT) Jun 14 17:01:00 im not really sure though, i almost never add views programatically Jun 14 17:01:11 i always inflate them Jun 14 17:01:53 do i do this for the adView which is the child Jun 14 17:02:03 or to the relativelayout which is the parent Jun 14 17:02:04 yes Jun 14 17:02:07 the child ok Jun 14 17:03:16 app crashes now Jun 14 17:03:16 ;P Jun 14 17:07:14 birbeck this is the code of the class that generates the view: http://piratepad.net/8duHlB3kNk Jun 14 17:07:26 i commented out the setBottom/setLeft Jun 14 17:07:37 the ad now shows on top left corner and does overlap the image the way it should Jun 14 17:12:19 anyone had weird stuff with loading twitter in a webview Jun 14 17:12:29 the page is 50x too tall lots of space Jun 14 17:13:04 seen it with some pages Jun 14 17:13:44 anyway to restrict it? Jun 14 17:13:53 happens on fb too if i dont turn off js Jun 14 17:13:56 but withtwitte rit needs js Jun 14 17:16:38 Is there no way to tell if an asset exists prior to trying to opening it? Jun 14 17:19:01 birbeck i solved it Jun 14 17:19:05 thanks anyway ;P Jun 14 17:19:46 great Jun 14 17:20:45 http://stackoverflow.com/questions/5191099/how-to-set-relativelayout-layout-params-in-code-not-in-xml Jun 14 17:20:47 this solved it Jun 14 17:26:06 anyone usng google-gson instead of org.json? Jun 14 17:26:21 debating whether it's worth swapping it in Jun 14 17:26:29 funktronic: yeah i use it Jun 14 17:26:36 its great :) Jun 14 17:26:41 faster? Jun 14 17:27:26 introspecting will never be faster Jun 14 17:27:32 but its plenty fast Jun 14 17:28:12 i have not benchmarked it, but i have not noticed any slow down Jun 14 17:28:44 . Jun 14 17:28:53 So I'm going to be getting a new phone for development(and personal use) soon. I'm thinking Droid RAZR Maxx. New phones :3 Jun 14 17:29:16 new phones++ Jun 14 17:30:29 Currently seducing VZW sales rep. Jun 14 17:32:14 for a dev phone i would recommend galaxy nexus or galaxy s 3 Jun 14 17:32:24 for a personal phone, the htc one x is amazing Jun 14 17:32:47 I'm going away from HTC. Good phones, but I don't think I am enjoying them quite as much. Jun 14 17:32:52 i have shouldOverrideUrlLoading working in my WebViewClient just fine, but some testers report that its going to weird urls, see i intercept weird ones and redirect them, which means its not calling shouldOverrideUrlLoading on some devices, does anyone know about this? Jun 14 17:32:57 did you see the video of the guy driving in a nail with the one x? Jun 14 17:32:57 birbeck: and no pentile on the one x Jun 14 17:33:05 each time I read on the One X there is wthe word "bug" Jun 14 17:33:23 oGMo: is that a problem? Jun 14 17:33:45 bubbleguuum: i can honsetly say the htc evo 4g lte (sprints version of the one x) is the best phone ive ever had Jun 14 17:33:48 wongk: they did that with the Nokia Lumia, also. Jun 14 17:33:54 and i have had A LOT of phones Jun 14 17:34:03 hey guys, sorry to interupt, but does anyone know which xml has the animation when the window pops up( to select shortcut, widget, wallpaper etc) or when long pressing a contact? Jun 14 17:34:08 birbeck: pentile isn't the worst thing in the world but i'd choose a phone without it all else being even somewhat close Jun 14 17:35:30 oGMo: ive never cared for samsung displays. the nexus s, galaxy nexus and galaxy s 2 all have crap displays Jun 14 17:35:40 pentile definitely is not a selling point to me Jun 14 17:35:49 birbeck: the S2 LTE looked decent from the pics, but yeah Jun 14 17:36:20 galaxy nexus looks great in pics, but up close its all grainy like looking at recycled paper Jun 14 17:36:41 yeah i made that mistake with the dx2 Jun 14 17:36:53 but i will not buy another motorola device anytime soon Jun 14 17:36:53 i have never owned a droid * Jun 14 17:37:06 the droid1 was great Jun 14 17:37:27 i have had every nexus, every evo, the galaxy s2 and a few others Jun 14 17:37:33 sorry for interrupting guys. If you are familiar with animations, can you please check this thread? http://forum.xda-developers.com/showthread.php?t=1708937 Jun 14 17:37:35 the dx2 would be great if motorola hadn't gunked it up with their UI bs Jun 14 17:37:46 Chris95X8_: on-topicness is not interruption! ;) Jun 14 17:37:56 lol, yeah their ui is pretty horrible Jun 14 17:38:07 getjar is such a piece of shit Jun 14 17:38:18 they want you to upload 128x128 size app icon but the limit is 10KB size Jun 14 17:38:25 Chris95X8_: however cm* stuff isnt' really applicable here Jun 14 17:39:40 Ugh. is the Android model to not allow just storing normal regular files with APKs? Am I forced to use Assets? Jun 14 17:40:43 io site is fail Jun 14 17:40:51 i cannot find the keynote schedules Jun 14 17:42:26 it's right there Jun 14 17:42:33 how is it fail Jun 14 17:42:52 right where? Jun 14 17:42:56 sorry for being so annoying but does anyone know how to perform an action while a button is pressed down? should i use ACTION_DOWN on a specifc area or something directly related to the button Jun 14 17:43:23 isnt there onclick listener? Jun 14 17:43:27 BadDesign: Schedule? Jun 14 17:43:29 birbeck: * Jun 14 17:43:52 schedule only has the sessions Jun 14 17:44:14 does onclick constantly read if it's still being pressed? Jun 14 17:44:37 oh Jun 14 17:44:40 Bakis: no, onclick mean a click was performed Jun 14 17:44:43 i thought it had keynotes too Jun 14 17:44:44 nvm then Jun 14 17:44:53 BTW, (off topic of android, but on topic of working for idiots)developing websites for clients is dumb when you have to change the same minute detail again(for the 5th time), because 'the dates are going the wrong direction!'. Jun 14 17:44:58 *grumbles* Jun 14 17:45:06 yeah i didn't think so. i've been googling around but i can't find any implementations that make too much sense. Jun 14 17:45:27 vexx, ISO 8601 vs US? Jun 14 17:45:58 why listen for click down rather than click up? Jun 14 17:46:32 huh? Jun 14 17:46:34 absolutely stunning how poorly designed the framework for dealing with files is Jun 14 17:46:35 because waiting for release gives me an out if I acciently click "delete" and dont want to do that Jun 14 17:46:39 robb_www: no, they were originally newest to oldest(list of dates), and he wanted them reversed. 4 different times. Jun 14 17:46:48 lol, thats even worse Jun 14 17:46:55 it's annoying. Jun 14 17:46:58 PeteS: its just files, use standard java io Jun 14 17:47:11 people seem to use timer's to do this, but i really don't understand how timers work Jun 14 17:47:21 ive been told that ISO 8601 is "wrong" and "confusing", i tried to convince the client its unambiguous, but they didnt care Jun 14 17:47:22 it's a web app with javascript and php, and he keeps making me change the function from append to prepend. Jun 14 17:47:48 birbeck: I want to include files with my application. there is nowhere I can put them where they will be normal files, unless I have my application copy them from assets to the data folder. that is a horrendous requirement Jun 14 17:47:52 Next time he does it, i'm going to pull out the 5 prior emails and send them back to him. Jun 14 17:49:34 PeteS: you very likely are doing something wrong if that is a requirement. ios and wp are no different, not sure about bb Jun 14 17:49:37 is it possible to change application permission at run time? Jun 14 17:49:51 So does anyone know why shouldOverrideUrlLoading isnt called on some devices? Jun 14 17:50:00 jahid: no Jun 14 17:50:10 birbeck, thanks Jun 14 17:50:13 birbeck: of course, if it's not part of the API I'm "doing something wrong." I don't think that wanting to be able to include a file that I can open as a Java FIle object is some bizarre methodology Jun 14 17:50:41 PeteS: why do you need to include read/write files in your apk? Jun 14 17:52:01 birbeck: I don't need to. I'm going to rearchitect to have them be assets. I just think it's silly and arbitrary to not use existing Java conventions. Assets don't even have a .exists() method. Now I have to deal with handling a filenotfound exception when I used to be able to just quickly check if the file exists. And that's one of several other (minor, but still) headaches Jun 14 17:52:38 normally people know what assets they have. Jun 14 17:52:44 you can get a file handle to an asset and call .exists() Jun 14 17:52:57 but what is so hard about providing a simple method that checks if the asset can be opened and calling that exists() anyway Jun 14 17:53:30 alankila: cause defensive programming is evil Jun 14 17:53:47 alankila: this is a test application that will import XML files for running unit tests. so I should tell the QA team that they need to 100% make sure all of the paths they specify are correct or else the test should just crash inexplicably? Jun 14 17:54:13 I am trying to implement the ViewPager but I am getting this error: ViewPager cannot be resolved to a type Jun 14 17:54:20 birbeck: hm… that's what I'm trying to do, but seems to be impossible. all I can find is getting a "FileDescriptor" for the asset, which seems to not give me much... Jun 14 17:54:25 PeteS: do you have a way to recover if the paths are wrong? the tests would still fail no? Jun 14 17:54:34 Do I need to import a class or something? Jun 14 17:55:16 birbeck: yeah, I mean I'm mostly making a mountain out of a molehill here out of principle. I can handle a not found exception and everything will be fine. I just object to the trivial yet unnecessary hurdle Jun 14 17:56:46 there's a general rule about programming which is that check before operation is useless because it's a race condition Jun 14 17:57:10 don't test if a file is there, just open it, handle error. There's no guarantee that the file still is there by the time you open it after check, at least in normal application programming context. Jun 14 17:58:47 alankila is right, that is how I handle all file operations. Jun 14 17:59:01 alankila: great point, I hadn't thought about that. in practice that doesn't matter for my situation, but generally speaking that makes sense Jun 14 18:02:38 hmm I was wondering Jun 14 18:02:49 was this chat made for some site on web? Jun 14 18:03:06 o.O Jun 14 18:03:19 what chat Jun 14 18:03:26 IRC has existed before the "web" Jun 14 18:03:36 Ravenheart: I know. Jun 14 18:04:06 some sites do create irc chat channel so they have place to chat in Jun 14 18:04:38 http://webchat.freenode.net/ Jun 14 18:07:04 this is a topic channel, the closest thing we have to a website is d.android.com Jun 14 18:07:30 cool ok Jun 14 18:13:37 I got this .apk file that reads the latitude and longitude on a android table w/ ice cream but when I put the same .apk file on a google nexus s the latitude and longitude isn't updating...any idea why? Jun 14 18:18:18 Wow. So I was talking to a VZW rep and she basically stated that I have to wait or buy a phone outright, and I said "Well, thank you. I'm going to shop around and see what deals sprint has. Could you tell me how much Early Termination would be on my phone?" And she said "Thanks for contacting Verizon, goodbye." Jun 14 18:19:24 buy gnex from google + tmobile prepaid monthly Jun 14 18:19:46 wongk-home: hey, could you help me determine what my problem is? Jun 14 18:20:32 nope Jun 14 18:20:36 wongk: tmobile doesn't work out here :( Jun 14 18:20:47 =/ Jun 14 18:21:46 it works in toledo and in ft wayne, but both of them are a case of 'barely'. Jun 14 18:22:02 AT&T works better. If you can believe it. Jun 14 18:22:39 my application is crashing on load, and I get so much system output (without an exception thrown in the debugger), that I can't figure out what my top level error is: http://pastebin.com/RNBqyfNQ ... does anyone know what it is? Jun 14 18:23:14 is it this "06-14 13:18:55.079: I/WiresharkDriver(6741): (JNIDEBUG) Could not find class" ? Jun 14 18:24:24 adb logcat YourPackage:V *:S AndroidRuntime:E Jun 14 18:31:38 :'( Jun 14 18:32:14 There there, everything will be alright. Jun 14 18:37:19 Btw If you're debugging on the terminal I find this colored logcat pretty useful: http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/?utm_source=androidweekly Jun 14 19:02:05 sebastiandeutsch: anythying like that for eclipse? Jun 14 19:13:42 Today I learned my manager accidentally sent our client a message saying "I want to kill (client name)", and thats why he is avoiding talking to him. Jun 14 19:13:44 Hah. Jun 14 19:13:59 ow Jun 14 19:14:07 that wont help company... Jun 14 19:14:25 Especially since the company is scrambling for any work they can get. Jun 14 19:14:39 vexxecon_: time to get new job Jun 14 19:14:49 wow, he's bound to get fired Jun 14 19:15:18 my tips, THINK, don't TYPE what you feel like saying. Jun 14 19:15:22 or in least use notepad. Jun 14 19:15:23 XXCoder: I have been looking. wongk: Nope, he's the only one bringing in money, so getting rid of him is getting rid of the company. Jun 14 19:15:47 wow, your company has all kinds of problems :P Jun 14 19:15:53 oh yeah. Jun 14 19:16:02 Hence why I'm trying to find another job developing. Jun 14 19:16:24 good luck Jun 14 19:16:32 They literally own everything I do in my spare time, so I can't even write a game and put it up for a buck and make money. Jun 14 19:16:47 f' that Jun 14 19:16:49 :( Jun 14 19:17:06 how can they own something you do in your spare time? Jun 14 19:17:20 because he signed a peice of paper agreeing to it Jun 14 19:17:23 Zider: Noncompete/IP contract. Jun 14 19:17:36 that sucks.. Jun 14 19:17:39 indeed Jun 14 19:17:44 pardon my french Jun 14 19:18:12 bummer. why are people not reading the app description, and then ask for refunds?! Jun 14 19:18:23 It was asked that we be allowed to do freelancing in our spare time and give like 10% to the company as part of that, and the technology director said 'no, we don't want them realizing they can make better money on their own.' Jun 14 19:19:05 hehe Jun 14 19:19:28 It's bad when the company knows they're treating their employees badly. Jun 14 19:19:40 yeah Jun 14 19:20:04 the good news is, there are a boatload of dev shops that treat their people infinitely better Jun 14 19:20:04 Jun 14 19:20:32 I'm not qualified for them =/ Jun 14 19:20:40 oh Jun 14 19:20:47 work on that? :P Jun 14 19:21:01 I only have a certificate for my knowlege. I've got 1 year of actual experience in a job for this. Jun 14 19:21:33 Going for my java cert soon, and hopefully that will help me get boosted into a better paying job elsewhere. Jun 14 19:22:04 no degree, then? Jun 14 19:22:07 Nope. Jun 14 19:22:16 =/ Jun 14 19:22:18 I was actually hired in as a 'database programmer' Jun 14 19:22:25 Whatever that means. Jun 14 19:22:55 what is a "java cert" Jun 14 19:22:58 friggin zsh doesn't let me do something like adb logcat MyTag *:S…it says "no matches found: *:S" i have to switch to bash if i want filtering Jun 14 19:23:06 Java Certification Jun 14 19:23:11 yes i got that Jun 14 19:23:12 what is it Jun 14 19:23:39 http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=402&p_nl=JJAV&p_org_id=1001&lang=US Jun 14 19:23:50 basically says that I know java and can develop in it. Jun 14 19:24:09 imo, tha'ts worth nothing Jun 14 19:24:16 a good dev can pick up a language VERY quickly Jun 14 19:24:48 I've got quite a few languages under my belt, but no real way of showing it. Jun 14 19:25:10 vexxecon_why not? post code on github or whatever Jun 14 19:25:16 Java, Objective-C, C#, Python, Ruby, etc. Jun 14 19:25:29 a certification shows a million times less than a single class or script shows Jun 14 19:25:46 I don't have anything to post. I can code things if people give them to me, but I'm not good at just making things. Jun 14 19:26:07 The only thing I'm working on is a Web API generator in PHP, that is no where near anything spectacular Jun 14 19:26:23 but again, languages mean very little Jun 14 19:26:33 you can pick up a language in days Jun 14 19:26:37 if not hours Jun 14 19:26:53 You should see some of the people that work here... Jun 14 19:27:06 [15:24:15] a good dev can pick up a language VERY quickly Jun 14 19:27:11 emphasis on "good dev" :) Jun 14 19:27:14 canadiancow|work: libraries is harder than language Jun 14 19:27:23 yeah languages dont mean jack Jun 14 19:27:25 XXCoder, sure Jun 14 19:27:27 We had a person who had a degree of some sort in programming, who couldn't understand why javascript wasn't running php code Jun 14 19:27:28 APIs are whats hard Jun 14 19:27:30 but still fairly trivial Jun 14 19:27:34 you can learn objective c in two days Jun 14 19:27:35 I learned c# quickly enough to finish convertor in few days Jun 14 19:27:48 other hard aspect: meta-programming Jun 14 19:27:48 but knowing the iOS API and UIKit takes time Jun 14 19:27:56 like android's manfest and stuff Jun 14 19:27:58 what you need is the ability to look at a problem and design a good solution to solve it Jun 14 19:28:26 if you need a stubbed out class from an archtiect for you to do your job, you're not good Jun 14 19:28:42 if you can take a generic problem and build a GOOD solution, then you're good Jun 14 19:29:31 I can do that. I just don't know where to start. That's my issue. Jun 14 19:29:50 then you can't do that... Jun 14 19:30:15 where to start when you have a problem or where to start before you have a problem? if you dont have a problem theres no need to start…unless you have a spec…in which case you quickly have problems Jun 14 19:30:29 spec == problem in this sense Jun 14 19:30:34 you have a high level task you're trying to solve Jun 14 19:30:39 if you can't solve high level tasks Jun 14 19:30:56 and need someone to break it down into "write a method that counts the vowels in a string array" before you can do your work Jun 14 19:30:59 then... i wouldnt hire you :) Jun 14 19:31:01 luxurymode: I don't have a problem is the problem. Between work and not having anything outside of work,I don't have time to find a problem, and thus don't know where to start. Jun 14 19:33:29 just write something outside of work and don't tell them Jun 14 19:33:38 seriously, do you care? Jun 14 19:34:18 No. I'm writing things outside of work in my spare time. But that is very little. Jun 14 19:34:45 vexxecon_: i wouldn't feel so bad about it. for a long time i worked on other peoples' software and not my own. but its good to be coding most of the time :) anyhow find some problem you would like to solve in your daily routine. the more interesting your daily life is, the more likely you will find an area needing fixing. you won't come up with interesting ideas if your life is mostly boring Jun 14 19:34:59 but if you are involved in lots of activities, the ideas will come Jun 14 19:35:18 how does one make clicking on a button force a view to redraw? I tried invalidate() but it doesn't seem to be working, but when I navigate away from teh view/fragment and come back, it redraws correctly Jun 14 19:35:54 if anyone is looking for a project, i've got some open source work that really needs done that i don't have time for :P Jun 14 19:36:06 it's very non-trivial, though Jun 14 19:36:31 if I had the time lol Jun 14 19:36:37 wongk: so you have an idea, next build a community to build the idea. thats part of execution. idea without execution = fail :) Jun 14 19:36:46 I have oceans of time but lousy skill Jun 14 19:36:47 there is a community Jun 14 19:36:53 i'm part of it Jun 14 19:36:58 it's not my idea, btw Jun 14 19:38:42 wongk: what's the project? Jun 14 19:39:01 finish Exchange ActiveSync support in k-9 mail Jun 14 19:39:15 it's about 70% Jun 14 19:43:57 lol no tahts probably too advanced for me right now Jun 14 19:51:15 it's by no means a beginner project Jun 14 19:56:29 Does anyone know why I get this error? "ViewPager cannot be resolved to a type" happens on this line: Jun 14 19:56:33 ViewPager mViewPager; Jun 14 19:56:58 did you import it? Jun 14 19:58:11 No, I don't know the structure of the import, do you? Jun 14 19:58:14 need to import Jun 14 19:58:36 is it in eclipse? it should have icon by that line Jun 14 19:58:57 click it and it should have "add import XXXX.ViewPager" Jun 14 19:59:04 It is eclipse, import is not an option. Jun 14 19:59:08 import android.support.v4.view.ViewPager; Jun 14 19:59:19 that's like the 2nd thing you learn in java :P Jun 14 19:59:21 umm yeah import is an option.. lol Jun 14 19:59:29 wongk: exactly Jun 14 19:59:32 Tried that, this is the error on that import: The import android.support.v4.view.ViewPager cannot be resolved Jun 14 19:59:43 then you aren't using the support library Jun 14 19:59:57 uhg Jun 14 20:00:05 I right clicked and added it. Jun 14 20:00:42 Let me do it again, I just ran a bunch of SDK updates. Jun 14 20:00:50 gotta run Jun 14 20:01:07 Thanks wongk Jun 14 20:01:37 I guess it was not part of java default apis Jun 14 20:01:43 Yeah, it was just that I was out of date, support is installing now. Jun 14 20:01:48 library... cool :) Jun 14 20:02:14 I know of imports and all that, everything is fine now. Jun 14 20:02:25 I need to make library out of some stuff to make lwp easier Jun 14 20:15:06 silly question time. Is there a simple way to achieve a 'perspective' transformation on a view? the underlying goal is to do a 3-d rotating animation on an arbitrary view. Jun 14 20:15:40 *sigh* isn't there a legal means against spammers who scrap android market for developer addresses? Jun 14 20:18:37 Ge0rG: yeah, google really fucked that up bigtime. what a bunch of asshats Jun 14 20:19:22 i get more shit now because they just have a plain mailto link on my app's page Jun 14 20:20:09 i have two galaxy nexuses Jun 14 20:20:16 in the play store, one of them has "Download" buttons Jun 14 20:20:22 the other has "Install" buttons Jun 14 20:20:45 Does anyone use ViewPagerIndicator Jun 14 20:20:45 , I can't create a project off it's sample source for some reason... Jun 14 20:21:02 canadiancow|work: and neither work unless you first click download on one then install on the other, in order? ;) Jun 14 20:21:16 (but yes, goofy) Jun 14 20:21:17 lol Jun 14 20:29:13 ITYM Galaxy Nexi :) Jun 14 20:31:45 when i use the serachbox for my Listview, i get everytime the same result. For Example: Car, Flower, Hate, Love, Water ... When I type f or h or l etc. the result is Car. Activity: http://pastebin.com/Qb6iiHFw DatabaseHandler: http://pastebin.com/F06c0CGk Jun 14 20:35:18 does anyone know if OBB files are read-write or read-only? Jun 14 20:35:27 readonly Jun 14 20:35:32 ok Jun 14 20:35:37 darn Jun 14 20:35:53 you want to write data, you've got a perfectly good place to do it :) Jun 14 20:36:04 privately? Jun 14 20:36:08 of coure Jun 14 20:36:10 *course Jun 14 20:36:13 :| Jun 14 20:36:15 cool Jun 14 20:36:20 your app's normal data dir Jun 14 20:36:39 how much space do we get there? Jun 14 20:36:49 dependson the device? Jun 14 20:37:39 yes Jun 14 20:37:43 i may potentially need several GB Jun 14 20:37:54 ooof Jun 14 20:37:56 yeah Jun 14 20:38:43 so i'm looking for a reasonably simple way to ut it on the sdcard and keep it private Jun 14 20:38:49 you can try external storage but remember that there's no guarantee that there's that much room there, either Jun 14 20:38:57 yeah Jun 14 20:38:58 and if you do that, you will need to encrypt to keep it private Jun 14 20:39:10 which is not a completely sucky way to go, but irritating and introduces some overhead Jun 14 20:39:22 ok, so i need to manage that - i can do that Jun 14 20:39:32 that's totally reasonable, imo Jun 14 20:39:45 it doesn't have to be uber-secure Jun 14 20:40:13 Hey, I am wondering if there is an easier way of doing HTTP requests then actually reading them in a input buffer stream? Is it me or does it seem that thats the way everyone is doing it and yet it seems too low level. Jun 14 20:40:19 just trying to keep the honest people honest and be a thorn in the side of the jackwagon that wants to teal stuff :) Jun 14 20:40:26 *steal Jun 14 20:41:21 gowie: you can abstract it Jun 14 20:41:41 it's kind of app-specific what you want to do with the data, no? Jun 14 20:42:10 Hello, anyone here use aapt very much? could use some help with it Jun 14 20:42:54 Yeah, but is there really no way of just getting the data without using an input stream and what not? Like I understand its only a few lines of code, nobody has built a wrapper around that? Jun 14 20:43:53 gowie: if you use the apache http client shit, there's EntityUtil which has some slurp methods Jun 14 20:44:15 EntityUtils.toString(req) Jun 14 20:44:18 any google dev here? Jun 14 20:44:28 who knows PowerManagerService.java specifically Jun 14 20:44:30 sorry, responseEntity, not request Jun 14 20:44:53 gowie: if you use java.net, then I think you are strongly encouraged to work with streams, and not slurp to byte[] or whatever Jun 14 20:45:18 anyone know of a good guide for aapt? I can't find one Jun 14 20:46:44 alankila slurp methods? Never heard that term before, mind explaining it? Jun 14 20:47:32 when i use the serachbox for my Listview, i get everytime the same result. For Example: Car, Flower, Hate, Love, Water ... When I type f or h or l etc. the result is Car. Activity: http://pastebin.com/Qb6iiHFw DatabaseHandler: http://pastebin.com/F06c0CGk Jun 14 20:47:39 gowie: slurp is the process of sucking liquid on a straw until the glass is empty. You get the slurping sound. Jun 14 20:47:56 gowie: therefore, by abstract analogy, slurping means reading from stream until the stream ends Jun 14 20:48:53 alankila Ah you make yoke, I get. Jun 14 20:49:08 haha Jun 14 20:49:20 sukramTM: SearchView might do more of the heavy lifting? Jun 14 20:50:23 sukramTM: but anyway I don't instantly see why this code doesn't work Jun 14 20:50:38 sukramTM: guess: you may need to use the CharSequence s passed as argument to TextWatcher Jun 14 20:51:16 So whats the reason for strongly encouraging the byte streams? And I know that it is also recommended to read them into an array of a size that you define (At least I think I read that?), but what if you dont know how big the response is going to be? Like if im reading in JSON and the array of json objects could be hundreds or only one. Jun 14 20:51:45 gowie: so what? the beauty of stream is that it doesn't matter, you just read and process and eventually the stream ends. Jun 14 20:52:10 gowie: streams allow constant-memory algorithms to be written, if you don't need to retain the data from the stream but can for instance read it and then output it to another stream Jun 14 20:55:10 Oh so you're saying you can instantiate objects with the data from the request and then the raw data is never even allocated into memory? Jun 14 20:56:24 is there any way to get correct Indic scripts (including correct joining of letters) in a TextView in ICS? Jun 14 20:59:36 Almost certainly not. I didn't think Android supported Indic languages yet. Jun 14 21:00:02 alankila: sorry, dont understand what you mean with "passed as argument" For testing i build in a toast after line 46 and it show me the cahrs wich i typed. Jun 14 21:00:37 what is the procedure to refer to a custom Animation class from within xml? I'm missing some step here :-) Jun 14 21:01:12 sukramTM: okay. Well, IDK why your scheme doesn't work then. Jun 14 21:01:40 you use a substring match with indexOf and it looks correct to me, so if that doesn't work I'm pretty confused Jun 14 21:02:22 I am too Jun 14 21:02:25 How do I forward declare an id like ListActivity does with @android:id/list? I want to specify an id for future declaration by a layout Jun 14 21:02:28 kbs, what do you mean? are you trying to set an animation on a view in an XML layout? Jun 14 21:03:20 dmalice: I've subclassed android.view.animation.Animation, and now I'd like to load/use that animation from an xml AnimationSet Jun 14 21:03:58 ie, in xml I'd like to define a new animation that has a .... Jun 14 21:04:18 I can't figure out how to refer to my new subclass within that xml animation set Jun 14 21:04:50 com.package.subpackage.etc.class Jun 14 21:05:08 yeah -- that one throws a runtime exception, it seems. Jun 14 21:05:15 let me double-check Jun 14 21:05:49 java.lang.RuntimeException: Unknown animation name: com.thormor.android.animation.CPerspectiveAnimation Jun 14 21:06:10 that happens when the activity loads, and I use the class name as above. That's an interesting error, hm Jun 14 21:06:40 why not just do it in java then Jun 14 21:06:56 true, but I'd prefer to do it in xml if at all possible Jun 14 21:07:48 oh, it doesn't seem possible. Animation utils has hardcoded the animation names, huh Jun 14 21:08:39 ah well. that's unfortunate Jun 14 21:09:09 yeah, i've dealt with animations pretty much exclusively by loading them in java Jun 14 21:09:43 the xml is nice, simpler to swap 'em in and out. but, oh well. Jun 14 21:10:51 I assume what you're trying to do with your subclass can't be accomplished with a combination of existing built in animations in an animation set? Jun 14 21:11:20 dmalice: I'd love to see if that's possible. I want a perspective transform on the view, but I can't seem to achieve it with the scale transform Jun 14 21:11:36 the desired effect is a 3-d rotate, with the axis on the top of the screen Jun 14 21:12:55 I can crudely get close by animating the x-scale to 1.5 and the y-scale to 0, and setting the ypivot to 0 Jun 14 21:13:00 but it doesn't look correct. Jun 14 21:13:51 I do a "rotate" by doing a sort of... Jun 14 21:13:56 collapse to middle then regrow Jun 14 21:14:11 right -- that's the same thing I've tried. Jun 14 21:14:25 (I collapse to the top, as my axis of rotation is on the top) Jun 14 21:15:07 however, the x-scale is not correct -- it should not scale uniformly along the y direction -- it should scale not at all close to the top, but a lot towards the bottom Jun 14 21:15:43 right Jun 14 21:15:43 so, i'm now down in the weeds trying to use a perspective transform with matrix.setPolyToPoly Jun 14 21:16:50 o you guys have any suggestions on how to do pull to refresh aside from the two github offerings that come up with a google search? Jun 14 21:16:53 yeah, the perspective thing adds quite a wrench Jun 14 21:16:54 *do Jun 14 21:19:00 why not use one of those offerings? Jun 14 21:22:34 cool. the perspective looks much better, though I can't take advantage of the constants defined in xml, but that's manageable Jun 14 21:22:49 what I originally wanted to do was slap an EditText in it and use it to create and name a new list element, but things got really hairy because the scrolling would go all wonky whenever the edittext was introduced. Probably because of some focusing stuff.. Jun 14 21:24:05 JakeWharton: yo Jun 14 21:24:14 hey Jun 14 21:24:18 about to go into an interview Jun 14 21:24:19 what's up? Jun 14 21:24:23 nothing Jun 14 21:24:32 just bugging you Jun 14 21:25:28 I am trying to include the ViewPagerIndicator Jun 14 21:25:28 library, does anyone know how to do this. It is a third party lib. Jun 14 21:26:01 Snicers-Work2: I know how Jun 14 21:26:20 JakeWharton might know how as well Jun 14 21:26:37 create a new project over its sources Jun 14 21:26:47 add it to yours under the android thingy in Eclipse project whatever Jun 14 21:27:05 android thingy? Jun 14 21:27:15 assuming you have the stomach for Eclipse Jun 14 21:27:23 I am stomaching it. Jun 14 21:33:52 having trouble comparing two strings, one is a value pulled from assets/sha.txt and the other is created at runtime, printing the two shows they are identical, but the app results otherwise, I'm using if (shaVal.equals(sb.toString())) Jun 14 21:34:19 have you checked for spaces? Jun 14 21:34:31 I don't believe there is one but I'll double check Jun 14 21:34:54 Captainkrtek: pastebin your code Jun 14 21:35:33 http://paste.ubuntu.com/1041496/ Jun 14 21:36:17 and the contents of assets/sha.txt is http://paste.ubuntu.com/1041498/ Jun 14 21:36:47 What file determines which values xml you use Jun 14 21:36:56 When I do an adb push onto a device, I get error read-only file system Jun 14 21:37:00 *emulator not device Jun 14 21:37:12 This ViewPageIndicator has 4 additional xml files that the .java files can't see. Jun 14 21:37:16 lol, everybody says my code have to work but it doesnt :-( Jun 14 21:37:53 Captainkrtek if you iterate over both strings and print the codepoints at each index, providing they match, .equals should return true, if they dont match, you will see why Jun 14 21:38:26 ahh there is some whitespace Jun 14 21:38:31 tada ;) Jun 14 21:38:36 I did this: resultant = ("\nTrue : " + "\nFound:\n" + sb.toString() + "|"+ "\nHave:\n" + shaVal + "|"); Jun 14 21:38:48 yer i sometimes wrap with brackets like that Jun 14 21:38:52 added some bars to the end of it, and get the bar for the found one to be all the way over Jun 14 21:38:59 thanks :) Jun 14 21:39:09 when i use the serachbox for my Listview, i get everytime the same result. For Example: Car, Flower, Hate, Love, Water ... When I type f or h or l etc. the result is Car. Activity: http://pastebin.com/Qb6iiHFw DatabaseHandler: http://pastebin.com/F06c0CGk Jun 14 21:39:58 does anyone use quickactions? (https://github.com/lorensiuswlt/NewQuickAction) Jun 14 21:40:25 I'm using that on a listview row and the popup shows up too far below therow Jun 14 21:40:28 the row* Jun 14 21:40:43 it works fine when i use it in other non-listview places Jun 14 21:44:42 my machine has an infinite loop Jun 14 21:44:49 the input never reaches the output Jun 14 21:46:11 quickactions, heh Jun 14 21:46:33 did these join the home screen on the march out ? Jun 14 21:50:55 Has anyone here used ViewPageIndicator? Jun 14 21:51:21 Hi. I'm using an app that create and uses a db. Do I need to add some permission on manifest.xml? Jun 14 21:52:10 of course not; it's your own app's private data Jun 14 21:55:08 ctate: it wont create the table Jun 14 21:55:40 what related messages do you see in the log? Jun 14 21:55:50 06-14 23:49:51.560: E/AndroidRuntime(25226): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.deraco.rubrica/com.deraco.rubrica.RubricaActivity}: android.database.sqlite.SQLiteException: no such table: contatto: , while compiling: SELECT _id, nome, cognome, telefono, email FROM contatto Jun 14 21:57:51 that isn't trying to create the db; that's trying to execute a query against an already-created one Jun 14 21:58:00 where in your code do you create the db and its tables? Jun 14 21:59:03 http://ideone.com/eab9Y Jun 14 22:01:14 Can an listview's scroll handling code interfere with gesture detection? Jun 14 22:01:35 and what logging do you see when it tries to create the table? Jun 14 22:02:03 ... oh, hm. apparently you've also pasted a bunch of compile failure messages. so this code doesn't actually even build? Jun 14 22:02:50 it builds but crashes Jun 14 22:03:08 http://ideone.com/fTnA5 Jun 14 22:06:01 under: this paste shows only the code that tries to do a query Jun 14 22:06:14 is there no logging about first creating the db and the table(s) ? Jun 14 22:06:22 no Jun 14 22:07:03 * ctate | SQLiteException: no such table: contatto Jun 14 22:07:11 did your code to create the table even *run*? Jun 14 22:08:44 it should create the table ( onCreate() ) Jun 14 22:13:07 ctate: I cleared the data, now seems works. Jun 14 22:13:29 aha, sounds like you had a leftover db file with a different schema or something Jun 14 22:14:04 dunno what i did :D Jun 14 22:14:12 ty btw Jun 14 22:17:31 I copied this example of a code to do a simple message box that offers a yes and no...in other languages this is all wrapped up in a single user friendly function, does have any simple, less powerful and less complex message box options? Jun 14 22:17:49 for a simple yes no question Jun 14 22:23:13 ok, listview is definitely interfering with gestures Jun 14 22:23:33 if I set the listview rows with empty content, the swipe works fine Jun 14 22:23:43 once there's content, it doesn't work Jun 14 22:23:51 what gestures? Jun 14 22:24:01 left to right, right to left Jun 14 22:24:05 sure Jun 14 22:24:11 but who's handling the gestures? Jun 14 22:24:16 a child of listview? a parent? Jun 14 22:24:20 a sibling? Jun 14 22:24:36 no, listview onTouch listener delgates to simpleOnGestureListener Jun 14 22:24:44 ah yeah that won't work Jun 14 22:25:02 romainguy: any workaround available? Jun 14 22:25:20 it would be much easier to do it in a parent of listview Jun 14 22:25:28 and properly implement onInterceptTouchEvent Jun 14 22:26:09 is that a view method? Jun 14 22:26:16 viewgroup Jun 14 22:26:35 * AlCapwn reads Jun 14 22:27:44 romainguy: while you're here, do you know why if I have a listview and an edittext below it, the edittext stops receiving TAB events on the stock vk? Jun 14 22:28:02 without the listview, the tab event is received fine, via an onKeylistener Jun 14 22:28:33 tab events are received fine for some 3rd party vks Jun 14 22:40:51 i need someone with an sgs2 to test my app... Jun 14 22:42:00 Hi Jug6ernaut , I've a SGS2 Jun 14 22:42:15 under can you test my app and see if it works on ur sgs2? Jun 14 22:42:29 what does it do? Jun 14 22:42:37 https://play.google.com/store/apps/details?id=jug6ernaut.utl.flnotifier Jun 14 22:42:45 I'm getting some really weird behaviour on an animation I'm doing on a listview. Half the listview is not drawn after it completes - if I go to another app or something and then come back in, it's drawn correctly (in fact it's drawn correctly on the app preview task list thing) Jun 14 22:42:53 lol :) Jun 14 22:42:59 uses the camera led for notification, all i need you to do is see if the led flashes lol Jun 14 22:43:05 ok Jun 14 22:43:45 I'm happy to help you, I remember you helped me ;) Jun 14 22:43:53 I have a very simple example project which demonstrates this behaviour, hold on Jun 14 22:43:57 did i? Jun 14 22:44:01 * Jug6ernaut 's memory is so bad Jun 14 22:44:09 heheh, you did! Jun 14 22:44:19 woho Jun 14 22:44:20 so, have I to download the app from playstore? Jun 14 22:44:29 that would be easiest way yea Jun 14 22:44:30 hm this only seems to happen with the ListView is drawn on top of some other types of views Jun 14 22:44:34 okay Jun 14 22:44:46 romainguy: know much about animations? :) Jun 14 22:44:53 he knows all Jun 14 22:44:54 yes Jun 14 22:45:55 any idea what I could be doing wrong? http://www.whatsbeef.net/wabz/AnimationTest.tar.gz Jun 14 22:46:03 the button is bugged, Jug6ernaut Jun 14 22:46:13 wha? Jun 14 22:46:31 I mean, the text over the button goes out screen Jun 14 22:46:43 can u screenshot it? Jun 14 22:46:46 sure Jun 14 22:47:25 did u try the flashing? Jun 14 22:47:36 https://p.twimg.com/AvYoPB4CQAAIFCk.png:large Jun 14 22:47:39 not yet Jun 14 22:48:01 o bla Jun 14 22:49:37 romainguy: if I remove the rotationY objectAnimator, it doesn't skip drawing half the list (actually just seems to translate the text, not the whole view, but ok) Jun 14 22:50:14 paste code somewhere please Jun 14 22:50:23 under all u gotta do is go to defaults->test flash pattern Jun 14 22:50:55 romainguy: Here's a whole sample project which I made as simple as possible to demonstrate: http://www.whatsbeef.net/wabz/AnimationTest.tar.gz Jun 14 22:51:04 please paste the code somewhere Jun 14 22:51:08 works Jun 14 22:51:10 k Jun 14 22:52:21 under are u on ics? Jun 14 22:52:49 4.0.4 Jun 14 22:52:56 :\ Jun 14 22:53:09 wut Jun 14 22:53:28 * Jug6ernaut got review that it didnt work on sgs2 ics Jun 14 22:54:06 how is possible? Jun 14 22:54:16 1/2 of my reviews are 5stars saying its awsome, 1/2 half is how it doesnt work haha Jun 14 22:54:18 very Jun 14 22:54:38 to use the flashlight gotta use the camera api, and its...very different from device to device :\ Jun 14 22:55:02 it's hard yes.. Jun 14 22:55:51 romainguy: http://pastebin.com/WvUdZANK => http://imgur.com/a/b8TVa (second screenshot is after pressing home button and then holding it, clicking the app) Jun 14 23:00:01 I put a videoview in because it seems to make the problem happen - remove it and the listview is fine. But it happens with other views (custom) other than videoview as well (but not for example, imageview) Jun 14 23:00:24 how do I add a new button to a layout? Jun 14 23:00:42 I tried addContentView(ex1, Restaurant.layout.main); Jun 14 23:00:47 but the types are wrong Jun 14 23:01:08 the exact line was this: addContentView(ex1, R.layout.main); Jun 14 23:01:22 ex1 was the RadioButton Jun 14 23:02:48 are you sure you want addContentView? Jun 14 23:02:53 wabz ☢ no Jun 14 23:03:01 I'm just starting out with android dev Jun 14 23:03:05 I don't know what to use Jun 14 23:03:22 all I know is I am looking for a replacement for the deprecated addView() method Jun 14 23:03:39 oh. You probably want to addView on one of your existing views Jun 14 23:04:02 addView doesn't exist in my android SDK version Jun 14 23:04:14 Android version 8 is my target Jun 14 23:04:18 I think that's android 2.2 Jun 14 23:04:53 http://developer.android.com/reference/android/view/ViewGroup.html#addView(android.view.View) Since: API Level 1 Jun 14 23:05:48 so if you have a linearlayout as the top level layout for example, then you'll want to LinearLayout v = findViewById(R.id.whateverthatlayoutis); v.addView(button); Jun 14 23:06:19 you'll probably want a bit more than that - with layout params etc Jun 14 23:07:39 some may be interested in this (linaro imrpovements to ics) http://www.infoq.com/news/2012/06/Performance-Android-ICS Jun 14 23:07:44 oh Jun 14 23:07:47 is there a simple way to beep in android? Jun 14 23:07:57 ^G! Jun 14 23:08:15 g00s: I know there's some cm9 builds by linaro... Jun 14 23:08:23 "InfoQ: Have you heard anything from Google on this? BR: Outside of a Google engineer giving a +1 of a related post on Google Plus, no." Jun 14 23:08:24 lol Jun 14 23:08:44 hahaah Jun 14 23:11:51 they made optimizations in a few places, but the one that cracks me up is to bionic string function. not optimizing a heavily used function like that seems pretty daft; and hilarious we read blogs about optimizing weird stuff like view hierarchy depths Jun 14 23:12:18 argh Jun 14 23:12:24 im properly stressed Jun 14 23:12:29 3 hrs til deadline Jun 14 23:12:33 and my json has stopped working Jun 14 23:12:38 2 minutes, to midnight ! Jun 14 23:12:40 just suddenly it wont parse an array with only one element Jun 14 23:13:20 g00s: string functions are rarely involved when drawing the view tree :) Jun 14 23:13:30 hehe Jun 14 23:13:32 im literally just gonna have to skip that data Jun 14 23:13:37 makes no sense Jun 14 23:13:44 wabz ☢ where is the TableLayout? Jun 14 23:13:47 i'm just saying, amdahl's law romainguy :) Jun 14 23:14:00 what do I need to import to get that? Jun 14 23:14:14 time to sleep, bye! Jun 14 23:14:17 g00s: riight :) Jun 14 23:14:37 gaz`: what does amdahl's law have to do with this? Jun 14 23:17:19 dont ask me im having a heart attack Jun 14 23:19:25 http://pastebin.com/3yr6dYAp Jun 14 23:19:31 can anyone glance at this and see if they see an issue Jun 14 23:19:48 my code for parsing the json was working fine until today when it hit some json with only one element i nan array Jun 14 23:19:53 and now its crashing at that point Jun 14 23:19:56 weirdly... Jun 14 23:20:05 and im panicing like mad trying to finsih this.. Jun 14 23:20:14 opinions on what ad provider to use ? Jun 14 23:20:23 none Jun 14 23:21:43 * gaz` prays someone can see something Jun 14 23:23:17 gaz`: at least include a stack trace of the crash.... Jun 14 23:23:25 when i use the serachbox for my Listview, i get everytime the same result. For Example: Car, Flower, Hate, Love, Water ... When I type f or h or l etc. the result is Car. Activity: http://pastebin.com/Qb6iiHFw DatabaseHandler: http://pastebin.com/F06c0CGk Jun 14 23:23:55 gaz`: it's right there in front of you Jun 14 23:23:57 it got an array Jun 14 23:23:59 wanted an object Jun 14 23:24:14 gaz`: at least read the error message next time Jun 14 23:24:17 I have Views which are Observers. How do I get them to deleteObserver themselves when the parent Activity is finished? Jun 14 23:24:21 dude Jun 14 23:24:31 arghh Jun 14 23:24:45 i dont get it!! Jun 14 23:24:53 gaz`: object != array != object Jun 14 23:25:20 you got an array. You wrote your code expecting an object. Jun 14 23:25:24 I don't know how to be more clear. Jun 14 23:25:24 != primitives Jun 14 23:25:39 why has it worked perfectly for weeks tho Jun 14 23:25:40 until now Jun 14 23:25:54 because you were getting an object! Jun 14 23:25:56 you now get an array! Jun 14 23:26:00 which is not an object! Jun 14 23:26:01 hmmm Jun 14 23:26:08 but the json is the same Jun 14 23:26:09 isnt it Jun 14 23:26:10 no it's not! Jun 14 23:26:14 it's an array Jun 14 23:26:16 looks same to me Jun 14 23:26:16 which is not an object Jun 14 23:26:20 which is what you were getting before Jun 14 23:26:37 howi is that json any different Jun 14 23:26:40 apart from more entries Jun 14 23:26:51 please find me "footerDetailsEntry" in the new json structure Jun 14 23:27:01 sorry Jun 14 23:27:06 "footer_details" Jun 14 23:27:11 I've seen JSON parsers that will give ArrayLists of Integers but arrays of doubles and floats... Jun 14 23:27:24 evancharlton find it how? i canse ei on my screne if thats what u mean Jun 14 23:27:28 see* Jun 14 23:27:31 gaz`: you're going to kill me Jun 14 23:27:39 man im just very confused Jun 14 23:27:41 and i been coding for 17 hrs Jun 14 23:27:43 I can tell Jun 14 23:27:43 and i got to 6 more Jun 14 23:27:54 i just need to work out why this isnt happening Jun 14 23:27:58 I'm telling you Jun 14 23:28:04 before i grabbed an array looped thru and got each object Jun 14 23:28:08 who codes for 24 hours Jun 14 23:28:12 now iim getting an array and trying to grab its only object Jun 14 23:28:15 whats the diff? Jun 14 23:28:22 you'll end up writing more bugs than features Jun 14 23:28:28 I've coded for 30+ before... but not since college ;) Jun 14 23:28:34 i know :( its these bstrds i work for Jun 14 23:28:56 they wont even pay for 65 days Jun 14 23:28:58 anyway Jun 14 23:29:01 pushing yourself like that almost always leads to lower quality software Jun 14 23:29:17 or rework Jun 14 23:29:27 both of which are expensive Jun 14 23:29:27 anyone try took hook up an accessibility service to the status bar notifications? Thought I had everything going, but can't get my method to activate on a notification Jun 14 23:29:30 usually it leads to read-only code Jun 14 23:29:42 also expensive Jun 14 23:29:43 which you will run into later when maintaining your codebase Jun 14 23:29:48 evancharlton so footers_detail is an array yes, you are syaing it contains an array in this case? Jun 14 23:29:56 and not an object? Jun 14 23:30:05 work harder to make a deadline -> deadline happens -> spend a week undoing the bullshit you did ==== break even from if you didn't have the deadline in the first place Jun 14 23:30:19 exactly Jun 14 23:30:28 wongk-home it does, im completely screwed im leaving this company directly after this app Jun 14 23:30:34 theyre treating me like scum Jun 14 23:30:38 imn the only one who has to work 24hrs Jun 14 23:30:48 and as u can see i get so tired i cant do simple things Jun 14 23:30:50 or bugs get into the customers hands, and that cost 4 times as much Jun 14 23:31:06 gaz`: sorry, I misread your pastebin. But you're still getting an array and not an object :) Jun 14 23:31:25 ok Jun 14 23:31:54 seems strange how it works on ones with more Jun 14 23:32:41 TextView tv = new TextView(this); -- what is the point of the first TextView? Jun 14 23:32:43 I'm guessing it "collapses" an array of 1 object to that object Jun 14 23:32:48 but, that's only a guess :) Jun 14 23:33:08 jrockjiggz: you need to get a java book Jun 14 23:33:13 =/ Jun 14 23:33:22 gaz`: your first json is weird Jun 14 23:33:36 it's a mixture of single-element arrays and objects Jun 14 23:33:38 http://docs.oracle.com/javase/tutorial/java/index.html Jun 14 23:33:44 yeh Jun 14 23:33:50 damn confusing is what it is Jun 14 23:33:55 the gaps i think are to indicate a gap in gui Jun 14 23:33:57 I have a compiled binary file (used NDK) that I have pushed onto an AVD. anybody know how i can debug it? the internet is telling me to use a file called envsetup.sh, which is not in my ndk/sdk Jun 14 23:33:58 who what? Jun 14 23:34:02 but that still doesnt make it clear to me whats going on now Jun 14 23:34:08 wongk-home: thanks. Jun 14 23:34:17 need more coffee redbull fags and chocolate Jun 14 23:34:19 envsetup is part of the android SOURCE platform Jun 14 23:34:21 gaz`: JSONObject footDetails = footerDetailsList.getJSONObject(n); <-- you're asking for an object Jun 14 23:34:24 and time and somethign to slow my heart rate Jun 14 23:34:28 gaz`: but the first element is an array Jun 14 23:34:38 ok yeh im gonna get an array Jun 14 23:34:42 still confused.. Jun 14 23:34:42 so you need to descend into that array and then get its child JSONObject Jun 14 23:34:43 lol Jun 14 23:34:59 JSONArray to deal with multiple JSONObjects Jun 14 23:35:01 footerDetailsList.getJSONArray(n).getJSONObject(0) Jun 14 23:35:10 if you have a fixed object you want to fetch, use GSON Jun 14 23:35:13 that will work for the given input Jun 14 23:36:17 this animation thins is driving me nuts Jun 14 23:36:23 ok trying it out... Jun 14 23:39:44 works Jun 14 23:39:46 thank god Jun 14 23:39:49 cheers evancharlton et al Jun 14 23:40:47 :-( the google group dont publish my problem Jun 14 23:44:54 the moderation delay on the google groups is kind of unpredictable Jun 14 23:51:18 is there a special way to unplug your device from usb when in debugging mode? Jun 14 23:51:34 pretty sure not Jun 14 23:52:02 hmmok! Jun 14 23:54:04 jrockjiggz: pull the cable? Jun 14 23:54:58 i didnt know with all the debugging tools running maybe a disconnection might corrupt something Jun 14 23:55:02 Guys - do I need maps api to use the geocoder class? Jun 14 23:55:37 2 BUGS LEFT ON LIST.. Jun 14 23:55:40 and its 755am Jun 14 23:55:57 i know i can find more myself ironically i just dont get time with all these bugs about changing a : to a , and crap Jun 14 23:56:13 bet these test companies get paid per bug Jun 14 23:56:19 i mark one not a bug and its back on the list next day Jun 14 23:59:50 romainguy: any idea? Jun 15 00:04:59 ironhalik: yes Jun 15 00:06:40 What do you guys use on your phones to check your publisher stats? Like downloads/installs/ratings/etc for your apps? I used to use analytics but they removed their app :|. Jun 15 00:18:07 ahhhh bug list done Jun 15 00:18:10 now my own testing... Jun 15 00:18:11 :-x Jun 15 00:18:16 oh and its 820am Jun 15 00:18:35 im glad android wasnt written unde the contrainsts i have ;) Jun 15 00:19:25 yah srsly workin at 820am no wai Jun 15 00:19:59 lol Jun 15 00:20:04 yeh Jun 15 00:20:49 well with any luck this appwill be done today Jun 15 00:20:54 and i get go get drunk tonight Jun 15 00:27:44 freeze after crash logcat: http://pastebin.com/Tj1AtAd5 (device locks up for ~20s on any crash).. stock samsung rom, not rooted, not anything. I've got go launcher running here (which apparently ANRd), but same thing ahppens with any launcher. the ANR doesn't always happen, but the freeze does Jun 15 00:28:18 when i use the searchbox for my Listview, i get everytime the same result. For Example: Car, Flower, Hate, Love, Water ... When I type f or h or l etc. the result is Car. Activity: http://pastebin.com/Qb6iiHFw DatabaseHandler: http://pastebin.com/F06c0CGk I thin the problem is in the the CustomAdapter Jun 15 00:31:12 how do i get a fading edge on the bottom of my scrollview like it is on the top Jun 15 00:37:05 Hi all! Jun 15 00:37:11 Guys, anyone here uses Eclipse? Jun 15 00:37:22 My Eclipse can't work with tabhost Jun 15 00:37:48 yeh it doesnt show properly Jun 15 00:37:49 in the gui ed Jun 15 00:37:55 shoudl work on device Jun 15 00:38:02 I mean, when I open a layout, it gives a null pointer Jun 15 00:38:07 ah Jun 15 00:38:29 gaz`: But it's kinda hard to program what you can't see (and Im new with tabhost) Jun 15 00:38:39 ok err... Jun 15 00:39:05 ? Jun 15 00:39:18 I need somebody to tell me what is wrong with this code: RadioButton ex1 = new RadioButton(this); ex1.setText("Hello"); Jun 15 00:39:48 looksfine Jun 15 00:40:08 eclipse says it's not Jun 15 00:40:23 maybe this isnt a context Jun 15 00:40:26 or whatever it needs to be Jun 15 00:42:05 on the tab host Jun 15 00:42:10 yeah, where are you running that code? Jun 15 00:42:13 the tabs must be added programatically? Jun 15 00:44:23 Eclipse says that the method addContentView(View, ViewGroup, ViewGroup.LayoutParams) in the type Activity is not applicable for the arguments (RadioButton, int) Jun 15 00:45:27 DrChaos: can you put that whole file in a gist (gist.github.com) ? then we can help better. Jun 15 00:45:33 What do you guys use on your phones to check your publisher stats? Like downloads/installs/ratings/etc for your apps? I used to use analytics but they removed their app :|. Jun 15 00:46:48 Is it possible to simulate a bluetooth connection with the emulator? Jun 15 00:47:48 Hi - is there an api to get eg: number of app downloads from google play for an android app? Jun 15 00:49:10 no Jun 15 00:49:18 if it's your own app you can see that kind of info in your publisher console Jun 15 00:49:57 Ok, but I can only see it in the publisher console? (it is for an own app) Jun 15 00:50:46 correct Jun 15 00:50:56 (as far as i know) Jun 15 00:52:07 hmm, know of any decent scrapers then? I know there's things like mopapp.com, but they don't offer an api unless you pay them lots of money Jun 15 00:52:09 and it strangely highlighted this text: http://www.imagebanana.com/view/tapsyuct/x.png Jun 15 00:52:38 i'm curious why an app would need to tell the user its own download statistics Jun 15 00:53:00 lol Jun 15 00:53:20 not the user - we a building a panel to analyize the statistics from lots of services (for the admins) Jun 15 00:53:33 the user of the app :) Jun 15 00:54:08 no... like, business people who hate signing into tons of services admins Jun 15 00:54:20 never mind. thanks for your help Jun 15 00:55:03 please check that screenshot Jun 15 00:55:17 it highlighted 1"); ex2.set Jun 15 00:55:39 and the screenshot shows you the context Jun 15 00:55:42 DrChaos: somehow that screenshot does not want to load on my computer... still in "Sending request" Jun 15 00:55:47 DrChaos: "Eclipse says that the method addContentView(View, ViewGroup, ViewGroup.LayoutParams) in the type Activity is not applicable for the arguments (RadioButton, int)" Jun 15 00:55:57 note that one of those has two arguments, and the other has three Jun 15 00:56:21 DrChaos: int != ViewGroup, no third argument Jun 15 00:56:35 wtf? Jun 15 00:56:36 DrChaos: Oops! Google Chrome could not connect to www.imagebanana.com Jun 15 00:56:58 no third argument Jun 15 00:56:59 weird Jun 15 00:57:11 There used to be a app called andlytics and it gave you downloads/installs/ratings/comments Jun 15 00:57:14 pboos ☢ connect to http://imagebanana.com Jun 15 00:57:23 But it was jsut taken down, like literally 5 days ago Jun 15 00:57:26 remove the www. Jun 15 00:57:29 stupid firefox Jun 15 00:57:32 Pissed me off, I want a new app to do that :( Jun 15 00:57:52 DrChaos: i get the ip (DNS), but both urls the server does not respond... Jun 15 00:59:31 oh Jun 15 00:59:51 WFM Jun 15 01:00:08 pboos ☢ http://www.imagebanana.com/code/tapsyuct/x.png Jun 15 01:00:28 it responds for me Jun 15 01:01:47 DrChaos: it does not work for me. neither firefox nor chrome. maybe they block japan... Jun 15 01:02:26 WFM too, although it doesn't seem relevant to your earlier questions Jun 15 01:02:38 it just shows Eclipse being random about where it's drawing the syntax-problem squiggle Jun 15 01:02:45 which is par for the course with Eclipse Jun 15 01:04:20 ctate ☢ how do I fix my problem? Jun 15 01:04:39 you haven't really been clear about what your problem *is* Jun 15 01:04:47 nor have you shown the actual code that is having problems Jun 15 01:04:50 I try to say ex1.setText("Label1", 0); Jun 15 01:05:10 you quoted one error message, and i pointed out that it was telling you quite explicitly what the problem was Jun 15 01:05:21 (you were trying to call a method that needed three arguments, but you were only passing two) Jun 15 01:06:10 that error message I quoted was from the red squiggly lines Jun 15 01:06:26 the 1");\n\tex2.set Jun 15 01:06:46 so eclipse is not telling me what needs to be fixed Jun 15 01:07:16 Eclipse's UI is out to lunch here Jun 15 01:07:21 what's the actual build-time problem? Jun 15 01:07:47 earlier you quoted ""Eclipse says that the method addContentView(View, ViewGroup, ViewGroup.LayoutParams) in the type Activity is not applicable for the arguments (RadioButton, int)"" Jun 15 01:07:47 \ Jun 15 01:08:03 which has nothign to do with your screenshot -- the screenshot does not show any code calling addContentView Jun 15 01:08:38 hahah Jun 15 01:08:45 well, it builds succesfully Jun 15 01:08:55 but my android device says: LunchList forced close Jun 15 01:09:13 i.e. it crashed Jun 15 01:09:22 and there are messages and stacktraces in the log telling you where it crashed Jun 15 01:09:28 * ctate points to the imgur link in the channel topic Jun 15 01:09:28 I get exception RuntimeException Jun 15 01:10:40 err...how do I get Stacktrace? Jun 15 01:10:54 * ctate | and there are messages and stacktraces in the log telling you where it crashed Jun 15 01:12:35 DrChaos: adb logcat Jun 15 01:12:56 or the log view in Eclipse, maybe? i haven't used the SDK integration so i'm hazy on that Jun 15 01:16:41 ctate ☢ http://dug.im/fd5b3 Jun 15 01:17:52 err, that is not the contents of the log Jun 15 01:18:02 can you pastebin the logged text about the crash? Jun 15 01:20:21 ctate ☢ http://vpaste.net/OUlbT Jun 15 01:20:25 there's the stacktrace Jun 15 01:20:36 DrChaos: that's not from the logs Jun 15 01:20:42 look at the logcat viewer in Eclipse Jun 15 01:20:46 it will show you the complete stack trace Jun 15 01:20:59 romainguy ☢ all I have in my logs is a bunch of warnings from com.motorola.UsbListener Jun 15 01:21:09 DrChaos: make the app crash again Jun 15 01:21:13 without your debugger running Jun 15 01:21:18 and you'll see the stack trace in the logs Jun 15 01:24:08 http://vpaste.net/8Kt7f Jun 15 01:24:13 romainguy ☢ there you go Jun 15 01:24:29 here's your error: Jun 15 01:24:30 01-02 20:22:48.937: E/AndroidRuntime(3466): Caused by: java.lang.NullPointerException Jun 15 01:24:31 01-02 20:22:48.937: E/AndroidRuntime(3466): at apt.tutorial.LunchListActivity.onCreate(LunchListActivity.java:30) Jun 15 01:24:46 you are dereferencing a null object on line 30 of your activity Jun 15 01:28:06 So...what are the limitations of bionic libc? Jun 15 01:29:04 this looks cool: https://play.google.com/store/apps/details?id=edu.berkeley.cs.amplab.carat.android Jun 15 01:29:11 I have c4droid and soon the gcc plugin Jun 15 01:29:31 Hopefully pcre will compile with it Jun 15 01:31:34 how do I use findViewById()? Jun 15 01:32:55 DrChaos: have you checked the documentation? Jun 15 01:33:01 you give it the id of a View that you probably defined in your xml Jun 15 01:33:21 they get generated into R.java, so it'll be R.id.whatever Jun 15 01:57:39 here's a better description of my problem: http://stackoverflow.com/q/11043266/1457535 + https://gist.github.com/2934018 Jun 15 02:09:09 so intellij has a button "up to stracktrace" in its logcat Jun 15 02:09:21 you don't have to scroll through logcat to find the most recent stack trace. Jun 15 02:09:25 just click the button. Jun 15 02:25:55 readme thats awesome! Jun 15 02:26:01 hi guys Jun 15 02:26:04 as soon as they get a gui editor i will use it Jun 15 02:26:13 would tabs in a typical iPhone app be implemented as separate Activity classes in Android? Jun 15 02:26:36 jcromartie you can implement it as separate activity Jun 15 02:27:05 anyone has ideas on how the screen time out work? Jun 15 02:27:08 can, or should? Jun 15 02:27:28 gaz`: they already have a gui editor: http://www.jetbrains.com/idea/features/google_android.html Jun 15 02:27:34 jcromartie, by default it should be implemented as activity Jun 15 02:27:40 OK :) thanks Jun 15 02:27:52 no restriction but Jun 15 02:28:11 gaz`: or well. i mean preview. i do not use drag and drop anyway :D http://www.jetbrains.com/idea/features/screenshots/11/android_layout_preview.png Jun 15 02:28:16 gaz`: it has a preview that works better than eclipse Jun 15 02:28:17 you can look at the action bar set navigationlist Jun 15 02:28:20 but it has no interactive editing Jun 15 02:28:42 Question.. any ideas how screen time out work? Jun 15 02:28:56 readme: interactive editing only makes bad xml ;-) just like FrontPage once did :D (okay. maybe not as bad...) Jun 15 02:29:03 i'm trying to understand viewpager, and i'm really having trouble with the developer.android.com site. can anyone recommend other reading? this manual not helping Jun 15 02:29:09 not really Jun 15 02:29:13 the xml produced on eclipse is good Jun 15 02:29:24 but yeh i could hand code, especialy if u can see both views at same time Jun 15 02:29:36 pboos: yeah, nothing that comes out of eclipse interactive editor is worth using Jun 15 02:29:39 newt what do you not understand? Jun 15 02:29:50 jnewt: depends what you wanna do with the ViewPager: showing fragments or creating own views? Jun 15 02:29:53 if you can even get it to produce the desired output.. which I cannot Jun 15 02:30:18 jnewt: google for "android viewpager example" and you find many examples. Jun 15 02:31:19 and I should be targeting 2.3.3 right? Jun 15 02:31:39 basically forget about ICS Jun 15 02:31:58 if u have a page that updates every 20 seconds, whats the bestway to show this? bring up a progress bar or not? Jun 15 02:31:59 So if I wanted to have a sortable table.. I'd probably be better off using a listview than a tablelayout, wouldn't i? Jun 15 02:32:12 jcromartie: you can target whatever you want. depends how many people you want to reach. in our company we currently target 2.2 Jun 15 02:32:17 * readme waits for the day he finds a legit use for TableLayout Jun 15 02:32:22 elnews, pboos: i have a couple of layouts that i want to swipe between. I don't understand all the pageradapter versions, why they exist, and where the code should go, and how it is used. they show a "more complicated example" and several "simple examples. I need something in between. Jun 15 02:32:29 hm, yeah, 2.2 would be huge Jun 15 02:33:24 readme: depends. you can just sort the data before showing them in a tablelayout. but i do not like tablelayout ;-) Jun 15 02:33:26 are fragments required? can't i just have one activity as i do now, and several layouts and add some code to move between the layouts, leaving the onclicks / etc as they are? Jun 15 02:33:27 but for a general information app for a popular entity… we'd better shoot for broad appeal Jun 15 02:33:39 pboos: it needs to be resortable by various criteria Jun 15 02:33:40 jnewt: they are not required. but it is the nicer way Jun 15 02:33:45 it seems easier with a ListView because I get the adapter Jun 15 02:33:55 then I can sort the data source, then update the adapter Jun 15 02:34:03 readme: yes. ListView would be better and easier :) Jun 15 02:34:25 pboos: why are they nicer? Jun 15 02:34:43 jnewt: fragments are kind of layouts ;-). but you can do it with views, yes Jun 15 02:35:05 jnewt: because the code will look cleaner Jun 15 02:35:25 pboos: i read the section on fragments, and i see what they are, but not why they are better than two layouts in the res folder Jun 15 02:35:41 What do you guys use on your phones to check your publisher stats? Like downloads/installs/ratings/etc for your apps? I used to use analytics but they removed their app :|. Jun 15 02:35:42 Fragments allow you to decouple controller logic from the activity and re-use it across many other activities easily. Jun 15 02:36:03 jnewt: back stack is one thing that is easier with fragments + memory management Jun 15 02:36:11 I would call it view-logic, but that's really whats in a view, imho. If you're handling a view, then that's part of the controller, Jun 15 02:36:46 readme: there is no reference to "controller logic" on developer.android.com. what is this? Jun 15 02:36:54 jnewt: model-view-controller pattern Jun 15 02:37:44 jnewt: one first good read is: http://android-developers.blogspot.jp/2011/08/horizontal-view-swiping-with-viewpager.html Jun 15 02:37:46 patterns don't become immediately obvious.. it takes a lot of thinking to map the concrete pieces to the concepts Jun 15 02:38:01 pboos: that's where i am right now! Jun 15 02:38:17 jnewt: and the example here has really good comments: http://code.google.com/p/viewpagerexample/source/browse/trunk/AwesomePager/src/com/geekyouup/paug/awesomepager/AwesomePagerActivity.java Jun 15 02:38:47 am i correct in thinking that page=layout resource Jun 15 02:39:49 layouts are not just shown, they are first subjected to logic, and then rendered Jun 15 02:40:06 then that result is a page Jun 15 02:40:12 call that a page, or a screen, whatever Jun 15 02:40:17 T-Dub|DlolPics, lol youll get an answer one day :) Jun 15 02:40:24 think of a layout as a blueprint for a screen Jun 15 02:40:28 not the screen itself Jun 15 02:40:48 Lol I'm hopping. It really pisses me off that Google has a console for MOBILE devices, yet their site doesn't support mobile devices -.- Jun 15 02:41:06 They have their own mobile OS, and doesn't support it on their site. Jun 15 02:41:17 readme: when i do setContentView(R.layout.main), is that what you're calling "subject to logic"? Jun 15 02:41:25 sure, but you'll probably have your own logic too Jun 15 02:41:30 like find view, and change the text Jun 15 02:41:42 but that's after the layout is a page Jun 15 02:41:43 setContentView first has to inflate the view Jun 15 02:41:46 the layout, rather Jun 15 02:41:47 no Jun 15 02:42:00 think of the page as the final result you see on the screen Jun 15 02:42:05 like: final ToggleButton runToggle = ((ToggleButton)findViewById(R.id.runToggleButton)); Jun 15 02:42:08 well, it's oyur concept Jun 15 02:42:12 think of it however you want Jun 15 02:42:16 but that's my two cents Jun 15 02:42:17 jnewt quess you are still new Jun 15 02:42:36 page adapter is the same as adapter you see in list view and gridview Jun 15 02:42:48 elnews: yeah, i've been reading this stuff for days now, and it doesn't make much sense, thought i'd help to talk about it a bit Jun 15 02:42:50 it just help you to lay them out properly for each page Jun 15 02:42:52 Oh, you meant a page in the context of ViewPager Jun 15 02:43:04 dude, a page is whatever is currently shown by the viewPager widget Jun 15 02:43:06 it's a view Jun 15 02:43:09 it paginates views Jun 15 02:43:25 think of each oncreateInstance as to setup your page (just like in activity setcontentview) Jun 15 02:43:35 and each page is being used to swipe to and fro Jun 15 02:43:53 in a fragment, you'll inflate your own layout and return it in onCreateView Jun 15 02:43:56 oncreateinstance -> inside pageradapter Jun 15 02:44:05 in an activity, you'll typically just give the layout resource id to setContentView Jun 15 02:44:17 and let it perform magic for you. Jun 15 02:44:50 this makes no sense to me. it's like reading the manual. i see what you're typing, but don't understand how to actually do it Jun 15 02:45:07 jnewt: have you written a basic program that uses one fragment? Jun 15 02:45:23 http://android-developers.blogspot.sg/2011/08/horizontal-view-swiping-with-viewpager.html Jun 15 02:45:25 i wrote a program that has some buttons on the screen Jun 15 02:45:26 see this apge Jun 15 02:45:33 that's what he's reading Jun 15 02:45:38 ok Jun 15 02:45:39 i've read it now Jun 15 02:45:47 jnewt: show us one of your fragmnets Jun 15 02:45:52 fragment* Jun 15 02:45:56 @Override Jun 15 02:45:57 public Object instantiateItem(View collection, int position) { Jun 15 02:46:00 look at this part Jun 15 02:46:10 you can see that it inflate items to view Jun 15 02:46:13 readme: I think what i wrote is called an activity Jun 15 02:46:20 oh, I see. Jun 15 02:46:31 view and activity is two diff things. Jun 15 02:46:38 If you're going to interact with the Views that your ViewPager displays, you will want to use Fragments. Jun 15 02:46:48 i also made a layout that has the buttons Jun 15 02:47:00 but i dont' think that's the same as a fragment either Jun 15 02:47:06 dump what you have and ask a specific question about it Jun 15 02:47:15 how's Android dev on osx/mac? Jun 15 02:47:30 Afzal: very common Jun 15 02:47:35 readme i quess he is new.. dun confuse him with fragments Jun 15 02:47:48 readme just started out with view than move to fragments will be better Jun 15 02:47:52 ok Jun 15 02:48:10 Afzal android dev on osx is great much much faster than linux and windows Jun 15 02:48:22 elnews that's great to know! Jun 15 02:48:23 Afzal personal experience though Jun 15 02:48:24 hubris Jun 15 02:48:30 what about AOSP development? Jun 15 02:48:31 Afzal: it is pretty good. doing it all the time. Jun 15 02:48:35 errrr, I have huge problems using eclipse on a mac Jun 15 02:48:38 http://pastebin.com/zAVfyPUX that's my layout Jun 15 02:48:42 anything java on a mac, actually Jun 15 02:48:48 Afzal: not sure about AOSP, but should not be a big problem. Jun 15 02:48:53 Afzail i am not sure about aosp ask someone who knows ^^ Jun 15 02:49:04 guys lets not have an OS debate seriously Jun 15 02:49:21 take it to #apple or whatever Jun 15 02:49:58 newt what's wrong with the layou? Jun 15 02:50:13 wabz, there are guides to fix that I'm sure (since many googlers also use macs) Jun 15 02:50:16 nothing. how do i page between two of them Jun 15 02:50:23 that's what i can't figure out Jun 15 02:50:25 inflate them Jun 15 02:51:09 jnewt easy Jun 15 02:51:30 newt separate the contents that you wanted to divide into two layouts Jun 15 02:51:47 elnews: ok, that i can do Jun 15 02:51:56 at public Object instantiateItem(View collection, int position) { Jun 15 02:51:57 then what? Jun 15 02:51:57 View v = layoutInflater.inflate(...); Jun 15 02:52:17 View v = layoutInflater.inflate(yourlayout.xml, ); Jun 15 02:52:37 pass an arrays of your layout to the page adapter Jun 15 02:52:39 done Jun 15 02:52:57 could use an array of layout resource ids Jun 15 02:53:02 and inflate in the adapter Jun 15 02:53:03 and does that code go in my .java file? Jun 15 02:53:08 or in a new file? Jun 15 02:53:27 there's very little about where things go Jun 15 02:54:03 https://code.google.com/p/viewpagerexample/source/browse/trunk/AwesomePager/src/com/geekyouup/paug/awesomepager/AwesomePagerActivity.java Jun 15 02:54:10 does it go inside my public class Main extends Activity{}? Jun 15 02:54:27 it doesn't matter whether it is an inner class or a standalone class Jun 15 02:54:38 just make sure you pass all the required dependencies to it Jun 15 02:54:46 i.e. context, for layout inflater Jun 15 02:54:56 copy the above Jun 15 02:55:02 then trim out the non-required parts Jun 15 02:55:08 there's no inflate anything in that example Jun 15 02:55:09 anyone knows how i can clear recent apps ? Jun 15 02:55:18 jnewt: so put the inflate where it does instantiateItem Jun 15 02:55:39 readme any ideas how i can clear recent apps? Jun 15 02:55:39 think about this carefully: layout inflater creates views from layout files. Jun 15 02:55:51 dunno what you mean, the task switcher? Jun 15 02:55:57 maybe reboot the phone Jun 15 02:56:04 try swiping them out Jun 15 02:56:05 readme i meant programmatically .. Jun 15 02:56:07 elnews: thats not really a question for here.. try #android, but its really dependent on your launcher Jun 15 02:56:10 oh, I doubt it Jun 15 02:56:30 instantiateItem does the same from nothing? Jun 15 02:56:31 drpenguin i know what i am asking :) it's about programmatically .. clearing Jun 15 02:56:43 you can create a view programmatically too jnewt Jun 15 02:56:45 elnews: well you left that out now didnt ya :P Jun 15 02:56:47 but you want to use your layouts Jun 15 02:56:50 so use a LayoutInflater Jun 15 02:57:19 drpenguin haha my bad.. u hv any ideas? or do u know which class in android source code does the recent apps snap shot? Jun 15 02:57:20 and instantiateItem does what layoutinflater + layout.xml does, but all in java Jun 15 02:57:23 instantiateItem: layout.xml -> LayoutInflater -> View Jun 15 02:57:27 pseudocode Jun 15 02:57:37 except you'll pass R.layout.whatever Jun 15 02:57:56 ok, i'ma try this now. thanks for chatting Jun 15 02:57:59 elnews: I know there are classes inside Android that deal with Apps, I just dont remember the name man, its been soo long.. you might just want to dig around the class hierarchy on d.android.com Jun 15 02:58:03 Without doing weightSum is there a value for percent? like instead of 50dp can I do something that means 50%? **** ENDING LOGGING AT Fri Jun 15 02:59:59 2012