**** BEGIN LOGGING AT Tue Dec 20 03:00:02 2016 Dec 20 03:47:28 Someone on linkedin wants to talk to me Dec 20 03:49:12 the other day i tried sending an inMail to somebody i knew (not connected) and seems its a premium feature now. probably has been for a while Dec 20 03:49:32 so i had to send a link request and put the message in the body :P Dec 20 03:49:53 back in 2009 linkedIn was kinda cool Dec 20 03:49:55 was Dec 20 03:50:36 another area i would think something like tim-berners lee / pods and distributed information would replace an information silo Dec 20 03:51:12 didn't MS buy linkedIN ? Dec 20 03:57:37 g00s: They also own Skype too Dec 20 03:57:48 yeah Dec 20 04:03:54 Yes MS bought Linkedin Dec 20 04:04:29 I went to a Best Buy which has Oculus demos today but they said "the guy is not here" Dec 20 04:04:37 lol Dec 20 04:04:42 'the guy' Dec 20 04:04:56 As in there's a single guy that works 9-5 monday-friday that demos the oculus Dec 20 04:05:02 otherwise you're SOL Dec 20 04:06:44 i went into a store the other day and got told something similar for the vive - "Oh yeah you'll need to talk to Hayden, he's done all the training on that" *blank look* (nfi who this hayden person was) Dec 20 04:07:13 I got a Vive demo recently at a Microsoft Store, it was really cool - the first time I tried modern VR Dec 20 04:08:10 It put me in a wizard's workshop, and there was a xylophone and mallet, and I played Mary Had A Little Lamb with the virtual mallet on the virtual xylophone and it played over the stores speakers Dec 20 04:09:03 I also had the immersion presence experience, especially in stopping it and coming back to reality being weird...VR is definitely here Dec 20 04:21:41 i don't see VR as useful for anything game-wise Dec 20 04:21:54 medical? hell yes. military? yep, for sure. Dec 20 04:22:01 games? eh... not really Dec 20 04:24:14 it's good fun Dec 20 04:27:42 Ologn http://www.tomshardware.com/news/mainstream-vr-hmds-intel-microsoft,33217.html Dec 20 04:39:40 Ologn :D http://digg.com/video/augmented-reality-future Dec 20 04:39:46 The HP HMD...hmm Dec 20 04:42:21 The problem is things get wrecked, which is natural enough Dec 20 04:42:32 The Internet was in many ways much cooler in 1989... Dec 20 04:42:50 I mean they more or less shut down Usenet and so forth... Dec 20 05:00:54 i wonder how close that video will be to the future Dec 20 05:01:08 'i studied to be a teature but i'm doing somebody grocery shopping' Dec 20 05:01:17 aka uber / gig economy Dec 20 05:01:48 s/feature/teacher Dec 20 05:32:06 Ologn hope you aren't thinking about vr games Dec 20 05:32:37 I'm overcommitted already' Dec 20 05:44:01 thats good; i read the other day nobody was making money in that area ;) Dec 20 05:44:11 g00s: life for normal people will be exactly like that. Your life will be programming the same shit on another shitty platform by google Dec 20 05:45:13 g00s: in VR? Dec 20 05:45:26 Lvl4Sword yeah Dec 20 05:45:34 i stand by what i said. military and health will take VR by storm, but games will be lame. Dec 20 05:46:00 "how many cups can you flip in 60 seconds" Dec 20 05:46:23 http://motherboard.vice.com/read/its-really-hard-to-make-money-with-virtual-reality-games Dec 20 05:50:18 Ologn ^^^ Dec 20 05:52:18 Still early days for vr Dec 20 05:52:22 Still early days for mobile Dec 20 05:52:49 Sundar said this summer we are entering post-mobile era Dec 20 05:53:43 “The last 10 years have been about building a world that is mobile-first. In the next 10 years, we will shift to a world that is AI-first.” Dec 20 05:53:52 hype Dec 20 05:54:10 i'm completely indifferent to my phone these days haha Dec 20 05:54:16 leave it home when i go walking Dec 20 05:56:23 I'm indifferent in the sense that I look at newer, 'better' phones than mine, and I can't imagine anything I could/would do with them that I can't already do Dec 20 06:02:52 Leeds i'll take an updated n7 tho :D Dec 20 06:03:29 if google does a pixel tablet, tho, it will probably follow the formula of the phones and not be very affordable Dec 20 06:04:02 so then there is the nvidia k1, but that ships with 6.0, and my n7 has that Dec 20 06:04:10 what a mess Dec 20 06:04:49 tablets are dead, apparently Dec 20 06:05:37 I do want to buy a new tablet, but there just hasn't been anything released in the past year+ that's worth buying, AFAICT Dec 20 06:07:10 why not a laptop? Dec 20 06:10:08 too big and heavy to use in bed, in small plane seats, etc. Dec 20 06:10:50 I've got a laptop and a chromebook already... Dec 20 06:14:15 g00s: I know someone who has a k1, and it's kind of bulky tbh Dec 20 06:14:29 VERY VERY VERY loud sound though, like holy crap Dec 20 06:14:37 dual speakers ftw Dec 20 06:14:44 yeah, it's good value for what it is, but it's not a great general-purpose device... big bezels, bit chunky Dec 20 06:16:30 it's also 2.5 years old at this point, given the K1 isn't even really a refresh Dec 20 06:18:27 seems like google just gave up (in tablets) Dec 20 06:18:41 everyone did Dec 20 06:18:42 i blame their crappy apis Dec 20 06:19:35 at the end, most apps looked like big phone apps Dec 20 06:19:57 on my n7, even google apps seem like 'meh, pretend this is a phone' Dec 20 06:21:30 there are really 3 - or even 4 - sizes that matter, I think... small phone, big phone, small tablet, big tablet Dec 20 06:24:10 on a portrait 7" screen, you just want to show more information, on a landscape 10+" screen you need a different UI Dec 20 06:25:54 incidentally, you now have both B&N and Amazon selling 7" tablets for $50... that's stupidly cheap Dec 20 06:26:39 probably at a loss right? kindle showing adds; i think you can pay extra to have ads turned off Dec 20 06:27:21 the B&N one is apparently very close to stock Dec 20 06:32:31 Would anyone know why I get null and this function fails: http://pastebin.com/UPVuQqnF Dec 20 06:33:23 android.net.uri Dec 20 06:36:10 <_rm> aaron__: what do the docs say Dec 20 06:37:45 This? https://developer.android.com/reference/android/net/Uri.html#parse(java.lang.String) Dec 20 06:37:48 _rm Dec 20 06:38:02 <_rm> getPath() Dec 20 06:38:27 <_rm> that was your problem, right? Dec 20 06:39:23 tbh I don't know. Is the URI not valid? is it not hierarchical? Dec 20 06:39:50 <_rm> i'd assume that either or :) Dec 20 06:40:15 setDataSource just takes a Uri Dec 20 06:40:21 But that gives me an invalid argument crash Dec 20 06:40:37 <_rm> you could take a peek into that code to see what it expects Dec 20 06:41:14 If I uri starts with Spotify is that like a registered name on dns servers or something? Dec 20 06:41:54 <_rm> the docs for setDataSource say that you get an IllegalArgumentException "if the Uri is invalid" Dec 20 06:42:46 <_rm> i'm not familiar with this framework at all, so what type of uris does MediaMetadataRetriever expect? Dec 20 06:45:40 I'm not sure, I'm so confused. The spotify SDk has functions like player.playUri() and it takes a URI such as "spotify:track:6ORqU0bHbVCRjXm9AjyHyZ" and plays fine Dec 20 06:47:36 <_rm> yeah but that's an android framework Dec 20 06:48:08 <_rm> so i don't know if it expects like just file or http urls, or if anything the installed apps support is fine Dec 20 06:51:16 * thepoosh raoul11s raoul11 Dec 20 06:51:44 * raoul11 thepooshes thepoosh Dec 20 06:51:45 boker Dec 20 06:51:50 hmm Dec 20 06:52:08 top of the morning to you Dec 20 06:52:13 aaron__: indeed Dec 20 06:52:22 raoul11: I'm so glad I'm back from berlin Dec 20 06:52:28 and not holiday shopping Dec 20 06:53:08 \: Dec 20 06:53:18 morning :p Dec 20 06:53:30 what's news? Dec 20 06:55:33 finally managed to hack this api to do what i want thepoosh Dec 20 06:55:38 raped it proper Dec 20 06:55:42 which one? Dec 20 06:55:48 and I hope you baught it dinner Dec 20 06:55:55 the mBaas one Dec 20 06:56:03 with the leaderboards nd shit Dec 20 06:56:47 https://www.youtube.com/watch?v=-VpYkURlVHw Dec 20 07:28:54 _rm the only uri's I've dealt with are spotify:track:id but are there other types of uri's? Dec 20 07:29:26 I don't understand how spotify:track:id is enough info to connect to the net and get metadata off spotify servers Dec 20 07:29:58 <_rm> aaron__: it is enough for spotify :) Dec 20 07:30:00 <_rm> not for anyone else Dec 20 07:30:57 how though? because MediaMetaDataRetriver isn't part of the spotify sdk. So is the first part of the uri that's "spotify" looked up on dns servers or something? I don't fully understand how uri's work :( Dec 20 07:31:25 <_rm> an URI can be anything, like http://example.com or mailto:alice@example.com Dec 20 07:31:52 <_rm> so my guess is that the android sdk doesn't know what to do with the spotify uri Dec 20 07:31:56 Yeah but where's it trying to get the metadata from Dec 20 07:32:08 am I supposed to have the spotify app installed maybe Dec 20 07:32:17 <_rm> that's like 100% certain Dec 20 07:32:20 o.o Dec 20 07:32:30 <_rm> how else would android know about spotify Dec 20 07:32:33 <_rm> it's not some universal service Dec 20 07:32:42 that's... that's what I didn't get. Dec 20 07:32:49 I thought it new about it through my app and the useof the sdk Dec 20 07:32:52 knew Dec 20 07:34:49 <_rm> does your app include the spotify sdk? Dec 20 07:34:55 how do I change the background color of a PreferenceActivity dynamically? Dec 20 07:35:42 Yeah Dec 20 07:35:51 Everything works too, playback, login, auth etc Dec 20 07:35:58 Installed spotify app. Didn't help Dec 20 07:36:12 I asked here too: http://stackoverflow.com/questions/41233477/how-can-i-get-song-metadata-without-using-playuri-using-the-android-sdk Dec 20 07:36:21 hey guys, any RxJava2, Retrofit/Flowable fans here? Dec 20 07:36:27 Not that it helps but yah :p Dec 20 07:38:10 <_rm> aaron__: oh ok, i didn't realize. could be that it should work. don't know anything about the spotify sdk Dec 20 07:39:16 Me neither :p Dec 20 07:39:38 I'm out of ideas. Do you know anything else I could try? Dec 20 07:41:23 <_rm> nope, sorry Dec 20 07:41:46 D: Dec 20 07:48:04 shipit: is this a survey? Dec 20 07:49:13 no thepoosh, I wired up Retrofit/Flowable to a noisy stream, it gives me one element and then quits Dec 20 07:54:37 logs? Dec 20 07:54:50 did you add an interceptor to the HttpClient? Dec 20 07:55:09 is there a crash? Dec 20 07:55:29 what happens when you simulate the request from curl Dec 20 07:55:56 thepoosh: web requests are working, and GsonConverterFactory as well. I'm supposed to receive 1000s of lines/second but I get only one. Dec 20 07:56:32 as I said, try adding an interceptor to the OkHttp client and see what's going on there Dec 20 07:56:40 and check the logs to see if there is a parsing issue Dec 20 07:56:41 thepoosh: for whatever reason OkHttpClient is causing connect timeout :/ Dec 20 07:56:55 it's not the client, it's your server Dec 20 07:57:29 thepoosh: this is a streaming server that I have no control over -- so I think Retrofit doesn't like the headers etc Dec 20 07:57:42 I'll have to write my own http client Dec 20 07:57:45 that doesn't make sense Dec 20 07:57:57 and you should defintly not write your own client Dec 20 07:58:09 if you want a different client, maybe try Volley Dec 20 07:58:29 thepoosh: I have implemented an uber api client w/ Retrofit -- no problems there Dec 20 07:58:56 thepoosh: this is a high volume server, that's not following rules Dec 20 07:59:32 thepoosh: and I'm trying to use Flowable with backpressure support, it's for this very use case Dec 20 08:55:46 _rm got it... ended up using webapi haha Dec 20 10:17:59 Hi, has any of you published apps on getjar ? Dec 20 10:20:22 why on earth would you do that? Dec 20 10:21:16 That store seems dead. I submitted an app like ages ago and it stays under review. And they don't seem to answer emails. Dec 20 10:24:10 Leeds http://i.imgur.com/ZVXECMQ.png Dec 20 10:26:26 yeah, but... getjar, of all the options? at least mikandi had porn... Dec 20 10:28:32 oh yeah ? Dec 20 10:28:35 hehe Dec 20 10:28:57 Which app stores are good to try ? Dec 20 10:30:07 Do you make money at mikandi Leeds ? Dec 20 10:30:20 NeoFrontier: I do not Dec 20 10:31:12 I'm looking for an app developer group.. Dec 20 10:31:13 NeoFrontier: do you have a porn app? Dec 20 10:31:39 I was wondering if anyone could suggest a good forum to join. Dec 20 10:31:42 No. Dec 20 10:31:56 well we are app developer group here :v Dec 20 10:31:56 v Dec 20 10:32:49 NeoFrontier: then mikandi might not be for you Dec 20 10:32:56 unless you want to get into porn Dec 20 10:33:07 ummm Dec 20 10:33:32 there's more money in it than app dev Dec 20 10:34:09 how can you tell Dec 20 10:34:15 theres more money in flipping burgers Dec 20 10:34:18 than in app dev Dec 20 10:34:19 lol Dec 20 10:34:20 Yeah how can you tell. Dec 20 10:34:24 why not both Dec 20 10:34:36 theres more money in flipping burgers ++ Dec 20 10:35:32 I do not, of course, speak from extensive experience Dec 20 10:35:35 :) Dec 20 10:35:52 never flopped a burger in my life Dec 20 10:36:09 Just got that.. I was looking for more a facebook or forum.. something I could check in on, and get the scoop on things. Dec 20 10:36:17 Leeds, you just uncovered a new world to me Dec 20 10:36:31 raoul11: you've never seen porn before? Dec 20 10:36:37 try reddit.com/r/androiddev Dec 20 10:36:46 lol Dec 20 10:36:47 Everytime I look for something I get a pile of "we'll build that app for you" ads Dec 20 10:36:49 Leeds, well Dec 20 10:36:52 Guest56568: google have newsletters... there's still some stuff on G+, but it's dying fast Dec 20 10:36:58 the porn app industry Dec 20 10:37:07 yahoo channels might be a good thing Dec 20 10:37:17 and of course, by "yahoo channels" I mean "youtube channels" Dec 20 10:37:45 raoul11: no idea if anyone is actually making any money on any of it - there's so much free porn out there, AIUI Dec 20 10:37:59 I'm getting the newletters into my inbox.. Dec 20 10:38:04 werp, am not making money from non porn apps Dec 20 10:38:07 so yeah. Dec 20 10:38:40 Guest56568: and the porn in your... outbox? Dec 20 10:38:49 (I don't know what that means) Dec 20 10:39:08 I think there are two different convo's going on here. Dec 20 10:39:15 Leeds "Awesome game, but I want to be able to "jack off" . Have an option for a video playthrough so I can have both hands free" Dec 20 10:39:15 3 out of 5 Dec 20 10:39:23 \o/ Dec 20 10:39:32 i should do it just for those reviews Dec 20 10:39:46 one about making money selling porn, and another looking for app dev facebook groups or forums Dec 20 10:39:49 https://groups.google.com/forum/#!forum/android-developers << wow this place totally died since last time i visited it (years ago) Dec 20 10:40:17 Guest56568: we're talking about selling porn *apps* Dec 20 10:40:36 Yeah.. I got that :) Dec 20 10:41:04 Guest56568 this is irc /: Dec 20 10:41:07 I'd say the market for that would be hiding them as todo apps Dec 20 10:41:07 I was actually looking for alternative app stores to upload my apps to. Dec 20 10:41:21 Amazon has an appstore. Dec 20 10:41:26 I don't have a porn app, but they look nice ;) Dec 20 10:41:29 NeoFrontier: with time, your apps will find their way to those stores Dec 20 10:41:44 To the porn app.. if you hid one as a todo app that required some special pass code. Dec 20 10:41:46 i actually have a good idea for a porn app Dec 20 10:42:00 NeoFrontier: I'd say Amazon is the only third-party store worth considering, unless you're targeting China Dec 20 10:42:01 not sure mrs gonna like it Dec 20 10:42:09 But a place with its own sell API's and stuff. Dec 20 10:42:22 could let users have it on their phone without having others who use their phone access it. Dec 20 10:42:40 I have tried to use a chinese app store but it insists on me having a chinese phone number and they don't answer my emails. Dec 20 10:42:55 ( maybe they don't like my robot translated Chinese ? ) Dec 20 10:43:15 RedTodo.. could be a neat name for the app.. press the power button and it turns back into a todo app. Dec 20 10:43:16 do you not have a Chinese phone number? Dec 20 10:43:33 No *blush* is that bad ? Dec 20 10:43:42 everyone should have one Dec 20 10:43:50 lol Dec 20 10:43:59 just use Leeds # Dec 20 10:44:03 he's HK Dec 20 10:44:33 It is about time I get myself a good chinese friend. Dec 20 10:44:36 actually, a HK number wouldn't work either Dec 20 10:44:59 in China. Dec 20 10:45:26 NeoFrontier i get weirdos from china buggin me in whatsapp to become their friends Dec 20 10:45:38 there's about 1.35 billion people over the border, surely they can't *all* hate you? Dec 20 10:46:13 Yeah. Dec 20 10:46:44 A chinese girlfiend now that would be interesting. Dec 20 10:46:46 ud be suprised Leeds Dec 20 10:46:51 NeoFrontier is quite obnoxious Dec 20 10:47:15 *sigh* Dec 20 10:48:46 been there, done that Dec 20 10:49:15 Ha.. just read an add on that site.. Dec 20 10:49:33 for a full-stack developer. Dec 20 10:49:51 Could not have picked a worse job to post :) Dec 20 10:51:11 Crap that's all that site is.. ad's for jobs. Dec 20 10:57:23 Has anyone here successfully published any apps on a Chinese App store ? Dec 20 11:00:09 NeoFrontier: I attempted but I could not understand what was written on the web pages Dec 20 11:01:57 Melatonina, Hi. I got my way through it all with translating it etc. But then the problem was the Chinese phone number the site insisted on having for app uploads. Which is really silly since they allow international developers - then they ask for a chinese phone number ? Where is the sense in that.. Dec 20 11:02:22 Which site did you try ? Dec 20 11:24:03 NeoFrontier: did you try Tencent open platform? Dec 20 11:25:57 I was there once, turned around for some reason. Dec 20 11:26:10 Think I had something else to do first. Dec 20 11:26:19 @ Melatonina Dec 20 12:38:29 wtf - no official cursor support for RecyclerView? Dec 20 14:19:02 So I seem to be losing my context (getting Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference) .. I have it set up similar to this: http://stackoverflow.com/questions/2002288/static-way-to-get-context-on-android but when I leave the app idle for a bit and come back to it, it's occasionally blowing up here. N Dec 20 14:19:03 sure what I need to change/fix here.. still learning, pretty new at this .. relevant code from my app: http://pastebin.com/jd5F8atC Dec 20 14:20:42 `appCtx` is null. Dec 20 14:20:51 wtf - no official cursor support for RecyclerView? Dec 20 14:21:43 BilldaCat: When is App.ctx being set? Dec 20 14:21:56 TacticalJoke: right, I know that's why it's blowing up, I just don't understand why it's not trying to fetch the application context (App.getCtx) .. or rather, is trying and failing Dec 20 14:25:27 oops.. I think maybe I just saw the problem.. I have App.ctx = getApplicationContext(); in the onCreate of my MainActivity when that needs to be in the onCreate of my App.java .. Dec 20 14:26:09 Yeah, otherwise when SecondaryActivity is resumed after a process kill App.ctx will be null (since MainActivity.onCreate won't even run until the user presses Back). Dec 20 14:26:57 Right .. ok, I'll try this out. Is there a way in the emulator to force it to expire? I've just been loading the app onto my phone, leaving it in an activity, waiting an hour or so and hoping the situation occurs. Dec 20 14:27:00 hello, I have an app on the app store that is crashing, I can't reproduce it in the emulator and don't have a physical device; would someone mind running it on a 6.0+ device and sending me the crash log? Dec 20 14:27:43 BilldaCat: Press Home on the emulator and then, next to the LogCat window in Android Studio, press the red X. Then open your app again on the emulator (e.g., from the overview screen). Dec 20 14:27:57 awesome. thanks! Dec 20 14:27:57 That simulates a low-memory process kill. Dec 20 14:28:24 webmim382: What is the stack trace? Dec 20 14:28:25 you also have a settings in developer options Dec 20 14:28:42 adq: Doesn't that only destroy activities? Dec 20 14:28:53 TacticalJoke: I have no stack trace, I can't reproduce it on my end Dec 20 14:29:08 TacticalJoke: Only my reviewers can who have actual devices Dec 20 14:29:24 TacticalJoke, at least (usually useful for testing savedinstance & stuff) Dec 20 14:29:34 webmim382: Can't they press 'REPORT' when it crashes? Dec 20 14:30:13 Or whatever that button is titled. Dec 20 14:30:17 also for memory simu: am send-trim-memory Dec 20 14:31:24 TacticalJoke: Wow I can't believe I never saw this before, looking in the developer console at it now :o Dec 20 14:33:24 TacticalJoke: looks like that fixed it, at least in the emulator. thanks for the help! Dec 20 14:34:10 BilldaCat: As long as you're setting that static field in Application.onCreate (or similar) and you're not unsetting it anywhere, that problem will never occur again. Dec 20 14:35:06 yeah setting the context to static so I should hopefully be good. was driving me nuts as a novice to figure out why it was sporadically occurring. had all that stuff in my mainactivity instead of application.. Dec 20 14:36:39 TacticalJoke: thank you! Dec 20 15:38:04 Hello. i have an activity name MainMenuActivity that has a button that opens a new activity. http://dpaste.com/2CQX5VA but it's asking for an intent filter and i dont know how to do it. the code an the manifest are in the paste Dec 20 16:04:49 i am installing a app that i am working on on my android device but it's not creating an icon Dec 20 16:04:54 how can i by pass that? Dec 20 16:05:50 your intent filter for your launching activity is broken Dec 20 16:13:05 Hi....any developer here knows some stuffs about res/values/dimens.xml?.... Tried to modify a line e.g. "abc_dialog_min_width_major">65.0%<..... to "abc_dialog_min_width_major">70.0%<.... all goes well i compiled it with no error..... BUT final apk still has 65.0%... Dec 20 16:13:38 Now what i did wrong and why no error if i made something wrong? Dec 20 16:14:51 tx, broken? how can i fix it? Dec 20 16:15:14 post the segment of your androidmanifest.xml with your launching activity Dec 20 16:15:40 tx http://dpaste.com/2NPXVRQ Dec 20 16:15:44 it already compiles Dec 20 16:15:53 but it doesnt run on my testing device Dec 20 16:16:06 you're missing an action from your intent filter iirc Dec 20 16:16:27 not following sorry Dec 20 16:16:47 https://hastebin.com/hatuyazepa.xml Dec 20 16:16:49 tsousa, Dec 20 16:16:54 you are missing the action from your intent filter Dec 20 16:17:15 you need to add the line above to your main activity inside intent-filter block Dec 20 16:18:02 that fixed everything. Dec 20 16:18:19 it now creates the icon, open the application and open a new activity Dec 20 16:18:25 but i still dont understand why Dec 20 16:18:25 nice! Dec 20 16:19:14 You were missing the action that tells the OS "hey, this is where the app starts from" Dec 20 16:19:21 if it doesn't have a user entrypoint Dec 20 16:19:34 it won't be an "openable app" from the users perspective Dec 20 16:19:42 there are many apps, mostly system ones, that lack icons Dec 20 16:19:56 humm that i pointed that out in the configuration in android studio Dec 20 16:45:36 How can I check if a service was already running in onStartCommand? Dec 20 16:46:00 Basically, in some cases in onStartCommand I want to stop the service unless it was running before Dec 20 16:46:25 e.g. if a startService call created the service and a check fails, onStartCommand should stop the service Dec 20 16:46:53 If a startService call didn't create the service (it had been created before), onStartCommand shouldn't stop it, even if the checks fail Dec 20 16:47:02 spudowiar: You can `stopSelf(startId);` for that. Dec 20 16:47:17 TacticalJoke: So, stopSelf doesn't stop the whole service? Dec 20 16:47:35 Ah Dec 20 16:47:43 Thanks, I really should have seen the overloaded version in the docs Dec 20 16:48:26 Yeah, it stops it conditionally. Dec 20 16:49:26 Thanks so much for that :) Dec 20 16:55:49 TacticalJoke: It says in the documentation `Stop the service if the most recent time it was started was startId.` Dec 20 16:55:54 TacticalJoke: That means it won't work Dec 20 16:56:10 Isn't that what you want? Dec 20 16:56:21 "I want to stop the service unless it was running before" Dec 20 16:56:29 That's what `stopSelf(startId);` will do. Dec 20 16:57:16 I think I've messed something up in my understanding of the lifecycle, let me go look at some flowcharts :) Dec 20 16:57:36 You can test this stuff by creating an extremely simple service that has `Log.d` calls. Dec 20 16:57:42 In `onCreate`, etc. Dec 20 16:57:46 TacticalJoke: It does already Dec 20 16:58:22 TacticalJoke: Basically, I want to start a HTTP server in onCreate and also handle shortlived onStartCommand requests Dec 20 16:58:54 The HTTP server should stop if the only onStartCommand request failed Dec 20 16:59:34 The issue is ' If you call this function with the most-recently received ID before you have called it for previously received IDs, the service will be immediately stopped anyway.' Dec 20 17:02:37 TacticalJoke: According to some debugging, I should be able to achieve it with stopSelf(1); but that's not documented anywhere Dec 20 17:04:30 Ahh, I was misremembering how Service.stopSelf worked. You're right. Dec 20 17:04:49 One solution is to keep track of how many HTTP requests you're handling, and when you hit zero (or one in some cases) stop the service. Dec 20 17:04:52 Hello Dec 20 17:05:23 TacticalJoke: Well, it's USB devices I'm handling and I'm considering doing that Dec 20 17:05:24 Does an HTTP server run well on Android, though? There are all kinds of issues with doze mode and stuff. Dec 20 17:05:39 TacticalJoke: It uses a foreground notification Dec 20 17:05:53 TacticalJoke: And it's for interfacing with USB devices (don't worry, it's secure) Dec 20 17:06:43 `stopSelf(1);` won't work. That means "Stop this service if and only if the most recent request had the ID 1". Dec 20 17:09:34 My app does something like this, and it used to (before I changed something) simply say `if (!foo.isBusy()) { stopSelf(); }`. Dec 20 17:09:51 Where Foo.isBusy just checks whether the number of running tasks is greater than zero. Dec 20 17:10:15 TacticalJoke: stopSelf(1); would work Dec 20 17:10:33 TacticalJoke: If the most recent request had an ID 1 (was the first request), stop the service Dec 20 17:10:39 And that's what I want Dec 20 17:11:13 What if you get two requests and the first one has finished. Now your second request is the final one. Dec 20 17:11:47 TacticalJoke: There's a long running HTTP server, independent of requests Dec 20 17:12:00 The second request shouldn't stop the server Dec 20 17:12:03 The first request MIGHT Dec 20 17:16:41 Oh, okay. I'm not sure whether `startId` is guaranteed to be 1 the first time, though. This doesn't seem to be documented, as you mention. Dec 20 17:23:11 A really simple solution would be to set a `justCreated` flag in Service.onCreate. But maybe your HttpServer thing could have a property that'd help here. Dec 20 17:23:52 As far as I know, there's no Service property that you can query to determine whether Service.onStartCommand has been called before now. Dec 20 17:24:10 Outside of this `startId` thing. Dec 20 17:39:30 How can I add meta-data to a BroadcastReceiver registered with registerReceiver Dec 20 18:19:01 https://adtmag.com/articles/2016/12/06/dev-salaries.aspx Dec 20 18:19:01 a question. i am View. i want to have some input text and some buttons and a list. How can i do that? Dec 20 18:19:25 tsousa you start reading documentation, like UI section in guides Dec 20 18:19:46 i did. but i want to use both relative layout and listlayout Dec 20 18:19:52 how the hell can i do that Dec 20 18:20:29 listlayout ? Dec 20 18:20:35 list view Dec 20 18:20:36 sorry Dec 20 18:21:01 you probably want GridLayout Dec 20 18:21:21 pretty good for forms, keeping things aligned Dec 20 18:25:13 tsousa: Huh? Dec 20 18:25:52 TacticalJoke, what i wanted is a way yo mix a listview and a linear layout Dec 20 18:26:34 Mix how? Dec 20 18:27:38 ok fixed it Dec 20 18:27:50 with a linear layout and a section of ListView Dec 20 18:28:31 It's hard to understand what you're asking. Dec 20 18:59:44 String question = (EditText)this.inflatedView.findViewById(R.id.questionText).getText().toString(); why android studio says it cant find getText ? Dec 20 19:02:27 missing () Dec 20 19:05:14 tsousa, because you're scoping the cast wrong; which may be what you meant by 'missing ()', yeah Dec 20 19:05:31 ((EditText) this.inflatedView.findViewById(R.id.questionText)).getText().toString(); Dec 20 19:05:40 yes :) Dec 20 19:27:50 what is the best way to capture an int ? a EdiText and then convert from String to Int? Dec 20 19:40:40 You can also set the EditText to only accept numeric input, which is probably the better way to go since it'll spawn the keyboard as a numpad. Dec 20 19:42:13 yes i did that Dec 20 19:42:46 Ohnoes! I have violated a google policy Dec 20 19:42:59 sorry ? Dec 20 19:43:19 Now I have to go and write a privacy policy explaining that the app officially doesn't care about what someoen sticks in front of the camera so long as it's a QR code Dec 20 19:43:58 It's unrelated to your problem. Dec 20 19:44:04 I just got the email and was surprised to see it Dec 20 19:44:29 Google is pretty flexible when it comes to sarcastic privacy policies Dec 20 19:45:20 One of mine explicitly mentions that we _might_ take an interest if someone uses the app inside of the Chernobyl Exclusion Zone, but only so far as it relates to long-term survivability of the user being intimately tied to user retention. Dec 20 19:45:38 "TL;DR: If you die from radiation poisoning, you can't use the app anymore." Dec 20 20:12:53 what is called those pretty number scrollers? Dec 20 20:17:14 https://developer.android.com/images/ui/dialogs.png like the first one Dec 20 20:44:26 why would updating a bitmap in a notification too frequently cause my device to reboot? Dec 20 20:44:36 tsousa: It's a NumberPicker Dec 20 20:52:42 dcope, stacktrace Dec 20 20:54:32 adq: failed binder transaction is all that's in the trace Dec 20 20:57:18 then we cannot guess anything dcope Dec 20 20:57:47 who much is "frequently" Dec 20 20:58:09 even if its at a crazy rate with an enormous image, this should not DoS the OS Dec 20 20:58:32 failed binder transaction indicates something nasty when trying to put to bundle to intent Dec 20 20:58:53 Ashiren: yeah, the logs go away when i don't update the image in the notification Dec 20 20:58:56 if you can reproduce the issue 100% of time, jsut submit a ticket Dec 20 20:58:59 or if i scale down the image Dec 20 20:59:06 http://stackoverflow.com/questions/3528735/failed-binder-transaction-when-putting-an-bitmap-dynamically-in-a-widget Dec 20 20:59:36 yeah there is a limit in the bundle size iirc (1MB or something) Dec 20 20:59:50 "Consequently this exception can be thrown when there are many transactions in progress even when most of the individual transactions are of moderate size." Dec 20 21:00:09 interesting. is there a way to cancel the other transactions? Dec 20 21:24:31 adq Ashiren looks like this is a known bug for at least 5 years: https://code.google.com/p/android/issues/detail?id=13941 Dec 20 21:25:54 "After around 30-50 updates my phone automatically reboots !" Dec 20 21:26:01 yep, that is exactly what i see here Dec 20 21:27:46 dont update. [solved] Dec 20 21:33:16 dcope, :') Dec 20 21:33:36 the replies are somewhat right though... i haven't gotten it to crash by just showing a new notification. Dec 20 21:33:37 have you tried on Android 6.* or 7.* too? Dec 20 21:34:10 this is on 6 Dec 20 21:34:14 it's a galaxy s7 edge Dec 20 21:45:07 Hey, maybe off topic, but does anyone know if there's an ios equivalent to View.setTag() ? Dec 20 21:59:38 nothing stopping you creating a tag on a view Dec 20 22:02:35 viran: UIView has a Tag property (of type nint) Dec 20 22:04:07 thanks Dec 20 22:12:16 Hi there. Is there a way to make "show touches" work when inputting via "adb shell input tap"? Dec 20 22:15:15 hello can anyone help with fastboot Dec 20 22:18:32 linux0123: what channel is this? Dec 20 22:27:50 it is dev but no one is in android root Dec 20 22:28:11 i need help with fastboot, maybe an android programmer would know? Dec 20 22:28:47 wrong channel Dec 20 22:30:08 fastboot hangs on ubuntu 14.04 32-bit. fastboot devices works but no other fastboot commands work. it hangs with "..." in the terminal and no message on the phone. i try with and without sudo. the udev is correct. phone is wileyfox spark and has stock cyanogen OS (not mod) and no root. there is no recovery anymore (trying to boot into recovery shows wileyfox logo and then boots normally) Dec 20 22:30:16 is this only for app development Dec 20 22:30:32 does anyone know how to root wileyfox? there was a root app but that didnt work Dec 20 22:31:13 i need to use fastboot i dont have any root or custom rom yet Dec 20 22:31:45 #android-root Dec 20 22:31:55 no one is there Dec 20 22:32:09 i tried yesterday ask for help in cyanogenmod but no solution :( Dec 20 22:32:34 that doesn't make this the place to ask Dec 20 22:33:16 no one here knows about fastboot? Dec 20 22:33:48 or any command that can unlock oem and flash recovery (instead of fastboot) Dec 20 22:33:57 not the place to ask... Dec 20 22:34:38 is there another irc than freenode Dec 20 22:34:53 i tried cyanogenmod android-root android and linux Dec 20 22:35:08 try xda Dec 20 22:35:27 does xda have irc Dec 20 22:35:35 *shrugs* google it ... Dec 20 22:48:55 linux0123: you are a horrible person Dec 20 22:51:26 linux0123: I bet you steal toys to kids and kick puppies for fun Dec 20 23:02:35 lol Dec 20 23:12:56 So, I was looking at open source crash reporting Dec 20 23:13:04 And I'm settled on ACRA + Sentry Dec 20 23:13:10 I was looking at Tracepot Dec 20 23:13:18 1,000 reports per month Dec 20 23:13:28 Compared to Sentry... 5,000 per day Dec 20 23:35:25 wow net neutrality already on the chopping block Dec 20 23:38:27 That's what happens when we don't hunt lobbyists for sport. Dec 20 23:39:56 ad revenue might not be enough for some sites, i would imagine more paywalls and other things ... Dec 20 23:40:06 i guess that would not be good for google ads Dec 20 23:40:36 i guess a silver lining then, maybe some kind of micropayments replace ads Dec 20 23:40:59 amazon , netflix, i guess google and apple too would hurt when it came to movies Dec 20 23:42:07 net neutrality means that websites pay more to load faster? or is it something else? Dec 20 23:43:38 "net neutrality order prohibits ISPs from blocking or throttling traffic or giving priority to Web services in exchange for payment." Dec 20 23:44:25 linux0123: The _actual_ idea is that ISPs are supposed to be *neutral* about passing network traffic Dec 20 23:44:52 linux0123: i.e., they're not supposed to pull douchebag stunts like throttling Netflix traffic in order to get a sweetheart deal Dec 20 23:44:53 without net neutrality people could bribe isp to dos a site? Dec 20 23:45:07 hmm Dec 20 23:45:11 i wonder what they will work on first, that or gengrich's plan to change the constitution to accommodate trump's conflicts of interest, lol Dec 20 23:45:16 No, without network neutrality ISPs will extort money from every major company doing business on the internet Dec 20 23:45:17 web should be more decentralized Dec 20 23:45:28 "It would be a real shame if your traffic got slowed down." Dec 20 23:45:38 diy isp should be possible. then you solve the problem and not dependent on capitalist isps Dec 20 23:45:47 linux0123: We shoudln't have monopolies either, but we do. Couldda wouldda shoudda Dec 20 23:46:00 i dont know how networking works Dec 20 23:46:01 linux0123 that would help censorship / privacy, but decentralized ... cables still need to be laid, backbones , etc Dec 20 23:46:22 you'd never have this problem in DPRK Dec 20 23:46:35 No, you'd be busy trying to scrape enough together to eat Dec 20 23:46:47 yes sadly... i dont know how the hardware works but i imagine the materials are expensive and the work needs specialist knowledge Dec 20 23:46:58 sure, and undersea cables, etc Dec 20 23:47:08 hmm i must learn more about networking Dec 20 23:47:14 undersea cables... Dec 20 23:47:16 i saw a doco on how those undersea cables were laid, very interesting Dec 20 23:48:33 recall a story they were splicing fiber in alaska i think, it was cold, they pulled the cabled into the truck and did it. then realized , with cable going in one end of the truck and out the other ... Dec 20 23:48:52 and they reached the max # of splices before interference / etc ... Dec 20 23:49:07 they removed the roof from the truck to free the cab;e :D Dec 20 23:49:23 it was in a jeep cherokee or something Dec 21 00:05:11 Bleh. Dec 21 00:11:14 Nat and Lo just did undersea cables Dec 21 00:11:18 Last week Dec 21 00:55:19 dog == god ? http://storge.pic2.me/upload/643/5633b51302fed.jpg Dec 21 00:58:31 https://joshtheinternsblog.files.wordpress.com/2009/09/2702011448_5c28cb99c8_o1.jpg Dec 21 01:03:18 Ologn :D Dec 21 02:03:04 getSearchableInfo is returning null for me Dec 21 02:04:44 wait Dec 21 02:04:55 it's setSearchableInfo (for.. some reason) Dec 21 02:05:10 nm Dec 21 02:05:16 it is getSearchableInfo Dec 21 02:45:41 Leeds so much for that ! Dec 21 02:45:44 http://www.linuxjournal.com/content/adups-android-malware-infects-barnes-noble Dec 21 02:47:43 OK Dec 21 02:47:46 I got it to work Dec 21 02:47:54 but now the submit button does nothing **** ENDING LOGGING AT Wed Dec 21 03:00:00 2016