**** BEGIN LOGGING AT Thu Mar 06 17:53:55 2014 Mar 06 17:56:17 Right right. I am strictly on native Android, as is the API. And as far as I can tell, these keys don't expire, though it was exactly a year give or take a few days that this occurred. It's all puzzling, and unfortunately I can't get at the console. **** ENDING LOGGING AT Thu Mar 06 18:00:42 2014 **** BEGIN LOGGING AT Thu Mar 06 18:02:19 2014 Mar 06 18:04:05 I'm having trouble finding a good example of the ZXing library being integrated into an app. Can anyone point me to an example of that? Mar 06 18:04:32 still catching up, just started the UI lab from week 4...how do you expand an xml alyout into something you can attach as a footer view? don't see it in the examples unfortunately Mar 06 18:04:49 I think what I want to do is run a SurfaceView and send images to be processed by the library Mar 06 18:04:57 but maybe I'm missing something Mar 06 18:05:37 WOW Mar 06 18:05:42 View optimization makes a HUGE difference Mar 06 18:05:43 FYI Mar 06 18:05:44 FWIW **** ENDING LOGGING AT Thu Mar 06 18:06:04 2014 **** BEGIN LOGGING AT Thu Mar 06 18:08:20 2014 Mar 06 18:08:21 i have a layout and need to attach it to a subclassed ListActivity Mar 06 18:08:51 Ankhwatcher - Google Maps, Paypal, Path Mar 06 18:10:24 Ologn: that's not really what I meant, but where is the barcode scanner in Google Maps? Mar 06 18:10:34 myke: that channel is empty Mar 06 18:11:00 wtf_: it's #coursera-android Mar 06 18:11:35 thanks ill check it out Mar 06 18:11:42 im interested in taking some courses as wlel Mar 06 18:13:16 The paypal app is quite nice looking except it keeps shoving a splash screen in your face Mar 06 18:27:29 Hello Dev, is it possible to use adb logcat to initiate logging to sdcard and keep the process running when you disconnect usb/adb? Right now when I disconnect the file on the android device stops logging. Mar 06 18:27:54 example: logcat -v threadtime -d -b events -b main -b system -b radio -f /sdcard/download/file.txt Mar 06 18:30:18 In some other non android applications I am able to add a $ to the end of the request, and it will create the session on the device and continue to do said request until the device is restarted, however, i cant get that to work on android. Mar 06 18:47:03 I've had to make a separate test account being as I have already bought my app under my 'normal' account. Problem is to test purchases I need to input another credit card which I don't have. Mar 06 18:47:09 Is there any way around this? Mar 06 18:48:08 go get a gift card Mar 06 18:48:12 10% off at costco Mar 06 18:48:15 is this the example I should be using to get my auth token to then use with fusiontables api? Mar 06 18:48:16 http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html Mar 06 18:48:55 Thanks pfn looks like I might have to do that :) Mar 06 18:49:20 Can anyone help me with my skydrive REST API problem? http://stackoverflow.com/questions/22212373/skydrive-fails-to-upload-a-file-via-rest-api-on-java-android Mar 06 18:50:30 So Mar 06 18:50:48 given the fact that I the first thing I do with a new phone is root it (i.e. I don't care about pre-installed apps, official updates etc) Mar 06 18:50:56 Which one would you suggest: Mar 06 18:51:03 apple741, it's $60 for $54 at costco Mar 06 18:51:13 Galaxy Note 3 (I have big ass hands), S4 or Nexus 5? Mar 06 18:51:20 nexus 5 Mar 06 18:51:22 of course Mar 06 18:52:05 Thanks for the tip pfn , don't suppose you can buy them online and get the code instantly? Mar 06 18:52:51 everything in the note 3 surpases the numbers of the nexus 5... resolution, dpi, processing power... Mar 06 18:52:59 Tee_Pee: Samsung-osity. Mar 06 18:53:16 the nexus 5 is actually LG :P Mar 06 18:53:31 Tee_Pee: How do you like Samsung Link, Samsung Store, S-Voice, TouchWiz, Help, and the twelve other samsung preloaded apps that cannot be removed? Mar 06 18:53:55 Root the phone, flash cyanogenmod Mar 06 18:54:02 Tee_Pee: You could root it, sure, but... the point at which you have to modify a brand new device to gain the capabilities of another, cheaper device, something's wrong. Mar 06 18:54:15 As I said earlier Mar 06 18:54:21 19:50 given the fact that I the first thing I do with a new phone is root it (i.e. I don't care about pre-installed apps, official updates etc) Mar 06 18:54:49 http://stackoverflow.com/questions/600207/android-check-if-a-service-is-running/4976378#4976378 Mar 06 18:55:03 now that i found my service, how do I bind to it?? Mar 06 18:55:31 JeremieDeNoob: via bindService(). Mar 06 18:55:57 freeone3000: but i dotn have the actual service, only the runningserviceinfo object% Mar 06 18:56:51 I am a bit confused over the accelerometer. I thought the whole point of an accelerometer was to give acceleration but if I hold it at a 45 degree angle it shows around 5 (9.8/2 I guess?) even though the phone is still, so I can determine position from acceleration sensor, but I thought I would get the actual acceleration as the name implies. So I thought it would be 0 if I held the phone Mar 06 18:56:51 still no matter in what position and then show values depending on how fast I moved the phone...? Mar 06 18:57:26 JeremieDeNoob: You don't need the actual service, just an Intent and your ServiceConnection callbacks. Mar 06 18:58:12 ok so, note 3 is out of the race Mar 06 18:58:14 s4 vs nexus 5 Mar 06 18:58:15 anothernick: Accelerometer measures forces, in this case, the force of gravity. Mar 06 18:58:21 I bet that's a popular one... Mar 06 18:58:30 so are you saying that i just need to create the intent with the service class (the same way I did to start the initial service) and it will automatically rebind if needed instead of creating a new instance of the service? Mar 06 18:58:33 anothernick: http://developer.android.com/reference/android/hardware/SensorEvent.html#values gives you a pretty great description. Mar 06 18:58:49 JeremieDeNoob: Yep. Mar 06 18:59:34 Tee_Pee: That'd be the nexus 5, again. S4 runs 4.2.2 really shakily, even with a custom rom. Mar 06 18:59:40 freeone3000: but I read somewhere that you have to exclusively call startservice in order to find the service later in the list... so does this mean I dont call the startService if the service already exist? just cast out my intent? Mar 06 19:00:07 in the service does the onrebind get called or on bind? Mar 06 19:00:19 JeremieDeNoob: Yep. And moreover, if your flags parameter includes BIND_AUTO_CREATE, you don't actually need to call startService() first. Mar 06 19:00:29 ahhhhhhh Mar 06 19:00:33 now im starting to get it Mar 06 19:00:36 slightly Mar 06 19:00:47 (this is not like programming iOS I tell you...) Mar 06 19:00:51 JeremieDeNoob: You get onBind(). Mar 06 19:01:04 so I always get onbind? Mar 06 19:01:10 if I'm reading this correctly you can't expand the nexus 5 storage via sd cards? This has got to be a mistake? Mar 06 19:01:15 JeremieDeNoob: The only time you would get onRebind() is if you returned false from your onUnbind(). Mar 06 19:01:28 Tee_Pee: That is correct. Mar 06 19:02:36 JeremieDeNoob: err, true. If you return false, your service cannot be rebound. Mar 06 19:02:47 jesus fuck Mar 06 19:02:51 well what if the app dies Mar 06 19:02:54 JeremieDeNoob: http://developer.android.com/guide/components/services.html is really clear. Mar 06 19:03:05 i read it end to end but still slightly confused Mar 06 19:03:08 JeremieDeNoob: If the app dies you get onUnbind(). Mar 06 19:03:14 talk about a deal breaker Mar 06 19:03:22 but the service keeps running right? Mar 06 19:03:26 JeremieDeNoob: It can. Mar 06 19:03:31 based on what Mar 06 19:04:39 JeremieDeNoob: Based on, like most things, what the runtime feels like. Your service lifecycle is not bound to a given activity, but can still be background-killed. Probably won't, but you have to account for the possibility. Mar 06 19:05:14 JeremieDeNoob: In general, your service will last until you call stopSelf() or stopService(). Mar 06 19:06:00 ok.. i dont really care what if it does or doesnt, to be completely honest, as long as when my app reboots that it rebinds itself to the service (Im creating a usb service so there can be problems if the output and input streams arent closed Mar 06 19:06:01 ) Mar 06 19:06:53 JeremieDeNoob: If you need to kill the service when the activity is killed, you need to call stopService() in your onDestroy(). Mar 06 19:10:09 freeone3000: where are you from? Mar 06 19:10:40 Why does that matter? Mar 06 19:11:41 Hello. Running out of development phones, going to get a new one. Is the nexus 5 a good choice? Mar 06 19:13:01 yes Mar 06 19:13:30 freeone3000: private msgd you Mar 06 19:14:37 so it seems reading a 12 bit number from a byte buffer is a huge pain in the ass Mar 06 19:15:30 especially since java wants everything to be signed and auto promotes any bit operation to an integer and carries the sign Mar 06 19:20:57 This is excruciating... I was just abou to pick the nexus 5 but then I found it has no sd card slot... now it's back to note 3, but the bloatware can go fuck itself, and if I flash Cyanogenmod I lose some of the actually useful features. Mar 06 19:21:04 jonc-1: The only op this matters for is >>, where you'd use >>> Mar 06 19:21:11 the S4 is too vanilla and I don't give two shits about samsungs proximity sharing apps. Mar 06 19:21:11 Tee_Pee: Could go Nexus 4. Mar 06 19:21:32 why is the Y axis defined the opposite for the SensorEvent APi than it really is for the screen? bigger Y values for screen is futher down... Mar 06 19:21:33 nah, it's between these 3 :P Mar 06 19:21:55 anothernick: Because (0, 0) is the top-left corner. History. Mar 06 19:22:05 Tee_Pee: go with the Nexus 5 anyway, you don't need no sd card Mar 06 19:22:59 wouldn't count on that :P Mar 06 19:23:49 it's easy to live without Mar 06 19:24:53 and N5 can use usb sticks Mar 06 19:24:55 unlike N4 Mar 06 19:34:25 apple741, no, go to a store Mar 06 19:34:37 you mean it has usb otg? Mar 06 19:34:42 * pfn has never used usb otg.... Mar 06 19:35:02 only thing I'd want to use is my ssd Mar 06 19:36:25 pfn: Cool thanks for your time and all the great advice :) Mar 06 19:36:36 and my ssd is formatted ntfs Mar 06 19:39:40 I'm trying to get an actionbar with a standard overflow icon. Online, examples show this as three dots in a vertical row. However, the three dots thing never shows up, and if I put too many icons on my actionber, then some just don't show up, unless I hit the menu button. Mar 06 19:40:14 I would like the overflow icon to show up, and when pressed, have it show the secondary options in a sort of context menu. Mar 06 19:42:17 pfn: N5 has working OTG, N4 needs external + kernel hackery because LG screwed up power supplied to USB connector Mar 06 19:42:32 indeed Mar 06 19:43:24 ok guys I have a problem implementing my layout changes in onCreate(), I followed instructions of the second example with pictures that rearrange layouts depending on orientation on launch Mar 06 19:43:39 http://www.codeproject.com/Articles/422431/Handling-screen-layout-changes-in-Android Mar 06 19:44:17 jon: I'm no pro, but in my experience your problem is due to the fact that you have a menu button. Mar 06 19:44:31 (physical) menu button. Mar 06 19:45:21 shmooz, that example sucks.. You'd just use a GridView and set columnCount based on orientation Mar 06 19:45:44 By putting an integer in values/ and values-land/ Mar 06 19:45:48 it's causing a force close when I say if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { setContentView(R.layout.main_x); } else { setContentView(R.layout.main_y); } !!! Mar 06 19:46:45 SimonVT: yeah I thought about that or using some other way as well, hmmm Mar 06 19:46:56 this way just seemed pretty simple Mar 06 19:46:57 shmooz: why not just use the layout folders? Mar 06 19:47:15 Oh, it's not a list.. Wonder why they used ListActivity then Mar 06 19:47:27 And yeah, layout/ and layout-land/ .. THat's what they're there for Mar 06 19:48:03 I have a listview of videos, and when you want to view the details for one, they pop up on top in portrait, I need them to pop up to the right in landscape Mar 06 19:50:24 I'm trying to avoid nesting layouts as much as possible Mar 06 19:50:30 Robolectric: "SimpleTest > classMethod FAILED, java.lang.RuntimeException: java.lang.NullPointerException" Mar 06 19:50:50 How do I get a stacktrace of robolectric failing so that I can figure out what's going wrong here? Mar 06 19:53:31 Does anyone know a way to map profile of owner to contact id? Mar 06 19:53:54 What's a good channel for robolectric? Mar 06 19:54:08 I bought my app to test it and that status is delivered but 'Refund' is greyed out? Mar 06 19:55:28 apple741: maybe it needs you to use it for awhile ;) Mar 06 19:55:52 hi all, can anybody please help mi with setting ui for android? I have several questions but it will be better to explain it with pictures on google doc or something like that Mar 06 19:56:15 shmooz: I seem to have the option of cancelling the order will that also act a 'refund' ? Mar 06 19:56:43 apple741: no idea, I'm a noob Mar 06 19:56:45 Tee_Pee: late advice, but avoid Samsung -- terrible bloatware, ugly plastic-heavy design, all around horrible experience Mar 06 19:56:57 shmooz: no problem , me too :) Mar 06 19:57:16 Tee_Pee: their approach to "innovation" (throwing shit against a wall to see what sticks) is also ... interesting Mar 06 19:58:28 yes Tee_Pee if you are going to develop its better to start with a Nexus instead of Samsung Mar 06 19:59:36 if you are going to *do anything* its better to start with a Nexus instead of Samsung Mar 06 19:59:40 FTFY Mar 06 20:00:15 well I can understand some people wanting the stylus on the Note 3 or the Samsung hover features or some other weird feature Mar 06 20:00:19 not to make it sounds like a Nexus is without its faults, too Mar 06 20:00:34 have you ever tried it? it's really stupid Mar 06 20:00:41 (the hover feature, that is) Mar 06 20:00:45 clearly designed by committe Mar 06 20:00:50 *committee Mar 06 20:00:52 can't type today Mar 06 20:01:19 and that describes most of the novel Samsung features -- really stupid and useless Mar 06 20:01:30 if it worked better it would be nice Mar 06 20:01:35 it offends me that they describe it as innovation Mar 06 20:01:37 sometimes my fingers are greasy Mar 06 20:02:09 when it gets good enough at recognizing your air gestures it will be nice imo Mar 06 20:02:23 I disagree Mar 06 20:02:28 and then maybe google will want to build it into android Mar 06 20:02:31 I don't want to perform air gestures for my phone Mar 06 20:02:39 I also don't want to talk to my phone Mar 06 20:02:51 yes but they are nice options to have Mar 06 20:03:13 ability to talk is nice, hover is just stupid IMHO Mar 06 20:03:37 you save me an inch of movement on my index finger? gee, thanks Mar 06 20:03:52 I'm trying to follow this document: http://developer.android.com/guide/topics/ui/actionbar.html Mar 06 20:03:56 it's even harder than touching the damn thing Mar 06 20:04:23 Apparently, just having items on the actionbar will make the actionbar have a overflow icon, but it is not showing up. Mar 06 20:04:38 hover will be good for public kiosk screens too Mar 06 20:04:38 you don't have to catch diseases Mar 06 20:04:49 Sorry, having items that are set to showasaction=never will put the items in overflow. Mar 06 20:04:56 This is working. Mar 06 20:05:11 However, you have to press the menu button to see the overflow items. Mar 06 20:05:36 There is no "overflow available" thing like it shows in the actionbar document. Mar 06 20:06:03 how much knowledge of java do i need to learn before progressing to android? Mar 06 20:06:05 Do I have to put that icon in myself? and If I do, how do I tell it that it should be showing the overflow items? Mar 06 20:06:17 Any way I can do startAnimation on a drawable instead of a view? Mar 06 20:07:40 DarkChaoz: enough to program android Mar 06 20:07:55 Jonathan_Eyre: if the device has a dedicated menu button, the overflow dots won't show up Mar 06 20:09:06 so just the basics? Mar 06 20:11:02 DarkChaoz: if you only want to understand the basics of Android Mar 06 20:12:12 kk. Mar 06 20:12:36 any good sites to learn java> Mar 06 20:13:21 DarkChaoz: http://commonsware.com/blog/2010/08/02/java-good-parts-version.html Mar 06 20:14:20 thanks Mar 06 20:16:22 DarkChaoz: is it your first programming language ? Mar 06 20:16:38 so long as I have GCM set up properly, there should be no way for the app to be maliciously modified and *still* get GCM notifications? Mar 06 20:16:40 I already know PGP Mar 06 20:16:47 a*PHP Mar 06 20:16:59 and learnt oop standard of PHP too. Mar 06 20:17:14 cool Mar 06 20:17:26 or does GCM rely on Android's app signature checking, so if the Android build is modified, it could still go through? Mar 06 20:17:59 DarkChaoz: then it will be easy for you :) Mar 06 20:18:12 will it o.O Mar 06 20:18:39 believe ! Mar 06 20:19:10 just wanna learn some new cool stuff before uni Mar 06 20:19:14 :) Mar 06 20:19:31 whoop, back in silver 3 Mar 06 20:19:32 oops Mar 06 20:23:27 What's a good channel to discuss about robolectric? Mar 06 20:24:31 the robolectric github Mar 06 20:28:58 I want my GestureDetector to be able to return false for all methods so that I can still evaluate the touch events with other views on the screen, but I can't get into onFling or onSingleTapConfirmed etc unless I have onDown() return true in the GestureDetector which is a known bug. Anyone know a solution around this? Mar 06 20:34:29 yiati: return true on onDown Mar 06 20:39:17 hey all, I'm currently trying to build my first Android app, but having difficulty with my AndroidManifest.xml. I'm getting the error "Class referenced in the manifest, ____ was not found in the project or libraries." Mar 06 20:39:37 I know the classes are on my build path, how can I get Android to recognize them? Mar 06 20:47:54 by putting them on your build path Mar 06 20:47:59 how hard is that to do... Mar 06 20:54:02 is there a separate build path for Android from the regular java build? Eclipse seems to compile the project fine, but run into issues deploying. Mar 06 20:57:36 are you using proguard? Mar 06 21:03:41 Hey, is there a function on ScrollView that tells me the position (in pixels) of it's child view? I have a horizontal scrollview which have some padding, I need to know the pixel position relative to the size of the scrollview of it's child view. Mar 06 21:07:25 nm Mar 06 21:09:56 how could you roll a ball over the screen with only acceleration? if the phone is tilting from the start there is no acceleration but the ball should roll... Mar 06 21:10:12 use gravity as well? Mar 06 21:18:16 anyone experiencing line jumping when debugin with kepler? when i step line by line, sometime it goes through 5 lines.. drives me crazy Mar 06 21:20:43 lololololololololololololoo Mar 06 21:21:04 FragmentTransaction no longer supports the built in animations Mar 06 21:21:09 lololololololololololololoo Mar 06 21:28:17 ok so I have settings and user profile information, I was originally thinking of saving them in shared preferences until I came across an SO post saying 100kb should be the limit and I am assuming it will hit over that, (settings and userid/username) maybe no but the rest of the profile info... was wondering what was the best option Mar 06 21:28:24 <_bart> My android simulator says the battery is low and I need to connect my charger. But it's a virtual phone, it doesn't make ANY sense, I didn't ask for a low battery test scenario, how do I disable this crap? Mar 06 21:32:55 _bart: if you're using adb, you can change the battery level there Mar 06 21:33:13 <_bart> myke: yes I'm using adb, thanks, I will check Mar 06 21:33:15 _bart: it makes a lot of sense, what if your app deals with battery state? Mar 06 21:33:29 LoneSoldier728: sharedprefs for settings Mar 06 21:33:46 then you can do a db or even a flatfile Mar 06 21:33:50 <_bart> myke: but why is this showing by default, my app doesn't deal with battery state and I didn't ask for this. Mar 06 21:34:02 _bart: not sure what simulator you're using, the one that comes with the SDK and launched from eclipse comes up at 50% battery Mar 06 21:34:28 haven't used genymotion yet Mar 06 21:34:36 or better yet Mar 06 21:34:38 use a real device Mar 06 21:35:15 How is that an issue.. Mar 06 21:36:09 its not Mar 06 21:37:11 power capacity 100 Mar 06 21:37:13 should do it Mar 06 21:39:37 <_bart> It just annoyed me a little bit, I only used AVD and just select a nexus phone and booted Mar 06 21:41:06 <_bart> But I guess using a real phone is a better way to do things, the emulator is slow anyway Mar 06 21:43:46 device > genymotion > avd Mar 06 21:49:18 Hello, I have uploaded the two required screenshots for tablets, is there anything else I need to do to enable my tablet to find the app in the playstore? Mar 06 21:50:10 <_bart> Simple question, the text inside my windowTitle is sticking to the left (without padding), how do I 'force' a few spaces at the start of how do I add padding to the left of the title? (I'm talking about the default thin android windowtitle here, taking input from the activity label) Mar 06 21:52:39 freeunbind Mar 06 21:52:41 desmin88 I will probably use sqlite as I have used it before, but question about caching pictures and etc coming from the servers - is cache also places in the db or I saw LRUCache on the dev site is there something else to look at for that Mar 06 22:30:39 LoneSoldier728: You mean you just want to save images that come from a server? Mar 06 22:30:52 along with texts Mar 06 22:31:13 but yeah so I can pull it back up for a user if he revisits the page Mar 06 22:31:47 so just save the image and text Mar 06 22:32:15 but where does it get saved... just in a temporary file Mar 06 22:32:31 ? Mar 06 22:32:48 a file Mar 06 22:33:03 just literally save it with the app storage Mar 06 22:35:12 kk, wasnt sure what lrucache was all about Mar 06 22:35:28 is it just an organizer for the cache data? Mar 06 22:36:12 i fcking hate whenever i accidentally hit a w8 combo and its ugly metro ui that i tried to get rid of Mar 06 22:38:18 Is there any way to control/access usb camera with microphone with android framework? Mar 06 22:40:10 Is there any good documentation on NativeActivity's event pooling? more specially how the (*)android_app->onInputEvent method works? Mar 06 22:40:34 "is there any" Mar 06 22:40:38 I'm having trouble with precisely timed doublefinger taps ignoring one of the "up" events Mar 06 22:54:56 desmin88 is it easier to query a db for a username or just throw it in sharedpref and call it? I am just wondering because I am reading a lot about SQLite being good for large data, but maybe something as small as that can just be stored in sharedPref? I have a lot of situations where I just need some basic details on the user like full name, username, gender, location (4 strings) so just asking for it from shared preferences or is querying Mar 06 22:54:56 from the db faster? Mar 06 22:55:30 how much data do you want to store in shared prefs Mar 06 22:56:03 Well settings info which is true or false (10kb tops) then the user basic details (50kbs tops) Mar 06 22:56:14 and they will be in separate shared preference files Mar 06 22:56:23 if that makes sense Mar 06 22:56:47 then in sqlite the rows of data associated with the user which is for sure going in there Mar 06 22:57:17 you can use shared prefs if you wnt Mar 06 22:57:20 feels hacky to me Mar 06 22:57:30 ah nvm Mar 06 22:57:47 10 bytes to 50bytes something like that Mar 06 22:58:04 assuming the 4 rows are 15 chars in length each Mar 06 22:58:12 your thinking too hard Mar 06 22:58:22 yeah i tend to do that Mar 06 22:58:33 and "you're" not thinking hard enough :P Mar 06 22:58:51 I overcomplicate things lets leave it at that lol Mar 06 22:59:20 bankai_: no i meant your Mar 06 22:59:56 he was describing my thinking and not me Mar 06 23:00:18 your thinking *is too hard jk Mar 06 23:00:53 lol Mar 06 23:01:08 like how much is too much in the shared preference before querying it makes it faster if that is answerable in space (1 kb i.e) Mar 06 23:01:45 its all reading from the disk. Mar 06 23:01:56 well not disk but storage Mar 06 23:03:54 AS 0.5.0 is here :D Mar 06 23:04:15 whats new Mar 06 23:04:36 right well up to now I was using it for basic storing details which has been pretty fast but then again I am using a nexus 5 for testing... and I was storing an array of categories too that were hardcoded, just wondering if I could leave that or to make a category for it in the db Mar 06 23:04:38 more problems, no doubt Mar 06 23:04:40 column* Mar 06 23:04:55 lol bankai_ Mar 06 23:05:03 bankai_ it would be nice if they at least mentioned whether this was a dev or canary version Mar 06 23:05:07 I am afraid to get it Mar 06 23:05:12 me too Mar 06 23:05:27 we need to wait for a guinea pig Mar 06 23:05:31 it will most likely break something gradle related Mar 06 23:06:26 LoneSoldier728 i nominate desmin88 Mar 06 23:06:32 pls no Mar 06 23:07:02 haha I just imagine whoever gets it will fake it so more people use it so they feel his pain Mar 06 23:07:26 or so more people who have problems means AS might be a little quicker about fixing the issues Mar 06 23:07:32 hm, this nav drawer template AS created is thoroughly confusing me. so lets say you are using one activity for your app, but you navigate to a screen not in the drawer. how do you hide the drawer ? Mar 06 23:07:56 what do you mean g00s, how are you getting to the activity? Mar 06 23:08:16 its just 1 activity with say 5 fragments, only 4 are in the drawer though Mar 06 23:08:32 ok, so you are going to the 5th fragment but the drawer is there Mar 06 23:08:45 i always thought it was odd you had to specify the gravity when closing the nav drawer Mar 06 23:08:47 according to the guidelines, you are supposed to hide the drawer if it doesn't have a jump-off point to that screen Mar 06 23:08:48 well you have to keep it hidden somehow by figuring out the frag you are on Mar 06 23:09:16 because the drawer is on the same activity that the frag is on Mar 06 23:09:21 "DrawerLayout.closeDrawer(GravityCompat.START); // <-- This is dumb" thats the line of code i have Mar 06 23:09:26 which gives you option b - use an activity screen Mar 06 23:09:31 err Mar 06 23:09:40 mDrawerLayout* Mar 06 23:10:01 g00s: all those default templates are shit ... same with IJ Mar 06 23:10:14 i'm probably putting too much stock in what they had Mar 06 23:10:20 seems retarded Mar 06 23:10:33 >google Mar 06 23:10:43 is double storing a bad idea... or if it as small as like 150 bytes it should be fine... Mar 06 23:10:49 relax Mar 06 23:10:52 never had this problem with IJ12 - default template was 'hello world', same with the cli project create :P Mar 06 23:10:53 just store it Mar 06 23:11:26 LoneSoldier728 its not the amount, its maintaining consitency Mar 06 23:11:38 which is the right one? Mar 06 23:11:42 by the way I am getting very strict on these little things because I am going to probably release an app and not be able to tend for it much since I will be starting the army in a month and a half Mar 06 23:11:55 and I dont want to fix any bugs! :/ Mar 06 23:12:03 which I know might be impossible Mar 06 23:12:04 don't make bugs then ... Mar 06 23:12:27 So any ideas why a simple statement like this wouldn't work " getActivity().getSupportFragmentManager().beginTransaction().show(inputFragment).commit(); " Mar 06 23:13:21 once I have filtered out the linear acceleration from the accelerometer values I can just integrate(sum) them to get the speed right? Mar 06 23:13:25 i have real issues with getActivity().getSupportFragmentManager().... i don't think you should be doing this in a fragment Mar 06 23:13:33 hehe Mar 06 23:13:59 but then i have to pass it all the way up to my parent activity Mar 06 23:14:22 yep, but then if you implemement an interface, you can re-use it Mar 06 23:14:32 the activity is the fragment keeper, so it should do the fragment interactions Mar 06 23:15:25 this is an issue of lazyness on my part Mar 06 23:16:42 huh Mar 06 23:16:43 bankai_ have you used nav drawer ? Mar 06 23:16:59 yeah Mar 06 23:17:15 get cracking on app writing and spend less time on research, g00s Mar 06 23:17:19 do you ever get anything done? :p Mar 06 23:17:23 lol Mar 06 23:17:27 bankai_ then where do you implement the method of the activity in the fragment to talk to the fragment? Mar 06 23:17:29 I was actually trying to do that but if I put it in the onAttach or onCreate it only gets called once Mar 06 23:17:42 pfn: AS is always broken for him, how can he? *ducks* Mar 06 23:17:46 g00s plenty of tutorials on it if you want Mar 06 23:17:49 I guess there's that, too Mar 06 23:17:50 bankai_ ok, question. so imagine one activity, 5 fragments. one fragment is a PreferenceFragment. The pref fragment is not in the drawer, its in the action menu Mar 06 23:18:11 when i show that fragment, how do i completely disable the drawer ? Mar 06 23:18:16 oh yeah :S i did a new activity for that Mar 06 23:18:21 g00s why dont you use an activity Mar 06 23:18:23 you dont Mar 06 23:18:25 it disables you Mar 06 23:18:30 since there should be no hamberger affordance, it should not slide out, etc Mar 06 23:18:48 LoneSoldier728 conundrum: then i may as well use PreferenceActivity, but they say that is deprecated :D Mar 06 23:19:05 so i can make a PreferenceActivity for my Preference Fragment so that i don't use the deprecated PreferenceActivity XD Mar 06 23:19:17 Make a new plain activity Mar 06 23:19:21 and calling the frag on it Mar 06 23:19:30 attach it to the activity Mar 06 23:19:53 ok so is that the /implementation/ general patter, if you are not in a screen in the drawer, its physically a different activity Mar 06 23:20:08 *general pattern Mar 06 23:20:12 I had a similar issue was trying to use a viewpager with a frag, but swiping would pull out the drawer Mar 06 23:20:24 I need the sample rate of SENSOR_DELAY_GAME so I can integrate and get the speed? does anyoen know what it is and how exact is it? Mar 06 23:20:36 i made one of the "frags" be a method that started a new activity then from there called viewpager and setup my frags Mar 06 23:20:53 by frags I mean the switch case ids Mar 06 23:21:08 bankai_ so you used a separate activity too, ok i'll do that. makes sense i guess O.o Mar 06 23:21:19 LoneSoldier728: re your above question. create an interface and implement it in your activity. then in your fragment you do if ( getActivity() instanceof MyInterface( ((MyInterface)getActivity()).myImplementedMethod(Some variables)); } ... Mar 06 23:21:59 g00s: yep... i don't like putting settings in the drawer and the action to new activity seemed 'better' to me Mar 06 23:22:14 action bar action*, i should be more clear Mar 06 23:22:47 tecnicall though, action bar should be for actions not navigation. seems some of the apps are putting 'Settings' in the drawer Mar 06 23:23:06 although the template didn't do it that way Mar 06 23:23:19 yeah I know that part but where do I put it on the fragment is where I am confused... let me show you code http://pastebin.com/CKe7mY2b Mar 06 23:23:39 yeah i've seen a lot of apps doing settings in the drawer, but i don't personally like it... Mar 06 23:23:57 I have it in the drawer Mar 06 23:24:09 whats the issue with it being in the drawer though... Mar 06 23:24:59 I just stored my preferences for settings in shared preferences Mar 06 23:25:01 to me, a setting isn't really a navigation and it's not part of the 'normal flow' of an application, it's something you set once (if ever) to affect the app. if that makes any sense at all Mar 06 23:25:04 and call it when I need it though? Mar 06 23:27:02 but yeah bankai_ in my code you see how it is called in the onCreateView I want the fragment to call the method more than once, (as it is in the activities onClicklistener) but it only gets called once which makes sense since it is in the createView which gets called once, but how do I make it recurring or "listening" Mar 06 23:28:35 maybe you should push rather than pull Mar 06 23:29:29 what do you mean exactly? I thought I am pushing from the activity... if I have it on a onClick ... and literally lol Mar 06 23:30:01 with the code you posted you're calling a method in the activity that's returning a string - that's pull Mar 06 23:30:14 i don't know where this onClick is coming from Mar 06 23:30:24 let me show you the snippet from the activity too Mar 06 23:31:12 http://pastebin.com/neS5Q1fR Mar 06 23:31:32 I could be doing it wrong, I am not disagreeing, I am just trying to figure out how to do the push then Mar 06 23:32:05 I figured calling the method everytime a click occured would call the method and in the frag it would pick it up Mar 06 23:32:46 the activity knows its fragments, right ? so get a reference to your fragment and push data to it, rather than have your fragment poll Mar 06 23:33:35 If I add a Spanish description in Google Play does and do not give one for 'Spanish (Spain)' and 'Spanish (United States)' will the Spanish description automatically show or will it revert to the default english language? Mar 06 23:33:45 Who has its settings in a drawer? ;o Mar 06 23:34:54 ok and will the frag know there is new data or does it have to be notified, because I want the frag to take the new data and replace the old one in the image views Mar 06 23:35:39 and how do I get a reference to it... I just know its position is 2 in the group of 3 frag is that good enough? or Mar 06 23:37:05 http://pastebin.com/EL6ZWuZ2 I added the frag /pager adapter code in there Mar 06 23:37:56 just use an event bus to simplify communication Mar 06 23:40:00 Otto? Mar 06 23:40:07 OOOtttttttoooooooooo Mar 06 23:40:20 is that a good lib to use? Mar 06 23:40:48 no its really bad ;) Mar 06 23:40:57 lol sarcasm Mar 06 23:41:07 btw am i missing out by not using sherlock? Mar 06 23:41:09 heads up LoneSoldier728 most if not all of the stuff from square/jake is pretty good to use Mar 06 23:41:20 LoneSoldier728: minSdkVersion = "14" Mar 06 23:41:29 yeah i got that min going Mar 06 23:41:33 you're missing out if you /do/ use it. Mar 06 23:41:42 lol Mar 06 23:42:10 LoneSoldier728: http://developer.android.com/training/basics/fragments/communicating.html if you're interested Mar 06 23:43:19 yeah I saw that, was confused about how to get the fragmentById Mar 06 23:43:34 Fragment#isAdded() : Return true if the fragment is currently added to its activity. uh, what does that mean exactly (as opposed to attached) Mar 06 23:43:34 where is r.id.article_fragment coming from in the docs Mar 06 23:43:48 i really advise against more than 1 listener interface Mar 06 23:43:55 it gets too messy and hard to follow if you do Mar 06 23:44:51 ArticleFragment articleFrag = (ArticleFragment) Mar 06 23:44:51 getSupportFragmentManager().findFragmentById(R.id.article_fragment); Mar 06 23:45:05 where is that id being pulled from? Mar 06 23:45:30 it's the id specified in the XML when the fragment was added Mar 06 23:45:44 so the 'container', if you will, that houses the fragment Mar 06 23:46:11 the layout id, in my pastebin what in the fragment where can I grab the id? Mar 06 23:46:21 http://pastebin.com/EL6ZWuZ2 Mar 06 23:47:00 because I am calling a new fragment and then inflating the layout, container but trying the layout does not work... but that is a layout not an id? Mar 06 23:50:24 what's the best way to present data from a Sqlresponse.getRows() list? Mar 06 23:50:55 what you trying to display it as? Mar 06 23:51:13 or you don't care you just want to shw it Mar 06 23:52:00 I just want to show in a somehwat presentable manner Mar 06 23:52:02 *somewhat Mar 06 23:52:14 not terribly well versed in layout stuff Mar 06 23:52:16 you can put it straight into a table or a list Mar 06 23:52:31 what is the recommended way to have an app run in the background, without being killed, compatible with API Level 8 (Froyo)? Currently I have a foreground service, which an activity connects to when it's active. This works, but it means displaying the foreground service notification even when the activity is in the foreground anyway Mar 06 23:53:09 LoneSoldier728 perhaps I've been googling the wrong selection of phrases but I'm having trouble finding an example of this Mar 06 23:54:04 what if I only wanted as many rows as there are sqlresponse.getRows().size()? Is that possible programmatically? Mar 06 23:54:43 http://developer.android.com/guide/topics/ui/layout/listview.html Mar 06 23:54:55 loop through the results add it to an ArrayList Mar 06 23:55:09 and the reason the app needs to not be killed is that it's a real-time chat application, and requires a TCP socket for each chat session Mar 06 23:55:11 or a HashMap if it is k:v Mar 06 23:55:17 and if the socket is closed the session ends Mar 06 23:55:22 and then just make an adapter with it Mar 06 23:56:11 by the way since sqlite does not let you store array and I have 5 of them, is it ok to make 5 tables or best to just serialize them somehow Mar 06 23:57:32 nvm got it thank Mar 06 23:57:57 If I add a Spanish(Latin America) description to Google play will that also display for Spanish(spain) and Spanish(united states) or would it just show the default language? Mar 07 00:01:22 Hello, I have a question, it might be a simple one, I just need a light on this problem I got underhands Mar 07 00:01:37 I'm getting a NPE at this line: final float scale = context.getResources().getDisplayMetrics().density; any ideas? Mar 07 00:01:38 I flashed my Star N8000 with a new Rom, it is a chinese tablet and its lost its wifi capability Mar 07 00:02:09 is it the kernel that doesnt have the driver? ifso how can I try out different modules Mar 07 00:02:38 it's actually a List> looking like.... [[03/03/2014 00:59:03.402, 658327, , , sharp], [03/06/2014 21:39:16.879, 658327, , , arl]] Mar 07 00:03:07 I'm trying to seperate rows per row and then each comma delimited item per cell Mar 07 00:03:32 so I know a tablerow is probably my best bet, I'm just unsure of how to do that programmatically Mar 07 00:07:10 g00s, how do you disable the drawer? easy, set the drawer lock mode... Mar 07 00:07:19 how hard can it be? Mar 07 00:07:20 I have a custom relativelayout. In the constructor I'm being passed in a null context. any ideas how thats happening? Mar 07 00:07:36 EGHDK, you're passing in a null context Mar 07 00:07:37 that's how Mar 07 00:08:32 immibis, a foreground service is required Mar 07 00:08:39 you can lower the priority of the notification Mar 07 00:08:41 but that's it Mar 07 00:08:43 pfn you got a simple answer for how to pull the fragment id for my pastebin here http://pastebin.com/EL6ZWuZ2 Mar 07 00:08:46 a foreground service + notification is required Mar 07 00:08:46 ok Mar 07 00:08:58 LoneSoldier728, I have no idea what you're doing Mar 07 00:09:01 I'm not reading random code Mar 07 00:09:02 since the user will actually have the activity visible most of the time, the notification seems redundant Mar 07 00:09:17 immibis, if the activity is visible, you don't have to startForeground Mar 07 00:09:25 that's the whole point of startForeground Mar 07 00:09:28 yes Mar 07 00:09:39 you startForeground when your app is not actually foreground Mar 07 00:09:40 pfn: I understand that, but I don't understand how thats possible. I am only using my custom relativelayout in xml. Mar 07 00:09:42 you can stopForeground when it is Mar 07 00:09:43 I am trying to implement this http://developer.android.com/training/basics/fragments/communicating.html but not sure where it is pulling this from ArticleFragment articleFrag = (ArticleFragment) Mar 07 00:09:43 getSupportFragmentManager().findFragmentById(R.id.article_fragment); the last part R.id Mar 07 00:10:00 then every time the user navigates away from the application, it displays a new notification, which also seems bad Mar 07 00:10:02 EGHDK, check for null in constructor, throw exception, read stack, figure it out yourself Mar 07 00:10:07 immibis, wrong Mar 07 00:10:14 immibis, "seems bad" have you used android at all? Mar 07 00:10:31 pfn: Thanks! Mar 07 00:10:42 if i navigate away from the application it's going to say in the status bar "You've stopped using [application]" or "[application] is still running" or something like that Mar 07 00:10:51 if i call startForeground then Mar 07 00:10:56 it only says something if you set a marquee Mar 07 00:11:06 pfn that will lock the DrawerLayout in some configuration, i'd still have to disable the hamburger affordance. Mar 07 00:11:16 what hamburger Mar 07 00:11:21 hide the icon then Mar 07 00:11:45 sounds straightforward, but if you navigate to settings via drawer, I would expect to nav out of settings via drawer... Mar 07 00:11:54 for being obsessed with UX, your UX sounds weird Mar 07 00:12:58 ? Mar 07 00:13:06 i'm trying to follow the UX in the guidelines Mar 07 00:13:23 it sounds like you are cooking g00s with this hamburger talk lol Mar 07 00:13:34 :) Mar 07 00:14:24 who puts their settings in the nav bar?!? Mar 07 00:14:33 in a GLSurfaceView, what's the best practice way of getting keyboard input? Mar 07 00:14:38 i think whats confusing me is the template from AS; the nav drawer fragment in the template has some responsability of restoring the views when the hosting activity is destroyed and recreated Mar 07 00:15:03 put your settings in the overflow dawg Mar 07 00:15:07 i think, maybe it should just remember its currently selected item Mar 07 00:16:21 I am so confused as to what you are doing g00s my use of settings in the drawer is basic, I check what is stored in sharedPref and pre-check or pre-apply the settings and if it is changed store it without any submit buttons Mar 07 00:16:37 pfn: marquee = ticker text? the API docs don't seem to mention anything called a marquee Mar 07 00:16:56 desmin88 can you help my interface dilemma : / Mar 07 00:17:18 or should I just Otto it up Mar 07 00:18:04 otto Mar 07 00:18:12 LoneSoldier728 this is the situation. 1 activity, 5 fragments, nav drawer. 'Settings' in action bar overflow. When I select 'Setting' i replace the currently visible fragment with a PreferenceFragment. but if the activity is destroyed, when i come back its the last selected fragment in the nav drawer. its just the way the template works Mar 07 00:18:18 if you have to use more than one listener interface go with events Mar 07 00:18:49 so i'm just trying to reconcile what the template does with what i need to do Mar 07 00:18:59 so change the way the template works... Mar 07 00:19:02 it's only a template Mar 07 00:19:07 not a rigid requirement of your code... Mar 07 00:19:19 yeah... Mar 07 00:19:40 no you have to follow it or you will get ebola Mar 07 00:20:30 well desmin88 if I am going to be just using it on the one frag, but there are 4 buttons that can call it... is that considered more than one lol... im assuming no and that is why I rather not use events or a lib im lib free so far Mar 07 00:20:51 dont think being lib free is a good thing Mar 07 00:21:01 people make libraries for a reason Mar 07 00:21:39 pfn: thanks, passing a null tickerText (in the Notification constructor) works. is this guaranteed by the API, or should i be passing something else (like an empty string)? Mar 07 00:22:23 or should i be using the no-args constructor and setting only the things i want to set Mar 07 00:25:51 what do the docs say about it being required Mar 07 00:26:53 it didn't say anything on the Notification javadoc page, but i found it in the the UI guide. nothing is required besides the icon, title and detail text Mar 07 00:36:23 Hey. iOS developer, entering the Android world. My understanding is that the Android equivalent of plist are .properties files. Where the heck do I put them so they're readable and writeable? Or should I be using something else? Mar 07 00:36:58 I've had them in assets Mar 07 00:37:06 I've had them in /res/raw Mar 07 00:37:40 what are you trying to do ? Mar 07 00:38:29 Just persist some data sent back from a API call. Mar 07 00:38:46 that's not where you put it Mar 07 00:39:03 http://developer.android.com/guide/topics/data/data-storage.html Mar 07 00:40:25 where does that data get stored? Mar 07 00:40:55 I need to be able to set defaults. They get written by a build process I have from CI Mar 07 00:43:03 depends what you're storing, but it sounds like you want to look at the 'internal storage' section of that link i just posted Mar 07 00:43:25 oh actually maybe i've misunderstood you Mar 07 00:44:45 Yeah..I'll be more thorough Mar 07 00:45:29 I have a build process that reads a series for datafiles and builds a MD5 hash of the directory Mar 07 00:45:51 when I call the app, it checks if any of the files in that directory have changed using the hash Mar 07 00:46:05 if it has, I download the files Mar 07 00:46:21 and then I want to update the hash in the properties, Mar 07 00:46:35 so that the next time it calls it has an update value to check against Mar 07 00:46:38 basically auto-updating? Mar 07 00:47:17 immibis: more expansion Mar 07 00:47:20 but yeah Mar 07 00:47:35 updating the app, and also expanding a feature Mar 07 00:48:34 The initial hash is generate when I build the assets from my CI server Mar 07 00:48:36 does anyone have an example of how to build a jni using ndk in gradle? Mar 07 00:52:43 amac: do you need more functionality than the play store has for updates? Mar 07 00:54:13 immibis - Its more for downloading assets so the initial .apk isn't HUGE! Mar 07 00:54:45 is it so that you don't have to redownload them with every app update? Mar 07 00:58:53 Im not sure how Play does differential updates, but its built this way because I pass the same assets to an iOS app as well Mar 07 00:58:58 amac did you see the play store expansion pack pacility ? Mar 07 00:59:11 *facility; i sneezed right then :) Mar 07 00:59:21 oh gross, it's all over the keyboard! Mar 07 00:59:31 http://developer.android.com/google/play/expansion-files.html Mar 07 00:59:35 HAHAHA. Mar 07 00:59:47 bankai_ no, in your general direction Mar 07 00:59:56 if you including these files into your APK you can't edit them ... assets are RO static Mar 07 01:00:05 g00s: hot! all over me! ;) Mar 07 01:00:21 Woah...this just got weird Mar 07 01:01:01 so, anything that I build into the APK is RO and can't be changed? Mar 07 01:01:48 it's not bundled the same way as iOS apps Mar 07 01:01:58 "New bundled version of IntelliJ 13.1 EAP build. This means we're switching from the stable 13.0.x releases to 13.1", oh man. i guess we're tracking EAPs again - more bugs Mar 07 01:02:53 amac: you can still do what you want to do, but if you want to edit it you have to write it to internal/external storage Mar 07 01:03:58 Ahhh gotcha. Mar 07 01:04:09 Im already writing to internal storage. Mar 07 01:04:30 so I'd just have to write the pre-generated file there as well Mar 07 01:04:47 and then I could edit it? Mar 07 01:04:58 yeah Mar 07 01:05:04 Gotcha Mar 07 01:05:06 Man.. Mar 07 01:05:27 there's so many things between the 2 environments that are similar. Mar 07 01:05:30 this kind of thing makes it difficult to ship pre-generated DBs, something that's quite easy with iOS Mar 07 01:05:37 pre-populated, sorry Mar 07 01:05:56 and then the simple things total hurt my brain Mar 07 01:06:13 yeah well, you should have seen me when i learnt i couldn't do bg tasks in iOS Mar 07 01:07:15 you can now. Mar 07 01:07:23 not properly Mar 07 01:07:39 I was just about to say that "Totally not the same way though" Mar 07 01:09:26 iOS queues are ugly, and nothing comes back to the main thread. I much prefer the AsyncTask of Android for sure Mar 07 01:09:40 Im really starting to warm to Android development Mar 07 01:09:46 have a look at rxjava then ;) Mar 07 01:09:47 I was hesitant at first Mar 07 01:10:04 g00s: what's the iOS version? rxcocao ? Mar 07 01:10:15 hi Mar 07 01:12:18 reactivecocoa Mar 07 01:12:51 first of all, sorry for my poor english :) Mar 07 01:13:36 anyone know a way to make the hint textstyle of an edittext italic without making the normal text italic in xml? Mar 07 01:14:34 there are any documentation in pdf or the only manual/guide are on d.android.com? Mar 07 01:15:25 Thanks for your help bankai_ g00s & immibis Mar 07 01:16:51 carlo87 not that i know of Mar 07 01:17:21 of course you can d/l through the sdk manager, some bits are broken though Mar 07 01:18:44 ok, thanks :) Mar 07 01:18:54 i'm going to try Mar 07 01:19:16 for example, search does not work Mar 07 01:28:49 Bam...you guys are genius' Mar 07 01:28:58 nice, a new f.lux ! Mar 07 01:28:59 worked first run Mar 07 01:29:27 oh well that's boring :( Mar 07 01:30:55 hai Mar 07 01:31:16 g00s: stupid GPS making me wonder whether my app is doing something wrong or whether it's just normal GPS lol Mar 07 01:31:53 SirLagz i thought you got that all worked out :( Mar 07 01:31:57 try another device Mar 07 01:32:01 g00s: I thought so too Mar 07 01:32:07 (i'm sure you thought of that, or could if you would) Mar 07 01:32:08 g00s: yeah I'm going to have to Mar 07 01:32:13 indeed haha Mar 07 01:32:17 I need another SIM card unfortunately Mar 07 01:32:24 don't want to take mine out of my phone Mar 07 01:32:29 how do you enter a break point in android studio? Mar 07 01:32:35 SirLagz i read some sammy things are or got gps fixes Mar 07 01:32:43 totic click next to the line Mar 07 01:32:50 in the margin gutter Mar 07 01:32:56 I want to test on a Galaxy S3 actually, my mate was having issues on his S3 so not sure if S3s have issues or whether he just derped Mar 07 01:33:18 @g00s thanks was clicking the line number.. Mar 07 01:33:23 I don't really want a Samsung phone, but I'm tossing up getting one as my next phone just because Samsung hold so much market share Mar 07 01:33:34 would make my testing easier Mar 07 01:33:47 hey guys Mar 07 01:33:52 especially because my next few apps that I have planned are all reliant on GPS working Mar 07 01:35:10 SirLagz http://www.androidpolice.com/2014/03/03/multiple-users-reporting-att-galaxy-note-3-gps-issues-kitkat-update-could-be-coming-soon/ Mar 07 01:35:41 g00s: thanks Mar 07 01:36:11 i'll never forget the original galaxy, broken GPS and i think they fixed it a year later Mar 07 01:36:20 wonder if it's all Note3s or just the AT&T ones Mar 07 01:37:38 looks like just AT&T ones...but who knwos =/ Mar 07 01:37:38 how the fuck is everyone Mar 07 01:37:38 oh it was the galaxy s. i though there was going to be a class action lawsuit Mar 07 01:38:22 samsung just sucks :) man if the nexus line goes away and i have to choose between lg, samsung and lenovo i'm outta here Mar 07 01:38:29 play editions Mar 07 01:38:35 haha Mar 07 01:38:49 HTC doesn't even factor in ? Mar 07 01:39:03 well, we'll have to see if they are around next year :) Mar 07 01:39:09 apple is peaching their engineers Mar 07 01:39:11 *poaching Mar 07 01:39:27 haha Mar 07 01:39:40 HTC seem pretty solid, so I don't think they'll go anywhere anytime soon Mar 07 01:39:56 depends who you talk to Mar 07 01:40:02 true Mar 07 01:40:09 i'm an unusual android user though; i want the nexus (vanilla / stripped / quick updates) but without most google services. basically just gmail and play store Mar 07 01:40:22 not that I'd mourn HTC going away Mar 07 01:40:51 the Desire was good, but 512MB of internal storage ? really ? the HTC Velocity/Vivid/Holida/Raider/whatever else it's called - It just sucks battery, and balls. Mar 07 01:40:53 Hey guys Mar 07 01:41:01 I can't seem to find this while googling just now but I've seen it before Mar 07 01:41:11 there is some way to make build flavors of gradle set some code Mar 07 01:41:15 like flip a boolean on or off Mar 07 01:42:47 oh, buildConfig Mar 07 01:42:49 nm :D Mar 07 01:44:49 * SirLagz dances Mar 07 01:44:56 in the street ? Mar 07 01:45:57 haha Mar 07 01:46:00 in the rain Mar 07 01:46:51 under the moonlight ? Mar 07 01:49:22 with the devil in the pale moonlight Mar 07 01:58:23 does any1 know why i get this error http://i.imgur.com/s1EauC0.png Mar 07 02:06:58 take out the offending bits Mar 07 02:06:58 you only declare the namespace in the root element Mar 07 02:06:58 this friggin' ebook never ends, i tell you what Mar 07 02:06:58 I believe... Mar 07 02:07:03 i get location = null when i click my location, i did what the site said Mar 07 02:07:03 what do you mean Mar 07 02:07:03 what site Mar 07 02:07:03 developers.google.com Mar 07 02:07:06 ok Mar 07 02:07:23 and where do you click "my location" ? Mar 07 02:07:25 those r made by default anyway Mar 07 02:07:25 https://developers.google.com/maps/documentation/android/location Mar 07 02:08:14 in my location demo Mar 07 02:09:08 does gps in other apps Mar 07 02:09:10 eg maps Mar 07 02:09:32 zezo: where are my scissors, btw? Mar 07 02:09:47 yes i can see map of earth Mar 07 02:10:15 if you look around you dont even need a map! : ) Mar 07 02:11:14 yea pythagorus used to do it back in the day Mar 07 02:11:18 its for my uni project or else ill fail the year Mar 07 02:11:30 smartest cock-sucker who ever lived, other than plato Mar 07 02:15:24 zezo: nvm, found them. Mar 07 02:24:58 Hi. I have startActivityForResult in an activity, how can I call it from another class though? Mar 07 02:25:17 anyone know if AS 0.5.0 uses Java 1.7 by default? just curios, reading about people who can't get it to start Mar 07 02:25:17 In light of the mass departures I'll reask Mar 07 02:25:22 Hi. I have startActivityForResult in an activity, how can I call it from another class though? Mar 07 02:25:38 I want to abstract the method out, I thought maybe I could pass in Activity and call activity.startActivityForResult Mar 07 02:25:43 but it can't find that Mar 07 02:26:18 dont know what AS is Mar 07 02:26:28 it's shit, that's what it is Mar 07 02:26:36 seems legit Mar 07 02:26:43 it isnt that bad bankai_ Mar 07 02:26:43 legit shit Mar 07 02:26:52 it has more to do with what intellij is doing in 13.1 Mar 07 02:26:53 why are you hating? Mar 07 02:26:56 i'm just toying with g00s_ .... Mar 07 02:26:57 aaa Mar 07 02:26:59 Android Studio Mar 07 02:27:01 haha Mar 07 02:27:27 took me some time Mar 07 02:27:43 Can someone explain to me what the surface is used for in MediaCodec? Is it a way of gaining hardware acceleration? Do I have to use a surface? Can I just use buffers? Mar 07 02:27:54 intellij, any intellij, looks like shit on the mac using Oracle JVM because it only does greyscale AA, not subpixel AA like Apple's old JVM Mar 07 02:28:04 this is because of swing Mar 07 02:28:28 It says "The method startActivityForResult(Intent, int) in the type Activity is not applicable for the arguments (Intent, R.integer)" Mar 07 02:30:05 does android studio use more or less memory than eclipse Mar 07 02:30:11 ah never mind Mar 07 02:30:22 eclipse autocompleted int to integer in the method signature Mar 07 02:30:31 g00s_: does it ? I didnt notice Mar 07 02:30:40 intent Mar 07 02:31:08 of course, before intellij 13.1, their bundle used apple jvm. you had to go out of your way to run intellij using 1.7 Mar 07 02:31:19 this of course is not the same as compiling your app with 1.7 Mar 07 02:32:06 http://blog.jetbrains.com/idea/2014/02/intellij-idea-13-1-eap-134-1342-is-out/ Mar 07 02:32:21 so i think they are still using 1.6 then unless you garb special bundles Mar 07 02:32:31 unless google changed it, dunno Mar 07 02:32:35 easy to check Mar 07 02:35:56 friggin freenode, get your shit toggether Mar 07 02:36:03 amirite, whos with me Mar 07 02:36:20 amirite logged off a while ago Mar 07 02:36:54 freenode has been under ddos a lot lately Mar 07 02:37:33 why would people attack freenode Mar 07 02:37:53 it's probably north korea Mar 07 02:37:54 dunno. don't even know if they know who it is Mar 07 02:38:57 it should be banned to use 1.6 :P Mar 07 02:40:31 anyone able to help me pleaseee I cannot even find a tutorial or an example online and the android docs are just confusing me with there one http://developer.android.com/training/basics/fragments/communicating.html Mar 07 02:40:46 It includes fragments talking back and it makes no sense Mar 07 02:40:54 thought you decided to use an eventbus system ? Mar 07 02:41:19 I wish I had eventbus in my app :D Mar 07 02:41:19 I was told it was unnecessary if I am using it only for one listener Mar 07 02:41:37 which part is confusing ? Mar 07 02:42:09 well the second part that talks to frags... it is based off the frag talking to the activity through a click on a frag item Mar 07 02:42:15 I am trying to do the opposite Mar 07 02:42:33 / The user selected the headline of an article from the HeadlinesFragment Mar 07 02:43:07 I am trying to talk to the frag because the change is happening on the activity side Mar 07 02:43:29 create a method in your fragment and call it from the activity Mar 07 02:44:00 well that's quite easy Mar 07 02:44:38 if fragments are on the same activity :) Mar 07 02:44:58 too bad when you want to communicate from fragment to fragment Mar 07 02:45:03 which is like 3 activities ago Mar 07 02:45:07 and pressing back Mar 07 02:46:42 but how would the activity recognize the method (trying it now but the method is not identified) Mar 07 02:46:54 do I have to pass it in like Frag.methodName as an implements? Mar 07 02:46:55 yea back button is a bit of a wildcard, i would say Mar 07 02:47:06 ever since the ol' nexus 1 Mar 07 02:47:28 LoneSoldier728: create an interface, test if the fragment impelements it, then you can call it Mar 07 02:47:45 LoneSoldier728: you're calling interface method Mar 07 02:47:49 same as what you were doing before when you did the getActivity callback Mar 07 02:49:02 What are the 'Maven Projects' and 'Commander' tabs on the right of Android Studio all about? Mar 07 02:49:18 My understanding of maven is that it is a repository where people can upload their libraries? Mar 07 02:49:32 maven is a build system Mar 07 02:49:35 And so my project can add a library dependency and it will fetch it from maven? Mar 07 02:49:36 oh kk Mar 07 02:49:46 I'm using Gradle. So I can ignore this maven tab then? Mar 07 02:50:02 yes Mar 07 02:50:07 ProgramMax: yes Mar 07 02:50:17 Cool cool. What about the Commander thing? Mar 07 02:50:46 AS, being essentially a prepackaged IntelliJ beta with beta version of android plugin, got various plugins available, commander is iirc for browsing files :) Mar 07 02:50:57 http://stackoverflow.com/questions/2282436/what-is-the-purpose-of-the-intellij-commander Mar 07 02:51:11 ProgramMax: you should check out 'Commander Genius' Mar 07 02:51:16 https://play.google.com/store/apps/details?id=net.sourceforge.clonekeenplus Mar 07 02:51:34 also, IntelliJ is very, very flexible in building code, so you can easily have complex build script without eclipse builder insanity Mar 07 02:51:40 ,highly recommend Mar 07 02:52:09 lolol Mar 07 02:52:12 love Commander Keen Mar 07 02:52:59 what Mar 07 02:53:00 you can get "the lost levels" Mar 07 02:53:06 commander keen for free on android ? Mar 07 02:53:08 must have Mar 07 02:53:09 using the app Mar 07 02:53:31 noooooo... how cool is that?!?!?! Mar 07 02:53:59 bankai_ http://pastebin.com/sDqRCPbS that doesnt work am I doing something wrong (the top is the activity) Mar 07 02:54:17 LoneSoldier728: the link yoiu posted, download the sample and look at how they suggest doing it Mar 07 02:55:50 i was hoping AS 0.5.0 would bring the xml code formatting that ADT has had since forever Mar 07 02:56:00 ordering of attributes, etc **** ENDING LOGGING AT Fri Mar 07 02:59:58 2014