**** BEGIN LOGGING AT Sat Jul 04 02:59:58 2015 Jul 04 03:21:43 hi, im using a RecyclerView, I have implemented a touch listener and i have the following code, the goal is to detect if the user tap a textview or the recyclerview row, i wrote the following code Jul 04 03:21:43 * capella-s3 imagines finding a drunk android dev with gardening equipment passed out on the white house lawn Jul 04 03:21:43 https://gist.github.com/Alevsk/54ca10fe0a4f7b7ce407 Jul 04 03:21:55 but view.getId seems to return -1 always Jul 04 03:22:08 i want to detect when the user tap the textView Jul 04 03:27:31 View.getId returns -1 if the view has no ID. Jul 04 03:29:11 Did that answer your question? If so, click [here]. Jul 04 03:31:24 TacticalJoke: but my TextView has an id Jul 04 03:31:33 im doing some research in stackoverflow too Jul 04 03:31:40 trying to figure out this Jul 04 03:33:22 if I implement the onclick function in my recyclerview adapter its work fine (i need to disable the touchlistener action of the recyclerview) Jul 04 04:22:58 hello, could I ask about adb? Jul 04 04:23:08 don't ask to ask... Jul 04 04:23:42 hello all Jul 04 04:24:05 I have successfully installed driver for phone in my PC but still there is no device attached when I type 'adb devices', what's possibly wrong? Jul 04 04:24:37 have you tried turning it off and on again? Jul 04 04:24:55 have you enabled USB debugging on your phone? Jul 04 04:25:54 johnflux, I have John. and I have turned ON USB debugging on my phone Jul 04 04:26:20 Leeds, yes i have it on Jul 04 04:26:32 double check Jul 04 04:26:47 do you get a debug notification up on the phone when you plug it in? Jul 04 04:28:45 Leeds, yes, it says "USB debugging connected" Jul 04 04:29:04 good, then I'll call it a windows problem and let someone else try to sort it out :) Jul 04 04:32:47 mtp vs ptp? Jul 04 04:32:56 I can see my phone in Device Manager, It seems the driver is correct. Jul 04 04:33:51 capella-s3: I dont know mtp or ptp is? Jul 04 04:34:37 exoloastic: tried restarting adb ? Jul 04 04:35:22 t2mkn, yes I have tried it, kill and restart the server Jul 04 04:35:34 http://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/ Jul 04 04:36:24 i usually find this problem. restarting solves. but i m on osx. no idea on windows Jul 04 04:36:48 with windows it's almost always going to be a driver issue Jul 04 04:37:28 ya windows sucks :P Jul 04 04:38:42 https://software.intel.com/en-us/xdk/docs/configuring-your-windows-usb-android-debug-connection-for-the-intel-xdk Jul 04 04:38:44 Does any OS *not* suck? Jul 04 04:38:53 this is a genuine question - are adb drivers the same as general phone drivers? Jul 04 04:39:24 i love osx Jul 04 04:39:29 i hate osx Jul 04 04:39:33 lol Jul 04 04:39:50 capella-s3: how do I switch between mtp or ptp? there is no button to switch it in my phone Jul 04 04:39:52 i love linux Jul 04 04:39:59 i love linux too Jul 04 04:40:02 but i hate windows Jul 04 04:40:12 dont use it Jul 04 04:40:14 Why the hate Jul 04 04:40:14 I love rock'n'roll Jul 04 04:40:22 I love rock'n'roll too ! Jul 04 04:40:35 * gordon_ should write bot for this... Jul 04 04:40:39 not using windows since last 7 years Jul 04 04:40:55 I have windows on vm Jul 04 04:40:57 How can you say that Windows sucks then? Jul 04 04:41:07 rekt Jul 04 04:41:15 Leeds, yes I think its general, however I've tried many drivers Jul 04 04:41:16 because most innovative company on the world (apple) requires itunes to put mp3s on ipod Jul 04 04:41:35 it sucked so i left loving it. Jul 04 04:41:35 (thank you apple) Jul 04 04:41:45 windows is like girl friend, cant predict what she will do next :P Jul 04 04:42:03 storage >> more options? Jul 04 04:42:10 http://www.random-host.com/blogs/enable-media-device-mtp-usb-mode-android-44-kitkat-and-50-lollipop Jul 04 04:42:19 osx/linux is like wife, some how realiable Jul 04 04:44:07 mines cm11... storage... top right menu... usb computer connection Jul 04 04:44:24 anyhow, something to check Jul 04 04:44:29 capella-s3: ah yes they are there, Connect AS: USB storage (checked), Media device (MTP), Camera (PTP), Installer CD Jul 04 04:44:56 capella-s3: which one should I use? Jul 04 04:45:25 try all the rest except which is selected now Jul 04 04:45:29 t2mkn: and linux is like biceps - and you can always trust your biceps Jul 04 04:45:32 I thought mtp but I rarely tinker here lately... ut just works Jul 04 04:46:17 gordon_: yaaaaa. (y) Jul 04 04:47:26 capella-s3, t2mkn, ok; I'll try them all Jul 04 04:47:57 mtp next! crosses fingers Jul 04 04:49:34 mass storage - yuuu huuu :D Jul 04 04:50:09 I need to restart my pc, brb guys Jul 04 04:51:03 mmm... can't see why, meh Jul 04 04:52:38 just reboot the house, throw the big switch on the fuse panel :p Jul 04 04:54:43 reboot the neighboor, blow up the transformer! Jul 04 04:55:08 *neighborhood Jul 04 04:55:53 seriously, m rebooting vps :-| load 3.5 ! Jul 04 04:55:58 spelled that wrong too. promise i'm not drinking Jul 04 04:56:31 i spell always wrong. but i do drink :P Jul 04 04:56:52 oh neighbourhood is commonwealth english Jul 04 04:58:10 night booring = nightbour Jul 04 05:01:53 67,000: https://www.change.org/p/ellen-k-pao-step-down-as-ceo-of-reddit-inc Jul 04 05:02:40 she's got more haters than chainsaw al dunlap Jul 04 05:03:20 "...the Samsung Galaxy Note 3, had 44 pre-installed apps, while another device, the Oppo Find 7a, had a whopping 71 apps installed." Jul 04 05:03:31 waaat Jul 04 05:03:57 all the best devices come with lotsa stuff preinstalled Jul 04 05:04:20 "The commission would like the courts in Shanghai to rule that smartphone companies to list which apps have been pre-installed on their devices in the packaging, along with instructions on how to uninstall those apps. " Jul 04 05:04:49 capella-s3 all the best android devices :) Jul 04 05:08:48 will, I guess I bricked exoloastic ... heh ... that'll teach him Jul 04 05:17:31 devices shuld come only with must required aps installed. nothing any thing else. Jul 04 05:30:58 hmm vlc media player "accept extensions" now all .* music (.mp3) comes up as "VLC media file" nice Jul 04 05:36:33 TacticalJoke: know the best reddit alternative? Jul 04 05:37:29 http://snapzu.com/ looks all right. Jul 04 05:37:46 http://voat.co/ is a reddit clone that can't handle the traffic. Jul 04 05:38:05 http://www.reddit.com/r/AskReddit/comments/3c0t4y/what_are_some_good_reddit_alternatives/ Jul 04 05:38:06 TacticalJoke: "Whichever site has the best mobile app will inherit the Reddit community" Jul 04 05:38:20 go TacticalJoke go ! Jul 04 05:38:25 lol Jul 04 05:38:28 There's a lot of wasted space on snapzu Jul 04 05:38:31 bad design Jul 04 05:38:32 It would be kinda easy to grab all those users. Jul 04 05:38:36 Yeah, I agree about the wasted space. Jul 04 05:38:37 the fate of the front page of the internet is in TacticalJoke 's hands Jul 04 05:38:52 all you need is to hire some space on amazon/google cloud, throw up a server route it through your app Jul 04 05:39:12 inherit the monetized eyeballs of reddit Jul 04 05:39:26 If everyone moves to some site and they have a web API that isn't awful, I'll probably rush something out. Jul 04 05:40:00 TacticalJoke what if they move back to digg ! Jul 04 05:40:08 That'd be awesome, in a way. Jul 04 05:40:10 you can be readhy when they come back to reddit :D Jul 04 05:40:17 apparently there was a scandal involved with digg? Jul 04 05:40:18 haha Jul 04 05:40:33 Yeah, Digg ruined their site and everyone jumped to reddit, several years ago. Jul 04 05:40:41 what'd they do? Jul 04 05:40:50 I think they started putting paid ads on the front page and making them indistinguishable from upvoted posts. Jul 04 05:40:56 Though I can't remember completely. Jul 04 05:40:58 ahh Jul 04 05:41:04 soundsa bout right Jul 04 05:41:24 I hate this look: http://digg.com/ Jul 04 05:41:34 Tiles and wasted spaces. Blah. Jul 04 05:41:36 space* Jul 04 05:41:51 Or "cards". Jul 04 05:41:56 Actually, I guess that's tiles. Jul 04 05:45:07 Trying to reproduce Windows' success with tiles Jul 04 05:45:16 I've tried them all (USB storage, MTP, PTP, Installer CD) guys, but still adb won't detect my phone Jul 04 05:45:44 Have you tried restarting adb? Jul 04 05:46:13 Bad cable? Jul 04 05:46:17 TacticalJoke:yes I've tried restarting it Jul 04 05:46:32 Perhaps try `adb kill-server` and `adb start-server`. Jul 04 05:47:15 @CedricBeus: Im using original cable Jul 04 05:47:41 exoloastic: Doesn't answer my question Jul 04 05:47:42 TacticalJoke: I've done that, kill and restart Jul 04 05:47:50 TacticalJoke their layout hasn't changed since they disabled comments ... 5 years ago ? Jul 04 05:47:55 its just a grid Jul 04 05:48:29 exoloastic: Are you able to transfer files to/from the devices with the file browser? Jul 04 05:48:32 device* Jul 04 05:49:20 @CendricBeust, I think it runs normal Jul 04 05:49:53 g00s: Maybe we should, as you say, bring back Usenet. alt.images.cats and stuff. :D Jul 04 05:49:59 TacticalJoke:yes, im able to transfer or receive files Jul 04 05:50:16 TacticalJoke yeah, screw all these companies centralizing what worked better without them Jul 04 05:51:01 exoloastic: Did you test it for something else? Jul 04 05:53:16 @CedricBeust, I didn't Jul 04 05:53:38 hi Jul 04 05:53:56 does native app uses art or dalvik Jul 04 06:02:16 native app? like arm executable? Jul 04 06:08:54 yes Jul 04 06:10:52 execute it in a terminal Jul 04 06:11:04 no art ... no dalvik Jul 04 06:11:53 cool Jul 04 06:12:03 java apps uses dalvik right Jul 04 06:12:17 even for jni calls it skips dalvik or art? Jul 04 06:29:42 oh yeah I remember digg came around when the only thing around was slashdot Jul 04 06:30:32 exoloastic, adb drivers are separate from mtp or ptp Jul 04 06:31:16 shmooz at least digg can keep their servers from catching on fire :D Jul 04 06:31:36 * g00s still wonders if that fire was real Jul 04 06:32:03 pfn: I'm sorry I don't understand Jul 04 06:32:07 wow digg looks totally different now Jul 04 06:32:16 Wasn't it a screenshot from a show or something? Jul 04 06:33:33 exoloastic, and that's why adb doesn't work for you Jul 04 06:38:49 pfn, adb doesn't work for me? Jul 04 06:39:20 Try `adb kill-server && adb start-server && adb devices`. Jul 04 06:39:24 If that doesn't work, ya dun goofed. Jul 04 06:41:00 TacticalJoke: I've done that many times, this really makes me crazy Jul 04 06:41:15 You've done exactly what I typed? Jul 04 06:41:28 exoloastic: How much longer until you actually test if that cable works? Jul 04 06:41:39 TacticalJoke: yes Jul 04 06:42:37 I think he said that file transfers work. Jul 04 06:42:45 ah Jul 04 06:43:02 Yes It works like charm Jul 04 06:43:38 If on windows, installed adb drivers? Jul 04 06:45:13 SimonVT, I've installed adb drivers Jul 04 06:46:29 Let me try to restart my PC again. brb. Jul 04 06:55:13 TacticalJoke did you see this "Tetris as a C++ template metaprogram" Jul 04 06:56:24 Was that on /r/programming? I thought I saw that earlier, but I can't see it on there now. Jul 04 06:59:12 There's also prime number with templates Jul 04 06:59:57 I dont know C, C++, dont know how to write a single helloworld program. if I want to learn for android NDK development, how long it could take me to understand? Jul 04 07:00:04 just a guess please Jul 04 07:00:49 c++ has a steep learning curve Jul 04 07:01:11 how about Objective-C ? Jul 04 07:01:59 probably no point doing obj-c unless you plan on maintaining legacy code Jul 04 07:02:12 obj-c with ndk ? Jul 04 07:02:29 no obj-c for ios dev Jul 04 07:02:34 is that even possible :) Jul 04 07:02:46 learn swift for iOS nowadays Jul 04 07:03:03 now what is that swift Jul 04 07:03:17 t2mkn #iphonedev can help Jul 04 07:03:41 got it Jul 04 07:05:46 hello Swift code looks like a combination of VisualC++ + Python Jul 04 07:05:55 Not really Jul 04 07:05:57 More like Kotlin Jul 04 07:06:24 humm Jul 04 07:06:47 Swift: the Kotlin of iOS. Jul 04 07:07:03 I see what you did there Jul 04 07:30:13 exolastic Jul 04 07:30:16 you still here? Jul 04 07:30:46 @exolastic or whomever if he asks again, tell him to switch to Camera mode (not MTP) my n5 won't usually debug in MTP Jul 04 07:30:55 nor will my n7 Jul 04 07:52:38 odd, my n7 and gs3 are in mtp mode :/ Jul 04 07:53:38 reddit seems to be largely over the drama already. Jul 04 07:54:19 of course, its got too much baggage to die like that Jul 04 07:54:35 too many casually dedicated users Jul 04 07:55:21 yeah I don't have that problem with my N7 either Jul 04 07:55:41 hmm it has happened to me on windows and osx Jul 04 07:55:54 and it is not determinate either Jul 04 08:06:39 The creator of /r/crappydesign has deleted the subreddit: https://np.reddit.com/r/solidwhetstone/comments/3c2wzn/hanging_up_my_spurs_goodbye_reddit_moderating_and/ Jul 04 08:08:58 s/deleted/made private/ Jul 04 08:11:19 you'd need a couple of dozen of those to make it serious Jul 04 08:12:27 deadit Jul 04 08:14:10 thank god I didn't follow the sheep from digg to reddit Jul 04 08:15:14 I went back to slashdot instead Jul 04 08:27:57 finishing an app makes me so happy. like nothing can get me down the next few days after making an app. my wife of 30 years could cheat on me, my dog could poop in the house, I could loose all my money/job. but id still be smiling because i recently just finished another app Jul 04 08:38:54 Even though i have tons of free time to work at getting better at coding the day just flies by sometimes and i feel like i didnt get much done. Maybe thats just how coding is, or maybe I need to take less cooking/bathroom breaks Jul 04 08:39:19 its probably because i spend too much time talking to myself on here Jul 04 08:40:25 I have those days too NateRiver Jul 04 08:41:54 Waiting for a build to finish and I go to check the news or something. Next thing I know 15 minutes has passed. :\ Jul 04 08:48:03 notifications show up? surf2b1 Jul 04 08:49:43 huh? Jul 04 08:59:08 surf2b1: pop up like "build finished" Jul 04 09:24:18 still can't make this adb detects my phone.. Jul 04 09:36:08 exo did you try switching it to Pictures? Jul 04 09:36:11 instead of MTP Jul 04 09:36:14 for the usb connection type Jul 04 09:58:21 http://androidforums.com/threads/adb-wont-recognize-droid-but-usb-drivers-seem-to-be-working-fine.57260/ Jul 04 09:59:37 tldr check win device manager info Jul 04 10:12:55 capella-s3: I have the same problem like in that link Jul 04 10:14:15 still can't solve it Jul 04 10:18:19 heh - odd ... its not showing in |adb devices|, but you can transfer files ... have you actually tried to |adb shell| into it? Jul 04 10:21:38 * capella -> zzzzzzzzzz Jul 04 10:32:01 my pc crashed Jul 04 10:34:31 if I use 'adb shell' it says 'error: device not found' Jul 04 10:47:14 exo did you try switching it to Pictures? Jul 04 10:47:22 exoloastic, adb shell won't work until adb devices list your device(s) Jul 04 10:47:59 exoloastic: try Photos/Pictures instead of MTP Jul 04 10:49:39 lasserix: I've tried all options available, USB storage, MTP, PTP, Installer CD, nothing worked Jul 04 10:50:09 adq, ah okay Jul 04 10:51:24 we all assume you have enable adb debug in the developers options of your device Jul 04 10:51:54 so you might have the wrong driver in windows, sometimes it matches the driver of another device Jul 04 10:51:55 adq, yes I've turned it on Jul 04 10:52:44 http://developer.android.com/tools/extras/oem-usb.html try that Jul 04 10:52:48 especially with "Android Composite ADB" Jul 04 10:52:56 always worked for me, on any device Jul 04 10:53:13 and read http://developer.android.com/tools/help/adb.html that too Jul 04 10:53:21 and everything else related to adb on developer.android.com Jul 04 10:53:43 and don't use MTP at same time with usb debugging Jul 04 10:54:38 uncheck everything in setting>storage>usbcomputerconnection (top right the 3 vertical dot menu) Jul 04 10:55:07 good luck! Jul 04 10:57:31 I dont have that 3 vertical dot menu in Storage, but every time I connect my phone there is a notification which if I click it will show up USB computer connection Jul 04 10:58:27 there are 4 options in USB computer connection: USB storage, MTP, FTP and Installer CD Jul 04 10:58:40 exoloastic, OS? Jul 04 10:59:05 Kitkat, and Windos 7 Jul 04 10:59:16 windows* Jul 04 10:59:35 Is it a viable option to create a HasMap with the second paramtere a Class -> http://pastebin.com/AE64MxEY Jul 04 11:00:59 exoloastic, ok, same uncheck everything in your screen where you see the 4 options anyway Jul 04 11:02:06 adq, 1 option will always be checked, I can not uncheck them all Jul 04 11:03:16 exoloastic, tried adb over tcpip? Jul 04 11:04:07 (if their is any option to directly enable it from phone?) Jul 04 11:04:13 kuldeepdhaka: I've not tried that, are there any links I could read? Jul 04 11:04:38 keep usb storage at worst, but read the links above Jul 04 11:04:52 and adb over wifi will not solve your current issue.. Jul 04 11:05:10 exoloastic, google search will present you enough Jul 04 11:06:45 adq, yup, I've tried adb over wifi too, but it needs the adb to recognize my phone first Jul 04 11:07:07 kuldeepdhaka:okay, I'll google it Jul 04 11:07:55 exoloastic: what device? Jul 04 11:08:29 lasserix: Its Advan, local brand Jul 04 11:08:29 exoloastic, if you are connecting though usb, you can have a look at the device descriptor to check if it is presenting adb intterface to usb-host(your-computer) Jul 04 11:10:32 kuldeepdhaka: where could I find device descriptor? Jul 04 11:11:03 exoloastic, my phone shows up http://www.pastebin.ca/3046175 (got using lsusb [on GNU/Linux], you can find similar gui tools for Windows) Jul 04 11:14:02 exoloastic, http://www.thesycon.de/eng/usb_descriptordumper.shtml (try this) Jul 04 11:14:54 kuldeepdhaka:okay, i'm downloading it Jul 04 11:16:46 kuldeepdhaka:here is mine: http://pastebin.com/pzaSFpXZ Jul 04 11:16:50 exoloastic, (assuming you have enable debugging from developer options) Jul 04 11:17:14 kuldeepdhaka:yes I have it enabled Jul 04 11:18:13 exoloastic, mtp and imaging (camera?) class. no adb interface Jul 04 11:18:40 exoloastic, try other options Jul 04 11:21:10 Oh thats weird, in device manager, it shows 'Android Composite ADB Interface" Jul 04 11:21:42 ok, let me change option in USB comp connection Jul 04 11:22:23 exoloastic, (have a look if you have not https://developer.android.com/tools/extras/oem-usb.html) Jul 04 11:24:14 kuldeepdhaka: ok I'll read it again Jul 04 11:25:51 exoloastic, the Windows 7 step 5 mention "Android Composite ADB Interface" maybe you need to do the remaining too Jul 04 11:30:34 kuldeepdhaka:I've changed the driver, here is current device descriptor: http://pastebin.com/UaDVybXz Jul 04 11:31:53 exoloastic, iInterface "ADB Interface" <--- Jul 04 11:32:24 does that mean I have installed correct driver? Jul 04 11:32:35 exoloastic, it is now showing the adb interface, try adb now Jul 04 11:32:59 exoloastic, maybe, still need to verify using adb util Jul 04 11:33:57 exoloastic, "adb devices" should list you phone. Jul 04 11:35:01 kuldeepdhaka: I just did this adb kill-server > adb start-server > adb devices > result: List of devices attached Jul 04 11:35:16 blank list Jul 04 11:35:22 oh Jul 04 11:35:36 exoloastic: first check if you phone is visible as USB device on OS level Jul 04 11:35:41 exoloastic: then touch adb Jul 04 11:35:58 (nearly useless general advice) Jul 04 11:37:08 exoloastic, now atleast you device is showing adb interface, we can go further Jul 04 11:37:17 kuldeepdhaka:indeed, its really weird Jul 04 11:39:30 icedp, It is visible. I can see it in windows explorer as a drive Jul 04 11:39:51 idVendor 0x0a5c Broadcom Corp ?? (broadcom chipset or something in your phone?) Jul 04 11:40:34 exoloastic, ^ Jul 04 11:41:23 kuldeepdhaka: I believe its from my phone, its chinese made phone anyway Jul 04 11:43:08 perhaps this is the vendor that made this Advan phone, but im not really sure Jul 04 11:44:23 Hello Jul 04 11:44:27 exoloastic, not sure why adb not picking up the interface Jul 04 11:45:05 I’m receiving the following error: Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. Jul 04 11:45:27 kuldeepdhaka: yes this is weird, I've been trying to figure it out for two days now Jul 04 11:45:28 I have a first Activity which calls a second one, which calls a third one Jul 04 11:45:29 exoloastic, but one reason could be it is not being granted permission to device since os has already loaded using mass storage interface Jul 04 11:45:50 the second and the third activities have the same definition in manifest Jul 04 11:45:56 * already/using Jul 04 11:46:14 but while calling the second I don’t get any error….which i receive when trying to start the third Jul 04 11:47:53 I’ve tried adding the theme on the specific activity in the manifest….but still the same error Jul 04 11:47:54 exoloastic, one quick and try it out suggestion is, to get any GNU/Linux cd (Ubuntu or Fedora or something you like), run it in live mode, and just test if detect the device. then you can be sure where is the problem Jul 04 11:48:39 *just test if adb detect the device Jul 04 11:50:14 exoloastic, you internet connection would be slow (like mine :), you can get from magazine cd or from friend. and check if it is able to detect it. Jul 04 11:50:32 exoloastic: is adb available in ubuntu? Jul 04 11:50:41 kuldeepdhaka:** Jul 04 11:51:27 exoloastic: it's available as a download from DAC and also in apt-get though an old version Jul 04 11:51:52 kuldeepdhaka: I can download it but after 1 am Jul 04 11:52:11 exoloastic, idk, but you can download the adb GNU/Linux binary. driver are already their in kernel Jul 04 11:52:39 (from android developers section) Jul 04 11:52:49 icedp, ok, I'll download it. Jul 04 11:53:00 *drivers Jul 04 11:53:24 exoloastic, then you can be more sure to corner out the problem. Jul 04 11:54:08 kuldeepdhaka:I hope so, this problem really makes me crazy :D Jul 04 11:55:27 exoloastic, also note: you will have to run the binary as root. (or configure udev to give permission) [assuming the same rules apply for live mode] , running it root is easier and would not have negative effect Jul 04 11:56:29 exoloastic, "sudo " to run as root, you can learn more on this online, their lots of content on it Jul 04 11:56:44 solved….Android studio creates the class as extending ActionBarActivity instead of extending Activity Jul 04 11:57:02 kuldeepdhaka: okay I've noted that, run it as a root Jul 04 11:58:18 I got to leave now guys, dinner time here. Jul 04 11:58:26 exoloastic, though this is bit off track but you can be sure on derived results. Jul 04 11:58:33 exoloastic, bye Jul 04 11:59:43 kuldeepdhaka: I'll do everything as long as it can solve this problem Jul 04 12:01:22 anyway thank very much for your help kuldeepdhaka and icedp Jul 04 12:01:46 and others too Jul 04 12:01:52 im leaving, bye Jul 04 12:11:17 I have this situation: If I call method from onCreate(), it returns nullPointerException. If I call it from onClick (button), it works perfectly. I have tried .performClick() in onCreate and I again get NullPointerException. It looks like the method is called to fast. Is there some known workaround for situations like this? Jul 04 12:14:06 Make sure whatever is null isn't null before you try and call methods on it Jul 04 12:14:22 You're probably initializing it after you call performClick Jul 04 12:16:10 demahum: what method? Jul 04 12:16:39 SimonVT: No, I am not. I am calling it at the end of onCreate. Jul 04 12:16:53 icedp: It's about MQTT (Paho project). I am performing subscribe to a topic. Jul 04 12:17:23 SimonVT: But the approach to test whether it is null or not before calling it is what I am thinking ogf. Jul 04 12:17:24 of* Jul 04 12:19:03 SimonVT: you should read its documentation then. most likely you should do in a callback like onConnect or something Jul 04 12:19:18 Just find out why it's null in onCreate, but not after onCreate Jul 04 12:19:30 demahum: Jul 04 12:19:36 SimonVT: sry Jul 04 12:20:03 icedp: SimonVT: That's the thing. I am really not doing anything in between these calls. But OK. Thanks a lot. :) I will figure out something. Jul 04 12:21:16 I have a hard time believing that Jul 04 12:32:32 i`m using setPaddingRelative on a relativeLayout, but this method needs API17 and i want to make it runnable on API14. Does anyone know the alternative? Jul 04 12:34:08 Just setPadding Jul 04 12:35:21 SimonVT: thx Jul 04 12:35:36 hm never heard of this method, what's it about? Jul 04 12:35:57 setting padding ;) Jul 04 12:36:37 A View can set padding, then you can set padding relative to the views padding Jul 04 12:36:52 I meant setPaddingRelative, how is it different? the doc description is identical Jul 04 12:36:53 so padding = view padding + your relative padding Jul 04 12:37:04 The documentation is not identical Jul 04 12:37:20 Oh, it is Jul 04 12:37:38 That's weird Jul 04 12:38:25 ah, it's about RTL Jul 04 12:38:48 ..Relative method has start/end instead of left/right Jul 04 12:38:50 understood Jul 04 12:41:22 Huh, I guess they do the same, except for the rtl part Jul 04 12:41:26 til Jul 04 12:45:32 yeah, it's always so helpful to be able to see source Jul 04 14:02:36 i want to implement LOCK on my application. anyone ? help Jul 04 14:13:22 q: how usually you build input control forms in your android app ? does it work like web-browser form, which send POST to server Jul 04 14:13:52 is it right way if I have an http API and android app is just like a front-end for the app Jul 04 14:21:15 hi everyone, I want to share UrlContent on Facebook from my app notification action. Is there any way to do that ? Jul 04 14:52:02 hello guys,I was looking for a swipe to dismiss view, but there are a lot of libs or choices.Can somebody suggest me a simple one ? Jul 04 15:04:09 hi, I am using opencv android and i am getting OpenCV error: Cannot load info library for OpenCV. Any idea how to fix this? I am not using JNI Jul 04 15:04:35 the stackoverflow posts and replies are for JNI only Jul 04 15:04:37 opencv does Jul 04 16:46:19 Hello - I am creating an app with a navigation drawer, however I have seen this requires *a lot* of boilerplate code. To reduce this, I considered only having 1 activity, which handles my navigation and toolbar, and have all actual "Activities" be Fragments inside this main activity. Jul 04 16:46:44 Would this be considered good practise? Jul 04 17:09:30 it's fine Jul 04 17:11:29 slow 4th Jul 04 17:11:55 no new androidweekly.net issue :( was a slow week Jul 04 17:12:13 here is some fodder http://redmonk.com/sogrady/2015/07/01/language-rankings-6-15/ Jul 04 17:13:01 scala doing pretty well Jul 04 17:14:00 no kotlin :( Jul 04 17:14:04 of course it is Jul 04 17:14:14 kotlin has no presence outside of android Jul 04 17:14:30 there's no reason to use kotlin when you can scala instead Jul 04 17:14:51 even on android, there's little reason to use kotlin over scala Jul 04 17:14:56 except for fud Jul 04 17:15:39 fud makes the world go round Jul 04 17:15:42 :) Jul 04 17:33:00 Hello! Jul 04 17:33:48 Do you know any ads or something to monetize music apps? Jul 04 17:35:41 ringtones probably? what's your opinion? Jul 04 17:37:32 I think I'm going to write a gradle reader if gradle can be treated as a library Jul 04 17:37:54 transparently read and use the gradle build format, but with sbt, hmm Jul 04 17:38:09 for android Jul 04 17:38:33 hey pfn, what would you do to earn some money with a 25k users music app? Jul 04 17:38:49 sell it Jul 04 17:39:54 pfn sounds hard, would you (1) parse the DSL yourself and replicate the semantics or (2) let gradle parse the DSL and query its built up model through instrospection or something ? Jul 04 17:40:38 g00s, see the if, gradle needs to be usable as a library, run the dsl parser, map the resulting android project config Jul 04 17:41:03 no introspection necessary Jul 04 17:41:13 the model is a public api Jul 04 17:41:25 one which the sbt plugin already has as a dependency Jul 04 17:44:02 pfn Brilliant answer :) Jul 04 17:44:33 Mattx What app? Jul 04 17:45:42 my answers always are Jul 04 17:47:58 Binero, I prefer not to tell. but what would you do with it? Jul 04 17:48:16 Mattx I was going to see what kind of app it was Jul 04 17:48:20 it's generating about 20$ a day, it's too low in my opinion but not sure Jul 04 17:48:22 "music app" is a bit vague imo Jul 04 17:48:49 Maybe a lot of your users don't actually use the app. Jul 04 17:48:49 Binero, lyrics, videos, news, images, etc. of the artist you want to follow Jul 04 17:49:10 Binero, about 2.5k use them daily, the return rate is about 70% Jul 04 17:49:15 Big commercial artists or? How did you manage to get the rights? Jul 04 17:49:17 use it daily I meant * Jul 04 17:49:34 Binero, local artists Jul 04 17:50:05 ahhh Jul 04 17:50:27 How are you monetizing right now? Jul 04 17:51:11 admob ads, which are awful for this niche. I've seen ads that I'm sure none would click Jul 04 17:51:33 Maybe you could have an ad-free upgrade or something? Jul 04 17:51:48 It does seem like people wouldn't really mind the ads though Jul 04 17:52:05 one sec, I'm going to check the CTR of admob ads Jul 04 17:53:02 iap then Jul 04 17:53:05 sell shit Jul 04 17:55:24 pfn "iap"? Jul 04 17:58:26 the CTR is 2.56% a banner ad and 3.22% for the interstitial ad Jul 04 17:58:28 isn't it low? Jul 04 18:00:01 I have a noob question..... Jul 04 18:00:26 String userid = newItem.getUserid(); <---- this is throwing an error Jul 04 18:01:00 TinFury What error? Jul 04 18:01:01 Says getUserid (String) cannot be applied to () Jul 04 18:01:31 In squigily line under the () but .getUserid returns a string. What am I doing worng? Jul 04 18:01:38 Do I really need to overwrite onDrawerClosed and onDrawerOpened for an ActionBarDrawerToggle? Jul 04 18:02:02 The example only seems to invalidateOptionsMenu() Jul 04 18:04:47 Anyone? Jul 04 18:09:38 Check the signature of the method, see if you're missing something Jul 04 18:09:46 Never mind..... my getter was messed up Jul 04 18:09:57 Required a string. I must have typod. Jul 04 18:30:50 guys anyone knows how to use git(sourcetree and bitbucket) properly ? :D Jul 04 18:38:03 no Jul 04 18:38:08 no one xie Jul 04 18:38:10 does Jul 04 18:38:27 it's the greatest mystery of mankind Jul 04 18:40:25 sci-fic also there is #git Jul 04 18:40:52 ok let me go Jul 04 18:44:53 Why would I use a fragment instead of just inflating my own content? Jul 04 18:50:47 In case you don't want to maintain your own fragment-like library Jul 04 18:56:27 SimonVT Seems like using Android's Fragment library is *more* difficult than making your own tbh Jul 04 18:57:55 Then sure, do that Jul 04 18:58:02 There's no magic to fragments you can't do yourself Jul 04 18:58:59 what if Lint in AS says: missing density variation folder drawable-xxhdpi, drawable-xxxhdpi but these folders are there? Jul 04 18:59:29 has anyone ever gotten an animation to successfully play when removing a fragment? Jul 04 18:59:31 Probably missing some resources in those folders Jul 04 18:59:33 (as opposed to replacing it) Jul 04 19:00:14 ok thx Jul 04 19:02:02 Is there a way I can associate a menuitem with an activity or a fragment? Jul 04 19:02:56 i imported my project from eclipse to android studio and dont have a mipmap folder. i guess this is just for the launcher icons right? should i create the mipmap folder and density subfolders and move my launcher icons there? Jul 04 19:03:59 When you use Eclipse for Android debugging, does it allow you to pause and edit code like Eclipse allows you to do when debugging normal Java applications? Jul 04 19:05:24 god nothing is more confusing writing an application about Activity in the actual sense of the word Jul 04 19:29:58 people Jul 04 19:30:55 what does this text mean: Additionally, when running more than one process, it's more important than ever that you keep your code as lean as possible, because any unnecessary RAM overhead for common implementations are now replicated in each process. Jul 04 19:31:06 it's fom here: http://developer.android.com/training/articles/memory.html#MultipleProcesses Jul 04 19:31:57 i'm about this: replicated in each process. Jul 04 19:32:29 For example, if you are using enums, all of the RAM needed to create and initialize those constants is duplicated in each process. Jul 04 19:32:32 wtf? Jul 04 19:32:54 There was just a massive earthquake in my town, every thing vibrated really hard. What do i do? Im from midwest ive never been in an earthquake Jul 04 19:32:59 Each process is separate, its own vm Jul 04 19:33:09 If you have a singleton, each process has its own instance of that singleton Jul 04 19:34:33 NateRiver if you are in oklahoma, you can now sue the fracking companies :) Jul 04 19:34:43 Enums are objects, so in each process there's an instance of that object Jul 04 19:35:39 NateRiver http://www.allgov.com/news/controversies/oklahoma-supreme-court-gives-homeowners-go-ahead-to-sue-oil-companies-over-fracking-earthquakes-150702?news=856861 Jul 04 19:39:48 heres my earthquake http://www.oregonlive.com/pacific-northwest-news/index.ssf/2015/07/oregon_jolted_by_42-magnitude.html Jul 04 19:40:04 it was a 42 magnitude quake Jul 04 19:40:16 42 eh Jul 04 19:41:54 SimonVT: thanks, i gues i understand Jul 04 19:58:28 can anyone explain what linux kernal is? and why is it important i know it for android dev? Jul 04 20:02:39 It's not important that you know Jul 04 20:02:49 lollipop is just gingerbread with a skin, they fooled us again Jul 04 20:05:00 when should avoid using an AaryMap and prefer HashMap? Jul 04 20:05:07 *arraymap Jul 04 20:05:40 when it shows better performance during profiling Jul 04 20:06:34 gee thanks Jul 04 20:07:55 well, it's the right answer Jul 04 20:08:23 docs say when you have a large number of items and need fast access Jul 04 20:15:53 Says it uses less memory but is slower.. So I suppose you weigh those two Jul 04 20:51:31 hey dunno if this is dev stuff Jul 04 20:51:50 can I launch personal commercial apps while working for a company? Jul 04 20:53:48 That's a question for HR/a lawyer Jul 04 20:56:57 I'm guessing many here are pro devs so they might have an idea Jul 04 20:57:12 I can't ask my HR.. he'll kill me :P Jul 04 20:57:39 your employment contract says what you can do Jul 04 20:57:43 Well, it depends on your contract Jul 04 20:58:13 I work for a company doing X. I can't do X for other companies in my free time without explicit content from my employer Jul 04 20:58:44 oh yeah... sheeit Jul 04 20:58:56 that line I remember Jul 04 21:03:55 you should have your copy of a contract Jul 04 21:10:05 icedp: yeah now I think so Jul 04 21:13:25 ashwink005, you answered your own question. if you feel you can't be open and straightforward with your HR person, then you already know what you want is most likely not an option. Jul 04 21:15:18 wakelock: yeah true Jul 04 21:16:13 meh, just do it anyway Jul 04 21:31:42 hi Jul 04 21:31:44 I want to create a MENU like in Messenger (4 icons for 4 of my activities). Should I use an ActionBar or a Fragment for this ? Jul 04 21:31:52 I don't see the interest of using an ActionBar actually Jul 04 21:31:59 it seems to be apt for customization unlike Fragments Jul 04 21:32:05 even though I want a simple menu: just 4 icons Jul 04 21:42:43 the new boston channel is a good one for AI tuts Jul 04 21:50:13 I just dont understand the difference between PS and AI, whats the difference? Jul 04 22:04:18 NateRiver: AI provides vector graphics. The illustrations made there are "sizeable" without losing quality whilst stuff on photoshop will lose quality and pixelate Jul 04 22:04:49 a google search might provide you better answers though Jul 04 22:29:06 why does Google camera suck so much? after forever, it still doesn't go fullscreen Jul 04 22:41:09 I have an app with a service. Everything works perfectly. When I kill the app, service stops. What could be the reason (I don't want that to happen)? Jul 04 22:55:48 I have an app with a service. Everything works perfectly. When I kill the app, service stops. What could be the reason (I don't want that to happen)? Jul 04 23:02:54 I have an app with a service. Everything works perfectly. When I kill the app, service stops. What could be the reason (I don't want that to happen)? Jul 04 23:30:11 demahum, how are you launching the service? Jul 04 23:30:55 Ologn: I have just found exact question on StackOverflow that explains my issue. Here it is: http://stackoverflow.com/questions/28543569/paho-mqtt-android-service-issue Jul 04 23:31:04 Ologn: But the solution is not found jet. :( Jul 04 23:32:55 of course if you kill the app the service stops Jul 04 23:32:59 Ologn: I am starting it with startService() Jul 04 23:33:02 the service is part of the app Jul 04 23:33:20 pfn: But how to make it outside? Viber, WhatsApp, Messenger, how do they do it? Jul 04 23:33:32 pfn: I mean, if you swipe the app from recent apps... Jul 04 23:33:38 the app is never killed Jul 04 23:33:39 pfn: Not completely kill it. :D Jul 04 23:33:58 pfn: So how do they do it? :D Jul 04 23:34:09 they use gcm Jul 04 23:34:42 pfn: Even messenger? Jul 04 23:35:41 A service should not be used for that type of long running receiver essentially Jul 04 23:36:17 yes use push for updates sent to the phone. Jul 04 23:36:53 shadynastys: What to use then* Jul 04 23:36:59 ?* Jul 04 23:41:00 demahum i think messenger is 2 processes; UI and 'ever listening backend' Jul 04 23:42:00 dont know how well thats going to work with doze mode going forward Jul 04 23:42:13 demahum: Use gcm like pfn. Jul 04 23:42:37 ooo doze mode. did i miss something? Jul 04 23:43:51 And no one solved it so far. Jul 04 23:43:51 I understand. However, I have found another question which is exactly the same as mine: http://stackoverflow.com/questions/28142000/paho-mqtt-android-service-wake-up-activity Jul 04 23:44:37 demahum lol, they used mqtt too Jul 04 23:44:49 g00s: I know I know. :D Jul 04 23:45:03 g00s: That's what I am trying to implement these days. Jul 04 23:45:09 (messenger) Jul 04 23:47:00 Sounds like their objective with doze mode was to actually sacrifice the app freshness. Maybe that means they will stall the gcm untill the phone wakes up again. Thats neat! Jul 04 23:47:23 gcm gets special priority Jul 04 23:47:54 ahh will it wake the phone up then? Jul 04 23:48:01 or device for that matter Jul 04 23:48:39 shadynastys too early to tell. i would wait for MNC 2 to see if its as crazy as MNC 1 Jul 04 23:48:40 https://commonsware.com/blog/2015/06/03/random-musing-m-developer-preview-ugly-part-one.html Jul 04 23:49:22 Almost 110,000: https://www.change.org/p/ellen-k-pao-step-down-as-ceo-of-reddit-inc Jul 04 23:50:04 TacticalJoke does anyone really understand what happened ? i dont get what ellen did, or what happened to that ama mod Jul 04 23:50:22 reminds me of the dipshits looking for the boston bomber pointing out the wrong person Jul 04 23:50:46 i mean, beside ellen fired that lady - and who knows why ? Jul 04 23:50:54 demahum: do not use mqtt it seems like the fundamental part of mqtt is a service. We are saying do not use a service for sending and receiving messages over long time periods. Use GCM. Jul 04 23:51:15 following the reddit news i see Jul 04 23:52:00 As far as I can tell, a lot of mods feel that the reddit staff have little respect for them or for general users. Jul 04 23:53:09 i dont think the relationship between reddit and mods is different than any other big internet company using free digital labor Jul 04 23:53:29 Also, it seems that they're shutting down free speech quite a lot now. I do get the impression that reddit could finally die. Jul 04 23:53:48 i think what they are seeing , but being unable to articulate it, is a logical inconsistency in their technocratic uptopianism Jul 04 23:54:18 Some guy was shadow-banned apparently for suggesting that the mods shouldn't've backed down so quickly with the darkness thing. Jul 04 23:55:09 Yeah, but reddit seemed to be pretty good at allowing free speech before. The site is looking way worse now. Jul 04 23:55:45 When /r/jailbait was banned, it was very much "We regret having to do this, but our hand was forced". Just yesterday, they quietly banned an anti-Pao subreddit (which, as far as I can tell, wasn't actually breaking any reddit rules or laws). Jul 04 23:55:58 they probably received some lawyer letters ;) Jul 04 23:56:16 in fairness, reddit is not a gov't, they are a private organization Jul 04 23:56:19 shadynastys: You're saying don't use mqtt or don't use service for such purpose? Jul 04 23:56:38 when i one day run Sigmabeta incorporated, the largest company on planet earth, if we have a forum you can bet people are gonna be banned for talking smack about me Jul 04 23:57:03 My technocratic utopianism died off sometime between 1994 and 2000... Jul 04 23:57:04 lol Jul 04 23:57:20 It's a private site, sure, but the attitude of the reddit staff does seem to have deteriorated. I think reddit was a better place for users before. Jul 04 23:57:21 demahum: dont use the service. Jul 04 23:57:35 they were not in the radar "before" Jul 04 23:57:38 shadynastys: So it would be possible to combine gcm and mqtt? Jul 04 23:57:39 meh, i left years ago and it had nothing to do with staff Jul 04 23:57:46 It's not good for the staff. If things keep going downhill, reddit will probably become the next Digg. Jul 04 23:57:58 It's also not good for users, since they have to find some other way to build the same communities. Jul 04 23:58:03 I mean us using IRC is kind of old school and unusual.... Jul 04 23:58:08 i understand your situation TacticalJoke, all those efforts in your reddit app :D Jul 04 23:58:18 Yeah, it's unfortunate for me. lol Jul 04 23:58:22 which app is that? Jul 04 23:58:33 release it now! it might benefits of the drama Jul 04 23:58:52 dmahum: What i am saying is dont use the service a a long running task to send and receive messages. If your user is not engaged in your app then you should probably not have a service running. Jul 04 23:59:46 shadynastys: Ok. I understand that. But what should I use instead to notify the user of messages received (even he is not engaged in the app)? Jul 04 23:59:51 sigmabeta-laptop, the one TacticalJoke works on (it's not out, yet) Jul 05 00:00:05 ah, i was just curious if it was one of the ones i used Jul 05 00:00:11 yeah i got that :) Jul 05 00:00:12 GCM Jul 05 00:00:45 frankly, i don't think reddit is in danger Jul 05 00:01:07 I think it's unlikely to die, but I do think there's a reasonable chance. Jul 05 00:01:19 i think reddit has a very large population of pleasant folk with things to talk about that don't have anything to do with the type of stuff free-speech advocates are defending Jul 05 00:01:23 can't they just throw more bacon at it ? Jul 05 00:01:31 If they fire Pao (as that rumour states), reddit (even if they carry on messing things up in the name of monetization) will probably be stronger than ever. Jul 05 00:01:56 demahum: use GCM to notify the user that a message has come in. Jul 05 00:02:07 I doubt that rumour is true though. Seems too perfect. Jul 05 00:02:37 demahum are you using MQTT ? Jul 05 00:02:55 demahum: you should probably not use MQTT Jul 05 00:03:23 I'm wondering how much heap hundredS of SweepGradient is going to take Jul 05 00:03:58 This is the rumour: https://np.reddit.com/r/business/comments/3c15pe/how_to_fire_a_ceo_of_course_boards_make_hiring/csrqshs Jul 05 00:05:11 >edit3: the anonymous commenter revealed it was fake Jul 05 00:05:50 Ah, didn't see that update. Jul 05 00:06:18 The "proof it was me" thing could've been faked, though. :D Jul 05 00:06:55 g00s: Yes. I do. Jul 05 00:07:04 shadynastys: Thanks for the advice. Now I understand. Jul 05 00:07:14 shadynastys: Why do you say not to use mqtt? Jul 05 00:07:21 yeah, ultimately this is the type of stuff that led me to lose interest in reddit Jul 05 00:07:46 the amount of bad information on it is just astounding, and i dont have time to go vetting people's misinformation all day Jul 05 00:07:49 That doesn't make a lot sense to me, because reddit is 1,000 different things. Jul 05 00:08:17 Yeah, but if you go to /r/androiddev, for example, you'll see completely different people not even discussing this. Like a whole new site. Jul 05 00:08:27 sure Jul 05 00:08:37 and i still visit that subreddit from time to time Jul 05 00:08:37 demahum yeah if you are using MQTT than GCM isn't going to help at all Jul 05 00:08:49 demahum: MQTT seems to be useful for setting up push notifications. There is already something built in for this. GCM. It does not use a long running service that takes up resources. Jul 05 00:09:26 shadynastys its a protocol for a lot of things, although some use it for push Jul 05 00:09:44 I feel like MQTT might have been real useful for some situations. So i guess it depends on what you need it for. Jul 05 00:10:55 what is annoying is that GCM is the only way to reliably do stuff from doze mode now Jul 05 00:11:05 so thats terrific vendor lockin Jul 05 00:11:55 demahum: what is your objective? it think i came in a little late. Jul 05 00:14:15 https://i.imgur.com/jsVvVET.png Jul 05 00:14:18 lel Jul 05 00:14:41 lol Jul 05 00:15:09 it shows he cares Jul 05 00:15:20 g00s: That's why I was confused when someone mentioned gcm, and I am using mqtt. Jul 05 00:15:34 For what Jul 05 00:16:02 g00s: shadynastys: Paho project is perfect. It has everything I need. My problem is that the service in it gets killed when you swipe out the app from recent apps. Jul 05 00:17:09 demahum about a year ago, we were talking about paho + java service on #mqtt. i told them it was a bad idea Jul 05 00:17:31 but - they went ahead anyhow. if there is any hope, you'll have to create your own service, make it foreground, whatever Jul 05 00:17:37 demahum: why is it so perfect? maybe there is something out there that is better that you have not thought of. Usually long running services are just a bad idea in general Jul 05 00:18:43 1000 SweepGradients: http://i.imgur.com/ogAuYHv.png Jul 05 00:18:52 what a nice look-up table :))) Jul 05 00:19:46 social networks should be owned by the public Jul 05 00:21:48 demahum: when i first got here i saw you mention whatsApp and Messenger asking how they did things. I assumed you were making some sort of messaging app, my bad. For that MQTT is probably not the best solution. Jul 05 00:22:39 shadynastys: Well, you assumed good. I am making some sort of messaging app. :D Jul 05 00:23:39 g00s: Thanks for the info. I mean, it is not perfect, but it has everything I need. And it works fine. Just the service is the problem. I have tried to make the MqttService foreground, but it does not work again. :/ Jul 05 00:23:43 TacticalJoke maybe its as simple as reddit needing to keep the lights on and fire somebody; after all their servers are constantly going down :P Jul 05 00:25:06 more crap about victoria ? Jul 05 00:25:12 seriously lay off it Jul 05 00:26:37 Corey84 this isn't reddit :) Jul 05 00:26:51 demahum: Yes then you probably do not want to use MQTT. If you use MQTT then you will need the service running at all times to receive messages. This is not really good design. You should try to utilize GCM te receive messages when the app is not running. i think it is the perferred way of getting messages in the background Jul 05 00:27:26 thank god Jul 05 00:27:32 demahum yeah, if you want to do a messenging app - i'd not use mqtt Jul 05 00:27:52 had to supress several reddit notify settigns after that crap Jul 05 00:27:54 mqtt is good if you need IoT communication, which, has the same use case except its machines not users Jul 05 00:28:49 Corey84 its generally not being discussed here, except some meta-conversation about reddit and digital labor in general Jul 05 00:28:53 Corey84: Why get so angry? It's just some social-news-site drama. Who cares. Jul 05 00:29:26 Then again, your text might just *seem* angry. It's hard to tell in text. Jul 05 00:31:27 Ok enough distractions. I do actually have a problem. https://gist.github.com/px-amaac/3f659b633de4c004e6b9 Jul 05 00:31:40 shadynastys: g00s: and others: Thanks a lot for your advices. :) Jul 05 00:32:00 demahum good luck :) Jul 05 00:32:02 When i use the code in program.java to display the host name I im greeted with the id instead. Jul 05 00:32:13 Every successful tech startup in living memory was built on free labor Jul 05 00:32:18 Google, Facebook... Jul 05 00:32:21 demahum: gl Jul 05 00:32:40 it has bled over to some facebook groups i admin sorry bit tired of it all Jul 05 00:32:50 g00s: I hope so I will make it run forever (the service) shadynastys: At least to see how it looks... And for learning... :D Jul 05 00:33:01 I have posted the JSON for the program and the parcelable class I am using for the host data. Jul 05 00:33:03 Others will be thankful. :) Jul 05 00:34:19 Can someone please check my parcelable. I dont think that is the problem but for sanity it would be good. https://gist.github.com/px-amaac/3f659b633de4c004e6b9 Jul 05 00:36:41 Ologn yeah, and then at some point the company needs to make money and double-rape their users: they were working for free, and then need to continue adding to the company, but also get monetized somehow to keep the services on :) Jul 05 00:38:50 shadynastys: It's hard to tell from that snipper. Have you tried sprinkling Log.d calls around? That's probably one of the easier ways of debugging something like this. Jul 05 00:39:15 On a side note, that string-concatenation code isn't efficient in general. Much better to use StringBuilder (to avoid repeated allocations). Jul 05 00:40:31 Also, `!hosts.isEmpty()` isn't needed, and (sorry) this stuff makes baby Jesus cry: /** @param username The username */ Jul 05 00:40:55 http://i.imgur.com/dEZWw7v.png this is FM like in audio, except it's "frame modulation" using sin as a modulator and the canvas as the carrier :x Jul 05 00:41:34 when the sweep arc size increases... the frame takes longer to draw Jul 05 00:42:00 (this is why i need these 1000 sweepgradient in an array as a lookup table, i cannot allow any new there) Jul 05 00:42:46 s/need/needed/ Jul 05 00:44:23 TacticalJoke, yes you are right on the string builder I was just trying to see some data. on the isEmpty sorry I am paranoid. Jul 05 00:44:35 The loop won't run if it's empty. Jul 05 00:44:52 Ya i know like i said paranoid. Jul 05 00:45:21 I have debugged the app and when it gets to the place where it is putting data in the view the getDisplayName is returning the ID. the ID is returning the package name. and getUsername displays the Display name that I wanted. Jul 05 00:46:00 Its off by one Jul 05 00:47:13 I could just use the getUsername() method but I am really stumped by this. I have never had parcelable mess with me like this. Jul 05 00:49:16 Why do you think it's Parcelable? Jul 05 00:51:51 because the data comes in correctly. When it is put in a parcel and pulled out is when the data is messed up Jul 05 00:52:51 TacticalJoke: Ty for the tips and extra eyes on my parcelable. I figured that if that one was correct then there must be another one up the chain of objects that is worng. Found it. Jul 05 00:53:22 program object was writing a list to parcel instead of a typed list. Jul 05 00:53:38 TacticalJoke are you using ScheduledExecutorService ? Jul 05 00:54:48 Not at the moment. Just ThreadPoolExecutor. Jul 05 01:41:07 eh? how was google built on free labor Jul 05 01:41:23 calling advertising eyeballs free labor? Jul 05 01:41:49 same with Facebook Jul 05 01:44:33 some people have a thing against being successful, I guess Jul 05 01:45:06 I'm thinking of going down the c++ rout for game dev.. but I've been tracking some java and google people and they seem to make a go of java. Thoughs? Jul 05 01:45:33 use whatever gives you the performance you need Jul 05 01:45:54 baash05: check out replica island Jul 05 01:46:17 that is a perfect example of java doing the job. Jul 05 01:46:28 done in java, game engine works by shunting a list of renderables that is optimized based on performance, per render step Jul 05 01:46:35 has replica island gotten any better? Jul 05 01:47:04 baash05: you can also look up the author of that game, he has a couple of videos that are really good if you are trying to understand how tackle gam dev Jul 05 01:47:05 pfn: Not sure when you last looked at it. Jul 05 01:47:19 like 2009 Jul 05 01:47:20 I watched all his vids :) Jul 05 01:47:29 baash05: of course, if you can do java make sure to check out libgdx then you can go cross platform Jul 05 01:47:37 it's gotten much better since 2009 Jul 05 01:47:46 and debug on your machine, as opposed to through the android device Jul 05 01:48:03 baash05: what kind of game are you trying to make/ Jul 05 01:48:22 A side scroller might do me. Jul 05 01:48:33 in which case replicateisland will do fine Jul 05 01:48:38 but that's just the first game. Jul 05 01:48:48 yeah Jul 05 01:48:51 I want to build a game for kids. Jul 05 01:49:10 like the jetpack game.. where they have to run to the right. Jul 05 01:49:17 and jump. Jul 05 01:49:18 if you're trying to make an immersive first person open world game probably C++ is the way to go ;p but for most other things you'll probably do fine with java for the time being Jul 05 01:52:41 The reason I was thinking c++ is because I've years experience writing in it.. (for palm, pocketpc and windows) but none in android. I've been poking at the idea of android dev for a while and of course c++ would be my druthers. Jul 05 01:54:13 replica-island though has me thinking of going Java. Jul 05 01:54:18 make sure you get the basics of android down (non c++) like how the component's lifecycle's work and how to handle fragmnetation (providing for different devices) Jul 05 01:55:27 I've created a few java based apps (one small game) Jul 05 01:56:14 Anyone here write anything in c++? Jul 05 01:56:37 I of course mean for android.. Jul 05 01:57:03 im trying to create a custom calendar event Jul 05 01:57:10 http://stackoverflow.com/questions/3721963/how-to-add-calendar-events-in-android Jul 05 01:57:15 how do i set the date of the custom event? Jul 05 01:57:21 i know i have to add an extra variable into intent.putextra Jul 05 02:01:15 http://developer.android.com/guide/topics/providers/calendar-provider.html#intents doesn't this answer that? Jul 05 02:04:39 It's not quite accurate that there is no "native" calendar. Most android OEM add a calendar app that interacts with the calendar-provider. Jul 05 02:05:36 Perhaps it's not native but there's a very good chance there's a calendar app on every phone made today. Jul 05 02:05:58 no i mean like Jul 05 02:06:06 the next answer down Jul 05 02:06:12 intent.putExtra("allDay", true); Jul 05 02:06:17 intent.putExtra("beginTime", cal.getTimeInMillis()); Jul 05 02:06:25 what do I putExtra to but in a beginning date Jul 05 02:06:34 should be like startDate but that doesnt work Jul 05 02:06:53 intent.putExtra("startDate", new Date()); Jul 05 02:06:58 something like tht Jul 05 02:08:04 well you see begintime and endtime Jul 05 02:08:08 yeah Jul 05 02:08:10 but thats a long Jul 05 02:08:22 so? Jul 05 02:08:29 all time is a long Jul 05 02:08:31 how do i turn a Date into it Jul 05 02:08:44 getTime Jul 05 02:08:44 Date object Jul 05 02:08:51 ooh ill try that thx Jul 05 02:09:28 the link I provided has a crystal clear way to accomplish this Jul 05 02:09:49 The person i rent a room from in Eugene is Greg Gore. the infamous first cousin of Al Gore. Al Gore is comming to visit soon Jul 05 02:10:20 beginTime.set(2012, ...); Jul 05 02:10:36 NateRiver: what will be his Alagory ? Jul 05 02:11:03 Uggh.. Jul 05 02:11:08 pfn Jul 05 02:11:11 theres no such thing as getTime Jul 05 02:11:24 not my fault you can't read api docs Jul 05 02:11:39 global warming Jul 05 02:11:42 nvm Jul 05 02:11:42 nvm Jul 05 02:11:48 fuck me lol Jul 05 02:11:50 thx pfn Jul 05 02:11:58 liftedbronco: what are you trying to do? Jul 05 02:12:05 :) Jul 05 02:13:08 im just a young person paying 375 for a room, i knew Greg was enviromental and democratic but this? cousin to Al gore? ive never met a famous person Jul 05 02:13:42 baash make a custom calendar event Jul 05 02:13:59 NateRiver at least 375 a night gets you a pretty nice room Jul 05 02:14:14 what about the link doesn't work? Jul 05 02:14:27 errr Jul 05 02:14:36 it works now i wasnt doing it properly Jul 05 02:14:48 im a dumb programmer :( Jul 05 02:14:49 Ah.. Jul 05 02:16:45 I always say Arnold walked into the gym a small guy, on his first day. Jul 05 02:17:16 may not be true, but I like to think it is. Jul 05 02:17:42 yeah and then he took a shit ton of steroids and illegal drugs to get big Jul 05 02:18:31 start lifting weights you may one day also become a governor Jul 05 02:18:36 and we drink redbull and coffee. :) Jul 05 02:19:02 methamphetamine is the equivalent of steroids for programmers Jul 05 02:19:22 redbull and coffee is pre workout lol Jul 05 02:20:08 any c++ guys/girls here? Jul 05 02:20:33 you still using eclipse or do you cut your own make files? Jul 05 02:21:16 can you make android apps with C++ now? Jul 05 02:21:21 or is that still in the works Jul 05 02:21:28 always have been able to Jul 05 02:23:15 the NDK is how you write c++ apps for android (now a days).. It has been around for a while now (several years). Jul 05 02:23:35 I think there might have been something before that but I don't see any reference to it. Jul 05 02:23:44 Java is still the primary. Jul 05 02:23:52 i mean like Jul 05 02:23:57 they were talking about it at google io Jul 05 02:24:05 they said soon you can use c++ with android studio Jul 05 02:24:22 that's just android studio Jul 05 02:24:24 i was like "who would wanan use C++ if they dont have to?" Jul 05 02:24:24 Ah.. that should have been a few weeks ago with version 1.3.. Jul 05 02:24:31 but that was delayed. Jul 05 02:24:43 C++ is so gay lol Jul 05 02:24:43 I personally love c++.. Jul 05 02:24:50 pure speed baby Jul 05 02:24:58 it is a wonderful tool. Jul 05 02:25:01 memory management thats that shit i dont like Jul 05 02:25:06 only thin better is masm Jul 05 02:25:15 might as well code in binary then Jul 05 02:26:02 thought I said that :p Jul 05 02:27:15 ha. Jul 05 02:27:32 the fact Eclipse/AS has poor/no support for NDK doesn't mean you can't make full-blown android apps in C++ Jul 05 02:27:52 this is common knowledge actually, also easily googlable Jul 05 02:27:56 C++ FTW Jul 05 02:27:59 FWIW Jul 05 02:28:10 all languages suck Jul 05 02:28:21 c++ sucks faster :) Jul 05 02:28:49 I've done extensive work with C and C++ on Android Jul 05 02:28:57 no language is perfect or ideal, you should always choose the language that's best suited for the task at hand Jul 05 02:29:24 wakelock: do you use c++ in android dev? Jul 05 02:29:34 no Jul 05 02:29:51 My only compliant with C++ on Android is that it’s clear Google only begrudingly supports it. Jul 05 02:30:08 so? Jul 05 02:30:12 you should avoid NDK if the java way works Jul 05 02:30:15 gcc is there, g++ is there, make is there Jul 05 02:30:18 C# master race lol Jul 05 02:30:25 what else do you need? pretty icons and GUI? Jul 05 02:30:33 who wants an app without pretty icons................... Jul 05 02:31:20 wakelock: NDK GCC tends to lag and has significant code generation issues. Jul 05 02:32:09 life is funny eh guys Jul 05 02:32:11 GCC 4.9 has significant code generation issues when targetting AArch64. GCC 5.0 addresses most of them but there’s no timeline as to when it’ll be included in the NDK. Jul 05 02:32:19 i bought something off a guy on craigslist and he offered me a job after lol Jul 05 02:33:01 gcc5 is not even on desktops (linux et al) Jul 05 02:33:42 the first targets for webassembly are apparently c and c++ Jul 05 02:33:45 wakelock: It’s less urgent on desktops since x86 code generation is far more mature. Jul 05 02:33:48 The NDK is good for legacy or cross-platform code primarily.. Jul 05 02:34:37 hey guys please educate me Jul 05 02:34:49 why would you wanna use C++ over java for app dev? Jul 05 02:34:54 you have google for that Jul 05 02:34:57 use it Jul 05 02:34:58 liftedbronco: Have you seen Kotlin? It's nicer than C# in a few ways. Jul 05 02:34:59 I'm thinking of starting my career on android in c++. Jul 05 02:35:05 liftedbronco, because you have legacy code Jul 05 02:35:11 liftedbronco is it an interview question :D Jul 05 02:35:26 liftedbronco, because you want to write a cross-platform game/screensaver etc. Jul 05 02:35:27 liftedbronco: You want to make video games. Jul 05 02:35:56 err, i mostly do unity programming lol Jul 05 02:36:05 if if i wanna write a cross-platform game i'd use unity Jul 05 02:36:38 I ported a bunch of cross-platform games to Android Jul 05 02:36:39 i mean i guess cocos Jul 05 02:36:40 what do you think unity is written in? Jul 05 02:36:49 Ha ha. Jul 05 02:38:36 I'm a ruby/rails dev by paycheque and knowing how the c++ under the hood works has helped make a pile of my code faster. Jul 05 02:38:59 Java is fine 99.9% of the time. Jul 05 02:39:10 but c++ is more fun. Jul 05 02:39:33 anyways ima be forced to learn C++ in school next term Jul 05 02:39:35 so fuck me Jul 05 02:39:48 oh lord, a school boy Jul 05 02:39:57 of course you don't understand the point of c++ Jul 05 02:40:02 im a college boy lol Jul 05 02:40:07 same thing Jul 05 02:40:11 Ha ha.. Joke right wakelock Jul 05 02:40:16 point of it.. Jul 05 02:40:18 ha Jul 05 02:40:18 http://www.bcit.ca/study/courses/comp2617 Jul 05 02:40:37 C++ just makes stuff harder than it needs to be, the way i see it Jul 05 02:40:54 you're a beginner, of course you would think that Jul 05 02:40:56 its like making your own backend, when you have a perfectly good parse.com at your disposal Jul 05 02:40:57 Not true liftedbronco. it make things clearer. Jul 05 02:41:07 liftedbronco: then use C Jul 05 02:41:27 I've been using Unix since the 1980s...I can make simple backends in my sleep Jul 05 02:41:38 https://en.wikipedia.org/wiki/Brainfuck Jul 05 02:41:52 liftedbronco: if you like the way things work out of the box, you're in the wrong career. Jul 05 02:41:56 C is a nice and neat language. It's consistent; it has design. None of the foregoing can be said about C++. :D Jul 05 02:42:27 * wakelock has been using unix since before bell labs made it :p Jul 05 02:42:41 baash05 right now i'm mostly prototyping and doing VR mobile games Jul 05 02:42:43 liftedbronco what school ? Jul 05 02:42:47 BCIT Jul 05 02:43:11 By backend I mean LAMP plus things like BIND, Postfix, Nagios etc. Jul 05 02:43:15 liftedbronco: I am still getting over my C++-induced PTSD. I find that reading is pretty good therapy. Jul 05 02:43:45 @TacticalJoke that website says, and I quote "There is no reason to use C++ for new projects. " Jul 05 02:44:08 Yeah, that's a little unrealistic. Jul 05 02:45:21 I'm semi-joking btw guys, I know theres a solid purpose for C++. But Java&C#&Swift&Javascript is enough for my lazy ass. Jul 05 02:46:14 I'm actually taking javascript right now. liftedbronco Jul 05 02:46:16 liftedbronco so you do ios too ? Jul 05 02:46:20 Dude, I back you up and then you retreat. Fine, I'll have to fight this battle alone. :D Jul 05 02:46:34 baash05 what are you using for study (JS) ? Jul 05 02:46:43 g00s just starting with iOS Jul 05 02:46:48 the c++ source code :) Jul 05 02:47:08 I got 1 app out and I'm redoing my Tally Counter app for iWatch in swift (super duper duper simple) Jul 05 02:47:17 baash05 you are studying JS by reading c++ ? Jul 05 02:47:25 TacticalJoke: I remember reading the C++ FQA back in the 90s. It seemed relevant and reasonable back then, but now it just seems grumpy and out of touch with modern C++. Jul 05 02:47:38 it is part of how I'm learning it. Jul 05 02:47:47 O.o Jul 05 02:48:03 C++ all the things! Jul 05 02:48:24 what is all this C++ cancer doing in an android irc channel anyway, lol Jul 05 02:48:45 g00s: I work with a few javascript pro's (as I'm a back end web guy). Jul 05 02:49:16 well most of the desktop apps we use are done in C++ Jul 05 02:49:16 everybody is a JS pro :D :D Jul 05 02:50:00 I actually know more about the language after a few weeks with the c++ than they do.. I'm not as productive as they are, but soon I'll know why their code works then I'll know how. Jul 05 02:50:14 by JS pro's I mean real artists in the lang. Jul 05 02:50:23 i still dont get what JS and C++ have to do with each other, study wise Jul 05 02:50:45 baash just has no clue what he's talking about Jul 05 02:50:46 g00s: learn by doing ... https://bugzilla.mozilla.org/show_bug.cgi?id=1171929 Jul 05 02:51:06 liftedbronco: JS is interpreted by an app. Jul 05 02:51:31 do you work for mobify? jw lol Jul 05 02:51:36 capella there is a mentor for that bug ... Jul 05 02:51:44 yah, me Jul 05 02:51:59 liftedbronco: https://code.google.com/p/v8/ Jul 05 02:52:01 ooops, forgot to switch out margaret ; heh - she wont mind Jul 05 02:52:03 capella you are Margaret Leibovic :P ? Jul 05 02:52:05 nvm ur sweden Jul 05 02:52:35 Anyway.. so make files for now :) Jul 05 02:54:26 g00s: if you pick that up Ill add my name ... I've got more time than margaret anyhow, and I wrote most of that Jul 05 02:54:50 Actually, ActionBarHandler.js I wrote all of ;) Jul 05 02:57:08 * capella ( javascript ... slightly off-topic ) **** ENDING LOGGING AT Sun Jul 05 02:59:58 2015