**** BEGIN LOGGING AT Wed Sep 24 03:00:00 2014 Sep 24 03:07:52 what bluetooth shit? Sep 24 03:13:43 I don't expect much to get fixed outside of basics Sep 24 03:19:00 this android one article is interesting http://www.zdnet.com/with-android-one-google-puts-itself-firmly-back-in-the-os-driving-seat-7000033662/ Sep 24 03:19:14 "Android One is just the next step in that progression. Google is using the lure of a turnkey mobile platform to get everyone else in the value chain to give up hope of tweaking Android for their own ends. " Sep 24 03:19:29 if there is no hope of tweaking, there is not much point in aosp either i guess Sep 24 03:19:56 author buries the lede there :| Sep 24 03:29:06 in your opinion, its cool to store obscured tokens? do you use any particular library? Sep 24 03:51:15 cliffreich in what context? oauth secrets? Sep 24 03:57:28 yeah oauth token Sep 24 03:57:55 user authenticate with provider, app receives a token Sep 24 03:58:32 use KeyStore Sep 24 04:02:52 sarbs: You can't do a BLE scan without killing WiFi on a ton of devices. Sep 24 04:03:30 drewbug that sucks Sep 24 04:27:29 anyway, if you want fixes, still best to submit patches to aosp Sep 24 04:27:47 and ble scan killing wifi sounds like driver problems... Sep 24 04:27:57 or chipset Sep 24 04:36:27 pfn: It's on a Nexus 7, though. Sep 24 04:36:34 Fresh out of the box. Sep 24 04:36:39 Just bought another one to make sure. Sep 24 04:36:41 Pretty terrible. Sep 24 04:44:52 Should we ever use onSaveInstanceState? Or should we just use Fragment.setRetainInstance? Sep 24 04:47:16 keystore with tokens? does that improves security compared with obscured shared preferences? Sep 24 04:47:33 TacticalJoke setRetainInstance isn't going to help if the activity / process gets destroyed Sep 24 04:48:26 the former yes, not latter Sep 24 04:49:18 oh, i should say activity gets destroyed when process gets destroyed ;) Sep 24 04:49:31 g00s: Why not? I read that it retains the Fragment. Sep 24 04:49:37 don't retain all the things :| Sep 24 04:50:40 Can an App developed for Android on phones be deployed on Android mini PC? Sep 24 04:52:04 retained fragments only stick around for the process Sep 24 04:52:05 damn im still very concerned about tokens. android needs include any option to improve that or ready encryption for shared preferences. as any phone can be rooted Sep 24 04:52:44 cliffreich, there is no such security where the device is not in your control Sep 24 04:53:37 yes i know... but even in that case shared preferences should have any kind of default security. not plaintext Sep 24 04:53:54 But is there any case where it's better to use onSaveInstanceState than Fragment.setRetainInstance? Sep 24 04:54:03 If the process dies, they'll both fail, right? Sep 24 04:54:22 "Ever since the introduction of Fragments in Android 3.0, the recommended means of retaining active objects across Activity instances is to wrap and manage them inside of a retained "worker" Fragment." Sep 24 04:54:50 TacticalJoke "active objects" Sep 24 04:55:16 i know that even with a pc and good packers like themida you can unpack or capture relevant information on execution. but im still worried as a developer im "responsible" of tokens Sep 24 04:56:23 I didn't understand what 'active objects' meant there. Sep 24 04:59:01 cliffreich, such security is an illusion Sep 24 05:00:41 TacticalJoke threads, maybe broadcast receivers that are listening for something within a duration, etc Sep 24 05:01:18 saved instance state survives processes Sep 24 05:02:50 is it possible to override and change a scrollview’s ending point when scrolled? Sep 24 05:03:18 rather, find out where it’ll end before it actually scrolls, then change that location Sep 24 05:04:18 ultra- possibly, with a rather complex interception of the fling motion event Sep 24 05:05:39 that sounds like the function of twitter, loading more tweets when you reach the bottom Sep 24 05:06:08 very much so, but not related to twitter or loading :) Sep 24 05:06:25 besides that almost identical Sep 24 05:06:46 StingRay_: i’ve overridden scrolling altogether, and decided to use velocityX/velocityY to calculate where it should go… it works fine, except there’s a small delay before the scrolling animation starts Sep 24 05:07:24 er wait, that’s lot a delay… not looking at it right… i just have the multiplier for velocity set too high i think Sep 24 05:07:27 and so it looks weird Sep 24 05:07:29 i can fix this :D Sep 24 05:08:45 But is there any situation where it would be better to use onSaveInstanceState than Fragment.setRetainInstance? Sep 24 05:08:56 It seems to me that the latter does everything the former does with less effort on our part. Sep 24 05:09:32 Using onSaveInstanceState is such a pain when it comes to retaining instances of custom classes. Sep 24 05:10:13 setRetainInstance replaces onRetainNonConfigurationInstance, not onSaveInstanceState Sep 24 05:10:33 Right, but it can be used in place of onSaveInstanceState, right? Sep 24 05:10:39 The latter survives the OS killing the process Sep 24 05:10:40 No Sep 24 05:10:49 Oh. Sep 24 05:10:53 ah, thanks SimonVT i couldn't for the life of me remember :"onRetainNonConfigurationInstance" thats a mouthful Sep 24 05:11:10 who the fuck came up with that name Sep 24 05:11:19 So people might use both Fragment.setRetainInstance (for short-term tasks) *and* onSaveInstanceState (for everything else)? Sep 24 05:11:22 Like, in one project. Sep 24 05:11:37 g00s I think they should add state to the end of it …make it clearer and more readable Sep 24 05:11:41 g00s: Yeah, it's terrible. lol Sep 24 05:11:55 TacticalJoke ... *active objects* Sep 24 05:12:11 g00s: Does that mean "temporary tasks" or something? Sep 24 05:12:17 I'm not sure what 'active' refers to. Sep 24 05:12:19 Yes. setRetainInstance is for retaining object instances that should survive the activity being recreated because of configuration changes Sep 24 05:12:44 SimonVT: So short-term tasks, basically? Sep 24 05:12:46 TacticalJoke http://en.wikipedia.org/wiki/Active_object Sep 24 05:13:38 Or expensive objects, or anything that is tied to an activity that shouldn't be recreated with it Sep 24 05:13:50 g00s: Is that really what he meant by "active objects"? Hmm. Sep 24 05:14:11 SimonVT: And so I guess we have to implement Parcelable for everything else, huh. Sep 24 05:14:43 Any state that would be needed to recreate the activity as-is, yes Sep 24 05:15:13 I kinda feel like the OS should handle all this. Am I wrong? Sep 24 05:15:24 This is some weird manual-memory stuff. Sep 24 05:15:48 Every time I mess with onSaveInstanceState, I feel like I'm writing part of an OS. Sep 24 05:16:12 It's just bizarre that app developers have to worry about this. Sep 24 05:17:10 * StingRay_ knowns no different Sep 24 05:17:15 The OS can't retain your entire VM if it needs the memory for something else Sep 24 05:17:23 That'd be slow and unnecessary Sep 24 05:17:38 So you get to decide what to save, with onSaveInstanceState Sep 24 05:18:19 I never had to worry about this with Windows programming. I guess Windows doesn't kill stuff, because there is usually enough RAM not to have to worry. Is that right? Sep 24 05:18:34 well, the alternative in other operating systems is swapping - but android has its own mechanism Sep 24 05:19:36 you could argue that its more efficient to kill a process and save a few integers than swap it all out Sep 24 05:20:16 but as mobile devices get more powerful it seems like a decision that makes less sense moving forward Sep 24 05:20:54 I see. Sep 24 05:20:56 hey g00s Sep 24 05:21:09 android started in 2007, stuff was very different back then :) Sep 24 05:21:16 hey Napalm :) Sep 24 05:21:28 So, in summary, as an Android app developer I'll always need onSaveInstanceState at times. I'm not gonna be able to get away with just Fragment.setRetainInstance. Is that right? Sep 24 05:21:48 just had a play with porterduff's to paint inside bitmap shapes.. https://github.com/slightfoot/android-painter-example if anyone is interested Sep 24 05:26:05 Napalm looks like you had some fun :) Sep 24 05:26:25 * g00s goes back to bluetooth mess Sep 24 05:28:48 g00s: yup I did, good luck with that Sep 24 05:28:51 night Sep 24 06:18:11 Anyone have a moment to take a look at some Java code, I know why an app is crashing but im having trouble fixing the issue Sep 24 06:19:41 Hyph3n ask a specific question … maybe the part that is confusing you, then someone may answer Sep 24 06:20:01 but doubt anyone is just going to donate time to you like what you just asked Sep 24 06:28:53 OK, thanks StingRay_... so.. i have a textView that updates dynamically based on what the user adds in an EditText field, the problem comes when the value that was entered initially in the EditText field is deleted in an attempt to add a new one, i believe the program is trying to perform math calculations with a null value and it crashes Sep 24 06:29:32 then if it's empty, dont do anything Sep 24 06:30:13 would that not fix it :) Sep 24 06:31:25 is this possible: open external gallery via intent.ACTION_VIEW, but not file but entire path? Sep 24 06:32:02 if it's empty, don't do anything? Sep 24 06:32:07 http://files.abovetopsecret.com/files/img/qz5340d6f9.gif Sep 24 06:32:39 huh Sep 24 06:33:22 Yeah it would, just having trouble adding that part in, seems to break more things, i will take another look Sep 24 06:33:44 If it crashes, read the stack trace Sep 24 06:33:54 Attach a debugger, inspect your variables Sep 24 06:40:55 measure it with a chicken Sep 24 06:44:14 Has anyone used FB SDK 3.17???? Sep 24 06:45:58 Hello. I have theme holo light. I am getting an error that textviews in listviews are white on grey background Sep 24 06:53:18 why did I not take time to learn regex Sep 24 06:54:54 the chicken again? XD Sep 24 06:59:03 FB activity is appearing every time when login into app Sep 24 06:59:42 so FB is acting….much like… a virus ? Sep 24 07:03:57 I need a toggle switch where on and off are always shown, just highlighted if on or off, anyone got a recomendation? Sep 24 07:05:01 you mean the type "on" and "off" ? Sep 24 07:05:06 ? Sep 24 07:05:10 test Sep 24 07:05:17 oops, text* Sep 24 07:05:21 i mean if it is like ON OFF then when ON the off is still shown, just not "highlighted" Sep 24 07:06:00 yeah thats what I was asking, erm , so comes down to style choice, cause really for that you have only 3 options Sep 24 07:06:31 stacked, posative-element-negative, posative-negative-element Sep 24 07:06:48 element being the actual graphic that shows the states Sep 24 07:07:21 whatever that would be, an actual switch, a slide thing ... Sep 24 07:07:45 you mean use a layer list with selectors? Sep 24 07:08:08 So i imported a project as a new module, but gradle can't find the style in attrs, how do I fix this? Sep 24 07:09:08 lasserix i mean like the 2nd row http://www.graphicsfuel.com/2012/10/toggle-switches-ui-elements-psd/ or the last i suppose Sep 24 07:09:17 I thought you were asking for design ideas Sep 24 07:10:07 yeah Sep 24 07:10:10 no i have design Sep 24 07:10:13 just need to implement Sep 24 07:10:54 any image ? Sep 24 07:11:10 umm i dont have the image Sep 24 07:11:41 how do i import res froma module? Sep 24 07:18:07 ahh nm Sep 24 07:19:18 how do i add module into classpath? Sep 24 07:24:37 hmm so i do new module -> import from project, and it doesn't include the src folder Sep 24 07:28:29 argh Sep 24 07:28:56 fucking libaries, i want to be thankful but they're fucked? Sep 24 07:31:09 has anyone integreted FB sdk latest? Sep 24 07:31:15 Need help guys Sep 24 07:32:22 FB activity is appearing briefly always when ever login button is pressed. This happens after the login happened and permissions given after the first time Sep 24 07:41:50 private List D = new ArrayList(); Sep 24 07:41:50 private volatile d b = d.a; Sep 24 07:41:50 Variable names are case sensitive, correct? Sep 24 07:45:53 hi, i am trying to use an intent url to open an app from a web site link. url: intent://localhost/customer/123#Intent;package=my.app.test.android;scheme=customscheme;end; . but it opens just the play store. what is wrong? my intent filter: http://pastebin.com/2dVD05BA Sep 24 07:55:46 hello, i think an app was erratically suspended. What can i do about it? Can I call them? Sep 24 07:59:12 finally got it to work: had to import in eclipse, make library, export as gradle, import into gradle, fix, then reimport as module Sep 24 07:59:49 HI all im looking for a good way to stack statustext sring to display and delete one and the other Sep 24 08:00:15 lasserix, face it, without eclipse you are screwed :p Sep 24 08:00:27 im not a java OOP pro so can i use String[] statustextentry Sep 24 08:01:11 ravilov: only because it was a deprecated library no one bothered to fix Sep 24 08:01:12 ;p Sep 24 08:01:13 and add Strings to it THEN display item[0] and delete it so the stack falls Sep 24 08:01:30 do you know stringbuilder Sep 24 08:01:40 no Sep 24 08:01:50 I have a relativelayout(layout_width and height are fill parent) inside this I have a tablelayout(with few tablerows).The table rows are with layout_width and height wrap_content.And each row has a label and text entry field. The label fields are coming properly, But I want the edittext fields to just fill the Sep 24 08:02:03 ravilov: and having to do all that shaved a week or two off my life span Sep 24 08:02:11 google it Sep 24 08:02:16 right margin of the page.I mean the edittext field right edge should touch the screen edge Sep 24 08:02:18 cliffreich: thanks Sep 24 08:02:38 niru you'd have to post code Sep 24 08:02:40 i tried using layout_weight =1 but its not working Sep 24 08:02:46 but you can use layout:gravity="right" Sep 24 08:02:46 layout code? Sep 24 08:02:53 xml Sep 24 08:02:58 hmm ok Sep 24 08:03:14 lasserix, oh noes, you're using a deprecated something?? :p Sep 24 08:03:45 i needed a slider toggle button where the ON OFF text is always showing (ie, if ON then OFF shows, but is not highlighted and vica versa) Sep 24 08:03:57 all the existing libraries are a) bug ridden b) eclipse based Sep 24 08:04:16 ah Sep 24 08:04:29 well I guess now you at least brought it into this century ;) Sep 24 08:11:40 wow Sep 24 08:11:49 I got some of xscreensaver running on Android Sep 24 08:11:50 k001 Sep 24 08:16:44 lasserix: Eclipse based? Sep 24 08:18:59 \yeah Sep 24 08:19:08 some kind of bastard child of eclipse Sep 24 08:32:58 lasserix: Are you talking about an Android lib? Sep 24 08:33:57 i am not even sure Sep 24 08:33:58 no Sep 24 08:34:04 they weren't library projects Sep 24 08:34:05 to begin with Sep 24 08:34:17 why? i have no idea since htey were intended to be libary projects Sep 24 08:39:34 lasserix: What lib are you talking about then? Sep 24 08:39:52 I am trying to clean up my code i need to declare my location callbacks in a different reusable class is this possible ? Sep 24 08:41:13 umm Sep 24 08:41:26 https://github.com/pellucide/Android-Switch-Demo-pre-4.0 Sep 24 08:41:37 PinkSpecs: sure Sep 24 08:43:10 lasserix: any read up you know about that I could reference as I do this ? Sep 24 08:43:35 Javascript is weird. Sep 24 08:43:36 http://i.snag.gy/YHP1H.jpg Sep 24 08:43:47 is switch a togglebutton with 2 state drawable Sep 24 08:44:08 object + object is not a number... Sep 24 08:44:16 Thanks Javascript. Sep 24 08:46:06 lasserix: Can't you just use the import function in AS? Sep 24 08:47:14 lasserix: That just seems to be a bunch of drawables that has been applied to the switch? Sep 24 08:47:45 lasserix: Using a class called "MySwitch" Sep 24 08:49:07 yeah what cliffreich said Sep 24 08:54:08 hey guys Sep 24 08:54:35 why would a project with this manifest http://pastie.org/9590117 cause the app not to show in this device's Play store http://www.gsmarena.com/samsung_galaxy_note_ii_n7100-4854.php Sep 24 08:55:09 it's 4.4.2 (upgradeable), and it has Bluetooth v4.0 with LE Sep 24 08:55:18 it must be available Sep 24 08:55:29 Mrdarknezz: how to import it? Sep 24 08:55:30 i tried Sep 24 08:55:34 it failed. failed miserably. Sep 24 08:56:09 you can't import project into a project, you have to import module from existing project Sep 24 08:56:13 Fenny: wat ;) Sep 24 08:56:14 but that project has to be a gradle project Sep 24 08:56:38 hence i had to open it in eclipse, export it as a gradle project, import it as a gradle project, fix it, then import it as amodule Sep 24 08:56:38 it's saying to me in xml :` Replace "-" with an "en dash" character (–, &&;#8211;) ? ` . so how I should I do it ? I have a minus sign in my , not an en-dash. Sep 24 08:56:51 I am confused by it. Sep 24 08:58:44 it's telling you exactly what to do Sep 24 09:02:01 like a unicode entity Sep 24 09:08:57 indeed, sarbs Sep 24 09:10:39 any idea about the question above? I'm suspecting that the Note 2 in question has not had its upgrade done Sep 24 09:10:59 otherwise there is no reason that an app with the manifest above would not show up in that device's Play store Sep 24 09:11:11 it has Bluetooth LE, it has 4.4.2, that's it Sep 24 09:12:41 I think "{} - []" is my favorite though. Sep 24 09:15:47 NaN? Sep 24 09:17:00 -0 Sep 24 09:17:53 lasserix: I assume you used the "Import project..." function? Sep 24 09:18:15 and you got some sort of dependency error or something? Sep 24 09:19:33 hey, how do I add a shadow to my custom progress bar? Sep 24 09:21:08 i have an AppController class which extends Application class Sep 24 09:21:22 in onCreate it set Context ctx = this; Sep 24 09:21:56 if i call getApplicationContext will be the same ctx that i setted in onCreate? Sep 24 09:23:57 mrdarknezz yes it did not import any of the classes Sep 24 09:24:10 resu01 no Sep 24 09:24:13 not necessarily Sep 24 09:24:32 the applicationcontext can change Sep 24 09:24:33 Adding another shape with offset in the layer-list does nothing Sep 24 09:24:52 the next time oncreate is called (eg your app was killed by the os) Sep 24 09:25:14 yes sure. Maybe i wasn't clear Sep 24 09:25:15 then the two contexts would be pointing to different instances Sep 24 09:29:30 when I try to debug my ap i keep getting Failure [INSTALL_FAILED_UID_CHANGED]. I know it's because Android Studio (<--BUGolicious) didn't uninstall my app properly...how can i fix this!!!?? Sep 24 09:29:44 lasserix let's say that i have a getAppControllerContext where i return this, will this method return the same reference with getApplicationContext without casting? Sep 24 09:30:19 AppController is my custom class which extends Application Sep 24 09:32:10 god. sometimes i wish i still used Eclipse. seriously Sep 24 09:32:15 resu01 you know that in the amount of time you have waited for an answer + the time taken to type you could actually test that ? Sep 24 09:33:50 StingRay: you are right! Sep 24 09:34:02 thanks for your help anyway! Sep 24 09:39:45 Is the Android system's 'normal' 'large' 'huge' font size the same everywhere? Sep 24 09:39:47 i.e. on all devices Sep 24 09:41:12 Probably scales with device size/density, and there is never any guarantee that some manufacturer has tweaked it slightly to fit their needs Sep 24 09:43:07 h,, Sep 24 09:43:38 hmm, does using gnustl force you to GPL your whole code? It's not really clear from the exception clause language Sep 24 09:45:47 can someone please tell me how shared preferences are done? what it's the class name? Sep 24 09:46:40 btw, I cannot open http/web at the moment. there is some maintenance at this time. Sep 24 09:47:03 so please tell me here or on private. Sep 24 09:47:53 superlinux-hp I could send you the docs if you want ? Sep 24 09:47:59 dcc etc Sep 24 09:48:27 or let me check my ipad 1st if it's working. Sep 24 09:49:44 I just cannot understand what's going on on my linux!!! Sep 24 09:49:51 superlinux-hp but the class name is just SharedPreferences Sep 24 09:49:58 we is working on my ipad! Sep 24 09:50:06 brb, gtg reboot. Sep 24 09:50:16 ok thanks. Sep 24 10:05:44 i'm getting the error, when I try to debug my app, Error type 3, Error activity class {...MyActivity} does not exist.. it's in my manifest and everything Sep 24 10:09:36 now I am getting the pkg: /data/local/tmp/mypackagename Sep 24 10:09:36 Failure [INSTALL_FAILED_UID_CHANGED] Sep 24 10:09:59 anyone? Sep 24 10:10:25 google not working ? Sep 24 10:11:01 adb shell rm /data/data/yourpagename Sep 24 10:11:27 or uninstall the app from application manager Sep 24 10:11:31 then retry Sep 24 10:15:58 danijoo: the app isn't in the application manager... Android Studio fucked up (as always) the uninstall and uninstalled it halfway Sep 24 10:16:25 is it a real device and not rooted? Sep 24 10:16:46 then you have a problem.. ^^' Sep 24 10:25:04 thnx Android Studio, now I get to put my device back to factory settings. FUCK android studio Sep 24 10:28:17 MartialLaw: or root it. or use a stable IDE :) Sep 24 10:30:27 I use Eclipse and the ADT even though I hate Eclipse for that reasion :-/ Sep 24 10:30:46 DLSteve: Dont use eclipse then :) Sep 24 10:30:56 Woo, more Eclipse users Sep 24 10:31:31 danijoo, what other IDEs does the ADT plugin work with? Sep 24 10:32:06 Hi, I found a tutorial on how to read file from the assets using AssetManager. Where do I need to put my files? /res/... ? Sep 24 10:32:23 DLSteve: no one. But you could use Intellij with android or Android Studio (if you like to live dangerous) Sep 24 10:33:01 Nindustries: asserts folder ^.^ Sep 24 10:33:08 assets* Sep 24 10:33:41 danijoo, I like IntelliJ, how is the android support? (Not the Android Studio version of InteleJ) Sep 24 10:33:44 for gradle based layouy its src/main/assets Sep 24 10:34:05 I see. I'm not using Gradle tough Sep 24 10:34:14 DLSteve: the same as android studio. AS is simply intellij with everything removed thats not android related Sep 24 10:34:37 danijoo, ah ok. Sep 24 10:34:45 Nindustries: I thing for non-gradle its just /assets Sep 24 10:35:01 Yeah assets folder in your root directory Sep 24 10:35:08 DLSteve: it has "native" support for gradle and everything :) Sep 24 10:35:21 It compiles! ^^ Sep 24 10:35:46 it would also compile if you give it another name. it just wont be in the apk then :D Sep 24 10:36:10 danijoo, Im hoping they do a big revamp of AS for the L version of android. Sep 24 10:37:28 DLSteve: I dont think so. Sep 24 10:38:12 Yah I don't think they will ether but one can hope. Sep 24 10:38:28 what would you change? Sep 24 10:38:47 warning do not use Android Studio Sep 24 10:39:47 MartialLaw: its beta software. should expect things like that.. Sep 24 10:44:21 Could someone please check if I'm loading my Assets correctly? I'm getting an exception "null" :o http://pastie.org/9590272 Sep 24 10:44:50 NullPointerException * Sep 24 10:45:05 debug it Sep 24 10:45:42 Ah, indeed. sorry Sep 24 10:45:45 .,/// zxcvbnm,./ Sep 24 10:46:03 mvncvmnv, Sep 24 10:51:58 oops. sorry. did not mean to post that. :P Sep 24 10:52:23 So I narrowed it down; getResources().getAssets() gives me null. Any ideas how/why this occurs? Sep 24 10:54:39 dont know.. Try it with getAssets() without getResources() Sep 24 10:55:09 Ah, I need to use setContentView before I can access my assets/resources? Sep 24 10:55:31 no idea.. Sep 24 11:08:15 what do you guys think about google forcing paid and in-app-purchase app developers to publish their address publicly ? Sep 24 11:08:32 mixed Sep 24 11:08:48 but not really forcing ....asking Sep 24 11:08:57 there is a big difference Sep 24 11:09:15 so I can still make a paid app, and refuse to provide an address then ? Sep 24 11:09:34 "you" can do whatever "you" want Sep 24 11:09:34 lol, not like there wasn't a (quite fiery) discussion about this the other day Sep 24 11:09:45 firey* Sep 24 11:09:55 shmooz: I think thats totally valid. Sep 24 11:10:21 danijoo you have personal apps on the playstore ? Sep 24 11:10:33 what do you mean with "personal" Sep 24 11:10:43 well that you have done Sep 24 11:10:45 DanijooNotes, for all your notes! Sep 24 11:10:48 as you, the person Sep 24 11:10:58 danijoo, means are you willing to publish your home address Sep 24 11:12:14 danijoo not sure how else to ask, have you, the person, personally (not by a form of 3rd party) placed paid or iap apps on the playstore ? Sep 24 11:12:18 is that better :) ? Sep 24 11:13:09 I founded a one man company because you are not allowed to earn more then a few bucks without one in germany Sep 24 11:13:26 so publishing as private me isnt really an option :) Sep 24 11:13:37 danijoo ok, is the company address your home address ? Sep 24 11:13:53 danijoo, I found the error. I was using a class based upon an Activity, without switching to the activity Sep 24 11:14:22 StingRay_: yes Sep 24 11:14:44 I didnt provide it in google though (they never asked me O.o) Sep 24 11:14:53 danijoo ah ok, cool, gimme your app name/s please … in a month or 2 will look u up on google earth Sep 24 11:14:57 but you could easily take my name and look the address up in german register Sep 24 11:15:19 I'll give them a false address, maybe the police station, so when those crazies come to beat me up cause my app bricked their phone, they'll be in for a surprise Sep 24 11:15:41 shmooz no now that would break terms Sep 24 11:16:03 shmooz: or google realizes and just closes your account and keep your money :) Sep 24 11:16:06 dishonour is not a way to solve conflict Sep 24 11:17:01 StingRay_: You could download my app, take the name out of the copyright and get my address from a german department. Have fun :) Sep 24 11:18:07 well then I demand 24 hour protective custody Sep 24 11:18:30 paid by google Sep 24 11:19:11 why? Sep 24 11:19:21 there is always an option of not publishing stuff on the play store Sep 24 11:19:25 nobody's forcing you to use it Sep 24 11:19:57 if you want to take part in business life, you have to do it as YOU, and not as "Haxx0rP!mp1337". Thats normal. Sep 24 11:20:27 btw where is this setting for address in developer console? cant find it.. Sep 24 11:20:48 danijoo, you're german, they know everything about you already, so you have that option disabled :p Sep 24 11:21:06 ravilov: still no real name and stuff showing in play store though Sep 24 11:21:08 lol Sep 24 11:21:10 :D Sep 24 11:21:14 oh now i got it.. Sep 24 11:21:15 <.< Sep 24 11:22:11 but seriously. There is no field for address or anything in dev console settings Sep 24 11:22:18 where is it? or is it only for new accounts? Sep 24 11:23:07 it should be for all accounts Sep 24 11:23:08 danijoo: they said they will start asking for addresses starting next month Sep 24 11:23:25 shmooz: did they also say they publish them in gps? Sep 24 11:23:32 aww, and danijoo was so eager to give them all his personal data :p Sep 24 11:23:33 i mean it could be possible they just keep them internally Sep 24 11:23:55 danijoo, I think the idea was that your physical address will become public Sep 24 11:24:04 source? Sep 24 11:24:12 yesterday's chat in here? :) Sep 24 11:24:16 danijoo: afaik they require you to have it published publicly Sep 24 11:24:23 http://www.whatmobile.net/2014/09/23/android-app-developers-will-soon-forced-publicly-display-home-address-google-play-store/ Sep 24 11:24:42 there was also a warning in dev console saying same Sep 24 11:25:50 I wonder if they plan to verify this information, like send you a snailmail letter with the code you then need to enter in the console Sep 24 11:25:53 "must display a registered address where they can be contacted" Sep 24 11:26:13 exactly, and all other contact info (phone, email) is always verified Sep 24 11:26:22 nothing about your home adress. you could also provide a lockbox or sth Sep 24 11:26:28 cant use P.O. box either Sep 24 11:26:38 StingRay_: why? Sep 24 11:26:50 in law/legal not a physical address Sep 24 11:26:57 thats why they use those words Sep 24 11:27:03 that depends on country ;) Sep 24 11:27:10 danijoo, yeah nobody said you have to enter your *home* address, but often times that's the only (legal) one people have Sep 24 11:27:16 they want to get…. "physical"…"pyhsical" Sep 24 11:27:33 StingRay_, that sounds... intrusive... at best Sep 24 11:27:47 danijoo actual it's under ITL or ICC so no, doesn't Sep 24 11:27:51 * ravilov feels violated, even though I have and will have nothing to do with play store Sep 24 11:28:03 Well i can understand both sides of that. I mean i totally agree that it sucks if you want to publish your small hobby app and have to throw your address out into the wild Sep 24 11:28:29 danijoo if you live in a country where legal documents can be passed (notarised) through a PO box let me know ;) Sep 24 11:28:36 But I also see the customer view who have nothing in hand if you betray them. Sep 24 11:28:40 lol, John Carmack hates android development, he calls it 'Development Hell' Sep 24 11:28:48 danijoo, supposedly this wasn't google's invention, supposedly they were forced to do this by higher instances Sep 24 11:28:49 in what countries do you have to give out your physical address? Sep 24 11:28:53 shmooz who cares Sep 24 11:29:08 hello Sep 24 11:29:12 MartialLaw all Sep 24 11:29:17 Perhaps a stupid question Sep 24 11:29:19 why is Carmack such a godly figure to so many? Sep 24 11:29:32 Because they haven't met you yet ravilov Sep 24 11:29:35 he made DOOM man! Sep 24 11:29:56 shmooz, If you mainly program close to the hardware using C/C++ then deving for android does indeed suck, for everything else its fine. Sep 24 11:30:07 VnM, I just feel only hardcore gamers would hold him in such high regard Sep 24 11:30:51 DLSteve: unfortunately I have done that, in fact I tried making my own DOOM back then Sep 24 11:31:03 with mode X and raycasting Sep 24 11:31:17 I'm trying to integrate code from another project. So the original author has defined a class which is a subclass of SurfaceView. He Instantiates it in onCreate by setContentView(theObject); Sep 24 11:32:15 Now i want to use this class but don't want it to occupy the whole screen. I created a SurfaceView object in main.xml and then connected it with a variable through it's ID Sep 24 11:32:52 My question is how can i connect the custom SurfaceView with the one i created in xml? Sep 24 11:33:15 ummm like any other view? just use fqcn Sep 24 11:33:42 peska: after setting contentview to your xml layout, SurfaceView view = findViewById(R.id.viewid); Sep 24 11:34:35 peska dont ignore but dismiss danijoo and do what ravilov said by using the full class path in the xml :) Sep 24 11:34:49 danijoo it's a custom subclass of surfaceView Sep 24 11:35:09 oh well i got the question wrong :) Sep 24 11:35:29 peska so rather than StingRay_, you mean I should instantiate the custom class inside the main.xml? Sep 24 11:35:57 reference it Sep 24 11:36:15 yes, the instantiate is when it gets inflated by x means Sep 24 11:36:20 or, if it's actually important that this view is created programmatically, you could have a placeholder (say, linearlayout) into which you then add the view Sep 24 11:36:29 oh this is something new, lemme try Sep 24 11:36:48 mh this all sounds like he dont know the basics about xml and contentviews.. Sep 24 11:37:23 he doesn't, or else he wouldn't be asking this question (which he did qualify with "possibly stupid") :p Sep 24 11:47:51 StingRay_, It is throwing exception. So instead of peska: show your xml and java file Sep 24 11:48:15 ((pastebin)) Sep 24 11:48:22 ok Sep 24 11:51:43 or at least post your stack trace, pretty impossible to know what went wrong just out of nowhere Sep 24 11:55:03 daniele_athome, http://pastebin.com/Sdg1HrvQ Sep 24 11:55:12 The xml Sep 24 11:55:25 http://pastebin.com/fWiQczhm Sep 24 11:55:36 onCreate code Sep 24 11:55:46 http://pastebin.com/NkpgMtpJ Sep 24 11:56:08 is it possible to start a service from inside another service? Sep 24 11:56:09 ravilov, the last one is stack trace Sep 24 11:56:25 h4k1m did you try it ? Sep 24 11:56:31 Error inflating class unipg.info.robook.MonkeyCamActivity.Preview Sep 24 11:56:44 Caused by: java.lang.ClassNotFoundException: unipg.info.robook.MonkeyCamActivity.Preview Sep 24 11:57:20 means: there is no class with this name. You didnt include them into your project Sep 24 11:57:27 or not in the correct way Sep 24 11:59:09 StingRay_: I've tried it with a sync adapter service but it didnt work coz I didnt have a reference to the main activity Sep 24 11:59:24 what has main activity got to do with it ? Sep 24 12:01:58 h4k1m, afaik no Sep 24 12:02:34 h4k1m absolute yes Sep 24 12:03:00 anywhere where a Context or ContextWrapper like whatever your service is from …has the method, startService Sep 24 12:03:56 okey thanks StingRay_ Sep 24 12:04:04 ravilov: but why shouldnt it work? Sep 24 12:04:11 h4k1m to dies Sep 24 12:04:13 does Sep 24 12:04:48 peska, apparently it can't instantiate your custom view but I see nothing wrong with the code. post code for MonkeyCamActivity/.Preview Sep 24 12:05:22 do we have any recommended bar code scanning libraries Sep 24 12:05:24 that work Sep 24 12:05:37 StingRay_, afaik Service does not implenent/inherit Context, but I could be wrong Sep 24 12:07:23 ravilov, Ok my bad, I thought the class Preview was an innner class of MonkeyCamActivity it is not. i changed the main.xml to but now i get another exception lemme pastebin it Sep 24 12:10:27 ravilov, http://pastebin.com/qLiYPGkq Sep 24 12:10:29 learned about zxing Sep 24 12:10:33 stack trace of the new exception Sep 24 12:10:34 anything that beats it Sep 24 12:11:21 hm, apparently Service does indeed extend ContextWrapper. maybe that'd be good enough Sep 24 12:11:43 it is Sep 24 12:12:46 peska, your custom view must have the (Context, AttributeSet) constructor Sep 24 12:14:29 ravilov, this is the MonkeyFaceActivity file http://pastebin.com/cWXhzP8K Sep 24 12:14:37 which contains the Preview class too Sep 24 12:15:08 does anyone here manually override onFling for a gesture? i’m wondering if you use a certain velocity as a threshold for whether or not it was swiped Sep 24 12:15:29 ravilov, originally this code takes the whole screen. Sep 24 12:15:50 I mean the Preview activates the camera which takees the whole screen Sep 24 12:15:57 um okay? so just add the constructor like I said Sep 24 12:25:38 wow, another playstore shakeup "Price ranges for in-app purchases" Sep 24 12:25:55 to be displayed on for all apps with iap's Sep 24 12:31:21 They should bother about proper permissions, not iaps. Too much about the permissions is implicit, whilst iaps are always explicit. :) Sep 24 12:32:23 indeed, feels like they are attempting to look busy, but with no real point to what they are doing, maybe in an attempt to to have to start QA process/staff with playstore Sep 24 12:32:57 or rather not to have to deal with QA Sep 24 12:33:15 dam painkillers making me say the opposite :) Sep 24 12:33:27 Hello, what are some cool android blogs/resources you follow? Programming,uix,design etc. Sep 24 12:36:22 * ravilov doesn't follow anything on a regular basis, I just google stuff when I need it Sep 24 12:37:16 I check androidpolice at times but thats more apps and hardware Sep 24 12:37:54 I followed the Commonsware blog and the official blogspot some time ago... Sep 24 12:38:18 where official blog = http://android-developers.blogspot.de/ Sep 24 12:38:25 waiting for someone in mainland USA to get heart-attack Sep 24 12:38:48 just gave a prototyping estimate Sep 24 12:39:08 sup Sep 24 12:39:14 whoops, wrong tab Sep 24 12:39:22 can anyone tell me why GCM interprets my extras as string Sep 24 12:39:27 even when they're integers Sep 24 12:39:43 this is extremelly annoying Sep 24 12:53:34 I have lots of Lint errors in Eclipse, i.e. X not translated in Y. How can I ignore these errors permanently? I have already set the Lint properties to only warn for this error. Sep 24 12:54:27 it should offer you to ignore as one of the solutions Sep 24 12:55:13 an alternative is blah, however that would not only make the warning go away but would also make the string completely untranslatable even if you wanted to translate it Sep 24 12:57:46 The problem occurs, because one project contains mutliple subprojects. The parent project is just a container, though, no functionality. Sep 24 13:00:09 And the errors appear even if the lint errors are set to ignore. Sep 24 13:08:12 hello. Sep 24 13:08:14 what is the right way to communicate between fragments. Let say that I like to show data from same chronometer or SensorListener on both fragment. Where should I register sensor listener and how to send data to visible fragment. Sep 24 13:08:47 activity Sep 24 13:09:01 use the activity to communicate to fragments Sep 24 13:10:48 http://i.imgur.com/OYZ6WYz.png Sep 24 13:10:54 what do you think on the color dialog? Sep 24 13:10:55 if I like to send data from one fragment I can creat interface. how can I send send data from onSensorChanged to visible fragment Sep 24 13:11:23 slani by getting the fragment with fragmentManager Sep 24 13:11:53 StingRay_: thanks Sep 24 13:12:04 yoavst just looks like a copy of what others use … pretty standard Sep 24 13:12:25 StingRay_: it is upgrade from yesterday's one :) Sep 24 13:12:53 oh, didn't see it … but yeah, since everyone is doing L pallets now, I see that lots Sep 24 13:12:56 :) Sep 24 13:13:35 personally not sure about the circle container of the tick Sep 24 13:13:40 but thats just me :) Sep 24 13:17:08 I have a screen with a listview. I want to have a webview in the top of the screen (with zoom and panning enabled). I wish for the webview to scroll along with the listview. So i set the first element of my listview to be my webview, but this causes the zoom controls to be very "sluggish". I can zoom/pan a very small distance before the gesture stops. Sep 24 13:17:30 What is the proper way to do this? Sep 24 13:18:30 is restartLoader supposed to callback onLoaderReset? Sep 24 13:22:17 StingRay_, dunno, this is my standard one ;) http://i.imgur.com/IYfx52m.png Sep 24 13:22:57 ravilov for 90% of use cases thats not great Sep 24 13:23:02 and I dont mean the look Sep 24 13:23:12 I know Sep 24 13:23:19 RGBA is not a good things to ask of a user Sep 24 13:23:20 :) Sep 24 13:23:20 my use case requires precision and fine control ;) Sep 24 13:24:00 then where is my hex input ?? ;) Sep 24 13:24:33 no prob, I'll add a checkbox that will toggle edittexts between hex and dec Sep 24 13:24:57 but no, I will not add an edittext that accepts #AARRGGBB input :p Sep 24 13:25:15 because what's next? you'll ask for it to be able to parse @color/xxx input too? :p Sep 24 13:26:31 depends on what it's for really :) Sep 24 13:26:42 I should add a hex to the picker I'm using Sep 24 13:26:52 tots Sep 24 13:26:54 yeah. and i want to be able to put in "light grey" or "darkish orange" in the language of my choice and get it parsed to a color xD Sep 24 13:27:14 danijoo, "that blueish green I saw the other day at the mall" sounds totally acceptable Sep 24 13:27:57 "neutral gray with a hint of color" Sep 24 13:28:54 yeah! but dont forget support for chinese and russian characters/language Sep 24 13:31:58 danijoo, not to mention voice input Sep 24 13:32:07 in any language, of course Sep 24 13:32:27 and gesture input via front camera Sep 24 13:32:34 so you can dance the color Sep 24 13:33:07 man... this was just a helper dialog in my app, now it's going to be an app of its own! Sep 24 13:33:19 All the things! Sep 24 13:33:37 you should get a patent on that Sep 24 13:34:17 how am I going to call it? overengineering at its finest? Sep 24 13:34:27 well red or lightblue is acceptable for a color Sep 24 13:35:12 ravilov, luckily, voice input is fairly easy Sep 24 13:36:46 Syzygy_, in any language? Sep 24 13:36:57 regardless of what the device/framework might provide Sep 24 13:37:01 ravilov, well, as long as you know the language beforehand Sep 24 13:37:11 the google API for that works great Sep 24 13:37:18 well I wouldn't, but they could tell me the language in voice Sep 24 13:37:18 does require an internet connection though Sep 24 13:37:38 ravilov, wouldn't the device language work? Sep 24 13:37:46 is it existing a message for plug and unplug removable drive like usb stik or sdcarde Sep 24 13:38:05 no, because I want to be able to understand any possible spoken language, ALL AT ONCE! Sep 24 13:38:17 well in that case, no idea Sep 24 13:38:38 you should read some of the backlog, maybe then you wouldn't be trying so hard ;) Sep 24 13:38:51 not like any of this is serious Sep 24 13:39:28 I just came online, so I don't see the rest of the discussion, just that you want voice input Sep 24 13:39:45 None of this is, #android-dev used to be called #shitsandgiggles but we changed to #android-dev as one of the giggles Sep 24 13:42:36 sounds about right Sep 24 14:20:26 How do I make Hover Listener work with childrens of layout? Sep 24 14:21:02 Hello, can I get volume key events in my application on the background while no media is playing? Sep 24 14:26:08 anyone here good with loaders? I have everything working perfectly, except that onLoaderReset won't run. Curious if I am misunderstanding something. Sep 24 14:26:12 ciao ^^ Sep 24 14:26:33 Hello everyone! Sep 24 14:27:19 Hi. I was playing around with adb commands and tried a few commands. like svc wifi disable and stuff. Shouldn't it wokr on the device? Sep 24 14:30:27 Guys i need help in developing a very uncommon application. I want my application to communicate with a device. What should i do? Sep 24 14:30:53 juajua: define communicate and define "a device" Sep 24 14:31:00 juajua learn to develop Sep 24 14:31:02 :) Sep 24 14:31:21 is a GENERIC device Sep 24 14:31:30 mattblang I use loaders Sep 24 14:31:32 attached to my system via AMBA Sep 24 14:31:41 im out :) Sep 24 14:32:11 I know that OAP is used Sep 24 14:32:13 StingRay_ maybe you could answer this for me. I have an easy work around, but I am so very curious about it. when is onLoaderReset callback supposed to run? Sep 24 14:32:55 but OAP is for USB and Bluetooth device Sep 24 14:32:58 cya danijoo! Sep 24 14:33:06 when you invalidate the instance of the object it controls Sep 24 14:33:07 meant out of the quesition :p Sep 24 14:33:19 oh right Sep 24 14:33:32 StingRay_ so then it isn't supposed to run when the loader is restarted? Sep 24 14:33:37 no Sep 24 14:33:51 StingRay_ or when the Loader is reset? Sep 24 14:34:30 reset loader ? Sep 24 14:34:46 you mean restart ? Sep 24 14:34:59 StingRay_ http://developer.android.com/reference/android/content/Loader.html#reset() Sep 24 14:35:21 StringRay_ tried doing that to make onLoaderReset to run Sep 24 14:35:26 "This function will normally be called for you automatically by LoaderManager when destroying a Loader. When using a Loader with LoaderManager, you must not call this method yourself" ..... Sep 24 14:35:36 so just leave that alone! Sep 24 14:35:45 mattblang yeah thats not something I would or have called directly Sep 24 14:35:52 danijoo yeah, im just trying to see if I can get onLoaderReset callback to run Sep 24 14:35:53 would not want to either Sep 24 14:36:07 StingRay_ right, im just trying to see if I can get the callback to run Sep 24 14:36:16 mattblang: for onLoaderReset callback you should just null your cursor Sep 24 14:36:24 well even if you did you would just want to null your object Sep 24 14:36:45 for example if you have a cursoradapter, do adapter.swapCursor(null) in onLoaderReset Sep 24 14:36:56 then you are fine Sep 24 14:37:27 In other words, how can i communicate with amba devices (timer, gpio, ecc...)? Sep 24 14:37:42 ho wsecure is the Message/Handler ? Sep 24 14:37:44 StingRay_, danijoo Let me break it down a little better. I have everything working perfectly, I understand it all for the most part. But when I restartLoader, for just a moment, the items in the ListView (backed by a CursorAdapter) can throw NPE because onLoaderReset, where I null the Cursor, does not run Sep 24 14:37:59 could another app listen to them? or could a wrapper? Sep 24 14:38:03 StingRay_, danijoo so, I was wondering if I just misunderstood when onLoaderReset was supposed to run Sep 24 14:38:47 StingRay_, danijoo excuse me, where I null the Cursor in the adapter Sep 24 14:38:53 okay. i dont know it in that detail to be honest Sep 24 14:38:56 mattblang make your adapter aware that it could be null and do nothing, think I had the same problem… Sep 24 14:39:04 @tricknology: are you talking to me? it's a bit confusing here :S Sep 24 14:39:04 i just implemented it like that and was happy that its working :) Sep 24 14:39:11 anyone really Sep 24 14:39:23 danijoo yeah, I feel ya. I was pretty stoked when I got it working, haha Sep 24 14:39:29 mattblang so things like getCount() 0 if cursor null obviously Sep 24 14:39:47 The onLoaderReset(Loader) method gets called when your loader's callback (usually an Activity or Fragment instance) is asked to release all references to the Cursor which it has gained via onLoadFinished(Loader, Cursor) before Sep 24 14:39:55 StingRay_ yeah, that would work. what I am doing, honestly, is just calling swapCursor(null) before I restart the Loader. but I would think that I shouldn't have to do that Sep 24 14:40:36 tricknology ah, so then there is no way around making some call before I restartLoader to accomplish what I am doing then right? Sep 24 14:41:13 idk i found that here: http://stackoverflow.com/questions/12937060/loaders-and-onloaderreset-android Sep 24 14:41:15 i don’t loader Sep 24 14:42:08 The whole device is under my control. I can add/delete everything Sep 24 14:42:21 StingRay_, tricknology, danijoo I guess it just really seems like onLoaderReset should get called when restarting the Loader. kind of strange to me Sep 24 14:42:37 and i don't bother about security at the moment Sep 24 14:43:53 not sure about the callbacks and lifecycle Sep 24 14:45:35 i am at a very early development stage Sep 24 14:46:03 so I can design much everything Sep 24 14:46:36 let's suppose i want to add an AES encryption/decryption engine Sep 24 14:47:16 how can i control that engine from an android app? Sep 24 14:47:36 of course kernel drivers are already done and functioning Sep 24 14:48:55 installed the eclipse adt bundle and built my first little stupid app and then went on to add another activity, with problems and inconsistencies between the tutorial and what i'm seeing in my environment all the way. errors all over the place. is this a typical experience? Sep 24 14:49:06 tutorials are garbage Sep 24 14:49:09 and always out of date Sep 24 14:49:39 (the main problem that i'm facing is about interrupts. How can applications know when devices generate interrupts?) Sep 24 14:50:17 pfn, i studied java for few months and wanna start working on an android project. any recommendations? Sep 24 14:50:32 james0r, just the fact that you are in Eclipse says that you are using old information... Sep 24 14:50:58 MikeWallaceDev_, heh. do tell. Sep 24 14:51:11 Android Studio, all the way baby! Sep 24 14:51:52 interesting. how have i never heard of this Sep 24 14:51:58 can we override subscribed methods in Otto or guava? Sep 24 14:51:58 i need to spend more time in this channel. Sep 24 14:52:03 And these days you're probably better off getting your information directly from Google Sep 24 14:52:11 james0r, read d.android.com Sep 24 14:52:13 Afzal: what does that mean? Sep 24 14:52:20 james0r, get to know java well Sep 24 14:52:34 Afzal, sure, the final implementation gets called, of course Sep 24 14:52:46 From time to time... I'm just going to type "Otto" randomly. To shake up JakeWharton's day.... Sep 24 14:52:55 pfn: that is not true for both Sep 24 14:53:17 JakeWharton, if you have @Subscribe in a superclass, and in a subclass, then the subclass' will be called Sep 24 14:53:23 JakeWharton, so there a "onComplete" method in a parent class, I want to override it in a class that extends it, do I just do the normal @Override or should I call @Subscribe and register the event bus etc for the extended class? Sep 24 14:53:28 pfn, i spend a lot of time on java alone. still a novice but i think it's time for me to specialize a little toward android. Sep 24 14:53:59 haha I don't know how he detects keywords like that @ MikeWallaceDev_ Sep 24 14:54:12 I see Android Studio is beta still, is it functioning enough to say develop shitty little practice apps? Sep 24 14:54:14 james0r, that sounds reasonable to me Sep 24 14:54:21 james0r, yes Sep 24 14:54:22 JakeWharton, of course, otto has some subscribe weirdness where it'll only look in a specific class for @Subscribe, but that's a different subject Sep 24 14:54:28 james0r, it's Google, it will be beta for 10 years Sep 24 14:54:28 james0r, everything is beta Sep 24 14:54:32 beta = usable Sep 24 14:54:40 alpha is what youw ant to stay away from Sep 24 14:54:43 pfn: you are describing behavior that i wrote Sep 24 14:54:47 haha Sep 24 14:54:49 JakeWharton, I know, you said so Sep 24 14:55:02 your guys' tech comments are making me lol, this is unusual Sep 24 14:55:04 but you are still wrong about method overrides Sep 24 14:55:11 I really wish JakeWharton had a webcam right now :D Sep 24 14:55:22 would love to see him reacting :D Sep 24 14:55:26 android studio run alright on linux? Sep 24 14:55:39 james0r, I'm on Linux Sep 24 14:55:48 james0r yes, that’s typical but a huge learning experience ;) Sep 24 14:55:51 okay cool. i'll give it a shot Sep 24 14:55:55 james0r questions like that are good for googling ;) Sep 24 14:55:59 JakeWharton, so, given A.onSomeSubscription, and B.onSomeSubscription, while B extends A, and you register A (an instance of B), you're saying an event firing will call A.onSomeSubscription Sep 24 14:56:07 JakeWharton, that's basically impossible Sep 24 14:56:11 Android Studio is problem for me Sep 24 14:56:23 i think googling is an art in some ways Sep 24 14:56:28 pfn: no Sep 24 14:56:33 How can I make my application knows when generic AMBA devices generate interrupts? Sep 24 14:56:38 I had to port one project to my ant based command line Sep 24 14:56:41 Looney, how so? Sep 24 14:56:49 james0r maybe, but saves pointless questions :) Sep 24 14:57:15 MikeWallaceDev_: i don't react Sep 24 14:57:21 the project or demanded some particular version of AS or perhaps gradle Sep 24 14:57:21 this channel has 1% of my attention Sep 24 14:57:27 StingRay_, you know that I'm mister lmgtfy... But he's asking opinions, you can't really Google those :) Sep 24 14:57:41 we appreciate it JakeWharton :-P Sep 24 14:57:43 JakeWharton, you're a better man than I. :D Sep 24 14:57:48 MikeWallaceDev_ true but this is the worst place for that Sep 24 14:58:00 StingRay_, i see your point but i wasn't asking "is it supported on linux" i was more asking "what is your opinion about how it runs on linux" which is sort of babble IRC-ish in nature. Sep 24 14:58:09 MikeWallaceDev_ and I was referring to , does it run on linux :) Sep 24 14:58:15 oh Sep 24 14:58:25 right Sep 24 14:58:29 so, I tried a version or two of gradle Sep 24 14:58:36 and then did what I know Sep 24 14:59:10 ported project so that I can build it using ant based system Sep 24 14:59:21 well, my breaking point line is, as long as it's a quick discussion, I'm fine with it... Sep 24 14:59:26 I have heard that maven is better than ant Sep 24 15:00:01 Looney, porting to AS is a different beast.. That can be more difficult. He's starting a new app Sep 24 15:00:20 (and by new, I mean it's small enough to just start over :D ) Sep 24 15:00:45 starting a new Sep 24 15:00:51 I suggest, stick to Eclipse Sep 24 15:01:00 or better, vi + ant Sep 24 15:01:07 I suggest, go to Android Studio Sep 24 15:01:30 and anyone who suggest vi is obviously oblivious. Sep 24 15:02:00 Sorry, that's a tick of mine... Sep 24 15:02:24 I used vi in 1985... it's 2014. Sep 24 15:03:01 * StingRay_ sits up, it's what ? 2014…fk, I should be a developer by now!!! Sep 24 15:03:20 autocorrect, code code completion, syntax highlighting, integrated debugger, code templates, etc, etc, ... Sep 24 15:03:49 StingRay's alarm just went... (zzzzz, I'll hit snooze and sleep 9 more years. zzz) Sep 24 15:03:52 MikeWallaceDev_, got it on download now. I gave Arch a shot for the first time a couple of days ago and got a vi lecture for at least 20 min. i understand sometimes you really need it though Sep 24 15:03:54 JakeWharton, how do I become a crazy good programmer like yourself? Sep 24 15:04:03 I use vim + cmdline build all the time Sep 24 15:04:09 works great Sep 24 15:04:32 sublime text favored at all by android devs? Sep 24 15:05:01 pfn, that's what I love about AS + Gradle, you CAN switch to CLI anytime you want Sep 24 15:05:38 MikeWallaceDev_, you always could with eclipse before Sep 24 15:05:40 james0r, I don't use sublime enough :-/ Sep 24 15:05:56 pfn define "could" Sep 24 15:06:03 come on guys, be gentle. i really need to know how to make this! Sep 24 15:06:35 wait. You guys do realize that I'm gentle, right? No hostility? I'm just stating opinions :) Sep 24 15:06:54 I know that I can be... edgy, sometimes Sep 24 15:07:14 (and by "sometimes", I mean "always") Sep 24 15:07:15 MikeWallaceDev_, ant Sep 24 15:07:23 MikeWallaceDev_, worked about the same Sep 24 15:07:34 takes about a similar amount of time to build Sep 24 15:07:45 shorter with ant, because it doesn't do dependency resolution Sep 24 15:07:46 pfn, right, but there was work to be done to make that work Sep 24 15:07:51 no work Sep 24 15:07:54 install ant Sep 24 15:07:57 android update project Sep 24 15:07:59 run Sep 24 15:08:00 with Gradle, it just works :) Sep 24 15:08:07 that's not too bad Sep 24 15:08:08 not really Sep 24 15:08:14 oh really :D Sep 24 15:08:29 I suppose if androidstudio creates gradlew as well Sep 24 15:08:47 never heard about Grandle before Sep 24 15:08:53 i'll give it a look Sep 24 15:08:54 In the earlier days of AS it would crash often, not work, buzz out. I would just hop to the CLI and keep working Sep 24 15:09:14 juajua, if you are using AS , you're using Gradle :) Sep 24 15:09:44 so basically, AS crashing made me love it. Because I could still work. Sep 24 15:10:38 thank you Mike! Sep 24 15:10:53 I just missed the whole discussion Sep 24 15:10:56 no problemo juajua Sep 24 15:10:57 :/ Sep 24 15:11:11 (see!? I can type in Spanish!) Sep 24 15:11:50 english is just fine :D Sep 24 15:12:21 No Problem! (I'm soo worldly!) Sep 24 15:13:18 MikeWallaceDev_, in any case, it was always good to setup ant in all adt builds Sep 24 15:13:25 MikeWallaceDev_, took all of 1 command at worst Sep 24 15:13:36 pfn that makes sense to me Sep 24 15:13:37 because if you build from the IDE for a release, you are fail Sep 24 15:13:45 or for any CI testing Sep 24 15:13:49 right Sep 24 15:14:55 Btw, I have a bug(?). I send a Notification that plays a sound and vibrates three times. This works under normal situations. However, in a certain case I need to send the notification and immediately lock the phone. In this case the notification only vibrates once. I thought that it was because my notification was sent from an Activity so I made an IntentService and send it from there now. Still doesn't work, any ideas? Sep 24 15:23:49 second time in two days that I break the channel when asking my question :-/ Sep 24 15:24:35 what controls the vibrate Sep 24 15:24:44 is it the notification ? cause never done that Sep 24 15:25:10 and makes sense that if a notification was active, then phone locked, it's is stopped with all the resulting actions born from it.. Sep 24 15:25:35 the notification... Sep 24 15:25:50 Ciao! Sep 24 15:26:18 well, my thought process was the a notification still works when the phone is locked. And, of course, before it's locked. Apparently, it doesn't like the transition Sep 24 15:26:39 yeah, but makes sense to me Sep 24 15:26:48 StingRay_, not sure why you say it makes sense though? Sep 24 15:26:52 locking the phone while a notification is active is a form of dismissal Sep 24 15:26:59 It doesn't to me... Sep 24 15:27:08 hello Sep 24 15:27:19 huh, lets see who the android devs agree with….oh wait, you have the proof ;) Sep 24 15:27:21 hmmm, don't agree with you there StingRay_ Sep 24 15:27:27 how easy is it to set a custom font for your app? im a total beginner btw Sep 24 15:27:39 Bart_mac, it's not. Sep 24 15:28:06 MikeWallaceDev_ no I probably agree it's not, but I do think things born from it like sound/vibrate, yes I do think Sep 24 15:28:16 Some people suggested deriving from TextView and setting the font in the derived class Sep 24 15:28:21 no? Sep 24 15:28:22 I have a text label under a button that I want to be centered under the button in a RelativeLayout. How do I do that? Sep 24 15:28:35 phone starts to make a sound, from notification, I turn screen off… i want the fking sound to go too Sep 24 15:29:00 its also not a common thing to do? Sep 24 15:29:09 same with vibrate, but MikeWallaceDev_ all this is incidental … try triggering vibrate in the intentService and it having nothing to do with noti Sep 24 15:29:14 about to translate a complicated, multi-step registration flow from HTML to Android. any libraries I should look at before I get started? Sep 24 15:29:38 Bart_mac, you don't see that many apps with different fonts, do you? :) Sep 24 15:30:09 you have to extend textview and do that if you want to use the textview in your xml Sep 24 15:30:15 StingRay_, so funny that you say that! I just reversed that yesterday! Sep 24 15:30:24 I diidn't use the Notification previously. Sep 24 15:30:43 But using Notification removed a permission... Sep 24 15:30:50 and made the code simpler Sep 24 15:30:54 and... doesn't work :D Sep 24 15:31:01 details, details... Sep 24 15:31:48 nope Sep 24 15:31:51 oh well Sep 24 15:32:06 Bart_mac, it's doable... just not easy. Sep 24 15:32:24 the textview thing? Sep 24 15:32:25 there's not setApplicationFont(); Sep 24 15:32:28 Bart_mac from a design stand you need a pretty compelling reason to do it too… Sep 24 15:32:33 its easy man Sep 24 15:32:39 I agree with StingRay_ Sep 24 15:32:56 what if you want to set a font for everything in the app? Sep 24 15:33:03 you need it, that's it Sep 24 15:33:13 by compelling, you will be taking away a users choice, and their preference of font… so has to be STRONG! Sep 24 15:33:17 well its not a musthaveitnow thing for me Sep 24 15:33:29 later == never Sep 24 15:33:30 lel Sep 24 15:33:50 but if it only took a few lines of code ... :p Sep 24 15:34:00 yes, then we can do it now Sep 24 15:34:07 but only if those lines are also pretty simple Sep 24 15:34:11 then forget it Bart_mac ... Like StingRay_ said only you have strong design choices behind it, it's not a good idea Sep 24 15:34:18 none of that red line that Auto Import doesn't fix Sep 24 15:35:18 another question: is android studio usable yet? Sep 24 15:35:20 i hate eclipse Sep 24 15:35:24 some ideas where it's a must, "you are a world wide brand with a specific design type that is part of branding and is very known" other things include…. oh…wait… cant think of any other Sep 24 15:35:31 I have a text label under a button that I want to be centered under the button in a RelativeLayout. How do I do that? Sep 24 15:37:03 treeson any reason against linearLayout ? Sep 24 15:37:17 stingray_ I don't know the difference Sep 24 15:37:17 relative is very heavy for something as simple as that Sep 24 15:37:39 one is a truck for large cargo, the other is a skateboard Sep 24 15:37:58 I am making a simple app with a few buttons and labels here and there, is linear better suited for that? Sep 24 15:38:20 Eclipse is awesome Sep 24 15:38:21 by asking the question you should really learn more about viewGroups Sep 24 15:38:23 thanks Sep 24 15:39:02 treeson learn about the parameters and uses of linear frame and relative and you should be good to decide Sep 24 15:41:53 it would be nice to have a documentation bot... I think. Sep 24 15:42:05 ad LinearLayout Sep 24 15:42:06 done. Sep 24 15:42:54 not sure the docs give clean examples of use Sep 24 15:42:58 and explain it too good Sep 24 15:43:26 nope, but if you didn't read them, you shouldn't be asking questions here... Sep 24 15:44:13 Hmmm, Vibrator also gets stopped when the power button is tapped. Sep 24 15:44:13 in eclipse in the properties window do any of you sometimes get white lines that won't go away Sep 24 15:45:12 no, wait, I didn't tap the power button... Sep 24 15:46:18 I was leaning towards your side StingRay_ if the user tapped the power button to dismiss. But I'm not, I'm calling lock() programmatically... Sep 24 15:47:42 that's like saying if I send a notification 1/1000 second after the phone autolocks that the user won't get it (until he opens the phone and see it) Sep 24 15:48:10 no, 1/1000 BEFORE the phone locks Sep 24 15:48:22 in production, it will be 1/1 times Sep 24 15:48:23 haha Sep 24 15:48:37 Is there a design guidelines for Bottom bar in material design? can't seem to find one Sep 24 15:48:55 ltns yoavst Sep 24 15:49:32 yoavst, what bottom bar? Sep 24 15:49:43 http://material-design.storage.googleapis.com/images/layout-structure-uiregions-uiregions-01_large_mdpi.png Sep 24 15:49:55 " An optional bottom bar can be added for additional functionality or action overflow. " Sep 24 15:49:58 that is all what they said Sep 24 15:50:29 that's the split action bar Sep 24 15:50:35 I thought they were getting rid of split action bar Sep 24 15:50:43 Is there a way to redefine the color of a an xml drawable (e.g. shape) in a layout file? Sep 24 15:51:03 I don't want to create a new shape for every color Sep 24 15:51:06 I am in linear layout horizontal. How do I get my items to stack in a single column instead of just keep on making new columns Sep 24 15:51:17 Syzygy_: yea Sep 24 15:51:18 Syzygy_, I don't think so, but I did programmatically Sep 24 15:51:28 sec Sep 24 15:51:32 treeson, make it vertical :P Sep 24 15:51:43 android:tint Sep 24 15:51:52 no i mean I want sort of like a table Sep 24 15:51:55 treeson, a linear layout can only go in one direction Sep 24 15:52:05 treeson, orientation = horizontal, you might want to add a new linear layout Sep 24 15:52:12 treeson, then you don't want a linear layout... Sep 24 15:52:28 treeson, horizontal linear layout within a vertical linear layout Sep 24 15:52:29 Afzal: MikeWallaceDev_ I need a place to put the data's update date (it is very important in my app), and I think the bottom bar is right place. Sep 24 15:52:30 earlier you said there was only a button and a text Sep 24 15:52:34 do you think it follows the guidelines? Sep 24 15:52:38 Do I want to do table layout? Sep 24 15:52:51 yoavst, do it where you want :D Sep 24 15:52:54 :P Sep 24 15:53:03 are there any InputFilter libraries on Github? Sep 24 15:53:04 I have 10 buttons and 10 labels below each button that I want centered under the buttons Sep 24 15:53:22 treeson, that's exactly a table layout :) Sep 24 15:53:26 treeson, you can add a linear layout to another linear layout Sep 24 15:53:31 just saying Sep 24 15:53:40 table layout might still be better for you Sep 24 15:53:45 ok thanks Sep 24 15:54:14 yoavst, try doing it like it's done in Settings > Accounts where it shows last synced Sep 24 15:54:23 yoavst, what should be my "base" color that is then tinted? Sep 24 15:54:36 Afzal: but in my case the date is really important Sep 24 15:55:00 it show changes in timetable, and the user need to know if the changes are for yesterday, or today Sep 24 15:55:06 yoavst, I'm talking about the design, as in put it at the top before the content Sep 24 15:55:27 Syzygy_: It doesn't matter since it use A_TOP Sep 24 15:55:31 if I remember right Sep 24 15:55:57 Seen on Stack Overflow : "note : you must also test this code on a real phone , emulator can't viberate" Sep 24 15:56:02 EARTHQUAKE!!! Sep 24 15:56:20 Guys, I accidentally deleted content under samples\android-18\legacy\ApiDemos\ folder and reinstallation from SDK manager doesn't restore the files, where can I download them manually or what should I do have them back? Sep 24 15:56:23 ok. I assume it doesn't work with multicolored drawables? for example a white circle with a black outline Sep 24 15:56:38 I still don't understand PagerAdapters :( especially for FragmentGridPagerAdapter Sep 24 15:57:36 like when to use instantiateItem vs getFragment and how to use it when it's a custom CardFragment Sep 24 15:57:43 AlexBerdnikov, if I have them, I can zip them up for you Sep 24 15:57:55 also, anyone else still hate how wear data storage works Sep 24 15:57:56 ? Sep 24 15:58:15 MikeWallaceDev It would be great, thanks. Only 19, not 18/ Sep 24 15:58:19 AlexBerdnikov, i have 14 and 19... Sep 24 15:58:22 android-19 Sep 24 15:58:23 LUCKY!!!!!! Sep 24 15:58:33 yeah, gimme a minute Sep 24 15:58:42 Of course, thank you Sep 24 15:59:29 how do I add columns to my table layout? Sep 24 15:59:54 anyone using the chromecast companion library? Sep 24 16:01:28 I was trying to create a Drawable using `getResources().getDrawable(R.drawable.background_red)` and it fails but directly using `setBackgroundResource(R.drawable.background_red)` works. Any idea why? Sep 24 16:01:50 treeson lmgtfy :) Sep 24 16:02:20 astroduck are you an android user ? or are you a developer ? Sep 24 16:02:37 StingRay_: Newbie Developer Sep 24 16:02:40 " it fails " makes me think you are a user and in the wrong place ;) Sep 24 16:03:09 Oh oops, The log gives me a whole lot of error messages, hard to find any relevent one Sep 24 16:04:07 if by messages you mean lines, then yeah… a stack trace exists over many lines but is really 1 message Sep 24 16:04:13 AlexBerdnikov, https://copy.com/0mTxvyY100g1 Sep 24 16:04:42 AI update missing? https://dl.google.com/android/studio/patches/AI-135.1404660-135.1446794-patch-mac.jar Sep 24 16:05:05 MikeWallaceDev_ Thank you man! Sep 24 16:05:15 In today's episode, replacing MikeWallaceDev_ in the role of GrumpyOldMan will be StingRay_ Sep 24 16:05:25 :D Sep 24 16:05:38 MikeWallaceDev_, Sorry, is it from android-19 for sure? Sep 24 16:05:39 a promotion ? :) Sep 24 16:05:46 for sure Sep 24 16:05:56 Cool, thanks again Sep 24 16:06:05 you're stealing my thunder man, I usually jump on the noobs!!! Sep 24 16:06:26 URL template is "AI-$FROM-$TO-patch-$OS.jar" Sep 24 16:06:38 StingRay_: So, should I provide the whole traceback? Sep 24 16:06:43 Maybe I'm just more chill because I had milk for my coffee this morning :) I'm slacking!! Sep 24 16:06:48 in a pastebin yes Sep 24 16:06:53 astroduck, use pastebin.com! Sep 24 16:06:54 but also learn to read it yourself Sep 24 16:07:29 StingRay_, is right, learn it, if that fails, post it. (using pastebin :D) Sep 24 16:07:41 Wear SDK needs a desperate update :( Can't even get device name Sep 24 16:10:00 StingRay_: http://pastebin.com/uEbSXrYE I was only able to copy tag and text, but I guess that's the only relevent part Sep 24 16:10:31 astroduck ok so this should be totally obvious to you Sep 24 16:10:39 it's telling you exactly what is wrong Sep 24 16:10:41 Caused by: java.lang.NullPointerException Sep 24 16:11:19 well, to be fair StingRay_ , we know to forget the whole top part and go straight to the "Caused by" :) Sep 24 16:11:26 astroduck so the important thing here is that you learn about what it's saying… so you dont have to come back…. so first learn what a java.lang.NullPointerException is… then work out why it is where it is Sep 24 16:12:05 not that we don't want you back astroduck ! hahaha Just learn, then come back :) Sep 24 16:12:14 oh,erm… thats odd Sep 24 16:13:08 astroduck how/where are you calling getResources ? Sep 24 16:13:27 cause the view is bound to a context and uses it when you set the resource id Sep 24 16:13:42 but the context that you are using for getResources is not the same and is null Sep 24 16:13:46 StingRay_: oh, got it, this was not Context Sep 24 16:13:46 astroduck, in that trace, you can see that you have a null point, then you see that the first occurrence of your app is contagious.games.mastermind.MastermindActivity., you can click on that line, it will bring you to your faulty code Sep 24 16:13:48 or thats what I get from looking at it Sep 24 16:14:10 astroduck right…seemed a bit odd :) Sep 24 16:14:52 StingRay_ MikeWallaceDev_: Wow, that was actually simple to figure out step by step. Thanks for making me do that by myself, kinda :P :D Sep 24 16:15:14 hello Sep 24 16:15:23 You're welcome. Now, go forth and Google my son. :D Sep 24 16:15:29 astroduck quick tip, never look for answers, look to understanding the questions ;) Sep 24 16:15:44 how do I share an http url? this results in an inactive share menu item http://paste.ofcode.org/uGeeJvUjRefdQetHy5Denv Sep 24 16:15:51 in learning direct answers never do much good Sep 24 16:16:11 ok StingRay_ you got me... How did you see that the context is null in the stack trace?? Sep 24 16:16:24 android.content.ContextWrapper.getResources(ContextWrapper.java:89) Sep 24 16:16:30 contextWrapper Sep 24 16:16:34 StingRay_: True, I guess I will never face this kind of problem again :D Sep 24 16:17:40 StingRay_, I still don't see it.. Did you go into the code? Or you're using some Matrix voo-doo to read stuff in the stack trace that I can't see? Sep 24 16:18:34 well, someActivity based from contecx through contex wrapper, and the logic of the view can use "a" context but getResources could not Sep 24 16:18:42 astroduck, it's the opposite, you won't get that exact problem again, but you will get that KIND of problem. So you need to understand the problem so you can use that knowledge for other problems Sep 24 16:18:42 or luck….dunno… on pain meds atm Sep 24 16:19:11 let's stick to Matrix voo-doo. Sep 24 16:19:21 sounds cooler than meds ;) Sep 24 16:19:23 ^haha Sep 24 16:19:36 MikeWallaceDev_ you know I'm a VFX artist/TD more than a dev though right ;) so I lean more to luck Sep 24 16:19:37 He is the one! Sep 24 16:20:10 StingRay_, == Keanuu Reeves on meds Sep 24 16:20:33 BTW drawing a Drawable is faster than drawing directly from resources, right? Sep 24 16:20:48 both same Sep 24 16:21:01 resource loaded to drawable Sep 24 16:21:27 O_o Crap! Sep 24 16:21:33 the R id is just a pointer.. so cant really draw it Sep 24 16:22:14 hi guys, does anyone know if activeandroid can be installed through gradle dependency in android studio? because it does not seem to work Sep 24 16:22:27 No I mean doing setBackgroundResource, the resource is first converted to drawable then drawn or is it already a drawable? Sep 24 16:22:59 not converted Sep 24 16:23:16 R.drawable.something is a pointer to a drawableResource Sep 24 16:23:19 that gets loaded Sep 24 16:23:44 Just tried, using drawable seems a little bit faster to me :/ Sep 24 16:23:46 so if you set R.drawable.something it will have to load the drawable from that pointer Sep 24 16:23:49 StingRay_, you're killing my C++ ears with pointer... :D Sep 24 16:24:10 anyone know of a library that provides some common InputFilters like SSN, phone number, etc? Sep 24 16:24:31 astroduck, sorry man, but there's no way that you saw the thousand second difference between the two... Sep 24 16:25:23 astroduck well I suppose if you create it in code without loading it yeah…cause no xml parse Sep 24 16:25:44 MikeWallaceDev: No, its not a 1/1000s diff, Using resource directly I get about 1sec lag. Using drawble its about 0.5s something Sep 24 16:26:05 astroduck ? erm…. there maybe some other prob there Sep 24 16:26:18 astroduck, you're nuts. You're saying that loading a screen with 10 images would take 10 seconds Sep 24 16:26:41 pastebin the 2 so can see what you are doing …cause confused now :) Sep 24 16:26:48 StingRay_: No, probably its my crappy code doing something weird Sep 24 16:26:55 * MikeWallaceDev Sep 24 16:27:18 pastebin is your friend. Sep 24 16:27:24 and ours ‘) Sep 24 16:27:33 not as much as Google, StingRay_ and Me, but it's your friend too Sep 24 16:28:01 declaring com.activeandroid activeandroid (insert latest version) into compile 'com.activeandroid:activeandroid:3.0' or compile 'com.activeandroid:activeandroid:3.+' does not really work in gradle Sep 24 16:28:05 People here are quite supportive towards pastebin Sep 24 16:28:13 we have shares in it Sep 24 16:28:18 beacuse ^ is unreadable Sep 24 16:28:22 lol Sep 24 16:28:26 Hehe Sep 24 16:28:38 lol Sep 24 16:28:44 is pastebin even public? Sep 24 16:28:45 sry. but this was not quite too big to paste bin this :P Sep 24 16:29:12 defuex, sry. but I'm not decyphering that :P Sep 24 16:29:19 I guess I am done with this app, enough optimizations. I can live happily with 0.5s lag. I don't even want to know how I got rid of 0.5s. To a new app!!! :P Sep 24 16:29:36 faster app dev ever. Sep 24 16:29:40 fastest Sep 24 16:29:43 oh come on mike. you can't decypher this? i know gradle isnt really java code but you know ;) Sep 24 16:29:45 Cookies to StingRay_ and MikeWallaceDev :D Sep 24 16:29:54 We're on the dark side Sep 24 16:29:59 you're welcome man Sep 24 16:30:23 so this notification thing is fucked. Other people had the same problem, no answers Sep 24 16:30:43 are talking about activeandroid? Sep 24 16:30:45 you* Sep 24 16:30:47 defuex, hastebin.com Sep 24 16:30:50 MikeWallaceDev makes sense that any intent action of power/close/stoppyness would cut something like that Sep 24 16:30:58 ok, ill just pastebin it ^^ Sep 24 16:31:02 except trapping the screen close broadcast and starting the vibe again Sep 24 16:31:21 which just sounds sloppy and yuck Sep 24 16:32:06 MikeWallaceDev well have a look at the class, cause you can probably override whatever it is that shuts it…oh wait… system service yeah Sep 24 16:32:09 Yeah, that's where I disagree StingRay_ , a button push I can understand, an intent, no. Sep 24 16:33:28 Power button push means I'm closing my phone, STFU. But for the Intent, my phone can be in the kitchen, and powering off because of time out. So I should still hear that notification Sep 24 16:33:55 anyway, that's philosophical... no point talking about htat Sep 24 16:33:58 or that Sep 24 16:34:00 true Sep 24 16:34:01 MikeWallaceDev if you really wanted you could track and listen for the various actions that cancel it, so you can create and start the ending bit :) Sep 24 16:34:19 but there should be another way Sep 24 16:34:24 exactly, that's what I meant by trapping the broadcast Sep 24 16:34:46 not sure you can abort broadcasts like that Sep 24 16:34:52 if thats what you mean by trap :) Sep 24 16:35:25 no no, not abort, just listen. And then do my vibrate again if I catch the broadcast Sep 24 16:35:31 no matter, I don't want to do that Sep 24 16:35:42 Hello guys Sep 24 16:35:46 yo Sep 24 16:35:49 yeah, that really does seem dirty :) but maybe it's the only way Sep 24 16:36:04 MikeWallaceDev I have an idea….have you tried… google ? Sep 24 16:36:16 What is this Google thing you speak of? Sep 24 16:36:25 I asked this question earlier here, but here I am after trying things on myself and am kinda desperate at the moment :D Sep 24 16:37:04 peska this is the hangout for the desperate …welcome…grab a chair Sep 24 16:37:26 Wait FragmentPagerAdapter already caches the fragments? Sep 24 16:37:42 StingRay_, yeah, I found some stuff (like the BroadcastReceiver idea) but it's tough to search for. "Notification" and "Lock Screen" are user concepts, so I get links to apps, and user blogs... :-/ Sep 24 16:38:21 peska, each chair comes with a free noose. We're _really_ desperate. Sep 24 16:38:28 http://pastebin.com/NMHQUpJV someone knows how to solve this issue with activeandroid? Sep 24 16:38:48 So basically I have two apps, in on I have a normal layout in xml. The second app instantiates a class and then programmatically assigns it as the content view. I have difficulty integrating this class into the layout of the first app Sep 24 16:39:05 defuex, what's the issue? Sep 24 16:39:08 defuex, so what doesn't work? Sep 24 16:39:17 the issue is that it won't compile Sep 24 16:39:27 defuex, what's the error message? Sep 24 16:39:30 because version infos doesnt seem to be right Sep 24 16:39:44 btw I am an android newbie Sep 24 16:39:44 Error:Failed to find: com.activeandroid:activeandroid:3.0 Sep 24 16:39:47 defuex you have enabled the repo Sep 24 16:39:47 defuex, nah, version seems to be fine. You can put just + in there too Sep 24 16:39:56 StingRay_: Thanks Sep 24 16:40:19 it's my first time working with statelist drawables. I need 3 buttons, depending on which one you click a viewpager displays a view. would state_activated be the most suitable for that? and does this work without extra code? Sep 24 16:40:27 defuex, have you put the repository url in build.gradle as well? Sep 24 16:40:32 defuex as in maven is enabled right ? Sep 24 16:40:48 StingRay_, I didn't find that lib in maven just now Sep 24 16:41:11 im using gradel and im using mavenCentral()...every library works except this one Sep 24 16:41:16 this is how the layout is created in the second app: mPreview = new Preview(this); setContentView(mPreview); Sep 24 16:41:36 defuex, if the library is not in mvn central then gradle can't find it of course Sep 24 16:41:44 could it have been removed ? Sep 24 16:42:09 defuex, http://search.maven.org/ look up the exact library you need Sep 24 16:42:24 peska, your problem seems too weird, and we don't have enough information to really help you Sep 24 16:42:30 So my specific question is, How can i assign this view into the RelativeLayout of the first app? Sep 24 16:42:34 i don't know. the author "Michael Pardo" doesnt mention if it isnt in mavenCentral anymore Sep 24 16:42:54 So.. question.. if I obfuscate my code using proguard… what abotu the error reports? wil the be pbfuscated as well? Sep 24 16:42:57 What's the best way to keep logs out of production apps? I heard that I can use Log.D() but I think its still visible in production according to some crash reports. Sep 24 16:43:09 peska by someVIew.addView(new Preview(this)) Sep 24 16:43:09 I think my keyboard is missing some letters.. Sep 24 16:43:33 MikeWallaceDev: Sorry, I won't blame you. I'm going crazy have surviving on 3 hours sleep for days now :D Sep 24 16:43:42 peska but you may need to do a few tutorials, you seem to be missing a bit of understanding Sep 24 16:44:11 yeah peska you seem to be mixing up class and view Sep 24 16:44:28 also, I don't feel blame for your code :D :P Sep 24 16:45:50 defuex, https://github.com/pardom/ActiveAndroid/issues/180 as you can see, it's not only not on maven, it's not on any repo Sep 24 16:46:37 wow... Sep 24 16:47:43 defuex, there are gradle plugins to use github as a repository Sep 24 16:48:18 activeAndroid looks dope Sep 24 16:48:26 defuex, I feel good today so I'll save you some time. Gimme a few minutes Sep 24 16:49:04 Afzal, seriously, today is a good day to be a noob in here, we're all feeling generous :D Sep 24 16:49:52 haha Sep 24 16:50:01 StingRay_: So i created a new view: SurfaceView surface ... Sep 24 16:50:26 since preview is a subclass of SurfaceView Sep 24 16:51:13 I can't seem to use ur solution in this case: surface.addView(new Preview(this)) Sep 24 16:51:43 wait…what ? Sep 24 16:51:56 you want to add a surface to a surfaceView ? Sep 24 16:52:53 do StateListDrawables manage their state on their own or do I need to write the code for that? Sep 24 16:52:58 peska seriously…this is the situation, your talking to a professional VFX artist who can see that you need to learn quite a bit before understanding what it is your doing…the problems come from the fact I can see that…and that you are missing vital understanding about the task you are attempting…this kinda results in you asking very strange questions and probably adding to your frustration …. sooo… not Sep 24 16:52:58 sure what to suggest Sep 24 16:54:24 peska a 1 liner would be… surfaceVIew != viewGroup viewGroup.addView(anyView) works, setContet takes views or viewGroups, adding a surface to a surface is not good Sep 24 16:54:56 StingRay_: I will be back shortly, sorry. Thanks for the reply Sep 24 16:55:10 but besides 1 on 1 tutorials not sure you will get anywhere quick… and I really would and do want to help if I could Sep 24 16:58:58 alright defuex, add this repo (https://github.com/AfzalivE/my-mvn-repo) as instructed in the readme Sep 24 16:59:11 and add the compile like as you tried earlier, it should work Sep 24 17:10:37 What's the best way to keep logs out of production apps? Sep 24 17:11:30 make your own logger class that wraps Sep 24 17:11:33 log Sep 24 17:12:03 if you use maven you can configure to flip the boolean flag (isLogging) Sep 24 17:12:08 in release mode Sep 24 17:29:36 maven? Sep 24 17:29:44 You can do that directly in Gradle. Sep 24 17:30:37 wait, DEBUG? You can do that directly in the code Sep 24 17:30:50 (I thought you were talking about paid) Sep 24 17:30:59 if Config.DEBUG Sep 24 17:31:13 BuildConfig Sep 24 17:31:47 Use your own version of the Log class that just checks for BuildConfig.DEBUG Sep 24 17:31:54 ah Sep 24 17:32:05 cool Sep 24 17:32:15 for paid, you can add something like this in Gradle buildConfigField "boolean", "FREE_VERSION", "true" Sep 24 18:03:24 MikeWallaceDev: ? Sep 24 18:03:45 wait up. Sep 24 18:03:59 so in my logger, i have now private static final boolean isLogging = BuildConfig.DEBUG; Sep 24 18:04:12 Hey JakeWharton, does square have it's code styles / standards hosted somewhere? Sep 24 18:04:18 Iasserix, why? Sep 24 18:04:19 this will flip depending on if i am doing release or not, but how does that change if paid or not? Sep 24 18:04:29 pieces029: https://github.com/square/java-code-styles Sep 24 18:04:31 tricknology: well i don't want to manually have to set the flag Sep 24 18:04:36 lasserix, yes it will Sep 24 18:04:36 JakeWharton: ty Sep 24 18:04:37 ooh.. Sep 24 18:04:48 since my coworker forgets each time to set it before he deploys release ;p Sep 24 18:04:50 I use BuildConfig.DEBUG Sep 24 18:05:00 oh Sep 24 18:05:03 pieces029: i'm working on publishing it as a style guide rather than just an IntelliJ code style setting Sep 24 18:05:03 i see your point Sep 24 18:05:13 yeah i just didn't want to refactor the rest of it Sep 24 18:05:14 BuildConfig gets built automatically, and it switches .DEBUG true and false whether you are building a debug version or signing a released app Sep 24 18:05:41 release app and none of your debug messages will show up when that gets checked Sep 24 18:05:46 JakeWharton, awesome, that's more what I was hoping for, but this is good enough for what I need now. Thanks again. Sep 24 18:05:52 lasserix: intellij would refactor that for you in two seconds Sep 24 18:05:58 so in your logger clas maybe reference BuildConfig.DEBUG instead Sep 24 18:06:33 I’ve been meaning to get into IntelliJ, JakeWharton Sep 24 18:06:36 sry, bold Sep 24 18:06:37 JakeWharton: i have a bunch of different uses of it, i'd rather have one isLogging than a dozen BuildConfig.DEBUG floating around Sep 24 18:06:43 is it all that it’s cracked up to? Sep 24 18:06:47 yeah Sep 24 18:06:53 Just have one logger class then Sep 24 18:06:54 tricknology: am i not? Sep 24 18:06:57 i do Sep 24 18:07:02 Logger.log("whatever) Sep 24 18:07:06 in that then check BuildConfig.DEBUG Sep 24 18:07:06 it has many methods, for handling exceptions etc Sep 24 18:07:08 yeah Sep 24 18:07:09 i do Sep 24 18:07:22 pr just make a method in there.. checkDebug() Sep 24 18:07:40 that returns BuildConfig.DEBUG Sep 24 18:07:41 you are overcomplicating it i think Sep 24 18:07:45 I guess lol Sep 24 18:07:53 I just have an if statement that checks Sep 24 18:08:00 http://pastebin.com/cWT4kS0k Sep 24 18:08:04 i get logs in the debug build and none in the release build Sep 24 18:08:07 tell me is this simple enough? i think so Sep 24 18:08:11 am i doing something incorrect? Sep 24 18:08:20 no that’s fine Sep 24 18:08:21 lol Sep 24 18:08:33 that’s exactly waht you need Sep 24 18:08:38 yeah hehe Sep 24 18:09:01 sry, there was a disconect between what I imagined and what was actually in your code Sep 24 18:09:15 JakeWharton: are you publishing a code style guide for android in intellij? Sep 24 18:09:28 lasserix: i linked it above Sep 24 18:09:49 Oh i mean, are you publishing more than a script? Sep 24 18:09:58 yeah it'll be a web document Sep 24 18:10:25 cool Sep 24 18:10:32 Thanks Sep 24 18:13:30 Hi all :) Sep 24 18:15:48 is there a lib that can help me bring material design to a AppCompat app? Sep 24 18:17:17 what an awesome geeky porn name Sep 24 18:18:05 (no offense intended :) Sep 24 18:19:07 Maybe it's a stupid question, but is it possible to make something like an event binded to system that detects when a button is pressed and then do something? Sep 24 18:19:32 I know how to make it into a standard app, but I don't know if this can be extended to system listener Sep 24 18:24:40 anybody ever applied an "upgrade path" test in CI? Sep 24 18:24:59 or implemented rather Sep 24 18:25:34 I find myself doing this thing before every release where I uninstall the app, install the previous version then upgrade to see if everything works as expected Sep 24 18:30:06 hmm, i have a 1x1 transparent png on my filesystem, and when i load it into an image using our favorite ubiquitous image loading lib, it shows up as black, is there something obvious i’m missing? Sep 24 18:30:14 into an imageview* Sep 24 18:33:43 sorry, I was busy with a gorgeous girl... Sep 24 18:33:53 who wanted the BuildConfig stuff again? Sep 24 18:33:56 http://pastebin.com/J150bdi5 Sep 24 18:38:56 has anyone ever tried to load a 1x1 transparent gif into an imageview using picasso and seen a black square instead of transparent? Sep 24 18:39:05 Alex36: yes it exists already View.OnClickListener Sep 24 18:40:37 MikeWallaceDev: did you just post your private keys Sep 24 18:40:38 :O Sep 24 18:40:38 lasserix, I think that pastebin was for you Sep 24 18:40:45 ah thanks i see Sep 24 18:40:52 ah. Yes. Sep 24 18:41:48 fuck, how do I delete that?? Sep 24 18:42:13 although the only people who will see them are you guys, and you've probably already copied them. Fuckers. Sep 24 18:42:14 :D Sep 24 18:42:16 lasserix, thanks for the reply :) Maybe there is a better way to do, let me explain better my question. In fact i was thinking to launch an app when i push an hardware button, maybe there is another way to do this? Thanks in advance Sep 24 18:42:18 totally kidding Sep 24 18:42:41 Alex36: you can't really do that, the closest you can come is having a service that listens for hardware button clicks Sep 24 18:42:49 unless the device is rooted, i believe Sep 24 18:43:00 MikeWallaceDev: suuuurreeee ;p Sep 24 18:43:03 MikeWallaceDev: we use this to avoid that: http://pastebin.com/edyP9ELY Sep 24 18:43:20 load passwords from another file (thats not version controlled) Sep 24 18:43:22 Yes, exactly what I was thinking :D thank for the reply Sep 24 18:43:46 i think there are some debug msgs in there that should be removed actually though Sep 24 18:43:47 Alex36: so there are physical buttons (camera, volume) then there are the "physical" menu buttons (home, back, search) Sep 24 18:44:01 you can kinda listen for the physical "menu" buttons Sep 24 18:44:23 Ok :) thank you Sep 24 18:46:04 yeah, I know about the external keys. I work alone and never thought that I would be stupid enough to post my keys. Did I mention that I'm chatting with a gorgeous 27 y/o woman??? Sep 24 18:46:49 <-- distracted. (Like "post your private keys" distracted) Sep 24 18:47:06 i don’t get why you’re talking about that in irc Sep 24 18:47:16 MikeWallaceDev i just downloaded your app and was so confused because i had no clue what it did Sep 24 18:47:29 until i read the description Sep 24 18:47:39 JacobTabak, the nature of the app means that I can't do much about that Sep 24 18:47:42 quick lets do that thing were we hax0or his app Sep 24 18:47:48 talking about private keys, how do you implement a server side auth to avoid storing your secret in your apk, any recommendation Sep 24 18:47:58 MikeWallaceDev: i’d recommend putting a tutorial the first time you open the app Sep 24 18:48:01 but yeah, reading the description of an app helps ;) Sep 24 18:48:14 weird when you download it and all you see is settings Sep 24 18:48:16 the problem is the first time you open the app... Sep 24 18:48:33 but its a pretty good idea Sep 24 18:49:15 Yeah, I could put a tutorial when you open the settings the first time.... Sep 24 18:49:16 I'm back. I hope my question make sense this time. Sep 24 18:49:46 I have a class which extends ServiceView, how can i add it inside RelativeLayout Sep 24 18:49:57 RelativeLayout of an activity Sep 24 18:50:08 MikeWallaceDev: how do I use this app? Sep 24 18:50:11 surfaceview? Sep 24 18:50:24 JacobTabak, Yes, sorry. Sep 24 18:50:34 use a TextureView Sep 24 18:50:36 MikeWallaceDev: all i can do is goto settings page? Sep 24 18:50:41 man i feel stupid Sep 24 18:50:42 I don't get it? I post the link to the app, nobody looks. Then out of nowhere, you look... weird. Sep 24 18:50:49 i think i will update your apk for you since this makes no sense Sep 24 18:51:00 well we’re considering whether its worth stealing your app since we have your keys now Sep 24 18:51:05 hehe Sep 24 18:51:30 You can. Still don't have the knowledge to actually make it though ;) Sep 24 18:51:49 so guise help me with my transparent gif problem Sep 24 18:51:53 its showing up as all black pixels Sep 24 18:52:01 MikeWallaceDev: let alone use it, seriousily, how do I use this app? Sep 24 18:52:11 lasserix share with it :P Sep 24 18:52:16 do you even read? Sep 24 18:52:21 but set your pin first! Sep 24 18:52:40 JacobTabak, You mean a TextureView is need to envelope ths SurfaceView? BTW other views like buttons and textview will also be added to the layout Sep 24 18:52:45 we just like to make fun of old guys chatting with gorgeous 27 yr old girls Sep 24 18:52:56 It's an extension to other apps. Open your favorite media viewer, than you share to Focus Sep 24 18:52:59 ahh Sep 24 18:53:02 cool idea Sep 24 18:53:23 Thank you, I like it. Works very well. Sep 24 18:53:28 i like how you put the banner add where the quit button would be Sep 24 18:53:34 that's like the most annoying thing ever Sep 24 18:53:36 The default password is 7 :) Sep 24 18:53:37 ;p Sep 24 18:53:48 you should add Sep 24 18:53:50 quit button?? Sep 24 18:54:03 peska: wrap it in a framelayout Sep 24 18:54:05 Yeah i went to share, then it went into full screen Sep 24 18:54:06 There's no quit button in Android Sep 24 18:54:10 peska: ignore my textureview comment Sep 24 18:54:12 and the ad blocked the back/home button Sep 24 18:54:15 yes there is it's the back button Sep 24 18:54:31 no, that's the back button :) Sep 24 18:54:34 anywyas you should add to the Please return the device to the owner immediatly dialog or else this phone will self destruct in 10 9 8 Sep 24 18:54:42 wait, the ad was over the navigation?? Sep 24 18:54:44 and add a tutorial! Sep 24 18:54:46 MikeWallaceDev: which is equivalent to quit since it functionaly makes the app quit Sep 24 18:54:51 MikeWallaceDev: yeah Sep 24 18:54:52 JacobTabak, So SurfaceView+buttons+textview inside a Framelayout Sep 24 18:54:53 MikeWallaceDev: yes because it goes to fullscreen Sep 24 18:54:58 I will give it a go Sep 24 18:54:59 lasserix, you can do that in the paid version :) Sep 24 18:54:59 thanks Sep 24 18:55:01 peska: just wrap your surfaceview in a framelayout Sep 24 18:55:25 Also you should update your pin entry keyboard, it is fugly Sep 24 18:55:31 ive found weird bugs if you have a surfaceview that’s not taking 100% of its containers size Sep 24 18:55:36 JacobTabak, ah, ok, not over the nav, but the nav is gone. Just click on the screen somewhere Sep 24 18:55:49 no its over the nav and the nav is gone Sep 24 18:55:55 the pin keyboard is whatever you use :D Sep 24 18:56:13 damn Sep 24 18:56:19 MikeWallaceDev: its funny how you dont let your friend see the other pics but you encourage them to open the browser by clicking on an ad Sep 24 18:56:21 n5 comes with fugly numeric keyboard Sep 24 18:56:26 hehehe Sep 24 18:56:36 hopefully they dont look at your history Sep 24 18:56:51 JacobTabak, when you do click on the ad, the app should close. Sep 24 18:56:53 JacobTabak: clicking on the ad just turns my phone off Sep 24 18:56:54 chat online with REAL LIVE 27 yr old girls Sep 24 18:57:03 who are gorgeous Sep 24 18:57:15 and who are named Tiffany! Sep 24 18:57:28 Crystal Sep 24 18:57:43 No, really, her name is Tiffany :D Sep 24 18:57:45 anythign related to jewelry Sep 24 18:57:45 awesome! Sep 24 18:57:49 haha Sep 24 18:57:54 oh, good one! Sep 24 18:58:13 Hi. Anyone have any pointers on best practises when you want to supply a background image to your app that supports various screen sizes and densities? Sep 24 18:58:20 Amber, Sapphire, Jade.. Sep 24 18:58:29 Tiffany Crystal a REAL LIVE GORGEOUS 27 year old who LOVES talking to old programmers! Sep 24 18:58:39 hahahaha Sep 24 18:58:45 there's an app for you righ thtere Sep 24 18:58:47 I know!!! Sep 24 18:58:47 (not old yet) Sep 24 18:58:48 fuck tom the talking cat Sep 24 18:58:56 Chamooze: supply several different sizes based on swXXXdp Sep 24 18:58:59 hwat? Sep 24 18:59:01 how about tiffany the gorgeous 27 year old Sep 24 18:59:08 But no, she's real... Met her on G+.. Sep 24 18:59:24 i met my wife on g+ Sep 24 18:59:29 sweet. Sep 24 18:59:32 u wot m8? Sep 24 18:59:35 i lie Sep 24 18:59:42 lol Sep 24 18:59:44 MikeWallaceDev: you should update your screenshots to be something that hints that the next photo is not something you'd want to share Sep 24 18:59:44 I don't :P Sep 24 18:59:59 lasserix, I don't understand? Sep 24 19:00:10 oh wait mike wallace Sep 24 19:00:11 i know you Sep 24 19:00:19 like shot one is your friend shot two is your friend about to be pantsed by another friend and shot three is him pansted, but blacked out / by your app Sep 24 19:01:00 you’re the guy with the horizontal selfie as your profile pic on g+ right? Sep 24 19:01:19 JacobTabak: But how do I know what size to make the actual image? I mean, a low pixel-count screen with low dpi can match the dp-count of a high pixel-count screen with higher dpi.. Sep 24 19:02:00 Chamooze: you can mix and match dpi+width in your resource qualifiers Sep 24 19:02:07 if you really want to get that specific Sep 24 19:02:25 JacobTabak, I'm laying on the bed if that's what you mean Sep 24 19:02:30 lol yea Sep 24 19:02:32 i saw that and i was like Sep 24 19:02:33 thats weird Sep 24 19:02:44 I'm weird. Sep 24 19:02:49 clearly! Sep 24 19:02:53 Can't you freaking tell??? Sep 24 19:03:03 did you model it after goya's nude? Sep 24 19:03:10 http://www.all-paintings.com/uploadfile/product/Nudes/Goya----A-Nude-Maja--La-Maja-Desnuda----0.jpg Sep 24 19:03:11 lasserix, I can't see how I can do that in a way that makes sense... Sep 24 19:03:19 No, he modeled after me Sep 24 19:04:58 you guys are gonna get me fired lol Sep 24 19:05:54 seriously, obviously she has my hair. Blatant plagiarism Sep 24 19:06:48 lol, the word nude is in the url Sep 24 19:06:50 and you clicked on it :O Sep 24 19:07:28 when nude is preceeded or followed by the words "painting" it's okay Sep 24 19:07:56 I love painting in the nude! My neighbors hate it Sep 24 19:12:20 Can I use same Maps API key for any aplication or each aplication should has uniqe key? Sep 24 19:13:07 one key per app Sep 24 19:13:13 one key per app signature Sep 24 19:17:30 MikeWallaceDev: thanks Sep 24 19:18:15 np Sep 24 19:18:46 If you want to see how to implement it I can post more manifests with more private keys... It's all a public service. Sep 24 19:19:16 yes Sep 24 19:20:15 actually im having trouble setting my bank and cred card numbers to my developer account, think you can post a few "examples" on that? Sep 24 19:20:22 *credit Sep 24 19:21:01 Hey! Did you know that if you post your passwords in IRC it shows up as stars?? Look : ******* Sep 24 19:21:03 im sure jennifer wouldnt mind :) Sep 24 19:21:39 what if your passwords are stars? Sep 24 19:23:06 how can I show same Chronometer on different fragments Sep 24 19:23:29 MikeWallaceDev: but to you it looks like just the word. It's stars to everyone else Sep 24 19:23:43 ircmaxell, yes! It's amazing Sep 24 19:23:54 See: *************** Sep 24 19:24:06 I only see starts Sep 24 19:24:09 stars Sep 24 19:24:48 :-) Sep 24 19:29:06 why I get this error http://paste.ubuntu.com/8420292/ . I searched with google and found that this is som problem with API key but I creat new key Sep 24 19:29:58 Is there an easy way to mock ANDROID_ID? (http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID) Sep 24 19:30:00 sounds like you're missing a library Sep 24 19:30:13 ? Sep 24 19:30:34 slani, well, it can't find a class, something is missing, I don't think it's your key Sep 24 19:33:12 f2prateek: you could create a wrapper and mock that Sep 24 19:34:20 unnecessary overhead in real code though, no? Sep 24 19:34:45 unnecessary? depends on how bad you want to mock it Sep 24 19:35:04 i would do it. Sep 24 19:35:06 ravilov, 1, f2prateek 0 Sep 24 19:36:13 guys, please help me Sep 24 19:36:14 http://upload.wikimedia.org/wikipedia/commons/c/ce/Transparent.gif Sep 24 19:36:20 loading this into an imageview using picasso = black square Sep 24 19:36:37 it doesn't load gifs Sep 24 19:36:51 really? Sep 24 19:36:55 thats not true Sep 24 19:37:00 it doesn’t animate them but it loads them Sep 24 19:37:29 ah right Sep 24 19:37:41 and i know it can load transparent pngs Sep 24 19:37:50 my guess is, black is your view/layout background Sep 24 19:37:55 it has to show *something* Sep 24 19:38:12 it’s not my view or layout background :\ Sep 24 19:38:18 I found that UIL works better... I don't know if it's too late for you to try it? Sep 24 19:38:22 http://cl.ly/image/2o2a2j0J1n0o Sep 24 19:39:17 i’m a big fan of picasso’s extensibility and fluent api Sep 24 19:39:24 and i am pretty familiar with most of the source Sep 24 19:39:33 just wondering if this is an issue anyone has experienced Sep 24 19:39:33 then that's that answer :) Sep 24 19:39:35 MikeWallaceDev: define "works better" Sep 24 19:40:03 hahaha, purposely didn't say your name Jake, didn't want to offend you Sep 24 19:40:20 JakeWharton: sorry to hijack you while you’re feeding the trolls, but do you have experience with a 1x1 transparent gif like this: http://cl.ly/image/2o2a2j0J1n0o showing up as a black square? Sep 24 19:40:21 I'm offended by unsubstantiated claims Sep 24 19:40:31 JakeWharton sees all and knows all Sep 24 19:40:35 nothing escapes Sep 24 19:41:06 JacobTabak: no, does BitmapFactory support transparency in GIFs? Sep 24 19:41:07 The project that I'm working on (Focus) must display images coming from all over, and Picasso wasn't able to get them Sep 24 19:41:35 JakeWharton: that might be a nod in the right direction, thanks Sep 24 19:41:54 * ravilov is pretty sure JakeWharton has the names of all his projects set as IRC highligts :) Sep 24 19:41:56 MikeWallaceDev: What do you mean by "all over"? I've had to make different picasso instances with logged in accounts and whatnot to be able to handle "all over things" Sep 24 19:42:09 I'm sorry that I can't be of better help Jake, I didn't know I would eventually be in an IRC room with you, I would have paid more attention Sep 24 19:42:27 we can't fix what we don't know is happening. let us know next time! Sep 24 19:42:42 exactly, sorry mate :-/ Sep 24 19:42:44 i'm trying to develop an app that would utilize a membership community of users who use and interact with the app. are there any simple tutorials that layout concepts and things to keep in mind while developing it? Sep 24 19:43:36 hmm maybe it’s a 4.4 issue https://code.google.com/p/android/issues/detail?id=62016 Sep 24 19:45:07 weird, they said it gets replaced with white, not black Sep 24 19:45:16 yea Sep 24 19:45:18 im gonna try it on a 4.1 Sep 24 19:46:39 works fine on 4.1 Sep 24 19:46:40 sigh... Sep 24 19:47:45 so they managed to break a fundamental functionality in what's suppose to be a pretty mature release of the platform Sep 24 19:47:46 JakeWharton: in case this is relevant to you - it seems to be related to this issue and works fine on 4.1 https://code.google.com/p/android/issues/detail?id=62016 Sep 24 19:48:04 JacobTabak, try Ion since it has a custom gif decoder Sep 24 19:48:28 interesting Sep 24 19:48:35 that just seems like unnecessary bloat, the system is supposed to handle that Sep 24 19:48:41 agreed Sep 24 19:48:52 sadly, we'll probably add it for animated gifs Sep 24 19:48:52 java and bloat? no wai Sep 24 19:49:04 Ashiren: this has nothing to do with Java Sep 24 19:50:03 JakeWharton: animated gifs in picasso? Sep 24 19:50:18 yes Sep 24 19:50:29 that is really awesome Sep 24 19:50:36 oh I thought the answer is 42 Sep 24 19:50:36 maybe as a contrib module Sep 24 19:50:41 seems stupid to have it in the core library Sep 24 19:50:52 waste a bunch of bytes for a feature 99.9% of people won't be using Sep 24 19:51:24 indeed Sep 24 19:53:03 k bye. time for plane. Sep 24 19:53:09 later Sep 24 19:57:03 MikeWallaceDev: but I import everything Sep 24 19:57:04 hi Sep 24 19:59:18 I have this xml in LinearLayout http://pastebin.com/sVB7ttCM Sep 24 19:59:46 It was originally RelativeLayout, now it's all messed up with some views even not disappeared Sep 24 20:00:33 I'm using the GUI in eclipse, but can't get to keep get a good grip. is it possible to loosen the views up so they can be moved freely? Sep 24 20:11:15 if crash happened in my app. how do I close an SQLite database if it was re-open before crash? Sep 24 20:14:57 im getting tired of my ADT bundle eclipse freezing in the middle of things so i was like 'lets check if thats a known problem and if there is a fix in irc' Sep 24 20:15:53 peska, not really, that's not how layouting in android works Sep 24 20:15:59 oh actually un-maximizing and re-maximizing revives it.. so its not really dead Sep 24 20:16:13 just some drawing problem i guess it becomes all grey Sep 24 20:16:24 FreshDumbledore, windows perhaps? Sep 24 20:16:43 no im on gentoo Sep 24 20:16:53 ravilov, Yes, so changed the LinearLayout to RelativeLayout again, much more flexible Sep 24 20:17:24 gentoo? oh well... Sep 24 20:17:54 i had some hard times with gentoo. old times Sep 24 20:17:56 peska, hm ok, I guess relative could do it. I was about to say such flexibility depends exclusively on your chosen viewgroup. still, I don't know how good of an idea it is to move stuff freely like that when designing your UI Sep 24 20:17:57 gentoo, ha ! FreshDumbledore your machine is a special snowflake unlike any other Sep 24 20:18:19 * ravilov has never had eclipse freeze like that, ubuntu of course Sep 24 20:18:22 or mint rather Sep 24 20:18:52 well. gentoo is not much different to debian or any other os. just that you can feel leet while random gcc output scrolls over your terminal instead of watching apt-get install Sep 24 20:19:00 ;) Sep 24 20:19:27 * ravilov doesn't really feel any more or less leet by watching gcc do its stuff Sep 24 20:19:36 doesn't do it for me I guess :p Sep 24 20:19:45 theres a nice page making fun of gentoo users Sep 24 20:19:57 i love gentoo jokes.. => http://fun.irq.dk/funroll-loops.org/ Sep 24 20:20:01 you mean gcc for everything so the wrong flag +compiling will start the fun Sep 24 20:20:25 yeah its like spending a few weeks hyperoptimizing your kernel so your boot time reduces by 0.005 ms Sep 24 20:20:38 not true Sep 24 20:20:43 sometimes it gets slower :p Sep 24 20:20:47 :D Sep 24 20:21:34 if i want to reference preferences by id (switching with case) do i have to assign this id in the xml? Sep 24 20:21:40 or is 0 the first item in the xml? Sep 24 20:21:55 um Sep 24 20:22:08 you don't normally reference preferences with ids or indexes Sep 24 20:22:12 rather with keys Sep 24 20:22:16 which are strings Sep 24 20:22:25 true my question is wrong Sep 24 20:22:34 i want to ask => if i switch on item selection in a preferences screen.. Sep 24 20:22:59 like this public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { Sep 24 20:23:19 do i have to assign this item ids like android:id=.. or is it ordered by order in the xml? Sep 24 20:23:31 i remember with i was young and said, lets make this linux run faster! then i remembered that i just needed a faster laptop for games, only 2 games would run on linux, and gentoo had the worst behaviour with propietary drivers Sep 24 20:23:37 yes I'd say you have to assign ids in xml, also 0 is an invalid id and won't ever show up anywhere Sep 24 20:23:51 i'm trying to develop an app that would utilize a membership community of users who use and interact with the app. are there any simple tutorials that layout concepts and things to keep in mind while developing it? Sep 24 20:24:09 MartialLaw, sometimes the lack of responses is an answer too ;) Sep 24 20:24:38 Hey! Sep 24 20:24:53 I've a menu with an item that has app:showAsAction="always" Sep 24 20:25:04 a friend of mine used to love gentoo... but then it turned out he would only ever install the precompiled binaries Sep 24 20:25:08 but it's completely ignored.. Sep 24 20:25:09 killed the spirit of it Sep 24 20:25:17 the namespace is this: xmlns:app="http://schemas.android.com/apk/res-auto" Sep 24 20:25:19 any idea? Sep 24 20:25:19 ok i will assign ids and use case on the ids then Sep 24 20:25:23 i think p_l said gentoo is the basis of ChromeOS Sep 24 20:25:34 makes sense for a building a distribution Sep 24 20:25:43 for chromium os as well therefore Sep 24 20:25:43 i cant lie, i enjoyed wasting my time compiling all that desktop environment Sep 24 20:25:50 heh Sep 24 20:25:52 g00s, possibly, but I doubt you need to compile the whole chromeos upon installation :p Sep 24 20:25:53 its not that bad this days Sep 24 20:26:01 start the whole thing and 3 hours later its done xD Sep 24 20:26:09 with all drivers, xserver and your favorite DE Sep 24 20:26:24 FreshDumbledore, pretty sure you can't compile Xorg and LibreOffice all in 3 hours, not to mention all the other stuff Sep 24 20:26:27 i was using back in the days of Daniel Robbins; once he left things fell apart Sep 24 20:26:33 i like the unbloatyness gentoo offers (like others like slack or arch) Sep 24 20:26:47 i took at least 1-2 days for a full KDE to me Sep 24 20:26:47 no idea I suppose? Sep 24 20:26:58 Mattx, no, sorry Sep 24 20:27:12 it is kind of the same problem than this: http://stackoverflow.com/questions/17914017/android-4-3-menu-item-showasaction-always-ignored Sep 24 20:27:13 lol cliffreich good old singlecore days? :D Sep 24 20:27:18 but the solution doesn't work for me :| Sep 24 20:27:23 cliffreich, but after that it was just blazingly fast, right? just like... it would probably be anyway Sep 24 20:28:18 speed is just a sideeffect of gentoo, you can just hit 'genkernel all' and ignore optimizing Sep 24 20:28:41 way faster than ubuntu, oh how i hated slowubuntu Sep 24 20:28:51 but the weird errors and problems Sep 24 20:29:00 gotta love those, right? Sep 24 20:29:09 no problems or errors here (that i didnt solve :D) Sep 24 20:29:29 had to recompile my kernel a few times for custom stuff i wanted to add later on Sep 24 20:29:42 like some log modules for iptables and other non-standard things Sep 24 20:29:55 everyday use is very comfy Sep 24 20:29:58 so my (somewhat average) laptop boots ubuntu/mint (end of bios post to desktop) in about 10 seconds, how's y'all's gentoo doing on that? ;) Sep 24 20:30:13 or do I better not ask? :p Sep 24 20:30:15 thats really not the point Sep 24 20:30:26 if i plug in a ssd instead of my harddriver i can prob beat that Sep 24 20:30:27 ;) Sep 24 20:30:33 no you can't Sep 24 20:30:34 i then needed propietary drivers and laptop ACPI would fail super weird. old times Sep 24 20:30:42 because this *is* on SSD ;) Sep 24 20:30:45 so opensource wasnt an option Sep 24 20:30:46 heh Sep 24 20:30:54 im on nvidia proprietary Sep 24 20:30:57 no problems :D Sep 24 20:31:10 ybe ill reinstall someday again Sep 24 20:31:22 cliffreich, your gentoo ate some of your keys :p Sep 24 20:31:22 anyone have any info on building .spks with a script? signing them and all.. Sep 24 20:31:53 i even did run gentoo on my netbook once Sep 24 20:31:54 rofl Sep 24 20:32:04 that took some time compiling :P Sep 24 20:32:25 I should totally try installing/compiling gentoo on my 1st-gen eeepc Sep 24 20:32:35 :D Sep 24 20:32:36 single core celeron @ 650 MHz, 2 GB RAM Sep 24 20:32:51 can be done quickly.. rofl Sep 24 20:33:01 just use vesa driver and a tiling wm Sep 24 20:33:02 :P Sep 24 20:33:10 oh and 4GB of SSD Sep 24 20:33:34 but if you use one of this linuxes that actually force you to install everything manually.. its like building your own car instead of buying one Sep 24 20:33:50 you make all the choices and you know exactly whats in it and whats not Sep 24 20:33:59 Mattx, did you go through all the answers on that SO link and try them? Sep 24 20:34:31 FreshDumbledore, sometimes (in fact most times) that's more control and freedom than I'd care for :p Sep 24 20:34:49 I have no desire to ever build my own car, so.... Sep 24 20:35:12 well. i learned a lot Sep 24 20:35:18 i can write iptable rules blindfolded now :P Sep 24 20:35:23 yep, ravilov Sep 24 20:35:27 I did too - I used to run slackware :p Sep 24 20:35:35 yeh i was on salix before gentoo Sep 24 20:35:37 (back in '96 or so) Sep 24 20:35:40 its slack for the lazy Sep 24 20:35:41 :D Sep 24 20:36:01 Mattx, then no idea, actionbars are a 4.0+ thing, which means it's not my thing ;) Sep 24 20:36:02 ravilov, it's weird because I have another app that has exactly the same as in this current project Sep 24 20:36:11 and it works in that app Sep 24 20:36:25 there must be something else wrong that I still coundl't figure out Sep 24 20:36:37 probably Sep 24 20:37:14 i wont need an android:key if i reference a textpreference by id will i? Sep 24 20:37:18 Mattx, do you have an icon / and-or condensed title set_ Sep 24 20:37:34 it's possible Android decided your title is too long to fit in actionbar Sep 24 20:37:46 I do have an icon. not sure about a "condensed title set" Sep 24 20:38:01 FreshDumbledore, sorry but I really don't understand your referencing preferences by ids Sep 24 20:38:36 i just fail clearifying what i want to ask. i mean: if i reference the menu-item by id in the selection event Sep 24 20:39:04 not the preference itself (its just in my preferences menu thats why i keep confusing my words :D) Sep 24 20:39:08 the title is less than 20 chars in length, it's a 7' tablet so it shouldn't be a problem Mavrik.. Sep 24 20:39:46 dude, why do you keep calling menu items preferences?! Sep 24 20:39:57 stop that! Sep 24 20:40:11 a 7 foot tablet?! wow Sep 24 20:40:12 :p Sep 24 20:40:13 because its my preferences menu *cries* :-( sry Sep 24 20:40:39 so if i access this menu items by their id there is no need for the android:key? Sep 24 20:40:42 that would be a table not a tablet :P Sep 24 20:40:55 there is a 20" tablet Sep 24 20:40:57 i think acer made it Sep 24 20:41:21 android:key in preferences is there so you could find it and/or so it can be saved in sharedprefs Sep 24 20:41:31 if you don't need either of those, then you don't need the key Sep 24 20:42:08 ravilov: im working on my onOptionsItemSelected function where i want to save specific sharedPreferences depending on which item gets selected Sep 24 20:42:12 am i doing it totally wrong? :-D Sep 24 20:42:24 so i wanted to check which menu item was selected there Sep 24 20:42:29 and then save a sharedpreference Sep 24 20:42:41 dunno, probably not doing it wrong Sep 24 20:42:52 android:key is there so the pref can be saved automatically Sep 24 20:43:03 makes no difference if you're saving them manually anyway Sep 24 20:43:15 so if it has an android:key it will automatically save the text (for example) if the user changed this text? Sep 24 20:43:23 oh except the key is for loading them later too Sep 24 20:43:35 yes, if you also have android:persistent="true" Sep 24 20:43:36 How do I get the nbr of raw pixels per inch of the device? Sep 24 20:43:59 troned, tried googling already? seems like a fairly common question Sep 24 20:44:03 ravilov: where? the persistent. in the PreferenceScreen xml? Sep 24 20:44:20 yes Sep 24 20:44:26 at top once or for each item in it? Sep 24 20:44:33 for every single item ;) Sep 24 20:47:42 testing that now (: Sep 24 20:48:59 hey guys. Is there an easy way to convert a string like "10am on monday" into a date object for android? Sep 24 20:49:44 float mXDpi; Sep 24 20:49:45 float mYDpi; Sep 24 20:49:45 DisplayMetrics metrics = new DisplayMetrics(); Sep 24 20:49:45 getWindowManager().getDefaultDisplay().getMetrics(metrics); Sep 24 20:49:45 mXDpi = metrics.xdpi; // The exact physical pixels per inch of the screen in the X dimension. Sep 24 20:49:46 mYDpi = metrics.ydpi; Sep 24 20:49:48 float mMetersToPixelsX = mXDpi / 0.0254f; // 1 inch == 0.0254 metre Sep 24 20:49:50 float mMetersToPixelsY = mYDpi / 0.0254f; Sep 24 20:49:52 oops Sep 24 20:49:53 troned: Stop. Sep 24 20:49:55 Lol Sep 24 20:49:57 Wrong window? Sep 24 20:49:58 how can xdpi and ydpi not be the same? Sep 24 20:50:03 sorry Sep 24 20:50:11 didnt realize it was that much Sep 24 20:50:20 Why should they be the same? You set them to two different variables. Sep 24 20:50:32 unless your screen is perfectly square Sep 24 20:50:47 troned, why would they ever be the same? do you have a square screen? Sep 24 20:51:51 your "device DPI" is actually an average of x and y which is then in most cases clamped into specific ranges Sep 24 20:52:19 troned: it doesn't really matter, best bet is to define an abstract viewport that is square, then just pick what parts should be clipped or fit it inside along the smaller edge of the device Sep 24 20:52:50 godzirra, to answer your question - no, not that I know of Sep 24 20:53:05 "10am on monday" is way too abstract and requires too much context Sep 24 20:53:21 ravilov: works great Sep 24 20:53:26 FreshDumbledore, awesome Sep 24 20:53:57 ravilov: Yeah. I know you can send google a text and they'll create a meeting for oyu based on that. I was hoping there was a library I could use. Sep 24 20:54:10 godzirra, this monday? last monday? next monday? this could probably be deduced from the context (eg. if you're creating an appointment or a reminder, then you probably mean next monday), but there is no generic way to know that Sep 24 20:54:42 yeah. I can create the rules for that. But what if it's 10am on Monday the 15th, etc etc etc. There's so many rules. Sep 24 20:54:51 google just makes a lot of assumptions which work for their specific use case Sep 24 20:54:54 I'm really just trying to get android wear to allow me to create meetings from my device. Sep 24 20:55:01 Their specific use case is pretty much my specific use case. ;) Sep 24 20:55:08 I just didn't want to have to make all those rules on my own Sep 24 20:55:30 then I guess you'll have to figure out how to do it through google :p Sep 24 20:55:36 i think the dots per inch should be the same, then of course the width is less inches than the length Sep 24 20:55:52 I know how to do it through google. I just would have to register a phone number first to send it via text which would be a pain. Sep 24 20:55:58 Oh well. Sep 24 20:56:02 ravilov: I appreciate the info. :) Sep 24 20:56:03 troned, that would then assume the pixels are perfect squares, which they almost never are Sep 24 20:56:13 fuck pixels Sep 24 20:56:24 indeed, I don't know why you bother with all this Sep 24 20:56:32 just kidding Sep 24 20:56:38 ravilov: It's convenient. But not convenient enough that I want to do that much work. Sep 24 20:56:38 well my game is coming along nicely Sep 24 20:57:23 I still don't know why you bother, actual DPI is only ever useful for the framework itself and for informational purposes (eg. for some sort of "device info" screen) Sep 24 20:57:34 normal apps shouldn't care about that Sep 24 20:59:48 ok, I found the problem! Sep 24 21:00:07 my MainActity extends SlidingFragmentActivity, since I'm using SlidingMenu Sep 24 21:00:29 but it needs to extend ActionBarActivity in order for showAsAction="..." to work Sep 24 21:00:38 how do you do to have both things? Sep 24 21:01:26 troned, vast majority of devices have DPI the same across X and Y axes Sep 24 21:01:26 ravilov, yes im writing my own game engine Sep 24 21:01:42 but there is some strange chinese stuff having strange screend Sep 24 21:01:45 *screens Sep 24 21:01:47 :) Sep 24 21:01:54 I need m/s->pixels/ms Sep 24 21:02:20 huh really? so that means vast majority of devices *do* have perfectly square pixels? Sep 24 21:06:16 define "perfectly" :P Sep 24 21:06:44 they have square-ish grid to avoid picture distrortion even though usually the lighting units aren't really square themselves Sep 24 21:06:57 neat comparison here: http://www.anandtech.com/show/7517/google-nexus-5-review/5 Sep 24 21:07:14 (see the pentile monstrosity on SGS3 and others :P ) Sep 24 21:10:29 damnit humblebundle, quit having such a good business model Sep 24 21:10:33 I keep buying games and I never play them Sep 24 21:11:00 hmm, I need a new tablet for surgeon simulator Sep 24 21:11:33 spend 30 minutes on java... this place is so nice compared too :) Sep 24 21:12:36 how do you guys run something in the background? i’m moving away from androidannotations, need to get up to speed… do you use rx or thread pool? Sep 24 21:12:42 and dont say asynctask Sep 24 21:13:10 well I would like to tell you how I do it Sep 24 21:13:14 but you just told me not too Sep 24 21:13:53 I suppose you could do Schedulers.io().createWork().schedule() Sep 24 21:13:57 createWorker* Sep 24 21:14:40 Mavrik, oy, my device (that I like very much) has pentile display :p Sep 24 21:15:33 pfn, I bought the first bundle looooong time ago, the games are pretty neat but I never finished any of them and don't really play them at all Sep 24 21:16:13 ravilov, I buy them all, to support the business model Sep 24 21:16:43 and then you also complain about it :p Sep 24 21:19:01 i need humblebundle company of heroes 2 Sep 24 21:19:08 whoa, SGS4 has a very weird pixel matrix Sep 24 21:20:23 how would i bring up my preferences menu out of a service.java ? if i use startActivity(new Intent(this, Settings.class)); i get a ton of errors asking me if i really want to do that and that i need to set some flag if i do Sep 24 21:20:49 hmm maybe im doing it in the wrong place anyways Sep 24 21:24:13 oh lovely, a bug in bash that is said to be as big as openssl's heartbleed http://blog.erratasec.com/2014/09/bash-bug-as-big-as-heartbleed.html Sep 24 21:29:32 anybody using promises in android? especially with http://loopj.com/android-async-http/ Sep 24 21:29:44 any promise library recommendations? Sep 24 21:31:06 OkHttp / Retrofit seem to have cleaner API than that Sep 24 21:31:21 otherwise, RxJava does that pretty well Sep 24 21:33:43 how to launch an app like it was the first time? so all persistent preferences are null? Sep 24 21:33:49 Anyway to pull and app icon into a PNG? using package manager Sep 24 21:33:54 can i reset the AVD? Sep 24 21:34:13 appInfo.icon = p.applicationInfo.loadIcon(getPackageManager()); Sep 24 21:34:32 How could I save that into a PNG? Sep 24 21:35:20 anyone here a java8 lambda expert Sep 24 21:35:25 okay will look at those thanks Sep 24 21:35:30 anyone know of a library that has some InputFilters already written for common things, you know like SSN and phones numbers and stuff Sep 24 21:38:15 oh yeah baby Sep 24 21:38:36 P3nnyw1se: here is my code to run a method in a thread pool thx to rxjava and retrolambda: Sep 24 21:38:39 Schedulers.io().createWorker().schedule(() -> write(dayResponse)); Sep 24 21:38:49 its pretty Sep 24 21:43:13 My SurfaceView class doesn't want to call a method in my MainActivity Sep 24 21:44:16 Since I have a call back defined in the SurfaceView, I would like to manipulate some data in the activity through it Sep 24 21:44:44 Is declaring the method static the only solution? or is there a workaround? Sep 24 21:45:14 mattblang: i don't know of any libs, but check out PhoneNumberFormattingTextWatcher for phone numbers Sep 24 21:45:40 niftynei nice Sep 24 21:48:34 for a really really really simple timed task, like a one second flag toggle. Is it okay to use Timer/TimerTask vs Handler? Sep 24 21:49:25 Because it seems like Handler needs a thread to call Looper.prepare() and a thread can call Looper.prepare only once, I don't exactly understand why this thread's constructor would be called again (which is where I'm calling Looper.prepare()) Sep 24 21:52:22 Afzal, print out the stack trace, so you can see where it got called from twice Sep 24 21:53:10 jab416171, hmm I'll see but I don't call Looper.prepare in my code anywhere else. Anyway, I'm trying HandlerThread since that already has a looper attached to it Sep 24 21:53:11 Thanks! Sep 24 21:58:53 The "wand" and "hand" and "overflow" button on the bottom of Google Now, is that an actionbar or something custom? Sep 24 21:59:39 woo, I fixed my app Sep 24 22:00:20 MikeWallaceDev Sep 24 22:00:23 http://matchhistory.na.leagueoflegends.com/en/#match-details/NA1/1555555323/39410839 Sep 24 22:00:26 booo, couldn't carry Sep 24 22:00:47 I had an extra permission, apparently. took that out and it worked Sep 24 22:01:01 oops Sep 24 22:01:08 frigging wrong channel Sep 24 22:21:27 third party software to performance test your android app ... any suggestions ? Sep 24 22:31:31 I've written code to serialize my object to a PrintStream, but I now realise that I could just use Java's Serializable thing. Is there any advantage to keeping my current code (and not switching)? Sep 24 22:37:50 I know that a print stream is not serializable TacticalJoke Sep 24 22:38:02 Yeah. Though I could switch away from PrintStream. Sep 24 22:38:06 so depending on what you’re trying to do with it.. yes Sep 24 22:38:24 you can put a serializaeable in a db Sep 24 22:38:27 send it via intent Sep 24 22:38:28 wahtever Sep 24 22:39:26 Is there an easy way to get rid of the USB permission pop up on android? Sep 24 22:40:05 where are they coming from? play store? Sep 24 22:40:17 As only i would be using it on my phone, can i like put it in whitelist Sep 24 22:41:22 See, I wrote loads of unit tests for my custom serialization code. I'm trying to find a way to justify it. lol Sep 24 22:41:32 I guess I wouldn't need any unit tests if I just used Serializable. Sep 24 22:41:34 awww :( Sep 24 22:51:47 lol Sep 24 22:57:54 hehehe Sep 24 22:58:12 i had a coworker spend a whole month doing something similar Sep 24 22:58:22 then i pointed to the serializble/parceable class... Sep 24 22:58:53 although it was fairly specialized, but still he could just pulled the grit out and saved a lot of time. Sep 24 22:59:03 but its fun to reinvent the wheel i guess! Sep 24 22:59:08 I guess it might be better to do a custom thing if there are fields we don't want to store. Sep 24 22:59:16 Then we have complete control over the storage. Sep 24 22:59:59 i have a library that provide a wrapper around a C library. imported java code using "android.library.reference" but i also want to import the c library (ie *.so). no success on google. Sep 24 23:00:33 * but unable to find a way to Sep 24 23:03:16 Guys is there a way I could make my activity wait till USB permissions are given? Sep 24 23:03:52 The reason I ask is that in my app I have a camera section, which blacks wait due to the permission pop-up Sep 24 23:04:04 out* Sep 24 23:04:21 It's proving to be a huge pain in the butt Sep 24 23:05:20 peska, afaik if app wait till permission (busy loop). ANR would be served to app Sep 24 23:05:22 I put Thread.sleep(5000) in the onCreate method of my activity, hoping it will not execute while I can get some time to give the usb permission Sep 24 23:05:43 but it hangs and then pop-up comes up -_- Sep 24 23:06:23 peska: sleep for 5 seconds on mainthread will cause an ANR Sep 24 23:07:20 register a broadcast receiver that listens for usb permission Sep 24 23:07:38 danijoo, it was a rudimentary work around Sep 24 23:07:49 hmm... Sep 24 23:08:04 peska, decroate the View till permission is not given and go further when permission is granted Sep 24 23:09:05 boradcast receiver should listen to some of those broadcast actions axplained here Sep 24 23:09:05 http://developer.android.com/reference/android/hardware/usb/UsbManager.html Sep 24 23:09:36 danijoo, kuldeepdhaka thanks, ill check it out and report back Sep 24 23:10:09 im under alcohol and will sleep now. But good luck :p Sep 24 23:13:05 danijoo, looks like there is no permissionGranted broadcast methods there Sep 24 23:13:18 they are only attached, detached usb Sep 24 23:15:10 danijoo, Do you think putting together a while loop: while(!hasPermission){keep looping} Sep 24 23:15:19 a good idea or can it cause ANR too? Sep 24 23:15:29 still ANR Sep 24 23:15:47 everything you do on main thread for more then a few parts of a second will cause ANR Sep 24 23:16:35 what you cann do is: show dialog without a cancel button, then in a seperate thread while(!haspermission)(keep looping) and once you have permission the thread should call dismiss dialog Sep 24 23:17:16 everything that renders a thread unuseable for some time cant be done on main UI thread but has to be done in a seperate one (AsyncTask or Runnable) Sep 24 23:18:06 danijoo, What I'm interested in is, that the onCreate doesn't get called. Since the camera's initiation codes are there this waiting for permission while it gets executed messes things up Sep 24 23:19:34 this is not possible. onCreate will always be called. The only possibility to not call it would be to not start the activity at all Sep 24 23:20:22 cant you move that code out of on create in a seperate method and call that method when the second task says "permission is ready!" ? Sep 24 23:21:02 danijoo, sounds like an interesting idea. I will try it now Sep 24 23:41:40 Should't ApiDemos in emulator running android-L have a Animation/Activity Transition demo ? Sep 24 23:42:07 I opened AndroidManifest.xml and the emulator but I can't find one Sep 24 23:43:07 There's also : android:label="Views/Controls/6. Material Dark Theme" on manifest but I can't find anything related on the demos Sep 24 23:45:28 danijoo, why on earth would eclipse tell me that "The method hasPermission() is undefined for the type MainActivity" Sep 24 23:45:51 I imported import android.hardware.usb.UsbManager; Sep 24 23:49:03 oh yeah - I was using api level 19 :/ Sep 24 23:56:13 is there a non-linear progress bar for android? Sep 24 23:56:14 i've got a problem with fragment manager. i want to close fragments in certain conditions, which can sometimes happen in one of its life cycle methods. removing it from the manager results in "Recursive entry to executePendingTransactions". is there a way to schedule the next transaction to happen right after the current one, or at least to tell if there's a transaction going on? Sep 24 23:59:57 sqrrl: maybe create a Handler and use sendMessageAtFrontOfQueue? Sep 25 00:00:10 or the equivalent post method Sep 25 00:01:55 that sounds good, I'll try that, thank you Jesus Sep 25 00:02:36 Afzal not stock, although it probably wouldn't be hard to subclass ProgressBar to convert whatever input to indicate whatever output Sep 25 00:03:12 sarbs, yeah I'm just having trouble coming up with a formula Sep 25 00:04:13 whatever type of line you want Sep 25 00:04:38 oh right, this is for a determinate bar Sep 25 00:04:43 not a non-determinate one Sep 25 00:04:44 @Override public void setProgress(int progress) { super.setProgress(progress * progress); } <-- quadratic Sep 25 00:04:52 o.. Sep 25 00:06:01 probably want to do some fancier math and normalize the progress to [0,1] then perform the transformation, then convert back to [0,100] tho Sep 25 00:06:12 otherwise at 10% progress input your bar would show 100% heh Sep 25 00:08:49 JesusFreke, I have the beginning of an xscreensaver port off of your GLWallpaperService code Sep 25 00:09:08 Ologn: heh, nice :) Sep 25 00:09:20 I have the superquadrics screensaver/hack/live wallpaper kind of working Sep 25 00:09:25 I'm glad to see it was useful, that's why I put stuff out there :) Sep 25 00:10:32 I'll hack on it some more and then send an e-mail to Jamie Zawinski. Although he took a look at the Android development environment circa 2011 and got scared off... Sep 25 00:42:37 thanks sarbs, I'll look into it tomorrow Sep 25 00:42:51 Ok guys this a desperate SOS Sep 25 00:43:54 I have a camera code integrated in my app. The preview is all fine untile i connect the phones microusb. The pop up permission for USB access blocks the preview Sep 25 00:44:05 is there anything which can be done to deal with this issue? Sep 25 00:49:05 I hate how the Android API uses inconsistent capitalisation regarding initilisms. Sep 25 00:49:23 For example, JSONObject and JsonReader. Sep 25 00:49:38 I agree Sep 25 00:49:50 initialisms* Sep 25 00:50:17 The Serialiable thing is even more annoying to me. I have to declare "serialVersionUID" in my own class. Sep 25 00:50:30 I'd much rather say "serialVersionUid". Sep 25 00:51:00 I used to use Delphi (Object Pascal), which was case-insensitive. You could get around problems like this easily. Sep 25 00:51:08 But you couldn't say stuff like "Foo foo = new Foo();". Sep 25 00:51:42 Does anyone know the difference between the stockdemand and ondemand governor? Sep 25 00:51:44 peska, no, sorry Sep 25 00:51:53 I think that's why they used a class-name prefix: TFoo foo := TFoo.Create; Sep 25 00:52:36 peska if it's the dialog i'm thinking of, your app knows nothing about it and it knows nothing about your app, it's displayed by the system just as if the user had started some other app Sep 25 00:53:11 TacticalJoke Serializable isn't an android thing, it's a java thing Sep 25 00:54:12 Well, it's implemented by Android. I think we can argue that it's a Java thing and a Dalvik/ART thing. Sep 25 00:54:16 s/by/in/ Sep 25 00:55:36 Gah >_< WearablePkgInstaller keeps saying "did not find an asset for " Sep 25 00:55:49 Doesn't tell me what asset >_< AARGH Sep 25 00:56:00 well.. neither dalvik nor art have anything to do with it either :) it's 100% a Java API thing Sep 25 00:56:40 sarbs, Resolved it!! So now i turn the app on, give it permission and THEN created a button to instantiate the camera instead of doing it in onCreate Sep 25 00:56:45 Wouldn't you say that the Android API is a superset of the Java API? Sep 25 00:57:01 peska awesome :) Sep 25 00:57:18 TacticalJoke yes, you could say that.. but if they then modified the java api, it would *not* be a superset of the java api Sep 25 00:57:22 just a very, very, very similar one Sep 25 00:58:46 True. But then serialVersionUID would be in Android but not necessarily in Java, proving that serialVersionUID is an Android thing. :D Sep 25 00:58:58 If, for example, Oracle removed serialVersionUID from the Java API. Sep 25 01:00:22 * Afzal just wants to go home and watch gotham Sep 25 01:01:50 in terms of stable apis, *any* public change is a *big* deal, even additions Sep 25 01:02:42 field name case changes don't really make the cut :) Sep 25 01:17:28 Hello everyone I am using android studio. Can anyone tell me the setting to add seekbar labels? Also if possible add snapping? Sep 25 02:03:35 haha fun stuff http://www.reddit.com/r/androiddev/comments/2hcjvi/whats_something_that_you_expected_to_be_simple/ Sep 25 02:03:48 vulcain7 made me laugh Sep 25 02:07:03 is there a way to connect to a wifi access point by BSSID vs SSID? Sep 25 02:07:19 I have 2 APs and for some reason my app connects to the one with the worse RSSI Sep 25 02:07:33 I want to see if I can specify which AP to connect to even though both have the same ssid Sep 25 02:52:58 Anyone have ideas about how to debug "cannot find symbol" or "package xxx does not exist" errors in gradle? Sep 25 02:54:07 I have a gradle project that depends on another (actually a .jar included by the other), and I can't seem to debug why my build fails Sep 25 02:58:47 * pfn carbonates some water **** ENDING LOGGING AT Thu Sep 25 03:00:01 2014