**** BEGIN LOGGING AT Sat Apr 27 02:59:58 2013 Apr 27 03:18:45 hesperaux: http://pastebin.com/aaAVzQxu i tried, it is not overriding. it does not show for 5 sec Apr 27 03:27:45 Is there a way to distribute free copies of paid app on Google Play? Apr 27 03:30:43 I don't think that's legal Apr 27 03:31:05 Unless you are the developer of the app Apr 27 03:31:06 lol thaqt might not have come out right Apr 27 03:31:33 lol, it did sound like you wanted to steal something. Apr 27 03:31:40 It's my app, I just wanted to give a free copy to review sites and such Apr 27 03:32:18 Is there a way other than giving them the apk directly Apr 27 03:32:37 Oh, dunno Apr 27 03:35:34 Have you tried contacting support? Apr 27 03:36:05 That was going to be my next step. Apr 27 03:39:20 If im using HTML and the img tag would the file location start out as "file:///" Apr 27 04:23:35 this is funny http://www.maclife.com/article/news/analysts_predict_iphone_will_overtake_android_market_share_2015 Apr 27 04:24:22 and just in case you cant compare percentages and growth "Think of the Apple and Android ecosystems as two buckets of water" Apr 27 04:39:46 hesperaux: i resolvd the problem using thread (thagha) Apr 27 05:05:00 Stingray consumers as rain fall :) Apr 27 05:05:26 that was an unnecessarily complicated metaphor Apr 27 05:10:06 Found this in a tutorial: if(nodeList.getLength() > 0 && nodeList.getLength() < 2) Apr 27 05:10:06 Wouldn't it be faster and easier this way: if(nodeList.getLength() == 1) ? Apr 27 05:19:30 lasserix: yeah I just thought the premise of the article was quite funny too Apr 27 05:19:40 what article ? Apr 27 05:22:01 Apr 27 05:22:01 this is funny http://www.maclife.com/article/news/analysts_predict_iphone_will_overtake_android_market_share_2015 Apr 27 05:22:01 and just in case you cant compare percentages and growth "Think of the Apple and Android ecosystems as two buckets of water" Apr 27 05:22:14 oh yeah, i saw that Apr 27 05:22:28 the satisfaction numbers have been like that since the beginning though Apr 27 05:23:23 it's just a bit….well silly Apr 27 05:24:30 here are some more numbers "Kantar WorldPanel : Windows Phone grew 1.5% from February to March. iOS only grew 0.2%, and Android lost 1.9%." Apr 27 05:24:33 numbers Apr 27 05:24:37 \o/ Apr 27 05:24:50 i need to bake a GIF like the oprah bees Apr 27 05:25:00 with numbers flying everywhere Apr 27 05:25:23 yeah…well….I think figures like that are so far removed from useful Apr 27 05:25:47 they dont indicate market trend at all really Apr 27 05:26:18 specially not for an entity that is at peak Apr 27 05:26:22 like android Apr 27 05:27:19 <_wli> i saw "new Date()" being used in stackoverflow demos a lot Apr 27 05:27:32 <_wli> but when i try to use it, Eclipse kept saying i need a parameter Apr 27 05:27:50 <_wli> Date(long) or Date(int, int, int) Apr 27 05:29:05 _wi then stop using the "java.sql.*" one then Apr 27 05:29:26 and use Java.Util.* instead like the SO posts Apr 27 05:29:28 cool, samsung doing a ruggedized S4 Apr 27 05:29:29 :) Apr 27 05:29:38 <_wli> thanks StingRay_ Apr 27 05:29:52 g00s: I want a htc one build quality phone Apr 27 05:29:57 well design too Apr 27 05:30:04 _wii np Apr 27 05:30:30 <_wli> one extra question Apr 27 05:30:46 yeah, its a beauty. my perfect android device would be htc one as nexus, removable battery … preferably microsd Apr 27 05:30:48 <_wli> i m saving a photo into DCIM Apr 27 05:31:07 <_wli> how can i get it to show up in a folder inside Gallery? Apr 27 05:31:17 <_wli> if i store in DCIM, it will show up in Camera Apr 27 05:31:33 _wli: store it some place else maybe ? Apr 27 05:31:34 <_wli> i notice some android app have their own folder in Gallery Apr 27 05:31:50 <_wli> i stored it somewhere in external memory, in another folder Apr 27 05:31:58 <_wli> and then the photos won't show in Gallery Apr 27 05:33:17 google i/o 2011 looks like Metro :D http://www.google.com/events/io/2011/sessions.html Apr 27 05:33:32 i'm getting fired up for I/o …. Apr 27 05:33:33 2011 !!! Apr 27 05:34:21 I'm jealous. Apr 27 05:34:32 Google Wallet crapped out when I was buying my ticket. Apr 27 05:34:50 wwds was sold out in like 2 minutes Apr 27 05:34:53 *wwdc Apr 27 05:36:01 <_wli> is there a way to browse the filesystem of emulators? Apr 27 05:36:08 ddms Apr 27 05:36:57 <_wli> thanks g00s Apr 27 05:42:14 g00s: and they *don't* give away goodies Apr 27 05:42:25 boo Apr 27 05:42:31 <_wli> i m working on a camera -> server workflow... i m just wondering if i m on the right track Apr 27 05:42:36 <_wli> 1. camera snap photo Apr 27 05:43:01 <_wli> 2. intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT ... save file to an extra location Apr 27 05:43:08 <_wli> 3. upload photo to server Apr 27 05:43:20 <_wli> 4. remove file from EXTA_OUTPUT Apr 27 05:43:37 <_wli> i notice the file is still stored in gallery / camera Apr 27 05:43:42 <_wli> is that normal? Apr 27 05:43:47 <_wli> should i try to remove that also? Apr 27 05:44:03 <_wli> or can i tell camera intent to not save in camera folder at all? Apr 27 05:44:20 ron_frown: check out this little dewd http://beagleboard.org/Products/BeagleBone%20Black Apr 27 05:47:10 pfn: quick q, how did you get the theme to change dark/light on qicr ? Apr 27 06:11:41 I'd be scared to see what android runs on that Apr 27 06:12:18 I am considering getting my hands on the pandaboard successor that wasnt Apr 27 06:12:47 5432 uevm Apr 27 06:13:17 since I had a part in hardware speccing on that thing +) Apr 27 06:17:28 what are some ways to store data securely that work from 2.2+ Apr 27 06:22:00 use getFilesDir() Apr 27 06:22:17 you got jokes I see Apr 27 06:22:33 JokeWharton :) Apr 27 06:22:33 if you say so Apr 27 06:22:37 seriously though Apr 27 06:22:45 trying to build a ecom service Apr 27 06:23:08 need to store a token.. may just have to get the backend dev to redo part of this so I can request the token upon app load Apr 27 06:23:22 the application files directory is secure Apr 27 06:23:25 use it Apr 27 06:23:32 not on root Apr 27 06:23:49 nothing is secure on root. that is obvious Apr 27 06:23:49 I need this data encrypted but I can't hardcode the key Apr 27 06:23:59 JakeWharton hows android treating you as of late? Apr 27 06:24:08 ron_frown: good. very busy at work Apr 27 06:24:13 guess you havn't looked at 4.0+ KeyChain api JakeWharton Apr 27 06:24:17 cool Apr 27 06:24:19 xastey, _NOTHING_ is secure on root Apr 27 06:24:25 one day I might have a real job =) Apr 27 06:24:34 why are you wasting your own time? :) Apr 27 06:24:58 xastey: guess you are a 13 year old girl Apr 27 06:25:16 anyways, i have looked at it Apr 27 06:25:18 ron_frown, real jobs are overrated :) Apr 27 06:25:31 the problem is that if the phone is rooted and your app needs to do something "securely" you're basically screwed Apr 27 06:25:38 no need for name calling Apr 27 06:25:44 this is a serious question Apr 27 06:25:45 i didn't guess your name Apr 27 06:25:53 i was giving you a serious answer Apr 27 06:25:59 so you are telling me that even with this http://developer.android.com/reference/android/security/KeyChain.html Apr 27 06:26:18 its not secure.. kowing that you need a key to decrypt Apr 27 06:26:39 you can never trust a client, yes Apr 27 06:26:45 a rooted client, even Apr 27 06:26:57 so I should just say fuck it and store it in sharedprefs Apr 27 06:27:02 cause nothing is secure Apr 27 06:27:08 a non-rooted phone is secure Apr 27 06:27:22 there will also be additional security things in the next API level which will improve upon KeyChain Apr 27 06:27:44 the fact that Android is open source immediately compromises everything that you are trying to do Apr 27 06:28:05 ok I just wanted to double check with someone that knows a bit more about security then me Apr 27 06:28:12 so just store it in stored prefs and call it ok Apr 27 06:28:23 use proguard as well Apr 27 06:29:24 the client can never be trusted. through communications with a server you can begin to trust it more but it'll never be 100% Apr 27 06:29:41 I hope io has some exciting non glass stuff Apr 27 06:29:47 because I'm loosing interest in android quick =) Apr 27 06:30:25 the gains you have by using java thats easy to write code in etc, are getting real real easy to negate with all the funky ass shit android does Apr 27 06:30:27 and how it does it Apr 27 06:30:30 yes I know that JakeWharton.. not new to dev.. but you always heard about apps that just store sensitive data and it gets compromise Apr 27 06:30:49 last year's I/O was freebie givaway + circus, it can only get better :) Apr 27 06:30:58 honestly Apr 27 06:31:04 4.2.x was impressive Apr 27 06:31:06 I'm trying to cover my ass here.. doing an android port of a largely funded startup Apr 27 06:31:11 lots of new features, stuff people would actually use Apr 27 06:31:12 anyone has any experience with googles request signing API? Apr 27 06:31:12 last thing I want is for them to get bad press Apr 27 06:31:22 and I like the idea of q even though it is no more Apr 27 06:32:30 anyways thanks for your insight JakeWharton Apr 27 06:33:00 xastey: you may want to see dan morril's comments http://code.google.com/p/android/issues/detail?id=191 Apr 27 06:33:10 where it sits for me personally Apr 27 06:33:23 its becoming such a hassle to get things ot just work like you'd expect them to Apr 27 06:33:28 all the hoop jumping etc Apr 27 06:33:32 I'd rather google provide nothing Apr 27 06:33:43 give me c++ and qt with a nice set of widgets Apr 27 06:33:46 and fucking be done with it Apr 27 06:33:58 get rid of shitty surfaceflinger and all the bs that goes along wiht it Apr 27 06:34:24 wasn't wayland going to use surfaceflinger XD Apr 27 06:34:40 I'm just getting hasty Apr 27 06:34:51 I dont think surface flinger is anywhere near as bad as it used ot be Apr 27 06:34:57 thanks g00s I'll check that out Apr 27 06:35:00 g00s dunno Apr 27 06:35:04 it wouldnt surprise me Apr 27 06:35:15 on another note.. I have an AnimateDrawable Apr 27 06:35:25 ie a progress indicator Apr 27 06:35:36 when I try to stop it AND remove it from the view its still there Apr 27 06:35:47 frozen but still there Apr 27 06:35:52 there are positives to it... I'm sure wayland guys are shooting to take what works Apr 27 06:36:04 xastey: use certificate pinning for client/server communication and you'll be ahead of 99.999% of everyone else Apr 27 06:36:10 i'm pretty sure that the view invalidate itself Apr 27 06:36:15 yeah JakeWharton i'm doing that as well Apr 27 06:36:20 for ssl traffic Apr 27 06:36:37 dont kill me .. but the dev that created the api also requires a header to be set with a token Apr 27 06:36:39 I wish I had equivalent internet connection at work as I do at home Apr 27 06:36:43 that is retrived on user login Apr 27 06:36:51 so I was trying to store that securly Apr 27 06:36:59 *securely Apr 27 06:37:29 like I said the app is ios first class.. so they are using some keychain system Apr 27 06:37:47 I was going to use android KeyChain but then saw it was only for 4.0 and I need to support back to 2.2 Apr 27 06:37:56 thus the reason for me asking Apr 27 06:37:56 g00s: I shot a short a few years ago, just found a stills grading concept … was for a short called "Because your worth it" http://db.tt/k9ZIgFi2 Apr 27 06:37:59 2.2 ? Apr 27 06:38:06 well maybe 2.3 Apr 27 06:38:11 :) Apr 27 06:38:29 actually I may just say 2.3 Apr 27 06:38:32 reminds me of my boss Apr 27 06:38:44 it was a BITCH trying to do this upload progress with RestTemplate Apr 27 06:38:52 was all good using android annotation Apr 27 06:38:59 until I had to modify spring Apr 27 06:39:05 I slapped together a RIA app thats using a lot of js/svg/canvas etc Apr 27 06:39:10 for DESKTOPS Apr 27 06:39:10 StingRay_: i stopped at the bunny with eye boogers Apr 27 06:39:15 oooo yeah Apr 27 06:39:20 it can't hurt to use the newer APIs when available, but you should be fine persisting to the files directory. even something as simple as sending up device information as part of the headers will give you insight into bad actors. someone using an auth token from a device that's never gone through login would be a clear flag Apr 27 06:39:21 OpenGL guys here? Apr 27 06:39:22 then hes complaining it doesnt look right in android 2.2 browser Apr 27 06:39:27 trying to do image filters Apr 27 06:39:33 I have no idea why, and I cant use the newfangled browser debug extensions Apr 27 06:39:39 g00s: too ban, naked lady in the show after that Apr 27 06:39:40 fuck android 2.2 Apr 27 06:39:42 and code isn't working well.. not trying to texture Apr 27 06:39:43 bad* Apr 27 06:39:53 ron_frown: *pre-ICS :) Apr 27 06:40:08 concur Apr 27 06:40:27 JakeWharton well everything is going over ssl in this case Apr 27 06:40:36 plus there is a second token needed only giving on login Apr 27 06:40:37 I mean honestly this app is one of those admin apps, where it wouldnt be the worst thing in the world to say you need chrome/webkit/safari/ff Apr 27 06:40:49 that one I'm storeing on the app.. which thinking about it now may be bad Apr 27 06:40:55 but like you said if its not root its not a problem Apr 27 06:40:57 guess my boss doesnt understand the state of browser compatibility for all the fun shiny stuff Apr 27 06:41:12 not like any other app could get it Apr 27 06:41:37 so any OpenGL ES 2.0 folks here Apr 27 06:42:32 having to support ie sucks Apr 27 06:42:42 GB is IE :D Apr 27 06:42:47 just did a cam site and damn studio can't use anything but IE Apr 27 06:43:02 fucking IE 8 and its object.hasOwnProperty when doing for(i in object) Apr 27 06:44:04 Android 1.5 was IE Apr 27 06:44:19 i started up the M3r20 emulator today Apr 27 06:44:25 retina macbook did not like it Apr 27 06:44:32 why would you do that to yourself? :P Apr 27 06:44:38 xastey: take a lead from the professionals. Apr 27 06:44:41 http://www.dwp.gov.uk/eservice/need.asp Apr 27 06:45:05 hehe Apr 27 06:45:10 yeah that wont work Apr 27 06:45:27 tried.. they said "No we can't upgrade or switch we HAVE to use IE" Apr 27 06:45:32 damn near cried Apr 27 06:45:42 JakeWharton, hmm, Ive noticed emulators are noticably more glitchy and buggy on OS X in general Apr 27 06:45:44 atleast its not IE7 Apr 27 06:45:50 (in comparison to Linux/Win) Apr 27 06:46:02 the x86 emu segfaults the kernel Apr 27 06:46:11 yep Apr 27 06:46:16 hmm. i haven't had any problems Apr 27 06:46:29 are you guys using the newest haxm (r1 1.06) or something ? Apr 27 06:46:34 *r3 Apr 27 06:46:40 had to go to deepest pits of Intel page to find HAX patch to stop OS X kernel panicks Apr 27 06:46:49 *panics Apr 27 06:47:01 i'm on 10.7 tho Apr 27 06:47:01 i just don't use emulators anymore Apr 27 06:47:09 10.7 is fine Apr 27 06:47:34 emulators are still useful to me to check some wierd corner case configurations Apr 27 06:47:40 (limited budget for hardware and all that -_-) Apr 27 06:48:06 i've been using androvm a bit. generally works a lot better than the official emulators, and supports GCM, IAP, etc. Apr 27 06:48:31 androvm? Apr 27 06:49:16 the OS installed into a virtual container rather than directly emulated Apr 27 06:50:09 it uses virtualbox, and has some weird proprietary viewer app for opengl acceleration. Apr 27 06:50:33 ah Apr 27 06:51:16 I like official emulators since I can reconfigure them easly for wierd corner cases (10" tablet with 800x480 display, physical keyboard and monkey attached to USB port type stuff) Apr 27 06:51:56 you can easily change the resolution with androvm, I don't know about usb support. Apr 27 06:52:54 mhm… nothing beats the variety and box of surprises of physical devices though :) Apr 27 06:55:43 Mavrik: whats the trace on the kp say ? Apr 27 06:55:55 never had HAX kp any of my macs Apr 27 06:56:11 StingRay_, honestly didnt check Apr 27 06:56:16 My code keeps breaking at this line: outputStream = openFileOutput(fileName, Context.MODE_PRIVATE); Apr 27 06:56:34 StingRay_, found an issue and HAXM patch on Intel site, installed it and lived happily ever after Apr 27 06:57:05 maybe local to a version of the hardware and virtz stuff Apr 27 06:57:07 odd Apr 27 06:57:58 StingRay_, https://code.google.com/p/android/issues/detail?id=37826 Apr 27 06:58:26 basically, trying to run x86 emulator with HAXM on retina mac will kernel panic it without this patch :) Apr 27 06:58:28 on ML Apr 27 06:58:37 ah Apr 27 06:58:43 dont have a ret mac Apr 27 06:58:54 have mac pro and normal 17 macbook pro Apr 27 07:00:14 Mavrik: did you get the latest haxm from the sdk manager? it was updated a few days ago Apr 27 07:00:30 if you did, and it still doesn't work, i'll skip 10.8 for not Apr 27 07:00:38 *now - i ws going to upgrade, but its not worth it Apr 27 07:00:52 g00s, as I said, it works with Intels hotfix Apr 27 07:01:06 g00s: but…but… you will miss all the twitter and facef*ck integration ???? Apr 27 07:01:13 ok, so even the latest requires intels hotfix ? Apr 27 07:01:17 g00s, since I was doing that a couple of weeks ago I wouldnt know about how it works with any new SDK updates :) Apr 27 07:01:22 Yay. My Ludum Dare game is now on Google Play https://play.google.com/store/apps/details?id=com.zachlatta.minimalistic_potato.android Apr 27 07:01:25 StingRay_: oh, fuck all that shit Apr 27 07:01:41 Mavrik: well try it , nut Apr 27 07:02:04 StingRay_: hopefully, they will take it all out again in 10.9 :D Apr 27 07:03:01 well I want it all gone, get rid of launchpad… ability to null norifications (so can just use growl) then I'm be….more happy Apr 27 07:03:19 hmm, this looks pretty good actually StingRay_ http://www.amazon.com/Smashing-Android-Magazine-Book-Series/dp/1118387287 Apr 27 07:03:33 for designers and devs Apr 27 07:04:53 hmmm Apr 27 07:05:02 not too sure on the former Apr 27 07:32:25 FileOutputStream outputStream = openFileOutput(filename, Context.MODE_PRIVATE); Doesn't create a file. It throws Source not found. I tried googling, with no luck Apr 27 07:33:15 i'm guessing it…erm cant find the source then Apr 27 07:33:19 just a guess Apr 27 07:33:20 :) Apr 27 07:33:33 What source? Apr 27 07:34:55 erm, the source of the "FILE"OutputStream Apr 27 07:35:38 i take it your filename is actually a File ? Apr 27 07:36:25 Well, openFileOutput creates the file if it doesn't exist. Apr 27 07:36:33 So I want to create a new file Apr 27 07:37:14 fileName is a string Apr 27 07:37:26 and the path in that string ? Apr 27 07:37:48 not full path, if that's what you're asking Apr 27 07:38:53 filename = "Testfile" Apr 27 07:38:59 ; Apr 27 07:39:40 hmm that would be odd then Apr 27 07:42:00 I've seen some people use someContext.openFileOutput(filename, Context.MODE_PRIVATE); But that doesn't solve my problem Apr 27 07:45:47 http://i.imgur.com/hFEaLKW.png Apr 27 07:45:53 That is the error I get Apr 27 07:45:55 ;-( Apr 27 08:16:32 zachlatta, is that your first app? Apr 27 08:47:21 hello Apr 27 08:47:38 i used Layout inflator to get a view Apr 27 08:47:48 now i want to append a view to it Apr 27 08:47:52 do it Apr 27 08:47:58 do it now ! Apr 27 08:47:59 it doesn't have addview Apr 27 08:48:01 :) Apr 27 08:48:08 find a linearlayout in your view Apr 27 08:48:10 and addview Apr 27 08:48:24 if you do view v = inflate blah blah blah Apr 27 08:48:28 it doesnt know that its a viewgroup Apr 27 08:48:34 naturally not gonna have addview funcitonality Apr 27 08:48:46 it's a relativeview Apr 27 08:49:16 well thats gonna be a total pita Apr 27 08:49:17 but doable Apr 27 08:49:27 cast it as a relative Apr 27 08:49:30 and add view Apr 27 08:49:35 understand your not appending Apr 27 08:49:43 you get the layuout, and you have to adad CHILDREN Apr 27 08:55:45 ((RelativeLayout) v); am i not casting right ? Apr 27 08:57:26 never mind it works! Apr 27 09:02:23 anyone running statistical chat log in here? Apr 27 09:03:57 Hello, I need the conceptual data models of contacts in order to make an automatic import or export to Oracle Database or Postgresql. Apr 27 09:14:04 Hellooooo. I'm crazy with androiddd !!!!. I'm writing text to a file and NewLine(); doesn't works !!!! What happen ??? Apr 27 09:14:50 make sure there is not a distinct method to append as a new line to file, as opposed to append to file (of the same line) Apr 27 09:15:48 I have tried with "\n", line.separator, append, ... Apr 27 09:16:34 my code is very easy Apr 27 09:16:38 i write 3 lines Apr 27 09:16:44 "Hello", "Goodbay", "hello" Apr 27 09:17:10 I would like to get a 3 line txt "text.txt" Apr 27 09:17:13 lol Apr 27 09:17:20 hi i have a doubt, If a mobile device is registered with GCM, then will user get a notification, if user has changed his SIM? Apr 27 09:17:21 but i'm getting a "Hello Goodbay Hello" Apr 27 09:17:25 in the same line Apr 27 09:17:26 SoniAndroid: are you opening the file in Notepad? Apr 27 09:17:33 yes Apr 27 09:17:37 thats why Apr 27 09:17:39 that's the problem ? Apr 27 09:17:40 xD Apr 27 09:17:43 windows uses "\r\n" Apr 27 09:18:20 oh my god Apr 27 09:18:26 SoniAndroid: really its a windows problem Apr 27 09:18:39 SoniAndroid: open it with any decent text editor and it would be fine Apr 27 09:18:40 then... a txt file beetwen android and windows is not compatible Apr 27 09:18:49 let me try Apr 27 09:19:07 ohhhhhhhhhhhhh man Apr 27 09:19:14 Napalm Apr 27 09:19:15 lol Apr 27 09:19:16 really thanks Apr 27 09:19:37 driving yourself insane, where you? Apr 27 09:19:40 heh Apr 27 09:21:07 i want to if a device is registered with GCM, then will user get a notification, if has changed his SIM Apr 27 09:21:22 GCM - google cloud messaging Apr 27 09:21:59 two days working on it and it's Bill Gates fault !!!! Apr 27 09:22:00 :) Apr 27 09:39:17 i want to know if a device is registered with GCM, then will user get a notification, if user has changed his SIM Apr 27 09:47:36 aj_blk: so try it and see Apr 27 09:50:48 im not a android developer, but i want to know what to do to link the notifications from google cloud message to the SIM of the user rather than just the mobile device Apr 27 09:51:30 is it possible to link GCM to the SIM too ? Apr 27 09:51:40 GCM is tied to google account is it not ? Apr 27 09:51:50 as in nothing to do with device or sim Apr 27 09:53:45 aj_blk: erm, what platforms does GCM run on apart from Android? Apr 27 09:55:38 actually this blog was saying about it process http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ Apr 27 09:59:49 StingRay_ : i dont know what GCM is linked to ? , but would like to know possibliites to link to the user SIM Apr 27 10:00:14 doubt it Apr 27 10:00:18 go read the docs Apr 27 10:16:50 when you think you've seen the lamest 1-star Google Play reviews, there's always something that beat it: "Uninstall does not work!" Apr 27 10:17:09 :O Apr 27 10:17:34 bubbleguuum: how did you f that up ? Apr 27 10:17:56 i mean, you literally don't have to do anything :D Apr 27 10:18:14 g00s: its probabably a user that drags the icon to "remove" thinking it uninstalls it Apr 27 10:18:26 confused user I guess Apr 27 10:18:43 that rated uninstalling :p Apr 27 10:18:54 will you respond to him :P Apr 27 10:19:15 maybe Apr 27 10:19:32 althoug the temptation to leave him in misery is great Apr 27 10:19:36 shits going down ... Apr 27 10:21:15 bubbleguuum: put a link to this in your reply (thx to StingRay_) http://kofegeek.files.wordpress.com/2012/01/403319_142372949212972_100003208032044_175841_151378192_n.jpg Apr 27 10:21:44 haha Apr 27 10:22:23 nope, have to remain civil even for the lamest comments, which is an interesting exercise Apr 27 10:22:32 indeed Apr 27 10:23:23 just going to tell him how to uninstall Apr 27 10:23:34 stating the obvious Apr 27 10:25:20 oh and that clown left his comment in german Apr 27 10:25:40 huh, Thomas Cormen has a new algo book out Apr 27 10:25:49 sounds like he should be an iOS user Apr 27 10:25:59 i couldn't get through his monster one Apr 27 10:26:09 bubblegumm: maybe you could make an entire app that shows him how to uninstall Apr 27 10:26:58 ...or just ingore clowns like him... Apr 27 10:28:42 app name: "How to Uninstall Apps for Idiots" :P Apr 27 10:30:31 since the app market is saturated, might as well start the parody app market :) Apr 27 10:30:40 what about "My 1-star app" whose only purpose if to let people 1 star it ? Apr 27 10:32:14 and odds are 10 to 1 it'll get 5 stars Apr 27 10:32:38 making that app could be a lot of fun though Apr 27 10:32:52 which would be expected if the app succeed at being a 1 star app :p Apr 27 10:33:18 yes it could be funny, with a 1-star comment generator Apr 27 10:33:29 and selected quotes of the best of the best Apr 27 10:34:38 you could have a droid robot on a stage like it's doing amatuer stand up reading off the comments with tts Apr 27 10:46:00 why arial in attribute typeface in not a valid value ?! Apr 27 10:46:31 can't i use arial font ? Apr 27 10:48:30 si Apr 27 11:10:40 hi everybody, this may be a silly question, but i've submitted an app to the google play yesterday, and i can't find it on the store. How can i find out the link in the store so i can put it on my website? Apr 27 11:10:57 I know it may take "several hours" … how much is several? Apr 27 11:12:00 emc: http://developer.android.com/distribute/googleplay/promote/linking.html Apr 27 11:12:36 ah, great! Apr 27 11:12:37 thanks! :) Apr 27 11:12:51 i'm trying this now Apr 27 11:13:24 what is the movie format that is supported by most phones? i'm going nutz! for over a month i can't get an intro to be played on android 2.3 phones Apr 27 11:13:39 i tried mp4... i tried webm.. Apr 27 11:13:52 <[deXter]> ufk, MP4 is the container, and H.264 is the codec Apr 27 11:13:58 ufk: http://developer.android.com/guide/appendix/media-formats.html Apr 27 11:14:03 yeah i read that document Apr 27 11:14:13 maybe i was wrong with the codec i'll check thanks Apr 27 11:14:57 <[deXter]> You could try H.263 for maximum compatibility Apr 27 11:15:39 i was using h.264 Apr 27 11:16:23 going to try that right now thanks Apr 27 11:17:14 Leeds, i suspect i just have to wait for a bit more, correct? http://i.imgur.com/jEn4Vvi.png (we've uploaded around 18h ago) Apr 27 11:29:46 does this make sense to anyone? Apr 27 11:29:46 http://i.imgur.com/jEn4Vvi.png Apr 27 11:30:31 (considering it's been submitted almost 20 hours ago and it says "published" on the top right) Apr 27 11:39:23 20 hours sounds long Apr 27 11:40:09 yeah it does Apr 27 11:40:16 took about 1-2 hours for me... Apr 27 11:40:33 I'd probably try and unpublish and re-publish Apr 27 11:54:40 say an app is a 'lite' version that lets the user use the app 20 times (pro version is unlimited). is it fair to put some file on the sdcard to check whether the app has been used 20 times before? Apr 27 11:54:48 or would i go to hell? Apr 27 11:58:40 well you would be super easy to bypass Apr 27 11:59:40 id take other measures too, but im just seeing if its fair practice Apr 27 12:00:28 i know some things are frowned upon Apr 27 12:00:32 i think it's a bit pointless Apr 27 12:00:43 to the point of…why bother Apr 27 12:02:03 why bother? some people might really need the functionality of the app, this would ensure they dont 'abuse' the lite version Apr 27 12:02:14 surely you can see that :) Apr 27 12:03:00 hello Apr 27 12:03:08 i've got a question Apr 27 12:03:28 ask, don't ask to ask Apr 27 12:03:30 i'm making an android app and i want to make a custom button which has a circular shape. How can i get the "hitbox" of the button to be circular in android app? Apr 27 12:04:21 do i have to save it in photoshop by some special way o..? Apr 27 12:04:22 do you actually want the it to hit only on the circular area? if so, then its not a "box" Apr 27 12:04:33 yea, only the circular area Apr 27 12:04:47 at the moment, my whole screen is the button Apr 27 12:04:51 but only circle in the middle Apr 27 12:05:39 lol Apr 27 12:06:16 is it photoshop related? Apr 27 12:07:06 ye you use the photoshop java plugin Apr 27 12:07:21 androidman: one moment Apr 27 12:19:51 androidman: did you need long press aswell? Apr 27 12:20:23 no, button just opens up a new screen Apr 27 12:20:38 or activity in development language? :D Apr 27 12:21:30 i'll add it anyone, one moment Apr 27 12:38:16 I'm trying to connect a Galaxy Ace to my Ubuntu machine, but I keep on getting 'Can't mount BCM21553-Thunderbird' error Apr 27 12:38:54 its subtitle says "Couldn't open MTP-device ‘[usb:002,007]’" Apr 27 12:39:26 Have you enabled debugging USB mode? Apr 27 12:42:53 androidman: hmm, not yet, can't find that setting on this phone Apr 27 12:44:12 it's a 2.3.6 device Apr 27 12:44:35 when you plug it in, what happens on the phone? Apr 27 12:45:56 mine is 4.0.4 and the debug option is located under "Developer options" or something like that under the settings menu Apr 27 12:46:17 Leeds androidman: hmm, I found the setting, but in Applications menu (in settings menu) Apr 27 12:46:20 so far no error Apr 27 12:46:43 oops, still error, but it was behind my IRC window Apr 27 12:47:19 Leeds: it detects that USB was connected Apr 27 12:47:27 if i enable the mode on my phone, it shows me the USB picture and and android picture in the notification area Apr 27 12:48:41 I have it enabled now, 'lsusb' gives me this 'Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (USB Debugging mode)' Apr 27 12:48:59 but it's not an S2, it's a Galaxy Ace Apr 27 12:50:55 its probably nothing, it shows up now I think Apr 27 12:51:00 thanks for the help guys Apr 27 12:51:09 hmm, i dont know, i'm beginner at development aswell Apr 27 13:00:31 androidman: well I just wasn't thinking I guess, I should have known that for sure Apr 27 13:00:48 but it was a long night yesterday Apr 27 13:11:33 Hi guys! I have a question about eclipse and editing xml files. It's not a big deal but it's annoying. When I'm editing some atribute, like , when I type opening " it automatically adds the clossing ". In some other IDEs when I type the " again, the automatically added one is just overwritten but here a couple of new ones is created. Apr 27 13:11:50 Is there some trick i'm missing? :) Apr 27 13:22:09 I enabled software keys even on my phone, even though I have those hardware keys below my screen as well. it seems that now the DPI is messed up a bit. how can I correct it? Apr 27 13:23:47 Sounds like a root question Apr 27 13:27:20 I just came up with an idea for a developer game Apr 27 13:27:20 yup Apr 27 13:27:32 Everytime you squash a bug... Apr 27 13:27:35 you do a shot Apr 27 13:27:48 so what ur saying is Apr 27 13:27:51 your drunk Apr 27 13:28:03 No no no it's just an idea for a game Apr 27 13:28:19 Shots aren't limited to drinking Apr 27 13:30:02 opinions Sony Xperia ZL or HTC One Apr 27 13:30:19 HTC One has a much clearer screen Apr 27 13:30:20 jug6ernaut_: I heard the htc one is awesome Apr 27 13:30:28 Horrible battery Apr 27 13:30:32 Sony Apr 27 13:30:41 Sony is dust proof Apr 27 13:30:43 both is crap cause you can't change battery Apr 27 13:30:51 i have the ZL right now, but i can return it, but i can get the One for $300... Apr 27 13:31:10 DarkSlay3r, the ZL is not dust prof, thats the Z Apr 27 13:31:16 shmooz: i actually don't mind the removable battery Apr 27 13:31:32 shmooz idc about changing battery, only with it lasting through the day Apr 27 13:31:33 you mean non-removable Apr 27 13:31:42 jug6ernaut_: Are you telling me dust can get into the sony!? Apr 27 13:31:56 Then it's not worth buying now is it? Apr 27 13:32:00 i got 3h screen on time, 16.5h total yesterday….which is ok Apr 27 13:32:10 DarkSlay3r dust can get in any phone if it tries hard enough Apr 27 13:32:31 my friend regrets getting the nexus 4 cause his batteries are crap and he can't replace it Apr 27 13:32:51 but trying to sell dust proof as a feature just sounds like a way of saying there is nothing special about the phone Apr 27 13:33:12 shmooz: i have the nexus 4 i get through the day easily Apr 27 13:33:34 battery is not spectacular.. but it's good enough Apr 27 13:33:51 * jug6ernaut_ wants to make it through the day with heavy use Apr 27 13:33:57 * jug6ernaut_ has been spilled by his note 2 Apr 27 13:33:59 well my HTC Panache lasted twice as long because I could find a good battery from ebay Apr 27 13:34:14 and I still love my old HTC Panache like its still new Apr 27 13:34:24 panache? wtf is that lol Apr 27 13:34:27 if I wasn't able to change battery I'd have to throw it out Apr 27 13:35:04 its this one jug6ernaut_ http://www.phonegg.com/HTC/Panache/HTC-Panache.jpg Apr 27 13:35:17 idc about replacing, i don't keep phones long enough for the bats to go bad, they just need to last through a day Apr 27 13:35:18 I love the form factor of that phone still Apr 27 13:35:29 jug6ernaut_: Define heavy use? Apr 27 13:35:40 I listen to podcasts all day Apr 27 13:35:49 4+h screen on time Apr 27 13:36:20 ah.. Apr 27 13:36:31 well mine is about 2 1/2 Apr 27 13:36:42 30% Apr 27 13:38:01 so I would go with the S4 because it lets you replace battery, and insert SDcard Apr 27 13:38:33 Just a question though... do you actually swap out the battery in the middle of the day Apr 27 13:38:45 you need to support corporations that don't take away our freedom to replace battery and extend storage Apr 27 13:39:47 It's hard to make parts this small at affordable price points while keeping the parts removable Apr 27 13:40:06 no it isn't Apr 27 13:40:12 i doubt the nexus 4 would have had that sweet glass back if it was removable Apr 27 13:40:27 they just want you to buy another phone soon, so they make it disposable Apr 27 13:40:34 considering how the samsung is 70% plastic Apr 27 13:40:54 how is the htc one disposable? Apr 27 13:41:04 you can't change battery Apr 27 13:41:11 therefore its disposable Apr 27 13:41:47 i still don't get it Apr 27 13:43:17 I don't get what you don't get, its simple Apr 27 13:44:37 It's simple. shmooz is in the minority who actually bother with switching battery and sd card, and he's angry companies don't all cater to him Apr 27 13:44:54 Ah i see... Apr 27 13:45:00 what makes you think I'm minority ? Apr 27 13:45:13 shmooz i won't be buying another Samsung device (past 3 being samsung) Apr 27 13:45:14 iPhone. Apr 27 13:45:24 all my friends agree with me, especially the ones that made the mistake of buying those new disposable phones Apr 27 13:45:29 SimonVT: Well i think there is a demographic for removable stuff Apr 27 13:45:54 Sure, there's always a demographic Apr 27 13:46:04 The question is if it's large enough Apr 27 13:46:04 my friend with the nexus 4 is selling it on craigs list so he can get the older nexus i9250 Apr 27 13:46:10 Companies that are not Apple (they can burn) should cater to their needs Apr 27 13:46:32 I actually like the nexus and it serves me Apr 27 13:46:41 Most people just don't care about that stuff, as long as it works Apr 27 13:47:01 Well i am a tinkerer Apr 27 13:47:14 it took me a while to get used to the non removable sd Apr 27 13:47:28 but i realized how much i really didn't miss it Apr 27 13:47:41 usually its insert once and that was that Apr 27 13:48:34 Exactly Apr 27 13:49:29 remember me, when your nexus 4 or htc one or experia starts running out of juice earlier than you expected Apr 27 13:49:43 We are android devs Apr 27 13:49:55 When the next nexus comes out Apr 27 13:49:56 and then you can search through youtube videos with instructions on how to take it apart Apr 27 13:49:59 we'll get it Apr 27 13:50:17 I'm getting the nexus lol, so its a matter of what can hold me over for 6 months Apr 27 13:50:41 * DarkSlay3r high fives fellow nexus owners Apr 27 13:51:14 hey anybody here? Apr 27 13:51:16 If a device starts losing its juice in a few hours, the customer is going to take it to the store anyway Apr 27 13:52:36 I want to ask you about a layout question. Im gonna make a home screen for my app. I need to find a good way to list some routes and statistics Apr 27 13:52:47 Expandable lists are okay for routes? Apr 27 13:53:08 and a List for the statistics`?? Apr 27 13:54:26 I need a quick answer... how would you do it? Apr 27 13:55:05 more information Apr 27 13:55:24 What do you mean by routes? Apr 27 13:57:15 I am making a running app Apr 27 13:57:18 which can track you route Apr 27 13:57:23 your Apr 27 13:57:54 so you want to give your user statistics by displaying it as a list? Apr 27 13:58:03 yes? is it a bad idea? Apr 27 13:58:26 a non clickable one if its possible? Apr 27 13:58:34 Well i don't know... Apr 27 13:58:41 it depends on your design Apr 27 13:59:11 On my home screen I need top 5 routes and I thought I could make them with an expandable list Apr 27 13:59:23 and a list view for the statistics Apr 27 14:01:24 Anyone good at designs? Apr 27 14:06:29 what would be the best way to run Android on my (Convertible) Laptop running Arch linux? Apr 27 14:06:33 using Virtualbox? Apr 27 14:06:53 saelo, the ADK comes with an emulator, you could use that Apr 27 14:07:09 but I guess the main question is "for what purpose" -- do you want to use it, or develop for it? Apr 27 14:08:50 Amadiro: use it Apr 27 14:09:05 and I think the emulator isn't enough for that Apr 27 14:09:37 there is a vbox_x86-eng target in Android, but so far I couldn't get that to work Apr 27 14:09:40 install the x86 image Apr 27 14:11:26 DarkSlay3r: From the sdk? How do I run it? Also isn't that for Atom processors? Apr 27 14:13:50 saelo, perhaps it could be made to work directly on the machine? Apr 27 14:16:49 Amadiro: what do you mean? Apr 27 14:17:27 saelo, that you could perhaps directly install it on the machine. AFAIK android works on x86, and if drivers and such are missing, you may be able to pull them from the linux mainline. Apr 27 14:17:39 I have never attempted or seen such a thing done, though, no clue if it is feasible Apr 27 14:18:38 Amadiro: I would prefer running it in VirtualBox, but that should work the same Apr 27 14:18:46 How do I get a installable Image though Apr 27 14:20:08 saelo, from a quick google search query, there seem to be a lot of guides on the net Apr 27 14:20:24 search for "install android on PC" or "install android on laptop" Apr 27 14:21:29 there are also virtualbox-specific guides Apr 27 14:21:47 but they mostly provide compiled images with wrong resolution and stuff Apr 27 14:21:59 I would like to build the image my self if possible Apr 27 14:22:11 there is that one guide from intel, but thats a bit outdated... Apr 27 14:22:45 But I guess I could try to figure out how that vbox_x86 build target works and see if I can get it to work Apr 27 14:28:35 saelo, that certainly sounds like a plan. Apr 27 14:28:51 :) Apr 27 14:29:08 Although I'm not sure why you'd need to build it yourself -- surely you would be able to change resolution with a few boot parameters and such? Apr 27 14:30:10 Also I'd like to be able to rebuild it myself so I'm not stuck with Android 4.0 Apr 27 14:30:32 looks like android-x86.org has builds for various laptops, eeepcs and such Apr 27 14:30:59 right, I'm checking those out right now Apr 27 14:31:15 newest I can see there is 4.2-devel Apr 27 14:32:48 yeah, they look quite promising, the 4.2 boots on VirtualBox Apr 27 14:33:05 lets see how I can fix the resolution Apr 27 14:33:13 saelo, which kernel version does 4.2 use? Apr 27 14:33:27 And do you use hardware-accelerated opengl? Apr 27 14:34:21 looks like 4.0+ is based on 3.x+. Apr 27 14:34:42 I'll tell you in a second Apr 27 14:34:45 but I think its 3.8 Apr 27 14:36:22 and yes i use hardware accelerate opengl Apr 27 14:38:38 yeah linux 3.8 and it runs pretty nicely :) Apr 27 14:52:32 saelo, works on my end too, but not with hardware acceleration and a high resolution simultaneously, it seems. Apr 27 14:53:23 Amadiro: how did you change the resolution? Apr 27 14:54:15 saelo, adding a UVESA_MODE option on the grub command-line Apr 27 14:57:43 Actually, seems the screen colors get messed up at 1080p regardless of whether 3D acceleration is on or not. Apr 27 14:58:29 Amadiro, well I only need 1366x768 ;) Apr 27 14:59:40 works pretty well, thanks for your help Apr 27 15:00:03 No problem. Apr 27 15:18:26 Anybody here? I get some errors Apr 27 15:19:01 http://pastebin.com/mZDeJgKh look here Apr 27 15:22:23 Soo.. Don't treat TabsViewHome as an android.support.v4.app.Fragment when it isn't Apr 27 15:24:23 I fixed it I think Apr 27 15:29:29 how do I use findViewById in a fragment? Apr 27 15:29:57 View#findViewById Apr 27 15:30:59 Hey Apr 27 15:31:05 i have a little problem Apr 27 15:31:11 i'm using SlidingMenu Apr 27 15:31:28 it leaves a white patch in webview when i slide back Apr 27 15:32:19 Cannot make a static reference to the non-static method findViewById(int) from the type View ... not it says this Apr 27 15:32:38 Remove static from something Apr 27 15:32:48 Then try http://docs.oracle.com/javase/tutorial/ Apr 27 15:33:35 SimonVT: Any idea on my little issue? Apr 27 15:34:01 getView().findViewById Apr 27 15:34:03 it was this Apr 27 15:34:07 thanks Apr 27 15:34:32 Nope. People have reported the same issue with my library, but so far noone have provided a test case so.. I haven't looked into it Apr 27 15:34:49 You wrote Sliding Menu? Apr 27 15:35:02 Hail! Apr 27 15:35:08 No Apr 27 15:35:17 I wrote android-menudrawer Apr 27 15:35:25 Ah i see.. Apr 27 15:35:29 Stil Hail! Apr 27 15:35:42 so now that google is forcing people to join their antisocial network in order to leave android application feedback are there any alternative methods of doing so Apr 27 15:36:02 The constructor MyCustomAdapter(TabsViewHome, ArrayList) is undefined ... why does it say this when I have defined it? Apr 27 15:37:06 Because you haven't defined it Apr 27 15:37:13 I have a class called MyCustomAdapter Apr 27 15:37:15 with a constructor Apr 27 15:37:48 I'm sure it has a constructor Apr 27 15:37:49 with a context and ArrayList as parameters Apr 27 15:38:02 is TabsViewHome as Context? Apr 27 15:38:08 Last you asked it was a Fragment Apr 27 15:38:26 As far as I'm aware, Fragment doesn't extend Context Apr 27 15:39:15 Anyway SimonVT a case for the problem is a webview loaded as a fragment in main activity and a slider attached to it Apr 27 15:39:22 What do I put in there then? Apr 27 15:39:26 when webview loads a page and you slide Apr 27 15:39:51 sliding back leaves a huge white space the width of the offset Apr 27 15:40:19 Do I have to fix the constructor then? Apr 27 15:42:31 SimonVT Apr 27 15:42:35 help me out here.. I have a deadline Apr 27 15:42:55 Heh, you're screwed then Apr 27 15:43:02 LOL Apr 27 15:43:10 I only have that error Apr 27 15:46:30 SimonVT: I found what caused the flicker problem Apr 27 15:46:33 Simon... Can I write you a PM? Apr 27 15:46:40 Hardware acceleration Apr 27 15:47:00 Solution is to force software rendering Apr 27 15:47:20 That's more of a workaround Apr 27 15:47:48 that's true... Apr 27 15:50:32 SimonVT what do I do? Apr 27 15:50:38 cant I cast? Apr 27 16:22:15 can one mix static and dynamic layouts? Apr 27 16:22:35 eg fill a LinearLayout defined in a static XML file with dynamic items? Apr 27 16:22:55 yes Apr 27 16:23:08 The xml is just parsed into java objects Apr 27 16:23:30 There's no difference between inflating a view from xml and creating one in code Apr 27 16:24:49 SimonVT: ah, thanks! Apr 27 16:34:34 can anyone look at my code? Apr 27 17:05:36 I'm wondering if there are any advantages to using a ListView to fill my form or to just use a LinearLayout and add items to that Apr 27 17:05:53 the items are all identical and contain a spinner and an edittext Apr 27 17:13:00 hi, when is try to build a dialog and get text for the buttons via: "getString(R.string.ok)" the butons are not shown. when i enter a hardcoded string everything works. how can i fix this? Apr 27 17:27:38 hello Apr 27 17:28:05 how do you make the virtual keyboard go away/hide in Javascript (html)? Apr 27 17:28:14 Do not say blur, focus something else, remove the input element, disable the element -- tried all that already. Apr 27 17:48:38 JavascriptInterface Apr 27 17:49:05 call the dismiss keyboard through a js interface Apr 27 17:50:55 How do I do this in a webpage? Apr 27 17:53:21 this is from a webpage Apr 27 17:53:25 not from an app Apr 27 17:58:15 is there a way of having different debug levels in an android app? Apr 27 18:00:55 Sure, you just gotta implement it yourself Apr 27 18:10:09 Hi guys :) I'm trying to pass a SparseArray to a Bundle with no success :( Apr 27 18:11:03 Can someone help me? Apr 27 18:15:29 sure Apr 27 18:16:07 you can only pass some scalar values of stuff that implements ipacelable to a bundle Apr 27 18:17:29 @monsti I've read here (http://www.intertech.com/Blog/Post/Saving-(and-Retrieving)-Android-UI-Instance-State-Part-1.aspx) that SparseArray could be passed Apr 27 18:18:38 @monsti Bundle has putSparseParcelableArray and getSparseParcelableArray methods Apr 27 18:18:42 You can put SparseArray String is not Parcelable Apr 27 18:18:55 So, you can't put SparseArray in it Apr 27 18:19:27 Convert it to an int[] and a String[] and put those in it Apr 27 18:19:42 SparseArray is some "better" implementation of a HashMa^ Apr 27 18:19:58 no more - no less Apr 27 18:21:42 Hmmm @SimonVT Hmmm maybe it's a solution Apr 27 18:22:21 What's about Diederik's solution here: http://stackoverflow.com/questions/11270161/best-way-to-store-sparsebooleanarray-in-bundle ? A container with my SparseArray Apr 27 18:22:29 i have a generic solution to this problems Apr 27 18:22:38 i have my own parcelable baseobject Apr 27 18:22:44 and i pacels to a string with a json serializer Apr 27 18:24:24 Guess you could wrap it in a class like that.. Apr 27 18:25:07 I'd probably just create two methods helper methods to put and get it from a bundle Apr 27 18:27:11 Yeah..maybe it's faster than create a int[], string[] array every standby of my app Apr 27 18:27:39 They contain 50/60 values Apr 27 18:27:54 I'll try now :) Apr 27 18:28:14 Thank you Apr 27 18:28:21 I doubt it's measurable to create int and string arrays Apr 27 18:28:22 gorghino: that will work - you have to implement an ipacelable Apr 27 18:28:31 try using a generic or a baseclass Apr 27 18:34:32 hey anyone familiar with System.nanoTime(); ? I was wondering if when I call it first it starts timing at 0 and then I call it again it gives the elapsed nanoseconds since the first call Apr 27 18:34:56 it sounds like it doesn't do that from what I'm reading, but its confusing since it says values returned can be negative since the start time may be in the future? Apr 27 18:38:00 "This timestamp can only be used to measure an elapsed period by comparing it against another timestamp" Apr 27 18:38:05 So it doesn't really matter how it's implemented Apr 27 18:38:37 yeah, it's just defined as using the most precise system timer available Apr 27 18:38:49 it's not a representation of wallclock Apr 27 18:38:59 ok so if i do startTime = System.nanoTime(); and then repeatedly do endTime = System.nanoTime() - startTime; I should get the elapsed times to each new event Apr 27 18:39:20 where as System.currentTimeMillis() is Apr 27 18:41:11 Jack3k3, something like that Apr 27 18:43:08 okay thanks Apr 27 18:44:26 note that startTime doesn't magically get updated as you call another nanotime :) Apr 27 18:46:36 http://pastebin.com/phyWWwvd Apr 27 18:50:07 zharf right but if i only set startime once, all my repeated calls minus start timeshould be the elapsed time from starttime Apr 27 18:52:12 Jack3k3, yes Apr 27 18:55:38 so im getting some weird behavior, im logging: logtext + ","+Long.toString(System.nanoTime() - startLogger) + '\n'); to file Apr 27 18:56:15 the log text prints, and the nano text prints, but I get something like logtext, 3423513422,23413432234,34234135234,64363452343, etc the new line logtext, bunch more group of numbers Apr 27 18:56:41 shouldnt it just be logtext, long number new line, logtext, long number, new line, etc Apr 27 18:57:12 When trying to run the AVD, I keep getting an error about bash: ./emulator: No such file or directory Apr 27 18:57:15 anyone run into that? Apr 27 19:13:00 I'm working on an app that would typically allow the user to select contacts from various sosial networks. I know I can wire up my app to handle auth and services to their web interfaces, but are there any simpler strategies (Facebook app working as a content provider, similarily for Twitter etc)? Any pointers to the best way to achieve this (after Google disabled contacts sync with the other social Apr 27 19:13:02 networks)? Apr 27 19:23:45 jasonamyers, is your system x86 or x64? Apr 27 19:24:20 x64 turned out I need ia32libs :( Apr 27 19:24:28 jasonamyers, yaa, that's it Apr 27 19:24:36 thank you! Apr 27 19:27:18 Q Apr 27 19:27:34 comment out or delete? Apr 27 19:27:41 that is the question Apr 27 19:28:47 You're using version control, no? Then just delete unless you know you're going to use that soon. Apr 27 19:29:10 Well i thought that too Apr 27 19:29:40 i experimented with something only to delete it... It didn't make any commit Apr 27 19:30:28 so guess who gets to spend an hour retyping it because he found out what made it fail in the first place Apr 27 19:34:38 DarkSlay3r: are you using IDEA by chance? Apr 27 19:35:25 if so, it has it's own internal version control thingy, that would let you retrieve that Apr 27 19:36:03 basically an infinite undo, backed by a version control paradigm Apr 27 19:36:04 Nah Apr 27 19:36:14 Link? Apr 27 19:36:26 for what, IDEA? Apr 27 19:36:36 http://www.jetbrains.com/idea/ Apr 27 19:36:57 it's the main competitor to eclipse in the java IDE space Apr 27 19:37:38 This is looking awesome Apr 27 19:37:41 it has a free open source community edition, and a commercial non-open source ultimate edition with some added features Apr 27 19:37:49 it is :) Apr 27 19:38:21 How is the ADT integration? Apr 27 19:38:29 for android stuff, I don't think it has quite the same level of visual layout editing support Apr 27 19:38:36 but it's still pretty good I think Apr 27 19:38:56 I don't know anyone that uses the Visual layout designer anyway Apr 27 19:39:12 the damn thing is impossible to decipher Apr 27 19:39:59 but it really is a *nice* ide Apr 27 19:40:18 I'll try it out when i can Apr 27 19:40:27 I'll be bookmarking it Apr 27 19:40:54 * JesusFreke goes back to hacking on baksmali in IDEA :) Apr 27 19:41:24 Oh, what are you doing with baksmali? Apr 27 19:41:47 kakazza: oh, I've been doing lots of work the last few months to replace the dex reader/writer backend Apr 27 19:42:11 Are you an active dev of the project? Apr 27 19:42:40 yes, I'm the original author Apr 27 19:43:10 I didn't know. Thanks for the project :) Apr 27 19:43:15 np :) Apr 27 19:43:56 JesusFreke: Dude what are you? Apr 27 19:44:22 I only know noticed that it's "Freke" and not "Freak" >_> Apr 27 19:44:31 Been reading your nick wrong the whole time. Apr 27 19:44:39 DarkSlay3r: ? Apr 27 19:44:50 kakazza: it's pronounced the same Apr 27 19:44:57 Hey all Apr 27 19:45:57 Seriously... i don't know when i'll get to that coding level Apr 27 19:46:12 replacing parts of the AOSP Apr 27 19:46:29 It's hard enough coding apps Apr 27 19:46:42 DarkSlay3r: huh? smali/baksmali isn't part of AOSP (well, it's an external project there) Apr 27 19:47:16 it's a dalvik bytecode assembler/disassembler. I've been rewriting the backend it uses to read and write dex files Apr 27 19:47:23 Well all the same... the only thing i really know about dex is the tiny footnotes on dalvik Apr 27 19:47:53 oh, I've always loved stuff like that :) Apr 27 19:48:03 Regardless man... i seriously envy your skills Apr 27 19:48:05 taking something in one representation and converting it to another Apr 27 19:48:14 heh, thanks. Apr 27 19:48:19 Just keep at it :) Apr 27 19:48:38 I try... but i'm still a noob Apr 27 19:50:30 Does anyone here use GCM for a relatively successful app? Apr 27 19:50:44 GCM? Apr 27 19:50:52 Google Cloud Messaging Apr 27 19:51:00 Push Notifications basically Apr 27 19:56:15 how do I cast from fragment to context? Apr 27 19:56:49 Ilhami: A Fragment isn't a context. So you can;t Apr 27 19:57:10 What do I do then? I am trying to implement a expandable list in a fragment? Apr 27 19:57:18 an* Apr 27 19:57:30 do getActivity in a fragment Apr 27 19:57:36 an Activity is a Context Apr 27 19:59:06 Maybe you want to see my code? Apr 27 19:59:48 ok Apr 27 20:04:55 I have a simple app that has a Text Field and a Button (from the tutorial http://developer.android.com/training/basics/firstapp/starting-activity.html ). I want to use button to search Google instead of just displaying the text typed. How can I do that? Apr 27 20:06:16 MOUD: one possibility would be to send a VIEW intent with the appropriate google.com url for that search Apr 27 20:06:42 this will open the browser to the search results for that query Apr 27 20:07:47 JesusFreke: I see. But I want to display the results in the app and not in the browser Apr 27 20:08:15 then you'll need to use a webview Apr 27 20:09:29 JesusFreke: do you mind explaining how to do that? Apr 27 20:10:11 https://developer.android.com/guide/webapps/webview.html Apr 27 20:10:12 I'll defer to the official docs :) Apr 27 20:10:19 yeah, those :) Apr 27 20:10:38 I like Toast... Apr 27 20:10:53 but it kills me whenever i forget .show() Apr 27 20:11:08 If I'm doing tab navigation and using fragments for each tab (3 all together), is it alright to make those fragments singletons or is that a bad practice? Apr 27 20:11:10 thanks, I'll take a look Apr 27 20:11:25 DarkSlay3r: Doesn't Lint catch that already? Apr 27 20:12:00 It does.. but i stopped paying attention to it after a while Apr 27 20:12:27 It still gives me warnings after i handle low version stuff Apr 27 20:19:54 Amorgos are you here? Apr 27 20:21:05 JesusFreke: Maybe you might know something on this Apr 27 20:21:26 But why was the Preference Fragment left out of Support.V4? Apr 27 20:21:37 no clue :) Apr 27 20:24:13 :-( Apr 27 20:27:28 Nobody's got an answer to use fragments as singletons or not? Haha really? Apr 27 20:28:02 Gowie: I've never actually had to think about it Apr 27 20:29:05 Gowie: fragment as singleton? Apr 27 20:29:06 I dunno but i find fragments confusing Apr 27 20:34:36 g00s: Yeah, I have 3 tabs and each uses a fragment to display that tabs content. I'm wondering if instead of creating that fragment anew everytime a user taps that tab should I just create the fragment as a singleton which I hold reference to in the main activity and then display if it has already been created before, which makes sense to me but I'm not sure if that is a bad practice for android dev or not... Apr 27 20:35:57 Just keep a reference to the fragment Apr 27 20:36:00 Don't make it a singleton Apr 27 20:39:07 Isn't the solution to that to check if the fragment exists? Apr 27 20:39:22 rather than create it everytime? Apr 27 20:43:02 SimonVT: so, about the activity / fragment partitioning; in this lesson they use on activity for all their fragments http://developer.android.com/training/basics/fragments/fragment-ui.html Apr 27 20:43:18 have you seen any libraries or patterns that make this approach more elegant ? Apr 27 20:45:30 Nope Apr 27 20:45:36 k, thx Apr 27 20:46:32 in this SO post, they move the Mediator (glu code) into the fragments themselves http://stackoverflow.com/questions/12363790/how-many-activities-vs-fragments Apr 27 20:46:57 damn it, that kinda ugly also Apr 27 20:47:10 i'm trapped! there is no way out out this mess Apr 27 20:49:03 Atm I have a tablet activity and a phone activity, and just use callbacks from fragments when stuff happens Apr 27 20:49:25 ok Apr 27 20:51:41 You have two activities? Apr 27 20:51:52 The samples always use one and the mDualView boolean. Apr 27 20:52:04 That's one approach Apr 27 20:52:07 Mine is another Apr 27 20:52:19 How do you decide which activity to start? Apr 27 20:52:36 Screen size Apr 27 20:53:05 Can I see the conditional code for that? Apr 27 20:53:50 Gonna handle it at the manifest level with android:enabled Apr 27 20:56:03 But you can handle it in code with Configuration#smallestScreenWidthDp Apr 27 21:17:18 The android-kernel is a (more or less heavily modified) standard linux kernel. I wonder (and did not really find anything online)… hasn't anyone tried to write… for example a kernel module that intercepts the syscalls and translates them to the android kernel, so I could just run posix-compatible apps on it? I know it might be a problem with things like graphics/mesa, but for console-only network devices, it would be cool Apr 27 21:17:18 to have a gentoo on an old android phone… Apr 27 21:17:26 Does anyone know about such projects? Apr 27 21:20:25 spm_Draget, not sure what you mean, the android kernel is not really that modified -- you can just run posix programs out-of-the-box. Apr 27 21:21:16 For instance using the NDK you can run your native C code on the android, and there you have POSIX functions available, I believe. Apr 27 21:21:17 spm_Draget: even back on the old g1, it was possible to install, e.g. a full debian userland Apr 27 21:21:35 and get the full command-line capabilities of a debian box Apr 27 21:21:41 INcluding wifi-support? Apr 27 21:21:44 you have to be rooted, of course Apr 27 21:21:48 I've also heard of people who do things like install debian in a chroot Apr 27 21:22:02 sure, it just uses the wifi connection that android has Apr 27 21:22:07 it doesn't manage the wifi connection itself Apr 27 21:23:36 here's the original "debian on android" writeup, for the g1. I'm sure there are plenty of newer ones available now :) Apr 27 21:23:39 http://www.saurik.com/id/10 Apr 27 21:23:39 Hmm, neat. Apr 27 21:24:00 Is this a real debian userland or just chrooted on an already running android system? *reads* Apr 27 21:24:14 what's the difference Apr 27 21:24:14 chrooted onto an already running android system Apr 27 21:24:23 its still a real debian userland Apr 27 21:24:49 Hmm, true. Tho, RAM is an issue :P Apr 27 21:24:56 well you can use it to waste the battery ;) Apr 27 21:25:06 no more - no less xDDDD Apr 27 21:25:17 most modern android phones have a lot of ram, mine has 512 MiB. Apr 27 21:25:37 (and mine isn't that modern by any stretch) Apr 27 21:27:13 I have a huwai u8120 (or something like that) which has 256mb of ram. Compared to x86 system this would still be enough to run some actually useful applications like a little webserver, mpd etc. Apr 27 21:27:30 i tried to find the error my android app causes to freeze by using the Log class, but logcat doesnt show anything at all. could it be, that Logcat cant get the info, because the app is freezedß Apr 27 21:28:20 Schrostfutz: you could try attaching to the process via the debugger, and seeing where it's frozen at Apr 27 21:28:51 JesusFreke: okay, ill try that Apr 27 21:30:10 Does anyone remember if the return value of Bitmap#createScaledBitmap is the exact size passed, or the Bitmap scaled by a power of 2 so both dimensions are >= the passed values? Apr 27 21:31:30 Or something else Apr 27 21:38:10 man, I wish I actually knew something about making apps Apr 27 21:38:28 or had the attention span to actually sit down and learn something Apr 27 21:39:30 Runie: the trick is to find a project that's interesting :) Apr 27 21:39:51 but I have that! Apr 27 21:39:56 I just don't know where to start :( Apr 27 21:40:10 or rather, an achievable project that's interesting :) Apr 27 21:40:21 well this one shouldn't be too hard Apr 27 21:40:25 Runie: you can get a rich wife Apr 27 21:40:31 and avoid app development! Apr 27 21:40:50 but I have this great idea! Apr 27 21:41:06 well i have 1000 great ideas Apr 27 21:41:09 I just need to make a something with roor access that can copy a file and rename it when I tell it to Apr 27 21:41:22 do you gieve me money? Apr 27 21:41:29 now that shouldn't be too hard to do, right? Apr 27 21:41:35 -e Apr 27 21:41:37 I'm broke Apr 27 21:41:49 well ;) so go and solve your problem(s) ;) Apr 27 21:42:25 I wish I could make an app that made people pay me back what they owe me Apr 27 21:43:53 Runie: http://dilbert.com/strips/comic/2011-02-12/ Apr 27 21:44:42 wait Apr 27 21:44:59 is there something about money here Apr 27 21:45:53 cause Apr 27 21:46:07 I'm not even thinking about releasing this app if I ever make it Apr 27 21:46:12 it's just for my own enjoyment Apr 27 22:11:57 SimonVT: Can you show me an example with android:enabled? Apr 27 22:14:53 android:enabled="@bool/isThisEnabled" Apr 27 22:15:17 heh Apr 27 22:15:30 So you're not really enabling anything at all but just setting a bool in a values-XXX? Apr 27 22:15:46 swp600 and normal, I assume Apr 27 22:16:21 anyone got any tips for making a viewpager work with views that want to take motionevents Apr 27 22:17:15 i have a custom view in a viewpager and it has its limits, when i reach my "scroll" limit id like the touch events to be processed by the viewpager Apr 27 22:17:22 so im thinking touchinterceptor on the viewpager Apr 27 22:38:30 nice, that was easier than i thought Apr 27 22:40:10 implement canScrollHorizontally and canScrollVertically for JB+ ive also added a simple fallback for compat Apr 27 22:54:02 w00t and multi-touch override Apr 27 22:54:30 how do you override w00t? Apr 27 22:59:33 https://gist.github.com/slightfoot/5475083 Apr 27 22:59:36 like that Apr 27 23:10:57 any opinions on http://www.androidpolice.com/2013/04/27/for-developers-facebook-open-sources-its-internal-android-build-tool-buck-which-runs-faster-than-ant/ Apr 27 23:12:07 Personally, I'm not a huge fan of ant. But I haven't looked at buck. Apr 27 23:12:33 same, but the idea of building artifacts in parallel sounds awesome Apr 27 23:15:45 heh. I just tried a parallel build of smali with gradle. it was about the same as the non-parallel build. (was curious how good gradle's parallel building was. apparently not very) Apr 27 23:15:59 hello guyz, question to GCM (google cloud messaging), if i got a registration id, i could keep using the same one "forever" ? Apr 27 23:16:35 JesusFreke how big was the project Apr 27 23:17:03 jug6ernaut_: it's not small. it's a 16s build on a fairly beefy machine Apr 27 23:17:24 I would guess on the order of 50k LOC maybe. been a while since I've looked Apr 27 23:17:24 16s is pretty small :P Apr 27 23:17:40 jug6ernaut_: note: it's not an android app :) Apr 27 23:17:45 just standard java Apr 27 23:19:03 oh, I overestimated Apr 27 23:19:06 looks like about 20k LOC Apr 27 23:19:12 according to http://www.ohloh.net/p/smali Apr 27 23:19:14 pretty small :P Apr 27 23:21:17 Did you mean: smali Apr 27 23:21:35 ? Apr 27 23:21:36 :-D Apr 27 23:21:58 does anyone use GCM (google cloud messaging), if i got a registration id, i could keep using the same one "forever" ? Apr 27 23:22:01 smali is the name of the project, yes Apr 27 23:22:07 shakaponk - I have an idea Apr 27 23:22:10 ask a few more time Apr 27 23:22:25 maybe you'll piss people off enough to help you Apr 27 23:22:27 probably not tho Apr 27 23:22:36 take it easy dude Apr 27 23:27:30 Does xml file have to be binary to be able to read from it properly? Apr 27 23:28:24 yes Apr 27 23:28:31 assuming you mean on-device Apr 27 23:28:43 the resource xmls do, at least Apr 27 23:28:57 you can include some arbitrary non-resource xml as xml, and read it like a normal xml file Apr 27 23:29:19 but it's more efficient to have it as a resource xml -- in the res/xml dir Apr 27 23:30:06 :( Apr 27 23:30:12 That's unfortunate Apr 27 23:30:40 Is there only one way to write to a binary xml file ? Apr 27 23:31:06 FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); Apr 27 23:35:08 evening all. we did some refactoring and now the app won't build saying "package R does not exist." If I add an import to each class it's good. Other than AndroidManifest.xml is there any other place i should update to reflect where R can be found? Apr 27 23:35:21 ... so i don't have to add a ton of imports. Apr 27 23:36:14 Tadas: huh? Apr 27 23:36:26 Tadas: the binary xml files are generated by aapt, when you compile the application Apr 27 23:36:44 you don't write them yourself. and can't write them dynamically on device Apr 27 23:37:01 I must be tired or something Apr 27 23:37:08 if you're wanting to write dynamic xml on-device, then yes. you'll have to stick with textual xml. Apr 27 23:37:52 Yes, I do want to write an xml on-device, as I am intending to use that to hold the data my program needs Apr 27 23:38:01 QbY: you have to change the package of all your application classes too Apr 27 23:38:17 so you have to either change the package for everything, or add an import for everything :) Apr 27 23:38:43 Tadas: yes, then you'll just write it as textual xml, like you would normally :) Apr 27 23:38:59 So, ok Apr 27 23:39:04 I get it now Apr 27 23:39:39 Almost Apr 27 23:39:59 Can I write xml file with PrintWriter? Apr 27 23:40:09 of course I can Apr 27 23:40:40 can't I? Apr 27 23:42:50 Tadas: If you're using XmlSerializer, you can write out to a Writer or an OutputStream Apr 27 23:42:52 http://developer.android.com/reference/org/xmlpull/v1/XmlSerializer.html#setOutput(java.io.Writer) Apr 27 23:43:01 and PrintWriter is a writer... Apr 27 23:43:25 I have tried using outputStream Apr 27 23:43:28 Not sure why you would use a PrintWriter specifically Apr 27 23:43:52 but.. I get these error messages I can't understand Apr 27 23:44:10 Just a FileWriter should be fine. or FileOutputStream. Apr 27 23:44:18 maybe you should try understanding them? :) Apr 27 23:44:26 I tried Apr 27 23:44:30 Hang on Apr 27 23:44:46 I think I posted that here yesterday Apr 27 23:45:05 JesusFreke: I did change the package names. I just thought there was another Android specific file (like manifest) which may assist. Apr 27 23:45:32 QbY: well, there's an option to aapt that can dynamically change the package name for you after the fact Apr 27 23:45:38 JesusFreke, could You take a look at this please? http://i.imgur.com/hFEaLKW.png Apr 27 23:46:01 Filename was something like "TestFile" Apr 27 23:46:08 Tadas: I have no idea what you want me to look at there Apr 27 23:46:18 At the error code Apr 27 23:46:30 "Source not found"? Apr 27 23:46:35 yeah Apr 27 23:46:45 why are you wanting to look at the source for ContextWrapper? Apr 27 23:46:49 And it was caused by outputStream Apr 27 23:47:06 Tadas: this is just the IDE trying to find the source code to show for that class Apr 27 23:47:14 this has nothing to do with your your actual application Apr 27 23:49:58 You see, this triggers an error in my program: outputStream = openFileOutput(fileName, Context.MODE_PRIVATE); Apr 27 23:49:59 Apr 27 23:51:06 Tadas: "source not found" has absolutely nothing to do with your program Apr 27 23:51:32 it's likely that an exception occured, and the debugger paused the program to let you inspect the state Apr 27 23:51:56 yes, exception occured Apr 27 23:51:59 when the debugger paused the program, it tries to open up the class that's currently executing, which in this case happens to be in an android provided class Apr 27 23:52:17 Is it wise to build an app with HonyComb as min SDK?? Apr 27 23:52:18 You don't particularly need to see the source for this. you just need to look at the exception Apr 27 23:52:23 **Honeycomb Apr 27 23:52:41 Pointless to support honeycomb Apr 27 23:52:42 but the exception was thrown by this line: outputStream = openFileOutput(fileName, Context.MODE_PRIVATE); Apr 27 23:52:47 How is this possible? Apr 27 23:52:51 Tadas: so look at the exception Apr 27 23:52:59 How do I find it? Apr 27 23:53:01 what is the error message? Apr 27 23:53:02 oh Apr 27 23:53:08 hang on Apr 27 23:53:14 i'll run it again Apr 27 23:53:18 I don't use eclipse for java development, I don't know the specifics. Apr 27 23:54:07 normally, you would run the application outside of a debugger, and grab the error message and stack trace from logcat :) Apr 27 23:54:12 and pastebin that Apr 27 23:54:58 SimonVT: So 3.0 then right? Gingerbread Apr 27 23:55:20 3.0 is honeycomb Apr 27 23:55:38 oops Apr 27 23:55:49 Either support 2.(2|3)+ or 4.0+ Apr 27 23:56:56 Hmmm I'll start from 2.3 then.. i guess that means less features Apr 27 23:57:49 fayimora: you can dynamically check the api level, and only enable certain features on devices with higher api levels (or disable them for ones on lower) Apr 27 23:58:13 JesusFreke: I was just about to ask that…thanks Apr 27 23:59:01 I found this UI pack(http://goo.gl/HzTNv).. Anyone know of any good tutorials on how "apply" a ui pack to an android app? Apr 27 23:59:12 My apps look too … basic Apr 27 23:59:42 Typically, you would set the target api to something like 4.0 (15), and then set the min api to 2.3 (10), and dynamically check if it's < 4.0 and disable 4.0 specific functionality Apr 28 00:00:41 JesusFreke: sounds fair enough..thanks for the tip Apr 28 00:01:42 you just have to be careful not to use 4.0 specific apis in any code paths that would be running on 2.3 :) Apr 28 00:02:22 see http://developer.android.com/reference/android/annotation/TargetApi.html to help with that :) Apr 28 00:03:31 JesusFreke: Thanks..didn't know android had linter Apr 28 00:37:47 Buck doesn't work on Windows, lol. Poor windows users, crappy git and no Buck Apr 28 00:38:34 safe to say, this probably isn't going anywhere Apr 28 00:40:17 what's buck? Apr 28 00:55:18 Okay anyone here use AES-128 on the Android platform and was able to encrypt a 1MB file in less than a second on say a Samsun S3? Apr 28 01:13:58 rburton-: why not implement use the polarssl AES feature in some native code.. that should do it fast Apr 28 01:14:30 will polarssl run on android? Apr 28 01:14:56 yes Apr 28 01:14:59 https://polarssl.org/api/group__encdec__module.html Apr 28 01:15:02 Purchase product hrmp Apr 28 01:15:05 you only need the AES files Apr 28 01:15:39 Whats the speed like of polarssl? Apr 28 01:15:56 very fast Apr 28 01:16:06 any benchmarks I can look at? Apr 28 01:19:21 Guessing that the hardware of mobile devices won't support encryption good enough to handle a 1MB file in a timely manner Apr 28 01:19:34 1MB is not that large Apr 28 01:19:52 I agree, but when I run .08MB and it takes 600ms scary ;) Apr 28 01:19:54 S3 Apr 28 01:20:36 rburton-: using java Apr 28 01:20:45 correct Android Apr 28 01:20:55 was it a file? Apr 28 01:20:59 using java for crypto is IMO bad choice on android... Apr 28 01:21:08 I pull the bytes into memory Apr 28 01:21:25 p_l Ideally I want to have encryption done on the device Apr 28 01:21:34 just seems like a hard task to really do in a timely manner Apr 28 01:21:42 rburton-: I didn't say anything about *not* doing it on device Apr 28 01:21:49 p_l: the reason i suggested using polarssl aes functions in native Apr 28 01:21:52 Even though the image is being encrypted offline while the user types a message. Its still slow Apr 28 01:21:53 I had the "timely manner" problem too Apr 28 01:22:09 p_l I know what you mean, I am in agreement. Apr 28 01:22:22 we went towards using NDK extensively Apr 28 01:22:32 Native development Apr 28 01:23:40 yes Apr 28 01:30:12 Here's a strange thing. when I deploy to my device to run it.. a model box comes up saying waiting for a debugger to attach odd Apr 28 01:30:52 switching a few parameters to play around. Lowered the iterations from 100 to 1 to see what that does Apr 28 01:31:47 .6 MBS in 5.5 seconds ;) Apr 28 01:34:41 sonOfRa: it was that Facebook android build tool mentioned earlier Apr 28 01:34:54 ah Apr 28 01:35:12 ha had to restart the device for the model window Apr 28 01:35:28 g00s I bet i could name the tool ;) Apr 28 01:35:38 the wrie frame tool righ Apr 28 01:35:48 ra wuh ? Apr 28 01:36:04 :) Apr 28 01:36:38 rburton-: what did you mean ? Apr 28 01:36:49 In regards to "sonOfRa: it was that Facebook android build tool mentioned earlier" Apr 28 01:37:11 i didn't understand "the wrie frame tool righ" Apr 28 01:37:24 You were speaking about the tool that Facebook uses for prototyping Apr 28 01:37:33 nom thats Quartz Composer Apr 28 01:37:37 ya Apr 28 01:37:41 this is Buck Apr 28 01:37:44 oh Apr 28 01:37:45 rburton-: im going to write a quick native aes implementation Apr 28 01:37:47 this is Sparta ! Apr 28 01:38:06 Napalm I'll be curious about the bench marks against the java impl Apr 28 01:39:26 Napalm, any reason you dont use one of the three available? :) Apr 28 01:39:52 shit you know what.. Apr 28 01:40:02 My encryption is hitting disk, I wonder how much overhead that's adding Apr 28 01:40:13 basically inputstream to cipheroutputstream Apr 28 01:40:41 Mavrik: im just curious, its been awhile since ive touch the NDK last time was r5 Apr 28 01:40:51 mhm :) Apr 28 01:41:04 not to mention the fact that im doing all the code i can, to avoid my current code Apr 28 01:41:21 rburton-, I managed to get like 10x speedup on encryption by switching to native Apr 28 01:41:28 however I do use PBKDF2 Apr 28 01:41:34 which was especially slow in java Apr 28 01:45:36 I'm using PBKDF2WithHmacSHA1 Apr 28 01:46:00 yeah that :) Apr 28 01:46:57 No disk IO and its .8MB in 7.8 seconds Apr 28 01:48:01 hmm, I got .5MB to encrypt with AES256 with PBKDF2/SHA1 key derivation from 3000ms to 250ms on N4 Apr 28 01:48:59 really... Apr 28 01:49:04 gist the code? Apr 28 01:49:58 urh Apr 28 01:50:03 cant sorry :) Apr 28 01:50:10 rburton-, I used openssl library though Apr 28 01:50:21 nothing special, just called that code :) Apr 28 01:50:33 used that library directly? Apr 28 01:50:38 I thought Android uses it as well Apr 28 01:51:42 yeah, directly from native code Apr 28 01:51:44 are you using https://github.com/guardianproject/openssl-android Apr 28 01:51:57 nope Apr 28 01:52:05 I just compiled an ARM version and linked with it Apr 28 01:52:14 ah so youre not writing java i see Apr 28 01:52:15 hm Apr 28 01:54:45 I need to do a lot more research on this. There has to be a wayto get this puppy faster. Apr 28 01:54:54 um Apr 28 01:54:55 battery is low so must run home and plugin Apr 28 01:54:58 ? Apr 28 01:55:01 I just used C code to do encryption. Apr 28 01:55:11 everything else is in java :) Apr 28 01:55:12 Trying to keep it all java Apr 28 01:55:21 I mean worse case, I could do that Apr 28 01:55:29 :D Apr 28 01:55:34 are you guys still here? Apr 28 01:55:39 nope Apr 28 01:55:43 * rburton- bot is unplugged Apr 28 01:59:16 rburton you want to do my project? :D Apr 28 02:03:53 Why does eclipse insist on inserting try {} catch() thing? Apr 28 02:05:42 eclipse? Apr 28 02:05:53 hello pals Apr 28 02:05:58 What else do you use? :( Apr 28 02:06:01 what do they mean by ' late run-time binding ' Apr 28 02:06:09 apart from eclipse Apr 28 02:06:09 ? Apr 28 02:06:39 Tadas, why not eclipse Apr 28 02:06:59 Tadas, I mean, why would eclipse insist on anything? what do you mean exactly? :) Apr 28 02:07:11 yo guys Apr 28 02:07:22 what do you mean by late run-time binding Apr 28 02:07:46 I mean it shows an error, when I leave code like that: jsonArray = new JSONArray(String); Apr 28 02:08:05 s/String/string Apr 28 02:08:43 Tadas, that has nothing to do with eclipse Apr 28 02:08:59 JSONArray constructor throws a checked exception which has to be caught Apr 28 02:09:00 well. It's a compiler thing Apr 28 02:09:04 thats a java thing. Apr 28 02:09:05 yes. Apr 28 02:09:08 ok Apr 28 02:09:22 for more information, google "java checked exceptions" Apr 28 02:09:28 So JAVA is like pokemon "Gotta catch em all", right? Apr 28 02:09:30 and enjoy the flamewars :P Apr 28 02:09:39 Tadas, no, only certain exceptions are checked :) Apr 28 02:09:48 That was a joke, Mavrik ;) Apr 28 02:09:54 :P Apr 28 02:09:55 Thanks Apr 28 02:09:55 what do you mean by late run-time binding Apr 28 02:10:05 coco89, have you tried googling? Apr 28 02:10:10 coco89, context? Apr 28 02:10:15 Mavrik, intents Apr 28 02:10:18 coco89, where did you read that? Apr 28 02:10:30 Late binding, or dynamic binding,[1] is a computer programming mechanism in which the method being called upon an object is looked up by name at runtime. Apr 28 02:10:33 '. Intent messaging is a facility for late run-time binding between components in the same or different applications' Apr 28 02:11:11 Tadas, and thats exactly why i didn't google Apr 28 02:11:31 Why? Apr 28 02:11:39 Isn't it clear enough? Apr 28 02:11:48 it's clear but not in the context of intents Apr 28 02:12:17 coco89, it just means that the target of the intent is resolved when the actual intent is used Apr 28 02:12:46 coco89, which means that its not necessary for you to know who (or what) the target will be when youre actually compiling the app :) Apr 28 02:12:50 or deploying it. Apr 28 02:12:54 or running it for the first time Apr 28 02:13:26 oh I see Apr 28 02:13:34 but isn't that a pending intent Apr 28 02:13:50 not really, that holds for all intents Apr 28 02:14:05 so how does that differ from a pending intent Apr 28 02:14:11 coco89, look at it this way: ACTION_SHARE intent resolves all apps that can receive share when its invoked Apr 28 02:14:37 so user always gets a current list of apps that can receive shares when he clicks on "share" button Apr 28 02:14:54 coco89, pending intent is just an intent that gets triggered later by some other action Apr 28 02:15:01 e.g. alarm or user tapping a notification Apr 28 02:15:05 it has an intent inside :) Apr 28 02:15:26 its just a mechanism to trigger an intent after some time Apr 28 02:15:40 g00s, just setTheme or something and recreate Apr 28 02:16:20 g00s, val mode = settings.getBoolean(R.string.pref_daynight_mode) Apr 28 02:16:20 setTheme(if (mode) R.style.AppTheme_Light else R.style.AppTheme_Dark) Apr 28 02:16:30 g00s, translate to java as appropriate Apr 28 02:16:42 ah cool , thanks pfn Apr 28 02:17:26 activity.recreate for honeycomb and newer, otherwise finish and use something to re-start your activity Apr 28 02:17:32 Is this considered to be a single JSON object? http://pastebin.com/raw.php?i=V86qF3t9 Apr 28 02:17:37 I have a question... Apr 28 02:17:56 Tadas, looks like a single object Apr 28 02:18:02 I mean, there is another JSON object inside it Apr 28 02:18:04 Tadas, its an object that contains other objects :) Apr 28 02:18:16 Ok, thanks Apr 28 02:18:21 I cannot see my expandable list.. Whats the problem? Apr 28 02:18:25 I followed a tutorial Apr 28 02:18:54 pfn: ah, recreate() is the hidden piece. i've mostly targeted api 8 until now so i miss some of these newer things ;) Apr 28 02:19:02 Mavrik, ah I see that makes more sense now I think. One thing though, if the target of the intent is resolved when the actual intent is used doesn't that mean that the target can change Apr 28 02:19:15 coco89, yep Apr 28 02:19:17 g00s, yeah, I queue something in a service to startActivity for pre-honeycomb Apr 28 02:19:29 coco89, thats the whole point of late binding :) Apr 28 02:19:36 Mavrik, but how can a list of apps that can receive shares change Apr 28 02:19:48 coco89, user can install a new one? :) Apr 28 02:19:51 or remove one? Apr 28 02:19:55 Mavrik, I guess lol Apr 28 02:20:56 Mavrik, thanks for the clarification :) Apr 28 02:21:18 anybody who likes to look at my code? Apr 28 02:22:58 can a fragment be converted to a context in any way? Apr 28 02:23:01 Would JSONObject.getString("Word"); return an array working with that object? Apr 28 02:23:31 or would it return an array of JSONObjects? Apr 28 02:23:56 No, it should return an array Apr 28 02:27:33 Ilhami mfragment.getActivity() or getSherlockActivity if using abs Apr 28 02:29:43 Cannot make a static reference to the non-static method getActivity() from the type Fragment Apr 28 02:30:06 in your fragment Apr 28 02:30:14 there is a method getActivity Apr 28 02:30:39 yes wait Apr 28 02:30:47 I wrote it like this and it worked I think Apr 28 02:30:54 myfragment.this.getActivity() Apr 28 02:30:56 is it wrong? Apr 28 02:31:43 if you are calling it in the fragment's class you can do this.getActivity though its equivalent to getActivity Apr 28 02:32:09 but why doesnt my expandable list show up still? Apr 28 02:32:21 is it wrong to put the code in OnViewCreated? Apr 28 02:32:23 sorry idk what expandable list is Apr 28 02:32:28 what code Apr 28 02:32:32 how about post your code Apr 28 02:32:36 then we poke holes in it Apr 28 02:32:38 Yes 2 sec LOL Apr 28 02:32:39 :) Apr 28 02:32:58 http://pastebin.com/STWCz0T3 here Apr 28 02:32:59 brb Apr 28 02:33:32 http://pastebin.com/Y8VrLf62 home.xml Apr 28 02:34:08 http://pastebin.com/D7P9zxcJ MyCustomAdapter.java Apr 28 02:34:08 brb Apr 28 02:34:58 line 29 Apr 28 02:35:12 mExpandableList = (ExpandableListView) getView().findViewById( instead of using getView use the view passed in the arguments Apr 28 02:36:38 but that shouldn't matter, not sure, usually i just call findViewById in onCreateView on the view that i inflate before returning it Apr 28 02:36:51 then in onActivityCreated set up listeners etc etc Apr 28 02:38:26 but the app doesnt show the expandable list Apr 28 02:39:14 brb Apr 28 02:41:44 return (LinearLayout) inflater.inflate(R.layout.home, container, false); why are you casting this? Apr 28 02:43:44 brb Apr 28 02:43:47 stay here :D dont go Apr 28 02:44:07 i am just working on some electronics not going anywhere Apr 28 02:45:50 have you checked arrayParents is not empty? Apr 28 02:47:32 since you are not getting an NPE on mExpandableList when you set the adapter it is successfully loading Apr 28 02:47:47 try not using a custom adapter just use whatever basic adapter expandable list view uses? Apr 28 02:57:22 http://myandroidsolutions.blogspot.dk/2012/08/android-expandable-list-example.html I looked at this example. Apr 28 02:58:40 It's 4 AM :o Apr 28 02:58:54 i probably need to cut my teeth on writing tablet optimized apps more - but i wonder if there is value in some library that was essentially a small Interpreter, which read some DSL at runtime from res/xml or something (whether xml, json, or custom -- but the idea is its declarative) and then wired up fragment partitioning per Activity. **** ENDING LOGGING AT Sun Apr 28 02:59:58 2013