**** BEGIN LOGGING AT Wed Mar 25 02:59:58 2015 Mar 25 03:00:34 meanwhile .. "Search giant averages a White House meeting a week during Obama administration" Mar 25 03:14:55 Hey guys! My app crashes whenever a service that has been started by the main activity issues `stopSelf();` Mar 25 03:15:55 I can't seem to find why that happens. I made the debugger trigger a breakpoint on any exception where the file matches com.myproject.* or android.* Mar 25 03:21:24 How do I debug these errors? Mar 25 03:22:57 Is it normal that LogCat doesn't display anything while debugging? Mar 25 03:23:56 scroll up and down Mar 25 03:23:58 i get that a lot Mar 25 03:24:11 it appears to stop but if you switch to no filter or scroll up and down it'll appear again Mar 25 03:25:23 thanks! Mar 25 03:27:16 Alright. I found what is causing the issue. `LocationServices.FusedLocationApi.removeLocationUpdates( // mGoogleApiClient, this); Mar 25 03:27:19 ` Mar 25 03:27:31 However, the error is not descriptive Mar 25 03:27:39 "removeLocationUpdates(Unknown Source)" Mar 25 03:28:53 I guess it's because I wasn't already connected. Will use a boolean now.. Mar 25 03:29:51 Or should I rather use a try{}catch(){}? Mar 25 03:37:55 yeah that thing is annoying. Even if I use a boolean that I switch once I call requestLocationUpdates, the activity is not necessarily receiving locationUpdates upon request, so my boolean is unsignificant, and the same line raises an error.. Mar 25 03:39:45 And https://developer.android.com/reference/com/google/android/gms/location/FusedLocationProviderApi.html#removeLocationUpdates(com.google.android.gms.common.api.GoogleApiClient, com.google.android.gms.location.LocationListener) does not show that it throws any exceptions, so I cannot write a try catch block that's soecific Mar 25 03:46:40 would the nexus 5 screen be sensitive enough to determine the difference between a kiss and a touch? Mar 25 03:46:51 like perhaps with 2 lip shaped touches Mar 25 03:46:54 vs a finger Mar 25 03:47:06 also a lighter touch Mar 25 03:49:15 bilb_ono: Are you making a kiss-through-the-Internet app? Mar 25 03:49:24 bilb_ono: not quite for the same purpose, but I've wondered if it's possible to do some more fun things with http://developer.android.com/reference/android/view/MotionEvent.html#AXIS_TOUCH_MAJOR and minor, and react to the pressure / finger orientation info Mar 25 03:49:29 never tried though. Mar 25 03:57:42 bilb_ono i think the touch control HW has a # of finite points it can keep track of Mar 25 03:57:51 like 5 or 6 in that neighborhood Mar 25 03:58:25 so i dont think it can recognize the pressure / footprint of a kiss ;) Mar 25 03:58:30 try the new macbook air touchpad :D Mar 25 04:00:34 bilb thats kinda nasty Mar 25 04:00:44 screens _are_ dirty. Mar 25 04:01:19 but make sure you enable auto-tweeting of your kisses Mar 25 04:02:34 Hm... in Settings > More > Locations, I do not see that my app has requested location updates recently Mar 25 04:04:36 so, I have an android activity. It contains a few relativelayouts with some buttons and stuff overlaying an OpenGL surface. How can I transfer any touch events not caught by buttons and etc (aka ones directly to the OGL canvas) to my custom touch responder class? Mar 25 04:06:44 So the builder shown here is all that is needed to get the GoogleApiClient.ConnectionCallbacks.onConnected to get called at some point, right? Mar 25 04:07:44 Why does the guide not mention to call .connet()?? Mar 25 04:07:50 .connect()* Mar 25 04:10:50 Ach, and LogCat does not show any logs again! Scrolling up and down doesn't help Mar 25 04:15:58 It will always be adb lolcat to me Mar 25 04:16:58 poutine: aye Mar 25 04:17:39 poutine: holy damn if this works better than AS Mar 25 04:20:57 poutine: is it possible to look for everything generated by: com.example.myapp? Mar 25 04:21:19 it's also very quick output :/ Mar 25 04:22:07 http://developer.android.com/tools/debugging/debugging-log.html Mar 25 04:22:12 see the 2nd section Mar 25 04:24:28 I'm doing `adb logcat "com.example.*:I" and I'm getting too many logs Mar 25 04:28:52 holy crap, I completely forgot about adb lolcat Mar 25 04:29:01 how could I forget something like that? Mar 25 04:31:03 lolcat for the second time? Mar 25 04:31:13 what's the joke? Mar 25 04:31:29 JesusFreke: also, adb hell Mar 25 04:31:52 hah, I didn't know about that one Mar 25 04:32:03 huh! Mar 25 04:32:10 wilornel: it's an alias for adb logcat (lolcat, that is) Mar 25 04:32:27 they're the only two I know of Mar 25 04:34:13 Alright, why is my sensorManager not getting onSensorChanged Mar 25 04:41:07 Hm... I'm trying to dig into the code behind SensorManager. I just found "registerListenerImpl", but only it's declaration, not it's full implementation Mar 25 04:41:13 Where do I find how it's implemented? Mar 25 04:42:57 ah nevermind, found it online Mar 25 04:43:10 Is it SystemSensorManger? Mar 25 04:43:12 Manager* Mar 25 04:43:42 Yep, the implementation is in SystemSensorManager. I was looking inside SensorManager Mar 25 04:44:03 Ach, the code doesn't reach the breakpoints I set inside those two.. Mar 25 04:44:03 I found that googling 'android googlesource "extends SensorManager"'. :) Mar 25 04:44:56 yeah, also the first result of "registerListenerImpl android" Mar 25 04:45:20 I wish sensorManager worked.. Mar 25 04:50:00 my laptop is connected to internet via wifi, so i try to share the internet form laptop to my asus phone running kitkat using this https://www.asus.com/in/support/FAQ/1004745/ Mar 25 04:50:18 and when i try to load a web page in mobile, it does not load ! Mar 25 04:50:44 solofight: wrong channel? Mar 25 04:50:49 ran out of ways to debug this error Mar 25 04:51:07 Leeds: oh sorry.. would #android be appropriate ? Mar 25 04:51:15 more appropriate, yes Mar 25 04:51:24 Thanks Leeds Mar 25 04:51:53 I srsly can't wait till Kotlin 1.0. It's such a neat language. Mar 25 04:54:52 Could anyone please take a quick look at what I have here? I'm trying to get SensorManager to call mSensorEventListener.onSensorChanged in a new thread Mar 25 04:55:00 It has a few nice C# things (e.g., properties and extension methods) without some of the bloat that C# has been acquiring lately. Mar 25 04:55:14 I've read multiple times that I have to use a Handler and that is what I am doing but doesn't seem to work Mar 25 04:55:26 Also, is there a call I can make to check if the sensor is being used? Mar 25 04:56:10 TacticalJoke: Wouldn't Kotlin be targetting a different set of machines than what C# targets? Mar 25 04:56:16 Yeah. Mar 25 04:56:17 Kotlin would run on JVMs Mar 25 04:56:20 But it has C#-like features. Mar 25 04:56:58 I've always seen Java and C# as similar Mar 25 04:57:05 And of course it should. :) The Kotlin creators would be crazy not to be influenced by C#. Mar 25 04:57:10 It's as if one is borrowing from the other Mar 25 04:57:20 oh, got it, there you go Mar 25 04:57:41 So Java borrowed from c# Mar 25 04:58:03 Java came first. C# copied Java a huge amount. Mar 25 04:59:45 except the crappy stuff Mar 25 05:02:20 One thing I'll miss in Kotlin is (and I wished I'd had in C# was) checked exceptions. I think they're awesome when used correctly. Mar 25 05:02:55 Alright, this is what it looks like: http://paste.ubuntu.com/10675055/ Mar 25 05:04:32 TacticalJoke: Agreed. I'm one of the few people apparently who think checked exceptions are a great idea. Mar 25 05:04:37 :) Mar 25 05:04:40 does anyone know how to navigate through a pageviewer based on a positional value (no gesture input)? Mar 25 05:04:49 I loved them at first, then hated them, and finally loved them. Mar 25 05:04:54 Viewpager* Mar 25 05:05:19 Without checked exceptions, the documentation burden is huge. Mar 25 05:05:22 Technically, they are the best of both worlds: an error mechanism that forces the developer to think about error cases as they write the new code. Mar 25 05:05:49 If you let the developer defer thinking about errors to later, they never will and they will ship bogus code. Mar 25 05:06:03 Are we talking about how the IDE won't let you write a function call if you do not write the appropriate try catch block of code? Mar 25 05:06:05 Yeah, and it's nice being able to ask the compiler whether we're handling error cases. Mar 25 05:06:24 wilornel: try/catch is one thing you can do with checked exception, the other thing is declare a throws clause Mar 25 05:06:35 wilornel: Yeah. Though IMO the Java API uses checked exceptions sometimes where it shouldn't. Mar 25 05:06:54 Yes, Java's use of checked exceptions tarnished the whole concept. Pity most people can't seem to see beyond that Mar 25 05:07:46 CedricBeust: What do you do in Kotlin? Just use KotlinDoc for exceptions? Mar 25 05:08:17 I used to do that in C#, and it worked fairly well, but it was very to tell, sometimes, whether I was handling everything I should have been handling. Mar 25 05:08:30 very hard* Mar 25 05:08:48 TacticalJoke: That's just for documentation though, I don't have the compiler keeping me in check (or am I missing something about kotlindoc?) Mar 25 05:08:55 Yeah, that's true. Mar 25 05:09:23 Just thinking of documentation right now, but I will miss the compiler keeping me in check too. :) Mar 25 05:13:38 I think there should be a onListenerRegistered callback... Mar 25 05:25:15 Could anyone troubleshoot me through this? Mar 25 05:25:18 I'm super it's super simepl Mar 25 05:25:19 simple* Mar 25 05:29:25 Alright, nevermind, I think that my accelerometer is just broken. For example, even though I have screen rotation enabled, I cannot get my camera app to rotate back to portait mode (it's stuck in landscape view) Mar 25 05:30:26 ach, is it possible that I broke it by dropping my phone? Mar 25 05:30:42 silly question, you have tried rebooting? Mar 25 05:30:52 yep Mar 25 05:31:15 and nah it's a good questio Mar 25 05:31:24 wilornel: grab a sensor app from the play store :) Mar 25 05:31:34 see if the data looks correct Mar 25 05:31:50 Hey, I asked this a bit ago. Ima just reask it. so, I have an android activity. It contains a few relativelayouts with some buttons and stuff overlaying an OpenGL surface. How can I transfer any touch events not caught by buttons and etc (aka ones directly to the OGL canvas) to my custom touch responder class? Mar 25 05:31:54 JesusFreke: Yep, I looked at one and it didn't receive input from the accelerometer Mar 25 05:32:59 I've had this happen before. It was even embarassing haha. Was trying to show off my app to someone when suddenly the accelerometer stopped working for no apparent reason. I ended up looking like I didn't design the app correctly Mar 25 05:33:26 the sensor on my N7 is completely buggered - it just doesn't rotate at all Mar 25 05:36:17 Leeds: i had that on my nexus 5. If you haven't tampered with it, it should still be under warranty, which means you can just call google and ask them to replace it. They replaced mine no worries Mar 25 05:36:59 Ach, thinking of sending it to some friends to test it out. How can I share it with them if it's not on the app store? Do I just send them the apk AS is outputting? Mar 25 05:37:39 Mad3ngineer: How seemless was replacing it? Mar 25 05:38:09 pretty easy. Gave em my credit card number, they sent me a new one, and I didn't even have to send back the one I had until the new one got here Mar 25 05:38:23 credit card number just in case I decided not to send it back :) Mar 25 05:39:35 that's awesome! Mar 25 05:39:44 <3 Google Mar 25 05:52:46 These http://stackoverflow.com/questions/25660166/how-to-add-a-jar-in-external-libraries-in-android-studio http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library are saying I'm supposed to right click on a .jar file inside the libs folder. I can't see it inside AS Mar 25 05:53:43 hey TacticalJoke Mar 25 05:53:46 did you see http://beust.com/weblog/2014/12/19/new-comments-a-chrome-extension-for-reddit-and-hacker-news/ Mar 25 05:53:56 might be good for your app? Mar 25 05:54:05 Yeah. That is a great idea. :) Mar 25 05:55:08 It fixes a big weakness in reddit. Mar 25 05:55:37 so you going to implemt similar thing in your app? Mar 25 05:56:31 I haven't given it much thought yet, but I hope so, yeah. Mar 25 05:56:42 It's annoying having to remember which comments we've seen already. Mar 25 05:56:42 should be easy Mar 25 05:57:01 just grab a timestamp everytime you enter comments then compare and just color different Mar 25 05:57:04 i wish they did that with code Mar 25 05:57:22 Ah, that's true. Timestamps should be enough. Mar 25 06:00:42 lasserix: Have you checked out Kotlin yet? Mar 25 06:01:03 no but cedrics post makes me think i should Mar 25 06:01:09 It's really nice. Mar 25 06:01:19 the worst part about languages is obtuse character entry Mar 25 06:01:24 They have a web demo with loads of samples (on the left). Mar 25 06:01:50 like typing -> slows me down Mar 25 06:01:55 or * Mar 25 06:01:58 sounds tupid but Mar 25 06:02:06 little delays add up over a lifetime Mar 25 06:02:18 Here's the demo: http://kotlin-demo.jetbrains.com/ Mar 25 06:02:36 I find readability a bigger factor in general, but I know what you mean. Mar 25 06:03:07 lasserix: Thanks for the plug :) I used it every day Mar 25 06:03:35 I use* it every day Mar 25 06:03:53 TacticalJoke: It’s not a weakness of reddit, this feature is turned on when you get gold Mar 25 06:03:54 did you see my msg this morning Mar 25 06:03:58 i think you have a typo Mar 25 06:04:01 CedricBeust: Ah, didn't know that. Mar 25 06:04:04 lasserix: Already fixed Mar 25 06:04:05 you initialize user with id twice? Mar 25 06:04:07 oh ok Mar 25 06:04:28 like seriousily not a big deal but i didn't know if it was intentional for some reason heh Mar 25 06:04:31 Thanks for reporting it! Mar 25 06:04:42 thanks for that post tho! seriousily not enough rx android literature Mar 25 06:05:11 seems like views are perfect for obserables since you have on attach and on detach which circumsribes lifecycle for them Mar 25 06:05:14 lasserix: I have plenty of ideas in my head, hope I’ll find the time to write them down Mar 25 06:05:52 its true kotlin has some kind of auto-bound service? Mar 25 06:05:58 *autobinding service Mar 25 06:06:28 I wish they'd hurry up and release 1.0. :) Mar 25 06:06:37 At the same time, I don't want them to rush. :D Mar 25 06:06:54 ahh thats funny CodeGlance is a great plugin uses rx Mar 25 06:08:06 TacticalJoke: i am mildly stoked finally today i wrote my first set of generic functions Mar 25 06:08:32 lasserix: Read my blog post Mar 25 06:08:45 lasserix: Static methods that take a type argument? Mar 25 06:09:02 TacticalJoke: i had written two methods for serializing an object with gson Mar 25 06:09:14 and figured it must be possible to make it generic (T<> Mar 25 06:09:27 still haven't tested it but the code compiles Mar 25 06:14:21 http://pastebin.com/L8Eurnit Mar 25 06:15:13 CedricBeust_: ahh okay ill reread a fourh time then ;p Mar 25 06:16:10 i haven't tested the code, but if i understand type erasure correctly it should work Mar 25 06:17:02 lasserix: I mention the autobinding service at the beginning Mar 25 06:18:43 *oops in that code the log t.class should be t.getClass().getSimpleName() Mar 25 06:20:27 CedricBeust_: yeah thats why i was curious, seems like services might be good canditates too since their lifecycle is clearly demarcated Mar 25 06:20:45 but maybe they would be better as behaviorsubjects Mar 25 06:20:57 *still not familiar enough with rx to make such claims tho Mar 25 06:23:39 i wonder if rx would be compatible with games Mar 25 06:23:56 that would be a very interesting game loop indeed Mar 25 06:24:14 rewrtie replica island with rxjava ;p Mar 25 06:34:07 like you could do the render set along the lines of the coding challenge of returning partial results: after <16 ms push whatever has been calcaulted (using an algorithm to draw more or less depending on how long it takes) to the displaylist every game loop Mar 25 06:45:22 I have a RelativeLayout & EditText + TextView inside it. I placed background of EditText on relative layout. Is there a way to trigger focus/click event on relative layout automatically when edittext is focussed/clicked, without writing focus/click listeners ie. Mar 25 06:53:16 astroduck: no Mar 25 06:53:47 :( This makes me sad Mar 25 06:53:48 also the stement "I placed background of Edittext on relative layout" is not clear? Mar 25 06:54:13 why can't you use focus listener? Mar 25 06:55:34 lasserix: I mean, the drawable that you'd usually used for edittext, i used it as background of relativelayout so it looks like textview is also a part of edittext Mar 25 06:56:55 that has nothing to do with anything as far as your question Mar 25 06:57:12 meaning it doesn't change anything, but the reality is you have to use an ontouch or onfocus listener to do what you want Mar 25 06:57:17 that's why they exist. Mar 25 06:57:25 so use them. don't fear the api. Mar 25 06:58:00 you'll be able to fly Mar 25 07:06:17 thepoosh ! you're alive! Mar 25 07:08:30 טקד ן שצ Mar 25 07:08:33 yes i am Mar 25 07:13:54 http://cdn.meme.am/instances/22489608.jpg Mar 25 07:14:30 Heh - Gene Wilder and Marty Feldman ... the best Mar 25 07:14:41 capella: dude! Mar 25 07:14:44 it's been for ever Mar 25 07:15:01 I got sucked in a moz project .... had my head down :) Mar 25 07:15:05 I am unable to use a drawable named intro1_1 in android studio Mar 25 07:16:23 Any name works except this one. Is this a bug? Mar 25 07:17:47 astroduck: numbers are not a valid char for res names Mar 25 07:18:04 Got a view that is getting obscured by a lower view's background color :-/ Mar 25 07:18:24 nothing under res/ can have a number in the name, just lower cased letters and underscore Mar 25 07:18:39 view that should be on top is added correctly after lower view Mar 25 07:18:48 removing background color allows the other widget to draw Mar 25 07:18:51 seems like bug Mar 25 07:18:53 astroduck: [a-z_].xml Mar 25 07:19:00 bringToFront did not workaround Mar 25 07:19:30 does your background have opacity? Mar 25 07:19:46 thepoosh: ummm, intro11 works fine Mar 25 07:19:54 shouldn't Mar 25 07:20:11 does, numbers have always worked for me Mar 25 07:24:57 I thought it was "can't start with number" .... wonder if "intro1_a1" is valid ... Mar 25 07:25:04 * capella starts googling Mar 25 07:25:46 as long as it translates to a valid java identifier Mar 25 07:26:26 define "translates" Mar 25 07:36:00 g00s: Why would intro1_1 not translate to a valid identifier? Mar 25 07:36:30 i have no idea, isn't it ? Mar 25 07:40:59 try intro1_a1 Mar 25 07:41:15 g00s: No, I get "Couldn't resolve resource @drawable/intro1_1" Mar 25 07:41:38 capella: intro1_a1 works Mar 25 07:41:47 yah - no leading #'s Mar 25 07:42:00 at pos1, or after "_" Mar 25 07:42:19 capella: Oh, that's a really weird rule Mar 25 07:42:29 * capella didn't make it :p Mar 25 07:42:43 but, kinda yah ;) Mar 25 07:56:46 anybody know how I can get a script to run in init.d ? Mar 25 07:56:50 I”ve copied the script there Mar 25 07:57:52 I’ve found this script on the net, it’s supposed to fix an error where GPS axis are flipped Mar 25 07:57:53 http://dpaste.com/132GFYN Mar 25 07:58:12 in addition to that It would be awesome if somebody could help me understand the script :) Mar 25 07:58:48 jubei wrong channel, see topic Mar 25 07:59:29 oops, sorry about that. My irc client only shows the 1st line of the topic. Apologies. Mar 25 08:01:10 This Hackers keyboard is pretty cool ... I've been using SwiftKey Mar 25 08:29:54 i have a small widget with a button that when pressed should run some some code in my app. 1) can i do that "in background" (so that a press doesn't launch the app) and 2) how do i communicate the event from the widget to the activity? Mar 25 08:33:07 One-Man-Bucket, 1) use a service 2) Pending intent Mar 25 08:33:55 danijoo: in my main app i've just shoved most of the logic into the main activity, now i would need to move that into a service and have the activity for the main app and the widget talk to the service instead? Mar 25 08:34:14 danijoo: the widget is a simple "remote control" button for my app, if that matters Mar 25 08:34:35 yes Mar 25 08:34:55 good morning Mar 25 08:35:18 danijoo: oh ok Mar 25 08:35:53 One-Man-Bucket, an activity is for showing things. if you want to do something without showing something, you always need a service Mar 25 08:49:45 hello all Mar 25 08:49:59 i want to ask about webview Mar 25 08:50:15 i am trying to create webview app but i am getting white screen Mar 25 08:53:46 * danijoo points to the topic Mar 25 08:55:12 xyz87: have you loaded anything into the webview, per chance? :) Mar 25 08:55:37 what do you mean by that :) Mar 25 08:55:46 I have loaded the url but I am getting white page Mar 25 08:56:13 the url is https will it load or no ? Mar 25 08:56:13 hi, is it possible to write a custom driver for android to control the LEDs of a USB RGB keyboard over OTG? Mar 25 08:56:17 is the url a white page? :p Mar 25 08:56:34 no it has a form Mar 25 08:56:47 in it in addition to a button and 2 textbox Mar 25 08:58:38 Is it possible to write custom drivers for android to support USB RGB keyboards over OTG cable (controlling the LEDs of the keyboard)? For example this one: Mar 25 08:58:38 http://a.m.taobao.com/i41983408283.htm?ttid=212200 Mar 25 08:58:39 I know it's possible for Linux in general on PCs, but the problem might be Android's driver management/policies or OTG... Mar 25 08:58:57 Boscop, wrong channel Mar 25 08:58:59 i really need to get a bouncer... Mar 25 08:59:04 quicky: anyone know exactly what the difference is between setting a theme on the instead of the in the manifest? Mar 25 08:59:11 danijoo, what is the right channel? Mar 25 08:59:32 Troffel, application is global for all activities Mar 25 08:59:36 thats the only difference Mar 25 08:59:40 Troffel, if you set it on the activity its only for that activity .. applicatoin is global Mar 25 08:59:56 Boscop, its pretty specific. Maybe someone at android-root can help you. But i doubt that Mar 25 09:00:39 danijoo: sorry my internet dropped, last thing i saw was this: 09:36 < One-Man-Bucket> danijoo: although, could i have the widget launch the activity with some parameter? Mar 25 09:01:00 yes, make a pending intent with extras Mar 25 09:01:07 One-Man-Bucket, yes. but this would show the activity Mar 25 09:01:15 you said you want it without an ui Mar 25 09:01:23 hmm, I figured that would make sense, but using application it didn't take effect. The error must be elsewhere, thanks danijoo and lemonxah :D Mar 25 09:02:14 danijoo: yes, but it seems like a nice step towards that to just have my widget launch the activity to perform the intended action Mar 25 09:03:04 One-Man-Bucket, no matter if its an activity or a service, the answer is still "use a pending intent" :) Mar 25 09:03:34 danijoo: gotcha, thanks! Mar 25 09:10:15 http://developerexcuses.com/ Mar 25 09:18:09 lol Mar 25 09:18:48 i'm using the PendingIntent.getActivity() and passign in a bundle, which method in the activity should i override to get the bundle passed in? Mar 25 09:19:27 One-Man-Bucket, have you tried google it? Mar 25 09:21:40 for half a minute or so :) Mar 25 09:22:16 then go back and don't return until you find your answer Mar 25 09:22:20 try another half :) Mar 25 09:22:30 its a oneliner Mar 25 09:23:42 ugh, why does play store have no ability to filter by "device availability"? what do I care about apps that don't work on any of my devices? Mar 25 09:24:12 45 seconds more of googling did the trick ;) Mar 25 09:24:35 you should make this a permanent habit Mar 25 09:25:05 ravilov, doesnt gp only show apps available for your device? Mar 25 09:25:17 or do you mean browser version Mar 25 09:25:27 browser Mar 25 09:25:38 on the device, yeah it works as expected Mar 25 09:26:28 but even the browser version knows what all devices I have so why can't it filter by that? I don't really care to see results that won't work for me, unless I happen to specifically decide I want to see those too Mar 25 09:32:36 hmm now launching the activity from the widget and from the app icon has the same effect Mar 25 09:32:52 One-Man-Bucket, use different intent extras Mar 25 09:34:30 danijoo: i'm setting a long in the extras when i launch from the widget, but that seems to "stick" when i go to home screen and launch it again from the icon Mar 25 09:38:03 that sucks One-Man-Bucket Mar 25 09:40:07 Can we use android:OnClick XML parameter to trigger a public function in a Fragment Directly? Mar 25 09:41:16 napster, this only works for activities Mar 25 09:41:24 ok Mar 25 09:42:10 hmm Mar 25 09:46:52 well Mar 25 09:46:56 technically it will work Mar 25 09:47:09 but it will trigger the onclick in the containing activity Mar 25 09:47:42 so you could pass that down an inheritance chain and determine if you are interested in that click depending on stuff Mar 25 09:47:54 but i wouldn't do it that way Mar 25 09:48:00 it will get really messy really fast Mar 25 09:48:52 finally got my new machine setup and ready to go .. :) Mar 25 09:50:05 lemonxah, yay Mar 25 09:50:31 what OS Mar 25 09:50:37 opensuse 13.2 Mar 25 09:50:51 nej :D Mar 25 09:51:04 yeah they gave me an ubuntu default :/ Mar 25 09:51:09 i almost cried Mar 25 09:52:13 im not a fan of both ^^' Mar 25 09:52:23 i dont like debian Mar 25 09:52:24 but never used suse to be fair Mar 25 09:52:35 suse is rpm based if you can call it that Mar 25 09:52:41 its my first time using it also Mar 25 09:52:46 yeah thats why i never used it :) Mar 25 09:52:54 kde on it Mar 25 09:52:59 hey all Mar 25 09:53:00 i got gentoo on home box Mar 25 09:53:08 anyone knows about webview ? Mar 25 09:53:14 my entry point was .deb, i think thats why I never tried to use suse Mar 25 09:53:18 but .. not going to ask these it guys to do gentoo cause .. wow they could barely install suse Mar 25 09:53:33 i know about it xyz87 .. everyone does Mar 25 09:53:36 xyz87, you can keep asking that 5 more times Mar 25 09:53:39 but i rarely ever use it Mar 25 09:53:44 or you just read the topic Mar 25 09:53:55 and post some actual code/post a stacktrace Mar 25 09:53:59 lol Mar 25 09:54:11 (no offense) Mar 25 09:54:27 I want to ask is there a way to fetch data from site to customize my layout instead of getting website as it is Mar 25 09:54:56 lemonxah: what don't you like about debian? Mar 25 09:55:02 xyz87, yes. have a look at jsoup on how to parse html pages Mar 25 09:55:05 and extract values Mar 25 09:55:13 what about https ? Mar 25 09:55:19 does it work with https Mar 25 09:55:37 will it work on a login page so i can login to site ? Mar 25 09:55:55 xyz87, jsoup wont load the page for you Mar 25 09:56:08 thats a different story Mar 25 09:56:16 ok but will it run as a backgroud Mar 25 09:56:17 ? Mar 25 09:56:34 if you make it do that Mar 25 09:56:39 by using tasks Mar 25 09:57:05 I'll read about it and return back if i have any concerns thanks so much Mar 25 09:59:36 barbs, its just a personal preference really but what i dont like about debian .. well most debian distros Mar 25 09:59:51 is that it takes a long time to get the new apps in the package managers Mar 25 10:00:39 and the repo base on rpm based packages with stuff like rpmfusion Mar 25 10:00:51 its huge Mar 25 10:01:00 ok this worked: http://stackoverflow.com/questions/4116110/clearing-intent/25535915#25535915 Mar 25 10:01:12 yeah, that is actually annoying. I've only really used debian-based distros, so I like to read about what other distros have to offer :) Mar 25 10:01:14 barbs, :) so its not like i hate debian or anything Mar 25 10:01:32 I dabbled a bit in Arch Linux, it was fun, but not something I'd use as a primary OS Mar 25 10:01:48 and they were using ubuntu 14.04 here so for the next 3-5 years i would have been on that Mar 25 10:01:52 its a trade between having the new, fancy stuff and having more tested stuff Mar 25 10:02:07 (not saying its more stable because of that ^^ ) Mar 25 10:02:22 being a dev and liking new stuff i would rather have the new even if it breaks my system cause i can fix it manually Mar 25 10:02:24 if needs be Mar 25 10:02:35 unless its your production server :p Mar 25 10:02:46 see I'd like to have the option - generally rely on the tested stable stuff, and then opt for more bleeding-edge stuff on a per-package basis Mar 25 10:02:51 yeah production servers i tend to use centos Mar 25 10:07:14 barbs, i think thats possible on most distrus Mar 25 10:07:30 deb based ones usually have a testing repo you can opt-in Mar 25 10:07:35 not sure about suse but i think its the same Mar 25 10:18:26 yeah kind of the same Mar 25 10:36:08 Hi, I really need help debugging something. I am really stuck, and I am kind of an App Newbie. I have this page: http://rc-nfk.dk/mobile/FlyingRules.htm and it works in all the browsers I have testet, even from my phone browser, but it does not work in my WebView App. Can ANYONE help mere figure out why? Mar 25 10:36:57 You have JavaScript disabled in the WebView? Mar 25 10:37:14 It is supposed to change the contents of the webpage, when selecting the Model Type, but it does not change the contents when accessed from my App Mar 25 10:37:22 webview.getSettings().setJavaScriptEnabled(true); Mar 25 10:37:29 What OS version are you running and what "phone browser" did you test on your device? Mar 25 10:37:42 TacticalJoke, I don't think so, cause I have some javascript on another page that works. Mar 25 10:37:48 But Alert does not work. Mar 25 10:37:51 I found. Mar 25 10:38:04 Lets me just check the app for that string you posted. Mar 25 10:38:09 Mnemonic: What are your WebSettings for the webView? Mar 25 10:38:12 Mnemonic: do you have anything that is conditional depending on user agent or other browser features? Mar 25 10:38:54 W* Mar 25 10:40:11 Hmm, is that page supposed to update every time the user selects something? I'm getting the initial update only on Google Chrome on Windows. Mar 25 10:40:13 Mnemonic, if you're running an Android version BELOW KitKat and you tested on your device in the Chrome browser you're going to have to test again in the stock browser on the device Mar 25 10:41:02 appel1, No Mar 25 10:41:28 I will just post my App settings to pastebin Hang on. Mar 25 10:42:56 I posted the App Javascript here: http://pastebin.com/3yiuPE1a Mar 25 10:43:32 VnM, Is WebView not using the Chrome Browser? Mar 25 10:43:56 Not for Android versions below 4.4 Mar 25 10:44:21 can I somehow suppress the "Unfortunately, has stopped." message when a background service crashes? Mar 25 10:44:44 VnM, I am running Android 4.4.4, and I tested with Chrome. Mar 25 10:45:18 Alright that should be mostly the same Mar 25 10:45:52 heftig: make sure your background service doesn't crash =) Mar 25 10:45:57 can't Mar 25 10:46:10 it's a crash in native code that i can't avoid, just hide Mar 25 10:46:25 it's fine if the service just restarts itself immediately Mar 25 10:48:46 heftig: http://developer.android.com/reference/java/lang/Thread.html#setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler) Mar 25 10:48:55 it's a segfault, not an exception Mar 25 10:49:58 try anyway Mar 25 10:53:41 Any ideers why it does not work for me? Mar 25 10:54:34 Mnemonic: did you enable javascript on your webview? Mar 25 10:55:01 I think so. I posted my WebView settings here: http://pastebin.com/3yiuPE1a Mar 25 10:55:26 ah yeah Mar 25 10:55:42 well, no idea sorry :) Mar 25 11:02:10 Shoult the Alert function in javascript work in WebView? Mar 25 11:02:19 Should even Mar 25 11:05:10 Guys, how I can get round 'APK Untrust Source Allow' (or something like this) for my app? Without changing device settings. Mar 25 11:05:22 Maybe add certificate Mar 25 11:05:24 ? Mar 25 11:06:39 I mean 'Unknown Sources' Allow installation of apps from unknown sources. I want to leave settings by default, but Install my app Mar 25 11:06:46 (in my company) Mar 25 11:10:00 woozly the short answer is you cannot do that Mar 25 11:10:14 lemonxah: :( thank you Mar 25 11:10:21 if it doesn't come from the play store then you cannot install it on the phone without enabling that feature Mar 25 11:10:33 so you could get your company to create you a play store account Mar 25 11:10:44 then you can use the alpha / beta tools on the play store Mar 25 11:10:51 and then use access control like a G+ group Mar 25 11:11:07 then only the people in that group will see the app and only they will be able to install it Mar 25 11:11:18 it will still come from the play store but be invisible to everyone else Mar 25 11:11:32 this way you can get past that unknown source for the apk Mar 25 11:11:56 * Zharf nods Mar 25 11:11:56 but you will have to upload to the playstore which takes about 1 to 2 hours for the new version to be available for them to update Mar 25 11:12:05 woozly, makes sense? Mar 25 11:12:14 danijoo: u here ? do you remember that we talked about ormlite and a bitmap variable in my model class to be persisted Mar 25 11:12:42 yep i remember Mar 25 11:12:55 BoD: unsurprisingly, it doesn't work Mar 25 11:13:09 lemonxah: thank you! Yes, it makes sense. Mar 25 11:14:40 i made that variable Object and cast to bitmap when i have to use it,ormlite didnt skip the class while commiting, seems like good Mar 25 11:16:05 anyone using postgresql as a backing db serverside? Mar 25 11:17:02 For styling, is there some cardinal rule for when to use the android:background and just background? Mar 25 11:17:41 I get one is the support-version, but blindly just applying both for good measure made me wonder :) Mar 25 11:18:33 Troffel, if the class is from support, use background, if its not, use android:backgroun Mar 25 11:18:36 Hey Mar 25 11:19:03 hi Phenicks Mar 25 11:19:06 has anyone experienced bugs derived from upgrading compat lib from 21 to 22 ? Mar 25 11:19:36 I had to manually rollback because some views were not focused\registering touches Mar 25 11:19:54 and my viewSwitchers were not switching propperly Mar 25 11:20:07 but that may have been improper style import Mar 25 11:22:16 how to check if Installation process was canceled or done? http://pastebin.com/APgJ2gBZ Mar 25 11:26:34 @woozly PackageManager triggered with repeating alarmmanager alarms ? PackageInfo info=pm.getPackageInfo(targetPackage,PackageManager.GET_META_DATA); Mar 25 11:27:35 Phenicks: Thank you. I'll try to get some info from it Mar 25 11:53:07 Has anyone achived root on prevail -lte? Mar 25 11:53:20 #android-root Mar 25 11:53:38 Thanks Mar 25 12:01:19 Is there a way to attach an event to AudioTrack to trigger when the AudioTrack completes? AudioTrack is playing in STATIC mode with loop. Mar 25 12:03:16 Anyone know how to get the project id (android studio)? Need it for gcm, and all guides I've found told me ill get it on project creation, but since that's long past. Any ideas :) ? Mar 25 12:04:09 Troffel, its in google developer console, not AS Mar 25 12:04:59 ah, makes sense. was thinking the android project itself :) thanks Mar 25 12:05:07 astroduck, you can set a marker and use a positionupdate listener Mar 25 12:09:50 Zharf: if I set marker at the end of buffer its playing, I will get periodic position updates, right? I want the position update when marker is reached in its last loop Mar 25 12:30:48 is there a way to preview the different states of a selector drawable in android studio? Mar 25 12:31:59 dont think so. Mar 25 12:32:06 but you can make them seperate drawables Mar 25 12:32:10 and view each Mar 25 12:32:43 hello Mar 25 12:38:41 does FragmentManager.popBackStack() also trigger onBackPressed()? Mar 25 12:38:54 Activity.onBackPressed() Mar 25 12:39:49 attach a debugger and test it Mar 25 12:39:59 why would it Mar 25 12:40:16 danijoo: Just did it. It does. Ashiren: I have the same question Mar 25 12:40:29 Is there a way to make it not do that? Mar 25 12:40:29 really? :o Mar 25 12:40:49 Causes ArrayIndexOutOfBounds for me :( Mar 25 12:41:32 so, popBackStack() in onBackPresses() == infinite loop? O_O Mar 25 12:41:48 fix your design, lol Mar 25 12:42:19 or find a way yo make it not trigger onBackPresses :P Mar 25 12:42:30 *onBackPressed Mar 25 12:42:45 you can work with the system or against it. one solution is easier than the other ;) Mar 25 12:43:47 hmm i has popBackStackImmediate in my onBackPressed Mar 25 12:44:13 overriding onBackPressed often makes no sense. let the system handle it Mar 25 12:44:23 thats the reason why popBackstack triggeres it Mar 25 12:44:29 :s Mar 25 12:44:44 lets not override onCreate and onResume then Mar 25 12:44:47 let the system handle it Mar 25 12:45:23 hello nuBento Mar 25 12:45:38 * danijoo rolls eyes Mar 25 12:47:14 hi danijoo Mar 25 12:47:38 noticed you helping here often, just wanted to say thanks Mar 25 12:49:04 :O Mar 25 12:52:21 danijoo: I need back press in my fragments, no other way to do it except overriding it, and how does oerriding it cause popBackStack to trigger it? Ashiren: Can you share your code? I am probably messing something up Mar 25 12:52:32 magellanic, http://cdn.meme.am/instances/500x/58840619.jpg Mar 25 12:52:59 ^lol Mar 25 12:53:14 astroduck, I dont have code where I override onBackPressed() Mar 25 12:53:29 I asked Ashiren :) Mar 25 12:54:04 if i want to have network communication and the thread policy is strict, can i use an asynchronous handler? Mar 25 12:55:45 astroduck: i have something like that http://pastebin.com/N7ce0M60 Mar 25 12:56:03 astroduck: probably also depends how you manage fragment transaction Mar 25 12:56:14 danijoo: serious, no sarcasm there ;) Mar 25 12:56:46 'lo. i use @Test(timeout = 10000) to interrupt tests if they appear to be hanging. what's the equivalent on Android? it does seem to have any of the junit annotations Mar 25 12:56:53 *doesn't Mar 25 12:57:55 magellanic, thank you then :D Mar 25 12:58:24 pleasure Mar 25 12:58:49 rmk0, android tests rely on junit 3.whatever and dont support a lot of annotations Mar 25 12:58:52 rmk0: Is your question "How can I use JUnit 4 with Android instrumentation testing?"? Mar 25 12:59:18 TacticalJoke: nope... just want to make sure a test that has the possibility of hanging fails quickly Mar 25 13:00:16 i could schedule a runnable that kills the current thread in the test if there are no other options Mar 25 13:03:26 I'm guessing this is the best idea: https://developer.android.com/tools/testing-support-library/index.html Mar 25 13:03:46 It allows the use of JUnit 4. Mar 25 13:06:07 Ashiren, danijoo: Sorry for the false statement. popBackStack doesn't trigger onBackPressed. I don't know what I read in my logs. Sorry :P Mar 25 13:06:52 :v Mar 25 13:07:19 what is the best way for allow user to select one imageview which contains 2 image views in a list view ? Mar 25 13:07:46 one image views which contains 2 image views ? Mar 25 13:07:53 and recursively or... ? Mar 25 13:07:57 an imageview cant contain an imageview Mar 25 13:08:01 its not a viewgroup Mar 25 13:08:17 bad english :D Mar 25 13:08:27 a listview which contains 2 image view Mar 25 13:08:42 only allow select one image view Mar 25 13:08:49 add an onclicklistener to both imageviews Mar 25 13:08:56 (i told you yesterday) Mar 25 13:09:13 ah Mar 25 13:09:16 you mean 2 listeners ? Mar 25 13:09:22 i use 1 listener for both Mar 25 13:09:33 you could use 1 Mar 25 13:09:41 and in listener check for view Mar 25 13:09:51 yeah. thats option #2 Mar 25 13:09:54 check view ids Mar 25 13:10:10 its a little bit messy thats why im asking Mar 25 13:10:16 im dealing with if else conditions Mar 25 13:10:20 :( Mar 25 13:10:32 one if else is too much? Mar 25 13:11:00 i have a lot Mar 25 13:11:04 theres also switch() :) Mar 25 13:11:04 Switch case then Mar 25 13:11:14 switch(view.getId()) Mar 25 13:11:31 nvm so you all say that is best way for doing that right ? Mar 25 13:11:47 eeyup Mar 25 13:11:48 still, yes Mar 25 13:11:58 thanks Mar 25 13:18:54 how to use robotium Mar 25 13:19:06 man robotium Mar 25 13:19:30 i followed their examples Mar 25 13:19:41 bt its giving errors Mar 25 13:19:56 google the errors, understand them, and fix them Mar 25 13:19:56 why does AS suddenly started creating java_pid1234.hprof files everytime i run my app? Mar 25 13:21:06 danijoo, do you have heap dumps enabled in memory monitor? Mar 25 13:23:13 m getting this Test failed to run to completion. Reason: 'Instrumentation run failed due to 'java.lang.IllegalAccessError'' Mar 25 13:23:18 Mavrik, havent used that since weeks but let me check Mar 25 13:24:41 as far as I can tell, no Mar 25 13:28:48 hey guys! question here: is possible to add or replace an specific character over the keyboard? Example: i wanna a numeric keyboard layout, but using the letter X instead the comma/dot symbol. Mar 25 13:30:25 unlikely, unless youll provide your own keyboard Mar 25 13:33:13 Ashiren: ok Mar 25 13:34:50 anyone here using mopub? Mar 25 13:35:05 i found a tutorial to build a custom http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615 but it just explain how to use it through the settings menu. I want to know how can i use the future custom keyboard the xml tag android:inputType Mar 25 13:35:54 abara, is it really worth the effort just to repace the . with X? Mar 25 13:37:14 danijoo: kinda. because i can replace the dot after the user stop typing, but i will need to explain the user that the the dot over the keyboard will be magically replaced for the expected X Mar 25 13:37:29 danijoo: i dont think it's a good UX for my case :/ Mar 25 13:38:13 a lot of users use custom keyboards with an alternate design Mar 25 13:38:35 dont you think it would be weird if your app as the only one on my phone shows a totally different keyboard Mar 25 13:39:36 danijoo: yeah, but i'm dealing with an application for an specific area. So this is not intent to being used outside. it's an bussiness application. Mar 25 13:57:08 hi Mar 25 14:18:55 Hi ! I'd just like to have native spinner items right aligned, using the current style. I read tons of diverse solutions non simple, what's the simplest, ie : hook on item instanciation (possible ?), default layout overload, style overload ? PS : I'm using android studio. Mar 25 14:37:48 hey, i have button with drawableLeft/Start, my app supports rtl but is there a way in this case to keep drawable always to the left? Mar 25 14:40:08 Does Android switch drawableLeft to drawableRight by default? Thought you had to define seperate layouts for RTL stuff Mar 25 14:40:37 you can't for api 15 Mar 25 14:40:50 joroci: just use drawableLeft and not drawableStart Mar 25 14:42:27 oh yea, my bad Mar 25 14:44:59 thanks Mar 25 14:57:10 Can a layout xml inherit an other ? Mar 25 14:57:34 no. only include Mar 25 14:58:42 Is it possible, that if I start a new Thread, call Looper.prepare();, and create a new handler and than post a task, with an ininite task, and call looper.loop(); that this infinite-loop-task is blocking the main queue? Mar 25 14:59:40 http://pastebin.com/TvTi7QCm Mar 25 15:00:48 tokam Mar 25 15:00:56 Phenicks? Mar 25 15:00:56 where are you creating a new thread ? Mar 25 15:00:59 thats how unreadable code looks like ^^ Mar 25 15:01:14 pastebin breaks my line length -.- Mar 25 15:01:24 because its over 9000 Mar 25 15:01:41 that's because i have to create a runable withhin a runable lol Mar 25 15:01:43 if pastebin breaks your code, its too much nested :p Mar 25 15:01:44 you have two runnables ? Mar 25 15:01:45 why ? Mar 25 15:01:54 use an async ?! Mar 25 15:02:01 one to start a new thread, and one to wrap my task in a handler Mar 25 15:02:05 how use async? Mar 25 15:02:18 http://developer.android.com/reference/android/os/AsyncTask.html Mar 25 15:02:22 the issue I do have, that the while(true) loop, is blocking my mainThread Mar 25 15:02:24 there's alotta hate for this one Mar 25 15:02:28 obviously Mar 25 15:03:02 infinite fors tend to block entire processes xD Mar 25 15:03:11 try to make a timertask Mar 25 15:03:24 and make it run the final runnable Mar 25 15:03:27 every 50ms Mar 25 15:03:29 i had to close it before it creeps out of the browser.. Mar 25 15:03:30 or less if you need Mar 25 15:03:59 sleep isn't that reliable Mar 25 15:05:09 if you want an infinite loop in a seperate thread, use a service or an asynctask that with a while(true) Mar 25 15:05:23 to which thread should I post that timertask? Mar 25 15:05:28 the final runnable Mar 25 15:05:41 the one with the loop Mar 25 15:05:45 remove the loop Mar 25 15:05:51 and it make it run every 50ms Mar 25 15:06:00 even more cool Mar 25 15:06:07 would be using the alarmmanager Mar 25 15:06:16 to wake up your process Mar 25 15:06:21 every x time Mar 25 15:06:26 so you could collect these Mar 25 15:06:46 should it be posted recursive? Mar 25 15:07:06 no Mar 25 15:07:12 in the schedule method Mar 25 15:07:15 there's a parameter Mar 25 15:07:20 to make it repeat every x ms Mar 25 15:08:12 since it paints to a bitmap Mar 25 15:08:24 my computation in one cycle takes more than 50ms Mar 25 15:08:42 I do not want my task to run before it has finished. Mar 25 15:08:47 So I might have to post it recursive Mar 25 15:08:55 then use the asynctask Mar 25 15:08:59 with the infinite loop Mar 25 15:09:26 since its for painting a bitmap, it makes no sense to run it more often than 60 times per second Mar 25 15:09:34 yeah danijoo Mar 25 15:09:34 you cant have more fps anyways Mar 25 15:09:39 exactly my thoughts Mar 25 15:09:47 if it's not for vr xD Mar 25 15:09:56 vr is 75+ fps Mar 25 15:10:06 I doubt it is :p Mar 25 15:10:08 and you can have more than 60 fps Mar 25 15:10:20 tokam Mar 25 15:10:24 use an asynctask Mar 25 15:10:26 there's a callback Mar 25 15:10:30 to post back information Mar 25 15:10:32 to the main thread Mar 25 15:10:41 and you should call draw() Mar 25 15:10:42 there Mar 25 15:10:46 rather Mar 25 15:10:48 invalidate() sorry Mar 25 15:10:51 on the view that is drawing Mar 25 15:11:00 so you should only pass data to the main thread Mar 25 15:11:02 and let it draw Mar 25 15:11:15 while you collect new batches asynchronously Mar 25 15:11:36 how do I do that? Mar 25 15:11:46 it's just a debugging code Mar 25 15:12:55 wat Mar 25 15:13:18 if this is just for debugging Mar 25 15:13:22 why do you need a new thread Mar 25 15:13:29 nevermind Mar 25 15:13:45 you create a class Mar 25 15:13:49 that extends imageview Mar 25 15:14:05 override the constructor Mar 25 15:14:11 so you launch your asynctask Mar 25 15:14:54 then Mar 25 15:15:08 on your asynctask Mar 25 15:15:18 you should override onProgressUpdate Mar 25 15:15:25 so it runs Mar 25 15:15:25 Bitmap bmp = Bitmap.createBitmap(mat.cols(), mat.rows(),Bitmap.Config.ARGB_8888); Mar 25 15:15:25 Utils.matToBitmap(mat, bmp); Mar 25 15:15:32 so i guess Mar 25 15:15:37 you should make an async task Mar 25 15:15:58 that passes around Mat Mar 25 15:17:12 AsyncTasks refers to classes I do not have Mar 25 15:17:27 passes arround Mat to where and how? Mar 25 15:17:57 my getOrientation runs in it's own thread but it uses the main thread for a little while in the takePicture method Mar 25 15:25:50 Maybe I can not use AsyncTask? Mar 25 15:26:08 on Api Level 14 Mar 25 15:29:16 "Added in API level 3" http://developer.android.com/reference/android/os/AsyncTask.html Mar 25 15:34:52 holy shit. the enter key is not punctuation. Mar 25 15:34:54 you know what would be awesome? If Google provided a FAB compatibility layer. Mar 25 15:35:06 aka Button? Mar 25 15:36:25 Yes, but with proper shading Mar 25 15:37:09 ok with the async task I get the same issue Mar 25 15:37:18 but maybe because I try to draw to the view within the async task Mar 25 15:37:25 03-25 16:34:21.656: A/Looper(1031): Could not create wake pipe. errno=24 Mar 25 15:37:32 and a blocked main-thread. Mar 25 15:38:31 getPose starts a new Thread, which calls a method that posts to the main thread. the thread which was created by getPose waits until the callback which should be executed by the main-thread terminates. Mar 25 15:40:18 when commenting out the line which changes the view, my app at least does not crash Mar 25 15:40:38 but my main-thread is blocked anyways, because my callbacks do not get executed anymore. Mar 25 15:40:52 If i change my infinite loop to be finite everything terminates Mar 25 16:09:27 I'm trying to debug some file i/o issues but everytime I close my app the debugger disconnects Mar 25 16:09:31 is there any way around this? Mar 25 16:12:13 Hey guys! How would I investigate the issue where the android says : "App is not responding. Do you want to close it?". Is there a crash dump when I press "ok" ? Mar 25 16:24:00 it doesn't issue a crash log? I guess I could somehow plug in the debugger in there and check which thread is hanging and where? Mar 25 16:34:13 Hi Guys! Mar 25 16:36:00 I keep getting a nullpointerexception when i send a SimpleCursorAdapter from my activity to a fragment. Does anyone know what can cause this? Mar 25 16:38:49 JohnR^^ well what call is the NPE occuring on? Mar 25 16:39:26 Afzal myListFragment.updateList(cursorAdapter); Mar 25 16:39:55 Is that what you meant? Mar 25 16:41:10 hi Mar 25 16:41:12 yeah so the cursorAdapter is probably null at that line or myListFragment is null Mar 25 16:41:24 can someone please tell me how these FAB work? http://www.androidpolice.com/wp-content/uploads/2015/02/nexus2cee_screenshot_2015-02-13-08-39-49.png Mar 25 16:41:25 see the stacktrace, set a breakpoint, debug Mar 25 16:41:49 i'm trying to replicate them in css Mar 25 16:42:08 how do the smaller ones come out? Mar 25 16:42:24 with a tap? long press? Mar 25 16:42:41 sal, doesn't inbox do the same thing? why not check out that Mar 25 16:43:07 i'm keep using gmail, because know it have multiple accounts Mar 25 16:43:09 hehehe Mar 25 16:43:26 you can still use gmail if you've signed up for inbox Mar 25 16:43:41 ok, so i have to reinstall inbox Mar 25 16:44:01 i meant the website since you're doing CSS work, https://inbox.google.com/u/0/ Mar 25 16:44:55 oh Mar 25 16:45:04 yes, ok, but that works on hover Mar 25 16:45:08 i saw that already Mar 25 16:45:20 i'm asking about the mobile with touch Mar 25 16:45:47 same movement Mar 25 16:45:55 on desktop, if you go hover the main FAB, it turns to the main function and also show other minor function Mar 25 16:46:24 but on a touch? do i have to tap to open and then tap again the get the main function (edit) Mar 25 16:46:37 yes Mar 25 16:46:41 or does it open on a long press? Mar 25 16:48:04 ok, thanks Mar 25 16:54:50 hi, http://cl.ly/image/0F2F3P1N433e how i can chnge the "Code" label, i need change only in androidstudio, not the direcctory Mar 25 16:58:44 t0th_-_, try right click on it and refactor->rename it. Although i think that will rename the directory Mar 25 16:59:04 It's just a name though, it shouldn't change anything. Mar 25 16:59:09 yes Mar 25 16:59:13 because i have many project Mar 25 16:59:20 and code is in directory Code Mar 25 16:59:30 when i open AS, i see Code, Code, Code ehehehe Mar 25 16:59:37 i dont know what project is Mar 25 16:59:57 you should rename the directory haha Mar 25 17:00:06 break the "Code" convention Mar 25 17:09:59 Afzal I’m gonna try that - thank you :) Mar 25 17:19:01 So I just started using ButterKnife, which is really neat; however, I'm seeing other things like AndroidAnnotations RoboGuice. What the communities general consensus on using these type of 3rd party plugins. AndroidAnnotations looks like it has a lot of neat built in features - I'm not sure how I feel about the '_' and generated classes though. Mar 25 17:19:18 ButterKnife is a library Mar 25 17:19:26 AA is a framework Mar 25 17:19:38 RoboGuice i'd also probably move into a framework category Mar 25 17:20:39 Woah. Jake Wharton! Thank you so much for contributing so much to the Android Community! Love your work. Mar 25 17:30:47 Are there any disadvantages to using something like AndroidAnnotations? I know they say it doesnt have much of a performance impact (if any). Anyone have any opinions on working with AA? Mar 25 17:36:58 Hi! I'm using a CursorLoader to populate a fragment inside a ViewPager. The problem is onLoadFinished doesn't get called during scroll. Only when page is selected onLoadFinished is called and my fragment displays data Mar 25 17:37:37 danijoo: Thanks for the help yesterday. To fix my issue I had to set minifyEnabled to true - nothing else seemed to do the trick. Mar 25 17:41:38 codepete, I've used it on a proejct and it adds alot of complexity compile-wise Mar 25 17:41:41 otherwise it's ok Mar 25 17:41:52 but I guess there are more modular and easier to use libraries out there with the same functionality Mar 25 17:42:13 Afzal: I still can’t find the issue :/ Mar 25 17:42:31 JohnR^^ pastebin your stacktrace and the code plz Mar 25 17:43:00 Afzal: will do. Thank you :) Mar 25 17:43:14 I'm trying to build a project using Android Studio that was originally written by someone else using Eclipse. FYI, it uses ActionBarSherlock. I've got most of the dependcies satisfied AFAICT but in the Manitfest I have @style/Theme.Sherlock.Light in red so it isn't finding something to do with the theme. Mar 25 17:43:24 I'm not sure what I need to change so it can find what it is looking for. Mar 25 17:44:00 Plugh ABS is deprecated so who knows if it has conflicts with other things Mar 25 17:44:07 I've already imported the two action bar sherlock modules. Mar 25 17:45:04 Mavrik: thanks. Ah ok, simplifies writing code, but it does add complexity elsewhere. After using it would you recommend it or would you recommend steering away from it? What other libraries? Mar 25 17:45:18 I think it isn't finding the theme but I don't know how the theme system works. I've read about styles.xml and theme.xml but I don't have either file in this source tree. Mar 25 17:47:45 Afzal: I want to debug the application and find out why it is no longer compatible with my Android 4 tablet when the author says it is written for Android 2 and up. I used to be able to run it on my tablet until it went for repair. Its same tablet and same version of Android so I don't understand why the app can't be used any more. Mar 25 17:49:49 codepete, I probably wouldn't use it anymore since it caused way too many issues with build systems for me Mar 25 17:49:55 as for other libraries... depends on which parts do you ened. Mar 25 17:49:59 *need Mar 25 17:50:44 I would honestly recommend migrating away from ActionBarSherlock since its deprecated. Its a pretty easy process to migrate. This stackoverflow post helped me: http://stackoverflow.com/questions/20933944/what-are-the-common-issues-when-migrating-from-actionbarsherlock-to-actionbarcom Mar 25 17:52:11 codepete: I didn't write this app. I'm trying to make the smallest number of changes to the source so I can build it. Once I can build it and try running I can deal with the bug. No point in me rewriting the app when I want to pass any changes/fixes back to the author who is using ABS for compatability with older Android systems. Mar 25 17:53:12 codepete: Gotcha. Just tossing in my 2 cents. :) Mar 25 17:53:35 oops Plugh ^ Mar 25 17:53:51 Plugh, I don't get the part about 2 modules Mar 25 17:53:57 ABS is available as AAR for Gradle Mar 25 17:54:12 which should be a single dependency... what did you mix up? :) Mar 25 17:54:54 I did read about it being deprecated. I don't know anything about ABS or how to use it. This issue might be a simple one of matching a theme name in two files. Mar 25 17:55:03 Buhu. Wasnt picked out for an I/O ticket this year. :'( Mar 25 17:55:29 Mavrik: ah ok. I just discovered Butterknife and was just curious on what other libraries that could help clean up some boilerplate code and make writing code cleaner. Mar 25 17:55:35 Plugh, I'm sorry, but you can't develop / fix an app if you won't bother checking a simple documentation site. Mar 25 17:56:42 Mavrik: I've been doing searches. If you want to be more helpful you can say which doc site you think will be of assistance since it doesn't seem to be one of the ones I've been reading. Mar 25 17:57:12 Zooklubba: That sucks :(. I totally forgot to register haha. I'm just glad they have it available for streaming. One of these years I hope I'll be able to go. Mar 25 17:57:37 codepete: Ive been twice, gotten the finger since they started with the draw. Which sucks. But what are you gonna do :P Mar 25 17:58:12 Zooklubba: Oh thats awesome. I'm so jealous you got to go twice. Mar 25 17:58:39 Been great, which I guess makes me feel worse when Im not allowed to buy. Ignorance is bliss :P Mar 25 17:58:49 haha Mar 25 18:02:36 man this IO ticket thing sucks Mar 25 18:05:39 if anyone wonders about my CursorLoader in ViewPager question, manually calling super.onStart() in OnViewCreated or alike causes Loader to start and Fragment with data becomes visible during scroll until page is selected. Seems hacking though Mar 25 18:05:46 hello there! Mar 25 18:06:03 hi! tksko Mar 25 18:06:23 can someone help me with bitmaps and compression? Mar 25 18:06:28 I am a bit lost.. Mar 25 18:07:40 I am taking a photo with the camera and i need to compress that picture to upload it to a server..... Mar 25 18:07:45 but i am having some problems Mar 25 18:08:02 my code to upload to server needs a file and not a bitmap Mar 25 18:08:21 i cant get to create a "temp" file with the compresssed bitmap to upload Mar 25 18:09:55 tksko why can't you create a temp file? Do you have the permissions? Mar 25 18:10:05 tksko: bitmap.compress to FileOutputStream where filename is getFilesDir() + "/tempbitmap" Mar 25 18:10:42 i just come to a link about ByteArrayBody and ImputStreamBody Mar 25 18:10:54 i need a file to use in FileBody to upload it to server Mar 25 18:13:56 hi Mar 25 18:15:09 oh, Square is releasing a new library called Moshi? o.o Mar 25 18:15:28 :-O Mar 25 18:15:44 Lies Mar 25 18:15:48 Nice! Can you talk about it yet JakeWharton? :P Mar 25 18:16:01 I have obtained this information through trusted sources Mar 25 18:16:10 So. anyone going to Google I/O? Mar 25 18:16:22 It'll be public soon. I'm speaking about it at Droidcon in 2.5 weeks Mar 25 18:16:25 tricknology no, it seems like google wants everyone to go to DroidCon instead Mar 25 18:16:40 I mean, if there were such a library... Mar 25 18:16:40 Yeah that's where I read it lol, looking forward to it Mar 25 18:16:50 only in spirit ಥ_ಥ Mar 25 18:16:57 tricknology: ^ Mar 25 18:17:14 I’ll probably be goign to an extended. Didn’t get lucky this time Mar 25 18:17:15 you can't complain to Google about play store in spirit >_< Mar 25 18:17:20 lol Mar 25 18:17:22 I'll probably spend a couple days watching the videos anyway Mar 25 18:17:33 I really wanted to get an answer about what they're doing with all the complains Mar 25 18:17:36 I’m sure my company will not be sending me to DroidCon kek Mar 25 18:17:36 Afzal: I don't know if it works in person either Mar 25 18:17:54 404 error Mar 25 18:18:07 groxx Last I talked to Lisa Wray, they knew about the issue Mar 25 18:18:09 403: permission denied, not a googler Mar 25 18:18:22 403 is forbidden <_< Mar 25 18:18:38 404 response not found Mar 25 18:18:39 I was thinking that... Mar 25 18:18:48 im using a viewpager with fragment, i want to share data from fragment to activity, when a click is done on the activity, i have tried static variable , i have try a get method, but it doesnt give the actual value contain in the fragment. Mar 25 18:18:52 how can i do ? Mar 25 18:19:10 You could use a Message/Handler Mar 25 18:19:45 john67: from fragment to activity? ((MyActivity) getActivity()).doWhatever() Mar 25 18:20:00 if you have a public menthod you want to call Mar 25 18:20:08 or you could use an interface Mar 25 18:20:22 I fixed the problem I was having. Turns out I had imported the ABS modules but I needed to add the main ABS module as a dependency of the main project. Mar 25 18:20:58 codepete, WHAT WAS YOUR ISSUE AGAIN? Mar 25 18:21:02 sorry caps Mar 25 18:21:08 groxx: yeah from Frgament to activity Mar 25 18:21:33 oh wow, all the people I follow are doing to DroidCon Mar 25 18:21:47 danijoo: It was the LaunchHelper issue, which you pointed out was a OOM problem. Mar 25 18:21:58 facebook sdk? Mar 25 18:22:02 yup Mar 25 18:22:12 maybe you hit the 64K limit Mar 25 18:22:39 Yeah the facebook SDK pushed to the limit i think. Mar 25 18:22:48 doesn't gradle warn you when you go over? Mar 25 18:23:01 dunno Mar 25 18:23:02 minifyEnabled helped the issue, but I dont know if that was necessarily the correct solution though Mar 25 18:23:03 i dont know which is the best way to take a picture, compress it and finally upload it Mar 25 18:23:10 i am using some deprecated classes Mar 25 18:23:15 hello everybody Mar 25 18:23:17 "Warning, your app has too much functionality for this platform, please slim it down" Mar 25 18:23:28 lol, g00s Mar 25 18:23:38 I have a listview and inside I have an adapt with another view Mar 25 18:23:45 "Excuse me sir, your app... Mar 25 18:23:46 how do I extract the text/info from that view Mar 25 18:23:47 ah what happens to apps when the content rating requirement goes through? Mar 25 18:24:11 when do you want it ajoul? Mar 25 18:24:18 on click? Mar 25 18:24:20 danijoo: I did read https://developer.android.com/tools/building/multidex.html, but adding multidex lib didn't seem to help Mar 25 18:24:33 ajoul, getText() ? Mar 25 18:24:34 danijoo: probably did it wrong though Mar 25 18:24:35 tksko: whatever networking library you're using probably has a way to do a POST with a File. look that up. and `bitmap.compress(etc)` will write to a file for you. write to disk -> send with POST. Mar 25 18:25:06 tricknology: This is my code inside an onClickButton http://pastebin.com/PjWdV79J Mar 25 18:25:37 tricknology: I am just not sure how to do something like findViewByID after the get() Mar 25 18:25:40 ok so your item will be aview Mar 25 18:26:01 what is your view like? is it custom? Mar 25 18:26:15 it is just a table row with some text and 2 check boxes Mar 25 18:26:26 ok Mar 25 18:26:39 table row have a textview? Mar 25 18:27:00 and do you know what order the text is in? Mar 25 18:27:03 yeah Mar 25 18:27:07 as in 0 1 2 Mar 25 18:27:16 order in your xml i suppose, top to bottom Mar 25 18:27:19 tricknology: I have no idea about what the text is Mar 25 18:27:34 yeah but its position in your xml layout, is it 0, 1, or 2? Mar 25 18:27:41 you have 3 elements Mar 25 18:27:53 it is dynamically allocated, displayed depends on the user data Mar 25 18:28:12 well i got it working... but i still need to scale the picture Mar 25 18:28:16 can I see the xml for your list item? Mar 25 18:28:23 is too big... Mar 25 18:28:46 The original one is 3mb and with JPG to 80% i got 800kb Mar 25 18:28:55 list.getAdapter().getItem(i).findViewById(R.id.text).getText().toString() Mar 25 18:29:06 tricknology: http://pastebin.com/Vktb4pTS Mar 25 18:29:21 or Mar 25 18:30:03 list.getAdapter().getItem(i).getChildAt(0).getChildAt(0).getText().toString() Mar 25 18:30:55 so get adapter, get item, find the view in that viewgroup, get its text, convert to string Mar 25 18:31:12 tricknology: Do I need to cast the item I get into something because the getChildAt() method is undefined Mar 25 18:31:40 yeah.. I would use the first one Mar 25 18:31:41 tksko: yeah, that's believable. either compress it more, or scale the image down Mar 25 18:31:47 tricknology: that could be because the adapter is filled with items that are a costum class that extends ArrayAdapter Mar 25 18:31:56 yes i will try scaling Mar 25 18:32:02 list.getAdapter().getItem(i).findViewById(R.id.t\xt).getText().toString() Mar 25 18:32:07 list.getAdapter().getItem(i).findViewById(R.id.txt).getText().toString() Mar 25 18:32:18 oooh can I see your listAdapter? Mar 25 18:32:24 maybe the object you’re getting is not a view.. Mar 25 18:32:34 with .getItem, I would assume it's not a view Mar 25 18:32:42 can you jsut cast it to some view and see if you get a classcastexception Mar 25 18:33:20 :-O you are right groxx. Mar 25 18:33:25 you want getView(i) Mar 25 18:34:45 tricknology: http://pastebin.com/WJ17bzJf Mar 25 18:35:10 tricknology: what do I cast it to? Mar 25 18:35:21 nvm that Mar 25 18:35:30 use list.getChildAt(i) Mar 25 18:35:34 that will get you your view Mar 25 18:35:54 then use .findViewById(R.id.txt).getText().toString() Mar 25 18:37:32 tricknology: thanks a lot I will try it out Mar 25 18:38:04 groxx: i didnt get your idea, ((MyActivity) getActivity()).doWhatever() isnt use from fragment to activity Mar 25 18:38:51 tricknology: the interface , i tried, but the fact is according to the doc, u have to have an event (click) on the fragment, Mar 25 18:40:07 TIL for a preference summary, you can use android:summary="%s ffo bar" Mar 25 18:40:25 and it will automatically be set ;) Mar 25 18:40:35 well at least for ListPreference Mar 25 18:40:36 hi are you using eclipse or android studio Mar 25 18:40:52 snowkrash joe's own editor ! (JOE) Mar 25 18:41:04 be serious Mar 25 18:41:06 john67 I’ll try to get you a resource on the callback pattern using interfaces Mar 25 18:41:22 You create the interface class, then implement it in the Activity Mar 25 18:41:37 my last info was that all are using eclipse Mar 25 18:41:43 then pass the interface (this) through your fragment args Mar 25 18:42:20 then in your fragment you can use it like callback.onWhatever(data here) Mar 25 18:42:52 then in your Activity there will need to be an @Override method (this should be automatically pointed out by your IDE) Mar 25 18:43:05 oki Mar 25 18:43:23 tricknology: why through arguments if just getActivity() will do Mar 25 18:43:38 depends on your preference I guess Mar 25 18:43:42 it will do Mar 25 18:43:54 but then you have pub methods in your activity Mar 25 18:43:56 http://stackoverflow.com/questions/3398363/how-to-define-callbacks-in-android Mar 25 18:44:00 cant you answer a simple question which ide you guys are using ;) Mar 25 18:44:09 hehe coworker explaining the woes of eclipse to hr Mar 25 18:44:18 didn’t see your last text Mar 25 18:44:20 as Mar 25 18:44:21 Eclipse here Mar 25 18:44:25 AS soon I guess Mar 25 18:44:29 ok Mar 25 18:44:32 dont listen to tricknology he also prefers windows 95 Mar 25 18:44:35 so as is now the way to go Mar 25 18:44:36 thanks Mar 25 18:44:38 need to let the boss know my productivity will be slowing down Mar 25 18:44:44 3.1 or bust Mar 25 18:45:03 Will a ListView not draw a divider between views of different types? Mar 25 18:45:38 I made an adapter that includes a header and wraps another adapter, but dividers are only shown between elements of the wrapped adapter. I presume this is because the header and the items in the wrapped adapter are of different types...? Mar 25 18:46:41 tricknology slowing down? Imagine how fast W95 will run on today's hardware! Your productivity is gonna go through the roof! Mar 25 18:47:21 http://englishrussia.com/2007/09/03/the-matrix-goggles/#more-1377 Mar 25 18:47:36 ascii vision Mar 25 18:48:10 AndreasL: so do you use listview headers as in addHeaderView? Mar 25 18:48:30 Totally invented while on lsd ^ Mar 25 18:48:42 AndreasL: then enable android:headerDividersEnabled Mar 25 18:49:07 icedp, actually no, because I add them into a mergeAdapter eventually, so you get the end result of a sectioned ListView where each section may have different types. There may be better ways to accomplish this though Mar 25 18:49:34 To be clear, my desired end result is a listview with different sections, where each section has a header and a set of items (where each section may have different types of items) Mar 25 18:49:37 AndreasL: draws dividers for me between different types Mar 25 18:50:13 AS 1.2 Preview 4 is out Mar 25 18:51:20 hi, has anybody tried to run https://github.com/android/platform_development/tree/master/samples/SearchableDictionary? I have imported SearhchableDictionary directory into AS and after run it says something about "Permission Denial: starting Intent"? Mar 25 18:51:26 done, updated Mar 25 18:51:27 :p Mar 25 18:51:31 AndreasL: not in lollipop, it seems. annoying. Mar 25 18:51:32 icedp, I see. Well, I wish I could use the built-in header functionality, but I don't know how to do it when I in essence I need multiple headers dispersed through the list Mar 25 18:51:49 Afzal lol, mine still at 1% you are fast ! Mar 25 18:51:58 lol Mar 25 18:52:08 groxx, sorry, which question is that an answer to? Whether or not it can draw dividers between different types...? Mar 25 18:52:12 100 mbps baby Mar 25 18:52:14 crap, I'm afk, can't update remotely D: Mar 25 18:52:26 AndreasL: dividers between different types Mar 25 18:52:30 groxx, ok, thanks Mar 25 18:52:36 sorry, ambiguous :) Mar 25 18:52:51 3mb to 24kb! Mar 25 18:52:57 amazing scaling! lol Mar 25 18:55:25 AndreasL: I've taken to modifying the rows, or adding a divider type. at this point though I'd probably switch to recyclerview and add a decorator. Mar 25 18:56:40 groxx, interesting. Thanks for your input! Mar 25 18:59:25 I think at this point I just need to get something up and running, so I'll stick with the ListView approach and possibly reimplement it with RecyclerView further down the road Mar 25 19:00:25 so in the interim I think I need to decorate my actual items with dividers. Right now I'm just trying to add a simple border below a TextView, preferably through styles alone. Can I use android:drawableBottom to accomplish this? I.e. if I use a Line shape, can I get it to scale along the width of the item? Mar 25 19:00:30 Perhaps using a layer-list..? Mar 25 19:00:52 layerlist in lsitview is probably bad idea since => overdraw Mar 25 19:01:03 but you can definatly use a shape drawable and that will stretch Mar 25 19:01:18 nine patch is the way to go tho Mar 25 19:02:44 lasserix, ok, thanks. Will a regular shape automatically stretch by itself? I agree nine patch is the better solution, but I think atm a simple line would do Mar 25 19:03:09 sure Mar 25 19:03:28 oh, I was under the impression that it didn't Mar 25 19:03:40 so I just specify height and leave width unchanged...? Mar 25 19:03:46 yeah Mar 25 19:03:57 great, that's just what I need. I was confused by some online discussion Mar 25 19:07:04 AndreasL: drawables stretch to fill their container in most cases Mar 25 19:07:36 groxx, I see, thanks. I'm still very new to this :) Mar 25 19:15:48 AndreasL: this is an interesting talk BTW, though probably more detailed than you need now :) https://plus.google.com/+CyrilMottier/posts/PAD3df6nkG3 Mar 25 19:16:43 in android studio, how do I set a specific layout to be either landscape or portrait? I have a layout that is supposed to be both, but android studio has branded it as "layout_name (landscape) Mar 25 19:17:08 which results in a "resource not found" when I try to inflate it (presumably in portrait mode) Mar 25 19:18:57 ...it appears that it decided for me that those should go into the landscape folder. silly of me not to notice that :) Mar 25 19:19:23 groxx, thanks, I'll add it to my backlog of videos I should watch :) A bit too short on time at the moment! Mar 25 19:21:01 is there a way to use google places to earn advertising revenue from featuring those places in your app? Mar 25 19:21:15 for instance if you had a tourist POI app, Mar 25 19:22:44 tricknology: how can i therefore call the methode , in the onclickListener , this is what i have done so far http://pastebin.com/e0yTmnG5 Mar 25 19:30:01 how do I set the style property of a TextView at run-time, i.e. upon instantiation? Mar 25 19:42:45 setTextAppearance is one way Mar 25 19:51:46 lasserix, it seemed to only impact the style of the actual text and not the whole view, can that be correct...? Mar 25 19:51:52 maybe I'm mistaken Mar 25 19:51:59 textappearance only text appearnce Mar 25 19:52:06 not padding, etc Mar 25 19:52:16 lasserix, yeah, that agrees with my observations Mar 25 19:52:26 lasserix, I really can't get the shape to stretch along its width using drawableBottom by the way Mar 25 19:52:51 the only way I can get it to show is if I set Mar 25 19:53:08 AndreasL: i think you can use one of the constructors Mar 25 19:53:19 int defStyleAttr Mar 25 19:53:39 lasserix, what do I supply for the AttributeSet? Mar 25 19:53:47 is it possible to detect the orientation of a photo from the camera? Mar 25 19:54:07 if the photo is at 90% i want to rotate it... Mar 25 19:54:30 90%? Mar 25 19:54:46 i have problems when i take pictures in portrait mode Mar 25 19:54:54 90º sorry Mar 25 19:54:54 http://stackoverflow.com/a/24267107/3865761 Mar 25 19:55:48 i am taking some pictures and when i set them into an ImageView, they are rotated Mar 25 19:56:14 or i guess if you scroll down there is ContextThemeWrapper Mar 25 19:56:37 try something with camera.setDisplayOrientation() Mar 25 19:56:48 example https://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int) Mar 25 19:58:32 also about photos themselves - https://stackoverflow.com/questions/11026615/captured-photo-orientation-is-changing-in-android Mar 25 20:20:52 would there be any reason to use support lib 19.x instead of 20+? Mar 25 20:21:03 Camera pictures are an entire world Mar 25 20:21:22 ^^ deep thoughts by tksko Mar 25 20:21:30 lol Mar 25 20:22:02 everything i want to do, its a headache Mar 25 20:24:50 alright, time to try out Kotlin! Mar 25 20:24:51 is romain guy doing android stuff again ? http://www.curious-creature.com/2015/03/25/android-performance-case-study-follow-up/ Mar 25 20:25:19 g00s he wrote that yesterday I think. Dunno, his brain probably hasn't stopped Mar 25 20:25:24 (thinking of Android) Mar 25 20:25:47 spinner#setSelection in a fragment is not working. The spinner gets a small height, as if there's nothing selected Mar 25 20:26:08 onItemSelected is not called either Mar 25 20:26:37 setSelection is called after setAdapter Mar 25 20:27:32 but i'm thinking that the spinner is not yet rendered, thus it can't change selection. am i right: Mar 25 20:27:37 ^? Mar 25 20:54:39 capella use node? http://blogs.msdn.com/b/visualstudio/archive/2015/03/25/node-js-tools-1-0-for-visual-studio.aspx Mar 25 20:54:56 MS can crank out developer tools like there is no tomorrow Mar 25 21:02:55 Does anyone run windows? Mar 25 21:09:10 does the bear...woods Mar 25 21:09:29 I meant is it good for development Mar 25 21:10:00 It’s very good for development, I use both Mac and Windows, they both have pros and cons Mar 25 21:10:17 Ok, just bought a thinkpad Im trying to decide whether to keep it or go for osx Mar 25 21:12:22 so i guess woods ... bear Mar 25 21:12:41 for android windows is perfectly suitable Mar 25 21:12:46 Ok Mar 25 21:12:52 Is there anythjing that its not good for Mar 25 21:12:55 besides IOS Mar 25 21:16:23 sure Mar 25 21:16:44 but nothing that can be quantified into one paragraph Mar 25 21:17:10 drose379, you can always run another system in virtual machine Mar 25 21:18:08 Yeah, if I had to I could Mar 25 21:27:59 I used to use windows for android dev, new job had a nice new macbook for me and i'll never go back now Mar 25 21:28:37 Except the USB stack on MacOS is terrible Mar 25 21:28:44 and the filesystem Mar 25 21:28:48 terminal, homebrew, full screen apps Mar 25 21:29:49 the thing i dont like about the new macs is they seem to be going in a direction where all things use 1 port Mar 25 21:29:57 i really dont like that Mar 25 21:30:23 yeah I agree there Mar 25 21:30:30 Yup, no more USB. Prepare to buy a lot of adapters and have your desk look like a crazy amusement park Mar 25 21:30:38 seems to be well past "going in a direction" and into "they're going to ship the damned thing" Mar 25 21:31:00 at least it's not a proprietary port any more though Mar 25 21:31:05 the macbook pro is still the same Mar 25 21:31:09 but now you're forced into a pro Mar 25 21:31:15 ah, is it just the macbook? Mar 25 21:31:18 yep Mar 25 21:31:31 the air is still around too.. for now i suspect Mar 25 21:31:36 at least i hope the MBPs keep multiple ports. if usb-c can do anything, then maybe you can use 2 - 3 usb ports interchangeably Mar 25 21:31:50 next refresh of air / pro will have it, pretty much guaranteed. or maybe 2 usb3 ports. Mar 25 21:31:50 including power Mar 25 21:31:51 For me, Mac at work, Windows laptops for home Mar 25 21:32:03 s/3/c/ Mar 25 21:32:33 anyone know how i can get my htc one m8 to factory state and unrooted? Mar 25 21:32:43 jaana, I used to agree. Although I just moved and haven't unpacked my windows desktop. Just been using osx all the time now Mar 25 21:33:16 i went on this website http://xda7.androidrevolution.org/db_mirror/Firmware/index.php?dir=HTC%2FHTC_One_M8%2F and they have many firmwares, i don't know which one to exactly download Mar 25 21:33:20 Tolken: probably a better question for #android-root, but see if you can get it into recovery mode, there's often a factory reset in there somewhere. Mar 25 21:33:36 factory root only wipes the date Mar 25 21:33:44 data* Mar 25 21:34:03 android root is dead Mar 25 21:34:11 since 1977 before google was created :P Mar 25 21:35:02 it's not a rooting related question... Mar 25 21:35:10 its how to go back to normal state. Mar 25 21:35:13 it's not an app dev question Mar 25 21:35:21 bankai_, good point Mar 25 21:40:06 i'd try to get one of these windows boxes https://news.ycombinator.com/item?id=9265642 Mar 25 21:56:03 are the google 2014 i/o videos the best place for grokking material design? Mar 25 22:04:11 mrfu, i like the design spec site http://www.google.com/design/spec/material-design/introduction.html Mar 25 22:17:29 can i call release reset on a mediaplayer or is that illegal? Mar 25 22:17:54 you'll know when you try, seems to be pretty fussy :) Mar 25 22:20:55 hi Mar 25 22:26:04 If I find the Android Studio EULA a very bitter and hard object to swallow, what are my options? Mar 25 22:26:11 Hey, Do you guys commit your keychain file with your application code source or backup the file in another place ? Mar 25 22:26:24 senayar: Never do that Mar 25 22:26:41 yeah, send it to me for safekeeping instead :P Mar 25 22:26:46 :)) Mar 25 22:26:47 joke Mar 25 22:26:51 what? Mar 25 22:27:01 if you are at a company why not put it in your repo? Mar 25 22:27:12 that what I ask lasserix :) Mar 25 22:27:24 i do Mar 25 22:27:27 for many reasons Mar 25 22:27:39 mostly because when you can't find it later and you lose the ability to update your app you wont get fired Mar 25 22:28:31 You don’t want everyone having access to your repo to be able to publish app under your name Mar 25 22:28:36 Make it an opt in thing Mar 25 22:29:00 I store my key in Google Drive and I use an env variable to pick it from there at build time Mar 25 22:29:13 g00s no Mar 25 22:29:15 you cannot Mar 25 22:29:19 I understand this too jaana but well, why not Google provide storage for them ? :) Mar 25 22:29:23 damn that means i have to reinstantiate it each time Mar 25 22:29:32 Yeah, I store mine in my lastpass database Mar 25 22:29:44 im using a viewpager with a fragment, i want to send a variable from fragment to activity when a button is clicked on the activity,i have create a static variable it doesnt work , have tried a get method, same thing. how can i do? Mar 25 22:30:10 f-cking as Mar 25 22:30:17 JesusFreke, just tell me it's not an online tool Mar 25 22:30:27 everytime i press something i get this question mark logo and then if i dont press esc in 3 seconds it crashes Mar 25 22:30:52 senayar: personally I keep it in my password manager Mar 25 22:30:57 nfk|laptop: it is Mar 25 22:31:02 oh god Mar 25 22:31:03 encrypted + backed up in a bunch of places Mar 25 22:31:07 nfk|laptop: but the server never has your key Mar 25 22:31:17 groxx is actually giving you a fine example Mar 25 22:31:20 they just store an encrypted blob. all the decryption is always done locally Mar 25 22:31:28 JesusFreke, oh, right Mar 25 22:31:32 right.... Mar 25 22:31:33 as if Mar 25 22:31:43 unless you yourself sent a blob Mar 25 22:33:13 lasserix, a fine solution is to encrypt it with something like AES (just do it right) Mar 25 22:33:29 one argument against keeping stuff like that in version control: it makes it available to all past, present, and future employees. the signing key _can't_ be changed, so you're not only trusting yourself with keeping it secure, you're trusting _everyone_. Mar 25 22:33:43 i would still not make it public if i had a shred of sanity but company systems should be okay Mar 25 22:33:47 just don't forget the password Mar 25 22:34:18 groxx: yes why not in password manager but it's private to a single person only :(, a Google Drive dedicated to it sound better, the company can still use it when you left and the file is "safe" somewhere Mar 25 22:34:24 probably writing it down in your notebook encrypted with the classical caesar cipher should do the trick Mar 25 22:35:23 senayar, if it's a blob, that's fine, if it's not encrypted, it's still a bad thing to do TM Mar 25 22:35:42 senayar: yeah. some level of enterprise-ification is useful here, because it's unchangeable. hell of a lot of risk in one thing, best to keep it very safe and very secure. Mar 25 22:36:40 groxx, except as you can see, people tend to put it somewhere that's not safe or secure just with redundancy Mar 25 22:36:57 now, any thoughts on my gripes with the android studio licence? Mar 25 22:36:57 best is to have some sort of ACL'd service that signs things for you, and ensure no human ever has access to the key itself Mar 25 22:37:17 JesusFreke, i suspect you have no idea what you're talking about Mar 25 22:37:30 I suspect you're wrong :) Mar 25 22:37:44 yeah, but what you're saying is still wrong Mar 25 22:37:56 I still suspect you're wrong :) Mar 25 22:38:02 because the bofh still has access to any IT system Mar 25 22:38:05 nfk|laptop: re license: you can build with a text editor and gradle, so check those eulas. and see if the android sdk's terms of use are acceptable too Mar 25 22:38:25 nfk|laptop: blackbox hardware encryption, etc. Mar 25 22:38:27 that's how snowden did what he did - he had admin access Mar 25 22:38:58 JesusFreke, who trusts black box encryption? Mar 25 22:39:20 in fact, again, youj're talking about things you do not understand Mar 25 22:39:39 nfk|laptop: I'm glad you think so :) Mar 25 22:39:52 AES is totally public, a whitebox yet it might stand till the heat death of universe Mar 25 22:40:29 that.. has approximately nothing to do with what I was talking about Mar 25 22:40:32 groxx, how painful will it be? do i get to write GUI in XML by hand? Mar 25 22:40:50 nfk|laptop: or whatever xml tool you like, yeah Mar 25 22:40:55 JesusFreke, then what did you mean with your blackbox statement? Mar 25 22:41:03 groxx, groxy Mar 25 22:41:04 nfk|laptop: or how's the eclipse EULA? eclipse works. Mar 25 22:41:20 does it have a GUI? Mar 25 22:41:28 i'm fine with vanilla eclipse eula Mar 25 22:41:34 that is, a GUI designer Mar 25 22:41:47 eclipse has the same layout editor/preview as android studio (or, it used to. dunno if that has changed, but I mostly doubt it) Mar 25 22:41:51 nfk|laptop: a "black" box that generates and stores the key in a secure manner, such that it can't be accessed except by "extreme" means (microscope, etc.) Mar 25 22:42:04 and that will sign a blob for you Mar 25 22:42:20 using Mar 25 22:42:25 until the newbie spills coffee on it D: Mar 25 22:42:48 i'm also okay'ish with the android studio until it goes all "and you shan't fragment" which basically is too fucking much Mar 25 22:42:52 :D Mar 25 22:43:08 nfk|laptop wut Mar 25 22:43:11 my future actions may damn well make android get eaten by linux Mar 25 22:43:35 presumably it's not what it meant but i'm still not taking that bait if i can help it Mar 25 22:44:17 JesusFreke, i'm really not sure you know what black box encryption means Mar 25 22:44:21 or black box in general Mar 25 22:45:01 anyway, time to hit the sack, a long testing day is looming Mar 25 22:45:03 night Mar 25 22:45:28 and JesusFreke do your encryption 101 and if you already have, re-take it Mar 25 22:45:41 I'll get right on that Mar 25 22:47:29 JesusFreke: and also look up black boxes, pretty often they're not all that useful in determining the cause of plain crashes. and they're not even black. or usually boxes. we should really quit calling them that. Mar 25 22:47:37 s/plain/plane/ Mar 25 22:48:19 they probably don't even give you a stack trace when the plane crashed Mar 25 22:48:56 yeah. usually just the audio of the engineer going "wtf?!?" a couple seconds later Mar 25 22:52:53 It looks like my admob ads have stopped working for Android Lollipop. Mar 25 22:52:59 Interstitials Mar 25 22:53:00 JesusFreke but they keep finding these stun weapons Mar 25 22:53:02 totally broken Mar 25 22:53:07 Any suggestions here? Mar 25 22:53:45 JesusFreke "wtf" means, all the passengers have been swapped for replicas :) Mar 25 22:53:59 Log.wtf("done") Mar 25 22:55:20 scary android studio wants root rights Mar 25 22:55:28 whoa Mar 25 22:55:30 also Mar 25 22:55:32 google-play-services.jar Mar 25 22:55:33 must be a plugin or something Mar 25 22:55:36 where can I download it? Mar 25 22:55:45 Agamemnus gradle is your friend Mar 25 22:55:59 snowkrash: yeah, I dream of a future where nothing is root :| Mar 25 22:56:03 only through the SDK? Mar 25 22:56:06 I don't use gradle etc. Mar 25 22:56:22 snowkrash: maybe when we get `brew install android-studio` I can live in happiness Mar 25 22:56:31 groxx: that always makes me a bit bad feeling Mar 25 22:56:35 i granted it Mar 25 22:56:39 So I don't know if you know this but google play services got broken into multiple libraries Mar 25 22:56:41 its because of the simulator Mar 25 22:56:51 WHAT Mar 25 22:56:53 but who knows whatever its installing ;) Mar 25 22:57:09 WHEN? Mar 25 22:57:11 snowkrash: ah. kinda makes sense. does it install haxm automagically maybe? I haven't gone through the intro wizard :| Mar 25 22:57:31 groxx: exactly that Mar 25 22:57:35 for that it wants root Mar 25 22:57:40 :/ Agamemnus you have a long road my friend Mar 25 22:58:15 Agamemnus: maybe this? http://android-developers.blogspot.com/2014/12/google-play-services-and-dex-method.html Mar 25 22:58:18 http://developer.android.com/google/play-services/index.html Mar 25 22:58:26 looks like just 1 to me Mar 25 22:59:07 Agamemnus: check out the setup guide (linked near the top on that page) Mar 25 22:59:10 http://developer.android.com/google/play-services/setup.html Mar 25 22:59:19 I don't do any of that. Mar 25 22:59:23 groxx: but since its from google i trust it Mar 25 22:59:24 I just put the lib file Mar 25 22:59:37 Agamemnus yup, what groxx said, use the dropdown select "Using eclipse with ADT" Mar 25 22:59:44 I'm updating my SDK through the SDK manager Mar 25 22:59:55 I don't do any of that. I don't use Eclipse or any IDE Mar 25 23:00:04 snowkrash: yeah. but I don't _want_ to have to do that :| Mar 25 23:00:10 dude just read the instructions, the jar in present in your sdk folder Mar 25 23:00:11 another two days and I will have the jar file. Mar 25 23:00:22 ? Mar 25 23:00:23 Agamemnus: dang. is that like an 800 baud modem or something? Mar 25 23:00:24 groxx: sure u dont have to install it, honestly i dont feel well with it Mar 25 23:00:32 Agamemnus never fails to amuse Mar 25 23:00:33 i thought about reinstall the whole os :D Mar 25 23:00:36 323 kiB/s Mar 25 23:00:49 actually lol, it's not a jar but it's the source Mar 25 23:01:01 Agamemnus what predicament have you gotten you and your Cordova/JS in this time Mar 25 23:01:03 nah scratch that, it's a jar Mar 25 23:01:19 I chose to update all since I have no idea what I need Mar 25 23:01:24 Last time it took like 6 hours Mar 25 23:01:54 Is 323 KiB/s normal? Mar 25 23:02:00 no your internet sucks Mar 25 23:02:16 My regular download speed is 80 megabits per second Mar 25 23:02:23 mine's 100 :P Mar 25 23:02:25 Google just hates me I guess Mar 25 23:02:40 mine is 1-5 :/ Mar 25 23:02:41 IP throttled for using a jar in this day and age Mar 25 23:02:52 for using "ant" Mar 25 23:03:07 dem that one of those terrorist programs? Mar 25 23:03:16 ant, yes Mar 25 23:03:18 gradle, no Mar 25 23:03:30 actually ant is pretty okay too Mar 25 23:03:34 whats bad on gradle btw? Mar 25 23:03:37 I don't know if an updated jar file will fix things Mar 25 23:03:51 i'm really angry that my admob ads aren't working on Android 5 Mar 25 23:03:55 the syntax honestly, I can't understand what I can't and cannot do in the gradle file Mar 25 23:04:03 can and cannot Mar 25 23:04:05 (It seems to be a z-index issue.) Mar 25 23:04:25 or not. No idea actually. Need to debug i guess Mar 25 23:04:33 sometimes it hangs, sometimes it does other things Mar 25 23:05:29 gradle's documentation is both a good and bad thing. good: it exists. bad: omfg I swear it's bigger than the bible. Mar 25 23:05:46 kid's version of the bible is great Mar 25 23:06:15 Agamemnus: anyone is using it Mar 25 23:06:25 Some Mar 25 23:06:39 snowkrash: gradle? most people with android studio, I'd imagine. I mostly like it. Mar 25 23:06:50 it does have a hell of a learning curve though. Mar 25 23:06:53 Not sure if he means my game Mar 25 23:06:58 groxx: you needed root rights too? Mar 25 23:07:05 i guess gradle Mar 25 23:07:13 for the install i mean Mar 25 23:07:52 snowkrash: I don't remember. but haxm does, and I've had that since well before android studio, and I haven't ever gone through AS's install wizard because I upgraded from the previews. Mar 25 23:08:13 yeah its haxm Mar 25 23:08:16 groxx problem is most gradle docs are like Revelations or something incomprehensible Mar 25 23:08:19 what the hell Mar 25 23:08:23 is haxm worth it? Mar 25 23:08:26 g00s: and/or Leviticus, yeah Mar 25 23:08:28 [.WebGLRenderingContext]GL ERROR GL_OUT_OF_MEMORY : glFramebufferTexture2D Mar 25 23:08:34 groxx lol Mar 25 23:08:42 shit Mar 25 23:09:12 good night Mar 25 23:09:23 actually, yeah, I'll just stick to equating gradle's docs with a big version of Leviticus. as The Great Wikipedia says: " instructions of Leviticus emphasize ritual, moral and legal practices rather than beliefs" Mar 25 23:09:41 heh Mar 25 23:10:32 sacrifice a goat, chant this magic "compile 'a:b:c.+'" incantation, and only then may you build Mar 25 23:10:35 Why would 5 break webgl? Mar 25 23:11:14 also Mar 25 23:11:22 and I'm sure you guys know this better Mar 25 23:11:32 but... I just updated to 5 via a forced update on my Note 4 Mar 25 23:11:38 and it's all looking like shit Mar 25 23:11:43 A lot of the text is small. Mar 25 23:11:54 A lot of the colors are really bright. Any way to fix this? Mar 25 23:12:06 bright colors are material Mar 25 23:12:08 basically, I need KitKat back on a non-rooted phone Mar 25 23:12:09 lol Mar 25 23:12:21 it burns my retinas. Mar 25 23:12:34 i left my n7 on 4.4 Mar 25 23:12:54 if it's a 2012 N7, 5.1 is worth it. finally back to performing decently. Mar 25 23:13:04 2013 n7 Mar 25 23:13:12 i just dont like material much Mar 25 23:13:25 it's crap. Mar 25 23:13:34 Agamemnus: did you wipe before updating? Mar 25 23:13:36 I don't need an ice cream cone for a phone. Mar 25 23:13:46 wipe what? Mar 25 23:13:50 It was a forced update Mar 25 23:13:52 yeah, but the 2012 N7 is so unbelievably slow on _any_ version, that 5.1's improvement means it goes from being a plastic paperweight to being a cheap old tablet. Mar 25 23:14:01 oh this is stock Mar 25 23:14:02 I see Mar 25 23:14:08 2012 n7 had problems with the flash controller Mar 25 23:14:15 Agamemnus: I'm very very biased but you might give CM12 a shot :) Mar 25 23:14:37 fattire: once (if) the AT&T Note 4 gets root Mar 25 23:14:42 I will go back to kitkat Mar 25 23:14:45 and wait for 6 :S Mar 25 23:14:45 Hey guys! What would be the best way for a service to communicate data to a fragment? I'm reading that it is possible to send data between an activity and its fragment and it's possible to transfer information between an activity and the service it is bound to. That would allow to communicate to the fragment. However, would it be simpler if the fragment just binded itself to the Service? Mar 25 23:15:01 Agamemnus: also if the font is too small, stock or not, you can make it larger Mar 25 23:15:05 either through the UI for changing the font or by changing the DPI Mar 25 23:15:05 g00s: yeah, I heard something like that. makes sense for why it slowed down over time (even if you didn't upgrade the OS at all), and why clean OS flashes did nothing to fix it. Mar 25 23:15:20 fattire: I saw that, but it only changes some of the text Mar 25 23:15:30 it doesn't change other text, or many of the now smaller icons Mar 25 23:15:39 wilornel: if you're using bound services, anything can bind. doesn't have to be an activity. Mar 25 23:15:42 hi all, im having some issues using fragments in this project: https://github.com/AbstractBeliefs/Petroleon . The traceback im getting is here: https://gist.github.com/AbstractBeliefs/3575344d174c70199857 and the diff between working and broken is here: https://github.com/AbstractBeliefs/Petroleon/commit/6f59c1b73276661da744e5fcbb1ac2b426dfc71e . Can anyone identify the issue, and more importantly, what in the traceback is important and how it maps Mar 25 23:15:43 to the issue? Mar 25 23:15:43 Agamemnus: if you change the dpi everything will get bigger Mar 25 23:15:52 Can I change dpi without root? Mar 25 23:16:15 Agamemnus: you can change the font size, does that count? Mar 25 23:16:21 Agamemnus: yes do you have adb installed? Mar 25 23:16:25 it's not enough Mar 25 23:16:29 on your computer? Mar 25 23:16:31 yes Mar 25 23:17:05 Agamemnus: okay one sec Mar 25 23:17:08 kline: interesting. never seen that one before. is it possible it doesn't work as a nested fragment? (and is that what you're doing, or is that entirely unrelated?) Mar 25 23:18:04 sorry my internet is super slow one sec Agamemnus Mar 25 23:18:12 kline: ah. though the actual crash seems to be coming from info.pulham.petroleon9000.MapViewFragment.onCreateView(MapViewFragment.java:22) Mar 25 23:18:31 kline: which... appears to be entered recursively. odd. Mar 25 23:18:55 s/recursively/maybe nested? I don't even know/ Mar 25 23:19:09 groxx, im trying to embed it into the main activity. the aim is to be able to swap a map view for a general geographic overview and a list view for details Mar 25 23:19:23 "F/libc ( 9947): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 9987 (Thread-5706)" Mar 25 23:19:25 Agamemnus: try adb shell wm density 515 (or change that # for various sizes) Mar 25 23:20:14 what is the default size? Mar 25 23:20:48 i'm not sure what it is in stock Mar 25 23:20:52 kline: what's at MapViewFragment:22? Mar 25 23:20:52 just tried it. seems to change to many things Mar 25 23:21:11 too* Mar 25 23:21:21 kline: and surrounding code. I suspect you're not inflating things correctly / inflating the wrong layout, since it seems to be trying to create the fragment twice Mar 25 23:21:30 https://github.com/AbstractBeliefs/Petroleon/blob/master/app/src/main/java/info/pulham/petroleon9000/MapViewFragment.java Mar 25 23:21:34 Agamemnus: you can find the right balance.. if you do too small it may change to tablet mode Mar 25 23:21:42 this is just the boilerplate fragment Mar 25 23:21:56 im using a viewpager with a fragment, i want to send a variable from fragment to activity when a button is clicked from the activity's layout,i have create a static variable it doesnt give what im searching for , have tried a get method, same thing. have check the doc on the fragment doc , it doesnt give me what im searching for. how can i do so? Mar 25 23:22:58 groxx, and its called by https://github.com/AbstractBeliefs/Petroleon/blob/master/app/src/main/java/info/pulham/petroleon9000/HomeActivity.java#L77 Mar 25 23:23:02 kline: does R.layout.fragment_map_view contain by any chance? Mar 25 23:23:25 yeah over 640 or so is bigger than normal Mar 25 23:23:33 and it breaks apps like... phone call Mar 25 23:23:41 as in, they don't start Mar 25 23:23:47 cool hack tho Mar 25 23:23:55 groxx, no - https://github.com/AbstractBeliefs/Petroleon/blob/master/app/src/main/res/layout/fragment_map_view.xml Mar 25 23:24:10 john67: use a callback Mar 25 23:26:06 fattire i tried that but it doesnt seems what im searching for , because i need to call the same method in the onClick method in the activity, and also call it in the fragment Mar 25 23:26:29 kline: hm. I'm going to guess it's complaining because it's becoming a nested fragment, though I would expect a different kind of error for that :\ Mar 25 23:26:45 you could have the activity call it in the fragment Mar 25 23:26:50 are you able to pass it to the activity? Mar 25 23:27:00 kline: try following https://developers.google.com/maps/documentation/android/map#add_a_fragment and just instantiate the MapFragment directly, instead of through another fragment. Mar 25 23:27:04 sorry my internet just got ridiculously slow. Mar 25 23:27:41 groxx, thanks. im not new to development, but i am to java - whatre the important parts to the traceback there? its much more verbose than C or Python, my usual languages Mar 25 23:27:59 kline: generally when you get a chain like that, the cause is in the last "caused by: " stack Mar 25 23:28:18 kline: the rest of that is due to other kinds of exceptions wrapping the original cause Mar 25 23:28:51 just watch out - java stack traces are in the opposite order of python stack traces :) Mar 25 23:28:59 heh Mar 25 23:29:00 the most recent frame is at the top, not the bottom Mar 25 23:29:00 lol, didn't know that Mar 25 23:29:09 fattire: then how can i call it when the click button is clicked on the activity?* Mar 25 23:29:09 ah, right Mar 25 23:29:31 Damn it's so complicated to send a simple message to a fragment... Mar 25 23:29:33 and the wrapped exception thing can be confusing at first Mar 25 23:29:35 to be specific then: https://gist.github.com/AbstractBeliefs/3575344d174c70199857#file-gistfile1-txt-L115 is the original cause of the error, and the trace unwinds as you go down :) Mar 25 23:31:05 ok, thanks a bunch, im going to push on a little and see if i can get it working for the docs you linked Mar 25 23:34:42 fattire: the call back isnt the right method, have tried , isnt correct, bcos i need to call the method from both from activity and fragment. thats whay i used get method and a static variable Mar 25 23:34:44 john67: okay this is how I think it' sdone Mar 25 23:36:09 john67: you have button in activity (NOT IN FRAGMENT layout) that when clicked you want to push some variable to fragment? Mar 25 23:36:14 thats really simple? Mar 25 23:36:31 oh other way around Mar 25 23:36:39 but the button is in the activity, not the viewpager/fragment? Mar 25 23:37:06 if the button is in the activity there should be no problem Mar 25 23:37:06 the button is in the activity not the fragment Mar 25 23:37:17 so just have the button talk to the activity? Mar 25 23:37:46 oh wait Mar 25 23:37:47 then how can i get the variable from fragment? Mar 25 23:37:49 it is? Mar 25 23:37:52 so you need to pass the button press to the fragment? Mar 25 23:37:55 easy Mar 25 23:37:59 I have it backwards Mar 25 23:38:01 in your activity you just do Mar 25 23:38:02 I thought you had a button press on a fragment and wanted to pass it back up Mar 25 23:38:09 wow this is a long lag for me Mar 25 23:38:15 AwesomeFragment f = getCurrentFragment(); f.getVariable() Mar 25 23:38:28 assuming you need to get current fragment in viewpager Mar 25 23:38:52 to keep track of which is current fragment use onPageCHangedListener on viewpager keeping track of which is current page (onPAgeSelected) Mar 25 23:38:52 lasserix: ah, i never focuse on that$ Mar 25 23:38:55 let me tried Mar 25 23:39:17 ^^ Mar 25 23:40:36 if you want to pass from the fragment to the variable you basically set up a listener at the top of the fragment... and in the onattach method of the fragment you say mylistener = (MyListener) activity; then add an interface in the fragment interface that calls a method that's in the activity. And in the activity at the top where the class is you say "implements MyFragment.myListener Mar 25 23:40:39 sorry if I'm like 2 minutes behind. that's how bad this lag is. Mar 25 23:42:06 if you want to pass something TO the fragment from the activity you can just get the fragment and then access its members/methods Mar 25 23:42:07 I'm having a problem with the xamarin android virtual device manager. as I understand it when I installed xamarin it should have given me a handfull of pre-configured devices. however the list of virtual devices is empty, as is the folder it's pointing to. Mar 25 23:42:55 Hey guys. Is it possible to launch a Fragment from a SettingsActivity? Mar 25 23:43:36 I know you can use a tag with android:action="android.intent.action.VIEW" to launch an activity Mar 25 23:43:46 if there something like that for fragments? Mar 25 23:43:55 is* Mar 25 23:44:25 wilornel: when do you want to show this fragment? when an settings preference is selected? Or as part of the settings? Mar 25 23:44:52 fattire: When the user clicks on one of the items in the SettingsActivity Mar 25 23:45:13 so like a pop-up dialog with a custom view? Mar 25 23:45:21 not a popup dialog Mar 25 23:45:33 when the user clicks on the item it would open a whole new screen Mar 25 23:45:40 from where he can press back Mar 25 23:46:08 like say in android settings where you choose something that needs to you to select a date or a slider or something like that? Mar 25 23:46:24 maybe launch a new activity then? Mar 25 23:46:39 sorry I'm lagging.. Mar 25 23:51:05 lasserix: fattire i have done that, but it doesnt return the variables, already, thats the getMethod i was talking about Mar 25 23:51:17 post your code Mar 25 23:51:30 does it give you an error? Mar 25 23:54:37 http://pastebin.com/YEN87y50 Mar 25 23:58:07 does lollipop have individual app memory management that doesn't exist in kitkat Mar 25 23:58:17 I think my game is running out of video memory Mar 25 23:58:22 and crashing Mar 25 23:58:32 leeds Mar 25 23:58:45 Does lollipop have individual app memory management that doesn't exist in kitkat? I think my game is running out of video memory and crashing. Mar 25 23:58:59 http://flyingsoft.pw/Screenshot_2015-03-25-19-56-11.png Mar 25 23:59:30 Kcuf. Mar 25 23:59:33 http://forum.xda-developers.com/moto-x-2014/general/talk-how-crappy-lollipops-memory-t3015520 Mar 26 00:00:39 memory leak will be fixed in a future release Mar 26 00:01:11 5.2 maybe because it's not critical Mar 26 00:03:07 VersesFrag f = new VersesFrag(); String book= f.getBook(); Mar 26 00:03:12 hell man, how is it not critical when my game blows up constantly Mar 26 00:03:15 john67: notice anything? Mar 26 00:03:16 effing ridiculous Mar 26 00:03:48 maybe it's your app leaking? Mar 26 00:04:09 i see Mar 26 00:04:17 john67: toString Mar 26 00:04:22 It is not my app leaking. Mar 26 00:06:29 lasserix: i have notice nothing Mar 26 00:06:52 This blows though Mar 26 00:06:57 I think I can actually roll back Mar 26 00:07:01 But it's complicated Mar 26 00:07:15 AT&T is going to take 5000000000000 years to update to the fixed version. Mar 26 00:07:42 lasserix: i just got a null, thats all i got from the call, Mar 26 00:10:24 fattire: null Mar 26 00:11:45 john67: sorry let me look what you posted Mar 26 00:12:11 fattire: http://pastebin.com/YEN87y50 Mar 26 00:12:12 john67: you need to get the active fragment not create a new one Mar 26 00:13:07 lasserix said how above Mar 26 00:13:09 fuck this lag. Mar 26 00:13:19 yikes and my internet runs out in 3 minutes.. guess I'll switch to tethering then i won't have the issue. Mar 26 00:13:39 fattire: i have 1 fragment, u mean this , DetailsFragment details = (DetailsFragment) getFragmentManager().findFragmentById(R.id.details); Mar 26 00:14:20 one sec Mar 26 00:14:42 fattire: getCurrentFragment() i havent found it in the doc Mar 26 00:19:43 phew okay Mar 26 00:19:46 I'm tethering now Mar 26 00:20:04 you only have one fragment? Mar 26 00:21:16 this is a way to "hardcode" it... not the best way Mar 26 00:21:28 MyFragment myfrag = getSupportFragmentManager().findFragmentByTag("android:switcher:" + R.id.mypager + ":0"); Mar 26 00:22:03 a better way: http://stackoverflow.com/questions/9294603/get-currently-displayed-fragment Mar 26 00:23:01 note that the first way doesn't require it to be "active" it's just a way to get a handle on it, and only after it's attached.. Mar 26 00:23:43 I still feel like threre's a better way Mar 26 00:24:08 like when you add it to the tabsadapter you have it, right? Mar 26 00:24:27 for the viewpager Mar 26 00:25:03 I mean your activity must add it to the viewpager, so you already have it... Mar 26 00:25:41 so have the activity hang onto it.. and hwne they press the button in the activity or whatever have your listener just call the method from the object it's already got. Mar 26 00:26:13 john67: still there? Mar 26 00:26:16 fattire: yeah Mar 26 00:26:20 im have done so, Mar 26 00:26:24 testing the code Mar 26 00:26:46 k Mar 26 00:27:53 john67: also see the accepted answer here http://stackoverflow.com/questions/18609261/getting-the-current-fragment-instance-in-the-viewpager Mar 26 00:28:57 same as what I posted only put the current item instead of :0 hardcoded. Mar 26 00:30:22 ok Mar 26 00:36:20 fattire: it return null Mar 26 00:36:34 what did Mar 26 00:36:46 show the code please (or strip it down to the basics) Mar 26 00:36:49 Fragment page = getSupportFragmentManager().findFragmentByTag("android:switcher:" + R.id.pager + ":" + viewPager.getCurrentItem()); if (viewPager.getCurrentItem() == 0 && page != null) { book = ((VersesFrag)page).getBook(); } Mar 26 00:37:22 fattire: http://pastebin.com/fRWBsFHg Mar 26 00:48:36 john looing Mar 26 00:48:38 looking Mar 26 00:48:40 slight difference Mar 26 00:49:25 why did you cast page to VersesFrag? Mar 26 00:49:31 why didn't you define it that way to begin with? Mar 26 00:49:38 john67: Mar 26 00:50:06 also getSupportFragmentManger is for the support library don't know which you're using.. Mar 26 00:50:20 oki Mar 26 00:50:24 also Mar 26 00:50:45 I assume that .getBook() returns a book that has been initalized? Mar 26 00:51:05 it looks like it might be working but maybe it's actually returning the right thing (null) which is something you didn't initialize? Mar 26 00:51:26 fattire: its done in the onCreate Mar 26 00:52:11 onCreateView Mar 26 00:52:31 maybe in getBook() you can add a Log.d("myapp", "getbook() has been called. the book we're returning is ... " +someString); Mar 26 00:52:46 where someString will tell you if book is null Mar 26 00:53:08 (book == null) ? "it's null!" : "It's not"; Mar 26 00:53:12 or whatever Mar 26 00:54:20 also when you say it's null are you getting an error? What is null-- page? or the result of getBook()? Mar 26 00:54:35 if it's page it won't run that getBook() Mar 26 00:54:43 about to dive into learning either RxJava or Dagger 2, which one should take precedence? Or does it matter? Mar 26 00:54:45 so you can track down exactly where it's messing up Mar 26 00:55:15 have done so Mar 26 00:55:37 I've used some manual DI in apps before but no experience with spring/guice Mar 26 00:55:54 john67: done what? Mar 26 00:56:08 with Log, but its still null Mar 26 00:56:20 what's null? Mar 26 00:56:23 and where is it null? Mar 26 00:56:29 i dont get why, bcos the getBook Mar 26 00:56:31 is it null in the activity AND the fragment? Mar 26 00:56:43 or does it have a value in the fragment but not in the activity? Mar 26 00:56:49 are you sure that the method is being called? Mar 26 00:56:56 and how do you know it's null? Is it getting a null exception? Mar 26 00:59:04 fattire: page = null Mar 26 00:59:11 where Mar 26 00:59:15 in the activity? Mar 26 00:59:19 in the fragment? Mar 26 00:59:43 in the activity Mar 26 01:00:36 so you are saying that it never runs book = page.getBook() Mar 26 01:01:14 why do you have if (viewPager.getCurrentItem() == 0) ? Mar 26 01:02:17 i mean this VersesFrag page =(VersesFrag) getSupportFragmentManager().findFragmentByTag("android:switcher:" + R.id.pager + ":" + viewPager.getCurrentItem()); is null Mar 26 01:02:57 john67: http://pastebin.com/sPyjFfuB Mar 26 01:03:42 then use the other method to get the fragment.... don't you have it from when you added it to the viewpager? Mar 26 01:04:35 john67: for example you might have it in the OnCreate() in your activity Mar 26 01:05:49 also see http://stackoverflow.com/questions/8785221/retrieve-a-fragment-from-a-viewpager I'm going for a bit Mar 26 01:05:51 back later Mar 26 01:06:33 OK Mar 26 01:14:54 does anyone remember how to customize how android resolves resources? someone in here was poking at it like a couple weeks ago, iirc there's a decorator you can add to somewhere? my google-fu is failing me because I can't figure out the right incantation :( Mar 26 01:15:32 resolves resources ... decorator ... Mar 26 01:16:17 groxx resolves resources ? Mar 26 01:16:38 might've been related to how android overrides e.g. checkboxes via appcompat to load a tintable version instead of what you declared in xml Mar 26 01:16:59 themeOverlay ? Mar 26 01:17:03 g00s: like changing what getString(R.string.whatever) returns. Mar 26 01:17:06 g00s: maybe. googling. Mar 26 01:17:07 oh Mar 26 01:17:25 ContextThemeWrapper maybe Mar 26 01:17:55 yeah, it seems like at _worst_ you can make your own wrapper context and do whatever you want. I remember something that was a bit more integrated though :| Mar 26 01:18:02 or, I think so anyway. Mar 26 01:18:10 hm Mar 26 01:18:16 sorry for vagueness :( wish I could remember more details. Mar 26 01:19:37 applyStyle ? Mar 26 01:20:39 hm. maybe it was related to modifying the layoutinflater... Mar 26 01:20:58 oh neat. maybe Napalm|afk knows Mar 26 01:20:58 https://developer.android.com/reference/android/view/LayoutInflater.Factory2.html looks promising anyway Mar 26 01:23:20 applyStyle does ring a bell, but I think only because I saw it around the same time / in the code too :| doesn't look quite like what I'm after, though fun stuff is possible with it. Mar 26 01:34:02 hm. looks like AppCompat just has context wrappers. will have to hunt a bit more. Mar 26 01:34:11 Napalm|afk: if you notice any of this, does it ring a bell? Mar 26 01:35:28 whats up Mar 26 01:36:28 groxx Mar 26 01:36:35 groxx: check this out https://github.com/slightfoot/android-edge-effect-override Mar 26 01:36:47 i override the resource loading with that Mar 26 01:37:55 interesting. nice and concise Mar 26 01:39:45 Is there an example of having a DrawerLayout display over the ActionBar using the native ActionBar? I do not want to use AppCompat but something similar to this: http://stackoverflow.com/questions/26440879 Mar 26 01:40:10 Napalm: so I'm trying to figure out why I remember some kind of resource-loading decorator pattern for extension + generics. unfortunately my memory is mostly visual on this, I can't remember enough details :( Mar 26 01:41:11 groxx: you can override Theme as its final you can only override your context's getResources to provide your own Mar 26 01:41:21 cannot Mar 26 01:41:23 ugh Mar 26 01:41:28 I figured :) Mar 26 01:41:55 groxx: what are you trying to do exactly? Mar 26 01:42:28 Napalm: among others, trying to figure out how appcompat loads a different class for a system tag, for instance Mar 26 01:42:36 oh Mar 26 01:42:38 thats easy Mar 26 01:42:46 just override onCreate in your Activity Mar 26 01:42:46 lol Mar 26 01:42:49 ugh Mar 26 01:42:52 i mean onCreateView Mar 26 01:43:16 dang. TIL. Mar 26 01:43:28 if(CheckBox.class.getSimpleName().equals(name)){ return new MyCustomCheckBox(context, attrs); } Mar 26 01:43:30 tada Mar 26 01:43:51 do you have to do that when you use appcompat, or is there some side-loaded setup? /me has not used appcompat :| Mar 26 01:44:06 lol Mar 26 01:44:09 what are you trying to do Mar 26 01:44:23 just use appcompat with the custom tinting feature? Mar 26 01:45:08 groxx Mar 26 01:45:49 largely trying to learn, and trying to find out how automagic things like this can be. and seeing if there's a way to add e.g. a pseudo resources folder like "values-themeX/" Mar 26 01:46:13 you can do things like that Mar 26 01:46:32 at this point I'm kinda stuck at "how do I even search for this" :) Mar 26 01:46:35 but do it with the resource name itself Mar 26 01:46:38 not sure where to start Mar 26 01:46:46 read the source Mar 26 01:46:52 understand it, code for it Mar 26 01:47:29 yeah, I doubt it'll be highlighted in the documentation for me. but any suggestions on where to start looking, for resource loading? Mar 26 01:49:16 groxx: read Resources source Mar 26 01:49:58 ive done some neato things with xml resources before defining my own custom resources Mar 26 01:50:10 Resources.getXml to get a parser for a resource file Mar 26 01:50:25 then that resource file can contain your own custom attributes and structure to do whatever you want Mar 26 01:50:44 will do. thanks :) Mar 26 01:51:14 groxx: also since you can call getIdentifier with a name.. you can build up your own "resource style" qualifiers Mar 26 01:51:49 like R.xml.home_magic-white, R.xml.home_magic-red Mar 26 01:52:03 then in code load the right one by specificing -white or -red Mar 26 01:52:05 or whatever Mar 26 01:52:32 R.xml is just an example here you could apply that to any resource Mar 26 01:53:10 yeah. not sure I follow what you mean by "resource style qualifiers" though Mar 26 01:53:27 surf2b1: hey Mar 26 01:53:40 groxx: well you have -hdpi and -xhdpi Mar 26 01:54:06 groxx: you can make your own "qualifiers" and apply them at resource file level Mar 26 01:54:19 aaah. so you request R.xml.home_magic, and the theme appends "-white" and finds the id? Mar 26 01:54:28 yes Mar 26 01:55:09 do you have to pass it strings, or is there an (efficient) way to look up the R.xml. from the int value? Mar 26 01:55:17 you can pre-cache them Mar 26 01:55:27 ie, reflection-based? Mar 26 01:56:07 groxx: you could try AssetManager.openXmlResourceParser Mar 26 01:58:43 seems like that's for parsing (possibly custom) xml? Mar 26 02:01:53 TIL2: Resources#getResourceName(int) Mar 26 02:02:40 neat. thanks Napalm, this has helped a lot :) Mar 26 02:12:25 hey guys Mar 26 02:12:30 my SDK update Mar 26 02:12:38 still going Mar 26 02:12:40 90% Mar 26 02:12:48 even though it is not the issue Mar 26 02:24:26 Agamemnus: yeesh. how much are you downloading? everything? Mar 26 02:30:34 fattire: u there? Mar 26 02:41:28 lol, if you set a PreferenceSummary to %s, thats exactly what it shows until you set the value. in my case its async, so there is a little time there it looks dumb Mar 26 02:42:30 pretty much Mar 26 02:42:55 Hi!, is needed a when using camera as Intent ? Mar 26 02:44:07 feathersanddown: I wouldn't think so Mar 26 02:44:14 it's done Mar 26 02:45:05 I have a permission denied Mar 26 02:46:09 JesusFreke did you get caught up on cryptography 101 yet :P Mar 26 02:46:40 feathersanddown: are you using getOutputMediaFileUri(MEDIA_TYPE_IMAGE) ? Mar 26 02:46:41 g00s: I couldn't understand the big words, I had to give up Mar 26 02:46:51 haha Mar 26 02:46:59 oohh by this: https://developer.android.com/training/camera/photobasics.html <--- needed for androids before 4.3 Mar 26 02:47:09 thanks anyway groxx :) Mar 26 02:49:01 feathersanddown: yeah, if you want to save it to the external folders, it'll be required, because it uses your permissions to save file iirc. but I think there are ways to do it internal-only, maybe with a content provider. Mar 26 02:49:26 but that said, I haven't tried to do it, and I can't recall anything specifically covering that. so maybe not :) Mar 26 02:50:10 but.... uhm.... if I only want to take a pic but not save it in any way (yes sounds stupid), is still permission needed ? Mar 26 02:50:46 feathersanddown: in general, it has to be put on disk to be returned to you. images are too big to send in the response intent. Mar 26 02:50:50 I mean... external app always save file in a temp/cache format before pass it to the application ? Mar 26 02:51:41 oh... yes... you are right, maybe is possible in a most powerful system Mar 26 02:51:46 uhm Mar 26 02:51:48 thanks :) Mar 26 02:57:50 lol! "download the wrong app - 1 star" **** ENDING LOGGING AT Thu Mar 26 02:59:58 2015