**** BEGIN LOGGING AT Sun Aug 21 02:59:58 2016 Aug 21 03:23:22 I am using Android Studio. I am creating a page on my app where it just searches for nearby devices through bluetooth. Here is my Code: http://pastebin.com/C6Kv9Mg6 I compiled it, ran with 0 errors and 0 warnings but when the app loads, nothing is shown on the android emulator. If I look at the android monitor on bottom of screen, it shows these issues at Line 41- 46. What am I doing wrong? Thanks. Aug 21 03:34:02 what is suppose to show on the screen? Aug 21 03:35:28 orbyt_: a message or something letting me know if it has interacted Aug 21 03:35:34 unless, that is my issue. Aug 21 03:35:46 Maybe i'm not incorporating that correctly or not specifying that? Aug 21 03:37:07 theres nothing in your code to print out a message Aug 21 03:37:37 orbyt_: So i can implement something like this: .setMessage("Your phone does not support Bluetooth") Aug 21 03:38:06 Do you want to display something on the screen or just log it in the console? Aug 21 03:38:30 Any would be fine, I just want to check if i'm coding this properly and make debugging easier. Aug 21 03:39:56 .....do you know how to print a message Aug 21 03:42:15 Well, I believe so. Let me try it on my own and i'll let you know. Aug 21 03:45:55 leTones: I think you were in here yesterday with some serious beginner java/android questions. I highly recommend you go spend a day or two learning the basics Aug 21 03:46:12 teamtreehouse is great, and gives a few weeks free i believe Aug 21 03:49:58 alright orbyt_ . Aug 21 03:50:08 Could I show you what I added before I do that? Just one last look Aug 21 03:50:21 k Aug 21 03:50:50 http://pastebin.com/wjQDAVa0 Lines 28-37 Aug 21 03:51:05 I only added that for if it is not connected. Aug 21 03:53:48 System.exit is probably not a good idea for closing the app... Aug 21 03:55:38 True. Aug 21 06:26:22 Hello! When you guys store data on the phone, do you usually trust it to be durable or do you sync it to a server? Aug 21 07:33:52 hi guys. Aug 21 07:34:40 guys, I wonder if I can use this method in handling exceptions for loading a jni or not. Aug 21 07:34:42 http://paste.ubuntu.com/23074889/ Aug 21 07:58:14 hero_biz, that won't work. Aug 21 08:05:19 <.< Aug 21 08:06:02 I really wonder how I should handle these exceptions.. Aug 21 08:10:34 Mavrik: are you sure my approach is incorrect? this code compiles as java correctly: http://ideone.com/nGKSKf Aug 21 08:11:11 Oh I'm sure it compiles, it just won't work like you want it to. Aug 21 08:11:40 You have a static initializer and you're trying to catch an exception from a constructor. Aug 21 08:11:49 In best case it wont work. Aug 21 08:12:06 ? Aug 21 08:12:10 In worst case it'll kinda work and cause you boatload of issues. Aug 21 08:12:15 static block may drop exception Aug 21 08:12:24 for loading dll Aug 21 08:12:38 I want to somehow handle this exception Aug 21 08:12:56 static block can't propagate ("drop") exception anywhere. Aug 21 08:13:01 http://stackoverflow.com/a/2070312/169115 Aug 21 08:13:08 Load your library in some other way. Aug 21 08:13:35 But I read they can propagate RuntimeException Aug 21 08:13:47 loadlibrary should consider runtime,isn't it? Aug 21 08:17:12 Why are you so bent on causing yourself problems? Aug 21 08:17:24 There's absolutely no guarantee on when that static block will be called. Aug 21 08:17:36 And especially no guarantee it'll be called inside your "try". Aug 21 08:17:47 oh. Aug 21 08:17:51 ok then. Aug 21 08:17:58 That's the problem :) Aug 21 08:18:07 I thought it is called when I try to create instance Aug 21 08:18:13 Nope, it's static. Aug 21 08:18:24 So JVM can call it whenever. Aug 21 08:18:37 Move it to constructor or a non-static initializer block. Aug 21 08:18:43 Or make a static method you explicitly call. Aug 21 08:18:45 I need to use a jni instance in a fragment. Aug 21 08:18:57 So I wonder where is best place for it. Aug 21 08:19:06 a non-ui retained fragment. Aug 21 08:20:18 most examples in internet says good practice doe system.loadLibrary is in a static block. Aug 21 10:37:02 @arancio notifications a website can make that popup in chrome for example Aug 21 10:40:19 CtrlAltDefeat: well, I guess they just popup in the browser not in the desktop of your computer Aug 21 10:40:42 CtrlAltDefeat: did you enable javascript in your WebView? Aug 21 10:40:56 CtrlAltDefeat: it's disable by default Aug 21 10:41:00 disabled Aug 21 10:42:13 i have it enabled\ Aug 21 10:42:17 CtrlAltDefeat: How do you build your app? Aug 21 10:42:34 what do you mean (beginning programmer) Aug 21 10:43:43 CtrlAltDefeat: I only just came here. Just saw the last message from you. Aug 21 10:44:11 i've got a webview of a site that has (chrome) push notifications Aug 21 10:44:18 i'm wanting my app to display them as well Aug 21 10:44:35 CtrlAltDefeat: You coded the app from scratch? Aug 21 10:44:50 Or via Cordova or some other framework? Aug 21 10:45:15 onCreate() -> few webview settings -> webview load url Aug 21 10:45:16 that's all Aug 21 10:45:29 So you created it from scratch? Aug 21 10:45:31 ye Aug 21 10:45:36 Now we got it :) Aug 21 10:45:46 yay :P Aug 21 10:46:07 Will it work offline? Aug 21 10:46:10 no Aug 21 10:46:38 I see. Is it styled to look like a native android app? Aug 21 10:46:40 no caching no nothing Aug 21 10:47:11 nah, the site works on mobile but that's all to say about it really Aug 21 10:47:35 Google accepts these kinds of apps that are a webview to a website on a server? Aug 21 10:47:40 I heard that Apple does not. Aug 21 10:47:59 why are you pretending to be an app developer no_gravity Aug 21 10:47:59 CtrlAltDefeat: you have to understand how notification are implemented and if the specific technologies/features are implemented/enabled in WebView Aug 21 10:48:15 phil__: Can you quote me on being an app developer? Aug 21 10:48:44 hmm? @arancio Aug 21 10:49:15 CtrlAltDefeat: "hmm?" what? Aug 21 10:49:53 i thought more of an explanation was coming ._. Aug 21 10:50:20 been reading up on notifications but i really havent gotten anywhere Aug 21 10:51:41 brb in 10 Aug 21 10:51:58 CtrlAltDefeat: there are still incompatibilities between web browsers for desktop computer, do you really expect a WebView to perform just like Firefox or Chrome does on your desktop. What's the technology behind those notification? Is that implemented in WebView? That will give you the answer Aug 21 11:09:19 @arancio, i thought it'd 'just' work because chrome for android has them too AFAIK Aug 21 11:10:51 CtrlAltDefeat: You get those notifications even when the browser is not active? Aug 21 11:11:28 now that you mention that, i dont think so Aug 21 11:11:43 CtrlAltDefeat: it doesn't meant that Chrome for Android is based on WebView or that the WebView in an activity of Chrome for Android is configured in the same way are yours. Aug 21 11:13:16 fair enough Aug 21 11:14:10 CtrlAltDefeat: So the nature of those notifications is that you have the website in a browser open, but out of sight, or in an inactive tab - and then a message pops up on your screen? Aug 21 11:14:19 yeah Aug 21 11:14:30 Ok. But only if the site is open in a tab, right? Aug 21 11:14:39 yeah Aug 21 11:15:07 CtrlAltDefeat: Does that also work on a phone? Aug 21 11:20:40 got something that i think solves it Aug 21 11:20:48 thanks @no_gravity and @arancio :) Aug 21 11:20:58 Mon Plaisir Aug 21 11:30:43 Does anyone here use retrofit2 mock servers? Aug 21 11:32:09 I don't understand how OAuth 2.0 certificates work, when I generate a keystore, it's generated with a SHA-1 signature right? Aug 21 12:35:48 Heya Aug 21 12:37:01 howdy Aug 21 13:00:39 Hi i am stuck at different scenario I need to render images on my list view which will be fetch from remote url, I am using Glide the problem is while rendering the listview data I have just id of the images then on scrolling I am hitting another api which gives me complete url of an image on basis of id but the image data is positioning at correct place. Aug 21 13:01:19 *sorry data is not positioning at correct place.. Aug 21 13:03:00 http://pastebin.com/6RRjzxbN Aug 21 13:03:34 this is what I am doing.... Aug 21 13:05:30 Set a placeholder until the image is loaded Aug 21 13:06:04 You should probably also check if there are any ongoing calls for the view, and whether they need to be canceled Aug 21 13:06:52 Or even better, use Glides pipeline Aug 21 13:07:10 Meaning modify the http request part to do both requests. Aug 21 13:07:30 Since that will let Glide handle the magic of caching + properly binding views. Aug 21 13:12:12 thanks for suggestions, its seems looking little tricky to check ongoing call for the view and maintaning glide pipelines.. let me google these things Aug 21 13:13:12 min2, yeah, this is why I'm suggesting you to replace Glide's HTTP class with your own custom source that does both requests and gives image to Glide. This way you let Glide keep doing all the magic automatically. Aug 21 13:13:25 Can I open multiple projects in Android Studio? Can I run multiple instance of Android Studio? Aug 21 13:13:32 yes Aug 21 13:13:37 Opening another project will open another instance. Aug 21 13:13:45 (Which you would notice if you actually tried.) Aug 21 13:17:15 thanks Mavrik, I just tried in simple way by invoking retrofit call i thaught it would have handled automatically in if else block but it doesnt, now time to try hands on Glide HTTP Aug 21 13:20:15 Mavrik: Yeah, you are right. Something in the UI of Android Studio made me believe that the way to open a project was from the welcome panel... funny. Thanks and sorry for the stupid question. Aug 21 13:37:22 how expensive are Sharedpref calls? Aug 21 13:38:07 specifically, reads Aug 21 13:39:04 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 21 13:40:23 it would make sure that you need a ceritificate to communicate with the backend so you have to decompile the app, at least it is one step better although it is a bit of safety by obfuscation Aug 21 13:42:09 Why do I get apparently random exceptions in logcat? Aug 21 13:42:44 raoul11: It's a HashMap once loaded Aug 21 13:43:19 k, sounds about right Aug 21 13:44:35 And why is it called "cat" anyway? Aug 21 13:44:44 it doesn't meow Aug 21 13:45:56 my naming convention is attrocious Aug 21 14:27:24 hi Aug 21 14:27:51 yo Aug 21 14:28:03 how can i find mount points needed to create a proper recovery.fstab on a custom recovery ? Aug 21 15:00:48 hi, is there anyone that has experience with incorporating the in-app subscriptions? I have some questions on the best way to incorporate it in the app and in a backend server Aug 21 15:19:03 Is there a limit on how many files an android app can ship with? Aug 21 15:46:32 wut Aug 21 15:56:04 hmm is this right? return gson.fromJson(response.body().toString(), ResponseMessage.class); Aug 21 15:56:14 specifically response.body().toString() Aug 21 15:56:37 seems to return null even though the json output is not null Aug 21 17:32:13 sup guys Aug 21 17:32:24 anyone using fcm? Aug 21 17:35:28 Omg! so many year away from irc, i can't just beleave! Aug 21 17:35:42 SauerDev: wb! :P Aug 21 17:35:59 DelphiWorld was thinking of converting to but no point currently Aug 21 17:36:07 gcm is still fine :) Aug 21 17:36:54 Why any one talk =D ? Aug 21 17:37:39 my keboard it's really bad -_-, i'll be back with other, this is really bad Aug 21 17:50:37 anyone heard of "Drippler" Aug 21 17:50:57 No Aug 21 17:51:06 hmm Aug 21 17:52:32 SUP everyone Aug 21 17:52:33 back Aug 21 17:52:44 StingRay_: so... this app is new Aug 21 17:52:44 orbyt_, i have, i used to have it long time ago Aug 21 17:52:48 so i prefer to go with fcm Aug 21 17:53:03 at some point i didn't like something about it and unisntallede Aug 21 17:53:23 iprime: yea its an app review app or something Aug 21 17:53:42 got 2.5k play store views with 30% install rate the other night from them, apparently Aug 21 17:56:16 orbyt_, re, so what's your app Aug 21 17:56:38 https://play.google.com/store/apps/details?id=orbyt.spacehub Aug 21 17:57:38 mmm Aug 21 17:58:12 only 5.0+ Aug 21 17:58:35 You talking about SpaceHub? Aug 21 17:59:13 dumb question Aug 21 17:59:33 that wasnt a question :v Aug 21 17:59:42 no my question Aug 21 17:59:47 orbyt_, just installed it, looks neat, is this native android? Aug 21 18:00:15 yes Aug 21 18:04:20 it looks nice Aug 21 18:05:15 orbyt_, have you specifically contacted drippler about adding your app to their feed? Aug 21 18:06:38 iprime: no Aug 21 18:08:58 someone could help me get started with fcm? Aug 21 18:09:12 * DelphiWorld is a blind beginer Aug 21 18:13:08 DelphiWorld docs are pretty simple to follow Aug 21 18:13:13 what are you stuck with ? Aug 21 18:13:49 StingRay_: i'm not well with gradle Aug 21 18:14:09 StingRay_: i can't use android studio at all due to stupid AWT gui not supporting screen reader's functionality Aug 21 18:41:10 I've set the location permission in the androidmanifest, but for some reason, when i'm trying to use locations, it's not asking the user for permission thus not working Aug 21 18:41:15 ^android 6.0 Aug 21 18:54:50 xFr0st: you need to use runetime permissions Aug 21 18:54:53 runtime* Aug 21 18:56:24 i take it that's not done in the manifest? Aug 21 18:57:19 manifest as well as in your code Aug 21 18:59:50 Anyone used PageTransformer? Aug 21 19:00:21 I'm trying to animate elevation with the position given in transform()....but it has this "snap effect" which defeats the purpose... Aug 21 19:08:21 so, yigits job queue library graduates to 2.0 Aug 21 19:08:22 hey people, how can i keep a socket open and send and receive data from it in android? can't find many up to date tutorials about it Aug 21 19:08:42 ReScO kinda hard to do these days, doze mode and whatever will put you to sleep Aug 21 19:09:01 pre android-5.0 it was more doable Aug 21 19:09:18 okay @ orbyt_ i got both uses-permission and uses-permission-sdk-23 set in the manifest Aug 21 19:09:24 time to figure out how to do the java part Aug 21 19:09:27 it's for an indoor positioning system, so it would wake up on movement Aug 21 19:09:56 xFr0st: this might help https://github.com/codepath/android_guides/wiki/Managing-Runtime-Permissions-with-PermissionsDispatcher Aug 21 19:10:01 though it uses a third party lib Aug 21 19:10:04 currently trying to figure out basic network communication, it delivers the data nicely, but i can't figure out how to receive data and keep the socket open Aug 21 19:10:16 xFr0st: https://developer.android.com/training/permissions/requesting.html Aug 21 19:10:44 thanks Aug 21 19:11:47 or at least wait for a response Aug 21 19:18:12 video time: https://gfycat.com/DeliciousReasonableAsiansmallclawedotter Aug 21 19:18:34 that vid displays my issue..using a page transformer with a viewpager, im trying to animate the elevation Aug 21 19:18:52 but theres this odd "snap effect" when the view gets to the center Aug 21 19:19:21 you have to look closely at the video but when you scroll to the next page youll see the shadow "snap" Aug 21 19:19:39 any ideas why? Aug 21 19:22:43 better vid: https://gfycat.com/FlakyWarlikeEgg Aug 21 19:33:57 what is a better way to send data in android? raw sockets or something else? Aug 21 19:34:23 ReScO think that depends on lots of factors Aug 21 19:34:35 is it bluetooth or internet Aug 21 19:34:42 could be also nfc Aug 21 19:35:53 orbyt_ seems though elevation changes ? Aug 21 19:35:58 internet, local network Aug 21 19:36:11 to be precise, sending data to a python script Aug 21 19:37:19 raw sockets seem low level Aug 21 19:37:45 it's just sending over json strings Aug 21 19:38:10 phone sends an wifi access point scan to the script, the script sends back the location Aug 21 19:38:12 StingRay_: yes, which is what its supposed to be doing. I'm animating the elevation with how much you've scrolled. The issue is, that snapping effect of the shadow should not be happeneing Aug 21 19:38:20 heres the code: https://stackoverflow.com/questions/39068133/pagetransformer-has-snapping-effect-when-animating-elevation Aug 21 19:39:09 so it'd be phone sending AP data > python script does calculations > python script sends back room name > phone receives it and some other data Aug 21 19:43:18 ah Aug 21 19:43:36 if its json you could try with retrofit Aug 21 19:48:54 Ashiren: it's just small data wrapped in JSON is all Aug 21 19:49:36 is it some small private project Aug 21 19:49:43 then youre good to go with sockets Aug 21 19:58:00 ReScO, if it's a python script on a webserver somewhere, json is definitely the easiest route I think Aug 21 19:58:29 and if it's a local python script, you'd almost be easier off just setting up a python webserver to handle json, too Aug 21 19:59:07 SimpleHTTPServer bound to some rando port on localhost (I assume in this case you're running a python interpreter inside your app) would probably do the trick Aug 21 20:09:39 dragorn: python runs on my desktop Aug 21 20:10:06 has more processing power, so i assumed i'd take as much load off of the phone as possible Aug 21 20:11:12 ReScO, yep, tho depending on your lookup your phone OUGHT to be able to handle it fine; probably a lot easier to port over to java Aug 21 20:11:17 than to try to run python on the phone Aug 21 20:11:54 but no reason to change the arch if you don't really want to; i'd look into python SimpleHTTPServer and bring up a webserver in your desktop script to handle json Aug 21 20:12:05 and just use retrofit or gson on android to send requests to it Aug 21 20:12:19 (and get formed responses back) Aug 21 20:12:27 you can more or less throw json into python dictionary objects trivially Aug 21 20:19:29 hm, might look into that, other question, i've got a MFAxes object, which holds a X Y and Z value, i'm adding 10 MFAxes to a List and now want to calculate averages of X, Y and Z. what is the best approach? Aug 21 20:20:59 Aug 21 20:23:57 ReScO, I'd just make it a class to hold the three values probably, java doesn't really understand tuples so you can't make it just an anonymous tuple/list like you would it python. You could of course always make it a list of lists, I suppose. I don't imagine either is hugely more efficient or inefficient, unless you're operating on gigantic amounts of data Aug 21 20:24:32 ReScO, in other words, for less than 100k records, I doubt you'd be able to prove much one way or the other :) Aug 21 20:31:00 i can't solve this: (api 21+) padding appears on the left of Preferences programmatically added to a PreferenceCategory Aug 21 20:31:25 if the Preference is added in the xml, no padding is added Aug 21 20:36:42 dragorn: it's just for magnetic field mapping alongside a RSSI fingerprint db for indoor positioning Aug 21 20:37:07 I'm using an ImageView with wrap content so the image displays the size it is, image comes from Picasso http, the images seem small, not the same size if I view them in the browser for example Aug 21 20:37:19 only thing the phone needs to do is send over the mac, ssid, frequency and rssi of all available AP's, and the magnetic field data Aug 21 20:38:31 the desktop, with the python script, does some magic with leprechauns and stuff, then comes up with the location of the phone in my house, simplified explanation ofc, and sends the location to the phone (aesthetics, so i can see if the system works while walking around) Aug 21 20:38:50 basically, it's only room level detection, living room, hallway, bedroom, that kinda yadda Aug 21 20:43:23 bitkiller hm, recall a blog recently - one sec Aug 21 20:44:05 bitkiller maybe this will help , been a few since i read it https://medium.com/@arasthel92/dynamically-creating-preferences-on-android-ecc56e4f0789#.xevwsn1kl Aug 21 20:44:46 probably have to use ContentThemeWrapper there Aug 21 20:44:55 maybe its not picking up some attribute Aug 21 20:54:07 Andre483 stay on main channel Aug 21 20:55:27 I'v found that if I set the ImageView height/width in dp, the images show up the same size as they do in the browser. problem is the images are loaded in with picasso so Im unsure how I could change the ImageView h/w Aug 21 20:55:46 i saw that post earlier. i'll take a look again, maybe i overlooked something Aug 21 20:55:57 ^ g00s Aug 21 20:56:13 <_genuser_> damn channel with its identified-only rule. Aug 21 20:56:55 <_genuser_> anybody using fcm for notifications? moving from old gcm? Aug 21 20:58:40 _genuser_ not yet, thought about it Aug 21 20:58:46 switch seems trivial Aug 21 20:59:05 g = f and endpoint gcm = fcm :) Aug 21 20:59:27 <_genuser_> StingRay_: since I haven't used either, I guess I just got the impression that I had a lot more to learn with the changes. Aug 21 20:59:43 not at all Aug 21 20:59:51 <_genuser_> I get hung up on the design aspect. probably running thru a sample will help me get going. Aug 21 21:01:48 <_genuser_> so is the firebase the same as firebase.io that was debuted a while ago. Aug 21 21:03:38 <_genuser_> "You can compose and send messages using the app server or the Notifications console." - wonder if you can send a message from an app itself. Aug 21 21:03:45 <_genuser_> sort user-to-user messaging. Aug 21 21:04:18 well I dont use it for that, but would be easy enough Aug 21 21:04:43 <_genuser_> StingRay_: sounds like I should just run thru a sample app, get the feel and then import code into my real app. Aug 21 21:04:48 I personally would not expose the reg token to a client device Aug 21 21:04:53 <_genuser_> https://firebase.google.com/docs/cloud-messaging/ - makes it sound simple enough Aug 21 21:05:07 <_genuser_> StingRay_: ah, I see. Aug 21 21:05:11 but a web server simply doing the message call is fine Aug 21 21:05:29 <_genuser_> reg token is where you're authentication with the fcm background? Aug 21 21:05:45 auth is a wrong term for that I think Aug 21 21:05:53 Anyone familiar with PAgeTransformers mind looking at this: http://stackoverflow.com/questions/39068133/pagetransformer-has-snapping-effect-when-animating-elevation Aug 21 21:06:03 PageTransformers* Aug 21 21:06:06 <_genuser_> StingRay_: I picked it up from the link above. :) heh Aug 21 21:06:44 _genuser_ maybe...personally no though :) Aug 21 21:06:46 <_genuser_> StingRay_: is it possible for the .apk to get hacked/exposed to the person can get the reg token from it? Aug 21 21:06:58 no, well yes, depends Aug 21 21:06:59 <_genuser_> StingRay_: on rooted devices, I assume this is possible. Aug 21 21:07:24 you have an app auth key....then you do a register that gives you f/gcm reg token Aug 21 21:07:55 <_genuser_> the app auth key is specific to your app, tho. correct? Aug 21 21:07:58 that token represents the endpoint from the web api call to gcm.google****** blaaaa I forget, our server guys do this Aug 21 21:08:12 _genuser_ to the package path/userid for the app yes Aug 21 21:08:31 not sure if you did diff package paths with shared userid though.... Aug 21 21:08:34 never tried Aug 21 21:09:05 <_genuser_> StingRay_: so it sounds like, I should send user credentials to my webservices, which authenticates the user, when uses fcm to generate the message to the recipient. Aug 21 21:09:37 you will have to store the reg token against "something" on your server Aug 21 21:10:19 <_genuser_> StingRay_: hmm, reg token is just login session specific, like any other reg token, no? Aug 21 21:10:34 no Aug 21 21:10:48 life of the current GCM/FCM bond Aug 21 21:11:02 <_genuser_> StingRay_: ok, now it just sounds like I'm asking questions to learn the fcm architecture. I should probably read the documentation first. Aug 21 21:11:08 <_genuser_> :) Aug 21 21:11:11 that can be broken by a few things, but you get to handle the event and update your server if needed Aug 21 21:11:33 <_genuser_> I was really trying to avoid having a middle webservice layer. Aug 21 21:11:53 <_genuser_> to users can just go user to user. and I get to avoid having to setup a web app and host it, etc. etc. Aug 21 21:12:15 how would that work from a From To ? Aug 21 21:12:24 you would always need something ??? Aug 21 21:12:44 Hello everyone! I’m starting to learn Android development and wanted to replicate this UI for a custom object (i.e. a new “Reminder” object). Can I still use the Preference API even though it’s not really a preference? Aug 21 21:13:01 <_genuser_> StingRay_: I see. again I need to read this whole documentation. I guess I was assuming that given a phone number, you can send it a gcm. Aug 21 21:13:20 what ties the two and how does a client device know that ? Aug 21 21:13:45 would always be a webcall...you cannot simply say, send to this number as a gcm Aug 21 21:14:13 <_genuser_> well, I was assuming you can do, fcm.sendMessage('555-555-5555', 'hello'); and it will generate an intent or something on the other end that your app is registered to handle, etc. etc. Aug 21 21:14:44 <_genuser_> sort of like activities. but again, I am gonna read it first. Aug 21 21:14:47 that would mean google would store gcm/fcm against actual network/locale/intl. numbers Aug 21 21:15:10 I'd like to say they dont do that, but they 100% would not admit doing that or allow access to it :) Aug 21 21:15:48 <_genuser_> StingRay_: teh "app server" part, does google have free hosting for stuff like that? Aug 21 21:16:06 no Aug 21 21:16:10 well, I dont think so Aug 21 21:16:16 <_genuser_> I know they have a huge google cloud thing where you can develop and host web apps, I just never looked into that whole offering. Aug 21 21:16:26 <_genuser_> the google app server stuff? Aug 21 21:16:49 oh yeah you can, i dont deal with hosting.... so not really looked into it Aug 21 21:17:07 I can say that our hosting bill is £152k per month though Aug 21 21:17:14 but thats about all I know :) Aug 21 21:17:20 <_genuser_> https://cloud.google.com/appengine/docs that stuff. Aug 21 21:17:28 <_genuser_> 152K USD? Aug 21 21:17:34 GBP Aug 21 21:17:47 so $185k ish Aug 21 21:17:54 cause GBP is a bit down still Aug 21 21:18:10 <_genuser_> 152,000 pounds? Aug 21 21:18:10 <_genuser_> that's a looooooooot Aug 21 21:18:27 just a bit.....we have some pretty large clients Aug 21 21:18:34 still way too much to pay though Aug 21 21:18:45 <_genuser_> wow, is it something well known app you guys work on? Or does you web bill include other stuff too? Aug 21 21:19:06 other stuff, it's a whole platform Aug 21 21:19:13 that apps are a small part of it Aug 21 21:19:29 <_genuser_> I see. very nice. Aug 21 21:19:52 <_genuser_> the thing I dislike about these "pay as you go" pricing models is that you can't get an accurate # of how much you'll spend. Aug 21 21:20:02 <_genuser_> and being a control freak doesn't help with that. Aug 21 21:20:35 I know, our lead android dev looked at app engine hosting and thought, "fk this" just on the fact it got too complex to understand the potential costs Aug 21 21:21:07 <_genuser_> for my initial dev costs and personal use, it will be probably much cheaper than hosting it somewhere. But I like having concrete #s Aug 21 21:22:20 <_genuser_> I also kinda don't like giving google personal information about payment, etc. etc. Aug 21 21:22:40 bit screwed if you want to sell or have iap then Aug 21 21:22:44 <_genuser_> but let's be honset they already know that. besides I have a dev account and 1 published app, so they know that. Aug 21 21:22:55 or buy from the playstore Aug 21 21:23:19 <_genuser_> I don't buy from playstore. but I did have to pay $25 for dev access because I want to publish one app. Aug 21 21:23:42 <_genuser_> and after publishing it, I completely lost interest in that app, heh. it's still out there. I doubt anyone's still using it. Aug 21 21:27:29 g00s, even IoT relaxes for the summer http://spectrum.ieee.org/tech-talk/telecom/wireless/are-your-apps-sluggish-blame-summer Aug 21 21:34:25 <_genuser_> damn, some dev decided that AndroidStudio should manage my mercurial repo, and it keeps popping up "clippy" style messages. Aug 21 21:34:36 <_genuser_> and I'm like, "can I just get to my project already?" Aug 21 21:37:43 <_genuser_> Could not find com.google.firebase:firebase-messaging: Aug 21 21:38:49 <_genuser_> searched in following locations: https://jcenter.bintray.com/com/google/firebase/firebase-messaging//firebase-messaging-.{pom,jar} Aug 21 21:41:18 <_genuser_> ah, need to install play services and google repository. Aug 21 23:13:29 Is there a simple API that I can use for testing purposes? Aug 21 23:18:25 <_genuser_> wth, my devices is plugged in and my computer fails to see it. even tho usb debugging is enabled. Aug 21 23:37:53 Hi. I got a stupid problem.... Which one of you guys might help with. Pocket Paint. App. Draws png's. Makes background transparent. Android 4.4 Gallery HATES transparent images. Sets the background to black. So my pocket paint scribbles are ... well, big solid chunks of black. Aug 21 23:39:32 Do I have to, like... Make my own gallery app that supports transparent backgrounds? Edit the gallery app to add support? Anyone dealt with this problem? Aug 21 23:40:54 AlucardFH: this is a application development channel. Use #android Aug 21 23:41:23 arancio: I did already. :l Aug 21 23:41:43 arancio: Try reading what I asked. Aug 21 23:43:15 You could make your own gallery if you wanted, but that seems overkill. You can't edit someone else's app o support it unless you have the source code. Best option is to find another gallery app that works for you Aug 21 23:44:04 I tried, literally, all of them. None of them support transparent backgrounds. They just set it to the theme>backgroundcolor. Which is black in KitKat 4.4 Aug 21 23:44:19 And KitKat 4.4 doesn't have support for changing theme, afaik. Rooting ain't an option. Aug 21 23:45:04 I'm pretty sure the default gallery app's source code is available. Sadly not in Xamarin form... Aug 21 23:47:03 ... So. None of you got any hints or tips to help? Can the Gallery app have plugins or something? A simple app that can hack a setting and fix this? Anything? Aug 21 23:47:54 AlucardFH: Sorry. I read only half of it. Really sorry. I'm not well. Aug 21 23:48:49 he really is asking only usage questions, not dev questions Aug 21 23:49:21 his development questions are quite vague, indeed Aug 21 23:49:49 Usually, people who know how to develop things can chip in with suggestions like "Oh, the stock gallery app has an API for plugins" Aug 21 23:50:04 Or, "Oh, I ran into that problem and devved a fix for it" Aug 21 23:50:10 theyre not "how do i dev"; at best theyre like "should I dev" Aug 21 23:50:36 Theyre very extremely so "how do I dev" Aug 21 23:50:47 Because I got no god damn clue if Gallery has anything like an API that will make my day easier. Aug 21 23:50:56 * they are extremelly so "how do I use" Aug 21 23:50:56 Or if the android system itself has an API I can use to tweak the theme or whatever. Aug 21 23:51:02 AlucardFH: maybe there are no plugin APIs or maybe no one used them. If anybody knows something, they'll reply Aug 21 23:51:23 arancio: Ah, there we go, the reason I'm still here. And why MjrTom is fucking stupid. Aug 21 23:51:59 Meanwhile I'll be ripping off the stock gallery source code, which I assume is this: https://android.googlesource.com/platform/packages/apps/Gallery/ Aug 21 23:52:20 And giving it a basic tweak to the display code. Aug 21 23:54:38 Bloody hell windows 10 anniversary update fucked up the kernel Aug 21 23:59:35 ... What's a +o ? Aug 21 23:59:54 operator Aug 22 00:00:04 <_genuser_> that guy with +o is the guy you want to mouth off to. Aug 22 00:00:08 Oh. That makes sense. Aug 22 00:00:16 ... "mouth off to"..? Aug 22 00:00:40 <_genuser_> mouthing off at someone is insulting them or being disrespectful to them. :) just a joke. Aug 22 00:00:56 Oh. right. Aug 22 00:01:10 such as calling them fucking stupid Aug 22 00:01:25 Technically, ops are the biggest shits tho. They got the big dick from being op. So they are "easily irritable", suspicious innit? Aug 22 00:01:26 very abusive Aug 22 00:01:34 <_genuser_> heh. Aug 22 00:02:08 Honestly, there shouldn't be a law saying that you need to put extra respect against cops and etc. It's bull. Aug 22 00:02:23 They're a person just like anyone else. the hell's with extra protection Aug 22 00:02:42 *ranting here while waiting for some spiel to install* Aug 22 00:03:13 <_genuser_> there shoudl be law against people disrespecting anyone period. Aug 22 00:03:26 <_genuser_> people today walk around thinking they're the big sh|t, and they can do whatever. Aug 22 00:03:29 <_genuser_> pfft. Aug 22 00:03:35 Ay, getting awfully dodgy there, gov. Respecting people not worthy of respect? Donno bout that. Aug 22 00:03:52 I could do something dodgy, and get you arrested for not respecting me, innit? Aug 22 00:03:53 actually there is: "Swearing, threatening, name-calling, etc. will not be tolerated" Aug 22 00:04:16 <_genuser_> judging who is and isn't worthy of respect then goes into "who made you the judge". that question is in sync with your own question of "who made you teh authority". Aug 22 00:04:33 There's nothing wrong about disrespecting someone, free speech and all. Just don't do it here. Aug 22 00:04:36 Ay, now I'm a mindless drone who can't judge? Aug 22 00:04:48 _genuser_: You amuse me. Aug 22 00:04:50 <_genuser_> so bottom line, get along with people, and let's do something productive. Aug 22 00:04:57 Now back on topic. Aug 22 00:05:17 <_genuser_> CedricBeust: sorry about that. Aug 22 00:05:19 <_genuser_> DFFT, eh? Aug 22 00:05:24 Entertainment is productive though? CedricBeust the topic here is, do you know of a fancy way to hack 4.4 kitkat gallery into not making transparent png backgrounds a solid black Aug 22 00:05:44 Or I have to 'git' the gallery and make my own fork ): Aug 22 00:05:51 you think i should be entertained by you calling me fucking stupid? Aug 22 00:05:55 AlucardFH: just as a reference: I'm considered trollish here. Since you entered the channel I gained 120 karma points. Aug 22 00:06:06 arancio: Glad I could help, gov. Aug 22 00:06:21 MjrTom: Call me a mug back then and have it over, innit? Aug 22 00:06:53 thats not how reaonable people do it, and I was under the impression it wasn't tolerated here, but apparently it is Aug 22 00:07:00 * g00s yawns Aug 22 00:07:02 Ok enough now. Aug 22 00:07:31 CedricBeust: Just wanted to say, you get my respect. You don't support badgering and nitpicking. Aug 22 00:08:58 ... I take it there's no program that translates Java code into Xamarin automatically? Aug 22 00:10:23 Im lazy, can I just pay someone 50$ to do this for me, I hate java ;_; Aug 22 00:12:24 oh my god do I seriously need to create a git account just to download the damn thing Aug 22 00:12:34 ugh i hate open source neckbeards and their stupid hurdles Aug 22 00:12:55 sexy: https://gfycat.com/HarmfulVioletAfricanmolesnake Aug 22 00:15:23 a good start to the week here... Aug 22 00:16:03 still 5pm here :/ Aug 22 00:18:42 Well I got a legit android-dev question, since android = java. Anyone know how to load an android project in visual studio? Aug 22 00:21:54 well, nothing's working because fucking windows 10 anniversary update. rolling back, bye. Aug 22 00:23:08 well, wasn't he a nice cheerful positive person Aug 22 00:26:01 lol Aug 22 00:28:31 CedricBeust, small demo of my new dsl https://gist.github.com/pfn/e82a9c11d0bd5761837037eabe6a2685 Aug 22 00:46:05 <_genuser_> heh, that kinda person always helps you see from an objective pov what an a$$h@t you're being when you act like that. Aug 22 00:46:13 <_genuser_> good reminder. Aug 22 00:46:43 <_genuser_> ok, back to trying to get my device recognized by my computer... Aug 22 00:51:57 pfn: Looks more to me like straight Scala than a DSL, is this an attempt to do Anko in Scala? Aug 22 00:56:07 <_genuser_> compile 'com.google.android.gms:play-services:9.4.0' Aug 22 00:56:18 <_genuser_> can one leave the versin number off and have the latest version grabbed automatically? Aug 22 00:56:38 <_genuser_> or maybe do 9.4.0+ ? Aug 22 00:57:28 @CedricBeust, not anko, anko doesn't solve the same problem Aug 22 01:06:23 I don't know much about anko other than it doesn't solve the issue of addressability that I want solved Aug 22 01:26:07 ie, once you setup the views, you never have a handle to access then afterward, unless you use mutable vars or nullable access Aug 22 01:40:03 hi ~ Aug 22 01:40:14 in android 2.3.3, how to sendBroadcast Aug 22 01:44:04 same as in any version of Android Aug 22 01:45:45 Arx`` the bigger Q is ,why are you using 2.3.3 Aug 22 01:47:00 because i'am not hardware engineer, Aug 22 01:47:42 my system engineer said the our hardware's resource is too low to run high version android os Aug 22 01:48:56 i run my code in api-20, it's ok, but in android 2.3.3 the boradcast is not ok Aug 22 01:49:31 pfn: would love to see an article about the two approaches, looks like both Scala and Anko have pros and cons for this, wonder if we can find a best of both worlds Aug 22 01:50:50 @CedricBeust, if I ever get around to writing articles, this will probably be among them Aug 22 01:55:19 pfn: Looking forward to it Aug 22 01:55:42 <_genuser_> hmmm, can't get my device to be recognize by my computer. but this smart lock thing looks good. Aug 22 01:56:00 <_genuser_> smart lock for passwords, sounds like I might benefit from it. Aug 22 02:10:15 does samsung have any tizen phones out? seems tey may be launching z2 on tuesday Aug 22 02:24:11 CedricBeust, I also have a TypedViewHolder solution which is pretty amazing Aug 22 02:38:55 <_genuser_> guys help me figure this out please. usb debugging is enabled. phone is on wifi, has an ip of X. adb tcpip 5555; adb connect X isn't connecting it. Aug 22 02:39:58 <_genuser_> I'm completely baffled by it. Aug 22 02:40:33 i'd expect it to work Aug 22 02:41:08 if "install wireshark, sniff your connect, and see where it's failing" isn't complete nonsense to you, try that Aug 22 02:41:23 if that makes no sense, I'm not sure how to best explain it and it's fairly late so I'm not going to start, but google might help Aug 22 02:41:37 does it immediately fail, or does it hang Aug 22 02:42:14 <_genuser_> dragorn: well, wireshark and analyze packet traffic makes sense. I do hate looking thru WS packets, it's a looot of stuff to go thru :) Aug 22 02:42:33 <_genuser_> and since this phone has always worked and just decided to quit now, and I've rebooted it, I figured it's probably config specific. Aug 22 02:42:57 _genuser_, filter by port 5555 and look for tcp reset or somethig, if you go the wireshark route Aug 22 02:43:00 did you test with telnet Aug 22 02:43:05 <_genuser_> I'll google more then. Even the USB connection over the wire isn't being recognized. I'm thinking something's off with the phone. Aug 22 02:43:05 should drastically cut down the # of packets Aug 22 02:43:14 oh; yeah if you can't connect over usb either something is hosed Aug 22 02:43:22 <_genuser_> dragorn: ah, will have to do that then. Aug 22 02:43:33 <_genuser_> bankai_: telnet to the IP X at 5555? Aug 22 02:43:34 you didn't mention your host; perhaps your drivers for the phone (if windows) Aug 22 02:43:40 bankai_, yeah that's a good idea Aug 22 02:43:55 but if usb is horked too then it may not even be turning on adb over net Aug 22 02:43:57 <_genuser_> dragorn: win7 host. have dev'd against this phone for over a year. drivers' by samsung all installed. Aug 22 02:44:53 <_genuser_> ooooooh, finally adb devices -l is picking something up! Aug 22 02:44:54 I know jack-all about windows, but i'd check to see if nothing updated your drivers. I assume the same usb cable you always use? Didn't somehow get swapped for a charge-only cable? Got any others to test? Aug 22 02:45:54 <_genuser_> ok, usb connection is recognized by adb and by AS. Aug 22 02:46:38 <_genuser_> so I'm willing to bet that it's the usb connector. It keeps cutting in/out and playing the connect/disconnect ping on windows. which is probably also wreaking havoc on teh wifi debugging. Aug 22 02:47:51 i forget if reconnecting usb shuts off tcp Aug 22 02:47:54 but it's a good bet Aug 22 02:48:18 <_genuser_> I think it does. everytime I reset it, I have to turn it on again. Aug 22 02:48:32 <_genuser_> and I had to now reset wifi on the phone. Aug 22 02:48:48 <_genuser_> apparently, the phone wifi also stops accepting incoming connections once it's been idle for a while. Aug 22 02:49:08 <_genuser_> I hate how wifi stuff will allow outgoing connections but stop responding to incomign connections after a while. Aug 22 02:49:56 <_genuser_> on the other hand as soon as said it worked like 5min ago, AS has been trying to build the project (blank project) since then. heh, I hate AS too. takes 5-10 minutes sometimes to build a simple proj. Aug 22 02:50:17 <_genuser_> it's a 6core, 2.6GHz cpu. for crying out loud. 8GB RAM (not a lot but not too less either) Aug 22 02:55:43 <_genuser_> lol, a whole 10minutes and gradle is still building the template project! Aug 22 02:55:55 <_genuser_> I need a faster computer. Probably adding more RAM will help. Aug 22 02:58:12 <_genuser_> is there any incremental build options in AS/Gradle that I could enable? Aug 22 02:58:19 <_genuser_> ugh, sorry, let me googel that actually. **** ENDING LOGGING AT Mon Aug 22 02:59:59 2016