**** BEGIN LOGGING AT Sun Feb 03 02:59:59 2013 Feb 03 03:00:51 I see, sorry, can't help you with PhoneGap Feb 03 03:01:35 But how does the complete line look like with your eventlistener? Feb 03 03:04:01 I guess something like .addEventListener("resume", myCallback, false); ? Feb 03 03:04:15 If you do not get the answer here, their Google Group (https://groups.google.com/forum/#!forum/phonegap) might be of help. Feb 03 03:05:05 Hi, I'm using a WebView for the first time in an app. Can load a local page with images ok, but JS is not executing. I have used wv.getSettings().setJavaScriptEnabled(true); before loading the page up and the JS works fine in a normal browser. Feb 03 03:08:28 Ah, fixed it. Feb 03 03:11:34 yeah that's what I have kakazza Feb 03 03:11:51 .addEventListener("resume", myCallback, false); ? Feb 03 03:12:08 but, it keeps reinitializing the app Feb 03 03:13:41 when I resume Feb 03 03:30:24 Is there a way to update the ADT Tools to 21.0.1, or do I just reinstall? Feb 03 03:38:10 Smashcat: Use the SDK Updater, as usual Feb 03 03:38:52 kakazza: Seems like it's bugged. Says I have 20.0.1 installed, but when I launch Eclipse it throws up a warning that I need to install 20.0.1 Feb 03 03:40:06 So, do you have 20.0.1? Feb 03 03:40:07 If I try to add them again, the SDK Manager complains that a package depends on 'Missing SDK Platform Android, API 17' so it refuses to install anything. Feb 03 03:40:09 Or 21.0.1? Feb 03 03:40:16 yeah, the updater is a pile of crap. i've had it bust things up quite often Feb 03 03:40:23 reinstall everything Feb 03 03:40:24 I have 20.0.1 Feb 03 03:40:49 g00s: Yeah, thought I'd have to. Don't think it ever works, to be honest. Feb 03 03:41:03 g00s: Really? It worked for me ever since. Feb 03 03:41:06 i wind up with a mishmash of 2 versions Feb 03 03:41:21 as if some old files could not be deleted or something Feb 03 03:41:49 g00s: It's annoying because every time there's an update I have to delete everything, then reinstall and download all the APIs etc again... Feb 03 03:42:15 yeah, i do the same Feb 03 03:42:44 You'd think Google could work out how to make the updater work by now - it's been what, 8 years? :) Feb 03 03:43:43 close to 5 years Feb 03 03:44:05 kakazza: heh, ok, I'll let them off :) Feb 03 03:44:10 And I never encountered any problems to be honest. Feb 03 03:44:24 kakazza: You've been lucky I guess Feb 03 03:44:55 hi all Feb 03 03:45:03 im looking into getting a tablet Feb 03 03:45:14 i will use it for app develeopment Feb 03 03:45:22 do you recommend a nexus 10? Feb 03 03:46:28 Yes. Feb 03 03:47:21 https://plus.google.com/u/0/107708120842840792570/posts/cz5TxuoNDfG Feb 03 03:48:49 kakazza: awesome, thanks Feb 03 03:50:08 i almost broke down for a n7, maybe i should do a n10 instead Feb 03 03:50:39 WebView is weird on a Nexus 7, it only has a resolution of 962x528 on the canvas (before scrolling) Feb 03 03:50:42 i hate that this useful info is tied up in G+ bullshit Feb 03 03:52:14 the nexus 10 is worht the money? Feb 03 03:52:25 i want to start getting into android dev Feb 03 03:52:49 shaun413: Anything's worth the money if you find it useful, to be honest Feb 03 03:53:08 well Feb 03 03:53:19 can you throw me the basics of android dev? Feb 03 03:53:23 is it just java? Feb 03 03:53:55 shaun413: Yes, Java and XML. Plenty of info online Feb 03 03:54:13 oh Feb 03 03:54:27 is it easy to make an app if you ahve a background in java? Feb 03 03:54:34 im taking a java course now Feb 03 03:54:42 and want to make some apps ove the summer Feb 03 03:54:46 shaun413: Yes, if you write Java, you'll have no problem Feb 03 03:55:02 an intro class will cover all i need? Feb 03 03:55:37 shaun413: You'll need to use the Android API etc, it's not quite Java, but close enough. The transition is easy Feb 03 03:55:47 ok Feb 03 03:56:00 is there any possibility for monetary gain? Feb 03 03:56:05 through making apps? Feb 03 03:56:15 shaun413: As I say, there's plenty of info online - the Android dev site has tonnes of code and examples Feb 03 03:56:50 shaun413: I make a good living (mostly do embedded work, but also some Android for event use, not public) Feb 03 03:58:17 shaun413: You do need the hardware to test/debug on though, as the emulator sucks (in my opinion) Feb 03 03:58:34 well i mean is it possible to make alittle money, making apps while i go to school and such Feb 03 03:58:47 that would make it easier to buy the tablet lol Feb 03 03:58:58 i know there is a need for 10 inch tablet apps Feb 03 03:59:01 shaun413: Of course, if you're good enough to make stuff people want Feb 03 03:59:31 how does that work exactly? Feb 03 03:59:38 is it through google? Feb 03 04:00:08 shaun413: Yes, you can sell stuff through the store. Personally I don't do that, but it depends on the type of app you're writing Feb 03 04:00:22 Or the "Play Store" as it is now Feb 03 04:00:31 hi, is onDraw() similar to a non-Android game function while(game_is_running){ }? Feb 03 04:00:57 a Feb 03 04:01:38 Right, reinstalling the SDK again... Feb 03 04:02:37 the MVC structure is a bit confusing for me, I'm trying to control the framerate separately form the game update, but the activity class doesn't seem to control framerates Feb 03 04:14:00 shaun413: most android devs do it moonlighting Feb 03 04:14:06 widith: You generally need to use a Timer or Thread for your game logic, and the repaint will occur automatically a the optimum rate Feb 03 04:14:11 i should say, most mobile devs Feb 03 04:14:15 moonlighting? Feb 03 04:14:26 yeah, they have a real job and do it on the side Feb 03 04:14:33 thats what i plan Feb 03 04:14:43 im going to school for comp eng and comp sci Feb 03 04:15:00 want to do it on the side Feb 03 04:15:02 its pretty tough to make money unless you are being paid to work on a project Feb 03 04:15:07 to enter the market Feb 03 04:15:12 there are some success stories, of course Feb 03 04:17:30 how do I scale from small screens to bigger ones? I'm guessing that small ones have X x Y pixels, and larger ones have more pixels? Feb 03 04:18:58 Can I be certain that my Activity is Active when it receives the onActivityResult callback? Feb 03 04:19:51 mmlj4: Yes, you have different sizes - a single project can have different views and assets within it, so it uses the most appropriate one for the device. You can be pixel perfect though, unless you're writing for a single device Feb 03 04:20:14 that makes sense Feb 03 04:20:15 *can't Feb 03 04:21:28 s/is/will be/ Feb 03 04:21:51 mmlj4: It's a lot like web development (responsive design) You can also use code to measure the available space and move things about etc Feb 03 04:25:20 mmlj4 , but you can also have different layouts in your resources labeled by various screen sizes and count on the best one being used. Feb 03 04:26:35 does Intel Android phones translate to better driver support? Feb 03 04:27:48 but would a tablet be a good investment if i want to get into dev? Feb 03 04:27:52 for tablets? Feb 03 04:28:00 nexus Feb 03 04:28:06 n7 or n10 Feb 03 04:28:16 i was going to get a 32 gb nexus 10 Feb 03 04:28:26 just want to make sure it will actually be usefull Feb 03 04:28:31 and im not wasting money Feb 03 04:29:59 i think all he nexi will be updated by i/o in may :) Feb 03 04:30:19 with even higher density displays Feb 03 04:30:29 anyhow, dont need 32g - 16 will do Feb 03 04:30:56 shaun413 , There are some things that can only be tested on real hardware. Feb 03 04:30:57 shaun413: Yep for development, just buy the lowest end model Feb 03 04:31:02 shaun: if you are targetting games, n7 is nicer since it is easier to wave about but n10 is nicer for reading Feb 03 04:31:52 yeah, if you are doing HW stuff you better get a real device Feb 03 04:32:05 ioio, gps, bluetooth, etc Feb 03 04:32:28 ..so it seems when I background the app then clicking the app icon creates another instance of the app Feb 03 04:32:34 i wonder if you can use the bluestack player as a better emu Feb 03 04:32:42 very strange Feb 03 04:32:52 deanclkclk: try the phonegap channel, seriously Feb 03 04:33:02 (if they have one) Feb 03 04:33:29 well i want to get the tablet for personal use too Feb 03 04:33:34 as well as development Feb 03 04:33:46 will a nexus 10 be good? Feb 03 04:35:33 shaun413: it probably just comes down to whether or not you prefer a bigger or smaller tab Feb 03 04:35:58 they are both great in my opinion Feb 03 04:36:26 bigger Feb 03 04:36:30 looked at the 7 Feb 03 04:36:35 there you have it :) Feb 03 04:36:36 too small for my tastes Feb 03 04:36:44 but it will be usuable for dev? Feb 03 04:36:49 just need to make sure Feb 03 04:36:50 the 10? Feb 03 04:36:53 Can I presume that like UI events, onActivityResult only fires on active activities? Feb 03 04:37:17 either one will be usable Feb 03 04:37:24 yes the 10 Feb 03 04:37:46 the 10 might be better because you can use it to emulate screens with different densities Feb 03 04:38:07 shaun413: Realistically, if you're getting something to use to write apps for the public, you should do some research about which has a bigger user base. It doesn't matter which you prefer personally, what matters is the audience size Feb 03 04:38:32 true Feb 03 04:38:33 https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG <-- related Feb 03 04:38:42 but it hoenestly a tablet for me first Feb 03 04:38:46 then a tablet for dev Feb 03 04:38:55 i like the nexus 10 so i want to dev for that Feb 03 04:39:03 shaun413: what kind of app(s) are you planning to write? is this more of a experience right now? Feb 03 04:39:12 well Feb 03 04:39:12 err..learning experience Feb 03 04:39:16 learning yes Feb 03 04:39:19 :D Feb 03 04:39:23 im learning java now Feb 03 04:39:37 should have a decent background by the time the course is done Feb 03 04:39:51 then I would say don't worry too much about hitting the most users (unless you're really motivated) Feb 03 04:40:05 and I would say the 10 is perfectly fine to learn on, and will make a great personal use tab as well Feb 03 04:40:14 perfect Feb 03 04:40:24 do you actually code on the tablet? Feb 03 04:40:27 but I agree with what someone said earler, you probably don't need 32GB Feb 03 04:40:27 or on a pc Feb 03 04:40:27 shaun413: You can (just about) use the emulator to test layouts on different sized screens, but it's not a great way to test - personally I don't use it at all, so have a lot of devices to test on Feb 03 04:40:33 unless you plan on loading it up with movies or something Feb 03 04:40:53 really Feb 03 04:40:58 shaun413: ppl generally use eclipse or intelliJ Feb 03 04:40:58 i dont need the 32 g? Feb 03 04:41:00 gb? Feb 03 04:41:22 I mean I don't know, I certainly don't.. but then again I don't watch a ton of movies on mine Feb 03 04:41:25 does google play store charge tax and shipping? Feb 03 04:41:30 shaun413: You always code on a PC/Mac, and test/debug on the device. You don't need storage for development. So a 16GB device is as good as a 32GB Feb 03 04:41:37 if I did, I probably wouldn't keep them sitting on the filesystem forever either so I doubt I'd ever need 32GB (personally) Feb 03 04:41:43 Smashcat, its for personal use too Feb 03 04:41:54 pdf textbooks for school, photos, Feb 03 04:41:58 stuff like that Feb 03 04:42:20 shaun413: Do you need everything on there all the time? Feb 03 04:42:50 like what? Feb 03 04:43:05 i have had several people to tell me to go for the 32 gb Feb 03 04:43:47 if you have money to burn, why not Feb 03 04:44:11 not too much money to burn lol Feb 03 04:44:18 shaun413: I mean, do you think you'll need to store over 16GB of stuff on it all the time? Generally, unless you're carrying a large music collection, or movies around you won't. PDF's, bookes etc don't take much space. Feb 03 04:44:30 but if theres no tax on the play store and shipping is 15 dollars Feb 03 04:44:37 thats 415 for the 16 Feb 03 04:44:45 then i can get 10 percent at staples Feb 03 04:44:54 with tax the total for the 32 is 484 Feb 03 04:44:58 shaun413: If you have a PC/Mac as well, then you can just put the stuff you want on the tablet as you need it, so 16GB should be more than enough Feb 03 04:46:10 The money you save could then go toward another device (phone, smaller tablet). Depends if you're doing serious dev though Feb 03 04:47:04 Only you can know that though! :) Feb 03 04:47:59 i have a phone Feb 03 04:48:05 so dont need hta Feb 03 04:48:06 that Feb 03 04:48:25 shaun413: An Android phone? Feb 03 04:48:36 yes Feb 03 04:48:44 That's cool then Feb 03 04:48:52 oh if the nexus 10 16gb has tax Feb 03 04:48:57 then is around 445 Feb 03 04:49:02 i wonder how popular the n10 has been; i dont hear much about it at all Feb 03 04:49:05 then the 32gb would cost 484 Feb 03 04:49:17 g00s, its been sold out for ages Feb 03 04:49:26 i think prestty popular Feb 03 04:49:27 g00s: That's what I'm wondering. It's not even available here (UK) as far as I know Feb 03 04:49:36 it doesn't mean anything shaun413 Feb 03 04:49:37 (always out of stock) Feb 03 04:49:44 the n4 has been sold out, they hardly made any Feb 03 04:50:29 the microsoft surface commercial where they're flinging the surface around while doing flips and dances and crap really annoys me for some reason Feb 03 04:50:48 really, the best way to measure the popularity of a device is by measuring web usage Feb 03 04:51:01 web usage is the #1 use case for tablets Feb 03 04:51:13 so , IDC can say MS shipped 900k Surface RTs, but it doesn't mean shit Feb 03 04:51:25 in fact, seems like IDC is fucking up the numbers for android too Feb 03 04:51:50 because, although they keep reporting android market share is going nuts, web share clearly goes to apple devices - and its not close Feb 03 04:52:02 I'm pretty sure there aren't many Nexus 10's around. As I say, there's nowhere with then in stock in the UK as far as I know (not even sure they've officially been launched) Feb 03 04:52:23 samsung channel stuffed their tablets a while back, they hardly sold any of them Feb 03 04:52:25 There's loads of Nexus 7's though Feb 03 04:52:43 yeah, i think on the order of 3million of those are sold per month Feb 03 04:52:57 Android OEMs almost never release those numbers, but apple does Feb 03 04:53:08 fun, fun, fun Feb 03 04:53:52 A lot of places use the "Sold out" flag on products when they've never actually had any stock, so it's not a good indicator that it's selling well :) Feb 03 04:54:30 its also weird, when i go to the play store, they have front page N7 Feb 03 04:54:43 i had to dig for the n10, which was easy, but still Feb 03 04:55:54 g00s: Yeah, I get the feeling it hasn't been rolled out in a lot of places. I'd normally get sent one pretty soon, and haven't heard anything about getting one as yet. Feb 03 04:55:58 shoudl i not buy a nexus ten then? Feb 03 04:56:16 for myself, personally, i would just get a n7 i think Feb 03 04:56:31 shaun413: Up to you, if you want it mainly for yourself, and you can actually get one, sure! Feb 03 04:56:32 if you are cost sensitive Feb 03 04:56:52 i dont think the nexus 7 is big enough for me Feb 03 04:57:21 I wouldn't say an N10 would be a good platform for a developer at the moment though, unless they can target that model. Feb 03 04:57:21 shaun413: ok .. get the n10 ? Feb 03 04:57:36 shaun413: Why don't you think it's big enough? Feb 03 04:57:57 I've got a couple of iPads, and the N7, and I use the N7 all the time, to be honest. Feb 03 04:58:49 nexus 7 just looks like a large phone to me Feb 03 04:59:03 i have bad vision too Feb 03 04:59:03 anyone here have the gs2 from straight talk? Feb 03 04:59:08 i like someting bigger Feb 03 04:59:23 shaun413: seems like you know what you need then Feb 03 04:59:29 shaun413: I think you just need to go try some devices out. It might turn out that you like the iPad or Windows surface better. Feb 03 04:59:36 Smashcat, wy is it not good ? Feb 03 04:59:46 i was told not to buy an ipad Feb 03 04:59:47 * g00s headdesk Feb 03 04:59:51 shaun413: heh Feb 03 04:59:55 microsoft surface is alright Feb 03 05:00:23 shaun413: Dude, just go do some research, it sounds like you're all over the place and don't know what you want :) Feb 03 05:00:41 well Feb 03 05:00:46 i did like the nexus 10 Feb 03 05:00:48 but Feb 03 05:00:59 my other choice was ipad Feb 03 05:01:05 but i want to do dev Feb 03 05:01:14 and people told me the ipad is not good Feb 03 05:01:35 shaun413: What people? Are they developers with experience of iOS and Android? Feb 03 05:01:43 no Feb 03 05:01:49 but isnt ios openc? Feb 03 05:01:51 not java? Feb 03 05:02:26 shaun43: It's Objective C (although you can mostly write in C/C++ if you like). It's not Java though, no. Feb 03 05:02:59 openc? Feb 03 05:03:03 if you want to do HW stuff, forget about iOS its a pita to join the mFI program Feb 03 05:03:24 (I have also worked on iOS apps - the actual dev environment is arguably better than Android, but there's a lot more restrictions on distribution) Feb 03 05:03:46 and $99/yr for the provisioning Feb 03 05:04:16 g00s: Yeah, but that's really irrelevent for a developer. The real problem is the distribution process with iOS Feb 03 05:04:43 why isnt the nexus 10 popular? Feb 03 05:04:56 shaun413: Because it's not available maybe Feb 03 05:05:00 ok, are you trolling now ? Feb 03 05:05:12 im not trolling Feb 03 05:05:21 you said it wasnt popular Feb 03 05:05:24 Once people can buy them, they'll become more popular Feb 03 05:05:32 ahh ok Feb 03 05:05:39 they just came back in stock Feb 03 05:05:45 on play store today Feb 03 05:07:47 shaun413: Heh, just checked; tried to order one again just now, and the store won't allow the order to go through Feb 03 05:08:13 I'll wait for the client to send me one - hehe! Feb 03 05:09:18 client? Feb 03 05:09:38 shaun413: People I do work for - I'm freelance Feb 03 05:10:14 ohh Feb 03 05:11:37 alright i gtg to bed Feb 03 05:11:44 but the nexus 10 is a good buy? Feb 03 05:11:45 ok, bb Feb 03 05:12:05 shaun413: Only you can answer that Feb 03 05:12:25 shaun413: sleep on it :) Feb 03 05:12:29 k night Feb 03 05:12:31 :D Feb 03 05:19:55 Hello, I have an ASync Task and in the onPostExecute method for some reason, the current Activity (that returns from using getActivity()) is lost. I get a Null Pointer Exception in onPostExecute because myActivity() in Toast.makeText() is null. Why is getActivity() null in only THAT method?? Feb 03 05:34:12 Hi all, this code http://pastebin.com/M5FqigkJ gives me the error "The constructor ArrayAdapter(MainActivity, int, int, List) is undefined" but I cannot see why Feb 03 05:35:16 I've tried replacing this with MainActivity.this but the error remains (the line that's causing the problem is line 31/32 Feb 03 05:59:42 got the problem, well know what it is now; I'm not referencing my layout properly Feb 03 06:00:37 or not :\ Feb 03 07:05:29 I'm working on a headless server and for the life of me can't get an emulator up and running, it keeps bombing out after attempting to startup GL support Feb 03 07:05:49 any hints (other than -no-window, I've of course already tried that, and messing with my density config, etc..,) Feb 03 07:06:39 (I should have clarified, by "bombing out," I mean it segfaults.) Feb 03 07:13:19 nvm, found a documented bug report confirming the issue Feb 03 07:13:49 kmicinski , can I see the link? Feb 03 07:15:05 kmicinksi ++ Feb 03 07:15:55 does anyone know of a way to write a component that forces the ignoring of an intent? Feb 03 07:16:04 I'm guessing you are ssh -X ing in and starting eclipse etc? Feb 03 07:16:44 lasserix: you mean like, "i dont want anyone to every be able to use ACTION_SEND" or something ? Feb 03 07:17:10 not starting eclipse actually, I can forward the X session and start (e.g.,) android Feb 03 07:17:25 but the real use case is that I have a test server which runs headless Feb 03 07:17:56 uhh in particular my lowest end test device suffered steam(?) damage and now constantly (i'm guessing) causes the camera to start all the time--like every other letter in a text message while typing Feb 03 07:18:10 thought it might be an interesting excerise to "ignore" an intent broadcast Feb 03 07:18:19 lasserix , Package Manager setComponentEnabledSetting Feb 03 07:18:33 I am completely new to android, I need to copy a zip file from my assets folder during apk install time and extract the zipfile in the sdcard.. Feb 03 07:18:40 how do i do that ?? Feb 03 07:19:22 jda2000 thanks Feb 03 07:19:31 jda2000: http://code.google.com/p/android/issues/detail?id=34233 Feb 03 07:20:05 kmicinski , Thanks! Feb 03 07:25:54 addy_c , I'm not aware of any way to get control during the install. Feb 03 07:26:21 addy_c , but I'm new. Feb 03 07:27:40 jda2000 , there is a way to chk if a file already exists in a specified location ? cant we use that as a work around ? Feb 03 07:30:23 addy_c I guess. Feb 03 07:35:10 jda2000 , http://stackoverflow.com/questions/2227604/is-there-on-install-event-in-android Feb 03 07:36:29 addy_c , cool! Feb 03 07:45:33 i dont think you can catch your own install intent though :) Feb 03 07:45:57 is it common for proguard to f*ckup references ? Feb 03 07:46:08 hm Feb 03 07:46:15 or am I special Feb 03 07:46:23 I think you're meant to do it during first run... but actually there is a post-install intent, I think Feb 03 07:46:33 proguard does all kinds of interesting things; sometimes it takes lots of messing with the config file to get stuff working Feb 03 07:46:58 thats cool then, I feel less special Feb 03 07:49:16 Leeds: what do you think is better for dev now, a n7 or n10 ? Feb 03 07:49:49 given the resolution/density trick, probably an n10 Feb 03 07:49:59 yeah Feb 03 07:50:02 g00s: the cool thing about N10 is that you can use adb to emulate many other displays Feb 03 07:50:20 romainguy: yeah, somebody just posted https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Feb 03 07:50:28 i didn't know about it until now Feb 03 07:51:23 although I'd still prefer an n7 for my own use Feb 03 07:51:33 definitel Feb 03 07:51:35 definitely Feb 03 07:51:54 i think the n7 was getting a higher density display for i/o :) Feb 03 07:52:45 romainguy: do you any app to de-duplicate pictures (or any files) on your mac? Feb 03 07:53:10 forgot a word in there; this is a Cloze test :) Feb 03 07:53:50 g00s: Gemini Feb 03 07:53:54 \o/ Feb 03 07:54:01 its on sale :) Feb 03 07:54:52 thx Feb 03 07:55:11 meh, you can write your own in about 10 minutes Feb 03 07:55:34 g00s, http://marakana.com/forums/android/examples/63.html, i think this would help, what do you think ? Feb 03 07:55:51 Leeds: or buy one that already works Feb 03 07:56:34 romainguy: one review freaked me out tho, they said gemini considered some files identical when they weren't even the same size O.o Feb 03 07:56:45 bah Feb 03 07:56:51 ok, probably some idiot Feb 03 07:57:52 the other app i really like is daisydisk Feb 03 07:58:07 yep Feb 03 07:58:08 it's a good one Feb 03 07:58:30 esp. useful considering how OS X loves keeping around large files in places you can't even see in Finder Feb 03 07:58:45 Steam is pretty bad at cleaning after itself Feb 03 07:59:11 a couple of times i wound up with 0 bytes free, all shit broke loose. some system management script wasn't running Feb 03 07:59:26 i only have a 250g HD, but usually 80% free :/ Feb 03 08:00:50 crap, 16gb n10 is $400. i can get a camera for that. this is a major decision :| Feb 03 08:01:15 i was hoping 300/350 Feb 03 08:01:33 $400 is pretty cheap considering the hardware in that thing Feb 03 08:04:29 romainguy: do you know what happened to android@home? they were going to use 6LoWPAN which is something i'm very interested in Feb 03 08:05:05 but that was 2011 Feb 03 08:06:30 the Android bulb was using 6LowPAN Feb 03 08:10:47 i'm kinda pissed that Jakob Nielsen's "Mobile Usability" uses the Kindle Fire as the android representative in the tablet studies Feb 03 08:13:02 hey guys, I'm using this library: http://loopj.com/android-async-http/ and I'm trying to figure out how to block my outer task until the onSuccess of the JsonHttpResponseHandler is called Feb 03 08:13:25 do I need to use a semaphore? Feb 03 08:13:51 or something like that... I recall there being something just for this purpose Feb 03 08:14:22 is that lib even worth it? is it so hard to do this on another thread :/ Feb 03 08:15:05 its persistentCookieStorage thing is useful, and it does do some abstraction for me Feb 03 08:15:10 I think I will need to use a semaphore for this Feb 03 08:15:20 stores cookies in the preferences ? Feb 03 08:15:25 is that nasty ? Feb 03 08:18:52 I don't know, you tell me? Feb 03 08:18:56 seems to work for me... Feb 03 08:19:55 use it until your requirements outgrow its functionality Feb 03 08:21:47 for interest's sake, what would I do after that point? Feb 03 08:22:22 depends on what the requirements are that it couldn't satisfy Feb 03 08:22:59 also, I'm honestly not liking this idea of needing to use a semaphore and manual thread sleeping to actually get the information out of these asynchronous methods... Is there any way I can make them block? Feb 03 08:23:19 I guess "not using that library" would be a good one... Feb 03 08:24:06 why are you blocking for the result? seems counter intuitive given the fact that the library's main purpose is asynchrony Feb 03 08:25:04 Good point... I'll have a rethink Feb 03 08:25:06 w32stuxnet: you may be able to use CookieSyncManager Feb 03 08:25:24 webview uses it, but i think you can too Feb 03 08:26:10 I'm surprised Instagram and Pinterest use that library... Feb 03 08:59:01 damn.. I didn't expect the nexus 7 to have insane bugs like this Feb 03 08:59:07 it basically bricked itself Feb 03 08:59:54 well IF it was nothing you did/could have done, return it Feb 03 09:00:03 a known issue it appears, but the fixes I find don't work - I have a very hard time getting into the boot menu at all Feb 03 09:00:04 simples Feb 03 09:00:35 sure, I can claim warranty, esp. with the online reports of the issue Feb 03 09:00:53 online reports ? link ? Feb 03 09:01:31 https://www.youtube.com/watch?v=tpse648gCcI <- It's in this state Feb 03 09:01:44 battery is completely flat and it dan't charge anymore in its current state Feb 03 09:02:20 not exactly a reported issue Feb 03 09:02:23 http://www.droid-life.com/2012/12/27/fix-nexus-7-refusing-to-charge-try-this-trick/ workaround that doesn't work for me Feb 03 09:02:28 as in 1 youtube vid Feb 03 09:02:54 "n fact, if you let your Nexus 7 die completely, you may run into a screen flashing or pixel party experience once plugged into a charger that won’t bring you joy. The device, at least mine and in others’ cases, won’t turn on with any combination of button pressing." Feb 03 09:03:27 iivvoo did you customise it in any way ? Feb 03 09:03:36 root ? rom ? anything ? Feb 03 09:03:41 no Feb 03 09:03:47 simple RMA then Feb 03 09:04:42 I know.. it's just disappoiting. I just bought the device two weeks ago Feb 03 09:05:08 I did enable developer options / usb debugging Feb 03 09:05:18 but that shouldn't make a difference Feb 03 09:08:34 nope Feb 03 09:08:46 but if you want to chat about it this isn't really the channel Feb 03 09:08:54 go vent on #xda-devs Feb 03 09:08:57 :) Feb 03 09:10:30 so.... apparently its now illegal to unlock/root your phones Feb 03 09:10:30 http://mashable.com/2013/01/23/unlocking-cellphones-illegal/ Feb 03 09:10:53 only in states Feb 03 09:10:55 :) Feb 03 09:11:20 and it's only illegal, not unlawful Feb 03 09:11:38 legality and the law, 2 very diff things Feb 03 09:11:43 StingRay_I know it's not - wasn't a support request, just a bit of whining and a warning to co-developers in general Feb 03 09:12:44 StingRay_: its still a step into the "wtfness" of the world and how the DCMA act can start prohibiting this Feb 03 09:12:56 looks like SOPA decided to reincarnate early Feb 03 09:13:07 at least the intentions behind sopa* Feb 03 09:13:52 trinity like i said, most of the time I have little to do with legality Feb 03 09:14:09 tis about jurisdiction Feb 03 09:16:46 StingRay_: from what i understand illegality is worse than unlawful Feb 03 09:17:03 trinity eww no Feb 03 09:17:08 it is unlawful to jaywalk but it is not expressly illegal, whereas it is illegal to sell crack Feb 03 09:17:22 law = murder, theft, harm = injured party Feb 03 09:17:41 legality = commercial statues etc Feb 03 09:17:47 eg no injured party Feb 03 09:18:10 http://www.straightdope.com/columns/read/1609/whats-the-difference-between-unlawful-and-illegal Feb 03 09:18:41 ah now thats on about another entity Feb 03 09:18:46 contract law Feb 03 09:18:54 ive ready many other articles regarding the subject and they all seem to point unlawful = civil; illegal = state Feb 03 09:18:56 that by def. is LAW between parties Feb 03 09:19:29 Is there anywhere a good dev guide on quick action design? Feb 03 09:19:54 quite easy though, "can you find an injured party" can "they prove definitive losses" Feb 03 09:20:01 StingRay_: in either scenario why wouldn't you be concerned that the government has deemed unlocking phones as illegal acts? Feb 03 09:20:30 trinity A) because it's legality and B) cause it's a statute or act Feb 03 09:20:49 with highly unlikely case of being thrown into jail Feb 03 09:21:53 sorry, still don't understand. regardless, to each his own Feb 03 09:21:54 trinity: by all means I will step into court if I have harmed or caused loss in any way... but without that it's a commercial exercise that would need to be bound by contract and terms Feb 03 09:22:18 it is bound by contract and terms, its in fine print in your contract when you purchase the device Feb 03 09:22:28 it states that you are explicably "leasing" the device until the term ends Feb 03 09:22:44 in which afterwards you would be capable of unlocking/rooting Feb 03 09:22:49 in a legal manner Feb 03 09:22:56 no it;s not about rooting Feb 03 09:23:03 it's about unlocking Feb 03 09:23:17 but no, the contract is signed by one party Feb 03 09:23:23 thats not a "contract" Feb 03 09:23:27 thats an agreement Feb 03 09:23:40 and holds little weight if you want it to Feb 03 09:23:49 oh, my mistake unlocking and rooting are two separate items Feb 03 09:23:53 but neways, wrong channel for this type of discussion Feb 03 09:24:19 mhmm, but in that case i would be less inclined to rant haha. Feb 03 09:24:30 always remember though, a contract requires, "due consideration" (meeting of minds) and 2 signatures Feb 03 09:24:39 ;) Feb 03 09:25:13 trinity: did you see this (many different articles about the same topic) http://www.zdnet.com/yes-u-s-authorities-can-spy-on-eu-cloud-data-heres-how-7000010653/ Feb 03 09:25:15 mhmm you do have a point there, so to my understanding then the agreement simply asks you not to unlock the phone haha Feb 03 09:25:31 trinity indeed Feb 03 09:25:37 and I can change my mind ;) Feb 03 09:25:39 its so unfortunate; everybody things i'm a nut for not wanting to use the cloud Feb 03 09:26:01 g00s: sorry that doesn't concern me, never used cloud for private items and never will Feb 03 09:26:07 "you bastards" Feb 03 09:26:10 whether its google stuff, or whatever … but as always, what is legal is a constantly shifting thing and we dont decide that Feb 03 09:26:12 stop spying on me NOW Feb 03 09:26:40 but this does effect us in some way, as mobile devs, because the cloud is often the focal point of the UX Feb 03 09:26:44 i place the same mindset in my privacy, uploading of data, and internet trail as I do with java access modifiers :) Feb 03 09:26:48 since people expect things to sync, etc Feb 03 09:27:12 for example, anything like wunderlist or evernote Feb 03 09:27:25 why wouldn't end to end encryption sort that ? Feb 03 09:28:08 i'm not an expert here, but i would assume the syncing algo would need semantic knowledge of the pieces to best handle collisions in updates Feb 03 09:28:20 so , how would you do that when everything is encrypted ? Feb 03 09:28:47 ehh maybe in the future most devices would support cloud syncing to their on private cloud. As in defined in the device when asked to upload to a cloud storage Feb 03 09:28:59 not sure if this functionality has been added already or not Feb 03 09:29:01 i mean, if you are kim.com it probably doesnt matter - you upload file, download file, heh Feb 03 09:29:11 :) Feb 03 09:30:01 trinity: unfortunately, it seems like android is going the other way - becoming more dependent on google services Feb 03 09:30:05 man, i hate clouds Feb 03 09:30:15 except when i'm taking pictures :D Feb 03 09:30:35 would be an interesting experiment/app to interuppt cloud data and proxy to your own Feb 03 09:30:45 O.o Feb 03 09:30:51 you are going to mock gmail ? Feb 03 09:31:17 http://www.youtube.com/watch?v=gKAC69mGJYw и смотрел оригинал Feb 03 09:31:29 sorry, wrong window ... Feb 03 09:31:33 g00s: how so? Feb 03 09:31:43 so anyhow, i wish there was a shift in thinking … where yeah, i would buy evernote, and i would also buy the sync/cloud part to put on my own hw Feb 03 09:31:58 even if it was on a pogo plug or something :P Feb 03 09:32:10 or raspi :) Feb 03 09:32:42 well i think after a while it might catch on with all the new laws coming into play Feb 03 09:33:06 but really haha its not the general public who decides to shift in the mentality but the developers :) Feb 03 09:33:17 or we're all distracted by more tangible invasions of privacy like drones, etc Feb 03 09:33:33 try explaining net neutrality to your average joe; they don't get it Feb 03 09:33:37 they cant see it Feb 03 09:33:55 how sopa/fisa work .. this is over the head of most people Feb 03 09:34:00 or patriot Feb 03 09:35:20 ehh, i thought i knew what my ideas were at first but gradually theyve begun to shift Feb 03 09:35:33 ideas or ideals ? Feb 03 09:35:38 ideals* Feb 03 09:35:49 character is not a static thing :) Feb 03 09:35:56 and now they've been completely dismantled, no idea what i want Feb 03 09:36:21 disillusioned, i see pros and cons to SOPA. being a developer and born into the WWW era i see more cons Feb 03 09:36:37 but it depends on how the government decides to use it Feb 03 09:37:08 i think google reported the other week that requests are skyrocketing Feb 03 09:37:24 if it was not corrupt i wouldn't be scared but seeing it as it is now i'm fairly concerned but still disillusioned that unless the human morality issue is solved nothing will ever be solved Feb 03 09:37:30 requests for what? Feb 03 09:38:16 govs always use it against you to protect them selfs in any country in all times Feb 03 09:38:39 trinity: https://www.eff.org/deeplinks/2013/01/google-releases-transparency-report-showing-us-surveillance-requests-33-last-year Feb 03 09:39:07 SEO Feb 03 09:39:13 i could feel it coming Feb 03 09:39:46 trinity: so the app i'm working on now, its definitely a troublemaker. trying how to bundle the server bits - stand up my own stuff or allow others to do it Feb 03 09:40:58 g00s: ahh sounds interesting, i feel that you have a strong stance against sopa/acta and are actively trying to do your part in privacy and anonymity Feb 03 09:41:10 yea, working on a few things Feb 03 09:41:25 and to that in my own developer ways, i salute you :) Feb 03 09:41:26 i'm going to be on a few lists :| Feb 03 09:42:04 hopefully once i become a better programmer and learn more about servers i can join the ranks of neutrality on the web Feb 03 09:42:10 to help* Feb 03 09:42:36 i'm going to have to work with others on this - other troublemakers ;) Feb 03 09:43:04 eff/aclu, etc Feb 03 09:43:37 ah, now i know why JakeWharton is always on when i am. he's an undercover FBI agent Feb 03 09:44:04 one more try, anyone has a good reference on creating and managing quickActions for a ListView? Feb 03 09:45:00 I was looking into the android contacts app Feb 03 09:45:06 but I'm a bit confused Feb 03 09:46:18 g00s: so 8 years ago i had an idea of communicating in popular MMORPG as a form of "transparent" communication Feb 03 09:46:27 was looking here: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/contacts/ContactsListActivity.java#ContactsListActivity.ContactItemListAdapter.bindView%28android.view.View%2Candroid.content.Context%2Candroid.database.Cursor%29 Feb 03 09:46:46 3 years later some taliban infantry exposed that idea to the news =[ Feb 03 09:47:17 heh Feb 03 09:49:16 * hackkitten waves at g00s o/ Feb 03 09:49:23 hi hackkitten Feb 03 09:49:37 (a fellow troublemaker) Feb 03 09:49:39 XD Feb 03 09:50:16 hush.... jakewharton is logging... (joking) Feb 03 09:51:00 JakeWharton: did you see the Flint mobile payment system? Feb 03 09:51:08 g00s > plural of Nexus is nexus or nexuses, BTW ;) Feb 03 09:51:21 oh :| Feb 03 09:51:32 nope Feb 03 09:51:59 no card reader, just CV reads card details Feb 03 09:52:28 nice. a couple others do that Feb 03 09:52:29 never ends well Feb 03 09:52:50 how do I make something like http://i.stack.imgur.com/7SIKL.png ? Feb 03 09:52:58 you could sign up and go wild with this: https://twitter.com/NeedADebitCard Feb 03 09:53:24 Quacked dialog and spinner ? Feb 03 09:55:04 ok Feb 03 09:55:22 that's a NumberPicker Feb 03 09:55:25 not a Spinner Feb 03 09:56:14 JakeWharton hence the question mark :) Feb 03 09:56:51 oh yeah, but on < 3.0 it will be those 2 up/down buttons ? Feb 03 09:57:19 yes Feb 03 09:57:25 SimonVT backported it though Feb 03 09:57:55 oh? Feb 03 09:58:16 https://github.com/SimonVT/android-numberpicker Feb 03 09:59:25 thanks Feb 03 09:59:45 JakeWharton whats nineOldAn* lib? Feb 03 09:59:57 backport of the new animation framework Feb 03 10:00:33 g00s: that article does not actually say "how" the spying is done, despite the title of the article Feb 03 10:01:05 bitHipy: which one, the EFF one ? Feb 03 10:01:15 or the EU one ? Feb 03 10:01:34 we'll probably never have the details, realistically Feb 03 10:01:53 the zdnet eut one Feb 03 10:02:00 s/eut/eu/ Feb 03 10:02:36 Quacked, https://github.com/mrn/numberpicker I use this, its looks on <3.0 as native and >=3 holo Feb 03 10:02:37 if you figure out how, let us know :) Feb 03 10:03:05 legal details are not secret Feb 03 10:03:19 a codified statute is necessarily public Feb 03 10:04:03 a lot of EU services use US-based servers for the cheap price Feb 03 10:04:26 and obvisouly in that case the data is open game to the US Feb 03 10:05:33 Udmurt: I don't know how to use such libraries :) Feb 03 10:05:58 if google were that concerned in user privacy they could make it impossible to read registered user data, either history or gmail, could they not ? Feb 03 10:06:25 they have to read your email to target you for advertisements :| Feb 03 10:06:41 well, yes no Feb 03 10:06:50 but as far as internet searches, i'm not sure if they really need your IP Feb 03 10:06:51 there are other ways like uuid that is nameless Feb 03 10:06:57 they could probably use some opaque id Feb 03 10:06:59 that still has their data attached Feb 03 10:07:38 Quacked, nuber picker from simonvt has samples Feb 03 10:09:25 whats an easy way to get a unique string reference to any instance of an activity ? toString() ? Feb 03 10:09:43 or a fragment Feb 03 10:09:56 why do that ? you'll get some weird memory id or something Feb 03 10:10:04 but yeah, that will work Feb 03 10:10:12 oh tis for indexing Messengers Feb 03 10:10:24 well referencing Feb 03 10:10:34 like activity registeres to service Feb 03 10:10:36 that seems … stinky Feb 03 10:10:50 ok, better question then Feb 03 10:11:25 how would I make it so that a service not only updates Messengers that have called a function but also interested parties tied to that data Feb 03 10:11:40 use an event bus Feb 03 10:11:44 I was going to register the data id along with a string ref Feb 03 10:11:46 if its in the same process you could use a service bus Feb 03 10:11:56 g00s: are tehre any like "alert" searches? Feb 03 10:11:57 i'm biased, but http://square.github.com/otto/ is my favorite Feb 03 10:12:16 usually Messenger is used when stuff is not in the same process though Feb 03 10:12:23 g00s: like if you search "how to murder someone and get away with it" or something like that Feb 03 10:12:23 * g00s looks at StingRay_ Feb 03 10:12:46 trinity: we would not know Feb 03 10:13:12 the NSA isn't going to tell you, if , what, and where it stores stuff Feb 03 10:14:20 i always thought one of the sucky things about Messenger was the the Message.object could not be a custom parcelable Feb 03 10:14:39 if I want to make a numberpicker like that myself, do I use Dialog or DialogFragment and NumberPicker ? Feb 03 10:14:40 or the Message data, can't remember Feb 03 10:15:02 hmm, not sure about google but it seems like something facebook would do Feb 03 10:15:25 trinity: fb does have a team of humans going over stuff , heh Feb 03 10:15:40 Hey guys..!! A newbie here.. Just wanted to ask if anyway that Eclipse could help me put an onClick method..? Feb 03 10:18:30 trinity: have you read this? http://www.amazon.com/Three-Felonies-Day-Target-Innocent/dp/1594035229 Feb 03 10:21:09 Quacked, https://github.com/SimonVT/android-numberpicker if this you have to place it on dialog or if you use https://github.com/mrn/numberpicker it's already have dialog and preference Feb 03 10:23:07 ne1 have a n10 ? Feb 03 10:23:18 and is it worth it for the diff device emu stuff ? Feb 03 10:23:29 well different screen density Feb 03 10:24:42 g00s: hmm no, but it would be an interesting read Feb 03 10:24:51 it would be ironic if by purchasing it thats how they track you :) Feb 03 10:25:07 how should I import the last one as library into my current project? Feb 03 10:25:18 in Eclipse Feb 03 10:26:36 I mean guys.. How do I ask Eclipse to put up an onClick method..? Feb 03 10:27:11 purezen: I don't understand your question Feb 03 10:27:18 I don't use Eclipse, but as I remember place lib folder to your project libs (name it appropriate) and right click in project explorer find there import lib Feb 03 10:27:51 purezen: implement it on your activity, write a method yourself that takes a view and define it in xml, attach it to a reference of the button from within your activity Feb 03 10:27:53 trinity: get it from the library :D Feb 03 10:28:03 those are my guesses to the answer to your question Feb 03 10:28:32 purezen: those are 3 guesses btw Feb 03 10:28:45 stingRay: Thanks for that.. Feb 03 10:28:47 separate Feb 03 10:28:59 stingRay: ok.. go on..:) Feb 03 10:29:31 purezen: well it depends on what you want Feb 03 10:29:57 are you holding an instance to the button in your activity ? Feb 03 10:30:04 stingRay: I have a button here.. defined in XML.. and want it to produce a log.d when it is clicked.. Feb 03 10:30:29 StingRay_: I dont know how to declare it.. Feb 03 10:30:37 oh Feb 03 10:31:03 purestrain: in the xml you can do android:onClick="method" Feb 03 10:31:05 purezen: * Feb 03 10:31:12 well easy way then, define a method that takes a View Feb 03 10:31:19 then do what Quacked said Feb 03 10:31:23 is there a way to make android apps not with JAVA, I mean with c++ Feb 03 10:31:36 Key-Real, NDK Feb 03 10:31:57 StingRay_: What shall I pass in the onClick method (if that's what you mean..)..? Feb 03 10:32:07 a View Feb 03 10:32:11 Quacked: I didn't get you.. Feb 03 10:32:26 StingRay_ : which View..? Feb 03 10:32:41 it's an imput from a click event Feb 03 10:32:51 so just "a View" Feb 03 10:33:01 in you Activity do: public void coolMethod(View v){ log.d("quack", "quack"} Feb 03 10:33:16 and in your XML at your button you do android:onClick="coolMethod" Feb 03 10:33:34 ammended : public void coolMethod(View v){ log.d("quack", "quack");} Feb 03 10:33:43 :) Feb 03 10:33:44 StingRay_: ok..:) Feb 03 10:33:47 :) Feb 03 10:33:53 Quacked: That's cool...:) Feb 03 10:34:14 Anyways guys.. why dont we pass a button here..? Feb 03 10:34:24 public void reallyCoolMethod(View v){ log.d("String", "Ray_");} Feb 03 10:34:30 hehehe Feb 03 10:35:03 purezen, why you ned button? Feb 03 10:35:09 distasteful method : public void StingRay(View v){ log.d("Steve", "Erwin");} Feb 03 10:35:11 g00s: anonymous email + your regular overspoofed vpned proxied laptop in a starbucks + visa gift card purchased in cash and then ill be able to purchase it :) haha Feb 03 10:35:48 Udmurt: Just beginning with android development.. Feb 03 10:36:07 StingRay_ Quacked: Ok.. Thanks..!! Feb 03 10:36:51 you can find reference to button and save it in your variable via findViewById Feb 03 10:37:35 but do it once in activity creation after setContentView Feb 03 10:38:16 what do I have to do to get the numberpicker library working after I've put the lib content into my project's lib? Feb 03 10:38:25 (still eclipse) Feb 03 10:39:25 Quacked: use it ? create instance I would assume ... there was examples no ? Feb 03 10:39:52 I mean, do I have to update my project or something Feb 03 10:40:05 I'm not sure how to import it Feb 03 10:40:08 Quacked, yes you have to import lib Feb 03 10:40:45 hi guys, it there a way to force the problems tab to show all the errors in a project and not only the first 100? Feb 03 10:41:26 import how? the examples use import com.michaelnovakjr.numberpicker.NumberPickerDialog; Feb 03 10:42:34 maybe I should have put the library into its own folder within libs? Feb 03 10:43:01 yes, it must reside in separate folder in libs Feb 03 10:43:14 ok Feb 03 10:43:27 Quacked: Thanks.. And do I have to edit any xml file..? Feb 03 10:43:32 and than tell eclipse import it to project tree (or something) Feb 03 10:43:42 Udmurt: oh, ok Feb 03 10:45:01 purezen: yeah, you have to edit the XML for the button you've made Feb 03 10:45:03 I think right click on package explorer and "Build path" that;s you need Feb 03 10:45:22 Quacked: ok.. which one..? Feb 03 10:47:06 purezen read up in this chat, tis there Feb 03 10:47:13 the propery "onClick" Feb 03 10:49:45 StringRay_: Thanks.. Got it working..!! Feb 03 10:52:26 Is it possible to decrypt a 192-BIT File just with the key and file? Feb 03 10:52:43 (AES) or does it need more requirements? Feb 03 10:55:57 is there a way to brows through the android structure a easy way or should I allways use "adb shell" ? Feb 03 10:57:00 Key-Real: the file explorer in DDMS Feb 03 10:57:37 what are you browsing for ? Feb 03 10:58:20 wanna remove my "hallo world" app I installed on the device Feb 03 10:58:34 why not drag it to uninstall ? Feb 03 10:58:39 on the device ? Feb 03 10:58:43 hey guys, I have an asynctask executing in my onCreate method - it is executing before the UI is shown - is there a way to force the UI to draw before the asynctask starts? Feb 03 10:59:04 w32stuxnet no Feb 03 10:59:12 but the other way round would work :) Feb 03 10:59:22 StingRay_: drag it where? Feb 03 10:59:28 bummer.... Feb 03 10:59:31 I'm new at this Feb 03 10:59:46 Could I delay the execution of the asynctask perhaps? Feb 03 10:59:46 w32, are you executing it after setContentView? Feb 03 10:59:49 Key-Real: you need to read up on basics of android Feb 03 10:59:56 this isnt android help Feb 03 11:00:00 yes, thrue Feb 03 11:00:02 tis android development help Feb 03 11:00:04 :) Feb 03 11:00:17 w32: not sure if there is a simpler way, but an easy way is to just use a handler with a runnable that starts the task, using postDelayed Feb 03 11:00:41 ok! Thanks lasserix and StingRay_ Feb 03 11:01:00 key-real: you can also just do it through settings Feb 03 11:01:35 settings->apps->find yours & delete Feb 03 11:02:29 Yes, thx Feb 03 11:03:02 but what about browsing throught the system? Feb 03 11:03:39 Key-Real: is that a question ? Feb 03 11:03:46 yes Feb 03 11:04:01 ok, what about, what about browsing though system ? Feb 03 11:04:09 I mean I can do "adb shell ls" Feb 03 11:04:26 yeah, or use the file explorer in eclipse ddms like i said Feb 03 11:04:44 depends what your wanting to browse fore Feb 03 11:04:47 for* Feb 03 11:05:30 Udmurt: I actually can't figure out how to import the library in the Build path Feb 03 11:05:40 the options only allow for importing .jar Feb 03 11:07:51 w32stuxnet: try onStart doc claims, Called when the activity is becoming visible to the user. Feb 03 11:07:51 Followed by onResume() if the activity comes to the foreground, or onStop() if it becomes hidden. Feb 03 11:08:08 my guess is by activity becoming visible that means UI Feb 03 11:09:34 Key-real: im just assuming here... but are you trying to uninstall the hallo world app so you can mmake some modifications and then re-run? becauase you don't need to. you can just run it from eclipse again post-configurations and it would update the apk on the device Feb 03 11:11:42 ok, so it seems that "Add Class Folder button." But how do I import the library once it's added to build path? Feb 03 11:14:45 Quacked: what are you doing ? Feb 03 11:16:16 Key-Real: #android is the right channel for that Feb 03 11:16:29 ah god damn, my window was scrolled way behind, forget what i said :D Feb 03 11:16:55 :) Feb 03 11:17:03 sorry for the lame question about deliting apps :) Feb 03 11:17:45 StingRay_: I'm simply trying to import https://github.com/mrn/numberpicker to my project in Eclipse Feb 03 11:18:07 well there is on lib there to import as a jar Feb 03 11:18:15 and make sure it's in build path Feb 03 11:18:24 and the others just copy paste Feb 03 11:19:07 unless you want to clone that entirely, if you do then you use it as a library project Feb 03 11:19:18 :| Feb 03 11:19:19 but it's a bit pointless to do the latter Feb 03 11:20:30 I'm not sure how to do the first Feb 03 11:20:49 cop the jar from lib into your project/lib Feb 03 11:21:00 theres a jar? :O Feb 03 11:21:17 there is no jar Feb 03 11:21:26 thats the problem Feb 03 11:22:36 oh thought you were using the other Feb 03 11:22:42 mhm.. noone experienced in AES? :} Feb 03 11:23:24 StingRay_: chose that one since it already had a complete dialog Feb 03 11:25:38 StingRay_: know how do do it with this one? Feb 03 11:30:21 misterli: i have a ready to use string2crypt and crypt2string utlitiy using aes Feb 03 11:30:48 Quacked copy and paste ? Feb 03 11:30:52 misterli: there are variations that would need to take into account like CBC. How big is the file? Feb 03 11:31:07 Quacked: it's just java files Feb 03 11:31:49 SuD. It'S about 5MB and 192BIT AEs Feb 03 11:32:11 misterli: what is it ? Feb 03 11:32:11 But i cannot figure out how to decrypt it. There are several tutorials and similar articles but almost all are for 128 bit and/or use ivSpec? Feb 03 11:32:26 StingRay_: I renamed the lib folder to numberpicker and dragged it into my project's lib folder Feb 03 11:32:49 It's a SQLDB File. I can easy get the uncrypted file with ROOT but without it's 192bit crypted (and i've the hexkey) Feb 03 11:33:12 StingRay_: and added it as class folder under build path- libraries Feb 03 11:33:48 google says something like: openssl aes-192-cbc -d -in message.enc -out plain-text.txt Feb 03 11:34:18 yeah, there are several methods to decrypt. I tested a bunch of them and all working with just the Key. But i want to decrypt it within the android-device Feb 03 11:34:37 StingRay_: but I'm not sure where to go from there Feb 03 11:34:41 it's a part of the App which need to access the DB ;-) Feb 03 11:34:53 Quacked: they are java files Feb 03 11:34:59 copy paste Feb 03 11:35:12 into a class path location Feb 03 11:35:34 Probably the last solution is to upload the file to my webserver, decrypt it there with PHP/Python and store it back :-} Feb 03 11:36:07 into a class path location? Feb 03 11:36:17 well you package path Feb 03 11:36:20 Quacked, http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject Feb 03 11:36:23 src folders Feb 03 11:36:28 ok, thanks Feb 03 11:37:58 get AES source in C or Java and apply it if you know Feb 03 11:39:01 Could not even find a valid Java-Source to implent/use it.. But it seems that the ivSpec is only the Blocksize which is used? So it's not a "Secret-Thing" what is required to know? Feb 03 11:40:26 if it's CBC the IV needs to be known Feb 03 11:41:02 not sure how it works, but it looks that it could be stored at the begining of the stream Feb 03 11:41:21 IV is intended to be a random salt rather than a secret Feb 03 11:41:36 it could be the ZFP but then the QR would detect it Feb 03 11:41:40 Well, it's just annoying because all the Tools which are able to decrypt this do not have a fixed IV Stored Feb 03 11:41:55 that's why I just use PM and not worry about it Feb 03 11:42:24 but PM sometimes has issues with YXL but it's rare Feb 03 11:42:43 Does someone know a PS3 cfw irc server & channel? Feb 03 11:42:55 the IV should not be fixed or it would lose its function Feb 03 11:43:35 Silox|: query Feb 03 11:45:32 Just have the Source of a Python script which exactly do the job what i want (but not in java..) :-) They just have/use the HEX-Key and run decode on the file with pyCrypto (cannot see anything with ivSpec or similar) Feb 03 11:46:42 But probaby it looks lik that ivSpec is just 16-Null Bytes for decryption. That's it Feb 03 11:52:43 misterli whats the result of your efforts thus far ? Feb 03 11:52:52 as in exceptions ? corrupt data ? Feb 03 11:53:17 No results yet. Just The Exception that the keylength is not 192bits Feb 03 11:53:35 Just downloaded the JCE now Feb 03 11:54:20 and is it? how many bits or bytes is it? Feb 03 11:55:58 346a23652a46392b4d73257c67317e352e3372482177652c didnt check it but should be 192 Feb 03 11:57:02 Yes, its 192 Feb 03 11:57:24 agree Feb 03 11:57:46 is the key a String? Feb 03 11:58:15 Yes Feb 03 11:58:37 it'S to decrypt WhatsApp. There are several posts but none of them in Java ( for example: http://gonzac-studios.blogspot.de/2012/06/hack-desencriptar-y-obtener-datos-de.html ) Feb 03 11:59:39 maybe the decryption function expects a byte array or something, and you're using a textual representation of the hex dump of the key Feb 03 12:00:40 misterli your not seeing a BadPaddingExceiption in there are ya ? Feb 03 12:02:03 well according to some python doc, default mode is ECB instead of CBC Feb 03 12:02:06 which means there is no IV Feb 03 12:02:47 and which makes sense as it is a db file and app would want random access to it (which CBC would make impossible in an efficient way) Feb 03 12:03:32 Okay, sounds plausible Feb 03 12:04:42 and now i hope you're doing this for legitimate reasons Feb 03 12:05:16 Sure. The key has been published. It's to backup parts of the Database in my app ;-) Feb 03 12:10:02 misterli: are you trying to crypt your database? Feb 03 12:11:12 monsti: read upward Feb 03 12:11:19 in short no Feb 03 12:12:26 it took me ages to find out a (compatible) way to crypt/decrypt with java and .net using the same keyfiles Feb 03 12:12:55 monsti. Just try tp decrypt :-) Feb 03 12:13:03 monsti. Any results yet? Feb 03 12:13:08 yeah Feb 03 12:13:28 192bit AES / ECB? Feb 03 12:14:46 ECB always a good choice, if you want to "encrypt' something :D Feb 03 12:15:07 CBC is more secure Feb 03 12:15:16 I hope people understand the sarcasm in that, timroes Feb 03 12:15:16 http://lamahashim.blogspot.de/2009/08/encyptiondecryption-in-c-and-java.html Feb 03 12:15:22 kakazza: i hope so too :D Feb 03 12:15:27 oh got me Feb 03 12:15:35 misterli: it's C# and java Feb 03 12:15:54 from the people who implied "wireless mac" or "imei" is secret enough Feb 03 12:16:00 kakazza: but I also hope if people chose some crypto algorithms, they do at least have looked at the very basics of encryption :) Feb 03 12:16:18 Look at WhatsApp, they surely didn't. Feb 03 12:16:29 implementing security is hard. really hard Feb 03 12:16:29 haha ;) Feb 03 12:16:35 my favorit image for ECB is always: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Electronic_codebook_.28ECB.29 Feb 03 12:16:36 well - it depends on how one define "security" Feb 03 12:16:42 tip: we ARE talking about whatsapp all the time Feb 03 12:16:53 I kmow Feb 03 12:17:06 Never seen such a bad Database and Security-Concept like Whatsapp ... Feb 03 12:17:18 also, if you look at xmpp, the one alternative to whatsapp, there still is no spec for encrypted file transfers! Feb 03 12:17:27 you shouldn't need security as android provides per application isolation Feb 03 12:18:00 SuD: true but you have to separate the user from physical access to the device ;) Feb 03 12:18:08 i mean, don't blame whatsapp for bad encryption as afaik it's more than other apps do Feb 03 12:18:21 Ge0rG: does OTR encryption not work for file transfer? (not so common to xmpp proctoll, only use it :D) Feb 03 12:18:28 SuD, iirc, they didn't add HTTPS until like half a year ago? Feb 03 12:18:43 https is essential Feb 03 12:18:54 none of my apps works without http Feb 03 12:18:58 So yeah, they didn't use bad encryption. They just _didn't_ use encryption ;p Feb 03 12:18:59 ah https Feb 03 12:19:04 their client to server communication was full of bad practices, but not their local storage Feb 03 12:19:04 SuD: I would agree in that point with you. But as it seem with mobiles ppl dont care so much about security Feb 03 12:19:09 monsti++ Feb 03 12:19:20 i mean GSM is still out there Feb 03 12:19:43 and GSM is yeah... I guess one of the best examples of how not to do security Feb 03 12:19:44 well http is allowed when the WLAN is used Feb 03 12:19:46 "security" Feb 03 12:20:07 timroes: OTR _might_ be an option, but OTR has its own issues on mobile IMHO Feb 03 12:20:25 CA based SSL is kind of broken too... Feb 03 12:20:33 indeed Feb 03 12:20:39 well if you have your own CA it's ok Feb 03 12:20:50 monsti: everybody and their sister have their own CA Feb 03 12:20:59 but using custom root certificates is a pain in ass on java Feb 03 12:21:09 Ge0rG: a company CA is ok Feb 03 12:21:24 monsti: except that you need to remove the other root CAs as well Feb 03 12:21:42 Is there a convenience lib to use https for Android? Like http-request (not sure if that one already can do that) Feb 03 12:22:05 Afaik it only has .trustAllCerts() ;) Feb 03 12:22:10 lol Feb 03 12:22:23 kakazza: org.apache.http.client.HttpClient Feb 03 12:22:26 come on it at least prevents from eavesdropping Feb 03 12:22:31 custom CA with signed client based certificates Feb 03 12:22:33 that's ok Feb 03 12:22:43 SuD: it does not Feb 03 12:23:12 i mean casual eavesdropping Feb 03 12:23:49 not if they're mitm'ing you Feb 03 12:23:51 Yeah, even if you can circumvert HTTPS in some cases, it's better to use it instead of sending in plain. Least thing you can do. Feb 03 12:23:54 how can i get X,Y of two or more fingers in onTouchEvent , MotionEvent.ACTION_MOVE ? Feb 03 12:24:47 kakazza: well you avoid any stupid discussions with lawyers Feb 03 12:25:07 kakazza: "my app is as secure as your visa online card" Feb 03 12:25:47 heh Feb 03 12:26:09 mathmatical discussions on alorithms are stupid ... Feb 03 12:26:09 theodordem87_: http://stackoverflow.com/questions/8059127/android-multi-touch Feb 03 12:26:56 i also suggest my customers to use the android device encryption Feb 03 12:26:56 This is the exact code I found and it does not work. Only one x,y the first triggered is displayed Feb 03 12:27:04 so you can blame google ;) Feb 03 12:27:15 theodordem87_: do you have a multitouch device :) Feb 03 12:27:21 Offcourse Feb 03 12:27:46 It only works if I touch with a specific order Feb 03 12:28:15 Wait whut: public static void distanceBetween (double startLatitude, double startLongitude, double endLatitude, double endLongitude, float[] results) Feb 03 12:28:21 What is this? C? Feb 03 12:29:33 Silox|: underlaying I guess yes Feb 03 12:29:37 so its badly wrapped C :) Feb 03 12:30:19 I cringe seeing that in Java :P Feb 03 12:30:48 Silox|: oh and I was even wrong Feb 03 12:30:51 its also implemented in java Feb 03 12:31:15 I guess touch events have to be fast and fully blown objects would make it slower compared to primitives? Feb 03 12:31:55 And what exactly is wrong with that? As in, what would you suggest instead? Feb 03 12:32:04 float[] result Feb 03 12:32:20 could/should be a return type of the function and not a parameter Feb 03 12:32:40 what about public static float[] distanceBetween/4? Feb 03 12:39:13 I mean, how should I initiate my result array now? Feb 03 12:39:25 I can't just realloc it :/ Feb 03 12:40:25 Silox|: what? Feb 03 12:41:12 The length of the results array is variable. Feb 03 12:41:23 yeah but its your choice, what length it will have Feb 03 12:41:32 The computed distance is stored in results[0]. If results has length 2 or greater, the initial bearing is stored in results[1]. If results has length 3 or greater, the final bearing is stored in results[2]. Feb 03 12:41:53 so mainly YOU have to decide how many elements you want to give your result array Feb 03 12:42:31 and that determins (as far as i understand the calculations, I am not common to WGS84 ellipsoid) how exact your result will be Feb 03 12:43:03 ah, hm I see Feb 03 12:43:09 Trying to disable an appwidget by adding enabled=false to the receiver in the manifest, doesn't seem to work though? Feb 03 12:43:11 What's 'the initial bearing' ? Feb 03 12:43:18 https://github.com/android/platform_frameworks_base/blob/master/location/java/android/location/Location.java#L369 Feb 03 12:43:45 ah, I see :3 Feb 03 12:43:55 so distanceBetween is the actual road distance? Feb 03 12:44:01 not in birdseye? Feb 03 12:44:12 but ofc you are still right, it would be better to pass an Integer (or even better an enum) to the function at get the result as a return value, imo Feb 03 12:44:53 Myeah Feb 03 12:44:54 is anyone using this: https://github.com/cyrilmottier/Polaris? Feb 03 12:44:56 It hurtz my feelz. Feb 03 12:45:25 Silox|: (again just guessing) but as I understand that, and looking shortly at the paper, they took the formular from, it does calculate the air distance Feb 03 12:45:42 aha, I see Feb 03 12:45:57 but also for an air distance, you can get the initial and final bearing? Feb 03 12:50:42 Mhm Feb 03 12:52:27 mhm.. tried this now http://pastebin.com/3E6ew70a but i get Key Length not 128/192/256 bits.. But the Key is 192bit.. 346a23652a46392b4d73257c67317e352e3372482177652c Any idea? Feb 03 12:54:25 and the Location class wouldn't suffer from some cleanup :D Feb 03 13:00:46 why in emulator's contacts no birthdays visible? Feb 03 13:01:10 API 16 Feb 03 13:07:37 Udmurt: why are you expecting that ? Feb 03 13:07:38 :) Feb 03 13:08:51 I've created my custom account and sync, it sync birthdays also, but in emulator I don't see them in contacts, my app shows them correctly from contacts provider Feb 03 13:09:58 IS_PRIMARY and IS_SUPER_PRIMARY set - no effect Feb 03 13:10:30 or contacts app did not shows birthdays at all? Feb 03 13:10:52 "people" app does Feb 03 13:10:55 in contact view Feb 03 13:11:02 under "events" Feb 03 13:11:41 maybe I store date in wrong format yyyy-MM-dd Feb 03 13:12:35 yes, I use People app Feb 03 13:14:07 What the easiest way of using some sort of version system in Eclipse? I want to be able to save a progress so if I mess up entirely I can revert all changes Feb 03 13:14:22 git Feb 03 13:14:42 I use mercurial Feb 03 13:14:48 same ^ Feb 03 13:14:49 I dn;t know baout IDe ntegration though Feb 03 13:14:55 -typos Feb 03 13:15:02 eclipse has mecurial Feb 03 13:15:06 addon Feb 03 13:15:14 and git also Feb 03 13:15:23 I ues 3 different IDEs and external intergration so I just use tortoiseHG Feb 03 13:15:36 wtf am I typing?? Feb 03 13:15:53 I use 3 different IDEs and external applications so I just use tortoiseHG Feb 03 13:16:17 but do you save progress to the cloud or to local drive? Feb 03 13:17:08 vcs is always save to your drive Feb 03 13:17:15 git ftw Feb 03 13:17:31 and you can sync it with remote repositories if you whant Feb 03 13:18:28 all my repos are local but a fe I push to bitbucket Feb 03 13:19:31 is it possible to emulate some device in android emulator? for example samsung on lg? Feb 03 13:19:43 * or lg Feb 03 13:19:55 no and yes Feb 03 13:20:06 no as in the rom that they use Feb 03 13:20:25 yes as in screen characteristics and basics Feb 03 13:20:37 mhm.. tried this now http://pastebin.com/3E6ew70a but i get Key Length not 128/192/256 bits.. But the Key is 192bit.. 346a23652a46392b4d73257c67317e352e3372482177652c Any idea? s.getBytes("UTF-32BE").length returns 192 Feb 03 13:21:55 misterli: I take it you have attempted to encode and decode a simple file? Feb 03 13:22:21 Yes Feb 03 13:23:08 if i use bytes = new BigInteger(s, 16).toByteArray(); as SecretKeySpec Key it works but the File is corrupt Feb 03 13:25:36 wrong instance call on cypher ? Feb 03 13:25:45 not that I know anything about encryption Feb 03 13:25:54 This maps API, uuuurgh. Feb 03 13:25:59 other than they changed the default in >=4.0 Feb 03 13:29:48 SimonVT: does "menu_arrow" get hidden if i have background on whole layout and on every item.. because i cant manage to see it.. maybe it is because i am using android 2.3 for testing.. maybe animation just wont work on it :) Feb 03 13:30:45 No, it's drawn on top of anything else Feb 03 13:36:21 Is there a good Tablet Fragment tutorial, maybe even with a sample app? Feb 03 13:36:54 I think your just looking for a "fragment" tutorial Feb 03 13:37:05 tablet/phone are design orientated Feb 03 13:37:36 I specifically want to see an elegant, proper example of how people do it for the tablet. Feb 03 13:37:48 I read https://developer.android.com/guide/components/fragments.html#Example but it's just one little thing, not a whole app so to say Feb 03 13:37:59 I already use Fragments on the phone. Feb 03 13:38:33 kakazza, http://developer.android.com/training/implementing-navigation/descendant.html Feb 03 13:38:46 and http://developer.android.com/training/multiscreen/adaptui.html Feb 03 13:42:37 folks Feb 03 13:42:52 why back button on samsung s1 erase session data? Feb 03 13:44:31 session data ? Feb 03 13:45:51 I found "real" Samsung ROM! http://developer.samsung.com/remotetestlab/rtlDeviceList.action Feb 03 13:46:15 you can use for free device emulator over internet Feb 03 13:47:15 I think ABD is not available thru this, but better than nothing. Feb 03 13:49:02 Udmurt: Thanks, didn't know about the descendant article Feb 03 13:53:48 Udmurt: error page Feb 03 13:54:22 maybe need to register? Feb 03 13:54:45 how did you get to that link? Feb 03 13:55:09 ah, found it under devices Feb 03 13:56:03 samsung gives 20 credits per day 2 credits 30 minutes reserve Feb 03 13:56:12 of device Feb 03 14:01:20 im having a difficulty with the Apache HTTPClient library, every time i flush the OutputStream in my AbstractHTTPEntity, it beings by appending the length of data to be written, in ASCII hex Feb 03 14:01:24 any ideas? Feb 03 14:02:39 to the extent that when the stream closes, it also outputs a 0, as there is nothing else to write Feb 03 14:04:45 it almost looks like it is trying to force chunked transfer encoding on me Feb 03 14:06:27 yep, nevermind, thats what its doing :/ time to find a way to switch that off Feb 03 14:10:19 great, AbstractHttpClient is ignoring .setChunked(false), and still formats the outputstream in chunks Feb 03 14:10:30 AbstractHttpEntity^ Feb 03 14:24:08 So when I finally was able to use https://github.com/mrn/numberpicker , I found out that it's not possible to scroll/slide to select numbers. It appears you have to hold the arrows. Feb 03 14:24:44 It's too slow like this since I want numbers from 1-99 Feb 03 14:25:31 Quacked use SimonVT one Feb 03 14:25:41 he's seems like a competent fellow Feb 03 14:25:47 Hehe Feb 03 14:31:40 mbarisa: Sooo. You here again? Feb 03 14:31:47 marrrk: as i said :D Feb 03 14:31:53 Impressive Feb 03 14:32:04 ;) Feb 03 14:32:14 man of his word! Feb 03 14:32:16 nothing else Feb 03 14:32:23 Have you seen the ViewPagerSample? Feb 03 14:32:33 yes why? Feb 03 14:32:51 I simply want that but with different fragments Feb 03 14:33:01 In the sample clicking on a menu item doesn't do anything. Feb 03 14:33:17 ok.. lets go on pvt, to not bother anyone with our stupid stuff :) Feb 03 14:41:47 what would be my best bet if I want to use a python library in my android app? something like Py4A? Feb 03 14:45:10 StingRay_: so I copied nineoldandroids.jar into the project /lib/, went into build path - libraries - add jars and chose the jar. I then copied the package /src/net/simonvt/widget into my /src/ so it made package called net.simonvt.widget. In NumberPicker.java it says R cannot be resolved to a variable. Feb 03 14:49:20 Overv: the best way is to avoid this at any cost Feb 03 14:49:55 Overv: what does the library do? String output=SomeLibrary.Function(intput); ? Feb 03 14:49:55 monsti: I realise this, but there is really no alternative apart from running it as a web service Feb 03 14:50:08 monsti: I can bring it down to that, yes Feb 03 14:50:31 Overv: rewrite it in java Feb 03 14:50:41 monsti: It's a full computer algebra system Feb 03 14:51:24 Overv: ok - one second i am looking for some link Feb 03 14:51:37 Sorry, I thought we were just talking about how much interfacing between java and python needs to happen Feb 03 14:52:18 Overv: http://code.google.com/p/android-scripting/ Feb 03 14:52:43 how much overhead do you think that will have? e.g. the memory footprint Feb 03 14:52:53 Overv: i am not sure if you can start an intent with "input" an "output" but this should be easyly added Feb 03 14:53:05 Overv: basically you can't tell anythink about that Feb 03 14:53:28 monsti: oh, I'd prefer to have it all included in the same application if that is possible Feb 03 14:53:31 Overv: you have 20/32/40mb of ram in one android porocess Feb 03 14:53:48 Overv: ok so check android-scripting Feb 03 14:53:58 extract all native libraries (for python) you need Feb 03 14:54:20 there is a jini interface for calling the native C stuff Feb 03 14:54:45 alright Feb 03 14:54:45 you can use that without the android-scripting binding stuff Feb 03 14:54:59 I know the python process in windows with that library loaded uses about 30 MB of memory Feb 03 14:55:02 is that bad for an android app? Feb 03 14:55:06 well ;) Feb 03 14:55:06 I shouldnt import R, should I? :S Feb 03 14:55:25 never import R Feb 03 14:55:50 Overv: consider doing this online (if it's possible) Feb 03 14:56:15 monsti: it is possible, but it would be a huge bonus if my app worked without an internet connection Feb 03 14:56:55 I guess I'll play with it for today and see if it's worth the trade offs Feb 03 14:56:57 Overv: i added a javascript engine to my project Feb 03 14:57:14 Overv: i did this after doing 2-3 months of research Feb 03 14:57:50 I once used Lua with JNI, but I imagine that that is wildly different with its small memory footprint and standard library Feb 03 14:57:51 perhaps I shouldnt have NumberPicker.java in net.simonvt.widget package but instead in my normal package? Feb 03 14:58:03 Overv: there are lua bindings Feb 03 14:58:04 Hi all Feb 03 14:58:16 Overv: javascript runs native in java via rhino Feb 03 14:58:21 monsti: I was in the "not invented here" mood and decided to do it myself :P Feb 03 14:58:25 that's why i decided to use it ;) Feb 03 14:58:28 was my first NDK experience Feb 03 14:58:45 I created a custom DialogFragment View, and when inflating it, it has annoying black padding on the top and bottom, any Idea how to get rid of that? Feb 03 14:59:31 monsti: thanks for the help. time to boot into linux now because compiling this on windows is going to be a nightmare Feb 03 15:06:47 StingRay_: so I had to do import com.example.mypackage.R; , but now I get stuff like "NumberPicker_solidColor cannot be resolved or is not a field" and "NumberPicker_solidColor cannot be resolved or is not a field" Feb 03 15:08:11 are you aware if resources in android ? Feb 03 15:08:25 values, layouts, id's , colors etc Feb 03 15:08:35 drawables Feb 03 15:09:00 cause I think you should learn a bit of all that Feb 03 15:09:08 is android open source? Feb 03 15:09:10 then you wont have these problems Feb 03 15:09:15 where can i download android source code?? Feb 03 15:09:25 vansonhk_: read the channel topic, maybe? Feb 03 15:09:44 StingRay_: yeah, they are in their right place Feb 03 15:10:52 so you merged them ? or copied over yours ? Feb 03 15:10:59 merged Feb 03 15:11:31 and do they exists/are built in your R* ? Feb 03 15:12:38 ? Feb 03 15:12:46 hmm Feb 03 15:13:36 ok what did you "merge" ? Feb 03 15:14:12 anything ? Feb 03 15:14:57 I copied the files from the libs folder. IIRC, nothing needed merging Feb 03 15:15:14 for values it used np_strings.xml etc instead of strings.xml Feb 03 15:15:52 ok you really should learn about android resources Feb 03 15:16:06 types and how they are handled Feb 03 15:16:31 nobidy ever delt with quickAction? Feb 03 15:16:33 as in name=int Feb 03 15:17:16 StingRay_: was that wrong? Feb 03 15:17:38 the only wrong is your attempting to do something that you dont understand Feb 03 15:17:43 but with 10 minutes reading Feb 03 15:17:47 all that is solved Feb 03 15:17:49 resouces Feb 03 15:17:51 trust me Feb 03 15:18:44 thought I had some understanding of it already Feb 03 15:19:06 it's just this library messing everything up :P Feb 03 15:19:16 not really Feb 03 15:19:18 I blame SimonVT Feb 03 15:19:35 oh god yes, blame him anyway! Feb 03 15:20:17 huh, I've just had eclipse loose ability to do src searches in debug Feb 03 15:20:19 how odd Feb 03 15:20:45 What part of the resources is it you think I dont understand btw? Feb 03 15:20:58 oh, most of it Feb 03 15:21:01 I might have phrased myself poorly Feb 03 15:21:04 but specific to this Feb 03 15:21:07 maybe colors Feb 03 15:21:24 colors? :O Feb 03 15:21:39 the theming you mean? Feb 03 15:21:40 ok colors + sytels Feb 03 15:21:58 styles* Feb 03 15:22:37 * SimonVT slaps Leeds Feb 03 15:22:49 mmm... trout Feb 03 15:22:59 good tip, found something odd now Feb 03 15:24:01 wasnt a tip, more a probable guess based of the error, due to me learning about android resources Feb 03 15:24:07 with 10 minutes of reading Feb 03 15:24:09 :) Feb 03 15:24:12 ;) Feb 03 15:24:40 The hell are you doing copying files from a library project to your own project ;O Feb 03 15:24:49 SimonVT: In your ViewPager example how would you go about clearing the content of the Adapter and adding a different list of views? I managed to just always add another tab but I want to clear everything depending on the current menu and append the appropriate tabs obviously. I tried emptying the list but that didn't seem to work. Feb 03 15:25:02 I dont even use that lib, I dont trust programmer UX or programmer Arty attempts in any way! Feb 03 15:25:16 SimonVT: I can't figure out how to use it otherwise Feb 03 15:25:43 SimonVT: please help :) Feb 03 15:25:48 You import it in your ide, add it as a dependency Feb 03 15:25:57 Import NoA, add it as a dependency on the lib Feb 03 15:26:07 I tried that... grrr Feb 03 15:26:19 marrrk: You could swap out the adapter, or change the fragments in the adapter Feb 03 15:26:37 I'll have to clean up the whole project. Hold on :P Feb 03 15:26:38 What do you think is more efficient? Feb 03 15:26:56 I have no idea Feb 03 15:28:09 And instantiating a new Adapter is probably easier so I'll do that Feb 03 15:29:02 SimonVT: like this? http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject Feb 03 15:29:45 yes Feb 03 15:32:58 to anyone else curious, AbstractHTTPEntity will preppend the length of each chunk of data in hex if no content-length is set, even if you request chunking to be off Feb 03 15:33:13 if I do properties - android - add , there is nothing to choose from Feb 03 15:33:32 forcing HTTP/1.0 should avoid this, but instead of simply not using chunk encoding, you get an exception and nothing happens Feb 03 15:34:30 interesting, as the content-length field isnt mandatory Feb 03 15:39:36 SimonVT: put the nineoldandroids-2.3.0.jar into the /lib/ of new library project? Feb 03 15:46:52 No, libs/ Feb 03 15:47:51 yes, sorry Feb 03 15:47:53 then what? Feb 03 15:49:28 java build path-libraries -add jars and select it? Feb 03 15:50:14 it's actually under Android Dependencies there already it seems Feb 03 15:50:42 Jars in libs/ is automatically picked up by ADT Feb 03 15:50:46 Don't touch build path Feb 03 15:50:56 I see Feb 03 15:51:30 whats the next step? Feb 03 15:52:30 Add it as a dependency to your project? Feb 03 15:53:30 how? Feb 03 15:53:59 and shouldnt I import the other resources to the library project first? Feb 03 15:54:28 I honestly have no idea what you're doing Feb 03 15:54:36 :) Feb 03 15:54:45 mhm.. tried this now http://pastebin.com/3E6ew70a but i get Key Length not 128/192/256 bits.. But the Key is 192bit.. 346a23652a46392b4d73257c67317e352e3372482177652c Any idea? s.getBytes("UTF-32BE").length returns 192 Feb 03 15:54:49 I just checked, my library already contains the NoA jar Feb 03 15:54:57 So you just create a new project from existing sources Feb 03 15:55:02 Make sure it's marked as a lib project Feb 03 15:55:04 Oh, thats what I did not do Feb 03 15:55:06 And add it to your project Feb 03 15:56:29 new Android Project from Existing Code? Feb 03 15:57:59 and root dir is then "library" folder? Feb 03 15:58:09 which contains libs, res and src Feb 03 16:01:09 hello! Feb 03 16:01:48 looks like that other ppl have the same problem: http://stackoverflow.com/questions/13628868/string-getbytesutf-32-returns-different-results-on-jvm-and-dalvik-vm/14674355#14674355 Feb 03 16:01:49 has anyone ever seen an app leak in jelly bean but not in gingerbread? Feb 03 16:08:26 SimonVT: add it to my project how? Feb 03 16:09:54 found it Feb 03 16:09:55 Quacked: "you" even posted the link on how Feb 03 16:10:36 my head is spinning because of all the different things I've tried now :) Feb 03 16:11:09 excellent. Now import net.simonvt.widget.NumberPicker; seems to be working Feb 03 16:11:59 why would the same apk leak in JB and not in GB? ...baffled... Feb 03 16:12:47 SimonVT: What's the point of: private static final String STATE_ACTIVE_POSITION = "net.simonvt.menudrawer.samples.ContentSample.activePosition"; that? Feb 03 16:14:06 Saving the state of the active position Feb 03 16:18:33 ah okay Feb 03 16:18:45 I was confused that in the ViewPager example it's called ContentSample Feb 03 16:18:51 suppose that's because of copy and paste Feb 03 16:25:00 how to make for an android app...back button behaves like backgrouding the app Feb 03 16:25:01 ? Feb 03 16:26:50 that's not really standard behaviour and will just confuse people :| Feb 03 16:32:20 Hi! Whay can't I write this: Feb 03 16:32:21 public final static String EXTRA_SOMETHING = getPackageName()+".something"; Feb 03 16:33:52 Because getPackageName() isn't a static method Feb 03 16:38:47 Peetz0r: out of interest, what's the error message you;re given? Feb 03 16:40:51 "Cannot make a static reference to the non-static method getPackageName() from the type ContextWrapper" Feb 03 16:41:14 But I think I can partially understand it after some more thinking Feb 03 16:41:23 hello, can anyone help me with an issue? i get 'packages/apps/Phone/res/layout/incall_touch_ui.xml:43: error: No resource identifier found for attribute 'feedbackCount' in package 'android'' Feb 03 16:46:25 I'd imagine you have android:feedbackCount somewhere in your xml, and that attribute doesn't exist Feb 03 16:47:59 SimonVT, indeed, you are right about having that attribute in that xml, but the attribute does, in fact, exist Feb 03 16:48:06 i use it on the lockscreen with the same xml parameters Feb 03 16:50:47 The lockscreen is probably in another package where that attribute does exist Feb 03 16:54:34 SimonVT, http://pastiebin.com/?page=p&id=510e95e2c2fc2 <- lockscreen / phone -> http://pastiebin.com/?page=p&id=510e96094ed9b Feb 03 16:54:39 it's the same class Feb 03 16:55:00 com.android.internal.widget.ali.MultiWaveView is the class Feb 03 16:56:10 this is frameworks/base/core/res/res/values/attr.xml contains http://pastiebin.com/?page=p&id=510e96927928a Feb 03 16:57:24 Anoia: ..so what is the typical behavior for an app? Feb 03 16:57:32 with the backbutton Feb 03 16:57:38 once your in an app Feb 03 16:57:47 shouldn't it just act like backgrounding? Feb 03 16:58:11 go backwards in the activity stack I would think Feb 03 16:58:26 when it gets to root activity then yeah, back to home screen Feb 03 16:59:00 the task button is used to switch between apps, and the home goes direct Feb 03 16:59:11 why would you want to get the back button to act like home ? Feb 03 17:00:02 I'd be very annoyed if I was browsing lots of web pages and wanted to go to last page, pressed back and it went to the home/default startup browser screen Feb 03 17:00:07 very pissed off Feb 03 17:00:21 bet that would be the most unpopular browser eva Feb 03 17:21:13 deanclkclk: back goes to the previous activity Feb 03 17:28:37 how can I set the button text underlined? Feb 03 17:30:01 superlinux-hp: have you tried with resource Bla Feb 03 17:30:25 damn! Feb 03 17:30:38 what? Feb 03 17:30:44 that went off me! LOL! Feb 03 17:31:09 let me know Feb 03 17:31:16 if that works.. it should Feb 03 17:31:20 i know so many.. but hardly i can remember sometimes Feb 03 17:31:29 i must work! Feb 03 17:31:34 it must work! Feb 03 17:41:00 Greetings. I'm having some trouble developing a browser app. I've setup a Sencha Touch app served by a simple web server and it's running on my local network but when I go to connect to that server using my phone (on the same wifi network) the connection cannot be made. Feb 03 17:42:01 Once or twice I've been able to pull up the site but it stopped working for no apparent reason...? Feb 03 17:42:58 I'm wondering if my phone is choosing to use 3g instead of wifi so it can't connect to the local IP address that I'm using as the url (192.168.0.109:8000) Feb 03 18:08:01 hello, i can't get the emulator to have gsm signal so i cannot simulate calls, any help? Feb 03 18:08:38 Wonder why the getjar sdk is scanning through other apps files/ directory Feb 03 18:10:58 is this on windows? Feb 03 18:11:07 maybe it's $CLASSPATH? Feb 03 18:12:32 No, this is on Android Feb 03 18:12:58 loin: you can simulate outgoing Feb 03 18:13:02 but you just get silence Feb 03 18:13:21 i want to simulate incoming Feb 03 18:13:31 If an app includes the getjar sdk, every so often it will scan through other apps files/ directory (it emits an error for every app that doesn't have that directory) Feb 03 18:13:34 is it possible to open the direct activity to enable an accessibility service? Feb 03 18:14:18 Does a lot of GC as well Feb 03 18:14:40 loin http://www.slegg.net/simulate-incoming-call-with-android-emulator Feb 03 18:15:07 sonOfRa: amazing what gooogle comes up with :) Feb 03 18:15:18 indeed :D Feb 03 18:15:58 sonOfRa, i am actually trying that but i don't receive anything Feb 03 18:16:06 oh, hm Feb 03 18:16:19 I would try here but I ont; have 10 minutes for the emulator to boot Feb 03 18:21:41 works like a charm for me Feb 03 18:21:48 nexus S emulator, API level 16 Feb 03 18:23:24 I'm using JNI in my application, but the library constantly seems to reload itself, causing an infinite loop. What could be causing this? Feb 03 18:25:26 sonOfRa your using commandline to sim call ? the device manager call button not work ? Feb 03 18:28:11 sonOfRa, i think i found the problem, it seems that the user build doesn't support simulating calls and stuff Feb 03 18:28:44 still waiting for my AVD to boot :) Feb 03 18:29:23 if any one can…can you test "startActivity(new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS));" and see if it allows you to enable/disable services on a 4.2 device? Feb 03 18:31:07 when i use the above intent it launches the Accessibility Settings activity, but when ever you select an accessibility service to enable it just opens the same activity but with the application you tried to enables name as the activity name :\ Feb 03 18:32:30 Why hello there Feb 03 18:33:40 oh, finally I could test the tincoming call and it worked fien for me Feb 03 18:44:21 can someone confirm for me that resulting activity from "startActivity(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS));" no longer works on ANDROID 4.2? Think i need to open a bug report Feb 03 18:56:43 I am experiencing a leak in Jelly Bean but not in Gingerbread. Has anyone ever seen anything like this before? Feb 03 19:01:21 jug6ernaut AVD ? Feb 03 19:01:56 StingRay_ physical, I'm trying an avd now Feb 03 19:02:06 ok will try on a nexus or 2 Feb 03 19:02:56 thx :D Feb 03 19:03:01 :)* Feb 03 19:03:52 oxbits: are you using fragments? Feb 03 19:04:00 ok well it opens accessibility Feb 03 19:04:12 on AVD 4.2 intel/ gnex and nex7 Feb 03 19:04:18 right, now click on one of the accessibility services Feb 03 19:04:58 to enable/disable and see if it goes to the activity(/fragment) to enable/disable it Feb 03 19:05:28 well i'm at the TalkBack settings page Feb 03 19:05:29 i've always used devices for testing... but I was just wondering would AVD get faster/better on a faster computer (ie. load times) or would the best testing device just be a rooted with dev tools phone? Feb 03 19:05:31 enable ? Feb 03 19:06:40 right, when you click on one of the services it should have an on/off button on the top right to enable/disable that accessibility service Feb 03 19:07:20 yeah Feb 03 19:07:31 so it worked for you? hmm Feb 03 19:07:37 I just enabled talkback on nex7 and gnex, has to go though tutorial Feb 03 19:07:41 dam annoying Feb 03 19:08:06 xD Feb 03 19:08:07 yeah all fine Feb 03 19:08:09 monsti: I got Python to compile, but it seems getting all the packages to work correctly is going to take far too much work for the benefits :) Feb 03 19:08:15 disabling now though dammit Feb 03 19:08:21 i'm getting headache Feb 03 19:08:34 well wth then, k thanks for confirmation Feb 03 19:08:37 haha Feb 03 19:11:06 is it possible to open an activity from another package? Feb 03 19:11:14 Is anyone else not getting anything happening when building and running an application? I'm following the android SDK getting started instructions and when I Run > Run As > Andoid application nothing happens. Feb 03 19:11:14 I'm trying to get it to run on the emulator, but nothing. Any ideas? Feb 03 19:12:38 P-NuT: I don't get what you mean Feb 03 19:12:42 hmm StingRay_ yea working for me on 4.2 ave also, ill assume its a CM issue then. Feb 03 19:12:55 P-NuT: Where are you runing it to? A virtual device or your phone? Feb 03 19:15:11 agy2154: if it exposes an intent filter or you knwo the full package and class name iirc Feb 03 19:16:38 so can I still like use context and then add full.package.name.Class Feb 03 19:16:40 would that work? Feb 03 19:17:03 agy2154: That should work Feb 03 19:17:10 Thanks! Feb 03 19:23:42 Virtual device. Let me go and read it again. I'm sure there's probably something I missed Feb 03 19:26:24 Ok, so I downloaded the ADT bundle for mac, but the training guide says to download eclipse, then download the ADT plugin. Feb 03 19:26:27 Which one is right? Feb 03 19:26:39 all of those are right Feb 03 19:27:00 i think you mean SDK bundle though not ADT Bundle Feb 03 19:27:41 so scratch that, all of those would be right if you changed ADT bundle to Sdk Bundle Feb 03 19:32:13 agy2154: also, note http://www.cs.berkeley.edu/~emc/slides/SevenWaysToHangYourselfWithGoogleAndroid.pdf for additional useful tips; especially about using and exposing Intents. Feb 03 19:32:38 Does anyone has any extensive knowledge of the PS3 downgrading process? Feb 03 19:32:50 Silox|: I do Feb 03 19:33:11 kbs: Thanks! I don't really like Android's offical resource Feb 03 19:33:11 agy2154: Do you know the reason why a PS3 OFW 4.x cannot be downgraded _softwarematicly_? Feb 03 19:33:54 Silox|: I think they changed their key Feb 03 19:34:12 Silox|: You can still downgrade but you are going to need to take your stuff apart Feb 03 19:34:16 agy2154: And can that key be found again? Feb 03 19:34:25 I know, but I don't want to risk to brick my device :P Feb 03 19:34:28 Silox|: It can it just needs time Feb 03 19:34:48 Silox|: Actually some of the boards don't require you to mod anything, not even solder Feb 03 19:35:01 Silox|: All you have to do is clip it on and after that you can even dual boot Feb 03 19:35:16 Hmm, that sounds nice! Feb 03 19:35:24 Silox|: That board takes advantage of the old vulnerabilities the PS3 had Feb 03 19:35:43 I see Feb 03 19:35:53 It's still an old model :P It's a fat G I think Feb 03 19:36:03 So I would need a NOR flasher iirc. Feb 03 19:36:11 Silox|: I have the slim Feb 03 19:36:56 the E3 flasher is god Feb 03 19:37:02 I see :P Feb 03 19:40:47 am I one of the few weird people who actually thinks making UIs in XML is easy and fun? Feb 03 19:40:55 I hear a lot of complaints about it Feb 03 19:42:17 Ello, was wondering. If I were to be interfacing with the wifi card on an android device, would I use the NDK or could I use the regular DevKit? Feb 03 19:42:44 I did create an input field and I want to use it for passwords, so they should be hidden when users enter them. How can I do that and is it possible to "remember" login details for users? Feb 03 19:43:28 Hi Feb 03 19:43:30 MarkS save them maybe Feb 03 19:43:43 where LOGW logs to? Feb 03 19:43:52 hi guys Feb 03 19:45:39 MarkS-: look at inputTypes Feb 03 19:45:54 StingRay_: I'm looking there and testing multiple options Feb 03 19:46:04 well just use password Feb 03 19:46:06 :) Feb 03 19:46:25 InputType.TYPE_TEXT_VARIATION_PASSWORD Feb 03 19:48:16 I need to implement this screen (activity): http://img163.imageshack.us/img163/7951/homeft.png I made iOS version and now with Android I don't know how can I implement these tables. The idea is basically to show categories (like iOS Developers and Designers in picture) and when user tap on that categorie, then show the content inside (with translation animation or something). Any idea?? Feb 03 19:48:19 Overv: I'm in your camp; actually wish it were closer to html/css than it already is. :) Feb 03 19:48:27 does anyone know a good example of an intent? Feb 03 19:48:39 StingRay_: any idea where I should be able to set that option? Feb 03 19:50:50 MarkS i said input type Feb 03 19:51:01 Sepho: probably start from LinearLayout. Feb 03 19:51:03 as in xml android:inputType Feb 03 19:51:22 Sepho expandable listView Feb 03 19:51:57 I followed http://developer.android.com/reference/android/text/InputType.html and that didn't work, but getting another option from stack overflow did work Feb 03 19:52:04 now I just have to test it Feb 03 19:52:22 thanks StingRay_ I'll investigate about it Feb 03 19:54:21 Has anyone had problems connecting to local IPs with android browsers? Feb 03 20:01:13 I have just found my Google TV device updated today. and the play store now has an "Update All" button. and the firmware is now updated from 3.1 to 3.2 Feb 03 20:01:58 Hey! How can I find out what javascript engine my web view is using and try a different one Feb 03 20:02:00 That's been there for quite a while Feb 03 20:02:17 Could also just activate auto updates Feb 03 20:02:42 SimonVT, it was not on my device Feb 03 20:03:02 SimonVT, it's not a phone, if you happen not to know Feb 03 20:03:17 it's a TV addon Feb 03 20:04:07 what API level do you guys dev for? I have a simple app with maybe some text a video and a very simple drag and drop game. What do you guys suggest> Feb 03 20:04:45 api 1 Feb 03 20:04:52 when you do full-eng for lunch.... which "device" are you actually using? I see in "device" there are several manufacturers Feb 03 20:05:11 samsung, sample, common, etc. Feb 03 20:05:29 StingRay_: Will api 1 cover everything I need? Feb 03 20:05:40 totally Feb 03 20:05:46 I know everything you need Feb 03 20:05:51 Thanks. Feb 03 20:05:54 no!!!! Feb 03 20:05:56 STOP Feb 03 20:06:07 I was being sarcastic on both counts Feb 03 20:06:30 I have another question. I tried following the guidelines for videos and codecs and it still won't play back. is there any particular codec and container that you guys would suggest? Feb 03 20:06:36 decide based of your targets and requirements Feb 03 20:06:37 oh Feb 03 20:06:41 i was taking you serious Feb 03 20:06:55 there is no right answer to your questions Feb 03 20:07:02 it's your choice Feb 03 20:07:17 and anything you get from us/here is just opinion Feb 03 20:07:30 neither correct or wrong Feb 03 20:07:33 StingRay_: I haven't updated my application in two years and it has over 10000 installs now. I really didn't know what I was doing at the time when I made it since I was a freshman in Highschool so I kinda want to update it now. Feb 03 20:07:52 StingRay_: what API level do you usually use? Feb 03 20:08:37 whatever suits what I'm doing Feb 03 20:08:58 agy2154: food for thought, http://developer.android.com/about/dashboards/index.html Feb 03 20:09:01 StingRay_: Alright thanks for your help Feb 03 20:11:13 If I upgrade to a higher api level... Will the people with 2.2 still be able to downlaod older versions of my app? Feb 03 20:12:06 agy2154: yes, they will get the new version if their version is lower than minSDK, older one if their's is greater Feb 03 20:12:23 agy2154: sorry other way around Feb 03 20:12:50 f2prateek: Thanks that gives me some sense of relief. Feb 03 20:13:45 i use the latest api level Feb 03 20:14:00 agy2154, go read up on minSdkVersion, targetSdkVersion, etc Feb 03 20:15:29 What permissions besides internet do you need to download the contents of a site? Feb 03 20:16:20 Matthias|PC: depends on if and where your gonna save it Feb 03 20:16:43 this crashes my app Feb 03 20:16:43 http://pastebin.com/jpGtjPYd Feb 03 20:16:55 this line: "in = con.getInputStream();" Feb 03 20:17:07 both in my emulator & on my phone they have internet permissions Feb 03 20:17:46 I'd just need it as a string Feb 03 20:17:48 no need to save Feb 03 20:17:54 st :) Feb 03 20:18:03 st? Feb 03 20:18:05 what is st? :p Feb 03 20:18:14 *Android dev noob* Feb 03 20:18:17 You're calling doInBackground directly.. Feb 03 20:18:22 Read up on how asynctask works Feb 03 20:18:52 oh crap, saw it in an example Feb 03 20:20:06 Alright so I have an old app on the market. I'm making a new one from scratch... What has to be the same? The aplication name? Feb 03 20:20:13 package name? Feb 03 20:24:40 agy2154: package name and keystore Feb 03 20:26:59 If I have two library projects in eclipse that are using the support.jar; I get AN error of having mulitple instances of support.jar. I added the support.jar to my app project, and added that to the libraries' build path (instead of in their libs folder). Is this the correct way of working around the issue? Feb 03 20:27:16 *android-support-v4.jar Feb 03 20:29:21 No, you just replace jar of the library projects with whatever version you're using Feb 03 20:32:26 anyone know of a good place for manufacturer priced LCD's? Feb 03 20:33:26 SimonVT: thanks Feb 03 20:35:05 SimonVT, s/whatever version you're using/the latest version/ Feb 03 20:35:06 :P Feb 03 20:35:33 well..:p Feb 03 20:35:34 damn it. I think I forgot my key Feb 03 20:36:32 damn man. I just screwed myself Feb 03 20:37:22 did you enjoy it? Feb 03 20:37:28 canadiancow: ... :P Feb 03 20:41:25 does google have a support phone number for devloperS? Feb 03 20:42:55 agy2154: i dont think you can reupload your app if you forgot your key and neither could google help you with that Feb 03 20:43:15 that sucks Feb 03 20:43:17 try therapy memory regression ;) Feb 03 20:43:26 trinity: what would you recommend doing? Feb 03 20:43:44 wait can I regenerate it if i know the password? Feb 03 20:43:56 Nope Feb 03 20:44:07 wtf Feb 03 20:44:22 So its basicly over for that application? Feb 03 20:44:28 Yep Feb 03 20:44:49 agy2154: next time create a notepad with your credentials copy it into a USB and a CD then print it out and hide it somewher ein your drawers Feb 03 20:44:54 youll never lose the key again :) Feb 03 20:45:17 at least thats what i do now after losing two keys Feb 03 20:45:22 agy2154: you can brute force it Feb 03 20:45:38 hahahahaha Feb 03 20:45:41 where do you guys store your keystores? Feb 03 20:46:06 what the hel Feb 03 20:46:17 i have like 10k + dowlnoads Feb 03 20:46:22 its two years old Feb 03 20:46:58 what would you guys do with the old app? Feb 03 20:47:00 Un publish? Feb 03 20:50:58 I ran hexdump on it and then got it tattooed on my body Feb 03 20:53:21 lends a whole new meaning for security exposure Feb 03 20:54:14 JakeWharton, i thought those were just random characters Feb 03 20:54:25 you mean i can hack your stuff if i can get teh whole string? Feb 03 20:55:09 That's.. pretty creepy Feb 03 20:55:50 how can i in EditText get the cursor position? Feb 03 20:56:08 canadiancow: if you read the hexdumb backwards, yeah Feb 03 20:59:36 hey g00s, your name couldn't possibly have been derived from the group g00ns right... Feb 03 21:03:22 Anyone know if there's a known bug with the 4.2 APIs that means I can't use @override annotations? Feb 03 21:03:34 try @Override instead Feb 03 21:03:47 @override doesn't exist afaik Feb 03 21:03:52 Smashcat: I had that on my work dev machine, just refused to accept any of them Feb 03 21:03:59 sonOfRa: Yes, sorry, I'm using @Override Feb 03 21:04:02 still all worked though Feb 03 21:04:12 mh Feb 03 21:04:16 but my other machine adds them and still works fine Feb 03 21:04:24 Anoia: Well I can't build it - shall I just remove all the overrides? Feb 03 21:04:28 maybe overriding something you can't technically override? Feb 03 21:04:41 I did on my work machine Feb 03 21:04:50 sonOfRa: Well it worked fine before I updated the SDK last night Feb 03 21:05:38 that's odd Feb 03 21:05:49 Meh, I'll comment out all the overrides and see if it works Feb 03 21:06:34 You have to set java compiler compliance to 1.6 Feb 03 21:06:40 Yours is probably at 1.5 Feb 03 21:07:04 1.5 would work Feb 03 21:07:12 not for interfaces Feb 03 21:07:24 really? Feb 03 21:07:27 SimonVT: Yep, tried 1.6 and 1.7 - same error Feb 03 21:08:04 In fact 1.7 doesn't work at all - Compiler complains that it needs 5.0 or 6.0, and 1.7 is too low :) Brilliant Feb 03 21:09:05 1.7 is java 7.. that's > java 5/6 Feb 03 21:09:12 I doubt you're setting it the right place Feb 03 21:09:21 canadiancow: really Feb 03 21:12:05 SimonVT: Set it in project properties, and also in the main config. It's set to 1.6 currently Feb 03 21:18:28 Hmm, created another project, and Overrides work. Going to delete this one and copy everything into the new project :) Feb 03 21:20:52 how do you insert a stringA into another stringB at a selected index in stringB ? Feb 03 21:21:24 use stringbuilder Feb 03 21:24:36 Zharf, how? Feb 03 21:24:57 read the documentation? :) Feb 03 21:24:58 Sounds like a homework assignment ;-) Feb 03 21:25:21 Zharf, ok i got it Feb 03 21:25:41 Eclipse helped. Zharf thanks Feb 03 21:34:58 how do you move the EditText cursor to a postion programatically? Feb 03 21:36:12 I'm working on a simple game. The only thing left in the game loop would be the triggering of a function every xxxx ms. Therefore I decided that I also trigger that function every xxxx ms. I made my mind up on working with the Alarm Manager but read in the documentation that for normal timing operations it's more efficient to use Handlers. Feb 03 21:38:02 The game logic already runs in a seperate background Fragment. Therefore another thread isn't necessary. But I'm not sure what to use to trigger the function. Someone has some knowledge what's best practise in this case? Feb 03 21:43:28 Anuroth: If you can trigger the function from your main game loop, then that's the most efficient usually. You can just check the time between iterations. Depends how accurate you need to be. Otherwise, just use another thread Feb 03 21:47:01 Ok thanks. Then back to the game loop. Feb 03 21:48:25 Yep, cool Feb 03 21:49:08 oh, so thats whats going on … today is Puppy Bowl IX Feb 03 21:54:00 I have an android app with a menu but when the menu displays there are no titles. Anyone have a clue why? this is my menu and the bit of code that calls it http://pastebin.com/KF01kxai Feb 03 21:54:33 Hmm.. I'm starting a FragmentActivity, it triggers a ListFragment in which i set a listadapter in onCreate(). Now, I'm getting duplicated entries in the listview upon rotate. How do I clear the listview adapter content when user rotates or navigating through back-button? Feb 03 21:56:09 I've been doing android dev on windows. I'd like to start playing around with NDK Feb 03 21:56:17 has anyone ever create their own virtual "device" in AOSP? if I run the default one "lunch full-eng", the emulator works fine.. I am able to test and everything.. if I create my own virtual device and run "lunch full-my-device-eng", the emulator stays in this loop and never loads Feb 03 21:56:28 is a linux environment preferable? I've never installed Cygwin Feb 03 21:56:28 thank you Eclipse, I know somehting has crashed and is never going to recover, sitting there saying cancel requested and stopping me from exiting is not helping! Feb 03 21:57:33 it seems like C++ on windows is a pain unless you use visual studio Feb 03 21:59:15 RustyShackleford: https://developer.nvidia.com/nvidia-nsight-tegra Feb 03 21:59:36 best NDK set up is their all in 1 installer Feb 03 21:59:45 also they have this visual studio set up now Feb 03 22:00:22 Yeah, you can use VS for free - I use it with the Atmel IDE for microcontoller dev Feb 03 22:00:42 TheBunny, seems like it would be harder to find documentation. I could be wrong Feb 03 22:00:49 are you still using the same NDK? Feb 03 22:01:12 or is this entirely 3rd party? Feb 03 22:02:50 same NDK etc Feb 03 22:02:55 they make cjips Feb 03 22:02:58 GPUs Feb 03 22:03:08 I used it on a FiRE just fine Feb 03 22:03:11 Heh, Google seem to really want to dissuade people from using the NDK for some reason Feb 03 22:03:29 They had a all in one installer for the debugger and IDE etc no real configuring BS Feb 03 22:03:44 how does canvas.scale() work? I just tried scaling a canvas over and over again with canvas.scale(1,1) and it seems to zoom in which confuses me. Feb 03 22:03:56 nvidia is doing what googl should be doing and trying to make android dev not suck Feb 03 22:05:44 Smashcat: I have had bad experiences with the java native interface which is a similar thing on pc, its pretty fickle on what it actually makes run faster, (also it seems like it would be harder to secure but i am not really an expert on that) Feb 03 22:06:58 ftc: I haven't actually used JNI in any projects myself. Have a friend who does though - mostly for custom hardware. Feb 03 22:07:37 anybody have luck getting usb debugging to work with eclipse inside a linux VM Feb 03 22:07:44 i don't really want to dual boot Feb 03 22:07:47 the biggest problem I had was actually transferring data back and forth between C code and java code, I found in many cases it was quicker to write it to disk then pass the file name over Feb 03 22:08:01 ftc: out of bordom, i have dug into things like the sqlite api, it appears to store c points, 'bare' in private ints on the class Feb 03 22:08:31 interesting, I was just passing arrays Feb 03 22:08:36 ftc: in theory, reflection can be used to change those and call sqlite functions with invalid pointers, but it wouldnt really give you anything of value Feb 03 22:08:39 i wonder if using sql of some kind could have sped it up Feb 03 22:08:57 ftc: the sqlite c lib needs a pointer to a struct, for the open db Feb 03 22:09:01 ftc: Yeah, probably best to stick to simple data types when using JNI, to be honest. Byte arrays mostly. Feb 03 22:09:11 ftc: and the java class that wraps that, just holds the matching pointer in a java int Feb 03 22:10:15 ftc: but because exec isnt locked down at all, its pointless to try and abuse those pointers Feb 03 22:10:54 ftc: what kind of data? Feb 03 22:11:35 another life and a weird project, was writing a program to do real time signal processing of radar data with a graphics card and was trying to use java for the graphical interface Feb 03 22:12:01 ftc: sounds fun Feb 03 22:12:03 meh, eclipse/adb wont debug a syn service :( Feb 03 22:12:07 it didn't work :-/ Feb 03 22:12:28 ftc: one approach if you're talking moderately simple records would be to have a sortof C->java factory class/method and a C function that takes hte C types, makes the simple java types, and calls the method Feb 03 22:12:33 turns out that the overhead of transferring stuff from java to c to the graphics card then back took too long and it was quicker to just thread it in java Feb 03 22:12:48 ftc: lol Feb 03 22:13:00 completely ignore java as much as possible is pretty fast too ;) Feb 03 22:13:14 ftc: sounds like you need to share data, make 2 byte[] and write the data directly to one from c Feb 03 22:13:23 ftc: Heh, I've been doing something similar recently (capturing signals at fairly high speed). Made a custom circuit that writes to 2 SDCards in parallel with interleaved data ;-) Feb 03 22:13:27 ftc: assuming java will keep it at a fixed point in ram Feb 03 22:13:40 (...and java->C you can make regular jni calls .. but still) Feb 03 22:13:45 page flipping Feb 03 22:13:50 clever: it will not Feb 03 22:13:51 what i ended up doing was writing a C daemon that handled all the radar data and it periodically dumped a jpeg to the disk that the java program read in and displayed Feb 03 22:14:00 oGMo: no way to lock a byte[] to a single place? Feb 03 22:14:10 you can't pin anything from java afaik, which is lame, but this is java Feb 03 22:14:24 oGMo: so everything crossing c<->java must be copied? Feb 03 22:15:02 sorry to side track the conversation but does anyone know why canvas.scale(1,1) would make a canvas zoom in? Feb 03 22:16:12 ftc: the sqlite example i was talking about: mConnectionPtr = nativeOpen(mConfiguration.path, mConfiguration.openFlags,..... Feb 03 22:16:21 private static native int nativeOpen(String path, int openFlags, String label, .. Feb 03 22:17:05 oh nvm its not actually zooming in, i just had a scrolling bug that was confusing me... Feb 03 22:17:20 simply returns a SQLiteConnection* pointer Feb 03 22:18:18 clever: hrm there's some stuff with isCopy that might pin .. but tbh the overhead of implementing a locking scheme at that point is probably going to outweigh copying unless you've got huge amounts of data .. assuming we're still talking mobile here, i dunno Feb 03 22:18:44 i'm not sure you can _make_ it pin or not though Feb 03 22:18:45 oGMo: i was thinking of page/buffer flipping, to copy large ammounts of data over Feb 03 22:19:03 oGMo: one buffer is for java access, one for c access, when both are done, swap them Feb 03 22:19:12 single jni call to change a bool Feb 03 22:19:24 clever: regardless you need to lock across threads? or is this multiple jni calls, because at that point you're already killing performance heh Feb 03 22:19:57 i was just thinking along the lines of pinning the buffer, and accessing the bare char* behind a byte[] Feb 03 22:20:15 that's pretty silly because you're talking lots of writes of multiple things to handle copying a byte (for the bool) vs just copying the byte with a simple call Feb 03 22:20:20 so you can then instantly access it, and only need to pass small ammounts of data (yes/no) over jni Feb 03 22:20:39 plus you need to convert it from a byte array to bool, possibly parse, etc Feb 03 22:20:51 but if you're threading and streaming textures or something maybe Feb 03 22:20:55 yeah, it depends heavily on the actual use-case Feb 03 22:21:03 has anyone ever create their own virtual "device" in AOSP? if I run the default one "lunch full-eng", the emulator works fine.. I am able to test and everything.. if I create my own virtual device and run "lunch full-my-device-eng", the emulator stays in this loop and never loads Feb 03 22:21:07 but at that point screw java, use a native thread entirely Feb 03 22:21:25 for images, could you have a Bitmap class that gives c access to the bare void* for its data? as an example Feb 03 22:21:45 is anyone here that uses scala for android development? Feb 03 22:21:46 yeah but you could just load from C too .. plenty of format loaders, probably some built in Feb 03 22:23:48 also there's libjnigraphics .. says "pixel buffer access" .. never used it myself though Feb 03 22:28:29 "If XML is the answer, you're asking the wrong question." -- Randal L. Schwartz Feb 03 22:40:46 What if I'm asking about inferior plain-text data storage formats? Feb 03 22:41:10 CSV? Feb 03 22:41:27 anyone know a reliable way of determining if a custom rom is installed on a device? Feb 03 22:43:16 look at the props Feb 03 22:44:03 ro.build.description looks promising Feb 03 22:44:09 and ro.build.fingerprint Feb 03 22:44:15 * jug6ernaut takes a look Feb 03 22:44:33 JakeWharton: I have one more question regarding the tape example, heh. (I'm already successfully using it, but I want to make sure I fully understood dagger). https://github.com/square/tape/blob/master/tape-sample/src/main/java/com/squareup/tape/sample/SampleApplication.java#L27-L33 here you tell dagger ImageUploadTaskQueue can inject the queue, right? But it's not injected here: Feb 03 22:44:35 https://github.com/square/tape/blob/master/tape-sample/src/main/java/com/squareup/tape/sample/ImageUploadTaskQueue.java Feb 03 22:44:57 Much rather, it's created here. But without any annotations. Is it still necessary? Feb 03 22:45:53 looks like it probably just was leftover from a refactor Feb 03 22:46:13 I made that sample very quickly so we could release Tape Feb 03 22:46:52 Thanks, I just wanted to clarify. I'm currently working on how I'd intelligently use tape to retry without overdoing it. Feb 03 22:47:15 I'm not sure what strategy to follow. Just retry once and then again once the app starts again or try again and again and again. Feb 03 22:48:10 For example, I retry on != 200 status code. But if that's always gonna happen, it will block other (possibly successful) queued items forever. Feb 03 22:51:58 yeah that's a tough problem Feb 03 22:52:03 Anyone know if a webview can show a popup window? I realise it would fill the webview, but seems like it doesn't even try to open it. I've enabled setSupportMultipleWindows(true), also enabled JS, and setJavaScriptCanOpenWindowsAutomatically Feb 03 22:52:04 very subjective based on the type of task Feb 03 22:52:17 I've been dying to write a priority queue version but that's a harder problem Feb 03 22:53:36 How do you do it in your business app? If that's not a company secret ;) Feb 03 22:53:57 Especially since the service cannot be easily altered by a user. Feb 03 23:00:22 JakeWharton: the issue where wrong Fragment(s) receive(s) onContextItemSelected callbacks -- do you know if that was ever resolved? Feb 03 23:00:34 sabton: it was Feb 03 23:00:49 in what version of what library was this addressed? Feb 03 23:00:54 r9? Feb 03 23:01:04 support library Feb 03 23:01:12 kakazza: we have multiple queues Feb 03 23:01:52 For different things or for the same kind of job? Feb 03 23:02:04 JakeWharton: sorry to be a dingdong but I reference android-support-v4, this means I do not have the fix right? and should get the v11 support lib? :) Feb 03 23:02:14 for different things, different retry policies Feb 03 23:02:24 where I find remote Android work??? Feb 03 23:02:29 sabton: v4 refers to the API level it supports Feb 03 23:02:36 speeder: not in this channel Feb 03 23:02:40 Hmm, I see. And you never had the problem that one job held up the whole queue? Feb 03 23:03:02 I need to look at the queue API, maybe I can move an item in the queue, like, reschedule Feb 03 23:03:10 JakeWharton: noone here is a remote worker that can tell me where they found their work??? Feb 03 23:03:12 kakazza: depending on the job time we'll remove it from the queue and prompt the user Feb 03 23:03:18 speeder: not in this channel Feb 03 23:03:19 I'm doing something wrong, but I can't find what I'm doing wrong. For an action I need to get the gcm registation id in a string, I did try http://pastebin.ca/2310457 and that doesn't work for a reason I can't find Feb 03 23:03:27 why not? Feb 03 23:03:35 you cannot do remote android work? Feb 03 23:03:39 * Zharf wonders if the support lib in maven is ever going to be updated... Feb 03 23:03:50 Zharf: I did the one in Maven central Feb 03 23:03:52 it's on Google now Feb 03 23:04:10 Well, this is also an app for a business, so removing is not really an option. Of course I could probably just put the item on the SD card and if necessary, one could retrive it from there. Feb 03 23:04:12 JakeWharton: thanks for clarifying, I target SDK 17 but have this issue... so I'm confused on where to get the fix Feb 03 23:04:18 google has its own maven repo? Feb 03 23:04:32 no, it's on Google to update it now Feb 03 23:04:49 sabton: you probably don't have the latest support library revision then Feb 03 23:04:55 check your SDK manager for updates Feb 03 23:06:32 JakeWharton: no updates are necessary but then again I only see support library rev 11 listed under Extras... Feb 03 23:06:43 is that normal? Feb 03 23:07:13 they don't list the revision anywhere Feb 03 23:07:18 you're looking at the support library for API 11+ Feb 03 23:07:31 there is a Rev column in SDK Manager that says 11 Feb 03 23:07:42 the name of the package doesn't specify a version at all Feb 03 23:07:49 correct Feb 03 23:07:52 status=installed Feb 03 23:07:57 JakeWharton: Do you have a donate button anywhere? Or square? Feb 03 23:08:05 kakazza: just make good apps! Feb 03 23:08:08 that's all we ask Feb 03 23:08:12 <3 Feb 03 23:08:25 sabton: are you sure the .jar you're using is the same as the one in the extras folder? Feb 03 23:08:55 as in, could you have copied it to your libs/ folder and then updated it to a newer version after that? Feb 03 23:08:55 Working on my first commissioned app, using about 5 of your libraries now :3 Feb 03 23:09:29 JakeWharton: absolutely possible, checking brb Feb 03 23:09:48 is it possible to get the GCM registration ID for a device in a string so I could use it for an additional function? Feb 03 23:10:26 Hi Feb 03 23:11:07 JakeWharton: my project seems to have the same jar as in extras, the library projects i reference (including ABS) do not Feb 03 23:11:32 im thinking that doesn't matter though, does it? Feb 03 23:12:13 the one in ABS definitely does not have that fix Feb 03 23:12:46 do i need to copy the newest support lib to the ABS library project, or does it matter Feb 03 23:17:17 This is driving me nuts - anyone have a link to a working example of a webview/chromeview opening a popup window? Seems like they're completely disabled here, even with all the options enabled. Feb 03 23:18:44 Here's the things I'm enabling - have I missed anything? http://pastebin.com/KS9FcZns Feb 03 23:20:27 The page I'm loading works fine in a normal browser. In the webview, Javascript runs, but it just doesn't open the popup window. Tried a try..catch block in the JS, no error, it simply doesn't execute the window.open(). Bizarre Feb 03 23:21:29 Anyone know if and how one can make the title in the Actionbar using ABS scroll (marquee)? Feb 03 23:21:30 hey Feb 03 23:21:38 I made a frame animation for my toggle button Feb 03 23:21:48 How do I display that when it is pressed Feb 03 23:22:03 android:drawable doesn't seem to be right i Feb 03 23:25:45 Hi! How do I cast a Object[] to a String[]? http://pastebin.com/UQmVigm2 Feb 03 23:26:28 Peetz0r: use ininstanceof to verify the object is a string, then cast it Feb 03 23:26:38 *usinstanceof Feb 03 23:27:01 no drinking and ircing! Feb 03 23:27:40 if (myObject instanceof String) { } Feb 03 23:28:02 I *know* my Object[] is a array of strings, but when I try the 2nd approach it gives me java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[] Feb 03 23:28:18 I want to cast the whole array, not just one item Feb 03 23:28:42 um Feb 03 23:28:49 don't use toArray Feb 03 23:28:58 toArray() that is Feb 03 23:29:02 then what should I use? Feb 03 23:29:10 use toArray(T[]) (iirc) Feb 03 23:29:31 oh yeah, that one is better Feb 03 23:29:39 How does that one work? Feb 03 23:29:47 http://developer.android.com/reference/java/util/Set.html#toArray(T[]) Feb 03 23:30:04 Peetz0r: you pass in the type you want, it give you back an array of the type you specified Feb 03 23:30:38 Hmmz, I just found another solution, I made another method accepr Object[] instead of String[] Feb 03 23:30:49 Peetz0r, toArray(new String[]{}) Feb 03 23:31:01 Suspect this is a bug in Jellybean. Going to submit a bug report :) Feb 03 23:31:09 I am now using a ArrayAdapter instead of ArrayAdapter, is that a good thing? Feb 03 23:31:14 (it works) Feb 03 23:31:37 someday you'll forget that it was supposed to be a string ;) Feb 03 23:31:56 is that a serious problem? Feb 03 23:32:30 maybe not, but I think my solution is a better one, I like to keep my types handy even if java typing sucks Feb 03 23:33:35 This is what I am actually doing: http://pastebin.com/zJ6vm2dy Feb 03 23:34:18 I guess array adapter uses toString() on all the objects Feb 03 23:34:34 but it's up to you, whatever Feb 03 23:35:20 I think I'll leave it as it is now Feb 03 23:41:08 mhm.. tried this now http://pastebin.com/3E6ew70a but i get Key Length not 128/192/256 bits.. But the Key is 192bit.. 346a23652a46392b4d73257c67317e352e3372482177652c Any idea? s.getBytes("UTF-32BE").length returns 192 Feb 03 23:43:17 I've searched absolutely everywhere for an answer to this... I have a GoogleMap with multiple unique markers on it that I'm grabbing information for from a server, is it possible to add a linebreak to a snippet without a custom view? Feb 03 23:46:42 Is there a way to revert a Nexus 7 to an earlier version of Android? Like 4.0.1? Feb 03 23:47:18 pew ? Feb 04 00:01:05 Smashcat, sure Feb 04 00:01:09 fastboot Feb 04 00:01:15 flash a different system image Feb 04 00:01:52 https://developers.google.com/android/nexus/images Feb 04 00:03:27 canadiancow: Ah thanks! Seems like it doesn't go far enough back though. Ah well Feb 04 00:04:11 well you may be able to find other versions Feb 04 00:04:14 oh wait 4.0.1? Feb 04 00:04:14 no Feb 04 00:04:20 n7 launched wiht jellybean Feb 04 00:04:23 you cant flash ICS Feb 04 00:04:24 (submitting a big report at the moment, and wanted to check the last version of Android where the bug didn't exist) Feb 04 00:04:56 canadiancow: I have some older tablets around, have to dig one out with Android 3 or something :) Feb 04 00:05:49 * pragma- squints. Not sure if you mean cupcake or honeycomb. Feb 04 00:06:34 Say either "Android 3.x" or "Api 3", kthx. Feb 04 00:06:52 Can't remember - got an old ASUS Transformer here, battery's flat atm Feb 04 00:08:32 API 3 and Android 3.x... two things that were awful Feb 04 00:09:41 Well as long as the webview works properly, I'm not bothered ;-) Feb 04 00:10:46 lol JakeWharton Feb 04 00:11:05 both were the foundation for something better though, API 4 and Android 4.x, respectively Feb 04 00:11:10 Beremat: No, there isn't Feb 04 00:11:26 Beremat: You'll have to define your own implementation of InfoAdapter Feb 04 00:11:44 gah, I was hoping there would be some trick or something. thanks Silox| Feb 04 00:11:54 I'm stuck with an even worse problem: The markers are not 'live views' Feb 04 00:11:57 anyone know a good tutorial/explanation of context? Feb 04 00:12:02 so you can't add a clickable button to your marker :< Feb 04 00:12:08 :( Feb 04 00:12:50 Hope that old tablet will hold a charge now - it's been laying in a cupboard for almost 2 years - heh Feb 04 00:26:04 is there a way to auto-organize eclipse instances by access variable? Feb 04 00:26:13 access modifier* Feb 04 01:09:27 Hmm, think I need to resinstall my SDK again. Getting weird errors in builds now (can't instantiate class android.view.ViewGroup)?! WTF? It's compiled it, but it's not linking to the class when it's running Feb 04 02:04:36 a nice and superbowlie evening Feb 04 02:04:56 anyone still alive in here? Feb 04 02:05:08 ping Feb 04 02:05:25 Me, trying to write a massive workaround for a bug at the moment ;-) Feb 04 02:06:22 Smashcat: you got a moment to explain to me the advantages / disadvantages of using a FragmentActivity over an Activity Feb 04 02:06:24 ? Feb 04 02:06:55 Nope sorry, pretty rushed atm Feb 04 02:07:01 one lets you use backported fragments and loaders Feb 04 02:07:03 the other doesn't Feb 04 02:08:10 JakeWharton: what would you advise to use to build an app containing of a chat and various other views? Feb 04 02:08:38 if you are going to use fragments and/or loaders, use FragmentActivity Feb 04 02:08:40 if not, don't Feb 04 02:24:04 has anyone ever read samples of the mic? Feb 04 02:24:08 *off Feb 04 02:29:26 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.2_r1.1/com/android/settings/TetherSettings.java <-- does anyone know how that actually ends up enabling USB tethering? Feb 04 02:31:17 you're looking at code from 2.2 Feb 04 02:31:34 yes Feb 04 02:31:40 my phone runs 2.2.2 Feb 04 02:32:17 i dont really know what you're asking Feb 04 02:32:24 you check the box, it enables tethering Feb 04 02:32:32 how it actually happens Feb 04 02:33:00 read the code... Feb 04 02:33:11 for the public void onclick... can i replace the v with my variables name so i will have a seperate on click instead of making a switch and case Feb 04 02:33:16 the tether method is never invoked Feb 04 02:33:29 yes it is? Feb 04 02:33:42 oh Feb 04 02:33:43 shit Feb 04 02:34:24 if (cm.tether(usbIface) != ConnectivityManager.TETHER_ERROR_NO_ERROR) { Feb 04 02:34:24 there, right? Feb 04 02:47:46 Is it bad practice to call its own onSomething methods? Feb 04 02:48:26 Like, should a Dialog with overridden onBackPressed() call onBackPressed on itself? Feb 04 02:51:22 you can call the super method Feb 04 02:53:17 so i must ask has anyone sucessfully gotten the mic to work Feb 04 02:53:22 But that wouldn't call my overridden method, right? Feb 04 02:57:51 if you mean a dialog's onBackPressed call an Activity's onBackPressed then that might make sense in some situation, though it's a bit weird. if you mean calling the dialog's onBackPressed from the dialog's onBackPressed that is most certainly wrong and would cause an infinite loop Feb 04 02:58:57 I'm wondering, if I create a webview, and then intercept all window.open() calls from within the window and create another webview in Android to display the new window, will the 2 webviews share the cookies? Feb 04 02:59:21 (assuming the same domain, of course) **** ENDING LOGGING AT Mon Feb 04 02:59:59 2013