**** BEGIN LOGGING AT Tue Jul 08 02:59:59 2014 Jul 08 03:07:29 hi, im trying to debug a native app, but all i ever get with ndk-gdb is a hang continuing from the initial frame __futex_syscall3 Jul 08 03:15:46 Hello guys. Anyone know any utils that can extract a password protected 7zip file? Jul 08 03:18:18 sure Jul 08 03:18:51 dos Jul 08 03:19:11 i mean unix Jul 08 03:20:43 piracyd3: p7zip on *nix; 7-zip on windows Jul 08 03:21:22 I suspect he's talking about extracting it when he doesn't know the password Jul 08 03:22:02 i know the password. I need to download the 7z file first, then extract it locally in phone. Is this possible? Jul 08 03:22:22 mathstuf: thanks. Will look into it. Jul 08 03:22:53 oh, on a device? Jul 08 03:22:54 maybe convert it to .zip Jul 08 03:23:33 why don tou jusrt extract it and put it on you phone?! Jul 08 03:23:59 why the heck you ned .7zip on you phone? Jul 08 03:24:38 ia9371: not a one-off procedure? Jul 08 03:24:44 "a range of Japanese electronics giants are converting idled factories to agriculture." thats pretty interesting; maybe we should name android after produce growed in semiconductor facilities :D Jul 08 03:24:59 so L = Lettuce Jul 08 03:25:06 \o/ Jul 08 03:25:35 The downloading and extracting part will be done in background. Jul 08 03:25:37 maybe they can grow catfish in them Jul 08 03:26:12 they might come out with Defroms Jul 08 03:32:49 Oh, out of curiousity, what's a good LG phone? specs would be dual or quad core, 4-5" screen, 1GB+ RAM Jul 08 03:34:11 nexus 5 Jul 08 03:34:30 Oh, and unlocked GSM. Nexus 5 sounds good Jul 08 03:34:32 +1 nexus 5 Jul 08 03:35:07 https://play.google.com/store/devices/details/Nexus_5_32GB_Black?id=nexus_5_black_32gb Jul 08 03:35:26 that'd be it Jul 08 03:35:44 however, I recommend against running over it with a unicycle Jul 08 03:35:58 I have first hand experience that it does not take well to that situation Jul 08 03:36:04 LOL Jul 08 03:36:36 (fell out of my pocket, hit my thigh, bounced in front of my wheel..) Jul 08 03:36:52 Gorilla Glass is strong, but not herculean Jul 08 03:36:56 yea Jul 08 03:37:05 surprisingly, the touchscreen still worked completely Jul 08 03:37:15 but the glass was cracked all over Jul 08 03:37:23 http://www.gsmarena.com/lg_nexus_5-5705.php (good specs too, universal phone, basically. Has all radios for all networks) Jul 08 03:37:57 plus unlockable bootloader, and quick updates Jul 08 03:38:17 I'm sure all I need is the 16GB. Never used more than 2-3GB on my hTC One X+ Jul 08 03:38:20 and stock android Jul 08 03:38:29 BTW, I like LG phones because it doesn't have the bloat hTC has Jul 08 03:38:38 yeah, I'm fine with 16 as well Jul 08 03:38:54 agreed :) Jul 08 03:42:11 for development in the future, i'm leaning toward something like this https://developer.nvidia.com/jetson-tk1 Jul 08 03:43:28 where the heck is ron_frown Jul 08 03:44:17 so many cool linux SBCs; beside the rpi, beagle, etc there is also this new one for $45 http://www.solid-run.com/products/hummingboard/ Jul 08 03:46:24 CDaniel: hows it work with verizon though? Jul 08 03:46:35 Huh? Jul 08 03:46:51 How does what work with Verizon? Jul 08 03:52:31 mathstuf: not working with verizon is an advantage, not a disadvantage ;) Jul 08 03:52:59 Well, I'm on a pre-paid service (Straight Talk), so GSM is perferred. Jul 08 03:53:15 i like tmo Jul 08 03:53:24 The LG Optimus Fuel (L34C) is a Straight Talk phone, but uses Verizon. Jul 08 03:53:29 Its only a 3G phone Jul 08 03:53:52 CDaniel for dev, does it matter :| just get a nexus Jul 08 03:53:57 1.2GHz dual core, 512MB of RAM, 2G internal (1.7 user available), comes with a 4GB SDCard Jul 08 03:53:59 I'm reasonably happy with one2free, even though I've got to see what happens now HKT have bought them Jul 08 03:54:13 I know, but I'll get the Nexus 5 when I have $350 Jul 08 03:56:01 Unless... Jul 08 03:56:08 Someone wants to donate some money to me, heh Jul 08 03:56:37 use genymotion for now :) Jul 08 03:57:51 Does anyone know anything about the FUSE filesystem that's aparently used for emulated storage? Jul 08 03:59:36 CDaniel or get a 2013 N7, nowadays at pretty steep discounts Jul 08 03:59:43 if this is for development Jul 08 03:59:45 N7? Jul 08 03:59:49 nexus 7 Jul 08 03:59:50 witheld: no, unfortunately it's a trade secret only know by 2 people at Google Jul 08 04:00:07 Seriously is there a page in the docs or something Jul 08 04:00:11 No, just a phone for myself. No development (I have no patience, or smarts for software development) Jul 08 04:00:24 CDaniel on phandroid, seems like weekly there is some deal Jul 08 04:00:52 seriously it's a standard Linux tech, but if you have an actual question you might want to consider asking it Jul 08 04:01:38 I know what FUSE is Jul 08 04:02:00 I don't know what program is being used for that filesystem Jul 08 04:02:35 Where are you looking at for deals on Phandroid? Jul 08 04:02:53 I'm asking about that specific....how do you want to say that? The program that is behind /storage/emulated/0 Jul 08 04:03:08 FUSE means there's a userspace program I was asking about that program Jul 08 04:04:16 So do you have any idea about the program they use for the FUSE filesystem used for emulated storage? Jul 08 04:04:21 This is cool: https://www.google.com/android/devicemanager Jul 08 04:04:31 You can locate your phone via this Jul 08 04:08:32 Oh, these little /dev/block/dm-x filesystems, that's where the decrypted apks of DRM'd apps go Jul 08 04:08:34 neat Jul 08 04:12:34 anyway Leeds, so you don't know the specifics of that particular FUSE filesyste, right? Jul 08 04:12:53 witheld: you haven't actually asked a question of any substance yet Jul 08 04:13:05 since Im not able to figure this one out and you guys being much smarter than me, how do I make category a radio button with three options here? XML: http://pastebin.com/808RtTv4 Java: http://pastebin.com/HRpuLrD2 Jul 08 04:13:30 the form works and I can add data to mysql Jul 08 04:13:42 Okay, I don't know what you want me to ask. A program somewhere on this phone is responsible for /dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0 Jul 08 04:13:50 but it makes more sense to do category with radio buttons Jul 08 04:13:51 I just need to know what program is responsible for that Jul 08 04:14:14 It's a specific FUSE filesystem being mounted there Jul 08 04:16:04 I don't know how to be more specific. When I interact with /storage/emulated/0 , I'm actually talking to a program, and I need to know what program that is Jul 08 04:16:53 Leeds: enough substance? Jul 08 04:16:56 why do you need to know that? what are you expecting to do with that knowledge? Jul 08 04:17:46 Well I'm investigating what, if anything, would break suddenly if I tried to move /data/ to another partition/device Jul 08 04:18:04 you're writing an app to do that? Jul 08 04:18:40 Not really app, probably more like, a script. But yeah Jul 08 04:18:54 a script and a modified initrd Jul 08 04:19:27 Hopefully! Might be more to be done Jul 08 04:21:01 Figured I'd look around before I get dirty copying over /data/ and changing up the fstab, hoping it doesn't explode Jul 08 05:02:16 I want to experiment with android L preview SDK, but the emulator runs awfully slow on my intel machine. Will upgrading RAM (from 4GB to 8 or 16GB) make a difference, or should I invest in a device that runs android L preview? Jul 08 05:04:36 sulaiman i doubt adding ram will help much, unless you totally ran out of ram ;) Jul 08 05:06:34 would like to purchase a dual sim android phone for development purpose, what do you guys recommend ? Jul 08 05:06:52 thinking about a h/w with 4.1 Jul 08 06:17:07 RedEyedGirl, how goes the book? Jul 08 06:18:46 sulaiman: the android emulator is just terrible in general Jul 08 06:19:07 mind boggingly so if you've ever touched iOS' simulator Jul 08 06:20:21 Time2303: use GenyMotion Jul 08 06:21:01 Hello all, I have small question. Android L - is Android 5? Or it's beta for Androd 5? Jul 08 06:22:04 thepoosh beyond emulator and simulator, i'm going to propose a 3rd alternative on adt-dev: a supported reference platform involving low cost HW and a simple cross platform client to view the device's screen Jul 08 06:22:41 for example, they used to have builds in AOSP for beagle or panda, can't remember which one Jul 08 06:22:49 we have about 50 devices in the office, so it's not a problem I experience Jul 08 06:22:56 jandor: they haven't released the name (lollipop, etc.) or the version numbers. Jul 08 06:23:20 thepoosh you are 'unusually lucky' Jul 08 06:23:30 thepoosh: I haven't heard of that before but it looks interesting. Jul 08 06:23:42 g00s: agreed Jul 08 06:25:41 Somebody worked with Notification and LED on android? Jul 08 06:26:29 I set notification.ledOnMS = 10000; but it's not work :( Jul 08 06:26:32 we have a lot of devices in the office too, but it has its own set of problems Jul 08 06:26:45 you need to keep the charged, and keep track of them when people borrow them Jul 08 06:27:00 keeping them charged is hard enough, it's easy to kill batteries like that Jul 08 06:27:53 wabz i'm envisioning a very cheap and simple SBC that would run android satisfactorily, with mostly just USB, GPS, BT, Wifi. It would be powered by the USB connection Jul 08 06:28:19 this little guy is just $45 http://www.solid-run.com/products/hummingboard/ Jul 08 06:28:43 volley is the "new" kid in the block for working http request in android ? Jul 08 06:28:48 it could be cheaper without i/o , etc Jul 08 06:28:55 with* Jul 08 06:29:02 jandor: “The number of milliseconds for the LED to be on while it's flashing. The hardware will do its best approximation.” Jul 08 06:29:35 tagrudev its not new. i haven't used it though Jul 08 06:29:52 yeah that's why I used the ":" Jul 08 06:30:09 I haven't used it either but there is a new project coming up Jul 08 06:30:27 so I was wondering what do people use nowadays Jul 08 06:32:52 Leeds are you around ? Jul 08 06:32:53 g00s: i made a new friend - BlockingObservable ... tripped over it fishing through code for something else Jul 08 06:33:13 bankai_au i told you about that weeks ago :D Jul 08 06:33:21 you tell me a LOT of things Jul 08 06:33:26 i think you asked about testing :) Jul 08 06:33:39 bankai_au i know, and 99% of it is fucking crazy shit Jul 08 06:33:52 :) Jul 08 06:35:54 ugh, i did it again, my amazon cart has over $500 worth of books in it Jul 08 06:36:27 must be nice to have money :P Jul 08 06:36:39 oh no, they stay in my cart :| Jul 08 06:36:58 until i can get a few here and there :) Jul 08 06:37:34 bankai_au did you see this? https://news.ycombinator.com/item?id=7999269 Jul 08 06:37:49 i thought this was pretty interesting ... Jul 08 06:38:01 i recently read the updated MS privacy policy Jul 08 06:38:42 and it seems both Apple and MS are positioning themselves as a privacy - conscious Jul 08 06:39:34 the MS privacy statement make it obvious they are taking a jab at google (we don't go through your email to target advertisements) etc Jul 08 06:40:05 but where this is going to have an interesting impact is the wearables - especially the health related stuff Jul 08 06:40:26 consumers have to be confident that this information is secure Jul 08 06:41:23 i just read the other day how hospitals are profiling their patents; its clearly out of control here in the US Jul 08 06:41:51 Does anyone know how to adapt a RecyclerView to a Cursor? Jul 08 06:41:53 "don't allow" "ok" .... reminds me of what people complained about vista Jul 08 06:42:18 I'm trying to implement it with a LoaderManager Jul 08 06:45:43 g00s, so what do you use for http requests ( mostly json responses are expected ) Jul 08 06:46:15 tagrudev actually, i don't use http :| my app uses mqtt, some other custom shit over tcp, etc Jul 08 06:46:40 i can't really talk to the state of the art there; for just http you can look at okhttp Jul 08 06:47:26 Retrofit Jul 08 06:47:33 for rest .. ah thanks :) Jul 08 06:47:53 yeah okhttp or volley that's what I wonder Jul 08 06:48:10 you can (and should) use volley with okhttp Jul 08 06:48:44 meaning ? Jul 08 06:49:03 they're both implementing HttpURLConnection Jul 08 06:49:04 right ? Jul 08 06:50:54 I am looking for a nice client mostly for REST requests Jul 08 06:50:58 JakeWharton Jul 08 06:51:06 no Jul 08 06:51:13 volley wraps an http client Jul 08 06:51:16 okhttp is an http client Jul 08 06:52:12 you're involved in the okhttp right ? Is there any docs that show how one can use volley as a wrapper of okhttp ? Jul 08 06:52:26 if you create a xml drawable that defines simple things like color, where should the file be placed? Nowadays there are several drawable-XXX directories Jul 08 06:52:58 extend HurlStack and use OkUrlFactory to create HttpUrlConnection instances Jul 08 06:53:35 maybe I should create a new dir called drawable only? Anyone knows the typical way to do this? Jul 08 06:53:42 tagrudev: https://gist.github.com/JakeWharton/5616899#comment-1259033 Jul 08 06:58:04 JakeWharton, what's the benefit of okhttp over httpurlconnection ? Jul 08 06:58:39 well for starters it's actively developed Jul 08 06:58:52 :D Jul 08 06:58:55 HttpUrlConnection basically stagnated from 4.0 onward Jul 08 06:58:57 that's good Jul 08 06:59:27 it has SPDY, HTTP2, a bunch of bug fixes that you get on every API level (instead of only on the ones it was fixed in the platform on) Jul 08 07:00:42 JakeWharton: Can OkHttp handle javascripts on a page? Jul 08 07:00:52 it's an HTTP client, not a browser Jul 08 07:00:53 ok I will try to use volley ( with okhttp ) Jul 08 07:01:03 JakeWharton: Ahh Jul 08 07:02:18 HurlStack though Implements HttpStack which is based on HttpUrlConnection Jul 08 07:04:33 and what about using okhttp without volley Jul 08 07:04:43 why would I need the volley stack hmm Jul 08 07:05:12 tagrudev you never really said what you needed ;) Jul 08 07:05:26 I am looking for a nice client mostly for REST requests Jul 08 07:05:32 :) Jul 08 07:05:44 luckily, jake answered that :) Jul 08 07:06:41 so Do I need the volley stack then if I am using okhttp Jul 08 07:06:45 as a client Jul 08 07:06:55 and why ? Jul 08 07:06:59 is that better g00s :) Jul 08 07:08:55 Export tabs, great chrome plugin Jul 08 07:09:10 JakeWharton, ^ last one Jul 08 07:09:39 volley provides the request queue and maybe some serialization stuff Jul 08 07:10:21 okhttp is just raw request and response bodies which you have to serialize yourself. but its new API has async and a requests queue. Jul 08 07:10:41 g00s: pong? Jul 08 07:10:43 so I am handling seriazlization myself Jul 08 07:11:28 Leeds no worries, was going to ask you about your surgery to replace volley with retrofit - but i think tagrudev is ok. Jul 08 07:11:54 I did volley->picasso - I left volley doing the network stuff Jul 08 07:11:58 Instead of having methods return the object they are supposed to return, is passing in the arguement (kinda as a out parameter) and then returning a custom enum a better way / not a bad idea, for saying handling if the method execution fails for some reason and then returns null? Jul 08 07:12:38 Or this an abuse of enums / overkill Jul 08 07:12:39 throw an exception if you can't meet the contract Jul 08 07:12:54 I think I am going to bet on the okhttp without volley Jul 08 07:13:07 hmm, i was doing that but then the problem is they have to catch it Jul 08 07:13:25 and if I need something like request queueing then I would implement it (if it's not ready in the the okhttp version) Jul 08 07:13:35 which is really not a problem, but.. hmm okay that seems like the proper way to do it, thanks g00s Jul 08 07:13:51 i'm trying to think of an API that does it the way you mention Jul 08 07:14:05 JakeWharton, you left serialization because you want to keep it just a client ? Jul 08 07:14:12 yes Jul 08 07:14:16 seems legit Jul 08 07:14:19 ok thanks guys Jul 08 07:15:11 g00s: i was motivated the enthusiasm of block in using enums instead of booleans Jul 08 07:15:22 *by the, and then just extending that to return types Jul 08 07:15:58 since, sometimes it will return null, not as an error hence i didn't want to throw the exception, like for instance if you do a query on some database, and 0 records are returned Jul 08 07:16:20 but in that case, i solved it by having the interface of the result listener have two methods, onNewResults and onNoNewResults Jul 08 07:16:26 but that seems also kind of flawed Jul 08 07:17:12 lasserix null is overused Jul 08 07:17:24 elaborate? Jul 08 07:17:54 Does anyone have the problem Android Studio says there is an update, then prompts to goto a download page, then on the Installation download page it says you can install incrementally by clicking Check for updates, which then prompts to goto a download page... ad infitim Jul 08 07:18:31 instead of passing an empty collection as null, you can do Set set = Collections.EMPTY_SET; Jul 08 07:19:14 ahh that is exactly what i was looking for thanks! Jul 08 07:19:30 use Collections.emptySet() so generics like you Jul 08 07:20:16 morning Android people Jul 08 07:20:56 ^^ thanks Jul 08 07:21:50 morning Mavrik Jul 08 07:21:59 also, goodnight :D Jul 08 07:22:40 No rest for the wicked. Jul 08 07:23:07 g00s: long time no see :) Jul 08 07:23:13 hi napster :) Jul 08 07:23:21 Mavrik i had that Ozzy album Jul 08 07:23:48 i think that was Jake E Lee on guitars Jul 08 07:24:07 ozzy always did have kick ass guitarists Jul 08 07:42:03 Does Android Studio have outline? Jul 08 07:42:09 *class outline Jul 08 07:45:15 Hmm why doesn't AS build the hierarchy everytime you save.. Jul 08 07:47:36 morning everyone Jul 08 07:49:27 Is there no way to see a class outline in android studio? Jul 08 07:52:47 lasserix, You mean View -> Tool Windows -> Structure? Jul 08 07:53:24 (on OS X) Jul 08 07:55:16 JakeWharton, maby you can answer on my yesterday question about build type customization? I just want to ask about built type customization while building apk using android gradle plugin. I want to use different implementation of one class in release and debug build types. Can anyone suggest the way to implement this? I have tried to use different source folders src/main/java src/debug/java... Jul 08 07:55:18 ...and src/release/java but src/release/java is not recognized in android studio as a source folder (looks like this folder recognized as a usual folder). So i mean i don't want to create flavors, i just want customize default build types. All examples i found use dagger end "Modules" to connect functionality for debug build type. My usecase is pretty simple: i want to connect crashlitycs... Jul 08 07:55:19 ...only in debug buildtypes. So i found "debugCompile" in docs but i can't customize build types (debug release). I want exclude craslytics dependency from release. Jul 08 07:56:29 xgear: Select "release" as your Build Variant in AS Jul 08 07:56:39 Then release/ will get recoginized Jul 08 07:57:10 but then debug will not recognized? Jul 08 07:57:14 Both Jul 08 07:57:28 Just when you create it you at least once have to select it Jul 08 07:57:32 http://tulipemoutarde.be/images/2013/build-variants.png lower left Jul 08 07:58:14 anyone have experience with setting up Roboletric on Android Studio? Jul 08 07:58:46 I can run the test using ./gradlew test, but cannot run test in Android Studio interface Jul 08 07:58:58 lut4rp: ahh thanks! sorry i am tired and probably being an idiot tonight Jul 08 08:00:37 lasserix, happens; no worries! Jul 08 08:01:35 anybody know if it's possible to reformat a project to apply code styling in android studio? Jul 08 08:02:47 kakazza, i selected release and then java folder from debug folder not recognized as source folder. But in release java folder was recognized. http://c2n.me/itnguV Jul 08 08:06:03 http://c2n.me/itnqcP Jul 08 08:11:03 Morning, Android Jul 08 08:12:05 Hi, I cannot run a javascript in my webview using webView.loadUrl("javascript:zoomToUserPosition"). The site itself renders fine however when I try to get the users position nothing happens. The relevant code is here: https://gist.github.com/anonymous/e4bbbabc03843731945c What seems to be my problem is that the webview cannot get the users position, if I use chrome on the same phone and opens a web-page with identical code (ht Jul 08 08:14:31 huehue142: that got trimmed after "identical code (ht" Jul 08 08:15:06 hi, is this where I would ask about android emulator issues? Jul 08 08:15:24 Estel: ? Jul 08 08:15:26 Goeland86: you can definitely ask ^^ Jul 08 08:15:32 I do not think I fully understand :P Jul 08 08:15:46 huehue142: you hit the IRC line length limit Jul 08 08:15:52 aaah Jul 08 08:15:55 so I'm trying to run Android Junit tests, it works fine when my device is connected with gradle, no issue at all Jul 08 08:16:06 now I want to automate this on Jenkins with the emulator Jul 08 08:16:48 the emulator's running, I launched it manually in the command line and it's still there, but it's run with the no-window option. sometimes adb sees it, sometimes not, and I wonder why, and how can I make it seen every time? Jul 08 08:17:08 Well, the problem seems to be occuring with the WebView, because using the default browser or chrome on the same phone can use this functionality on a webpage containing the exact same code (html js), however when trying to render it in a webview it does nothing. I do believe it is because I cannot get the users geolocation. Jul 08 08:17:35 huehue142: did you set the javascript enable flag? Jul 08 08:17:40 yes Jul 08 08:17:54 after checking out almost every mobile html5 platform - they're all crap. i'm going to go native. anyone recommend a starter-kit, like a wrap of all modern libraries and tools together as a git repo? Jul 08 08:18:13 I enabled JS using: browser.getSettings().setJavaScriptEnabled(true); Jul 08 08:18:21 where browser is my webview :P Jul 08 08:18:53 and the page itself renders fine, it is not until I invoke functionality to get the users position something goes wrong Jul 08 08:19:10 <_3mpty> pellis: Use android studio, gradle plugin resolves dependencies nicely Jul 08 08:19:22 <_3mpty> no need to load all stuff on hdd Jul 08 08:19:34 _3mpty: yep from last time i used it (0.3.4) android studio is really nice today. Jul 08 08:20:11 _3mpty: i'm looking for a combo of open source libs that makes faster development. for example dagger for DI, butter(whatever it was named).. and many of jake wharton's libs Jul 08 08:20:54 <_3mpty> pellis: http://android-arsenal.com/ Jul 08 08:20:56 i have around 4-5 apps i want to build one after another, as prototypes - and i want to make sure i prepare a good starting point so i don't have to tinker with the dependencies and libraries each time Jul 08 08:21:13 _3mpty: nice!! Jul 08 08:21:13 <_3mpty> not exactly for dev but still handy Jul 08 08:21:28 <_3mpty> i mean 'no for development process' Jul 08 08:23:14 yep but this is better than nothing Jul 08 08:23:32 i will try looking in Github for such "kickstart" projects with some of these already baked-in Jul 08 08:23:45 also i remember a year ago or so, testing was a real bitch on Android Jul 08 08:23:48 is it still the case? Jul 08 08:23:52 (unit testing) Jul 08 08:24:21 Yes Jul 08 08:24:24 <_3mpty> also there is nice app for android 'Libraries for developers' Jul 08 08:24:48 <_3mpty> libraries samples & snippets Jul 08 08:24:51 mhm Jul 08 08:25:01 also check out AndroidAnnotations which have helped me alot when prototyping Jul 08 08:25:51 Mavrik: yes that project i remember from my last time trying to get into android (but then tempted out of android into html5) Jul 08 08:26:25 ... Jul 08 08:26:53 I don't have a clue what you could have seen in html5 to go in that direction Jul 08 08:28:17 Estel: i made a mistake it seems.. i thought the world of cordova/phonegap improved and half way into the project i bumped into performance showstoppers Jul 08 08:28:18 <_3mpty> Estel: http://i.imgur.com/HgduvCY.jpg Jul 08 08:29:13 ^^ Jul 08 08:29:19 One day. Jul 08 08:29:20 yep Jul 08 08:30:21 so - now i really need to up my game. i'm used to be very productive and looking to get as much productivity as possible by using as much invented wheels as possible :) Jul 08 08:30:45 that android-arsenal site didn't exist last time.. looks really useful and fun Jul 08 08:31:57 naive question - i remember there was a company making a library that supports designing android/ios views with CSS Jul 08 08:32:00 pixel something Jul 08 08:32:18 they sold that product and it was popular among ios, and released a preview for android Jul 08 08:32:22 is there anything like it still? Jul 08 08:33:26 Do you mean pixate? Jul 08 08:33:37 ah might be Jul 08 08:34:42 does anyone have experience setting up roboletric with Android Studio? Jul 08 08:57:16 hey Jul 08 08:57:22 what does popbackstack actually do? Jul 08 08:57:28 what does the word pop even mean in this context? Jul 08 08:57:32 is the backstack a baloon? Jul 08 08:57:38 or a pimple Jul 08 08:57:51 <_3mpty> jvrodrigues: --> stack Jul 08 08:58:19 <_3mpty> jvrodrigues: push - put on stack, pop get from stack Jul 08 08:58:23 <_3mpty> (from top of stack) Jul 08 08:59:26 <_3mpty> it's basic of basics, you should learn about basic data structures Jul 08 09:00:44 aahh Jul 08 09:00:45 ok Jul 08 09:00:52 basic data structures you say? Jul 08 09:00:58 will read on that now Jul 08 09:00:59 thanks Jul 08 09:01:47 <_3mpty> check en wiki - there is nice article about stack Jul 08 09:02:38 yea i just gave it a quick look, makes so much more sense now Jul 08 09:02:44 thank you very much Jul 08 09:04:05 Does anyonek now how GSON sets the properties from a json string? Jul 08 09:08:05 Hi Jul 08 09:08:47 As soon as I close the emulator the db is erased Jul 08 09:08:57 and its tables also are erased Jul 08 09:09:09 How to save the db in the project Jul 08 09:09:25 I know it gets saved in the database folder of the project directory Jul 08 09:13:26 doe sit use set{myProperty}() or does it access the variable directly? Jul 08 09:21:57 export: cannot recovery key Jul 08 09:22:09 can I use same key on different code base? Jul 08 09:22:50 need same package name (not for store upload, just to export apk)? Jul 08 09:27:29 If I have a prob with key, Im screwed — can’t submit any more updates to play store? Jul 08 09:29:24 you can use the same key for more than one app Jul 08 09:29:45 the package name is the unique identifier of an app in the play store, so you can't change it... Jul 08 09:29:50 and yes, if you lose your key, you're fucked Jul 08 09:30:45 Why is it not possible to let the user change the soundsettings when ive used the audiomanager to mute the stream? Jul 08 09:31:08 Can't Google help with such problems? Jul 08 09:31:21 what happens Jul 08 09:31:28 when you try to fetch two fragments with the same tag? Jul 08 09:31:43 i mean Jul 08 09:31:48 one fragment when you have two with the same tag Jul 08 09:31:53 <_3mpty> phyzloc: google doesn't have your key Jul 08 09:33:13 yes, Google can help Jul 08 09:33:20 email it to your own gmail account Jul 08 09:33:32 upload a copy to the free drive storage they give you Jul 08 09:33:36 *before* you lose it Jul 08 09:35:16 <_3mpty> 'There are two types of people - those who do backups and those who will' Jul 08 09:36:31 arguably, three types... those who do backups, those who do backups *and test them*, and... Jul 08 09:37:29 <_3mpty> :D Jul 08 09:58:09 Hi, I'm trying to use this library in ADT, but I can't figure out how https://github.com/passy/Android-DirectoryChooser Jul 08 09:58:12 any ideas? Jul 08 10:02:45 this android L thing is just horrible :p Jul 08 10:04:22 the lack of depth on buttons is just ... crap Jul 08 10:06:36 <_3mpty> SPAM: sublimetext3 prize in competition: http://sublimetexttips.com/giveaways/sublime-text-giveaway/?lucky=35643 Jul 08 10:09:37 I want to add a launcher icon now. I have already started the new project Jul 08 10:09:50 Is it possible to add in the drawable folder Jul 08 10:09:53 Zharf: but other people like me, likes flat Jul 08 10:09:56 niru: yes Jul 08 10:10:24 Jonno_FTW, I added but the same old one is getting reflected Jul 08 10:10:30 Foxandxss, I don't mind flat, but there's no indication whatsoever what's a button and what's just text Jul 08 10:10:33 it's crap Jul 08 10:10:34 Jonno_FTW, do I need to do any thing else Jul 08 10:10:43 I kept the same old name ic_launcher Jul 08 10:11:06 niru: do project->clean Jul 08 10:11:19 Jonno_FTW, ah ok.. Jul 08 10:11:27 or use the create asset set wizard in adt Jul 08 10:13:29 Jonno_FTW, no its not working :( where is asset set wizard Jul 08 10:14:58 right click on project -> new -> other -> android Jul 08 10:17:28 Guys, does anyone use NDK and Visual Studio to develop for Android ? Jul 08 10:23:38 Jonno_FTW, thanks its working Jul 08 10:23:51 np Jul 08 10:33:33 Is it possible to add a simple text on top of the page of some color without any background Jul 08 10:33:43 or I have to implement textview? Jul 08 10:34:00 niru: what do you think? Jul 08 10:34:07 possible or impossible? Jul 08 10:34:41 :) Jul 08 10:35:08 Jonno_FTW, I want my first page to have some text printed. Jul 08 10:35:23 Jonno_FTW, I think it should be a textview Jul 08 10:35:28 :( Jul 08 10:35:54 then add a textview? Jul 08 10:35:55 may be I have to change the attributes Jul 08 10:37:57 yes Jul 08 10:37:58 definitely Jul 08 10:42:32 hi all i'm doing an app for read data from a database on a server with php script and Json response, this is my code:http://pastebin.com/Ds1pJ5yN, when i run my app and exec HttpResponse response = httpclient.execute(httppost); i have crash app! some tips? Jul 08 10:42:54 Alfreda: read the error output Jul 08 10:43:32 Error in http connectionandroid.os.NetworkOnMainThreadException Jul 08 10:43:32 Error converting result java.lang.NullPointerException Jul 08 10:44:02 there's your problem, you're doing network IO on the main thread Jul 08 10:44:05 exactly like the error says Jul 08 10:44:16 what error is? Jul 08 10:44:28 android.os.NetworkOnMainThreadException Jul 08 10:44:31 lol Jul 08 10:44:34 says it right there Jul 08 10:44:35 what error? Jul 08 10:44:42 and how resolve it? Jul 08 10:44:49 put it into google Jul 08 10:45:01 and you will see that you need to use an asynctask Jul 08 10:45:30 extends AsyncTask Jul 08 10:45:47 but this class is a layout recall from ActivityMain Jul 08 10:45:50 I am struggling to get google play services as a dependency for my project on Android Studio. I have double checked the SDK path and if the library is installed. When I run ./gradlew app:_debugCompile --info I get: Resource missing. [HTTP GET: http://jcenter.bintray.com/com/google/android/google-play-services/google-play-services/1/google-play-services-1.pom] and Resource missing. [HTTP HEAD: Jul 08 10:45:51 http://jcenter.bintray.com/com/google/android/google-play-services/google-play-services/1/google-play-services-1.jar] Jul 08 10:46:41 Jonno_FTW: how modified my code? Jul 08 10:46:50 Alfreda: I'm not going to write it for you Jul 08 10:47:00 i must extend Activity? Jul 08 10:47:04 or extends AsyncTask { Jul 08 10:47:06 no Jul 08 10:47:07 for my class? Jul 08 10:47:12 have an inner class Jul 08 10:47:41 private class JSONTask extends AsynTask Jul 08 10:47:56 jeffery: what's in your build.gradle? Jul 08 10:48:17 Jonno_FTW: in public class FullImageActivity extends Activity {? Jul 08 10:48:27 yes, inside that class Jul 08 10:48:54 then you can read the docs for async task for more Jul 08 10:49:19 Estel: here is my gradel file https://gist.github.com/anonymous/8fd62413ace2338b7fc4 Jul 08 10:49:32 Jonno_FTW: AsynTask cannot be resolved to a type Jul 08 10:49:51 Alfreda: AsyncTask Jul 08 10:50:13 Alfreda: you know you don't have to immediately ask here when you have an error Jul 08 10:50:23 all your questions have been asked and solved before Jul 08 10:50:31 and are a simple google search Jul 08 10:51:36 you can follow me? Jul 08 10:51:48 probably Jul 08 10:52:02 ok thanks Jul 08 10:52:05 i try Jul 08 10:52:51 that's the first step to succeeding Jul 08 10:53:09 but you know what they say, never try, never fail Jul 08 10:54:17 protected JSONObject doInBackground() { Jul 08 10:54:40 yes Jul 08 10:54:48 this method should contain your network fetching code Jul 08 10:55:07 and return the json object from the network, or null on error Jul 08 10:55:25 YES YES Jul 08 10:56:15 but for this class i must create an object or is automatically execute in backgroud? Jul 08 10:56:54 you must instantiate an instance of JSONTask Jul 08 10:56:55 yes Jul 08 11:00:05 Someone use RamDisk with Android Studio? Jul 08 11:02:22 do you know where I can get the animation of google? the one in gmail / gdrive under the action bar? Jul 08 11:02:39 the progressbar? Jul 08 11:03:56 yes Jul 08 11:04:27 it's just a horizontal ProgressBar view Jul 08 11:06:11 I like the customization Jul 08 11:06:50 I think https://github.com/castorflex/SmoothProgressBar is ok Jul 08 11:09:47 Jonno_FTW: http://pastebin.com/WwdW9UE6 is correct? Jul 08 11:10:05 Alfreda: have you tested this on a device before asking here? Jul 08 11:10:09 no Jul 08 11:10:13 for you is correct Jul 08 11:10:22 do you think that would be better than asking me? Jul 08 11:10:38 yes you are an expert Jul 08 11:10:45 me telling you why you are incorrect is bad Jul 08 11:10:52 you need to know why you are wrong on your own Jul 08 11:10:57 it's a significant part of learning Jul 08 11:11:03 ok Jul 08 11:11:05 i test Jul 08 11:11:45 ok it dont crash more Jul 08 11:11:56 now i debug for view object data Jul 08 11:12:02 if are correct Jul 08 11:12:03 yes Jul 08 11:12:04 good idea Jul 08 11:13:49 good afternoon everyone. Is the behaviour of repo supposed to download all the code even if I check out just one branch or have I done something stupid? Jul 08 11:14:27 landstalker: you probably selected to download all Jul 08 11:14:45 how print a variable? Log.e("log_tag", fd_id,fd_Razza,fd_Tipologia,fd_Origine,fd_Altezza,fd_Descrizione);? Jul 08 11:15:06 Alfreda, why don't you just use a breakpoint? Jul 08 11:15:14 is same Jul 08 11:15:18 and hover mouse over variables / use debugger view? Jul 08 11:15:22 Jonno_FTW I tried these two commands: repo init -u https://android.googlesource.com/platform/manifest -b gingerbread-release Jul 08 11:16:05 and also using -b android-2.3.7_r1 Jul 08 11:17:46 I then ran repo sync -j 4 Jul 08 11:22:01 idk Jul 08 11:22:37 Alfreda: don't assume I'm an export Jul 08 11:22:40 expert Jul 08 11:23:41 Can I use a Linear Layout to center one element and pull the second one to the right of the layout's width? Jul 08 11:24:09 Doesn't seem to work, when I want to center the first component I need to use android:gravity="center_horizontal" on the layout Jul 08 11:29:39 Alfreda: just because I get paid to write android apps, it does not make me an expert, it does make me a professional though Jul 08 11:34:27 There are twon backbuttons (< at the top action bar and the other at the bottom of the page). For a page I am able to disbale the bottom back arrow Jul 08 11:34:43 how to do the same disable option for top arrow ie < Jul 08 11:35:01 it's called home button Jul 08 11:35:45 onMenuItemSelected() -> the item ID is android.R.id.home Jul 08 11:47:48 ironhalik, thanks but can you please elaborate Jul 08 11:48:40 ironhalik,that is a back arrow Jul 08 11:48:41 < Jul 08 11:48:47 < symbol? Jul 08 11:48:53 ← Jul 08 11:49:04 you mean the one at the top, right? Jul 08 11:49:12 yes Jul 08 11:49:21 top left Jul 08 11:49:26 when you click the < app_icon, the app does something Jul 08 11:49:34 yes Jul 08 11:49:37 yeah, thats android.R.id.home Jul 08 11:49:51 ironhalik, ah ok... Jul 08 11:50:02 you can disable it, so there wont be any arrow there, or any functionality Jul 08 11:50:21 dont remember the method, something like getActionBar().setHomeEnabled(false) Jul 08 11:50:45 or you can override it with menus onClick Jul 08 11:51:05 ironhalik, yes I wanted this. I want it for a specific page not for all Jul 08 11:52:27 ironhalik, ok... Jul 08 12:12:36 finally, got android gingerbread checking out Jul 08 12:12:57 Gingerbread? O.o Why that? Jul 08 12:32:26 Jonno_FTW: how create oject for AsyncTask Jul 08 12:32:34 new JSONTask().execute(); dont work Jul 08 12:33:56 Cannot instantiate the type FullImageActivity.JSONTask Jul 08 12:35:39 hi, i'd like to set a developer setting to on by default (visualize touch), where can i set it on the image? I couldn't find it in the SettingsProvider default.xml (own android image) Jul 08 12:37:14 Alfreda: paste your code Jul 08 12:37:39 http://pastebin.com/NYyZ1G2j Jul 08 12:37:49 sorry Jul 08 12:38:15 private static abstract class GetLinksTask Jul 08 12:38:19 this is-> http://pastebin.com/PcsHF8v5 Jul 08 12:38:21 there's your problem Jul 08 12:38:24 look the last Jul 08 12:38:31 private static abstract class JSONTask Jul 08 12:38:36 why did you make it abstract? Jul 08 12:38:53 why if no i must write all others function Jul 08 12:39:04 please rephrase that Jul 08 12:39:33 do you know what abstract does? Jul 08 12:40:42 Jonno_FTW: yes i know Jul 08 12:40:51 why did you use it then? Jul 08 12:40:57 when i write private static class GetLinksTask Jul 08 12:41:24 abstract is only for classes that you subclass Jul 08 12:41:37 do you intend to make a subclass of JSONTask? Jul 08 12:41:59 i had error and for correct them the IDE suggest me: Abstract class or add unimpleyement method: http://pastebin.com/PcsHF8v5 Jul 08 12:42:11 http://pastebin.com/PcsHF8v5 Jul 08 12:42:24 probably i must insert the Params in doBackground? Jul 08 12:42:26 the correct answer is to add the unimplemented methods Jul 08 12:42:51 if you knew what abstract does then why did you have to ask why it could not be instantiated? Jul 08 12:43:03 hy all Jul 08 12:43:04 i know Jul 08 12:43:13 but doBackground i already written! Jul 08 12:43:21 how can I measure gravity with an android phone? Jul 08 12:43:34 always remember to save Jul 08 12:43:43 yes Jul 08 12:43:50 but String... params what is in this function Jul 08 12:43:51 does this have special gravity sensor or it is computed from an another sensor, like accelerometer? Jul 08 12:43:53 i removed them Jul 08 12:43:59 in my doBackground function Jul 08 12:44:33 gregtom6: the accelerometer always shows 9.8 Jul 08 12:45:08 Jonno_FTW: so? Jul 08 12:45:20 that's the acceleration of the device Jul 08 12:45:24 fiddle around with it Jul 08 12:45:34 read about the sensors Jul 08 12:48:14 Jonno_FTW: i have this error Cannot make a static reference to the non-static method getBaseContext() from the type ContextWrapper Jul 08 12:49:44 on google i dont find nothing... how to resolve? Jul 08 12:50:11 don't make the class static Jul 08 12:50:18 gregtom6: Isn't gravity and acceleration the same thing? Jul 08 12:51:14 i cant Jul 08 12:51:33 phyzloc: okay, you made my opinion stronger Jul 08 12:51:34 why not? Jul 08 12:51:34 thx Jul 08 12:52:12 yes i can Jul 08 12:52:16 how can I change the Dialog properties of a DialogFragment? Jul 08 12:52:17 sorry Jul 08 12:57:36 Hello, i have updated android studio from 0.5.x to 0.8.1. now i have to reconfigure my Project :( .what should i set in "Facets""Android""Nativ libs directory" ? Jul 08 12:59:21 Morning Jul 08 13:00:05 i must return JSONArray? Jul 08 13:02:13 gdrc: you can call getDialog() to get the corresponding dialog Jul 08 13:02:34 play store.. install stats update time? can be more than 24 hours? why (btw)? Jul 08 13:04:11 mylord: I dont look at these stats often but id guess between 24 and 48 Jul 08 13:04:31 Jonno_FTW: i have crash Jul 08 13:05:31 did you read the error log? Jul 08 13:06:14 On most apps the activity becomes scrollable when the keyboard appears, so that you can make multiple inputs. Is this a configuration thing? Jul 08 13:06:19 did you think about reading it before asking here? Jul 08 13:06:43 phyzloc: you need to wrap the layout in a scrollview Jul 08 13:06:50 Jonno_FTW: http://pastebin.com/kSyUcc4r Jul 08 13:06:58 i dont undstand Jul 08 13:07:23 danijoo: thanks :) Jul 08 13:07:29 do you read the stack trace and try to understand why the app crashed before asking here? Jul 08 13:08:05 did you google the important part of the stack trace? Jul 08 13:08:09 as I am about to do? Jul 08 13:08:20 danijoo: Hmm I use a listview in this activity and have bad experience with listview inside scrollview :-) Jul 08 13:08:23 no she doesnt Jonno_FTW. Every day she want someone else to solve the problems.. Jul 08 13:08:35 phyzloc: oh yeah thats a problem. Jul 08 13:08:59 danijoo: noted Jul 08 13:08:59 danijoo: But what you're saying is that the activity doesn't automatically scroll just because the keyboard is up Jul 08 13:09:30 Jonno_FTW: what you mean? Jul 08 13:09:35 phyzloc: do you mean it just gets smaller but shows the whole layout? thats in fact a manifest setting Jul 08 13:10:27 Alfreda: you need to use google to search for your problems Jul 08 13:10:29 danijoo: Say you have to EditText. When you click on the upper one the keyboard appears and overlaps the lower one Jul 08 13:10:33 are you aware of google? Jul 08 13:10:59 danijoo: Right now I need to lower the keyboard and click on the lower EditText which is not desired Jul 08 13:11:14 Jonno_FTW: yes but i dont find nothing about Jul 08 13:11:23 with debug this is the problem:JSONArray jArray = new JSONArray(result); Jul 08 13:11:34 danijoo: That's TWO EditText's :-) Jul 08 13:12:36 line 12 of the stack trace explains why Jul 08 13:12:38 google that Jul 08 13:12:52 yes Jul 08 13:12:55 phyzloc: im not sure if this is what you mean but a lot of people put this line in their manifest: android:configChanges="keyboardHidden|orientation|screenSize" Jul 08 13:13:22 nothing on google you know resolve me? Jul 08 13:13:22 if you remove this, android will redraw your layout.xml according to the new size above the keyboard Jul 08 13:13:24 danijoo: Hmm..I'll check it out, thanks Jul 08 13:13:26 and everything is shows Jul 08 13:13:29 shown* Jul 08 13:13:58 danijoo: Don't know if that's the problem but I'll read about it Jul 08 13:14:27 this is the official reference for it btw http://developer.android.com/reference/android/R.attr.html#configChanges Jul 08 13:14:29 when you google stack trace messages, don't include the timestamp and the E/AndroidRuntime(15393): part Jul 08 13:14:37 Jonno_FTW: i know Jul 08 13:14:46 but i dont undstand how edit my code Jul 08 13:14:49 you can help? Jul 08 13:14:53 no i cannot Jul 08 13:15:07 you need to read the stackoverflow discussion Jul 08 13:15:32 reading stack overflow discussions is the best way of learning. true true.. Jul 08 13:16:08 for this particular question Jul 08 13:16:09 yes it does Jul 08 13:16:18 for nearly every :) Jul 08 13:16:35 Nah, especially not Android-related ones... Jul 08 13:16:36 for everything you should read the documentation Jul 08 13:16:48 do TimePicker have method init(); like DatePicker? Jul 08 13:17:06 Why don't you look? Jul 08 13:17:07 Jonno_FTW: i've resolved Jul 08 13:17:10 danijoo: No, that's not it. Maybe I do need a ScrollView :-/ Jul 08 13:17:15 thanks for telling me Jul 08 13:17:28 then.. the error was Toast.makeText(getBaseContext(), "Nessuna Razza trovata", Toast.LENGTH_LONG).show(); Jul 08 13:17:39 infact i comment it and work Jul 08 13:17:44 you have to do toast on the ui thread Jul 08 13:18:06 but i dont undstand because when JSONArray jArray = new JSONArray(result); i have error! Jul 08 13:18:08 test2 do you read me? Jul 08 13:19:08 Jonno_FTW: i have a JSONException Jul 08 13:19:10 why? Jul 08 13:19:10 Alfreda: every time you get an error: read the stack trace, then put in a breakpoint and use the debugger to find the value of your variables at that line Jul 08 13:19:21 i know this Jul 08 13:19:24 if this isn't imformative, google search the error Jul 08 13:19:25 already Jul 08 13:19:28 then repeat Jul 08 13:20:07 print out the jsonexception to the log and read that Jul 08 13:20:42 sorry.. look my code... i view correctly the response of my php script in result variable but why when i do JSONArray jArray = new JSONArray(result); i have an exception Jul 08 13:20:46 ? Jul 08 13:21:03 you want jsonobject Jul 08 13:21:10 yes Jul 08 13:21:16 or read the exception message Jul 08 13:22:08 Alfreda: Without looking at your code (wont do that now). Have you checked with debugger if result has the corret value (valid json) and if its really a JsonARRAY (beginning with [ ) and not a jsonobject (beginning with { ) Jul 08 13:23:07 Alfreda: you know I get paid $37/hr to tutor people in java coding Jul 08 13:23:19 heh Jul 08 13:23:30 people like you Jul 08 13:23:32 danijoo: this is my response: http://pastebin.com/DxUmTp8F Jul 08 13:23:40 I made $50 at one point .... sighs .... good times :) Jul 08 13:23:48 Alfreda: as i said i wont look at your code. its your job. Jul 08 13:23:55 and you want other people to do it over and over again Jul 08 13:24:12 its my first time that use php/android Jul 08 13:24:14 :( Jul 08 13:24:28 in your php you need json_encode($data) Jul 08 13:24:35 no offense but shouldnt be the first time using your brain + google Jul 08 13:24:37 instead of var_dump Jul 08 13:25:11 when I was new at programming, I googled and read SO, read the docs and to some degree read the textbook Jul 08 13:25:29 yes but which? Jul 08 13:25:41 but what? Jul 08 13:25:56 where is? Jul 08 13:26:10 if you want to send json data Jul 08 13:26:11 hello Jul 08 13:26:17 you need to send it using json_encode Jul 08 13:26:38 ah Jul 08 13:27:00 I'm trying to fill a table with 1000 dummy entries using a contentprovider and ContentValues. am I right to assume that one ContentValues object represents a single row? Jul 08 13:27:08 is it possible for listview item to take all the remaining space (for example first view takes 50dp and the second takes remaining screen space) Jul 08 13:27:10 ? Jul 08 13:27:31 Jonno_FTW: this is my script Jul 08 13:27:33 http://codepaste.net/w7b2dq Jul 08 13:27:47 remove the var_dump Jul 08 13:27:49 i already doing json_encode Jul 08 13:27:59 ahhh yesyes Jul 08 13:30:10 if your app has declared ACCESS_FINE_LOCATION buta device doesn't have a GPS, will Play show it as incompatible? Jul 08 13:32:17 mattblang i think you need uses-feature tag Jul 08 13:34:15 Jonno_FTW: i view this http://codepaste.net/xpo8gv and i have error, i must remove the string:"Connessione avvenuta con successo" ? Jul 08 13:34:48 I only speak english Jul 08 13:35:44 look linke Jul 08 13:35:45 link Jul 08 13:35:53 before the array there is another string Jul 08 13:36:07 Connessione Avvenuta con successoConnessione Avvenuta con successo Jul 08 13:36:11 i must remove this i think Jul 08 13:36:13 what is the url that your php is being requested from? Jul 08 13:36:15 in my php code Jul 08 13:36:32 http://photogiuseppe.altervista.org/test.php?id=1 Jul 08 13:37:00 yes Jul 08 13:37:04 that returns invalid json Jul 08 13:37:10 I have no idea what that string means Jul 08 13:37:21 and you should probably fix your php warning Jul 08 13:38:04 no i do an echo when connection estabilished :) Jul 08 13:38:08 i can remove it! Jul 08 13:38:14 :) Jul 08 13:39:14 why did you have to ask me that? Jul 08 13:41:56 np Jul 08 13:46:21 is it against the TOS to try to decompile someone elses apk? Jul 08 13:46:39 njcomsec: it's more a question for your local laws and the specific license of the program, afaik Jul 08 13:47:33 I see Jul 08 13:47:41 but Google doesnt mind? Jul 08 13:47:52 njcomsec: the question is how should they know :p Jul 08 13:47:54 njcomsec: I think it's outside their "jurisdiction" Jul 08 13:48:06 well I use chrome so google probably watches everything I do Jul 08 13:48:07 lol Jul 08 13:48:19 njcomsec: this actually ties into some issues regarding taxes etc. when you release paid apps on Play store Jul 08 13:48:23 an apk is only a renamed zip.. Jul 08 13:48:27 I keep getting a class cast exception in one of my adapters. It seems as though I'm not getting the proper getItemViewType(). Any ideas? Jul 08 13:48:30 "he just googled how to reverse enginneer an apk, lets block his dev account now" Jul 08 13:48:48 Nah, they don't. Jul 08 13:49:05 danijoo: I'm sorry, I set loginDialogFragment.getDialog().setTitle("Some other string ..."); but doesnt change the text Jul 08 13:49:20 yeh the tax thing is another thing I didnt get on the play store/account console thing..... it says you have to tick the box for every country you want to apply tax to..... but your app can be sold to anyone? so you tick all the countries? or just the one you live in Jul 08 13:49:25 gdrc: where did you do it. it must be after onCreate Jul 08 13:49:43 njcomsec: Google runs essentially a marketplace, but isn't involved itself in what is sold other than setting a rule on what can be advertised on said marketplace. Licenses are set by sellers of the application, Google is just middleman, not the seller Jul 08 13:49:54 danijoo: I do in the Activity Jul 08 13:49:59 as for taxes, I think it depends on your specific tax status Jul 08 13:50:29 and local tax law Jul 08 13:50:47 ahh I see Jul 08 13:51:39 gdrc: i dont know about calling it from the outside. but i guess you first have to show it, and then change title as you have to go through oCreate first Jul 08 13:51:59 as for reverse engineering - some countries mandate that reverse engineering is always legal, no matter what the license claims Jul 08 13:52:27 You know where to travel now, njcomsec! :P Jul 08 13:52:35 russia? Jul 08 13:52:52 Jonno_FTW: why i view field Descrizione:Null ? Jul 08 13:53:04 if I have an actionbar and I enable UP, will that also go back through fragments? I was reading the sdk docs on it and it says that it isn't the same as the back button Jul 08 13:53:27 njcomsec: Polish copyright law among other things mandates that reverse engineering is always legal :) Jul 08 13:53:28 danijoo: I'm sorry. I did a mistake. I should set the Message not the Title (in the onCreated method I return a ProgressDialog. Thanks for help. Jul 08 13:53:53 yw Jul 08 13:53:58 too bad I live in the UK Jul 08 13:54:04 (what is illegal is plagiarism and infringing on copyright) Jul 08 13:54:21 not sure it would work if I went to poland and reverse engineered the code there, published it from my uk account Jul 08 13:54:32 Alfreda: your question made no sense Jul 08 13:54:44 njcomsec: reverse engineering ok Jul 08 13:54:55 In many places reverse engineering is fine as long as like p_l said, you don't copy the code Jul 08 13:54:57 I think most of western countries make black-box reverse engineering legal. Jul 08 13:54:59 you can use it to get an idea Jul 08 13:55:01 njcomsec: publishing code that you reverse engineered would be violation of copyright. Using said code to learn how to implement the same functionality is not Jul 08 13:55:04 but at the moment you publish it, ... Jul 08 13:55:06 yeh I wouldnt copy and paste any code Jul 08 13:55:14 thats nearly illegal in every country Jul 08 13:55:17 I would literally just look to analyze the architecture or something Jul 08 13:55:20 Mavrik: black box reverse engineering was formed because of BS in US Jul 08 13:55:40 EA used it to create their own sega genesis cartridges Jul 08 13:55:49 does just looking at code count as RE? Jul 08 13:55:53 or you have to copy and paste Jul 08 13:56:00 * flan3002 regularly uses Dexplorer to learn what technology his downloaded apps use. Jul 08 13:56:10 reverse engineering is the process of making the code readable again Jul 08 13:56:11 jonc: it's a grey-area legal trick that they used, because licenses in USA commonly disallow RE Jul 08 13:56:13 (It doesn't decompile methods) Jul 08 13:56:27 has nothing to do with copy/pasting Jul 08 13:56:29 thats just stealing Jul 08 13:56:35 if the people who reverse engineered it, were the ones to create their own version it was illegal, so what people did was have 1 team make a detailed analysis that was handed off to people who weren't involved in reverse engineering Jul 08 13:56:38 danijoo_: in general, RE is about learning how something works :) Jul 08 13:56:39 it reminds me of halt and catch fire, a tv show about this Jul 08 13:56:54 there was an episode that explained RE and law Jul 08 13:56:59 jonc: yes, an idiocy created by US law. Most countries don't have such stuff, iirc Jul 08 13:57:10 uhm Jul 08 13:57:14 and some simply make any "you're not allowed to RE" clause illegal Jul 08 13:57:19 yeh jonc thats what they did in the show Jul 08 13:57:26 they used a proxy person Jul 08 13:57:32 jonc, basically the issue is - code is covered by copyright Jul 08 13:57:45 Mavrik: RE is orthogonal to copyright, though Jul 08 13:57:50 https://www.asme.org/career-education/articles/management-professional-practice/trade-secrets-101 Jul 08 13:57:52 p_l: those laws are most often made by ppl having no idea what they are talking about. sad... Jul 08 13:58:00 jonc, if you use code that you don't have copyright rights of in your own software that makes you liable to be sued Jul 08 13:58:09 Mavrik, I never said you could Jul 08 13:58:21 I said you are allowed to reverse engineer for an understanding, you just can't copy it Jul 08 13:58:22 that's why blackbox engineering - you have separate people so it doesn't happen that you reuse same pieces of code Jul 08 13:58:37 and that you have clear case when defending in court that you DID NOT infringe on IP of that company Jul 08 13:58:50 I suppose it is like music using other peoples samples, if the end production is so different that no one would be able to tell even looking at them side by side. then it doesnt matter Jul 08 13:58:53 Mavrik: blackbox RE is to combat license terms stating that you are not allowed to RE, and defending against plainly BS law Jul 08 13:58:53 (even if you wrote an algorithm that looks the same) Jul 08 13:59:13 p_l, no, it really isn't. Jul 08 13:59:32 since courts work with concepts not implementation - if RE would be illegal, it would be illegal no matter how it was done. Jul 08 14:00:17 it's to completely seperate the act of reverse engineering and then implementation of what was learned from it Jul 08 14:00:22 * EdGeorge reverse engineers ALL the things Jul 08 14:00:50 EdGeorge: Native apps as well? :P Jul 08 14:01:02 * EdGeorge reverse engineers SOME of the things Jul 08 14:01:07 : D Jul 08 14:01:11 my bad ;-) Jul 08 14:01:12 Better. :D Jul 08 14:01:27 Mavrik: well, that involves definition of what is "derived" product according to copyright in specific country :) Jul 08 14:01:40 but I'm not a lawyer, so I dunno how twisted that is in USA. Jul 08 14:01:53 yeh but 99% of commercial products were inspired by existing products Jul 08 14:01:54 jonc, mhm, and the 2nd part is the problematic one Jul 08 14:02:18 njcomsec: i would go for 100% Jul 08 14:02:20 * p_l just had to read the copyright act in poland, which plainly stated reverse engineering was always legal as long as you do not directly copy copyrighted work Jul 08 14:02:25 there is nothing completly new Jul 08 14:02:33 think about music, art, food, vehicles, they are all very similar Jul 08 14:02:36 exactly Jul 08 14:02:36 Define 'directly'. p_l Jul 08 14:02:45 p_l, yes, which is what pretty much most western legal systems also provide Jul 08 14:02:54 so I am not sure I get this "derived product" law regarding tech products Jul 08 14:02:55 but its still a diff between inspiration and stealing :) Jul 08 14:03:01 yeh true Jul 08 14:03:01 Mavrik: Except some allow license to disallow RE Jul 08 14:03:02 the most known story of that being the cloning of PCs ;) Jul 08 14:03:28 p_l, licenses can say anything they like Jul 08 14:03:37 and they cannot override laws Jul 08 14:03:44 but I see it like this..... looking at an artists painting to see what brush techniques they use..... then use those techniques to paint a completley new picture yourself Jul 08 14:03:45 p_l, software terms have not held up in court Jul 08 14:04:16 p_l, there are even EU countries which have set precendent that EULAs aren't worth the paper they're printed on since they're not fully binding contracts. Jul 08 14:04:19 njcomsec: yeah but printing the same picture upside down, then, isnt cool :p Jul 08 14:04:25 it's mainly there to scare away people from doing things under threat of massive lawsuits that will bankrupt you before they finish Jul 08 14:04:26 anyone in here have epxerience with gradle in adt? Jul 08 14:04:28 jonc: Depends on whether they go against the law, or if the law simply doesn't specify Jul 08 14:04:34 or.... hey this game uses this design pattern to manage certain entities.... I will use a similar design pattern for something similar (but never copying code directly) Jul 08 14:04:43 most of those cases boil down to copyright law and its implementation in practice Jul 08 14:05:20 jonc: if the clause is directly going against a specific paragraph of law, the "costly lawsuit" turns into farce that gets thrown out in first instance with suing company being forced to pay the costs Jul 08 14:05:50 jonc: if the law is not specific and clear, or doesn't say anything about it, then you get your costly lawsuit Jul 08 14:06:44 p_l, not always unfortunately. If the company can draw the lawsuit out long enough the defendant may not have the money to keep paying a lawyer Jul 08 14:07:15 at least in the US it happens Jul 08 14:07:28 jonc: USA always seems to be buyers market when it comes to lawsuits ;) Jul 08 14:08:20 jonc: in poland, illegal clauses in contracts can be prosecuted by state (you just have to lodge the complaint with the consumer protection office, iirc) Jul 08 14:08:58 it happens everywhere because consolidation of lawsuit costs happen after the suit is complete Jul 08 14:09:35 which means even in EU you NEED to have cash on hand to keep the legal process running until completion before you can expect the fees to be returned to you from the losing party... if, of course, the losing party even has the money Jul 08 14:10:13 Mavrik: there's also difference on how far you can stretch the lawsuit. traveling to a different state which requires you to deal with local state law makes it easier to stretch a lawsuit Jul 08 14:12:37 Also, harder to stretch the lawsuit when in the first hearing you can just point "paragraph this and this explicitly states the action was legal, and that the suing party has nothing to stand on" (especially if you don't have jury to muck things up...) Jul 08 14:12:42 Won't work for everything, of course Jul 08 14:12:46 p_l are you from poland? Jul 08 14:12:54 njcomsec: yes Jul 08 14:13:15 cool. I have Polish friends in London. so Im learning some polish Jul 08 14:13:21 unfortunately can't say it's all sunshine and daisies Jul 08 14:13:42 the people seem nice Jul 08 14:14:12 at what point can I call getWidth on a view and get something besides zero? current calling in onActivityCreated Jul 08 14:16:09 njcomsec Londoners represent o/ Jul 08 14:16:36 I think there is android dev meetup in London. I should check it out Jul 08 14:17:06 Londroid Jul 08 14:17:25 http://www.meetup.com/android Jul 08 14:18:27 yehhh Jul 08 14:30:45 if only I lived in london Jul 08 14:31:15 mattblang: after is is shown Jul 08 14:31:44 more precise: after onMeasure is called Jul 08 14:34:27 off topic, but am I the only one that walks around the office in socks? Jul 08 14:34:39 How much of the install base for my app can I expect to upgrade to the latest version, just using Google Play's built-in update notification system? Jul 08 14:34:58 I've been doing it for months and someone just noticed and started laughing, I didn't think it was that absurd Jul 08 14:35:13 d0de: nearly everyone. it will just take ages :) Jul 08 14:35:54 danijoo_, how long is ages? What percentage can I expect to have upgraded, say, 8 weeks after I release the update? Jul 08 14:36:12 depends Jul 08 14:36:14 danijoo_ when is that Jul 08 14:36:23 I know it will be very approximate, but it would be really helpful to have an idea Jul 08 14:36:27 mattblang: before its drawn, and on every redraw Jul 08 14:37:17 d0de: htis heavily depends on your userbase. but a guess would be about 25%-50% already updates on the first day if your apk isnt that big (because they have auto updates on) Jul 08 14:37:37 danijoo_, ok, thanks Jul 08 14:37:41 and then its asymptotic.. Jul 08 14:38:12 I'm trying to work out how much time I should devote to getting some IAP stuff set up before I launch, vs. just seeing how the launch goes Jul 08 14:38:14 but when saying ages, i meant that. still have some users on a half year old version sitting arround here Jul 08 14:38:46 reporting the same old bugs over and over again :D Jul 08 14:48:32 When I trigger a breakpoint my app crashes on the phone with the text "unfortunately, myApp has stopped." Jul 08 14:48:37 flan3002: Gingerbread because I wanted to see if I could get it to run on my Nexus 7 Jul 08 14:48:37 any way I can prevent that? Jul 08 14:49:14 Syzygy__: Does it crash as well when not debugging? Jul 08 14:49:20 no Jul 08 14:49:34 Syzygy__: How many threads are you using? Jul 08 14:49:48 conciously, none Jul 08 14:50:04 You mean one... Jul 08 14:50:24 obviously, but as far as I'm concerned I'm not using threads. Jul 08 14:50:43 breakpoint is in the onclick of a button Jul 08 14:50:52 don't think that starts a thread Jul 08 14:51:27 Well. If you stop the UI thread, it's supposed to ANR: Jul 08 14:51:48 anr? Jul 08 14:51:53 isnt there an option to force android to ignore anrs somewhere in the dev menu> Jul 08 14:51:54 ? Jul 08 14:51:56 Application not responding. Jul 08 14:52:06 Just don't tap the screen. :P Jul 08 14:52:19 oh haha >D Jul 08 14:52:39 and you can "wait", too Jul 08 14:52:40 well, not tapping it. Jul 08 14:52:48 still crashing without a log Jul 08 14:53:04 yo guys is there any way to use youtube api without registering your app? I mean I can't register my app if it's not on play store yet can I? Jul 08 14:53:12 Yes you ca Jul 08 14:53:15 danijoo_: the option is to show all ANR's not hide them Jul 08 14:53:18 There is something in the log, it won't just crash, Syzygy__. Jul 08 14:53:22 oh okay. Jul 08 14:54:11 danijoo_: my thought process is often the same though, and then I has a sad when the option is the exact opposite of what I wanted Jul 08 14:54:42 hehe. i'd make such an options if i would work for google :p Jul 08 14:55:47 ah... automatic logcat filter Jul 08 14:55:58 system_process E/InputDispatcher﹕ channel '656a4c70 test.com.contentmoduleb/test.com.contentmoduleb.MyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! Jul 08 14:56:13 Not a reason to crash... Jul 08 14:56:46 i think this is just the result of the crash.. Jul 08 14:59:16 weird... not crashing for now Jul 08 14:59:19 Is it enough to get the youtube's "server api key" to test the api in my app? Jul 08 15:00:54 Howdy folks, say you're done working on you Android and iOS versions for one app, do you release the Android version first or do you wait 2 weeks for apple to approve their version and release at the same time? Jul 08 15:01:23 id wait 2 weeks and one day Jul 08 15:02:21 yeah........... not a day longer :) Jul 08 15:02:34 :) Jul 08 15:03:07 na seriously. id just reelease it if its really ready Jul 08 15:03:12 the two markets share nothign Jul 08 15:04:51 it's a game, I dont want to reduce the chance for virality Jul 08 15:05:41 then you might want to wait and release them together Jul 08 15:06:25 aviran, from a marketing standpoint I guess it makes more sense to not release them at the same time Jul 08 15:06:38 Syzygy__: i woud say the opposite Jul 08 15:06:52 yeah, can you explain? Jul 08 15:06:56 aviran: it depends, it's really up to you. If you expect 10,000 people to download it on each platform though for example, you can stagger the release to keep interest. If it was popular on iOS and then a little while later you release the Android version, iOS users who'd not heard of it on iOS the first time might see a friend playing it and then look for it themselves. Jul 08 15:07:16 danijoo_, assuming you get some newscovereage you'll be in the news twice - once with the release and once with "android game now also available for iOS" Jul 08 15:07:19 because if you release on android and they tell their iOS friends "see this awesome app", they might lose interest in 2 weeks Jul 08 15:07:46 Syzygy__: but if you arent, you lose the "virality" as aviran mentioned Jul 08 15:08:11 a guys shares it on facebook, only his android bodies can play it Jul 08 15:08:16 I'm not telling him what to do. I'm just telling him one release strategy :D Jul 08 15:08:45 aviran: it sounds like you've already made up your mind :) Jul 08 15:08:58 well I guess if sth really goes viral, i think it doesnt matter anyway Jul 08 15:09:13 you have to decide if you think more people will share it via social media or more people will read it via potential gaming blog posts. Jul 08 15:09:18 but look at something like Draw Something, hype does die down over time Jul 08 15:09:45 Release early, release often. Jul 08 15:09:50 so it would be one way of keeping interest, unless you already had future development and features planned which could be used in the same way to keep that interest across both platforms Jul 08 15:10:09 landstalker: the thing is there is no real shared interest. Jul 08 15:10:21 iOS uses arent interested in whats released on android and vice versa Jul 08 15:12:02 If it's a matter of two weeks and I had a marketting budget, I would delay my marketing push until both apps were in their stores Jul 08 15:12:14 But that's not a reason not to release them asap Jul 08 15:14:51 E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! - what could cause this error? Jul 08 15:16:47 i'm getting it while trying to insert 24.000 strings, 10.000 ints and 3.000 floats into a database Jul 08 15:20:12 Do android's regular expressions support NAMED groups ? Jul 08 15:22:22 Syzygy__ relevant: http://developer.android.com/reference/android/os/TransactionTooLargeException.html Jul 08 15:22:57 well, that would be a nice name for it. Jul 08 15:23:11 but nothing tells me that this transaction occured -.- Jul 08 15:35:39 ok. I guess that's the first time i managed to an app via the garbage collector Jul 08 15:35:57 i think you a word Jul 08 15:36:06 crash Jul 08 15:36:19 Yes! Hello! The package "powermock-mockito-release-full" contains the package "mockito-all-1.9.5" which contains "org.hamcrest" ... How do I make the dependency tree there NOT have "org.hamcrest"? 'exclude group: 'org.hamcrest'' (under powermock-mockito-release) is ineffective. Jul 08 15:37:51 created roughtly 15000 database entries, slightly less than 50mb, in about 50 packages without the gc cleaning up between them. once it started collecting the garbage, my app crashed Jul 08 15:39:38 hi, i'm using a php script on my android app Jul 08 15:40:01 im sorry Jul 08 15:40:28 same Jul 08 15:40:30 hi in my php script result is this: http://photogiuseppe.altervista.org/test.php?id=1 with strange symbol for '', '' ecc.. Jul 08 15:40:38 oh, nevermind. I guess it's not the garbage collector, it's an out of memory exception Jul 08 15:41:12 but when i read from my app i view always this symbol... also with this: BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"),8); Jul 08 15:42:00 Alfreda the problem isnt related to android Jul 08 15:42:01 my code is: http://codepaste.net/nx6ps5 Jul 08 15:42:06 its a php problem Jul 08 15:42:08 no Jul 08 15:42:11 php is ok Jul 08 15:42:12 you encoding is fucked up Jul 08 15:42:14 no it isnt Jul 08 15:42:15 no no Jul 08 15:42:30 i asked on php channel Jul 08 15:42:36 if you see such strange symbols in your code, its php . Jul 08 15:42:36 not is a problem of php Jul 08 15:42:41 no Jul 08 15:42:44 php script is ok Jul 08 15:43:23 nvm. believe whoever you want.. Jul 08 15:43:56 danijoo_: i must decode correctly this string Jul 08 15:44:15 if its already wrong when i see it in the brower, it is a php problem. Jul 08 15:44:53 because if I write a php script and run it on my servers. there are no unicode excaped characters like .\u00a0 Jul 08 15:45:54 danijoo_: i view for char '' -> \u00a8 ecc.. Jul 08 15:46:00 i can decode correclty in java? Jul 08 15:46:32 yes you could. requires more work then fixing your php script but it is possible Jul 08 15:47:28 danijoo_: loook http://www.json.org/ look at the EBNF on the right, at the char section. Jul 08 15:47:35 ;) Jul 08 15:48:11 i know how json and character encoding works, thanks Jul 08 15:48:36 http://3v4l.org/durPkdanijoo_: Jul 08 15:48:40 danijoo_: http://3v4l.org/durPk Jul 08 15:48:41 still your server is sending the wrong encoding together with the response Jul 08 15:48:50 no its not. Jul 08 15:49:29 danijoo_, json should be safe transported in any encoding, because of the fact all multibyte characters are escaped. Jul 08 15:49:48 WORLDSTAR Jul 08 15:50:02 just kidding ; dont fight please Jul 08 15:50:04 1-0 :D Jul 08 15:50:24 i can only say that im using php too, and after setting the correct values in php.ini, my server encodes the éüå without escaping Jul 08 15:50:34 and reading them with an input stream works like charm. so yeah.. Jul 08 15:50:59 wdanijoo_: what use you? Jul 08 15:51:17 pastebin your php.ini Jul 08 15:51:27 danijoo_, also, if you pay attention to the ebnf on json.org on the right hand side, it explicitly shows that what he has is valid un the char section. Jul 08 15:52:00 infact! Jul 08 15:52:07 what is the "ebnf" Jul 08 15:52:10 sorry I can only say what is working for me and whats not Jul 08 15:52:31 extended Backus–Naur Form Jul 08 15:52:53 explodes: Look it up with $ man sudoers and scroll down! :P Jul 08 15:52:56 It says: any-Unicode-character- except-"-or-\-or- control-character Jul 08 15:53:09 But it also says: \u four-hex-digits Jul 08 15:53:14 So BOTH of you are correct Jul 08 15:55:05 ok, "hamcrest-library" includes "hamcrest-core" how can i exclude "hamcrest-core" Jul 08 15:55:27 If I can do this I can do anything Jul 08 15:55:59 wow: exclude module: 'hamcrest-core' Jul 08 15:56:01 easy Jul 08 15:56:05 Alfreda: maybe its your response type Jul 08 15:56:15 yes look my code Jul 08 15:56:23 you send a content-type of text/html when it should be application/json; charset=utf-8 Jul 08 15:56:28 http://codepaste.net/nx6ps5 Jul 08 15:56:35 danijoo_: EBNF says that \u0239 or é is OK Jul 08 15:56:54 yeah but then it requires you to decode it correctly in java explodes Jul 08 15:57:00 yes true; Jul 08 15:57:08 which makes much more effort then adding utf-8 to php.ini Jul 08 15:57:12 which, although a pain in the ass, is what he's asking Jul 08 15:58:22 not sure it ist the correct class but should be something like URLDecoder.decode(serverResponseString, "UTF-8"); Jul 08 15:59:37 danijoo_: what i must do? Jul 08 16:00:08 BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"),8); Jul 08 16:00:15 is already utf-8 Jul 08 16:00:29 Does anyone know when an NDK will be available that supports ARMv8 processors? Jul 08 16:00:32 That suggests that the input is UTF-8 which it is not, it is ASCII Jul 08 16:00:41 So you read in the ASCII and DECODE it as UTF-8 Jul 08 16:00:55 BufferedReader reader = new BufferedReader(new InputStreamReader(is,"ascii"),8); Jul 08 16:01:09 ascii is a subset of utf8 Jul 08 16:01:10 URLDecoder.decode(reader.getWhateverStringItHas(), "UTF-8"); Jul 08 16:01:17 thanks deebo Jul 08 16:01:24 ascii chars are fine decoded as utf8 Jul 08 16:03:10 Alfreda, what are you using to decode the json? Jul 08 16:03:16 he's reading in ASCII: \u00e8 and needs it to be decodes as utf8 é Jul 08 16:03:38 explodes, which any json lib should do for him Jul 08 16:03:47 mm Jul 08 16:03:59 my money is on him not using a json lib :) Jul 08 16:04:05 Bittarman: look my code http://codepaste.net/nx6ps5 Jul 08 16:04:32 explodes: How edit my code? Jul 08 16:05:56 No line numbers Jul 08 16:06:01 VERY USEFUL Jul 08 16:06:12 Oh there Jul 08 16:06:26 i must add URLDecoder.decode(reader.getWhateverStringItHas(), "UTF-8"); ? Jul 08 16:06:31 Line 79 bro, decode that ASCII as UTF-8 Jul 08 16:06:34 after BufferedReader reader = new BufferedReader(new InputStreamReader(is,"UTF-8"),8); Jul 08 16:06:35 ? Jul 08 16:06:59 line 89: Jul 08 16:07:22 add: result = URLDecoder.decode(result, "UTF-8"); Jul 08 16:07:29 this is not the most efficient route. Jul 08 16:07:44 Lets get it working for you, first. Jul 08 16:07:46 eh? why are you urldecoding a string which is not urlencoded? Jul 08 16:07:50 its json encoded Jul 08 16:08:36 eh, one encoding is pretty much as good as the other, right? Jul 08 16:08:44 Alfreda, are you observing this at System.out.println(result) ? Jul 08 16:08:50 yes Jul 08 16:09:04 Alfreda, its not decoded at that point, so I'd *expect* to still see it Jul 08 16:09:11 i try Jul 08 16:09:20 try puttin system.out.println(json_data) just before the return instead Jul 08 16:09:29 there I'd expect it to be decoded Jul 08 16:12:20 Alfreda: i has add result = URLDecoder.decode(result, "UTF-8"); and in System.out.println(result); i view still \u00e8 Jul 08 16:12:39 Alfreda, please... listen to me... Jul 08 16:12:43 ok Jul 08 16:13:05 the string youhave, is not urlencoded, it is json encoding. I have nfc why urldecoding has been suggested, but its completely irrelevant Jul 08 16:13:15 try puttin system.out.println(json_data) just before the return instead Jul 08 16:13:29 which is the point where the string should have actually been decoded Jul 08 16:13:57 the problem is almost certianly because you are dumping the string while it is still json, and not actually decoded Jul 08 16:14:44 Bittarman: ah ok i try Jul 08 16:17:24 I just cannot get Android API v2 MapView to render, I have no Idea what I am doing wrong. It feels like ive tried every tutorial available, someone please help.. pm Jul 08 16:17:51 Bittarman: you are right :D:D:D Jul 08 16:17:58 Alfreda, I know ;) Jul 08 16:17:58 is correct now! Jul 08 16:18:01 thanks Jul 08 16:18:03 :D Jul 08 16:18:10 well, it was correct before, you were observing it in the wrong place Jul 08 16:19:13 Bittarman: yes Jul 08 16:19:14 :P Jul 08 16:19:48 Someone ? Jul 08 16:19:50 thks Jul 08 16:25:38 Eyeball_ are you trying to use it on an emulator Jul 08 16:25:50 EdGeorge: No Jul 08 16:25:56 EdGeorge: on my device Jul 08 16:26:19 The mapview works fine when signing with debug certificate, but not with the release keystore Jul 08 16:26:20 and youve got an API key from google Jul 08 16:26:23 yes Jul 08 16:26:48 And i got all the permissions set up appropriately, Jul 08 16:28:13 My manifest: http://pastebin.com/1Z6ypTJW (I replaced the API key) Jul 08 16:28:45 have you put the release keystore SHA in the Google Dev console Jul 08 16:28:57 Yes. it is there Jul 08 16:29:07 along with the debug one Jul 08 16:29:14 Both are there Jul 08 16:30:46 Well that seems fine to me Jul 08 16:31:17 you may well need to gen a new API key Jul 08 16:31:31 Have you tried that Jul 08 16:31:44 yes, several times :/ Jul 08 16:52:01 What was that Android L API to transition a view to another activity? Jul 08 16:52:03 Android: please break this more: java.lang.NoClassDefFoundError: org/mockito/internal/creation/jmock/ClassImposterizer$3 Jul 08 16:52:26 Afzal: Scenes API? Jul 08 16:52:38 CursorWindow﹕ Window is full: requested allocation 49 bytes, free space 3 bytes, window size 2097152 bytes. Jul 08 16:52:42 any way I can prevent this? Jul 08 16:53:15 explodes I don't think so. It was introduced in Android L Jul 08 16:53:47 Nvm, found it, https://developer.android.com/preview/material/animations.html#transitions Jul 08 16:53:52 Shared elements transition Jul 08 16:54:15 http://developer.android.com/preview/material/animations.html#transitions Jul 08 16:54:18 erf Jul 08 16:57:24 I'm trying to compare the performance of two methods for database access. One of them takes 0.3 seconds to access 6000 rows in a table with 37 columns - about 25mb, the other takes 6 seconds due window thingy. Jul 08 16:58:35 not sure if i want to call that a fair comparision Jul 08 17:09:24 Has anyone used PowerMock with Instrumentation Tests? Jul 08 17:10:11 Hello Guys. Quick/Crazy Problem: I am developing some openGL ES20. I am encountering the following: If I launch it on the handheld (Xperia Z2) (using eclipse), it runs "good". If I run it on the device without eclipse, it's slow and hardly lagging (freezes partly). If I run it on my brothers galaxy s3, it runs smooth Jul 08 17:12:44 having a problem with the android dev tutorial in eclipse, can someone help? R.id.edit_message is throwing an error: "edit_message cannot be resolved or is not a field" Jul 08 17:13:23 MrMoozh: the "R.java" File is generated automatically. Try Build->Clean, Restarting Eclipse etc Jul 08 17:13:33 I cant tell you how to properly force a rebuild Jul 08 17:15:01 i got it, thanks. eclipse console is now saying error while loading shared libraries: libz.so.1: cannot open Jul 08 17:16:13 that is completely crazy :D Jul 08 17:16:23 So I assume you are under Linux? Jul 08 17:16:26 yes Jul 08 17:16:36 do you have the libz-lib installed? Jul 08 17:16:42 does it work as root? Jul 08 17:17:10 possibly? can i get it with apt-get? Jul 08 17:17:16 (To say: Is the "cannot open" true or a path-finding failure) Jul 08 17:17:28 I however believe libz should be installed Jul 08 17:17:40 try apt-get install libz, apt-cache search libz, some of these Jul 08 17:17:44 restart eclipse Jul 08 17:19:56 oh, libz is actually missing from build-tools Jul 08 17:44:35 Hi guy's i am making a light (who turn's around a Atmega8 + ENC28J60 for ethernet) who could be controled by ethernet (tcp/ip like a webbrowser) that part's work fine :D but i want to be abble from my application to "shoose the color" because actualy i have just 3 "seekbar" (sliders) for shoose all colors values (Reg, Green, Blue) (from 0 to 255) Jul 08 17:44:55 I want to change the "sliders" by a "color picker" Jul 08 17:45:37 Did exist a rotary color picker object in android? Jul 08 17:46:46 like this one : http://i.stack.imgur.com/DSiWQ.png Jul 08 17:47:21 (with the white color so) Jul 08 17:47:23 cyber37 https://github.com/LarsWerkman/HoloColorPicker Jul 08 17:47:34 thats the first example that came to mind Jul 08 17:48:53 A jar's class can't find its own inner-class: java.lang.NoClassDefFoundError: org/mockito/internal/creation/jmock/ClassImposterizer$3 what gives bro Jul 08 17:52:05 I want all the garbage collection data in the logcat, how do I filter for that? Jul 08 17:52:48 if my application is not writing data to the logcat, then what is the problem(im not talking about using Log.d, Im talking about automatic messages). Jul 08 17:54:12 Anyone know if i can get an app directory in a static way? Jul 08 17:59:15 If I was to let a user choose between four colours for the app, what would be the best way to reflect the changes in the rest of the app? Jul 08 17:59:27 Via themes or by getting a preference for color? Jul 08 18:03:58 i still don't understand why R.id.edit_message is showing the error "cannot be resolved or is not a field." i've tried Project -> Clean..., i've tried deleting the R.java file (and it regenerates without error) Jul 08 18:05:29 EditText android:id="@+id/edit_message" is supposed to create the resource, yes? Jul 08 18:19:07 Hey guys. I have a chat screen. For each new message Im adding a new item to the list adapter, so each message become a new row. Now I want to group the recent messages that a users sends to make all of them look like on a single row. What is the best approach to achieve that Jul 08 18:37:10 I have a question about library projects. A library project I'm developing needs a remote service, so the users of this library will have to add to their manifest to include this remote service. However, if the service name is like com.example.remote.service which they declare in their manifest, this would cause conflicts if more than two developers used the library on the same phone. Or is this not true if exported= false? Jul 08 18:37:49 is there a way to search for, say, a string being called in another file in my project? for example, if i had Hello world! and wanted to find out where it gets called, how would i do that? Jul 08 19:11:31 Anyone here that want to try my app? I have no downloads yet, it would be nice to have one!https://play.google.com/store/apps/details?id=com.sj.worldcupquiz Jul 08 19:11:36 Hey guys. I use Google Plus authentication in my app, but I am wondering what the common way of dealing with it across activities is? That is, multiple activities in my app need access to the authenticated user information from GoogleApiClient and when tying the connect/disconnect to the activity lifecycle generates alot of signin/signouts of the service. Jul 08 19:12:18 Or, is the common way to have an application level GoogleApiClient and route calls through that? Jul 08 19:16:05 for some reason, when trying to get camera info, i keep getting a Fail to get camera info runtime exception. Jul 08 19:16:15 I've got all the correct permissions Jul 08 19:17:40 How often is things like installs and crashes/ANRs updated on your deevloper console? Jul 08 19:18:11 And how are ANRs communicated? Do you have to enable this in your app? Does the user have to send a bug report or is it automatically sent? Jul 08 19:18:40 tmnt: you are like two / three weeks two late ;p Jul 08 19:19:02 *oops that was for rocketman Jul 08 19:19:03 lasserix: What do you mean? Jul 08 19:19:05 ah :) Jul 08 19:20:25 lasserix: I know, I got the idea to late. it is for learning anyway... Jul 08 19:20:39 so does not matter and I can turn it into a general football quiz app Jul 08 19:20:54 lasserix: did you try it? Id be grateful. Jul 08 19:21:00 Would I lose much by using JSON instead of Parcelable when saving data between states? Jul 08 19:21:15 rocketman: i will later, tbh i understand no history about soccer Jul 08 19:21:33 lasserix: I am 4 years early you could also say :) Jul 08 19:21:35 to answer my own question, I found a topic on SO about it: http://stackoverflow.com/questions/22368520/how-to-correctly-use-google-plus-sign-in-with-multiple-activities/ Jul 08 19:21:42 if i set a shared preference using one context, and then i run getDefaultSharedPreferences with another context, will i get original preference? Jul 08 19:21:58 tmnt, there is no correct use for google plus :P Jul 08 19:22:20 whomp: Hah, yeah I'm starting to notice... Jul 08 19:29:20 rocketman: heh yeah Jul 08 19:39:41 bra vs ger! Jul 08 19:43:37 gdrc: first test your football knowledge with: https://play.google.com/store/apps/details?id=com.sj.worldcupquiz Jul 08 19:44:08 I don't play with my phone / tablet Jul 08 19:52:36 where is the hprof tool located in the sdk? what do I need to download? Jul 08 19:56:48 its in like tools/ Jul 08 20:11:19 hey guys, how do I hire a top droid dev for a consulting gig? and I mean a gig, just laying down the correct architecture to sync an app's DB with a restful json api. Jul 08 20:18:12 Sounds more of a technical lead job Jul 08 20:23:01 anybody messed with kitkat's screenrecord utility? Jul 08 20:24:20 hello everyone. Jul 08 20:24:37 if all actions default to action overflow, is android:showAsAction="never" necessary for actions i WANT to leave in the overflow? Jul 08 20:26:47 Yo Jul 08 20:26:52 Wassup? Jul 08 20:29:52 I am following a book I was reccomended. Jul 08 20:30:15 And now it looks like this book has led me to copy and pasting some code which is beginning to look like a dynamic android game framework i can simply use if I can understand how it functions. Jul 08 20:30:21 Uhm so really pretty soon I will not even be "coding in android" Jul 08 20:30:31 I will be coding my game inside a framework made to handle game development Jul 08 20:30:34 This is very very cool. Jul 08 20:30:46 I am a little confused to how most of it works still., but reading onward I am sure it explains more in depth. Jul 08 20:30:46 that's nice Jul 08 20:30:49 it is very nice Jul 08 20:30:50 Uhm Jul 08 20:30:53 and just by following the examples. Jul 08 20:31:00 I am actually learning and understanding some of what is going on Jul 08 20:31:22 because all I really need for the game is a way to type the code in and add functionalities... Jul 08 20:31:38 I wish I had had had a positive experience like that one wiht a coding book Jul 08 20:31:54 it is so much easier than digging through online documentations.. Jul 08 20:32:00 and trying to comprehend it Jul 08 20:32:17 mostly becuase.. it provides working code that works together which I can comprehend why it works together. Jul 08 20:32:34 yeah, I hear that Jul 08 20:32:40 uhm and a big part of it to is the getting comfortable part. At no point have i been emotionally distressed trying to comprehend anything. Jul 08 20:32:46 Recyclerview and Android L are driving me nuts Jul 08 20:32:51 normally uhm when leanring I find myself throwing my arms up in the air. Jul 08 20:32:59 that has not happened once though o.o Jul 08 20:33:33 is that what you do when the drop happens? Jul 08 20:34:36 How to you find out if your android device is mako, flo, grouper etc..? https://source.android.com/source/building-devices.html Jul 08 20:34:50 Well what device is it? Jul 08 20:35:29 Ankhwatcher samsumg g4 sgh-i337 Jul 08 20:36:06 pEYEd: is it the Google Play Edition? Jul 08 20:37:23 pEYEd, Ankhwatcher That’s the AT&T S4. Jul 08 20:37:57 Ankhwatcher play store edition I guess. Jul 08 20:38:04 jfpoole yes, at&t Jul 08 20:38:57 pEYEd: If it’s not a Nexus device you can’t build Android and install it on the device. Jul 08 20:39:06 http://wiki.cyanogenmod.org/w/Devices#vendor="Samsung"; Jul 08 20:39:07 Even the Google Play Edition of the S4 contains Samsung-proprietary code. Jul 08 20:39:49 you can find your devices codename here (it's the grey text) but jfpoole is right Jul 08 20:40:28 I think you can find it in the devices *about* somewhere too Jul 08 20:40:29 How can I use gradle to add permission SET_ANIMATION_SCALE when i'm doing a debug build? Jul 08 20:40:35 Ankhwatcher can you at least swap out the kernel? Jul 08 20:41:12 explodes: using resource merging! Jul 08 20:41:30 pEYEd: no idea Jul 08 20:41:56 Ankhwatcher: k so if I create a 2nd AndroidManifest it will merge? Jul 08 20:42:03 explodes: http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger Jul 08 20:42:21 AFAIK most devices don’t have codenames (e.g., “flo”, “grouper”, etc). Jul 08 20:42:29 Most just have a model number (e.g., SGH-I337). Jul 08 20:42:41 Ankhwatcher so my phone is none on the list I gather? Jul 08 20:42:51 from the first url I sent you? Jul 08 20:43:12 jfpoole: every device has a codename, some codenames are model numbers Jul 08 20:43:30 pEYEd: exactly, those are just nexus devices as jfpoole said Jul 08 20:43:52 Thank you! Jul 08 20:44:27 pEYEd: you're welcome Jul 08 20:49:11 Is there a way to detect if a wear device is connected from another app? Jul 08 20:49:39 (official way I mean, otherwise I'll have to read the notification that the Android Wear app posts) Jul 08 20:52:54 I am trying to analyze my app with hprof. If I have a static object shouldnt i be able fond that easily? Jul 08 20:56:47 the retained heap 443000, that is 0.44MB then? Jul 08 20:56:51 the unit is byte? Jul 08 20:57:02 how do i adjust the size of a compound drawable? Jul 08 21:05:51 Afzal: screw around with Bluetooth and system level broadcasts Jul 08 21:06:10 That pebble locker app works with other devices so there must be something Jul 08 21:06:50 Ankhwatcher, I'm checking if GoogleApiClient has a way, remembered that there was something about getConnectedNodes Jul 08 21:07:10 Maybe pebble has a library to check for connected pebbles? Jul 08 21:08:00 thanks though :) Jul 08 21:08:48 Afzal: http://stackoverflow.com/questions/10078051/detect-bluetooth-connection-android-sdk-ics Jul 08 21:09:24 see: system level broadcast for connection Jul 08 21:09:59 Ankhwatcher, yes, saw that but you would only get broadcast if the connection was made after your app registered the receivers Jul 08 21:10:23 In this case, the Android wear app is already connected to the watch before my app is even starter Jul 08 21:10:25 started* Jul 08 21:15:58 Samsungs financials are interesting Jul 08 21:16:15 they say that phablets are cutting into the 7-8" tablet sales Jul 08 21:16:24 http://blogs.wsj.com/digits/2014/07/07/samsung-braces-for-earnings-pain-speaks-up/ Jul 08 21:16:33 i still don't get phablets :S Jul 08 21:18:51 is there a good way to try to figure otu how much RAM a parse takes? can this be logged? I mean the final JSON structure takes 0.5MB but maybe during parsing more RAM is used...? Jul 08 21:19:19 A JSOn parse(obv) can it somehow be calculated if you know roughly how the jsonparser works, I guess it can= Jul 08 21:20:34 how is it going bankai_au Jul 08 21:20:55 fantastic, yourself ? Jul 08 21:21:19 Jake just got a vaccination, blood work, and EKG today. Hope the EKG results are OK Jul 08 21:21:46 did you break him ? Jul 08 21:22:15 he's an old pooch, gotta check the ticker - had a slight arrhythmia Jul 08 21:22:25 okay I am going out to eat. Jul 08 21:22:43 RedEyedGirl bring back some pizza ? thanks :) Jul 08 21:23:17 anything with bacon Jul 08 21:23:32 she got red eyes Jul 08 21:23:37 cheeki breeki iv damke Jul 08 21:23:37 I am going to eat chinese Jul 08 21:23:41 nice Jul 08 21:23:45 I just ate turkish Jul 08 21:24:16 in a few weeks maybe, I may need someone to help me through the more complex things on android since right now I am doing basic game dev and learning using what is essentially a "training wheels" framework Jul 08 21:24:30 or another book o.o Jul 08 21:24:32 heehee Jul 08 21:24:40 I will eat through this book and then eat through five more Jul 08 21:24:41 and know everything. Jul 08 21:24:51 no one ever know every thing Jul 08 21:24:55 :3 Jul 08 21:25:02 later~ Jul 08 21:25:06 enjoy your chinese Jul 08 21:25:16 ni hao Jul 08 21:25:21 kurwa Jul 08 21:26:24 I will make a game soon Jul 08 21:26:49 even a simple game is complex to make Jul 08 21:27:28 unless it is just a text game with no movement Jul 08 21:27:36 $ hey guys, any consulting gun for hire in the channel? want to sync an app's DB with a restful json api so the app can work offline, please text me in private. $ Jul 08 21:31:49 thejamespinto: topic Jul 08 21:32:12 bankai_au: oh sorry Jul 08 21:32:58 bankai_au: it's really just a gig I was looking for though Jul 08 21:34:27 10k (AUD) and i'll do it for you Jul 08 21:35:40 I am creating timepickerdialog runtime. I see that in nexus 4 there is only done button instead of Set and Cancel buttons. I am trying to manually set the buttons but I am not able to access timepicker from the timepickerdialog. Can someone tell me how to access timepicker from timepickerdialog Jul 08 21:36:08 I cannot figure out how to set a permission used only during testing Jul 08 21:37:05 I have been messing with instrumentation tests for too long Jul 08 21:37:11 android testing fkn sucks Jul 08 21:49:58 explodes, there was something about that in this year's I/O Jul 08 22:06:53 https://developer.android.com/about/dashboards/index.html#Platform Jul 08 22:06:55 neat Jul 08 22:07:15 17,9% on KitKat already Jul 08 22:07:53 So I need to do my JSON-parsing (108kb and more in the future) in an AsyncTask (or at least not on the main thread). I have 1.SetupFragment, 2.nameFragment, 3.GameFragment. I parse in gamefragment but how would you do it instead? Create a LoadFragment where you show a progressbar and load in an AsyncTask and then do a FragmentTransaction when it is finished? Jul 08 22:09:39 kakazza hm, kitkat came out oct 2013; almost a year to get to 17% is kinda depressing Jul 08 22:09:55 rocketman: no idea what any of that meant, but does the user need to know data is being processed? Jul 08 22:11:08 g00s_: i did some master fuckery yesterday with my rx stuff. created this massive blocking observer, but i have so many observers and subjects lying around i need to do some fishing :( Jul 08 22:11:16 is it just me or does RecyclerView suck? Jul 08 22:12:20 bankai_au :O yeah sometimes when things go wrong with rx, its not obvious Jul 08 22:12:29 more from the concurrency part Jul 08 22:12:53 bankai_au: if it actually takes some times I guess it would be good? Jul 08 22:15:45 I mean right now I do I/O and parsing of 108kb of JSON on the main thread and I have been told this is really bad so I want to do it in an AsyncTask Jul 08 22:16:27 (mattblang) crud, I forgot your name. message me if you see this Jul 08 22:17:17 how could you forget my name? Jul 08 22:21:47 g00s_: 9 months, but ok. It's good for Android, I feel like API 18 took a lot longer. Jul 08 22:31:54 There is a way to add data to a listview row that is already created? Jul 08 22:32:09 I mean add another view inside the rows view Jul 08 22:33:10 Birk you can't modify the structure of a view Jul 08 22:33:20 you can show or hide a view that exists in its structure Jul 08 22:34:25 g00s_: Actually I need to add another view. Because I have a chat screen, and I want to group messages from same user Jul 08 22:34:57 Birk hmm, i see, so its kinda threaded Jul 08 22:35:09 So I Jul 08 22:35:58 So I'm trying to compile and run a program in android-studio, I get "Edit configuration" screen, where I have to specify a module, but the list of modules is empty... How can I get modules in that list? Jul 08 22:36:21 Birk i guess then, there are a few options. your adapter can return that you have 2 view types. one would be the header / first row of the thread - the person, and the second would be the things he says that are appended Jul 08 22:36:54 you could then just return the correct view type, and modify the model accordingly, call onDatasetChanged Jul 08 22:38:24 g00s_: Will try that Jul 08 22:38:27 Thanks! Jul 08 22:39:16 from where do you import URL used for AsyncTask? Normally eclipse gives suggestions... Jul 08 22:52:11 how would I pass an Acitivity/Context to an AsyncTask? Jul 08 22:55:23 rocketman you shouldn;t Jul 08 22:55:27 why do you need it? Jul 08 22:55:30 anyone here use socialauth-android to post updates on Facebook? Jul 08 22:55:54 and other social networks, too, but for now I"m starting with FB Jul 08 23:00:41 rocketman: just import URL normally, an easy way to do it if eclipse is giving you trouble just do like void foo() { URL url; } then import URL then delete foo Jul 08 23:01:49 rocketman: if you pass context into async task or another non-ui thread, either use a weakreference to reference it or make sure your thread execution interrupts and finishes lest you leak the context Jul 08 23:02:01 lasserix: nice trick, why does that work? Jul 08 23:02:07 (URL url) Jul 08 23:02:39 i think it's because when you do something like MyAsyncTask extends AsyncTask the problem is first you have to import async task then url Jul 08 23:02:51 it gets confused with the composition of imports Jul 08 23:03:24 ie when it is resolving it goes resolve1[resovle2[resolve3]]] and you have to resolve them 3, 2, 1 or something like that Jul 08 23:05:44 lasserix: did you try my app btw? Jul 08 23:08:22 g00s_: still around ? Jul 08 23:09:01 So I'm trying to compile and run a program in android-studio, I get "Edit configuration" screen, where I have to specify a module, but the list of modules is empty... How can I get modules in that list? If I press F4 on the project to check the modules, I do see 4 modules... Jul 08 23:09:27 hey, has anyone tried using the L Developer Preview SDK? Jul 08 23:09:53 I'm trying to use the BluetoothLeScanner class in android.bluetooth.le, but that package doesn't seem to exist Jul 08 23:10:14 kschoice: 'edit configurations' -- is this run configs? Jul 08 23:10:53 bankai_au: yes, I specify run, then I get a screen called "edit configurations", I see there that I have to specify a module, but that list is empty Jul 08 23:11:29 only time i've seen that not list anything is when you don't have an activity in your manifest file or your build.gradle hasn't been "synced" Jul 08 23:12:19 bankai_au: Still a bit new with all this here, where can I find the manifest file? When I pressed F4 on the project file, I did get 4 modules... Jul 08 23:12:50 i don't know what that does, but the manifest is AndroidManifest.xml -- should be somewhere in your hierachy Jul 08 23:19:05 so an AsyncTask would normally use global variables to deliver results? Jul 08 23:21:13 is it possible to set a BuildConfig field for tests? Jul 08 23:21:16 with the Gradle plug-in Jul 08 23:21:27 sooooo...we can't send Parcelables to/from Wear devices? Jul 08 23:21:28 :/ Jul 08 23:21:31 come on google Jul 08 23:22:12 rocketman: not really, besides there's no such thing as a global variable technically in java Jul 08 23:22:25 rocketman: what is it you are trying to do? don't worry we are all busy and not going to rip off your code Jul 08 23:25:11 anyways it seems people seem to pass the context into the async task constructor Jul 08 23:25:25 if that is what you meant by global variables (technically it is a class field) Jul 08 23:26:48 http://stackoverflow.com/questions/24643083/android-l-developer-preview-packages-missing does anyone have any idea what's going on here? Jul 08 23:29:28 bankai_au: thanks! Jul 08 23:34:27 http://jiffy.nu/the-helix-time-picker/ <--- okay, this must be the most awesome custom widget I had seen in a long time, on *any* platform Jul 08 23:36:43 lasserix: No I meant the result. I store the result of the JSON parsing in a Question[]. So I would make that a variable in Global.java so it can be reached by the AsyncTask and the GameFragment. Jul 08 23:48:08 I have a listview, which in there there's a textview with a 9patch background Jul 08 23:48:10 chat bubble Jul 08 23:48:26 anyway, I'm doing on my TextView: padding 10 dp, but the padding shows bad Jul 08 23:48:33 the bottom doesn't scale Jul 08 23:48:53 so the text goes 10dp down from top, from left, but not from bottom Jul 08 23:49:02 am I missing something? Jul 08 23:51:29 rocketman hmm seems like you are bending over backwards to do something that should be much simpler Jul 08 23:51:55 you parse a json response in your async task that your gamefragment uses? Jul 08 23:54:49 l8: show a pic, also on your 9patch do you set your padding already? Jul 08 23:55:03 i'd use the 9patch padding Jul 08 23:56:53 canvs2321, how do you do 9patch padding? Jul 08 23:57:16 rocketman: maybe this will help you: http://pastebin.com/NN8Fj1G7 Jul 08 23:57:20 though I'm not sure you're meaning what I'm meaning Jul 08 23:57:22 it's the right and bottom Jul 08 23:57:39 left&top of ninepatch are stretch, right&bottom are padding Jul 08 23:58:12 how quickly can I expect packets to be recieved on any given android device? through wireless and not 3g/4g. if I make an app that uses connectivity should I make sure not to overload the wireless data by trying to reduce the amount of packets sent a second? Jul 08 23:58:36 canvs2321, hmm Jul 08 23:58:38 uhm and , not that i've gotten into the networking yet but do I even have control over the frequency data is sent? Jul 08 23:58:44 well one thing for sure Jul 08 23:58:46 So the Google Play turnbased API, anyone used it? I would need my own server to right? If I would like to have the questions for my quiz app in database online (in case storing and parsing them on the phone starts being a problem when the nbr of questions grow) then I cannot store them on the game server right? Jul 08 23:58:54 setting padding from xml/code doesn't do any padding Jul 08 23:59:04 except for left & right Jul 08 23:59:13 use your ninepatch, post the ninepatch Jul 08 23:59:29 one sec Jul 08 23:59:31 or just leave the right&bottom without patches, and set it within your xml Jul 09 00:00:19 canvs2321, what does dot mean and what does line mean? Jul 09 00:00:24 my designer did the 9patch Jul 09 00:00:41 basically there's two dots on the left, and the top Jul 09 00:00:48 and an line on the bottom and the right Jul 09 00:01:10 it stretches where the top&left intersect, and the line on bottom and right if full length of image mean no padding Jul 09 00:01:26 hmm Jul 09 00:01:30 so switch the positions? Jul 09 00:01:37 right&bottom if you remove the outer most dots it'll start adding padding Jul 09 00:02:00 no, just change the right and bottom, it looks like a line, but they are square cells 1px in size Jul 09 00:02:16 hold shift and click in the draw9patch tool Jul 09 00:02:45 but also, having them full, setting padding manually with the xml should work Jul 09 00:02:59 so there must be something else, but without screen shots, i'm just guessing Jul 09 00:05:26 sometimes too, if setting paddings&margins there can be conflicts if not correctly done Jul 09 00:06:06 lasserix: thanks a lot! Jul 09 00:06:14 for the AsyncTask Jul 09 00:07:39 canvs2321, http://picpaste.com/bubble_gray.9-gxJJKciR.png Jul 09 00:07:41 its the 9patch Jul 09 00:08:27 padding looks set good, i wouldn't add it in the xml Jul 09 00:08:43 I need even more padding :) Jul 09 00:08:50 spoik? Jul 09 00:09:03 then edit the pic, remove some cells from the right and or bottom Jul 09 00:09:16 you want more padding on left&right or top&bottom? Jul 09 00:09:21 both Jul 09 00:09:36 but why does padding in xml definition doesn't work currectly Jul 09 00:09:44 do you have the sdk available? you can open draw9patch and edit the file Jul 09 00:10:15 I have Jul 09 00:10:15 you are counteracting the padding set in the 9patch, so not sure who takes precendence(sp?) Jul 09 00:10:15 but I'm kind of really bad at imaging Jul 09 00:10:17 it's just squares Jul 09 00:10:22 I am afraid :( Jul 09 00:10:26 hahah Jul 09 00:10:30 hmm Jul 09 00:10:33 i'll adjust the image you posted Jul 09 00:10:39 no Jul 09 00:10:40 its ok Jul 09 00:10:46 I'll make the designer do it tomorrow Jul 09 00:10:51 but thanks for the willing :) Jul 09 00:11:05 how much padding? Jul 09 00:11:20 No Jul 09 00:11:22 do some code! Jul 09 00:11:26 for yourself Jul 09 00:11:31 don't help me with my damn images Jul 09 00:11:38 it takes seconds to change it Jul 09 00:11:55 well I thought of somewhere 20dp? Jul 09 00:12:10 so the text will have space for breathing Jul 09 00:12:25 currently its just all "compressed" Jul 09 00:13:07 http://picpaste.com/bubble_gray.9-00BK1ds8.png Jul 09 00:13:28 i removed lines from right and bottom, don't set any padding/margins in xml Jul 09 00:14:29 hmm I'll try now Jul 09 00:15:26 canvs2321, you're wizard Jul 09 00:15:28 thanks! Jul 09 00:16:07 haha, more can be done, i didn't measure anything just removed some blocks, so just tweak it Jul 09 00:16:55 I'll send this new image to the designer so he'll change the other bubble too Jul 09 00:17:46 or I'll try myself now Jul 09 00:17:54 sounds good, it's a pretty simple procedure, if you are akin to learning, especially being a developer you should know 9patch Jul 09 00:17:59 probably will ruin it Jul 09 00:18:00 :p Jul 09 00:18:15 yeah I'm a fake android developer Jul 09 00:18:17 there ya go, the draw9patch tool is pretty simple, can even use gimp or ps Jul 09 00:18:34 I'm opening gimp once a year Jul 09 00:18:45 it just mainly adds a 1px wide border around your png, that is used for stretching&padding Jul 09 00:18:47 for adjusting some pictures I take or something Jul 09 00:18:58 think you can do it in AS or eclipse possible too Jul 09 00:19:09 really? Jul 09 00:19:27 I'm checking now the change you've did Jul 09 00:19:42 you've just removed the line on the top, right? Jul 09 00:20:47 i removed blocks from the right line and bottom line Jul 09 00:20:54 oh yeah I see that Jul 09 00:20:58 draw9patch is cool Jul 09 00:21:00 in the draw9patch tool holding shift while clicking a cell removes the selection Jul 09 00:21:12 yea it is nice Jul 09 00:21:44 just play with it, and on right side it'll show previews of the clippings for stretch, not sure you can add text to see padding Jul 09 00:22:40 ah shit, the show content checkbox shows padding :) Jul 09 00:22:57 i've used that tool a bunch but never clicked that haha, just used the guides with mouse over Jul 09 00:23:51 canvs2321, did it Jul 09 00:23:57 thanks again for the help! Jul 09 00:24:00 sweet, np Jul 09 00:30:10 well I am mostly done cleaning for now it is too hot >.< Jul 09 00:32:27 how was your chinese? Jul 09 00:36:58 it was good then I got home and I had to clean up a lot. Jul 09 00:37:33 I just want to develop programs.. stupid house cleaning Uhm.. i had to because the landlord was coming. it was not messy but it was not.. fully.. well presentable. uhm it is still a little cluttered to. Jul 09 00:37:43 I feel that some of the clutter makes it slightly productive.. though to be fair some of it was not pleasant. ;) Jul 09 00:39:25 I tidied my desk this morning. much better without 20 cigarette packs all over it Jul 09 00:39:34 and tobbacco everywhere Jul 09 00:48:28 hmm Jul 09 00:48:33 a clean desk is a good start.. Jul 09 00:49:00 I have to go do more chores . Stupid dishes. They are practically calling me. Uhm.. it really is important becuase other people did their share now i am mostly obligated to help out. >.< Jul 09 00:51:29 ahahahahhaha Jul 09 00:52:26 stupid dishes, demanding to be done... I did them not two weeks ago! Jul 09 00:53:02 this is why I like takeaways Jul 09 00:53:11 you just throw it all away at the end Jul 09 00:53:15 indeed Jul 09 01:08:59 hehe http://i.imgur.com/FGKc9Vs.jpg Jul 09 01:10:41 hey bankai_au back Jul 09 01:10:58 played game of fetch with the 'ol Jakester Jul 09 01:13:04 who won ? Jul 09 01:13:30 Jake :) Jul 09 01:28:25 Leeds: ... yesterday, I cleaned a sink that I deemed "toxic biohazard spill" by the end Jul 09 01:28:43 someone fragmented Android in your sink? Jul 09 01:28:58 dat fragmentation Jul 09 01:29:05 I'm still thinking of dumping chlorine trifluoride or a lot of hydrogen peroxide in it and dropping a match Jul 09 01:29:21 lol, no, just referring to your "did them not two weeks ago" :D Jul 09 01:31:09 we do throw acid down our sink every now and again Jul 09 01:33:19 pipes? Jul 09 01:33:57 lemons and vinegar count? Jul 09 01:34:00 that is, throw acid, not drop acid Jul 09 01:44:24 Does onStartCommand for a service get called everytime startService is called? Jul 09 01:45:41 Think you'll get a lot more mileage out of dropping than throwing ;p Jul 09 01:47:04 lasserix, yes Jul 09 01:53:15 ? Jul 09 01:53:45 JakeWharton https://github.com/jug6ernaut/debugdrawer Jul 09 01:55:05 Awesome! Jul 09 02:01:04 ha Jul 09 02:01:07 that is awesome Jul 09 02:01:22 I was considering adding a debug drawer to my debug buildType :-o Jul 09 02:01:44 Solid, jug6ernaut Jul 09 02:02:27 DallasG thank JakeWharton, all i did was apply his work to be more versatile Jul 09 02:02:47 the lib needs a lot of work still, but it works. Need to get it on maven central tho Jul 09 02:08:15 i intentionally didn't develop a lib because we evolve our drawer rapidly Jul 09 02:08:24 or at least i evolve the one in my app all the time Jul 09 02:08:54 not saying there's anything against it being a library, I just didn't want the overhead of a library while we were trying to figure out what the drawer was going to be Jul 09 02:11:12 makes sense Jul 09 02:11:37 it's pretty stable now though Jul 09 02:13:52 originally wanted it for the same use as in u2020, changing out endpoints, but figured throw it in a lib so i could use it in other projects Jul 09 02:14:06 so have it where u can configure it easily Jul 09 02:14:13 I need help. Jul 09 02:14:18 I have an error in my input interface: Jul 09 02:14:19 Description Resource Path Location Type Jul 09 02:14:19 The declared package "" does not match the expected package "com.example.test2" Input.java /test2/src/com/example/test2 line 1 Java Problem Jul 09 02:14:26 gonna change up some stuff in it, but not much. Jul 09 02:14:41 I do not know why this is like this.. hmmm I tried putting the package line into the source file. Jul 09 02:14:45 Do I need to pastebin the whole file? Jul 09 02:15:09 i think RedEyedGirl has ADD Jul 09 02:15:29 lol Jul 09 02:15:39 RedEyedGirl Jul 09 02:15:55 u don't have a package declared for ur class file Jul 09 02:18:54 what does a proper pacakge decleration look like Jul 09 02:24:43 package com.example.pack; Jul 09 02:39:21 http://pastebin.com/5nZbVWHD Jul 09 02:39:42 Uhm okay. That did not work. Here is the code for this. Maybe someone can easily spot what's wrong. It errors on the import java.utils line Jul 09 02:41:08 sup all Jul 09 02:41:49 svn ? Jul 09 02:42:10 RedEyedGirl: package goes first Jul 09 02:42:14 hello friends, whats the best way of determining that the device that is running my specific class is indeed an android device Jul 09 02:42:27 hey guys my boss is looking to get developped an android app. And we are wondering how much it cost annually for a developer account? Jul 09 02:43:17 chriys: $25 one time fee Jul 09 02:43:17 BigBawb: "Dalvik".equals(System.getProperty("java.vm.name")) Jul 09 02:43:30 I tried that to but I will try it again. Jul 09 02:43:32 JakeWharton: and there's no fee when publishing ? Jul 09 02:43:33 wow thank you friend Jul 09 02:43:42 chriys: none Jul 09 02:44:08 Oh sounds good and cheaper than apple Jul 09 02:44:32 don't have to use a mac either ;) Jul 09 02:45:28 Also what is the best way to retrieve a default storage file for my application Jul 09 02:46:51 I see what happened... Uhm. the errors did not update until I tried to build the project again. Jul 09 02:51:39 JakeWharton: thx. How much time you think it will take for an average PHP & jQuery developer to learn Android? Jul 09 02:51:53 PHP … multiply by 10 Jul 09 02:54:27 g00s_: really? Jul 09 02:54:51 chriys i have no idea :) Jul 09 02:55:10 how long it takes people to learn thngs … it all depends on the person Jul 09 02:56:10 and how close it is to other knowledge already obtained Jul 09 02:58:19 What is the best way to retrieve a default storage file for my application on the android device **** ENDING LOGGING AT Wed Jul 09 02:59:58 2014