**** BEGIN LOGGING AT Sat Aug 20 02:59:58 2016 Aug 20 03:46:03 When using the geofence service, does it automatically track my location? Like do I need to create a location request and listener and stuff or does it automatically grab my location in the background when checking for triggered fences Aug 20 03:48:29 I think you use it through the Google Api client no? Aug 20 03:48:46 i think it handles it automatically, and alerts you when events happen Aug 20 03:48:51 not 100% tho Aug 20 03:58:43 Anyone familiar with the CellSignalStrength class? Aug 20 04:02:15 drose379: I'm not. Sorry Aug 20 04:03:07 Why can I access IIS on my desktop using the internal IP address from the emulator but I can't access it from my smartphone? Aug 20 05:51:11 whats the point of creating abstract classes vs just implementing interfaces? Aug 20 05:57:17 parco time to learn java :) Aug 20 05:57:32 lol Aug 20 05:57:46 you can ask in #java Aug 20 05:57:57 but you can also ask google Aug 20 05:58:27 i did look into a bit, am i see android typically avoid interfaces and just uses abstract classes? Aug 20 05:59:44 BluetoothGattCallback for instance, it's basically an interface Aug 20 06:00:25 Ohh, but it doesn't require me to implement the methods Aug 20 06:00:53 they are "Optional" :) Aug 20 06:01:29 Android isn't exactly the pinnacle of api design anyway Aug 20 06:04:12 I just read back that initial sentence I wrote... i'm officially shot at this point Aug 20 06:10:23 <_genuser_> hello people of android-ev Aug 20 06:10:26 <_genuser_> *dev Aug 20 07:21:54 are all apps in android sandboxed by default? Aug 20 07:22:10 if i make a game that requires a password to play, what would be the best way to store that password so that others malicious apps could not see it? Aug 20 07:22:19 this app also needs to have a database that would decrypted with said password Aug 20 07:22:47 i am concerned of other apps being able to get that password, but don't understand enough of Java/Android's memory management to know what's possible in a worst case scenario Aug 20 07:22:55 i imagine with root anything is possible anyway? Aug 20 07:28:46 eeyup Aug 20 07:29:10 normally other apps dont have access to app's interal storage (/data/data/your.app/...) Aug 20 07:29:15 unless youre rooted Aug 20 07:30:08 if the password needs to be saved, i'd just encrypt it Aug 20 07:30:41 but maybe some token or login system (like in google games services) will be better Aug 20 08:25:13 In my toolbar's overflow i have a button "Settings". Upon pressing settings, the user goes to a, you guessed it, Settings activity. What is best practice regarding the use of the overflow: should i disable or temporary remove the button that corresponds to a certain activity if the user is in that given activity? (I.e., if the user presses "Settings" in the overflow, he goes to the settings screen. When in the settings screen and he p Aug 20 08:25:14 resses the overflow button again, he will nòt see the 'Settings' button, after all, he is currently in Settings) Aug 20 08:27:03 Because right now, if the user presses repeatededly the 'Settings' button in the overflow while he's in settings, it seems that every button press/activity start of the Settings screen is added to the back stack and navigation through the 'back button' is not working correctly (he goes to each previously opened Settings screen instead of directly to the Main screen.. The 'up' button works correctly though) Aug 20 08:29:29 is anyone aware of a workarround for https://code.google.com/p/android/issues/detail?id=160714 Aug 20 08:29:39 beside using rev 22.0.0 Aug 20 09:42:42 Hello! Does anybody know why canvas.drawArgb has no effect on underlying bitmap? Aug 20 09:45:33 Or any draw methods in canvas Aug 20 09:59:31 Okay, never mind that, why Drawable.draw(canvas) doesn't do anything? Aug 20 10:00:14 The drawable was wrapped with DrawableCompat.wrap().mutate() Aug 20 10:16:19 Okay, never mind, setBounds solved it Aug 20 11:38:38 Does android caches the fragments? Aug 20 11:39:16 I am using FragmentStatePagerAdapter, and in my fragment i implemented listener on a button for "Like" or "Dislike" Aug 20 11:39:31 When i scroll it gives wrong object Aug 20 11:39:36 yes. also cache is an odd word for it Aug 20 11:39:56 This is really weird behaviour that i didn't expected Aug 20 11:39:58 they are reused. read about fragment lifeecyucle Aug 20 11:45:47 danijoo_ so no way to make the button click listener that is in my fragment to work. Aug 20 11:49:30 what has that to do with caching Aug 20 12:43:55 Hi, can I remove the top level child of a linear layout using the view object in the OnClickListener? Aug 20 12:47:28 you mean you want to remove the view you have a listener on from its layout? Aug 20 12:57:02 danijoo_: I think I'm doing something wrong, what is the proper way to create a layout like this : https://www.dropbox.com/s/dbi1mq99z7l9cwc/image.png?dl=0 Aug 20 12:58:10 danijoo_: This is my own approach: https://ptpb.pw/KyyI Aug 20 12:58:24 why not xml? Aug 20 12:58:38 you prefer life in hard mode? Aug 20 12:58:49 No the items are read from memory Aug 20 12:59:01 I have to generate view for them automatically. Aug 20 12:59:49 so? you can create those items in xml and inflate them then Aug 20 13:00:34 danijoo_: They're unlimited, created by user. Aug 20 13:00:41 How are you, guys? How is you android development going? Aug 20 13:01:35 danijoo_: I'm not aware of the number of saved items at the development stage to create xml for them. Aug 20 13:01:58 you can create a general view that presents one item and then inflate that unlimited times Aug 20 13:02:03 mohsen_1: congratulations for your drawing abilities Aug 20 13:02:12 arancio, :D Aug 20 13:03:40 arancio: at least it worked:D Aug 20 13:03:51 mohsen_1: :) Aug 20 13:04:44 danijoo_: gotcha. Aug 20 13:06:13 Hi, can someone explain me how the Audiostream and AudioGroup works? Aug 20 13:07:14 is using a user's google tokenID safe for login? Aug 20 13:07:27 if i don't want to have a user/pass in my database, just verify the token for whenever the android app is launched Aug 20 13:07:30 What is the 'chain' if I want to send audio from one device mic to another ? Aug 20 13:07:39 i mean like, can a user fake a google token even if he doesn't know the credentials to the google account associated? Aug 20 13:08:57 danijoo_: Should I use GridLayout ? Aug 20 13:10:03 your 4 fields would work with any viewgroup Aug 20 13:10:06 except framelayout Aug 20 13:11:52 I used GridLayout Aug 20 14:00:55 danijoo_: So how can I remove this new item from a seperate class that is an OnClickListener? Aug 20 14:02:11 the xml layout I created has a remove button, I want the whole layout get removed when the remove button is clicked, this is the code of the listener: https://ptpb.pw/0o3J Aug 20 14:27:45 mohsen_1, ViewGroup#removeView(view) Aug 20 14:36:40 remove or make gone Aug 20 14:37:38 Is there any difference? Aug 20 14:38:15 yes Aug 20 14:38:36 the latter only affects visibility, leaving the views in place to work with Aug 20 14:39:12 Hopefully I needed the former. Aug 20 14:45:04 hey , I am reading android docs on Fragments , and it usesgetSupportFragmentManager().beginTransaction(), which uses support.v4 , but I am using v7 , so what is equivalent of getSupportragmentManager in v7 , https://developer.android.com/training/basics/fragments/fragment-ui.html Aug 20 14:49:54 mohsen_1, you normally do the former if you'll never need the views again Aug 20 14:51:27 Can I do this using a context instead of an activity: http://stackoverflow.com/a/7738687 ? Aug 20 14:51:58 I want to do it after the item is removed in the code I‌ posted. Aug 20 14:52:54 killer: There are many support libraries, but only one of them contains fragments. So as long as you use support fragments the api is the same Aug 20 14:52:58 yes Aug 20 14:53:24 So , for fragments , I got to use v4 only ? Aug 20 14:53:29 SimonVT: ^ Aug 20 14:53:30 pfn: How? Aug 20 14:54:07 how what, nothing there requires an activity Aug 20 14:54:14 Each support library have a different purpose, and contain different classes Aug 20 14:54:46 I thought v4 was only for outdated android versions , and will soon go out of support Aug 20 14:54:52 no Aug 20 14:54:56 Add support-v4 (or rather, support-fragments) if you want support fragments. appcompat-v7 if you want toolbar, etc Aug 20 14:55:13 pfn: What about "this" and "sendBroadcast" ? Aug 20 14:55:20 appcompat depends on support-v4 Aug 20 14:55:25 So you don't have to explicitly add both Aug 20 14:55:32 mohsen_1, read the api doc Aug 20 14:55:47 ahh , thnx Aug 20 14:56:42 I find it interesting that it's moved to support-fragments, but unfortunate that the code package remains android.support.v4 Aug 20 14:57:20 Yeah, wish they'd just pull the bandaid Aug 20 14:57:38 Maybe in version 25 ;d Aug 20 14:57:41 also an unfortunate lack of foresight Aug 20 14:58:09 appcompat suffers similarly Aug 20 15:00:33 And cardview and recyclerview and ... Aug 20 15:00:44 They got smarter with design at least Aug 20 15:00:59 Indeed Aug 20 15:04:46 Wouldn't the apps need to be re-written if they make v4 obsolete Aug 20 15:06:31 yes Aug 20 15:06:43 but the old version will always be there Aug 20 15:06:56 and it's minor, just fix up imports Aug 20 15:08:06 could probably write forwarders with deprecation if they wanted Aug 20 15:11:30 doesn't matter other than being anachronistic Aug 20 15:40:29 sort of offtopic but, how iOS handle this kind of compatibility shits? Aug 20 15:42:36 they don't Aug 20 15:43:13 oh yeah, old devices get OS updates Aug 20 15:43:34 i forgot that Aug 20 15:45:28 i'm refactoring an app to switch from Holo to Material and i'm seeing what a mess is all that Aug 20 15:48:15 not really, update appcompat and donr Aug 20 15:55:44 heyo, does anyone know how i can get the RSSI's of the AP's around me? Aug 20 15:56:08 i have four specific mac's i want to listen for, for a Indoor Positioning System Aug 20 15:57:58 currently using this code, but it always returns 0 results: http://paste.ee/p/iIs19 Aug 20 16:16:41 pfn, lots of dialogs, fragments Aug 20 16:17:42 not that much to change, styling is automatic Aug 20 16:20:47 if you use Theme.AppCompat or Theme.DeviceDefault it's mostly automatic Aug 20 16:21:06 you just change target or update a dependency Aug 20 16:23:06 if you used any other theme as a base, you were wrong Aug 20 16:23:17 but it's still practically a one line fix Aug 20 16:24:03 pfn, well, ok, i'm commiting the changes and i have to agree Aug 20 16:24:54 mostly it's import changes and getSupportFragmentManager Aug 20 16:26:43 you don't have to switch to using support fragments Aug 20 16:26:55 that was completely irrelevant Aug 20 16:27:08 that was unnecessary work Aug 20 16:27:29 support fragments are generally nicer, though Aug 20 16:27:46 they're always up to date, unlike framework fragments Aug 20 16:34:31 pfn, yes, some of my fragments are just views with custom styling Aug 20 16:34:54 still doesn't require switching to support fragments Aug 20 16:35:01 but for the sake of uniformity, i changed everything to support Aug 20 16:35:24 Is it possible to provide a TLS certificate with an Android app and make it impossible for a ahcker to acquire it by decompiling the app? I.e. will rpoviding a certificate increase security at all? Aug 20 16:36:16 meinteil, no, yes. its still a security imnprovment since u make it harder. but its not possible to make it unextractable Aug 20 16:36:22 you can just make it very hard Aug 20 16:36:36 meinteil, strictly to your question, no Aug 20 16:38:49 Some apps hide parts of their key in various places, then piece it together at runtime. E.g. in drawable resources and stuff like that Aug 20 16:51:41 Can‌ I access the directory that getApplicationContext().getFilesDir().getAbsolutePath() returns through the file manager of the phone? Aug 20 16:57:18 Nope Aug 20 17:25:17 ReScO: did you set permissions in the manifest? is your target api <= 22? is your device api <= 22? Aug 20 17:44:36 hey, i'm about to start a project where i'll basically be replicating a website, and perhaps needing access to the camera. since i'm much more proficient with web programming, i'm trying to decide between ionic and react native Aug 20 17:44:46 (i'm passingly familiar with both angular and reactjs) Aug 20 17:44:51 any suggestions/warnings? Aug 20 17:47:56 diphtherial, most people here do android dev without those frameworks so most will say: write your app java Aug 20 17:48:08 close to no support in here for anything else Aug 20 17:52:58 hey friends, a short question. whats the best way to use some of my classes in multiple projects? Aug 20 17:53:03 libraries or modules? Aug 20 17:53:11 including them as jar or aar file? Aug 20 17:53:48 id do a local maven repository Aug 20 17:54:01 i am asking because when i add a new library in android studio it adds the library in the existing app directory ... making it impossible to use it in a different project Aug 20 17:54:53 publish it locally Aug 20 17:55:19 pfn: what does that mean? create a jar/aar file and include it? Aug 20 17:56:56 it means what danijoo_ said Aug 20 17:57:11 and yes Aug 20 17:57:39 hmmm, running maven for two classes seams a little bit overkill .. but okay, i will look into it Aug 20 17:57:51 it's not really Aug 20 17:58:03 learn to use build tools Aug 20 17:58:16 and you can do it from gradle instead of mvn Aug 20 17:58:36 and you mean for. the repository? there's no running Aug 20 17:58:55 hmm, but a question about that. when i publish it in maven locally and i fix something in that build it have to manually trigger all other projects to rebuild to, right? Aug 20 17:59:56 yes Aug 20 18:00:32 so to avoid that i would write a gradle script to trigger the rebuild of all depending projects, right? Aug 20 18:01:30 why would you do that... Aug 20 18:01:39 build it when you need it Aug 20 18:01:47 but yes, this. can be done with ci Aug 20 18:02:29 okay, big thanks ... all this stuff is confusing to old c guys like me ... in my days we would simply softlink the directory into all projects and then hit make again *g* Aug 20 18:02:34 big thanks! Aug 20 18:09:20 that's basically what a local maven repo is, except sane Aug 20 18:19:20 (in case someone familiar with butterknife is awake) running into some dumb thing I'm doing, trying to run tests from the source. Looks like the linter (presumably using the eclipse compiler) is unhappy, ideas? http://paste.debian.net/plainh/e9202073 Aug 20 18:24:10 leo-unglaub: there's a way to make libraries be independant projects and include thoe projects in other projects - I think I have a link that could help you get started - I'll check Aug 20 18:26:56 leo-unglaub: http://www.philosophicalhacker.com/2014/10/03/an-alternative-multiproject-setup-for-android-studio/ Aug 20 18:27:50 he posted that link within an answer here: http://stackoverflow.com/questions/16601299/how-to-create-a-library-project-in-android-studio-and-an-application-project-tha Aug 20 18:32:52 danijoo_: well, that's good to know, thanks. i would typically write it natively, but i have to target multiple platforms Aug 20 18:33:57 MjrTom: i will have a look at it Aug 20 18:33:59 big thanks! Aug 20 18:51:10 In the AVD Manager, what is the difference between "Android 4.3.1 - API Level 18" and "Goolge APIs (Google INC.) - API Level 18" ? Aug 20 18:53:02 can you take a screenie? Aug 20 18:53:52 Ok, one moment... Aug 20 18:58:14 Here it is: http://i.imgur.com/vO0eAJA.png Aug 20 18:58:26 The dropdown for "Target". Aug 20 18:58:29 orbyt_: ^ Aug 20 19:00:00 I think one has only the core Android libraries and one contains Google specific stuff (google maps, etc). Use the Android one unless you know you need the others. Or use genymotion. Aug 20 19:00:49 Well, as you can see in the screenshot, for the Android one it says "No CPU/ABI system image available". Aug 20 19:01:11 So far I got no AVD working at all. So I'm just trying to get *any* AVD up and running :) Aug 20 19:01:26 Well you need to make sure you have it downloaded Aug 20 19:01:42 The CPU/ABI sytem image? Aug 20 19:01:50 a virtual device Aug 20 19:01:57 How do I do that? Aug 20 19:02:08 be creating a new avd Aug 20 19:02:16 or, use genymotion Aug 20 19:02:19 That is the dialog for creating a new avd. Aug 20 19:02:42 let me open up AS and ill look at it. I use genymotion for emmys mostly. Aug 20 19:05:49 no_gravity: what version of AS are you using? Aug 20 19:05:56 I don't use AS. Aug 20 19:06:01 ........ Aug 20 19:07:10 Sounds like you just haven't downloaded any system images Aug 20 19:07:25 It let's me chose some crazy devices. Aug 20 19:07:47 For example '4" WVGA (Nexus S)(480 x 800; hdpi) Aug 20 19:08:07 Or the Nexus One with Android 2.2 Aug 20 19:08:14 SimonVT: How do I download them? Aug 20 19:08:35 Like you download anything else in the sdk Aug 20 19:08:48 SimonVT: And how do I do that? Aug 20 19:09:02 Galaxy Nexus with Android 5.1.1 seems to be available. Aug 20 19:09:06 Let me try that one... Aug 20 19:10:01 Looks like a giant phone screen booting or something... Aug 20 19:10:07 Uh, sdk manager.. Aug 20 19:10:30 When you run an app in the emulator you have to sit through the whole boot sequence? Aug 20 19:10:52 Just the first time you launch the emulator Aug 20 19:10:56 Aha Aug 20 19:11:12 I see a giant black window with a white "android" in the center. Aug 20 19:11:21 you can save the state and reboot from it again on later use Aug 20 19:11:22 And the "android" kind of changes colors. Aug 20 19:11:28 Boot animation Aug 20 19:12:15 "Galaxy Nexus" is from 2011 according to Wikipedia :) Aug 20 19:12:50 SimonVT: When you say "sdk manager" do you mean that thing that pops up when I run "android"? Aug 20 19:14:13 I started to peek into android dev for the first time today. Aug 20 19:14:32 So far it reminds me of when I was a kid and tried to disassemble c64 games... Aug 20 19:14:46 Still booting... Aug 20 19:14:46 Yes, the window should say sdk manager as well Aug 20 19:15:08 Yes, it says so. Aug 20 19:15:32 Strangely, it has "Install 11 packages" on the install button and when I click that, it seems to start a download of the whole universe and more. Aug 20 19:15:55 Which seems to be wrong because those 11 packages are already installed as far as I understand it. Aug 20 19:16:07 For example "Android SDK Tools". Aug 20 19:16:14 Is that really not installed? Aug 20 19:17:20 Maybe it expects them in a different location then where I put them? Aug 20 19:18:38 The Galaxy Nexus is still booting... Aug 20 19:21:09 How long can the first boot take? Aug 20 19:21:40 that depends on a lot of things Aug 20 19:21:52 Like everything. Aug 20 19:22:16 The weight of an elephant. The speed of a bullet. Aug 20 19:22:37 The temperature on Mars. The lifespan of a fly. Aug 20 19:22:57 if its booting over 5 minutes it probably crashed or looping Aug 20 19:23:24 or your pc is very slow :) Aug 20 19:24:14 Still booting. Aug 20 19:24:31 Not sure if my PC is slow. Aug 20 19:25:41 Is this emulating a whole device in software? The CPU and everything? Aug 20 19:28:30 yep Aug 20 19:28:32 my pc is slow and it takes a few second to start an emulator Aug 20 19:28:41 x86 emulators are faster Aug 20 19:28:42 like 2 sec Aug 20 19:32:43 Hmm... wouldnt it be useful to have a virtual android that runs natively? Aug 20 19:32:53 And does not need to simulate hardware? Aug 20 19:33:05 I think I will kill the booting device now. Aug 20 19:34:12 Yep, hopefully they'll ditch the emulator some day and make a proper simulator Aug 20 19:34:28 Trying to boot a Nexus 7 now... Aug 20 19:34:52 There is the android sign again... Aug 20 19:34:54 The "devices" are just preset resolutions and screen sizes, not actual devices Aug 20 19:35:02 SimonVT: Aha! Aug 20 19:35:21 This time, the boot "animation" is pretty sluggish. Aug 20 19:36:03 I would prefer some information instead of that animation... Aug 20 19:36:40 it was possible to have x86 images in the emulator Aug 20 19:36:42 which are pretty fast Aug 20 19:36:46 not sure if it is still a thing :) Aug 20 19:37:29 I se "Intel x86 Atom System Image" Aug 20 19:37:31 see Aug 20 19:37:35 yeah Aug 20 19:37:41 People either use the x86 emulator or genymotion Aug 20 19:37:49 I don't think anyone actually uses the arm emulator anymore Aug 20 19:37:50 But how do I use that one? Aug 20 19:38:18 maybe there is tutorials on the internet! Aug 20 19:39:57 http://tools.android.com/tech-docs/emulator for example Aug 20 19:40:21 That seems to be about Android Studio. Aug 20 19:40:59 Same difference. Download system image, select when creating device Aug 20 19:41:33 Except you still did not tell me how to download a system image :) Aug 20 19:42:00 I did, with sdk manager Aug 20 19:42:30 So which system image? Aug 20 19:43:07 The x86 one Aug 20 19:43:21 Maybe "Intel x86 Atom_64 System Image"? Aug 20 19:43:55 Sure Aug 20 19:44:01 Why "Atom"? Aug 20 19:49:33 I downloaded it, but I cannot find any place where I can select it. Aug 20 19:51:39 And after restarting the SDK Manager, it tells me it's not installed. Hmm... Aug 20 20:57:45 Mavrik: and SimonVT still working on that issue from yesterday. Have an SO question now if you wanna take a look. http://stackoverflow.com/questions/39058635/android-studio-heap-dump-hprof-viewer-showing-incorrect-counts Aug 20 21:05:13 They show up in memory dumps, pretty much always have.. Unless there are gc roots they don't matter Aug 20 21:11:13 I'm bored. Can anybody tell something funny about Android development? Aug 20 21:15:10 whatitis: it's "whatisit" Aug 20 22:50:11 Hi folks Aug 20 22:50:15 I could use some help again Aug 20 22:50:29 tl;dr I want to do something with this: http://www.materialdoc.com/color-picker/ Aug 20 22:50:40 So I get that I would be getting the project from here: https://android.googlesource.com/platform/frameworks/opt/colorpicker/ Aug 20 22:50:48 But I don't know how to add it to my project in Android Studio Aug 20 22:51:35 can't find anything on StackOverflow that makes sense Aug 20 22:52:40 hey I have a question Aug 20 22:52:55 Hi :P Aug 20 22:53:12 I'm following some udacity course, and they always declare and define Listeners in line as member variables Aug 20 22:53:22 should I initialize it there or in the onCreate method Aug 20 22:55:02 I'm pretty new to android development, but the few times I've done it it's been in the onCreate method Aug 20 22:55:54 aevitis, https://github.com/the-blue-alliance/spectrum this looks very similar to your image and can be added as gradle dependency Aug 20 22:55:58 That's what I assumed from previous OO experience Aug 20 22:56:20 But, I wasn't sure since the tutorials were all doing them at declaration time itself Aug 20 22:56:49 quick noob question: Do lint directives come before after a method's doc bloc in general? Aug 20 22:57:12 danijoo_: that looks like it'll work, I'll give it a shot Aug 20 22:57:23 thanks! Aug 20 22:58:16 okay, so I've never had to import any libraries before Aug 20 22:58:19 do I have to download anything? Aug 20 22:58:31 or do I just put the relevant lines in the correct files and android studio somehow finds them for me? Aug 20 22:59:43 Why don't I get operator status when I join the channel? Aug 20 23:00:31 What are all these "getSlotFromBufferLocked: unknown buffer" messages that I get in logcat? Is that normal? Aug 20 23:01:10 danijoo_: I got it in my project, thanks a ton! :D Aug 20 23:01:17 I'm surprised I don't have to download it manually or anythin Aug 20 23:01:25 also I tend to get that a lot too, Arancio Aug 20 23:01:29 doesn't really do anything for me Aug 20 23:08:05 ok so i needed further decoupling of a couple services i had running, is the eventbus my savior? Aug 20 23:27:56 SimonVT: "They show up in memory dumps, pretty much always have.. Unless there are gc roots they don't matter" is that only true for debug builds? Seems like it has to keep track of them even if it was Gc'd, so it seems wasteful. Aug 21 00:29:40 i've made a webview of a website that has (desktop) notifications, how do i make my app/webview display them? Aug 21 01:09:07 CtrlAltDefeat: what are desktop notifications? Aug 21 01:26:27 hiya Aug 21 01:26:42 I need some help using https://github.com/the-blue-alliance/spectrum Aug 21 01:27:48 With this XML: http://pastebin.com/jJvqAfd1 I get this error: http://pastebin.com/q5Xr5a26 in the design view in the XML thing Aug 21 02:03:42 Hi Aug 21 02:03:43 S Aug 21 02:03:53 So I'm using this color picker library Aug 21 02:04:10 and basically it (obviously) has a way for me to get the color Aug 21 02:04:15 but it passes the color to me as an integer Aug 21 02:04:21 an int, specifically Aug 21 02:04:32 and I can't for the life of me figure out how to get the color from that int Aug 21 02:14:36 aevitis, most likely it's ARGB (or RGBA) w/ 8 bits per color Aug 21 02:14:43 pretty standard packing Aug 21 02:23:51 ight i'll try to check that Aug 21 02:25:41 dragorn: I don't think it could be that Aug 21 02:25:45 for example Aug 21 02:26:02 blue is -14654801 Aug 21 02:26:16 there's a red color that's -2277816 Aug 21 02:26:21 they're all negatives as far as I can tell Aug 21 02:26:37 this is the library if it helps: https://github.com/kristiyanP/colorpicker Aug 21 02:28:44 aevitis, https://developer.android.com/reference/android/graphics/Color.html Aug 21 02:29:02 "The components are stored as follows (alpha << 24) | (red << 16) | (green << 8) | blue" Aug 21 02:29:18 for instance black has a constant of "Constant Value: -16777216 (0xff000000)" Aug 21 02:29:37 so, no reason you can't have negatives - you only care about 8 bits, not the signed whole Aug 21 02:33:09 sorry, I dc'd Aug 21 02:33:13 appreciate your help though Aug 21 02:33:38 Test Aug 21 02:33:41 Odd Aug 21 02:33:47 I'd swear it just told me I quit Aug 21 02:34:00 But anyways, I'm still confused about this part: "components are stored as follows (alpha << 24) | (red << 16) | (green << 8) | blue" Aug 21 02:34:16 How does -16777216 become 0xff000000? Aug 21 02:34:23 Is there a method I can call to do it for me? Aug 21 02:34:35 aevitis_, 32 bit int, first 8 are alpha, next are r, g, and then b Aug 21 02:34:57 because 0xFF000000 as a singed int has the highest-order bit set, making it a negative Aug 21 02:35:31 http://stackoverflow.com/questions/8436196/explaining-bitwise-shifting-argb-values-in-java Aug 21 02:36:13 e.e the stackoverflow should probably explain it Aug 21 02:36:15 thanks a ton Aug 21 02:37:24 it should definitely explain it better than I could Aug 21 02:38:16 but basically, r = ((color & 0x00FF0000) >> 16) Aug 21 02:38:40 ie, bitwise-and to say "select only the bits in the second byte of the int" Aug 21 02:38:52 and then bit-shift them by 16 Aug 21 02:39:03 ought to yield a 0-256 value for red Aug 21 02:40:04 I think I get it Aug 21 02:42:44 that said most color functions in android seem to take the int value anyhow Aug 21 02:57:51 hi, has anyone worked heavily with the google subscription apis? Aug 21 02:58:25 im looking to get advice on the best way to incorporate it **** ENDING LOGGING AT Sun Aug 21 02:59:58 2016