**** BEGIN LOGGING AT Tue Jan 07 02:59:58 2014 Jan 07 03:00:42 OH thank you wabz and alexfu, helped a bunch. Jan 07 03:00:54 I'll be back with more annoyingly basic questions a bit later, probably :) Jan 07 03:02:16 alexfu, or wabz, any chance I can PM with you? I have some concept questions that I don't want to spam the main chat with Jan 07 03:03:05 Assume I want to do 24sp to several things.. (in the style of course_ Jan 07 03:03:29 To do it, I can use only inheritance ? Jan 07 03:04:21 Doing my names of the styles, longer and longer, defaulttextsixe.defaultfoo.defaultbar.customstylesforxview [...] ? Jan 07 03:08:22 ? Jan 07 03:13:07 hmm, does drawerlayout only support left/right? can I do top/bottom? Jan 07 03:15:19 I guess SimonVT's supports it, though, hmm Jan 07 03:17:34 why do my image views change size between setting wrap_content and using the image file's dimensions? Jan 07 03:19:30 hello anyone used green dao ? Jan 07 03:25:13 how do I access a res/raw resource by string? Jan 07 03:26:24 use Resources Jan 07 03:26:37 context.getResources().openRawResource(resource) Jan 07 03:27:33 I don't have the id.. Jan 07 03:27:41 my program is in c++ Jan 07 03:28:01 there's always a but/if/catch, isn't there? Jan 07 03:29:09 getResources.getIdentifier doesn't seems to always fail.. hmmm Jan 07 03:29:14 I'll try assets I guess Jan 07 03:29:46 I'm just trying to access a sound file from c++... uhggggg Jan 07 03:32:25 what's wrong with getIdentifier Jan 07 03:32:35 it works fine Jan 07 03:34:20 wish I could debug mixed c++ java code Jan 07 03:37:21 you can use ndk-gdb... Jan 07 03:37:39 can't you use the java debugger at the same time? Jan 07 03:41:36 once i have my separate RGB components for a color, does this look right for creating it again with an alpha of 255? _color = 0xFF000000 | ((r << 16) + (g << 8) + b); Jan 07 03:42:04 sure Jan 07 03:42:15 that's (g << 8 ) for those using colloquoy Jan 07 03:42:24 stupid smilies Jan 07 03:42:25 thanks Jan 07 03:43:09 i don't get it... i take the original RGB values, add them to a percentage of themselves, and end up with what looks to be a darker shade instead of a lighter tint Jan 07 03:43:49 can you post the whole think in pastebin? Jan 07 03:44:04 *thing Jan 07 03:46:53 in a second, i think i'm overlooking something Jan 07 03:46:57 some numbers are going past 255 Jan 07 03:48:49 i got it Jan 07 03:49:01 when you set a color to > 255 it must wrap around and use the lower value Jan 07 03:49:22 i'm porting this from ios, where you use a float 0-1 instead, and ios must just revert to 1 automatically and android doesn't revert to 255 Jan 07 03:49:46 surley > 255 just overflows to the next channel? Jan 07 03:50:06 https://developer.android.com/reference/android/graphics/Color.html#rgb(int, int, int) Jan 07 03:50:11 i think 260 would just go to 4 Jan 07 03:50:15 that should do bounds for you Jan 07 03:50:19 because the results i was getitng are much darker Jan 07 03:50:21 use a lower value? why not just Math.min(255, color) Jan 07 03:50:50 wasn't aware of that method Jan 07 03:50:56 whoops Jan 07 03:51:00 wouldn' it be Math.max if i don't want to go over 255? Jan 07 03:51:02 actually, it says it doesn't Jan 07 03:51:10 no, Math.max(0, 255) = ??? Jan 07 03:51:15 min returns the lowest number Jan 07 03:51:21 oh ok Jan 07 03:51:23 or, in your case, Math.max(256, 3123412343124) Jan 07 03:52:18 and yes, 260 would overflow Jan 07 03:53:18 Math.min(255, r/g/b) works perfectly Jan 07 03:53:22 i didn't know about that method Jan 07 03:53:55 there's probably a pile of things i do the long way that java does automatically Jan 07 03:55:58 everything in java is the long way... Jan 07 04:03:09 maybe, i don't know Jan 07 04:15:33 Hello, I have a non-code question - so I'm just looking for general ideas Jan 07 04:15:47 I have an activity, with some text and 2 buttons Jan 07 04:16:22 If button 1 is pressed, the user will be prompted to take a photo. If button 2 is pressed, different text will be loaded Jan 07 04:16:57 What is the best way to do this? Like, what the camera is loaded where is it in respect to the main activity ... is it a subactivity? Jan 07 04:17:44 https://developer.android.com/training/camera/photobasics.html Jan 07 04:18:07 Started like that it's a whole new activity in a whole new VM Jan 07 04:18:55 thank you Jan 07 04:18:59 that's the easiest way to do it, setting it up properly using https://developer.android.com/reference/android/hardware/Camera.html is a real pain Jan 07 04:20:55 in eclipse is it possible to simulate a camera? Jan 07 04:21:11 eclipse / AVD I mean Jan 07 04:21:38 I don't have a web cam or anything installed, just wondering if I can have a static image set to be the simulation of the camera snap for example? Jan 07 04:50:06 hello can somebody help me setup android studio Jan 07 04:50:23 i'm trying to start a new project, and it never completes Jan 07 04:51:57 what never completes? Jan 07 04:52:39 no idea Jan 07 04:52:59 using eclipse because i don't see a reason to use anything else Jan 07 04:53:16 the gradle build Jan 07 04:53:17 well you'd use IJ coz i use it and i'm awesome, so ... Jan 07 04:53:29 hephaestus_rg: what's the error ? Jan 07 04:54:04 Ij? Jan 07 04:54:04 i can't reproduce that character Jan 07 04:54:04 no error message, it just shows the loading indicator for ever Jan 07 04:54:39 are you behind a proxy ? Jan 07 04:54:55 and then application not responding @bankai_: no proxy Jan 07 04:55:11 oh gawd you're a tweeter aren't you ? Jan 07 04:55:15 (osx 10.6.8 btw) Jan 07 04:55:43 relevency? Jan 07 04:56:00 you don't use @ on IRC, it's weird... and doesn't set of my flasher :P Jan 07 04:56:36 oh lol, i started using IRc with kiwi irc (web client) and it worked with @ (or maybe just then name by itslef too?) Jan 07 04:56:51 did it create teh gradle build file? you can run gradle from CLI to see Jan 07 04:57:09 sure what's the command Jan 07 04:58:03 gradle build Jan 07 04:58:34 hmm seems like gradle wasn't added to the CLI Jan 07 04:58:57 theres a gradlew file i can try to run, but it says "permission denied" Jan 07 05:05:16 seems like i need to do a chmod, but not sure what specifically Jan 07 05:15:17 i Am using a 32 bit osx so maybe that's an issue? Jan 07 05:17:04 JakeWharton: hey, I am trying to build hugo, because I want to test some code that I added, but is giving me :hugo-runtime:androidJavadocs FAILED Jan 07 05:17:04 chmod 755 gradlew Jan 07 05:17:09 it should have been to begin with Jan 07 05:17:30 rallat: hmm... that's it? Jan 07 05:17:35 i wonder if it's trying to sign the javadocs Jan 07 05:17:43 JakeWharton: yep Jan 07 05:17:56 :hugo-runtime:androidJavadocs Jan 07 05:17:57 import android.os.Looper; Jan 07 05:17:57 run with --stacktrace and --info or something Jan 07 05:18:13 let me copy to a gist Jan 07 05:18:24 but yes the error is related to javadocs Jan 07 05:19:12 thanks pfn: seems to be doing something now Jan 07 05:19:27 JakeWharton: https://gist.github.com/rallat/8294931 Jan 07 05:19:28 build successful Jan 07 05:19:31 Do you have any idea? Jan 07 05:20:12 rallat: looks like a problem with the javadoc tool. what JDK? Jan 07 05:20:26 are you using the gradle wrapper? Jan 07 05:20:38 nop just gradle Jan 07 05:21:03 try with the wrapper (./gradlew) Jan 07 05:21:30 jdk 1.6 Jan 07 05:21:34 ok Jan 07 05:21:44 hmm it might require JDK 7 Jan 07 05:21:59 same Jan 07 05:22:10 seems like gradle doesn't work from android studio Jan 07 05:22:16 is there some way to stop it Jan 07 05:22:29 i'm not sure if this exists or not... but if I have a bunch of thumbnails in a row (say 20 thumbnails, that would need to be left/right scrolled through)... is there an existing control to display them? Jan 07 05:22:36 JakeWharton: ok, thanks I will try Jan 07 05:23:01 JakeWharton: I am working on adding an annotation in the class, reporting all the methods Jan 07 05:27:34 I just released an OpenGL ES 1.0 version of the "hello-gl2" sample app in the NDK if anyone is interested Jan 07 05:27:37 https://github.com/dennis-sheil/android-opengles1 Jan 07 05:28:37 JakeWharton: thanks jdk 7 work Jan 07 05:44:51 freenode has been kinda messed up lately (net splits) Jan 07 05:45:44 yeah Jan 07 05:45:52 time to setup new irc server? ;) Jan 07 05:45:53 kidding Jan 07 05:49:19 so if the android documentation says one thing, and another thing happens Jan 07 05:49:28 should I be reporting a bug in the documentation or the other thing? :p Jan 07 05:50:39 probably the docs Jan 07 05:51:02 uh Jan 07 05:51:12 'depends' Jan 07 05:52:00 report a bug in the docs Jan 07 06:09:09 How to make a call to setPrimaryItem() in a FragmentStatePagerAdapter Jan 07 06:09:45 I have the onitemclick listener in a fragment which displays images in a gridview. Jan 07 06:10:03 I need to pass the on item click parameters to the activity which holds the pager adapter Jan 07 06:21:05 anyone have expeirence using retrofit converters? Jan 07 06:21:08 i do Jan 07 06:21:18 im trying to use SimpleXmlConverter Jan 07 06:21:30 but cant get android studio to detect the import for some reason Jan 07 06:21:37 all the regular retrofit stuff is being imported Jan 07 06:21:46 i added `compile 'com.squareup.retrofit:retrofit-converters:1.3.0'` to my build.gradle Jan 07 06:21:57 pressed that magic sync button Jan 07 06:22:07 you are answering my questions faster than i can type them! Jan 07 06:22:12 still not picking up SimpleXmlConverter Jan 07 06:22:15 lol Jan 07 06:22:25 let me try real quick Jan 07 06:22:30 cool thx Jan 07 06:22:37 oh Jan 07 06:22:42 your dependency is wrong Jan 07 06:22:55 blame Maven and it's stupid package structure Jan 07 06:23:11 you want this guy: http://search.maven.org/#artifactdetails%7Ccom.squareup.retrofit%7Cconverter-simplexml%7C1.3.0%7Cjar Jan 07 06:23:12 ahh Jan 07 06:23:16 note the artifactId Jan 07 06:25:12 that totally fixed it thanks JakeWharton Jan 07 06:26:24 sweet Jan 07 06:27:09 JakeWharton: what do you think about android action bar? Jan 07 06:27:12 :) Jan 07 06:27:27 i think it's great for simple uses Jan 07 06:28:01 I remember we had issue centering text in ABS Jan 07 06:28:31 ActionBar.LayoutParams.gravity = Gravity.CENTER_HORIZONTAL Jan 07 06:28:45 that is andriod AB Jan 07 06:28:57 they have the exact same API Jan 07 06:31:34 with ABS you suggested that: getSupportActionBar().setCustomView(R.layout.actionbar_xml_file); Jan 07 06:31:55 except the two-arg version Jan 07 06:32:01 that take a LayoutParams Jan 07 06:32:05 and that getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); Jan 07 06:33:25 there in actionbar_xml_file I have custom font text with image on the left as home button Jan 07 06:33:55 that is most complex part of ABS use Jan 07 06:35:04 simple enough to migrate to android? Jan 07 06:37:43 Hello All, Good afternoon.. Jan 07 06:38:31 needed help.. while running app on my tablet Jan 07 06:39:19 squ: what do you mean migrate to android? Jan 07 06:39:57 JakeWharton: http://stackoverflow.com/questions/17968696/implementing-an-action-bar-absherlock-or-abcompat Jan 07 06:40:33 to appcompat-v7? i don't know Jan 07 06:40:39 you should migrate to minSdkVersion=14 Jan 07 06:40:56 there's no reason to develop new versions of your apps to support anything earlier Jan 07 06:40:58 When I run the app from eclipse to device, run_as -> android application -> directly on device.., It runs great but after closing the app and executing it on device gives error app not installed Jan 07 06:41:18 and logcat window shows permission error Jan 07 06:41:38 JakeWharton: with v ≥ 14 what is the point of abs Jan 07 06:41:46 none. get rid of it Jan 07 06:41:47 how to create an AVD and take a snapshot from the command line? This is what I do, but without success: echo no | android create avd --force -a --sdcard 512M --skin WVGA800 --name avd1 --target android-19 --abi armeabi-v7a Jan 07 06:42:15 i haven't used ABS in over a year Jan 07 06:42:28 JakeWharton: why are saying that :) waren't you developing it for, say, 2 years? Jan 07 06:42:42 then I start it in the emulator, connect to the console, do avd stop, then avd snapshot save snp1 Jan 07 06:42:43 works ok on sony phone... Jan 07 06:42:50 because there's no point in supporting <14 Jan 07 06:43:00 but then I just can't boot again with the snapshot Jan 07 06:43:32 squ: https://github.com/JakeWharton/ActionBarSherlock/commit/d56c1a58bd48440b8871864123ae8e08b9744205 Jan 07 06:44:11 initial commit 3 years ago Jan 07 06:45:11 When I run the app from eclipse to device, run_as -> android application -> directly on device.., It runs great but after closing the app and executing it on device gives error app not installed, and logcat window shows permission error.. Jan 07 06:45:39 advx_ don't need to repeat yourself Jan 07 06:45:54 ok sorry Jan 07 06:48:49 holy shit this little Intel Edison has its own app store and comes with a version of Wolfram Language + Mathematica Jan 07 06:49:21 advx_ try uninstalling Jan 07 06:49:46 g00s, hello, well did that too Jan 07 06:50:40 what could be the reason giving --E/Launcher(10799): Launcher does not have the permission to launch Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] Jan 07 06:51:04 ..W/ActivityManager(148): Permission Denial: starting Intent { act=android.intent.action.MAIN cat Jan 07 06:51:37 devise as in emu, or real phone / tablet ? Jan 07 06:52:25 and does it show up in Settings / Apps ? Jan 07 06:54:48 setPrimaryItem() on FragmentStatePagerAdapter does not get called OR not working at all. Jan 07 06:55:07 real tablet Jan 07 06:55:15 yes it shows up in Apps Jan 07 06:55:19 how exactly should one implement a list -> detail view with view pager to scroll through the data horizontally Jan 07 06:55:26 advx_ … and you can't install it Jan 07 06:55:32 i've heard of this happening a few times Jan 07 06:55:36 yes I can install it Jan 07 06:55:46 like the uid gets fucked up or something Jan 07 06:55:57 but when i click on it to execute it says ...app not installed Jan 07 06:55:58 oh, i mean can't uninstall Jan 07 06:56:07 cant run it Jan 07 06:56:16 even uninstall is possible Jan 07 06:56:23 try it on the emu, if it doesn't work there your manifest is probably messe dup Jan 07 06:56:27 muahaha Jan 07 06:56:31 also app executed in run as mode on device Jan 07 06:56:40 it works on AVD Jan 07 06:56:46 'run-as' mode ? Jan 07 06:56:48 also in a sony phone Jan 07 06:56:57 from eclipse -> run-as Jan 07 06:57:04 onto device Jan 07 06:57:09 adb run-as is special Jan 07 06:57:24 Whats a good rom for my Galaxy Note2 (n7100) im in the states using tmobile now. I want a rom thats current, stable, good featured, and has the wifi calling features tmobile provides :P. If your not sure oh well lets talk android stuff :P XD Jan 07 06:57:49 no not from adb Jan 07 06:57:59 I am developing in eclipse-adt Jan 07 06:57:59 GeekMan1222|Desk: wrong channel, plz read topic Jan 07 06:58:03 Oh oops Jan 07 06:58:06 yep just saw that Jan 07 06:58:19 yea i haven't seen eclipse in a while Jan 07 06:58:20 X| well thats embarrassing Jan 07 06:58:51 ok Jan 07 06:59:13 g00s, what is ur development tool? Jan 07 06:59:24 i'm using AS atm Jan 07 06:59:31 android studio Jan 07 06:59:37 ok Jan 07 06:59:54 I have set app permissions too.. Jan 07 07:00:02 but ide should not have anything to do with it Jan 07 07:00:39 yep, thats what i think too.. Jan 07 07:01:02 advx_ try starting it via 'am' Jan 07 07:01:06 any Ideas.. Jan 07 07:01:17 "am" ?? Jan 07 07:01:21 activity manager Jan 07 07:01:28 from device? Jan 07 07:01:32 hi all Jan 07 07:01:40 Hi thepoosh Jan 07 07:01:43 :) Jan 07 07:02:12 ok trying to restart device.. Jan 07 07:02:35 advx_ http://stackoverflow.com/questions/5494764/how-to-run-a-specific-android-app-using-terminal Jan 07 07:02:44 hello thepoosh Jan 07 07:02:58 hi hi Jan 07 07:03:02 good stuff! Jan 07 07:03:04 thanks.. Jan 07 07:03:30 g00s: are you a freelance? Jan 07 07:04:06 hm, not really Jan 07 07:04:23 does your company do iOS apps too? Jan 07 07:04:29 (cross platform) Jan 07 07:04:44 i'm dabbling in ios, i dont work for a company Jan 07 07:05:09 i think i've dabbled since 2009; but i need to update my mbp to 10.9 to install the newer xcode Jan 07 07:05:20 damn it gotta do that soon Jan 07 07:06:10 i'm getting bored with mobile in general though; i'd like to go more into embedded again or in to applied math Jan 07 07:06:25 g00s, good news it works from adb shell am Jan 07 07:06:51 hm, so your main activity may have a messed up manifest entry then Jan 07 07:07:03 maybe Jan 07 07:07:05 >.> Jan 07 07:07:13 ok Jan 07 07:07:26 any thing specific where I have to look for... Jan 07 07:07:38 g00s: I'm just frustrated, since I work in a startup and it seems like the iOS team are getting more funds even though Android has more users Jan 07 07:07:41 nvm Jan 07 07:07:58 maybe they make more money Jan 07 07:07:59 let me open AndroidManifest.xml Jan 07 07:08:44 g00s, should I paste that file here? Jan 07 07:08:57 sure, maybe other can help too (in pastebin) Jan 07 07:09:14 oops I dont know how to use pastebin... Jan 07 07:09:36 may be its blocked in our network Jan 07 07:10:14 g00s: what do you read for maths? Jan 07 07:10:32 squ i'm reading a stats book now Jan 07 07:10:39 hold on Jan 07 07:11:00 3 types of lies: lies, damn lies & statistics Jan 07 07:11:05 g00s, was not able to kill but had to force stop the app Jan 07 07:11:28 me and maths don't get along well Jan 07 07:11:31 g00s: maybe then you are interested in statistics package, http://www.freshports.org/math/unixstat/ Jan 07 07:11:43 it has plenty of different command line tools, also draws graphs Jan 07 07:11:52 meh, just learn R :) Jan 07 07:12:19 r ftw Jan 07 07:12:19 Leeds: just stop announcing new language every few months :) Jan 07 07:12:21 http://www.amazon.com/Introduction-Statistical-Learning-Applications-Statistics/dp/1461471370 Jan 07 07:12:31 R is old Jan 07 07:12:43 R, Python, Julia, Clohure ;) Jan 07 07:12:46 *Clojure Jan 07 07:12:53 R has been around for 20 years Jan 07 07:14:28 g00s: try everything yourself will add more fun in learning :) Jan 07 07:14:41 i'm also interested in IoT, Smart Planet, Citizen Scientist, etc. Jan 07 07:14:54 what are these? Jan 07 07:15:23 just a collection of buzzwords or ... Jan 07 07:15:54 a means for regular people to keep govt and business in check by eliminating information assymetry Jan 07 07:16:35 govt is people :) Jan 07 07:16:54 soylent green is people! Jan 07 07:17:22 so for example, crowdsourced water quality monitoring, air quality, etc Jan 07 07:17:37 i know for sure, my local govt isn't doing its job with air quality monitoring Jan 07 07:17:45 there is already stuff like the Air Quality Egg Jan 07 07:18:00 * Nilium would eat soylent people if it was tasty Jan 07 07:18:27 g00s, does it have any thing to do with android.intent.action.MAIN?? as in "am" i am using /.MainActivity Jan 07 07:18:27 Nilium: https://campaign.soylent.me Jan 07 07:18:47 Is that the soylent packet stuff? Jan 07 07:18:52 heh, yeah. Jan 07 07:19:06 I thought it was great they actually called it soylent Jan 07 07:19:09 'Cause I want that too. Jan 07 07:19:32 i dont think the Soylent guy knows anything about nutrition. typical silicon valley, lets disrupt ! Jan 07 07:19:38 It gets people talking, so it works Jan 07 07:19:49 bacon gets people talking too Jan 07 07:20:31 what is soylent? Jan 07 07:20:43 I think the only nutrition problem is that it's made to be generic and people can't really do generic if they want to really ensure something's nutritional Jan 07 07:21:06 ?? Jan 07 07:21:17 The upside is that soylent, as a filler meal sort of thing (i.e., just need to get it over with and go back to something else) should work well Jan 07 07:21:35 translate.google.com does not know soylent :P Jan 07 07:21:42 squ: a food product from an old 70's movie. and a modern product named after it. Jan 07 07:21:46 http://en.wikipedia.org/wiki/Soylent_Green Jan 07 07:22:39 movie → food ? Jan 07 07:23:14 sometimes I'm happy I'm not american Jan 07 07:23:16 its problem is that its coming from the wrong direction entirely; a healthy diet is likely to be a high biodiversity diet; they only include a few things Jan 07 07:23:29 and some questionable stuff, like MSM Jan 07 07:23:34 its bullshit Jan 07 07:25:15 mechanically separated meat? Jan 07 07:25:27 or something else? Jan 07 07:26:24 http://en.wikipedia.org/wiki/Methylsulfonylmethane Jan 07 07:26:31 ok Jan 07 07:26:43 "Nuclear magnetic resonance (NMR) studies have demonstrated that oral doses of MSM are absorbed into the blood and cross the blood–brain barrier.[21][22]" Jan 07 07:26:54 you better know what the fuck you're doing with that stuff ;) Jan 07 07:27:59 although that was rats Jan 07 07:29:21 http://en.wikipedia.org/wiki/Sodium_fluoride Jan 07 07:29:40 check safety section, popular toothpaste component Jan 07 07:31:15 so anyhow, get your 5 food colors :) thats an easy way to get all the phytochemicals that are good for you. maybe soylent will start to come in colors: soylent red, soylent green, soylent purple, etc :) Jan 07 07:33:09 from launcher App is not running giving message app isnt installed Jan 07 07:33:20 but runs from console adb shell am Jan 07 07:36:17 also get your carnosine; why vegetarians fall apart :) Jan 07 07:36:45 bye 4 now... Jan 07 07:45:01 [A3G1S]: here man? Jan 07 08:05:36 <[A3G1S]> thepoosh Jan 07 08:05:50 i'd like a library that laundered all these fucking JSSE exceptions into some sane UI error messages Jan 07 08:27:09 [A3G1S]: sup dude? Jan 07 08:27:12 been some time! Jan 07 08:27:16 <[A3G1S]> yeah Jan 07 08:27:23 <[A3G1S]> i will be back after lunch Jan 07 08:27:27 <[A3G1S]> 30-35 min Jan 07 08:27:28 <[A3G1S]> ok ? Jan 07 08:28:13 kk Jan 07 08:28:42 i wonder if anyone really wants these dual-boot windows / android contraptions announced at CES Jan 07 08:28:59 can't imagine .. Jan 07 08:32:56 g00s: I think customers don't, and I'm pretty sure Google and Microsoft don't Jan 07 08:41:24 LEEROYYYYYYY JENKIIIIIINS!!!!!! Jan 07 08:58:50 <[A3G1S]> thepoosh yo Jan 07 08:59:31 yo yo yo Jan 07 08:59:37 what's up friend? Jan 07 09:00:00 <[A3G1S]> in office.. doing work Jan 07 09:00:03 <[A3G1S]> how about u ? Jan 07 09:00:08 <[A3G1S]> what u doing ? Jan 07 09:01:07 in the office Jan 07 09:01:11 implementing presence Jan 07 09:01:36 <[A3G1S]> haha Jan 07 09:01:49 <[A3G1S]> so what u upto these days ? Jan 07 09:03:07 implementing presence! Jan 07 09:04:45 [A3G1S]: we just closed a finance round, so working on Q1 Jan 07 09:37:49 what's the preferred way to test Fragments in Android? Jan 07 09:42:26 I'm using IDEA, trying to build a project. It uses Aviary, facebook, google-play-service, pull to referesh and touch gallery. Most of those module are using android-support-v4 in their lib folder. I've also got this jar in my lib folder. Jan 07 09:42:38 when running the project I've got com.android.dx.* Multiple dex files define Jan 07 09:49:59 storkme: android plush dull + shotgun? Jan 07 09:50:45 i see what you did Jan 07 09:51:48 the bonus is stress relief too :) Jan 07 09:52:06 Does anyone know the fastest way to seriaize a couple dozen k of hashsets? Jan 07 09:53:50 dozen k ? Jan 07 09:54:51 dozen k looks safer than 12,000 * n Jan 07 09:55:36 umm maximum of 100k size hashset Jan 07 09:55:59 but multiple hashsets ? Jan 07 09:56:06 i was using sqlite, but was wondering if anyone knows of anything faster in particular (if al ibrary or whatever) Jan 07 09:56:31 12,000 * n hashsets each having a max of 100k entries ? Jan 07 09:57:25 you could try mvstore Jan 07 09:57:26 8 hashsets, minimum hashet size 1000 maximum 100,000 Jan 07 09:58:01 i think i already recommended that, but lasserix didn't bite :) Jan 07 09:58:57 sorry g00s went over my head, been working 16 hour days for a couple weeks, finally started to relax again a little Jan 07 09:59:02 what did you say? Jan 07 09:59:18 *recomend Jan 07 09:59:35 mvstore Jan 07 10:01:12 hmm this looks intersting but i am looking for just write to disk onpause / refresh runtime memory onresume, no querying and the like Jan 07 10:01:36 But while I have your attention, was wondering did you ever see the dev bites video on the draggable list view ? Jan 07 10:01:48 in particular i was wondering about his class in the code for stable ids... Jan 07 10:02:29 http://pastebin.com/9zXDqUzc Jan 07 10:02:29 what is the point of using the hashmap for generating stable ids? Jan 07 10:02:55 *this is the source http://www.youtube.com/watch?v=_BZIvjMgH-Q Jan 07 10:03:37 no i haven't seen it Jan 07 10:03:52 also what's weird is you'd figure an arraylist would be faster doing a addall/removeall to find differences in two different (but mostly identical lists) lists of the form (pid~dataversion ie 1003~2) Jan 07 10:04:11 but benching it it turns out hashset is a few times faster Jan 07 10:04:22 *note the data is sorted a priori Jan 07 10:04:30 the set classes have some nice methods like difference, yeah Jan 07 10:05:54 yeah was thinking about when you asked about what would determine fitness for a db, was thinking fastest way is to use bitmasks if you could find an equivalence for all primitives Jan 07 10:06:10 oh did you see this (since you are a dog man) http://science.slashdot.org/story/14/01/02/2247214/dogs-defecate-in-alignment-with-earths-magnetic-field ? Jan 07 10:06:46 anyways back to work :) Jan 07 10:09:45 new episodes of archer coming out next week ! Jan 07 10:13:46 g00s getting to do anything interesting lately? Jan 07 10:14:10 um, working out bugs in the paho library - not really, ugh Jan 07 10:15:09 and ssl stuff aiui Jan 07 10:15:55 ah, there I am Jan 07 10:16:07 g00s do you consider this term of "vaporizing data" ie from snapshat a real thing? Jan 07 10:16:29 i dont use it but apparently data sent is never "saved" Jan 07 10:16:51 anyone who can get a hook into your ram foils the premise, but seems like a fallacy to begin with Jan 07 10:17:22 how is paho pronounced? Jan 07 10:17:47 hheheh IoTa Jan 07 10:18:34 lasserix, any data that can be communicated to a user in a meaningful way is impossible to protect from copying Jan 07 10:21:29 i wouldn't even believe otherwise, but it seems the question is the ease of 'unauthorized' backups Jan 07 10:22:14 i mean the question arises the same if you are trying to design a true random access terminal: how do you prevent the person behind you from recording your input or van eck phreaking your display? Jan 07 10:23:35 curtains & Faraday cages?? Jan 07 10:23:46 ahh man wish there were hot springs for programmers where you could unwind in the midst of data vaporized Jan 07 10:24:32 alex_PP defeats the purpose of mobile computing though, unless you carried around some kind of tent ;p Jan 07 10:24:59 didn't wired have an article about the president of the us having one Jan 07 10:25:00 tho does make me laugh becuase apparently the us dod has a branch called "office of compromising emanations" Jan 07 10:25:17 http://www.nytimes.com/2013/11/10/us/politics/obamas-portable-zone-of-secrecy-some-assembly-required.html?_r=0 Jan 07 10:26:16 oh i didn't see it! Jan 07 10:26:16 besides a faraday cage doesn't matter much with a time delayed burst bug device but again this is way too specific to be meaningful ;p Jan 07 10:27:39 In accordance with a several-hundred-page classified manual, the rooms are lined _with foil_ and soundproofed. Jan 07 10:27:50 that is i suppose what makes security hard, in all cases Jan 07 10:27:57 yeah Jan 07 10:28:10 an attacker only needs one success, a defender a 100% success rate Jan 07 10:28:49 hence the need for the personal spoof Jan 07 10:28:50 aww now there's a good quote Jan 07 10:29:57 capella i'm amazed to see how much more energy efficient FF on android is over Chrome Jan 07 10:30:14 just scrolling around pages, no js stuff running really. no plugins Jan 07 10:30:20 "energy efficient?" Jan 07 10:30:28 like, Chrome kills the battery Jan 07 10:30:46 Battery stats, sandboxed processes high up there Jan 07 10:30:58 FF was always on the bottom Jan 07 10:31:13 i ask because i saw some demo where a company was saying their algorithm only costs 17 mw per execution, and the leading competitor cost a whopping 34milliwatts! Jan 07 10:31:21 ahh cool Jan 07 10:32:34 g00s: Wish I could take credit for that ... The team eats this stuff up though ;) Jan 07 10:34:11 capella this was my test. i'm obsessive compulsive, and often read something twice if i don't feel like i totally grokked it Jan 07 10:34:28 that's on release version right? We just implmented proguard into the build process ... I wonder what impact that'll have Jan 07 10:34:31 that explains everything... Jan 07 10:34:32 i read this page in chrome and FF Jan 07 10:34:33 http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html Jan 07 10:34:39 its about 55 pages printed out Jan 07 10:34:47 took a few hours, each read Jan 07 10:34:56 measured battery start / end Jan 07 10:34:57 I got through the main intro section the other day Jan 07 10:35:17 sent by you iirc Jan 07 10:35:19 chrome killed it; ff sipped Jan 07 10:35:56 capella oh, that was https://developer.mozilla.org/en-US/docs/Introduction_to_Public-Key_Cryptography Jan 07 10:36:02 anyone know what the sdk is to interface to general purpose sdk? Jan 07 10:36:29 anyone using netbeans to develop android here? Jan 07 10:36:49 that was the first thing you pointed out ... the JSSERef came recently Jan 07 10:36:57 ahh netbeans? time to change, i think :P Jan 07 10:37:28 netbeans, no Jan 07 10:38:34 I got to here and went *dang I need a break* http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#KeyClasses Jan 07 10:38:41 i haven't developed for android for over a year now and i just upgraded one of my old projects to the newest plugin Jan 07 10:39:09 but it seems to have references to some old sdk layout or something somewhere but i cna't find where it is or how to fix it Jan 07 10:39:09 C:\Java\android\lager\AndroidStorageControlClient\build.xml:83: Cannot find C:\android-sdk\tools\ant\build.xml imported from C:\Java\android\lager\AndroidStorageControlClient\build.xml Jan 07 10:39:25 Then I destroyed my Ubuntu partition and spent the last two days rebuilding my machine whie trying to implement Win8 + Ubuntu Dual boot Jan 07 10:39:39 yet the only reference i have to any c:\android-sdk in the entire project is one that says sdk root Jan 07 10:40:15 so did the sdk change its folder structure or is the problem something else? Jan 07 10:40:52 maybe the monkey user is drinking your lager directory? Jan 07 10:41:01 i need to find an app to test my n7's touchscreen, i think there is something going wrong with it on the bottom right Jan 07 10:41:03 perhaps =) Jan 07 10:41:37 goos maybe one of the open source simple touch-to-draw apps? Jan 07 10:42:36 I've got an N7 also, nice machine, but I still prefer smaller smartphone styling for portability Jan 07 10:42:50 g00s "Touch Test" in the Play Store Jan 07 10:43:44 kjeldahl thanks ! Jan 07 10:43:53 kjeldahl ready for emacs 24.4 ? :) Jan 07 10:46:56 Hello All, good evening Jan 07 10:48:04 g00s Always, not sure I'll notice anything different. Jan 07 10:48:15 But I've read the changelog at least. :-) Jan 07 10:48:20 Help needed, unable to run application on device. runs well when run_as -> device from eclipse, but does not run when icon is clicked from device menu Jan 07 10:48:29 also runs well from adb shell am start Jan 07 10:48:43 Any Ideas Jan 07 10:49:16 all i can think of is your main activity has bad info in the intent filter Jan 07 10:49:28 category wrong, something else , etc Jan 07 10:50:28 Jan 07 10:50:28 package="com.vvvv.vvvvv" Jan 07 10:50:28 android:versionCode="1" Jan 07 10:50:28 android:versionName="1.0" > Jan 07 10:50:28 android:minSdkVersion="8" Jan 07 10:50:32 android:targetSdkVersion="17" /> Jan 07 10:50:34 Jan 07 10:50:36 Jan 07 10:50:38 http://stackoverflow.com/questions/4801371/what-does-it-mean-no-launcher-activity-found Jan 07 10:50:42 android:allowBackup="true" Jan 07 10:50:44 omi Jan 07 10:50:45 android:icon="@drawable/ic_launcher" Jan 07 10:50:46 android:label="@string/VVVV" Jan 07 10:50:49 android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:permission="android.permission.INTERNET"> Jan 07 10:50:51 android:name=".MainActivity" Jan 07 10:50:55 android:label="@string/app_name" android:permission="android.permission.INTERNET"> Jan 07 10:50:57 Jan 07 10:50:58 bloody hell. really ? Jan 07 10:50:59 Jan 07 10:51:01 Jan 07 10:51:02 pastebin <----------------------- Jan 07 10:51:03 Jan 07 10:51:05 Jan 07 10:51:07 Jan 07 10:51:11 Jan 07 10:51:13 sorry for posting it here Jan 07 10:51:15 So sorry.... Jan 07 10:51:21 you don't look sorry Jan 07 10:51:28 Use pastebin Jan 07 10:51:34 insert 5$ Jan 07 10:51:47 kjeldahl i thought i read the other day they were going from bzr to git (emacs) Jan 07 10:51:56 so no flood control in here then? Jan 07 10:52:18 g00s, does any thing look out of order?? Jan 07 10:52:34 Hi g00s Jan 07 10:52:55 hehe Jan 07 10:52:56 http://www.gamefromscratch.com/post/2013/10/18/Enabling-Developer-Mode-on-an-HTC-One.aspx Jan 07 10:53:05 wtf is that the common way to enable developer nowadays? Jan 07 10:53:46 asfdd, yep Jan 07 10:53:57 catches me out everytime i change phones Jan 07 10:54:03 i thought it was a joke until i tried it Jan 07 10:54:10 asfdd i think you have to top on something like 7 times Jan 07 10:54:13 it used to be just a nice checkbox last time i developed =) Jan 07 10:54:19 you'll never figure it out yourself :) Jan 07 10:54:25 g00s: There has been both official unofficial git repos for Emacs already. Honestly, it makes to difference to me (I'm not an Emacs dev). But if they want more devs, they need something like github.. Also, with people keeping the Ubuntu ppa's current, I hardly compile from source any longer. Jan 07 10:54:36 "makes NO difference" Jan 07 10:54:43 But I have already enabled dev usb debugging... Jan 07 10:54:45 If only had root Jan 07 10:54:45 :) Jan 07 10:54:54 Got root Jan 07 10:55:06 yep Jan 07 10:55:14 have su too.. Jan 07 10:55:39 what is development device id Jan 07 10:56:03 advx_, move that permission attribute from your activity Jan 07 10:56:25 Hello alex_PP, move it to where Jan 07 10:56:28 that means that the proccess launching that activity needs that permission Jan 07 10:56:36 hmm Jan 07 10:56:41 please go on Jan 07 10:56:50 if you need the internet add a uses-permission tag Jan 07 10:56:51 means complete remove it from activity? Jan 07 10:56:59 as a child of manifest Jan 07 10:57:01 it there to.. Jan 07 10:57:03 ok Jan 07 10:58:11 is there a way to connect to a server running on the machine connected via usb? Jan 07 10:58:20 some fake ip or something?=) Jan 07 10:58:58 ok Alex_PP, done it and m trying it now..brb Jan 07 10:59:42 --clean-- done.. Jan 07 11:00:02 run_as done.. Jan 07 11:00:56 alex_PP,Thanks a Lot Jan 07 11:01:01 Done... Jan 07 11:01:11 Regards, All for help..... Jan 07 11:01:48 bye 4 now....Thank you very much...... Jan 07 11:01:58 how my db file in asset folder goes to actual databse folder on device. my main activity do have the file copy method but still on device i see data. Jan 07 11:02:57 i simply copy mydatabse.db file to assets folder and run app on avd and it runs fine. Jan 07 11:08:05 jaami: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Jan 07 11:09:44 if you have server is preferable to load the data after the fact, otherwise imported database will persist (unless you delete it in code?) as a duplicate Jan 07 11:16:18 one thing is confusing, my mobile does not connect directly through usb cable so i cannot use adb install. instead i just copy the apk file from avd bin bolder and paste the file on my sdcard on device. then i install the apk from there. i dont know if this way the database file goes to right location on device? Jan 07 11:17:34 lasserix: actually i dont know if assets folder's contents are packed into apk Jan 07 11:19:58 i tested my app on avd and before testing i deleted the database file from /Database folder because my main activity do hae the code to copy db file from assets to database. it wokrd and app runs ok on avd Jan 07 11:20:50 it means my database copy from asset to Database is fine and it should work on device also Jan 07 11:22:42 can someone check my MainActivity code here http://pastebin.com/EfGFStaM Jan 07 11:26:45 lasserix: the expansion files should be used but i dont know what is wrong with process i am making. i think assets folder is also packed into apk , is it true? Jan 07 11:26:52 man... Jan 07 11:26:58 need some help here Jan 07 11:29:52 read that tutorial Jan 07 11:30:03 you have to copy your preset db into assests for instance Jan 07 11:30:21 there can be a problem doing so if it is too large, so you might rename it to an uncompressable format Jan 07 11:30:38 then following the code in that article to load it as a database in your app Jan 07 11:31:14 ie: the databse you copy into assessts does not live as a databse of the app until you manually enter it using the android api function calls for creating, writing, etc sqlite databases Jan 07 11:31:57 you cannot simply copy the db into the assessts folder Jan 07 11:35:24 ANyone know if there is a line of code i can add to onCreate to remove all data of the app (ie from settings) Jan 07 11:36:09 just make it clear in my head , the generated mydb.db file with sqlite3 if copied into asset and then main activity copy the same db frm assets to actual Database folder wont mak it work? Jan 07 11:38:58 first you must put down the doobie. but then if you generated the mydb.db outside of method calls inside your apps it wont Jan 07 11:39:20 lasserix: im sorry i ask too many qustions , just last on if you dont mind. i dltd the mydb.db from AVD and assts folder on AVD had the ecodes.db file, i executed app on AVD and copy method in MainActivity workd and ecodes.db file was copied into Dtabase folder and app showed the data. Jan 07 11:39:21 like i said look at that link Jan 07 11:39:27 it'll show you how to import Jan 07 11:39:31 no worries! Jan 07 11:40:24 hey all anyone mind helping me with a null pointer exception? Narrowed it down to this function: http://pastebin.com/X5rcEuUX Jan 07 11:40:33 i dleted ecodes.db from Databas folder and mainactivity do copy the db into database folder and app runs fine on AVD. but it do not work on device Jan 07 11:40:40 deleted*** Jan 07 11:40:44 first time using switches and my java is a bit rusty :D Jan 07 11:40:46 jaami: sorry I might be misunderstanding, been a long night. Are you trying to use a preexisting database in your app? Jan 07 11:40:59 yes Jan 07 11:41:09 whats the null pointer lin hirsty? Jan 07 11:41:10 created it with sqlite3 Jan 07 11:41:22 but outside of the app? Jan 07 11:41:31 swTraining.setOnCheckedChangeListener(new OnCheckedChangeListener(){ Jan 07 11:41:36 numm pointer line history? Jan 07 11:42:00 yes out side of the app Jan 07 11:42:07 jaami: you have to use the methods http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Jan 07 11:42:21 alright, i must do it. Jan 07 11:42:31 thanks a lot lasserix Jan 07 11:42:38 heh Jan 07 11:42:40 yeah sorry :P Jan 07 11:42:48 jaami was a pin but is worth it :) just implemented it here Jan 07 11:42:49 it has been a while since i did it but two poitns Jan 07 11:43:00 :) Jan 07 11:43:05 if you can download your data it is better because you won't have a big db file to add to your app Jan 07 11:43:38 lasserix: you want me pastebin the logcat? Jan 07 11:43:41 yes, it too smal in 18k or hardly it can grow to 100k Jan 07 11:43:56 ohh i see Jan 07 11:44:11 ? Jan 07 11:44:13 yeah you might try just writing it to a text file, and loading it from there too Jan 07 11:44:19 umm yeah Jan 07 11:44:26 you have classcast exception? Jan 07 11:44:41 i dont think so Jan 07 11:44:43 sec Jan 07 11:44:57 lasserix: do you mean i should keep only insert into statements in text file? Jan 07 11:45:18 yeah then iterate thru it if it that small in your sqlitehelper oncreate Jan 07 11:45:55 http://pastebin.com/DuXT48Vr Jan 07 11:46:02 allright got it. Jan 07 11:46:04 :) Jan 07 11:47:01 hirsty: Caused by: java.lang.NullPointerException Jan 07 11:47:01 01-07 11:31:57.958: E/AndroidRuntime(5296): at uk.co.hsdirect.quotes.MainActivity.onCreate(MainActivity.java:85) Jan 07 11:47:30 that's this line ? swTraining.setOnCheckedChangeListener(new OnCheckedChangeListener(){ Jan 07 11:47:32 which is my setOnCheckedChangeListener i pastebinned Jan 07 11:48:08 switch is some custom viewgroup? Jan 07 11:48:42 i would suppose swTraining is null which means it did not inflate properly or something Jan 07 11:48:47 Switch is the Switch on the layout (4.0) Jan 07 11:49:29 uhh Jan 07 11:49:32 change Switch to ToggleButton ? Jan 07 11:50:00 oh i see sorry probably should sign off eyes are going numb ;p Jan 07 11:50:15 :D Jan 07 11:50:54 ah, hello there! Jan 07 11:50:56 hirsty can you do boolean isNull = swTraining == null ? true : false; at line 2 Jan 07 11:50:56 check if findViewbyId is happening Jan 07 11:50:56 is this in oncreate or is this a fragment? Jan 07 11:51:21 oncreate Jan 07 11:51:27 i do have fragments too Jan 07 11:51:45 i dunno you have to post unedited Jan 07 11:51:55 dont worry no one is going to steal your code Jan 07 11:52:00 Ankha heya Jan 07 11:52:05 I need to send some fairly complicated json through a volley post request, can I create a GSON model to hold all the info and send that? If so, how? Jan 07 11:52:31 hey lasserix Jan 07 11:52:56 http://www.techrepublic.com/blog/software-engineer/use-gson-to-work-with-json-in-your-android-apps/ ? Jan 07 11:53:38 * jacky clicks Jan 07 11:53:40 ergh the formatting Jan 07 11:53:58 http://www.javacodegeeks.com/2011/01/android-json-parsing-gson-tutorial.html http://kylewbanks.com/post/show/Tutorial-Android-Parsing-JSON-with-GSON Jan 07 11:54:06 I'm already using GSON successfully for the info returned from the api, I'd just like to send a GSON object to the API Jan 07 11:54:15 ergh the formatting Jan 07 11:54:34 at least it has some though Jan 07 11:57:52 yeah swTraining is returning null :/ Jan 07 11:58:11 is it because im running it in mainactivity and not the fragment? Jan 07 11:58:29 view is call from the fragment Jan 07 11:58:38 mainactivity is a container Jan 07 12:00:01 oh wait lol Jan 07 12:00:26 figure it? Jan 07 12:00:53 nope lol Jan 07 12:00:57 it is worth having anything below 2.3 in your AVD targets? Jan 07 12:01:02 switch is being assigned Jan 07 12:01:03 clearing up space n'shit Jan 07 12:01:08 breaking on the function call Jan 07 12:01:47 jacky probably not Jan 07 12:01:57 uhh Jan 07 12:02:08 hirsty paste the "full" code Jan 07 12:02:35 * jacky POOF Jan 07 12:04:22 hoopla kapoya! Jan 07 12:04:55 like what a few megs Jan 07 12:04:57 no biggie Jan 07 12:06:17 seriousily it is such a non issue i presume you are the beginnings of a self concious computational entity trying to optomize itself Jan 07 12:07:30 http://pastebin.com/793g0LJ3 Jan 07 12:08:24 man, so whats that facebook app? Thats an app developed from scratch or just html loaded from an app? Jan 07 12:08:27 omg can't believe you pasted your source pwned! Jan 07 12:08:41 meh Jan 07 12:09:14 :) Jan 07 12:09:22 is swTraining in activity_main ? Jan 07 12:09:26 activity_main.xml Jan 07 12:09:32 put an expiry on it lol Jan 07 12:10:04 lasserix: Thanks again, the link is good, Jan 07 12:10:07 its on a fragment in gen_quote.xml Jan 07 12:10:10 dhulke: part of both, data comes from somewhere but heard the fb app is developed in ndk for speed Jan 07 12:10:21 jaami: cool, hope it worked for you Jan 07 12:10:34 jaami: i had to do minor edits to get it to work Jan 07 12:10:44 ahh Jan 07 12:10:45 lasserix: I see Jan 07 12:10:55 going to eat something in kitchen :P will check that for sure Jan 07 12:11:00 that where im going wrong? Jan 07 12:11:01 hirsty so the problem is your findViewById is being done on your activitymain.xml Jan 07 12:11:02 ndk + html5 :/ Jan 07 12:11:09 not your fragment layout Jan 07 12:11:15 ok Jan 07 12:11:29 so move it all to my fragment? Jan 07 12:11:45 uhh Jan 07 12:11:50 probably, whatever belongs to it anyways Jan 07 12:12:50 I have to develop a service thatll work on android, iphone and desktop, as a website but on a mobile, I want the user to be able to use the camera to uplaod some pictures. I thought If I just have a website and load it through webview and then implement the camera part would be way faster. Is that right? Jan 07 12:14:54 lol, I got the glass gdk for the lulz Jan 07 12:15:01 I'd wait until it's consumer ready Jan 07 12:15:09 $1.5k is laptop/workstation money Jan 07 12:15:37 lasserix: and not only that, I need to implement a RQ scanner on the mobile app too... Jan 07 12:15:50 probably hire a developer Jan 07 12:16:10 forget the website for now Jan 07 12:16:36 just make an app that uploads a photo from the user capturing a picture from their phones camera using the default camera app Jan 07 12:17:07 i would start from there, sounds easy what you are doing but it can be a long roa Jan 07 12:17:11 *road Jan 07 12:17:31 jacky what labtop? Jan 07 12:17:50 well, anything with a i7, nvidia core and windows that I can delete lolz Jan 07 12:17:54 I'm an Asus guy Jan 07 12:17:58 I like their laptops a lot Jan 07 12:18:14 i saw for that money the asus zenbook is the way to go? Jan 07 12:18:31 why is it that when i declare a variable like "private int ...", eclipse barks about not using the variable, but not when i just declare it as "int ..."? Jan 07 12:18:41 yup Jan 07 12:19:18 lasserix: why would that be a long road? Isnt it the best solution cross platform to develop one website and then just implement the camera part individualy? Jan 07 12:19:40 still no go lol Jan 07 12:19:57 like i said sounds simple but you will be in frustrated pain if you have not done something like that before before too long Jan 07 12:19:58 no error though Jan 07 12:20:22 lasserix: I got this right now Jan 07 12:20:22 hirsty take a walk around the block then post the code if you dont see your error Jan 07 12:20:24 http://www.amazon.com/gp/product/B009RUS452/ref=oh_details_o09_s00_i00?ie=UTF8&psc=1 Jan 07 12:20:30 for like $380 Jan 07 12:20:38 \o/ for sales lol Jan 07 12:20:46 i5 Jan 07 12:20:47 would you look at the time! Jan 07 12:21:01 lmfao Jan 07 12:21:06 oh wow nice, Jan 07 12:21:14 cool keys, only 4gb ram tho! Jan 07 12:21:33 wow that is a nice price, thanks for pointing that out Jan 07 12:21:39 is it correct that the contents of an AndroidManifest.xml file of a library project are completely ignored if not using gradle? Jan 07 12:21:43 that is pretty cheap Jan 07 12:21:57 upped to 8gb from some RAM I had here Jan 07 12:21:59 (my labtop sounds like a semi, need to get a new one as soon as this gig is done...) Jan 07 12:22:13 thanks a lot, that is almost perfect: how do you like it? Jan 07 12:22:25 it's light, and pretty quiet Jan 07 12:22:35 but only recently I've noticed a battery life shortening Jan 07 12:22:40 caps at 83% Jan 07 12:22:51 replaceable? Jan 07 12:22:55 not bad since that's 3 of the 4.5 hours Jan 07 12:22:57 ultra-: very Jan 07 12:23:17 that black bar in the screenshot under the screen is the battery Jan 07 12:25:27 batteries are one thing that just hasn't caught up Jan 07 12:25:33 don't last long enough and aren't reliable Jan 07 12:25:50 hdd finally caught up, now we just need good batteries Jan 07 12:25:55 hello Jan 07 12:26:00 anyone used green dao ? Jan 07 12:59:18 isn't possible to pass custom gradle parameters in Android Studio run configuration or it's just me? Jan 07 12:59:36 hey guys, right on. I installed android studio and without having to configure anything I got my nexus7 to run my first hello world Jan 07 12:59:40 thanks for the help Jan 07 12:59:41 'custom gradle parameters' ? Jan 07 13:00:27 ./gradlew someTask -Pkey=value Jan 07 13:01:10 storkme_, I would like to create a run configuration that also pass the -Pkey=value Jan 07 13:02:01 as far as I'm aware the gradle IDEA plugin doesn't let you do this; you're stuck with the terminal Jan 07 13:02:48 storkme_, thanks, unfortunately it's what I was thinking Jan 07 13:46:33 Mornin! Jan 07 14:03:47 hy all Jan 07 14:04:04 I use OpenNFC and Connection Center Jan 07 14:04:28 how can I emulate the NFC card itself Jan 07 14:04:29 ? Jan 07 14:06:26 I have found that in the connection center itself Jan 07 14:06:36 thanks :D Jan 07 14:08:14 i haven't really had experience w/ NFC, but have you read this: http://developer.android.com/guide/topics/connectivity/nfc/hce.html ? Jan 07 14:25:45 Is there class to make interval calls ? Jan 07 14:26:20 still can't connect to the opennfc Jan 07 14:26:24 emulator Jan 07 14:26:32 (I solved this problem with runnable and, every time runnable is called I call again timerHandler.postDelayed(this, 1000); with handler_ Jan 07 15:00:49 hi Jan 07 15:04:50 how can I style a PagerTabStrip to look like the action bar tabs as shown in the android market example? Jan 07 15:13:37 nevermind, it looks like google wrote a custom control that they don't release. sheesh. Jan 07 15:16:51 Is bionic obsolete software? Jan 07 15:19:24 for a bit of a quick startup; would using an bare-bones activity make sense? Jan 07 15:19:35 like to check if anything needs to be done Jan 07 15:19:38 a splash screen of sorts Jan 07 15:20:09 jacky: if you dont absolutely need a splash screen, dont use one Jan 07 15:20:23 point taken Jan 07 15:20:25 thanks Jan 07 15:20:26 how many of you use Eclipse? Jan 07 15:20:39 also good morning. Jan 07 15:20:43 * jacky sits on his heads Jan 07 15:20:45 morning! Jan 07 15:20:58 lol that sounds painful jacky Jan 07 15:21:44 when doing a staged rollout, how do you update the store listing info for that particular version? Jan 07 15:22:22 monarch: lol hence my sentiment Jan 07 15:22:23 as I understand it from looking at the developer console, the store listing is "global" across all versions Jan 07 15:22:29 I've been using IntelliJ since school Jan 07 15:23:11 mbor: well you can only have 1 version of your app published at a time Jan 07 15:23:20 that's cool. Jan 07 15:24:38 i haven't coded in so long, but we legit used emacs at my school Jan 07 15:24:41 when i was learning Jan 07 15:25:08 nothing wrong w/ emacs Jan 07 15:25:11 alexfu: well, I'm doing a staged rollout? Jan 07 15:25:46 alexfu: so new users see my version 3.1.1 but 50% of my current user base sees my new version 4.0.0 Jan 07 15:27:06 I know this is a bit high level Jan 07 15:27:47 i copied a sample project and when opened project in eclipse there are 100s of errors. look like some setting issue. i imported project not sure what to do with it to build it? Jan 07 15:27:50 But is libbionic becoming deprecated now some new cellphones include glibc? Jan 07 15:30:25 Some cellphones Jan 07 15:30:49 says who? Jan 07 15:33:51 shurnormal: last i checked, AOSP was still bionic Jan 07 15:50:14 I can't wrap my head around this. How do I change the default colour of a selected item in a custom theme? I've tried a lot of things like ... but not the correct one! Jan 07 15:50:22 okay Jan 07 15:50:36 why doesn't gradle know I built my shit and just send it to my phone? :/ Jan 07 15:51:13 marrrk: do you mean the pressed state or selected as in checked? Jan 07 15:51:35 marrrk: you could try selectableItemBackground Jan 07 15:51:49 jacky: what do you mean? Jan 07 15:54:32 it loves rebuilding even though I didn't touch any of my files Jan 07 15:54:39 like I just wanted to get some water and come back Jan 07 15:54:43 and it wants to rebuild Jan 07 15:54:47 sooo eager Jan 07 15:54:54 jacky: what r u talking about Jan 07 15:55:07 Gradle in Android Studio Jan 07 15:55:17 when I'm just wanting to run the app on my phone Jan 07 15:55:37 the pressed one Jan 07 15:55:40 no Jan 07 15:55:41 exactly not Jan 07 15:55:43 the other one Jan 07 15:55:46 jacky: so you want to install and not build? Jan 07 15:55:54 both actually Jan 07 15:56:09 jacky: build once, then just use adb to install the apk from then on Jan 07 15:56:40 might look for a mapping that does that Jan 07 15:56:52 marrrk: on a ListView i presume? Jan 07 15:57:34 on the whole app Jan 07 15:57:39 jacky: when you run any of the install commands, it will build every single time. Jan 07 15:58:15 :'( Jan 07 15:58:26 ant clean && ant debug && adb install -r bin/foo-debug.apk Jan 07 15:58:29 So I have a menu drawer on the left where I want to change it, that is a list view I think. But then there is this ugly popup that comes up when you press the "..."-button on the action bar which as far as I understand uses a 9 patch with that horrible shadow that I would also like to get rid of. Jan 07 15:59:46 jacky: just build once and use adb install command to install to all your devices Jan 07 16:00:07 so alexfu do I have to change it for each list view? Jan 07 16:00:30 marrrk: you'll want to supply your own selector to the nav drawer or override android:selectableItemBackground in your theme. Jan 07 16:00:52 maybe I have not tried that one yet. Let me check Jan 07 16:01:04 Leeds: I think there's an ant debug-install target or something like it Jan 07 16:01:08 I like this formulation "you will want to". Jan 07 16:03:32 seitensei: ok thanks Jan 07 16:03:45 marrrk: for the overflow menu, you can change the background drawable by overriding android:popupMenuStyle in your theme Jan 07 16:03:57 I don't get it. I must be doing something wrong. I added @drawable/menthal_selectable_background to my theme. whose parent is android:Theme.Holo.Light.DarkActionBar Jan 07 16:04:32 this comes from the use of unix cli binaries from cellphone apps it is done at my company. bionic is ok for us, but glibc is a plus Jan 07 16:04:50 ah maybe because it is in drawable but not in drawable-hdpi ? Jan 07 16:05:22 we currently deploy bionic but have some diagnostics tools compiled glibc Jan 07 16:05:41 marrrk: no. it really doesnt matter which folder it's in. it will still use it. Jan 07 16:06:00 like the valgrind suite, gperftools, strace and some other tooling Jan 07 16:06:03 Hmm, so it must be something else. Jan 07 16:06:33 marrrk: what's your drawable look like? Jan 07 16:06:42 How debugger find this out : android.util.SuperNotCalledException: Activity {pl.twigit.timertry/pl.twigit.timertry.MainActivity} did not call through to super.onStart() ? Jan 07 16:06:44 marrrk: is it an xml? or a bitmap Jan 07 16:06:54 https://gist.github.com/i-am-the-slime/36cda47b5d87d7ca4992 Jan 07 16:07:48 probably missing the wrong tag Jan 07 16:07:51 state_active? Jan 07 16:07:54 state_enabled? Jan 07 16:08:26 I though it would be difficult to debug but magically the debugger figure it out Jan 07 16:08:42 marrrk: no. sorry, i misinformed you. you'll want to override android:listSelector and supply your drawable to that Jan 07 16:08:46 marrrk: that should work Jan 07 16:09:08 that will work Jan 07 16:10:21 I like that positive attitude Jan 07 16:10:42 i use selectableItemBackground as a selector for non-listview items, like buttons. Jan 07 16:11:03 It is still blue. Jan 07 16:11:19 It is very resilient. Jan 07 16:12:10 marrrk: get rid of the first line in your xml Jan 07 16:12:20 and try again Jan 07 16:12:33 OK! Jan 07 16:13:13 The one about the xml version? I just did and it's still blue. I should make sure that I'm not overriding it. Jan 07 16:14:08 marrrk: what's your theme look like? Jan 07 16:14:42 https://gist.github.com/i-am-the-slime/d9aec89776cf4af883de Jan 07 16:15:22 marrrk: and your layout file w/ nav drawer? Jan 07 16:16:10 https://gist.github.com/i-am-the-slime/0ef5acba84af6bf329fd Jan 07 16:18:06 anyone here have much experience with AssetFileDescriptors? they're parcelable, *and* closeable, and i'm wondering how that works. if i parcel it out, then close it, then it gets unparceled.. does it get opened again? or is the recreated object useless? Jan 07 16:18:49 marrrk: try setting listSelector property directly on the listview and see if that changes anything Jan 07 16:18:59 yeah good idea Jan 07 16:19:32 I have to make sure that the other guy doesn't set it in code somewhere. Jan 07 16:19:43 still blue Jan 07 16:20:09 Is Google Analytics able to track the location a person downloaded an app from, or is there any other software that you all know of that does? Jan 07 16:20:15 for example, this many users came from twitter.com, this many people came from a google search, etc. Jan 07 16:20:15 and maybe which of those downloaded the app Jan 07 16:20:37 so 80% who came from twitter downloaded it, but only 30% of google search users did Jan 07 16:20:37 that kind of thing Jan 07 16:21:28 alexfu: wait Jan 07 16:21:35 the color for clicks is changed to white Jan 07 16:21:40 not the one for the selected Jan 07 16:21:48 but so something is changing Jan 07 16:22:07 pressed state and selected state are 2 different things Jan 07 16:22:33 I don't have selected. Jan 07 16:22:48 I was wondering earlier what the correct one was. I didn't express myself really well. Jan 07 16:23:11 I just started a binary search through all the allowed properties. Jan 07 16:23:15 But selected sounds good. Jan 07 16:23:37 listSelector is for pressed states. to change the highlight color when you selected you have to set a background on the row layout Jan 07 16:24:02 On the list item? Jan 07 16:25:18 Aaaah! Jan 07 16:25:23 Thank you so much! Jan 07 16:25:37 I was looking completely in the wrong place! Jan 07 16:26:08 And now white looks stupid, too. Jan 07 16:29:14 Hello, folks! Can anyone please provide me some list of resource directories postfixes so I could support ALL screens by each own layout. Jan 07 16:30:23 I already have support for all phones and tablets with phones-like resolution, so basically I want to somehow differ layout directories for 16:9 and 16:10 tablets Jan 07 16:31:59 So there's no way to simply redefine that blue colour that is used everywhere? Because it is also used in the Action bar. Jan 07 16:32:15 Here's a list of qualifiers: https://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Jan 07 16:32:29 Ah perfect, thank you so much. Jan 07 16:33:13 Also, wat? Resolution doesn't matter when designing layouts.. Jan 07 16:33:40 And the difference between 16:9 and 16:10 tablets isn't large enough to warrant different layouts Jan 07 16:34:06 Hi all, I'm using Fragments. I have FragmentA, then add FragmentB, FragmentB doesn't contain a clickable widget (for example), but when the users touch the screen, a Button from FragmentA (which is not visible) will get the onClick, how can I fix this nicely? Currently I'm using an empty onClick on the rootView off each Fragment Jan 07 16:34:25 Ha! This wasn't an answer to my question. Jan 07 16:34:51 Remove fragment a when adding fragment b Jan 07 16:35:14 SimonVT: not allowed, when pressing back button, the user needs to go back to FragmentA Jan 07 16:35:26 So do that when pressing back Jan 07 16:35:31 FragmentManager can keep a backstack Jan 07 16:36:25 I think you can specify addToBackStack to be true when you tell the manager to replace a fragment. Jan 07 16:37:49 How do you think other apps do it? All of them remove or detach fragment a when showing fragment b Jan 07 16:39:03 SimonVt, and is there a big difference between detach and remove or replace? Jan 07 16:41:07 SimonVT: got a question for you: https://plus.google.com/103498612790395592106/posts/HH1gNjNP9si Jan 07 16:41:27 i just set up eclipse to start android development. have some code, only an import, and i already get errors. "import cannot be resolved" this looks like eclipse doesnt know where the JDK is located, right? however i did java development before.. Jan 07 16:41:37 i thought eclipse finds the jdk automatically Jan 07 16:42:34 Detach destroys its viewhierarchy but keeps managing the state, remove removes a fragment completely, replace removes the old fragment and adds the new.. Not sure exactly how remove behaves then keeping a back stack Jan 07 16:43:26 dumb question, anyone have links to live wallpaper dev documentation? or is it a dead end? Jan 07 16:44:37 zer0her0: here's an old one... http://android-developers.blogspot.com/2010/02/live-wallpapers.html Jan 07 16:44:46 old-ish Jan 07 16:45:10 nothing on official page? and ouch 2.x screens. Jan 07 16:46:00 thank you, btw. Jan 07 16:46:32 noone has an idea for my problem? Jan 07 16:46:48 zer0her0: there's no training section or api guide on it if thats what you mean Jan 07 16:47:05 alexfu: I believe listview just calls setChecked/setActivated on the selected items Jan 07 16:47:17 zer0her0: you can make one fairly easily with AndEngine Jan 07 16:47:22 alexfu: ok, was hoping my google-fu was just lacking ;) Jan 07 16:47:26 marrrk: AndEngine? Jan 07 16:47:38 You can search for AndEngine fairly easily using Google. Jan 07 16:49:56 Hello, is there some sort of tool that inspect the UI elements of a native Android application ? Some tool like Web Inspector in Google Chrome for example Jan 07 16:50:08 yep Jan 07 16:50:37 SimonVT: hm ok... Jan 07 16:50:44 yiati: Can you please tell me then ? Jan 07 16:51:25 it's weird how it's was developed that way Jan 07 16:53:07 R4md4c: theres HierachyViewer but to use it on a real device, you need https://github.com/romainguy/ViewServer Jan 07 16:53:43 R4md4c: there's also Scapel Jan 07 16:54:31 Because you usually don't want to highlight the entire item when selecting.. You'd have a checkbox or something Jan 07 16:54:54 I just tend to manage checked state myself tho Jan 07 16:55:22 alexfu: Thanks a lot for these precious info Jan 07 16:56:28 R4md4c: Hierarchy viewer Jan 07 16:58:14 SimonVT: so you're saying if it was handled by the list selector, then the checked and pressed would end up being the same? since there wouldnt be a way to tell if you pressed or checked? Jan 07 17:19:51 What design pattern does intent come under? Jan 07 17:24:39 What design pattern does intent come under? Jan 07 17:26:04 May I ask of your intention (lol) as to why you need to know that? Jan 07 17:26:26 i read that question on a forum Jan 07 17:26:48 and knowledge won't harm Jan 07 17:27:50 Certainly not, but I as merely curious if you had a particular problem that could be solved if you knew the design pattern. It'd be odd, but who knows. Jan 07 17:38:38 I think the usage of intents enables the Facade pattern, but the actual implementation of Intent... Jan 07 17:43:13 hi all, i've read the processes and threads docs but it's still a bit murky. let's say i want to do something very simple - i have a Button, and when the user clicks, i want the app to beep every second. is that a new process, thread, activity, or something else entirely? Jan 07 17:44:09 * antgel reads about Timer Jan 07 17:44:10 just post a message to a handler every second Jan 07 17:44:14 don't use TImer Jan 07 17:44:16 use Handler Jan 07 17:44:18 :( Jan 07 17:44:34 Anyone familiar with the Google Maps API for Android? I'm wondering whether dropped pins are saved upon closing of the app or do we have to deal with saving ourselves? Jan 07 17:44:44 pfn: okay, i'll look at Handler. out of interest, why not Timer? Jan 07 17:47:52 anyone :P Jan 07 18:01:25 CocoStorm: do you mean map markers? Jan 07 18:02:08 alexfu, yes sir Jan 07 18:06:59 CocoStorm: yeah, you'll have to manage it yourself. Jan 07 18:07:46 Oh I see, hmm so I could just use bundles Jan 07 18:08:24 is it somehow possible to subclass SupportMapFragment, so I could provide GoogleMapOptions on startup, since those options can be applied manually just after onCreateView is called which happens a bit late than wanted Jan 07 18:08:47 where are you getting the positions for the markers in the first place? Jan 07 18:09:16 there is static function newInstance(GoogleMapOptions options), but can it be somehow overridable? Jan 07 18:09:28 alexfu, I haven't done it yet, but I'm going to get the position from the current location Jan 07 18:10:41 posplaw: cant override static functions. sort of defeats the purpose of it. Jan 07 18:10:59 I don't want to override static function.. Jan 07 18:11:38 posplaw: you just asked... "there is static function newInstance(GoogleMapOptions options), but can it be somehow overridable?" Jan 07 18:11:41 hy all Jan 07 18:11:43 there is static function that creates SupportMapFragment object with some portion of google map options, but i want somehow subclass it with custom constructor but providing those options somehow during object construction Jan 07 18:12:03 not in the onCreateView Jan 07 18:12:28 can I somehow refresh my android phone's API only? I mean I don't want to install a completely new Android version, but I would like to use the newest API to run my codes. Jan 07 18:13:53 posplaw: what kind of options? Jan 07 18:14:03 alexfu: zoom controls enabled = false Jan 07 18:14:28 posplaw: I know nothing of this, but how about myNewInstance() { SMF smf = newInstance(otions); smf.setSomething(foo); return smf; } Jan 07 18:14:45 well I already tried this but... Jan 07 18:14:48 assuming that you can somehow control which instance is being created by this newInstance call of course Jan 07 18:14:56 gregtom6: nope. the api is the programming interface to a particular version of android. if you want your code to run on older versions of android you need to use the api for that version of android. Jan 07 18:14:57 newInstance returns SupportMapFragment, not my subclassed object Jan 07 18:15:12 well, that is likely, I guess. Jan 07 18:15:44 but I don't want just simple SupportMapFragment since I want to get noticed once onCreateView is called by the listener Jan 07 18:16:35 amblivious: can I install CyanogenMod safely to my phone? without killing it? Jan 07 18:17:15 posplaw: you cant just grab the GoogleMaps objects upon object creation and modify it. you have to wait until it's ready which is usually when it's views are created Jan 07 18:17:34 gregtom6: this channel is not for android rooting and relevant things, but you should examine cyanogenmod wiki about the quality of support your device enjoys Jan 07 18:17:56 I have been running CM for years myself on some galaxy s 1/2/3 phones without notable difficulties Jan 07 18:18:06 posplaw: have a look at http://developer.android.com/reference/com/google/android/gms/maps/MapFragment.html#getMap() Jan 07 18:18:45 alexfu: well I know, right now I do turn off zoom controls once this view is created, so there is a little delay during which I have those controls, but the thing is if I do not the custom one, but default SupportMapFragment object providing those options, controls aren't even shown! Jan 07 18:20:46 gregtom6: there is scope for breaking it but if you ensure you have the right model, read all the notes and other people's experiences with that model you'll almost certainly be fine. There's just a few gotchas with some models and some roms. Jan 07 18:21:06 posplaw: sorry not quite understanding. zoom controls show by default Jan 07 18:21:23 I want them to do not ever appear Jan 07 18:22:05 posplaw: whats wrong w/ setting them not appear when you get the GoogleMap Jan 07 18:22:32 alexfu: this happens with a delay, so for few seconds those controls are enabled while map is loading Jan 07 18:24:30 posplaw: i dont have that problem w/ my maps Jan 07 18:24:46 something else must be going on to cause that Jan 07 18:25:13 it's happened because the map fragment is created in activity, not in the xml Jan 07 18:25:36 posplaw: doesnt matter if its from XML or in code Jan 07 18:25:47 this all is done due to multiple maps in application, so each activity containing the map create/delete map when it's shown and hidden respectively Jan 07 18:26:47 alexfu: I don't know probably it's my slow phone or bad connection what makes map load longer, but controls are there before onCreateView is called 0.5-2.0 seconds after Jan 07 18:27:21 posplaw: what kind of phone Jan 07 18:27:49 I'd never try to fix it if I had only screens when there is progress dialog during loading screen, but there are also some of them without it :( Jan 07 18:27:55 alexfu: htc incredible Jan 07 18:28:22 it's more about language problem I bet :) Jan 07 18:28:42 posplaw: whats your code look like? Jan 07 18:29:18 I'm trying to make an app to seamlessly reload a web page without flicker (some of the graphs take a moment to load so a normal reload is noticeable). I tried using two webviews and hiding one until the loading is complete but I still get flicker. It's like the webviews don't actually paint until they come into focus. I've also tried a view_flipper. Jan 07 18:29:33 I could resort to an image of the web page but would prefer to see live content. Any ideas? Jan 07 18:29:58 alexfu: in onResume() custom map fragment object is created, in which I have overridden onCreateView method where I call setZoomControlsEnabled(false) on the first line Jan 07 18:30:00 *come into view, rather than focus. Jan 07 18:31:14 posplaw: post your entire code to pastebin, and then post the link here Jan 07 18:31:32 alexfu: ah forget it.. I think I will leave it as it is Jan 07 18:31:41 too much time spent for such minor issue Jan 07 18:31:51 ok... Jan 07 19:35:56 I have a very strange problem. I have 2 activities. One is a Menu and another is a Game. First the Menu is started and then user clicks the correct menu item to start the Game activity. In the game activity I use magnetic and acc sensor to let the user roll a ball over the screen by tilting the phone. At some point the Activity is restarted. Is this because Android tries to do something Jan 07 19:35:56 different? Jan 07 19:36:14 Like put the app on hold for a while? i cant see anything happens it is just stopped. Jan 07 19:37:02 onCreate must have been called again. Jan 07 19:38:13 could it be the orientation changed? Jan 07 19:42:05 yeah maybe because the coordinates are suddenly out of bounds. can I prevent that? Jan 07 19:44:38 Houte: set this in your activity android:configChanges="keyboardHidden|orientation|screenSize" Jan 07 19:44:40 prevent the orientation change? yeah, you can declare it in the activities attributes in the manifest to be portrait or landscape only, if you want to lock it down. Jan 07 19:45:56 that tells android that you'll be handling those events on your own so don't just go and reset me Jan 07 19:48:15 given what your app does, you should lock it down as nebs suggested. Jan 07 19:51:16 after writing so much java, going back to javascript and css is kinda painful. Jan 07 19:52:29 Anyone know how to pre-draw/paint a webview before it displays? At present mine seem to show a brief white flicker when I first make them visible. I want to seamlessly transition between two webviews. Jan 07 19:52:52 I have to use 2 diff editors to keep my head straight. one white, one black Jan 07 19:53:01 Hi everyone, need some help Jan 07 19:53:28 I'm not sure how to add a language setting/ preference for my app. What would be the best way to implement ths? Jan 07 19:53:29 *this Jan 07 19:53:34 Actually they behave nicely on the virtual device but flicker when I change between them on a real device. Jan 07 19:53:46 look like without help i wont get this thing solved. plz check this code http://pastebin.com/5eMVHfTh. i am copying database from asset to Database and it works fine in AVD but dont know why on device it does not work. Jan 07 19:55:33 the datavase im trying to copy has metadata and everything it need to show data through my app Jan 07 19:56:29 jaami-win: do you get an error? look for both errors and warnings Jan 07 19:57:13 i checked code samples on differen sites but all of them doing the copy almost same way. i cant test on device directly, i have to copy the apk on device Jan 07 19:57:58 aleb: my mobile has no driver for windows that is why i make apk and then copy it on device and install from there Jan 07 19:58:08 alexfu: Jan 07 19:58:10 amblivious: on what event do you use to start paint? Jan 07 19:58:46 alexfu: there is no warning or error when app run on AVD Jan 07 19:59:03 so i assume it should work on device too Jan 07 19:59:40 jaami-win: i meant when running on the real device. what kind of phone are you using that doesn't have drivers for Windows? Jan 07 20:00:18 At present I have a timer that shows one webview, hides the other then sets it loading in the background. When the timer next fires it swaps them over, unhiding the now fully loaded webview. Does that make sense? Jan 07 20:00:28 its spreadtrum, sme chinese brad, 1.gh processor Jan 07 20:01:12 alexfu: on device app just dont show data. and there is no error or crashing Jan 07 20:01:46 But at the point I unhide a webview it flashes white briefly despite being fully loaded up some time ago. Jan 07 20:02:13 XXCoder: I have also tried a view_flipper but the same thing happens. Jan 07 20:02:30 not sure whats goinjg on there Jan 07 20:02:48 alexfu: is there something wrong with code or missing because it run ok should it not copy db from assets to database? Jan 07 20:03:02 OK. thanks. Do you know of a way to force it to draw/paint prior to unhiding it? Jan 07 20:03:45 jaami-win: copying from assets is fine. Jan 07 20:04:09 Hi! I'm trying out the new android-studio and it is weird. Main manifest has but library uses targetSdkVersion='17' Jan 07 20:04:14 amblivious: wild guess is just show it under other webview layer, draw it, then remove top later Jan 07 20:04:15 layer Jan 07 20:04:17 shows same message after I changed it to 17 and saved. Jan 07 20:04:19 probably wont work Jan 07 20:04:31 HMMM Jan 07 20:04:36 XXCoder: yeah, that's what I'm doing. It was a bit of a surprise. Jan 07 20:04:36 clean project and rebuild? Jan 07 20:05:09 ohh damn, i checked it again now and its working on device also. why it took some time? Jan 07 20:05:16 hrm. I've done two completely different projects now in case I did something mental (2 doesn't rule that out though). Jan 07 20:05:20 weird i didnt get this problem when i only had one activity. anyway thanks for the help, android:configChanges="keyboardHidden|orientation|screenSize" fixed the problem together with android:screenOrientation="portrait" >. Jan 07 20:07:27 alexfu: thats is strange thing, i checked when installed on device and the data was not shown, but just checked it after 5 minutes an app shows data now. i have to reinstall app and check again. Jan 07 20:11:59 alexfu: i found the problem, i copy apk on device and then open file explorer and tap on the apk and there a message is shown either to select install or external install. i selected install everytime. after install is done another message shows and ask if i want to open , i tap on open and app runs and no data is show. i thought database was not copied. but then i closed app and executed it from icon on desktop and then app shows data Jan 07 20:13:44 so right after install if app is opened with the open button then data is not shown. have to close app once and then open it from icon then app shows data. look like some problem with either device or android 4.0 Jan 07 20:15:57 thanks God my code is ok, it took me hours to find that little problem. damn, i should change my habbit to following sequence of steps. Jan 07 20:16:34 evening all Jan 07 20:16:48 or, more likely, a problem with your app Jan 07 20:17:33 SimonVT: it runs perfect on AVD. and that was the reason i was not going to accept that my code has issues Jan 07 20:18:13 SimonVT: may be app has issue Jan 07 20:19:00 but really i dont know what kind of issue. my MainActivity do the copy of database from assets to Dtabase at very first place. Jan 07 20:19:39 SimonVT: here is MainActivity http://pastebin.com/5eMVHfTh Jan 07 20:21:02 hi, i've got a Samsung Galaxy Mini Gingerbread 2.3.6 and Ubuntu 13.10, Android SDK has just been installed, I edetied the udev rules file, and enabled the USB debugging on the device Jan 07 20:21:19 however adb devices does not list the device Jan 07 20:21:45 daf182: adb kill-server && adb devices Jan 07 20:23:06 evanc: still nothing (I also have a Geeksphone Keon which is listed with adb devices) Jan 07 20:23:34 daf182: on my box i had to restart after modifying udev rules Jan 07 20:24:33 alexfu: do you mean, "sudo service udev restart" ? Jan 07 20:24:43 daf182: i mean restart computer Jan 07 20:24:49 OMG Jan 07 20:24:51 alexfu: just for grins, does adb kill-server && sudo $(which adb) devices work? Jan 07 20:24:55 jaami_win: are you soley basing this issue on not being able to view the file using a 3rd party app? after copying from assets to db folder, have you check access with your app? Jan 07 20:25:17 adb kill-server && sudo $(which adb) Jan 07 20:25:29 $ Jan 07 20:26:13 evanc: that command does work Jan 07 20:26:33 alexfu: then either your udev is wrong or you need to reboot Jan 07 20:26:33 although, why would you use $(which adb) ? Jan 07 20:26:45 alexfu: because presumably adb isn't on sudo's $PATH Jan 07 20:26:59 well, using which adb assumes that adb is in your path Jan 07 20:27:01 `sudo adb` will likely fail Jan 07 20:27:05 alexfu: I assumed it was Jan 07 20:27:31 which adb tells me /usr/bin/adb Jan 07 20:27:48 however I tried it locally from the directory of SDK Jan 07 20:28:05 ok let's give a try for the box restart Jan 07 20:28:11 back soon :) Jan 07 20:28:12 restart your box then. and if that doesnt work, chances are you used the wrong code in udev Jan 07 20:28:26 no need to reboot. just fix udev and plug/unplug Jan 07 20:28:37 canvs2321: it is not 3rd party app i created it from scratch. i am sorry if i did not understand question. my app do have access to the copied database and the piece of code i used the shortest i think. Jan 07 20:28:49 or udevadm trigger Jan 07 20:29:09 here it is for samsung: SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev" Jan 07 20:29:25 is your user in the plugdev group? Jan 07 20:29:30 and he's gone Jan 07 20:29:42 jaami-win: what i was asking is you said you are using a file explorer to check that the file was created. I'm saying using the same app that copies the asset to db folder do you have instant access after writing it? Jan 07 20:30:32 canvs2321: problem with device is that its driver is not available for windows. i have to copy apk everytime to install it on mobile. copy is not issue. issue was the databse which app copies from assets folder to database folder. Jan 07 20:31:08 sounds like your copy code doesn't happen ebfore your acess code and you need to check the results of everything Jan 07 20:31:17 throw some logging statements in there Jan 07 20:31:18 jaami-win: i understand that, but was your check of database being copied being checked by 3rd party file explorer? or by your app not having access after it was copied Jan 07 20:31:40 i'd bet it's not the method you use to launch it, but the fact that you launch it twice Jan 07 20:32:03 canvs2321: my app has no such file eplorer to see if it exist at right place Jan 07 20:32:14 jaami-win: yes it does Jan 07 20:32:26 you have full access to check if a db in your apps /data/ folder exists Jan 07 20:32:52 canvs2321: oh okay, i dont know how, :) plz let me know Jan 07 20:32:54 jaami-win: i'm just saying don't rely on other apps to check for files, use your own Jan 07 20:33:08 box restart didn't help Jan 07 20:33:28 daf182: where did you get youd idVendor ? Jan 07 20:33:32 from Jan 07 20:33:44 https://developer.android.com/tools/device.html Jan 07 20:33:53 daf182: use lsusb -v Jan 07 20:34:05 daf182: find your device and look for idVendor Jan 07 20:34:21 if(new File(getDatabasePath("ecodes.db").getPath()).isFile()){bleh;} or such :) Jan 07 20:34:28 What is the state for when a view is selected but I don't release the finger on the view, instead I drag it away from it? Jan 07 20:35:19 jaami-win: i've been been away from code for awhile, but you can simply use a File to check if it was created, cuz your app has access to check Jan 07 20:35:20 canvs2321: uh, right, that is another way to debug on device. Thanks :) Jan 07 20:35:46 yep :) Jan 07 20:35:49 neither my Samsung Galaxy is there nor my Keon Jan 07 20:36:16 daf182: well... try different usb port? Jan 07 20:37:05 canvs2321: yes, that was my mistake that took my time. i was thinking about that but did not try it. i was dam sure the process is ok and code has no issue. i was thinking that there might be some permission issue Jan 07 20:37:18 sorry, Keon is there as Qualcomm, Inc. Jan 07 20:38:48 jaami-win: i just know that on some devices, the updating of a folder structure using a file explorer can be delayed. But if you check using your app by trying to read/write etc, you can get immediate results. And for the delayed updates, it's mostly been on Sdcards, so for an app to not be able to read /data/ seems off. Which file explorer where you using? Jan 07 20:38:49 Does anyone know what I'm talking about? Jan 07 20:38:50 is there any setting on the devices that I might have missed? Jan 07 20:39:21 compac: It'd have no state once the pointer leaves the views bounds Jan 07 20:39:50 daf182: other than turning on usb debugging, no. Jan 07 20:40:44 SimonVT, I'm using a selector to change the background color of the textvew selection inside a spinner and I've noticed that behavior defaults to the blue-ish color. I want to change it if possible Jan 07 20:40:59 If I am using an Adapter to support different ViewItemTypes, should I still use ViewHolders? Jan 07 20:41:08 daf182: udevadm control --reload-rules Jan 07 20:42:11 canvs2321: thats is probably builtin file epxlorer its name is 'File'. the defualt one i guess. you are right, i will keep in mind that thing from now on Jan 07 20:43:08 jaami-win: no problem, just keep using your code&your app to check things are legit. Hard to trust 3rd party as you can't debug :) Jan 07 20:44:28 canvs2321: yes, that is true. i already have bad experience with JS framework Sencha Jan 07 20:44:49 Anyone here know anything about Spring's rest framework? Jan 07 20:45:12 compac: Maybe you're seeing the listSelector instead of your views background Jan 07 20:45:31 daf182: step one: is your user in the plugdev group? run 'groups' in a terminal and see. Jan 07 20:45:41 daf182: then, 'lsusb' and make sure the id of your phone matches Jan 07 20:46:13 SimonVT, I don't believe it's possible to do it using xml and it's not worth programatically just for the color. Jan 07 20:46:58 It probably is, somehow Jan 07 20:47:48 dragon: the is one line including my username and plugdev also Jan 07 20:50:46 How would you tell a user he doesn't have an internet connection and therefor can't use your app? Toast? Dialog? Jan 07 20:51:46 output of lsusb: http://pastebin.com/xNAZmtT0 Jan 07 20:51:52 autrilla: I would use Dialog or a "empty" message built into the layout. Jan 07 20:52:19 If the app is truly useless without an internet connection just show it in the layout Jan 07 20:52:39 SimonVT, mostly useless... It's kind of a social network Jan 07 20:53:00 I guess I could use caching or something Jan 07 20:53:06 So is facebook, I don't need an internet connection for that Jan 07 20:53:24 Also, I have Categories, which have an image. Where would you store that image? Jan 07 20:53:38 new OnClickListener() { how do i get the context from here, ie the activity instance that is doing this? } Jan 07 20:53:45 if i plug the device only the charging starts, no notification from the ubuntu that a devices has been plugged in, is it normal? Jan 07 20:53:48 I think I'm switching from parse.com to appengine Jan 07 20:53:55 Houte, where is the OnClickListener? Jan 07 20:53:59 Any help with this question? Jan 07 20:54:00 http://stackoverflow.com/questions/20981634/should-i-use-viewholders-if-i-use-different-viewitemtypes Jan 07 20:54:19 OuterClassName.this Jan 07 20:56:16 Can I store my objects on App Engine? Jan 07 20:56:33 i put the udev rule into 51-android.rules Jan 07 20:56:36 daf182: no, it's not normal. either usb debug is turned off on the device, or you have a charge-only usb cable. however since you said it worked when you launched it via sudo, I suspect neither is true and something else is confusing you Jan 07 20:56:56 daf182: step one: is your user in the plugdev group? run 'groups' in a terminal and look for plugdev. Jan 07 20:57:31 daf182: step two, look at 'lsusb' and make sure the vendor ID you have in your udev rule is the same as the one shown for your phone Jan 07 20:58:46 dragon: I'm using this cable to push apps to my Geeksphone Keon, Jan 07 20:59:37 dragon: plugdev is listed with 'groups' Jan 07 21:00:04 anyone know if CameraPosition implements Parcelable? Jan 07 21:00:16 dragon: lsusb does not list the phone at all Jan 07 21:02:06 alexfu: If your ide or the documentation does not show that it implements parcelable, then it doesn't implement parcelable Jan 07 21:03:05 i plugged in my wife's Samsung Galaxy S3 Mini, and it was listed by lsusb Jan 07 21:03:39 there is no SIM nor Memory stick in the phone! Jan 07 21:03:43 does it matter? Jan 07 21:03:55 daf182: no Jan 07 21:03:59 :( Jan 07 21:04:05 Would you store images that are permanent in the app (i.e. an image for a category) or on the internet? Jan 07 21:05:30 the phone was factory reset and no google account is set Jan 07 21:05:46 autrilla: if the image is never going to change... ever and if it's of reasonable size then why waste bandwidth to download it? Jan 07 21:16:19 well, strange I went to Settings -> Wireless and Network -> USB settings is greyed out Jan 07 21:17:42 daf182: if it worked when you did the sudo version, which you said it did, then you're misreading lsusb or the phone isn't plugged in correctly Jan 07 21:18:04 daf182: it might not be an obvious name, compare lsusb with it plugged in and with it not Jan 07 21:18:42 USB setting is enabled if i put an sd card into Jan 07 21:19:21 if it DOESN'T work with that cable with sudo, and I misread you, then either the cable isn't a data cable or usb debugging isn't turned on Jan 07 21:20:00 dragon: sorry were did i say sudo? Jan 07 21:20:48 where* Jan 07 21:21:59 ok, apparently ppl told you to try it and you never replied, I misunderstood. Then either your cable is wonky or you're not in usb debug mode at all on the phone. Jan 07 21:22:21 dragon: i did enable the USB debugging on the device, and lsusb does not show the phone Jan 07 21:22:42 then your cable is broken or your phone is broken Jan 07 21:22:49 or your laptop is broken Jan 07 21:22:54 :D Jan 07 21:22:57 daf182: is there an icon in your status bar that represents usb debugging? Jan 07 21:23:00 i'm using desktop ;) Jan 07 21:23:15 well, whatever. If it's not getting a low level USB connection event, then you've got issues Jan 07 21:23:22 daf182: you probably have a cable w/o data Jan 07 21:23:50 unplug the phone, plug it in, run dmesg, and look at the last half a dozen lines and see if there are USB errors occuring Jan 07 21:23:50 unless you've used the same one b4 and it has worked in the past Jan 07 21:23:52 If I want to use Volleys NetworkImageView with a Photoview (from https://github.com/chrisbanes/PhotoView), am I screwed? Because it sure feels like I'm screwed Jan 07 21:24:00 Since I can't use multiple inheritance Jan 07 21:24:24 And I don't have access to extend one to be the other myself Jan 07 21:24:55 alexfu: how is that icon look like? Jan 07 21:24:59 yiati: have u looked at Picasso? Jan 07 21:25:02 If only NetworkImageView was open source so you could copy the implementation to a PhotoView subclass Jan 07 21:25:37 daf182: just pull down your status shade and see if usb debugging is enabled Jan 07 21:25:37 alexfu: I have but I have already integrated Volley very much into my app, and would like to bring Photoview in Jan 07 21:25:48 yiati: gotcha Jan 07 21:26:10 SimonVT: I could do that, but that defeats all of the gains of using an Open Source project Jan 07 21:26:48 SimonVT: Plus there are a lot of classes in PhotoView that I would have to bring into my project Jan 07 21:27:06 Feels like I'm not going to get anywhere with my constraints Jan 07 21:27:12 Uh.. What? Jan 07 21:27:29 i think the phone is gonna be the problem Jan 07 21:27:34 it should be Jan 07 21:27:40 MyNetworkedImageView extends PhotoView .. copy implementation Jan 07 21:27:54 Adapt if there are slight incompatibilities Jan 07 21:29:25 as I'm using this cable to push apps to my Firefox OS based Geeksphone Keon, i also have a Samsung Galaxy S3 Mini here wich was recognized be lsusb Jan 07 21:29:41 but this this Galaxy Mini can not be recognized Jan 07 21:31:05 there is no difference if i plug in or out the phone in the output of dmesg Jan 07 21:32:34 heh. i've got 2 keons on the table right now infact Jan 07 21:33:26 sounds like the mini isn't in debug mode, or has some other deep seated issue, then Jan 07 21:36:20 hi Jan 07 21:36:28 can i switch the theme color of my android phone? Jan 07 21:36:42 root it Jan 07 21:36:48 a friend told me it works but i don't have an option for that in settings->display->theme Jan 07 21:36:55 android 4.4 google nexus Jan 07 21:36:59 not the place to ask, though Jan 07 21:38:24 anyone here use intellij idea and can tell me how to stop the logcat from automatically scrolling back to the bottom of the output every time something new is output? Jan 07 21:38:36 pfn: the is not owned by me yet Jan 07 21:38:51 but I won't by it in this case Jan 07 21:38:53 unclick the scroll to bottom button Jan 07 21:39:06 or just hold it while it's scrolling and it should lock Jan 07 21:39:33 i cant find a scroll to bottom button i looked Jan 07 21:39:48 oh isee it Jan 07 21:40:06 all it does is scroll me to the bottom. if i click it i got to the bottom and it goes gray. if i move it comes un gray Jan 07 21:40:19 if any output after that it auto scrolls to the bottom Jan 07 21:40:20 still Jan 07 21:40:40 its not a toggle. its a "do" Jan 07 21:40:55 <_genuser_> hello all. I have a different fragments loaded in a FrameLayout. on orientation change, it load the one created in onCreate. What do I need to look at to preserve the loaded fragments and their data? Jan 07 21:41:22 i dont want to HOLD it either. i need to move back and forth within the log and inspect it without the editor keeps pulling the rug from under me Jan 07 21:41:50 well, i give up, talk to my friend though whether he could used at all for dev purposes Jan 07 21:41:57 thanks guys for the help Jan 07 21:42:39 i440r: you using windows or another system? if windows just open a command prompt, and right click, it'll pause so you can scroll Jan 07 21:42:43 linux Jan 07 21:43:29 I440r: if you click on a line, it'll lock it in place Jan 07 21:43:35 in intellij Jan 07 21:43:38 not shell Jan 07 21:43:40 well just ctrl-c to stop it, read what you need then, resume logcat. But best bet is to use your IDE to filter what you need Jan 07 21:43:45 I440r, it'll hold after a while Jan 07 21:43:51 click the scroll lock button then Jan 07 21:43:53 pfn tried that too. any output and BAM right back at the bottom Jan 07 21:44:31 i440r: but if you are interested in a crash stop output Jan 07 21:44:48 doesn't scroll down for me, unless it's locked to bottom Jan 07 21:44:48 there is not scroll lock button unless you mean the one on my leyboard Jan 07 21:44:53 no Jan 07 21:45:00 it's on the right, looks like a box with a down arrow Jan 07 21:45:01 Can anyone help up with this question? http://stackoverflow.com/questions/20981634/should-i-use-viewholders-if-i-use-different-viewitemtypes Jan 07 21:45:41 eghdk: use what is necessary? Jan 07 21:45:44 its not a crash stop, its about 60 or 70 lines of debug output from my app interleaved with other stuff. i scroll back to read through them and im getting output every 1 or 2 seconds. no way to take it all in Jan 07 21:46:09 viewholders are a bit of an abstraction for a redundant type of data Jan 07 21:46:14 i see two grayed out arrow buttons. one UP one DOWN. below that is a squiggly box and below that is a "Scroll to bottom" button Jan 07 21:46:31 none of the buttons to the right of the logcat stop the auto scroll to bottom Jan 07 21:46:43 What would you use for in-app data storage? For something permanent in the app meant to be read and put into an Object. XML or JSON? Jan 07 21:47:07 i440r: you can filter based on anything, example your packagae name etc... Jan 07 21:47:54 autrilla: what kind of data,for persistance just use a sharedprefence, or db etc Jan 07 21:48:06 canvs2321, categories with an image Jan 07 21:48:11 and an id Jan 07 21:48:19 Non-modifiable by the user Jan 07 21:48:39 that could work but i dont want to filter specifically, i want to NOT keep having the rug yanked out from under me - sometimes i dont want filers, ALWATYS i dont want auto scroll Jan 07 21:48:52 in fact i pretty much disable all auto wahtever features in an idea Jan 07 21:49:00 autrilla: use need more detail. If just simply need an image based on an id, use a hashmap&local datat Jan 07 21:49:01 auto indent. auto brace, always disable Jan 07 21:49:21 use = u Jan 07 21:49:30 I have set setContentView( myView ); I define da button in activity_main. How do I find the view by ID because I get nullpointerexception. Jan 07 21:49:45 canvs2321, no, not that. Category object, String name, int id; Bitmap bitmap; Jan 07 21:49:51 i440r: what i'm saying is if you are reading logcat for your specific app, filter it Jan 07 21:49:55 bitmap would be a R.drawable.blah Jan 07 21:50:17 <_genuser_> Houte: you trying to get the View? Or the button? Jan 07 21:50:41 autrilla: what i'm saying is if you have an id&name&category, use that Jan 07 21:51:24 <_genuser_> Houte: you should be able to use R.layout.activity_main to reference the view on call to setContentView(); Jan 07 21:51:24 Houte: you do setContentView on your current layout&use findViewById() based off that Jan 07 21:52:13 canvs2321, what? I'm asking how to save it, in terms of a file. Not in code Jan 07 21:52:55 <_genuser_> how do I preserve loaded fargments across screen rotation? Jan 07 21:53:09 If I create a Button programmatically in an Activity, will it automatically be associated with the set view then? Jan 07 21:53:23 autrilla: how to save is up to you. if it's just key/value use sharedpreferance, other than that, there are options Jan 07 21:53:40 canvs2321, it has to be distributed by the ap Jan 07 21:53:43 app Jan 07 21:53:47 It is static data Jan 07 21:53:49 houte: if you create a button you have to have it assigned to the current LAYOUT, so... Jan 07 21:53:56 It doesn't make any sense to put it in the code Jan 07 21:54:18 autrilla: can you post anything to give some light on what you want? Jan 07 21:54:26 canvas yes i know, not always what i want but yes it would help in this case. i would STILL like to permanantly disable auto scroll to bottom on output and keep that preference across launches. not have to keep setting a filter every time i launch Jan 07 21:54:42 was hoping this was possible, does not seem to be Jan 07 21:55:21 I think it's clear... I have a set of categories on my app. They all have an image and an id to identify them. Users cannot create them. They are predefined. How do I store them (aka in what format) to make the reading of that data and deserialization to an object easy? Jan 07 21:55:31 i440r: anything and everything is possible! just kinda of vague, are you wanting only errors to be posted, or just all logs from your app? Jan 07 21:56:27 autrilla: you decide that! find what is best for your situation. Seems if you only need and id to identify, then that should be easily accomplished? Jan 07 21:56:53 shit i'm very drunk&i'm talking to 3 or more, sorry if i get confused :) Jan 07 21:56:54 but if i use setContentView( myView) where myView is a java class. how can i then also have an xml layout that I use? Jan 07 21:57:19 houte, using setContentView you are setting an XML layout Jan 07 21:57:22 Meh, just XML Jan 07 21:57:33 Where should I put that file? Jan 07 21:57:42 values? Jan 07 21:57:57 autrilla, if you are solely using xml, that has to be predefined Jan 07 21:58:15 but values from actions, can be stored anyway you want Jan 07 22:00:01 autrilla: you can store anything you deem as valueable, anywhere, apps storage or sdcard, just find how you want it defined Jan 07 22:00:14 canvas all i want is for the logcat to STOP auto scrolling to the bottom on output. i want to select disable this feature and NEVER have to select disable this feature again. i want to disable it once and it stay disabled forever more - i NEVER want that feature wether im filtering or not.. i do not believe this is currently possible in intellij Jan 07 22:01:08 I440r: well, intellij is open source ;) Jan 07 22:01:18 i440r: basically, using a PC or linux, just disable the terminal when you reach an error. I don't know what you want stopped and why, but just stop it :) Jan 07 22:01:52 i440r: i just don't know why you want it to stop Jan 07 22:02:00 what are you looking for? Jan 07 22:02:25 JesusFreke, lol no way im going to be diving into those sources :) Jan 07 22:02:35 I440r: why not? Jan 07 22:02:39 I have before Jan 07 22:03:15 canvas because if im scrolling through stuff im reading, i want to be able to actually read it, soak it in, think about what it means then move no without the editor keeps resetting its position for me constantly Jan 07 22:03:47 maybe ask on their mailing list if they would accept a patch that changes that functionality (or rather, introduces a persistant option to change it), and then implement it as discussed and submit a patch Jan 07 22:04:01 i440r: what i'm saying is if you can't pause it, then stop it! then continue once you have read it :) Jan 07 22:04:12 JesusFreke, i dont code c++, i hate looking at object obfuscated c++ sources, i can file a feature request the devs of this editor are very helpful :) Jan 07 22:04:18 intellij is java Jan 07 22:04:52 well i dont really code java either outside of the android context Jan 07 22:05:08 JesusFreke, the entire editor is developed in java? Jan 07 22:05:25 that actually impresses me more about the abilities of its developers Jan 07 22:05:26 java, or java-compatible languages Jan 07 22:05:27 http://lpaste.net/98144 <-- genuser, that is the relevant code. the activity_main.xml, forgot about it. i dont have an xml for my current activity/view i think. Jan 07 22:05:36 but yes, mostly java Jan 07 22:06:21 its about a BILLION times better than eclipse Jan 07 22:06:39 agreed :) Jan 07 22:07:02 using eclipse makes my teeth itch Jan 07 22:07:12 isn't it coke that does that ? Jan 07 22:07:25 and eclipse Jan 07 22:14:00 Hello. Any recommendations re: which cards library one should be trying out? :) Jan 07 22:15:29 n20: just follow Ui guidelines&profit? Jan 07 22:15:57 canvs2321: I didn't know there were UI guidlines for the cards. Better check it out :)) Jan 07 22:16:12 i didn't think so either ... Jan 07 22:16:20 Or maybe you meant general guidelines. Hmm. :( canvs2321 Jan 07 22:16:30 g00s: Did I misread? :( Jan 07 22:17:06 n20: i meant just that, just follow guidelines&follow that. Jan 07 22:17:29 Why do you need a library to follow guidelines? Jan 07 22:17:39 the guidelines don't say anything about cards … so whats the point Jan 07 22:18:12 i'm pretty sure if there are 'cards' there's a guideline :/ Jan 07 22:18:31 canvs2321 enlighten me please :) Jan 07 22:18:40 no need to add extra stuff just to simply, make a UI Jan 07 22:18:44 Hey guys, I need some quick java help :) Jan 07 22:19:15 I have an arraylist with 8 numbers per entry seperated by spaces. I want to compare a set of 8 numbers to each arraylist entry Jan 07 22:19:34 To do that, I need a forloop to loop through the arraylist, and tokenize each entry (as they are strings) Jan 07 22:19:45 g00s: it's simple. If there is something called 'cards' then there is a guideline, and that guideline is set by general margins,paddings etc... Jan 07 22:19:57 But the only way I've every tokenized anything is String[] name = tokenize; Jan 07 22:20:03 canvs2321 okok, link please Jan 07 22:20:08 But if it is in a forloop, that would be reinitializing it each time Jan 07 22:20:10 What can I do? Jan 07 22:20:54 AlexGraal well i guess without knowing more, you could make an ArrayList of Sets instead Jan 07 22:21:02 the link is, cards = something specific, granted something specific has a guideline, and android has those, soooooo. ? cards is just a word created by guideline creating ppl, what's the ? Jan 07 22:21:08 Sets have set membership functions like difference, etc Jan 07 22:21:26 Ooooh I don't know much about those. I'll go google it though. thanks for the idea. Jan 07 22:22:27 i just don't get the need to add a library to just comform to what a 'card' is Jan 07 22:23:33 shit i saw on g+ that someone asked about the better of 2, but it envolved 2 compeletly different UI's, i assumed a card was a way of displaying content, but his difference was changing the whole UI, viewpager and all Jan 07 22:24:20 but with out much thinking, i assumed a card was a subset of data, not a whole activity Jan 07 22:25:08 &fyi, i'm very intoxicated :) i try to keep thinking to a minimum with excellent effort, ppl try to make things harder :P Jan 07 22:27:05 I dont get it, how do I use a Button with a class that extends View? I do setContentView(myView); but how can I use buttons with this? examples just show how to use setContentView with a xml-layout, not a class. Jan 07 22:27:12 canvs2321: I'm all for creating my own cards, it's just that I don't really have that designers edge. I think I'll start by creating a 9patch though, with a bit of drop shadow Jan 07 22:28:04 n20: what i'm saying is if creating a card is just adding a drop shadow, why would you need a library? Jan 07 22:28:53 canvs2321: There's a little more to it, such as animations and stacking and whatnot. I'm not completely sure myself exactly what I'm expecting form a card, so I asked the channel for advice on which ones they'd recommend. :) Jan 07 22:28:55 n20: just read the android guidelines for UI&prosper Jan 07 22:29:48 animations and all that all granted by you! just read about margins&such, and go from there. Don't over think it Jan 07 22:30:01 canvs2321: All I've come to think is that the cards paradigm would look fancy pants in the app I'm working on, and I have this pseudo card that looks really bleh at the moment. lol :) Jan 07 22:30:28 n20: show your bleh, and go from there :) Jan 07 22:30:50 n20: don't make it hard, just make it simple and clean Jan 07 22:31:04 * n20 will do his best to create awesomeness. Jan 07 22:31:38 that works :) Jan 07 22:31:47 K.I.S.S. :p Jan 07 22:32:37 you'll never make everyone happy. Just give the option to keep them babies satisfied :) Jan 07 22:32:57 While I'm here... Jan 07 22:34:08 I read somewhere that a good step towards a responsive "list" design is to use a GridView instead, showing like 1 column in portrait on phones, and 2 or more in landscape depending on screen size Jan 07 22:34:34 n20: just conform to android guidelines and if ppl bitch, tell them to boot up and load thie iOS :) Jan 07 22:34:52 n20: you can set auto_fit Jan 07 22:35:07 canvs2321: Ie, X number of cols? Jan 07 22:35:27 Cool. I've barely used GridView, so I'm a bit lost on that end. Jan 07 22:35:36 n20: you can set layouts based on size of device Jan 07 22:35:43 Yeah. Jan 07 22:36:25 Can noone help me? Jan 07 22:36:27 I dont get it, how do I use a Button with a class that extends View? I do setContentView(myView); but how can I use buttons with this? examples just show how to use setContentView with a xml-layout, not a class. Jan 07 22:36:47 ListView in a few, GridView in a few --> use AbsListView when addressing the element instead of ListView or GridView Jan 07 22:37:06 houte: once you set the content view, you can use findViewById() Jan 07 22:37:38 Have some questions about transferring ownership of an app between developers Jan 07 22:37:52 Right now, we are looking to take over ownership of a published app from another developer Jan 07 22:38:03 is there a way to do this if they are unwilling to give us the certificate? Jan 07 22:41:36 canvs: but how does that let me find the Button_id if i havent set the layout it is defined in with setContentView(layout_that_holds_button) ? Jan 07 22:42:31 houte: once you set it with setContentView, you can do a findViewbyId()..... Jan 07 22:44:25 for any view defined in any xml?¨ Jan 07 22:45:13 Android website tells me to download Java 6, this piece of shit isn't compatible with Java 7 Jan 07 22:45:20 so I goto Oracle website, and try install Java 6, right? Jan 07 22:45:26 but it asks me for Oracle account login Jan 07 22:45:30 wtf is this? Jan 07 22:45:51 I watched the 2010 google i/o Dobjanschi's presentation about Developing Android REST Client Applications when the 3 best ways to deal with it always involve a ContentProvider. But from the android documentation I read that a ContentProvider is usually only necessary when you want to present data to other applications, which is not my case. I want only my application to access it. My question is, is it really best to use ContentProvider Jan 07 22:45:52 even if I'm not sharing data? Jan 07 22:46:06 Why Android use old Java 6 outdated legacy old software with security vulnerabilities, its End-of-Life (EOL) and Java 6 will leave my system open to attacks Jan 07 22:46:24 and Google requires me install vulnerable unmaintained deprecated software to do Android development? Jan 07 22:46:48 And how am I supposed get Java 6, when it requires account login Jan 07 22:48:19 pull requests welcome Jan 07 22:48:54 s/when/where Jan 07 22:48:54 smallfoot-: I use Java 8 to compile all my stuff. Jan 07 22:50:55 JakeWharton, I installed Java 7, and when I try start Eclipse it doesn't start Jan 07 22:51:06 also Google uses some very old version of Eclipse :( Jan 07 22:52:53 intellij > eclipse Jan 07 22:53:02 maybe Jan 07 22:53:10 but Eclipse is what Google recommends Jan 07 22:53:25 no it's not Jan 07 22:53:26 yawnworthy Jan 07 22:53:26 Google recommends you use an shit old version of Eclipse with an shit old version of Java 6 that is vulnerable Jan 07 22:53:33 yiati, its not? Jan 07 22:53:42 android studios probably Jan 07 22:53:59 smallfoot- nope, Android Studio is what they recommend which is a custom Android made skin over Intellij Jan 07 22:54:15 It's not a skin. Jan 07 22:54:18 Android Studio support is fantastic now Jan 07 22:54:20 no they recommend Eclipse which is part of their ADT Jan 07 22:54:25 this Android Studio is just beta Jan 07 22:54:25 JakeWharton: yeah I know Jan 07 22:54:43 smallfoot- It is easily usable now, it's far past it's rough stage Jan 07 22:54:51 "Android Studio early access preview" -- Google Jan 07 22:54:56 oh Jan 07 22:55:02 well ADT works out of the box Jan 07 22:55:09 with Anroid Studio I have to configure and setup things? Jan 07 22:55:16 then i cant follow advice on stackexchange Jan 07 22:55:36 use your adt, your lose. Jan 07 22:56:04 smallfoot- you won't find harldy anything lately on StackOver flow for ADT compared to Android Studio support Jan 07 22:56:05 if I use Android Studio, I can import my project from Eclipse? or I must create new project? Jan 07 22:56:25 You can export from Eclipse, and import into Android Studio. It's automated at this point Jan 07 22:56:47 http://developer.android.com/sdk/installing/migrate.html Jan 07 22:57:04 I cant export from Eclipse, because I can't start Eclipse, because ADT contains an Eclipse 3.6 which depends on Java 6, and I cant download Java 6 from Oracle without an Oracle account Jan 07 22:57:14 moving between eclipse and intellij/android studios is a trivial process. Jan 07 22:57:23 you don't need to export Jan 07 22:57:48 Once you've grasped the basics of the gradle android plugin yes it is trivial Jan 07 22:57:53 just create a project in intellij pointed at your eclipse project, may have to configure libs ext but thats about it Jan 07 22:58:00 meh gradle Jan 07 22:58:11 Nonetheless I encourage learning the android gradle plugin, it's amazing Jan 07 22:58:20 meh gradle Jan 07 22:58:34 * jug6ernaut is happily using mvn Jan 07 22:58:59 You don't really need to know it anymore at this point since it's practically baked into Android Studio at this point Jan 07 22:59:24 I use maven too Jan 07 22:59:26 with gradle Jan 07 22:59:38 Why Google even have ADT when you cant run it without Java 6, which you cant download from Oracle without an Oracle account? Jan 07 22:59:41 meh mvn + more Jan 07 23:00:07 smallfoot- it should work with java 7 ? Jan 07 23:00:17 should work with java 7 Jan 07 23:00:21 should work with java 8 Jan 07 23:00:33 ADT (Eclipse) should work with Java 7? Jan 07 23:00:34 grab latest eclipse, put java 7 on, you should be set Jan 07 23:00:34 if you want to use eclipse ;) Jan 07 23:00:43 of course Jan 07 23:00:49 oh Jan 07 23:01:06 It definitely should run with Java 6 which you definitely can get without an oracle account Jan 07 23:01:16 lol Jan 07 23:01:17 java 8 - hmm, i wouldn't bother with that Jan 07 23:01:48 i wouldn't ether, j/s it should lol. Jan 07 23:01:49 /for running software/ Jan 07 23:01:55 I have no idea what my layout is, is there some default layout? Jan 07 23:02:26 ... Jan 07 23:02:29 yiati, ya with Java 6 it runs, but idk how to get that without an Oracle account Jan 07 23:03:05 http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html Jan 07 23:04:10 Hmm that's jre Jan 07 23:04:22 What OS are you on that doesn't have Java 6? Jan 07 23:04:38 JRE doesnt work Jan 07 23:04:40 need JDK Jan 07 23:04:45 Windows 8.1 Jan 07 23:05:27 Google found it Jan 07 23:05:28 http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR Jan 07 23:05:45 But seriously use Android Studio Jan 07 23:05:58 seriously Jan 07 23:06:27 * jug6ernaut says that as a person who is forced to use eclipse every day Jan 07 23:06:51 http://tools.android.com/tech-docs/new-build-system/user-guide Jan 07 23:07:49 yiati, when you click "I accept" and click on the link, it asks for Oracle account Jan 07 23:10:03 I guess I could use a third-party mirror: http://ghaffarian.net/downloads/Java/JDK/ Jan 07 23:10:12 How do I best tell the MainActivity to do something? When the game is over I want to display a button so the user can confirm by pressing it and then get back to main menu. How is this done best? Jan 07 23:13:20 Houte: http://developer.android.com/reference/android/widget/Button.html Jan 07 23:14:05 yiati: i know how to use the button Jan 07 23:14:22 Then you're golden, what else do you not know Jan 07 23:14:29 problem is how I tell the Activity to display it since I dont want to do that from one of my game classes. Jan 07 23:15:15 The setContentView(R.layout.content_layout_id); with a layout that has the button in it Jan 07 23:15:50 tell the activity what layout to associate with it in the onCreate() Jan 07 23:16:18 youre missing the point. Jan 07 23:16:26 i know how to create a button, already did that. Jan 07 23:16:31 Cool Jan 07 23:17:05 the questions is when the game finishes, how do I otify the Activity. Right now a class called Game knows that but it needs to tell my Activity class that. So how? Jan 07 23:17:25 Make a custom listener Jan 07 23:17:45 http://stackoverflow.com/questions/8292712/android-custom-event-listener Jan 07 23:18:03 I abuse custom listeners because they are awesome Jan 07 23:19:45 That post wasn't the greatest example Jan 07 23:20:16 This one is specifically made for AsyncTask listeners, but it's a good example and you can generalize it to what you want, http://stackoverflow.com/questions/9963691/android-asynctask-sending-callbacks-to-ui Jan 07 23:20:48 Doesn't take much code either Jan 07 23:27:43 ty very much Jan 07 23:27:56 no need to use extend? because my classes already do that Jan 07 23:31:09 You shouldn't need to extend anything to get a listener going no. Your custom listener should be an interface that the class you want listening in to implement Jan 07 23:31:31 Which would be your MainActivity in your case Jan 07 23:32:14 So "public class MainActivity extends Activity implements DoneWithGameListener { ..." Jan 07 23:49:37 Is the Eclipse Memory Analyzer still the best memory analyzer in town? Jan 08 00:07:56 lol. you used 'eclipse' and 'best' in the same sentence Jan 08 00:13:25 are there any UI libraries you guys reccommend? Jan 08 00:13:40 i have a spinner with many options Jan 08 00:13:57 and i want it to take advantage of the screen space better Jan 08 00:14:08 for a simple config screen Jan 08 00:14:22 (textview explanation, spinner with options, and OK button at the bottom) Jan 08 00:14:27 don't spinners take many options? Jan 08 00:15:06 they do, but i was wondering if theres any way to use it without forcing the person to click on the spinner's button to open the dropdown Jan 08 00:15:34 then you don't want a spinner, you just want a layout with vertical children? Jan 08 00:16:14 well functionally it does what a spinner would do, meaning a dropdown with a bunch of choices, and some way to access the current choice from java Jan 08 00:16:41 but you said you don't want to have to click to show dropdown... Jan 08 00:17:04 you know about fragments? Jan 08 00:19:47 &u are aware that anything visually you want to happen with android is possible right? you don't have to stick to the standard android UI widgets. Anything is possible :) Jan 08 00:19:50 i know that fragments are a thing, and i've read some about them, but never acutally used them Jan 08 00:20:13 just wondering if there's a simple /concise way to pretty up a spinner Jan 08 00:20:14 well learn them, they are very useful, and the future for now :) plug&play Jan 08 00:23:58 they are super easy to port from current activities, and you can have unlimited fragments pulled in/out of an activity to keep things fresh and less work :) Jan 08 00:39:53 hm, what new in RxJava 0.16.0 Jan 08 00:42:39 https://github.com/Netflix/RxJava/blob/master/CHANGES.md Jan 08 01:02:27 When generating an android google maps API key, should I be using the SHA1 from my debug keystore or from the keystore I use to sign my applications with? Jan 08 01:05:21 or really both? Depending on the situation Jan 08 01:24:03 hi there, i would like to know, is it possible to read binary files written out to C in an android app? Jan 08 01:24:54 I have read that you can read in a bunch of bytes from a file. However, I have no idea how you would convert this array of bytes into something like a float array Jan 08 01:27:16 ashiswin you could use nio FloatBuffer, or just DataInputStream Jan 08 01:37:37 say i need to insert a row into my db from a listview button click, my database extends sqlitedbhelper. should i just pass the db object to the adapter or should i be calling a method inside my activity to do the db stuff? Jan 08 01:46:11 ok thanks, but is there any way to read in structured data, like data that was organized into structs and written out, in java? Jan 08 01:48:44 you'd do better to define some common format i think than try and guess what the compiler did to those structs Jan 08 02:22:11 ashiswin: do you control the generation of the file? Jan 08 02:22:19 if so, you might look into using protobufs Jan 08 02:22:44 Is there a web connectivity broadcast reciever? Jan 08 02:23:15 I think there's one for a network state change Jan 08 02:23:47 http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Jan 08 02:29:25 thanks Jan 08 02:29:42 perfect! Jan 08 02:56:30 Any that have some time? I have a app, and when i push the "hardware" menu button on my S4 the app is force closes.. The app should not have any menu, so do not quite understand why. Jan 08 02:56:51 apekatt: http://imgur.com/jacoj Jan 08 02:58:33 desmin88: Nice! give me two seconds .. **** ENDING LOGGING AT Wed Jan 08 02:59:59 2014