**** BEGIN LOGGING AT Thu Sep 29 02:59:58 2016 Sep 29 03:25:52 Hi friends. you know "labels" or "tags" right Sep 29 03:26:07 ie. on stackoverflow you can assign a bunch of labels to a question Sep 29 03:26:45 http://stackoverflow.com/q/35618998 for example has the labels: android android-support-library android-support-design Sep 29 03:28:01 i want to do something similar in android. i have an ArrayList of strings, an unknown number, and I want to put them on the UI each with a nice little border around it like on stackoverflow link Sep 29 03:28:13 what is the best way to achieve that? Sep 29 03:34:05 TextView with a background Sep 29 03:34:45 You can create a custom drawable that looks how you want, then use it as a background. Sep 29 03:36:20 i am ok with that part of it @orbyt_ Sep 29 03:36:31 i meant more in terms of handling the dynamic number of them Sep 29 03:36:52 like sometimes there could be 3 in the array, sometimes 0, sometimes 10 Sep 29 03:37:09 do i have to create the textviews at run time or is there a smarter approach, like adapters or something Sep 29 03:37:27 What are you trying to do exactly? Sep 29 03:41:53 display the labels Sep 29 03:42:17 Like imagine a very simple view... a title and a bunch of labels like this: Sep 29 03:42:22 -- TITLE -- Sep 29 03:42:29 [label1] [label2] [label3] Sep 29 03:42:46 i'm trying to show the labels, which I currently have in an ArrayList Sep 29 03:58:59 is textview the right approach? Sep 29 04:35:04 anyone? Sep 29 04:36:04 i was sure someone would chime in with a "use a multi-line horizontal list view" or something Sep 29 04:37:49 hi Sep 29 04:49:22 AlecTaylor are you from Zimbabwe Sep 29 04:49:28 Nope Sep 29 04:49:31 Why? Sep 29 04:49:44 i think there was a cricket called Alec Taylor Sep 29 04:49:47 *cricket player Sep 29 04:52:34 xD Sep 29 04:53:10 http://www.espncricinfo.com/Zimbabwe/content/player/55807.html Sep 29 04:59:42 um, looking through $ANDROID_SDK_DIR/extras/android/m2repository/com/android/support/constraint .. i only have alpha1, where are the rest ? Sep 29 05:00:10 i have support repository 38 Sep 29 05:06:48 ir7466: Lol it's true Sep 29 05:15:48 oh weird, i guess the standalone sdk manager and the one in AS don't agree Sep 29 05:30:23 i had 15gb free space Sep 29 05:30:31 just ran an update in the sdk manager - disk full Sep 29 05:42:50 ir7466: Story of my life Sep 29 05:45:45 yep, when i saw 0 bytes remaining it clean bowled me Sep 29 05:46:07 i thought about writing a huge rant in here but i decided to let it go through to the keeper Sep 29 05:46:55 when things like these happen you've got no choice but to play it with a straight bat Sep 29 05:48:13 it's all gone rather commonwealth in here... Sep 29 05:52:04 on https://android-arsenal.com/details/1/3134 it mentions xml attributes like "app:container_enable_drag="false"" Sep 29 05:52:09 but what should "app" be set to? Sep 29 05:55:38 app namespace? Sep 29 05:55:53 https://github.com/jjhesk/TagViewLayout/blob/master/TagLayoutLib/sample/src/main/res/layout/content_main.xml Sep 29 05:55:54 How do I namespace XML `android:id`? - I've tried: `@+id/activity_name:email` and `@+id/activity_name/email` Sep 29 05:56:31 _ Sep 29 05:56:36 not : or / Sep 29 06:14:17 raoul11 eh Sep 29 06:14:42 All well, that's how I've been doing it Sep 29 06:14:46 Guess it'll suffice with an underscore Sep 29 06:16:28 underscores4lyfe yo Sep 29 06:16:29 well because its then translated to java code Sep 29 06:16:39 you cant have : or / in variable name Sep 29 06:45:34 If i have a string like "2016-09-27T09:19:57Z" - is there a nice function i can use to convert that into a string date and time? Sep 29 06:45:37 like "September 27, 2016 at 9:19 AM" or something Sep 29 06:46:39 ir7466: http://stackoverflow.com/questions/12201233/convert-iso8601-string-date-time-format-to-date-in-java Sep 29 06:46:41 did you google that? that is a pretty common question Sep 29 06:47:11 i did google Sep 29 06:47:18 but i was looking for something like strtotime in php Sep 29 06:47:33 because i know once you've got a timestamp it's easy to manipulate Sep 29 06:48:09 @blusky: that basically says its not possible Sep 29 06:48:19 without writing your own adapter Sep 29 06:48:29 surely in the last 4 years we've moved past that Sep 29 06:48:58 ir7466: really ? Sep 29 06:49:15 you can't click on provided link by other user ? Sep 29 06:49:18 you can search a little Sep 29 06:49:25 :) Sep 29 06:49:56 hint: it says, somewhere "This question already has an answer here" Sep 29 06:50:02 you're talking about http://stackoverflow.com/questions/2201925/converting-iso-8601-compliant-string-to-java-util-date ? Sep 29 06:50:33 "Unfortunately, the time zone formats available to SimpleDateFormat (Java 6 and earlier) are not ISO 8601 compliant. SimpleDateFormat understands time zone strings like "GMT+01:00" or "+0100", the latter according to RFC # 822." Sep 29 06:51:01 answer Sep 29 06:51:03 Thanks to JuanZe's comment, I found the Joda-Time magic, it is also described here. So, the solution is Sep 29 06:51:11 honestly, you don't deserve my time Sep 29 06:51:28 SimpleDateFormat can parse the string you pasted. For some other formats you might need a proper date time library Sep 29 06:52:58 ir7466 your timestamp string doesn't include any +XXXX stuff Sep 29 06:54:20 @whatitis: that was how I read it too, that SimpleDateFormat would *not* work because I don't have the +XXXX stuff Sep 29 06:54:36 i mean, i tried it anyway in case it had changed - but it doesn't recognise it Sep 29 06:55:15 go with SimonVT, he knows Sep 29 06:55:45 SimpleDateFormat date = new SimpleDateFormat(var.getCreatedTime()); fails with " java.lang.IllegalArgumentException: Unknown pattern character 'T'" Sep 29 06:56:09 That's not how you use SimpleDateFormat.. Sep 29 06:56:17 oh Sep 29 06:56:20 .parse? Sep 29 06:56:33 You need to tell it the format, then parse Sep 29 06:58:40 ir7466: documentation has a lot of samples of how to create this Sep 29 06:58:58 https://developer.android.com/reference/java/text/SimpleDateFormat.html Sep 29 06:59:21 new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'") < cc ir7466 Sep 29 06:59:51 then you "parse" your string with it, create a Date object and then you can output however you want Sep 29 07:02:20 @adq: thank you, that solution worked and it now parses the date. thanks Sep 29 07:02:32 +thanks to everyone else who answered too Sep 29 07:09:47 once you have done the new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); part, what is recommended for parsing? Because I see it returns a "Date" object, which nearly all of the methods are deprecated on Sep 29 07:10:26 or should I just use the deprecated methods? Sep 29 07:16:02 are you just trying to get the current time on the device? Sep 29 07:16:20 haven't been paying attention because beer Sep 29 07:17:38 nah I have a string brought in from a website Sep 29 07:18:05 the format is like "2016-09-27T09:19:57Z" but I want it like ""September 27, 2016 at 9:19 AM" Sep 29 07:18:41 if i do DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); / dateFormat.parse() then I end up with a Date() object - and the methods are almost all deprecated Sep 29 07:19:12 I was looking into Date / Time stuff last night and noticed all the deprecation on Date() methods as well Sep 29 07:20:10 I just needed the current device time so I used Calendar Sep 29 07:21:50 I feel like this must be very easy to do Sep 29 07:21:55 staeksauce: what's wrong with Claendar.getInstance() Sep 29 07:21:57 ? Sep 29 07:22:04 that's what I used Sep 29 07:22:21 But I'm surprised that there's nothing with the simplicity of the PHP functions, or even the C# DateTime functions Sep 29 07:23:25 Calendar gives you a dat and time formatted like: Thu Sep 29 03:13:12 EDT 2016 Sep 29 07:25:10 SimpleDateFormat has also .format(date) which gives String Sep 29 07:25:29 there is jodatime library and java 8 has adapted most of it Sep 29 07:26:27 so youll probably end up with 2 SimpleDateFormats - one for parsing, other for output Sep 29 07:27:18 as for current time System.currentTimeInMillis(); is simplest Sep 29 07:28:42 ok Sep 29 07:28:44 thank you Sep 29 07:29:40 you're right, using the two SimpleDateFormats worked Sep 29 07:43:47 ir7466, you might want to look at the new date apis in java 8(?) Sep 29 07:43:52 it's backproted too Sep 29 07:44:32 https://github.com/JakeWharton/ThreeTenABP Sep 29 07:55:35 I've added compile 'com.squareup.okhttp3:okhttp:3.4.1' to my app's build.gradle and I run ./gradlew clean assDebug but the library isn't available for import in my code. What's wrong? How do I trouble shoot this? Sep 29 07:57:59 Hi all. Currently I have FragmentA which start DialogFragmentB. When I want to send some data back to FragmentA from DialogFragmentB, I need to use the Activity and pass it through to FragmentA. Can you send the data directly to FragmentA? Maybe with rxjava? Sep 29 08:00:20 Another solution is to create a transparent Activity and start the dialog in that new Activity. Then use startActivityFromResult in my FragmentA. The result will be received in FragmentA.. do you think that's a good approach? Sep 29 08:01:27 Amazing how people interpret "clean". When I run "./gradlew clean" it starts downloading dependencies. Sep 29 08:01:46 FrancescoV, use getChildFragmentManager to display your dialog Sep 29 08:02:01 get a reference to fragmentA with getParent() Sep 29 08:02:06 alex_PP: thank The context is still my Activity Sep 29 08:02:42 does that matter? Sep 29 08:02:54 Zta77, run gradle command with "-i" and look for the error message Sep 29 08:02:59 *getParentFragment Sep 29 08:03:26 yes, the Activity must implement my interface, so my FragmentA isn't accessible in my DialogFragmentB Sep 29 08:04:12 sorry? Sep 29 08:04:22 I thought you wnated to avoid the activity? Sep 29 08:04:35 yes Sep 29 08:04:52 how would you start DialogFragmentB? Sep 29 08:05:09 new DialogFragmnetB().show(getChildFragmentManager(), "tag"); Sep 29 08:05:38 true, but then you can't access the Fragment who started DialogFragmentB Sep 29 08:06:06 getParentFragmnet() == FragmentA Sep 29 08:06:31 aha :) Sep 29 08:06:45 damn it, time for coffee Sep 29 08:06:50 thanks! Sep 29 08:06:53 no worries Sep 29 08:09:18 FrancescoV: I usually have a method like this somewhere Sep 29 08:09:18 https://gist.github.com/alex-richards/eef977bbe4220ea89fc05d9e460c7d58 Sep 29 08:09:34 and define my callbacks as interfaces that can be implemented whereever Sep 29 08:14:50 alex_PP: nice, looks like I'm still doing it the old way (checking it in onAttach) Sep 29 08:15:15 nothing wrong with that really Sep 29 08:16:15 people - (how) can i set recyclerview to collapse to toolbar after some height is scrolled; not by scrolling immediately? Sep 29 08:35:47 Hello Sep 29 08:36:19 Something strange is happening with VCS in Android Studio Sep 29 08:36:54 I enable version control with git but I'm not able to add any files Sep 29 08:37:09 Melatonina: did you try to add file in command line ? Sep 29 08:37:40 The files that are not added should be colored differently but they aren't Sep 29 08:37:53 Melatonina: git add "someFile" Sep 29 08:38:34 blusky: I'll try. But I could do that via the context menu usually Sep 29 08:38:45 just to see if there's some error :) Sep 29 08:40:19 blusky: "fatal: Not a git repository (or any of the parent directories): .git" Sep 29 08:40:34 so you did not initialize your git repository :) Sep 29 08:40:44 that's why it's not working on android studio Sep 29 08:41:12 blusky: I did. And in fact I don't have the option to enable version control anymore Sep 29 08:41:47 blusky: I have the git menu in VCS but I can't add anything from there Sep 29 08:42:19 try to "git init" in command line (on the root folder of your project) Sep 29 08:42:24 and restrart android studio Sep 29 08:44:06 it worked without restarting Android Studio Sep 29 08:44:12 thanks Sep 29 08:44:34 there must be a bug in the procedure to enable git Sep 29 09:35:07 maybe you need to accept the xcode license Sep 29 10:43:57 #android-dev Sep 29 10:44:10 Hi i am facing error in building project(Error you can see here https://drive.google.com/open?id=0B-3dqkyZaAYLR1RDN3czbkJnVWc) Can you please tell me how can i fix it Sep 29 10:44:20 ? Sep 29 11:08:36 Hi! When serializing the Location object, we get it in this format: Location[provider -123.43,123.45 ...] is it longitude,latitude or latitude,longitude? Sep 29 11:11:04 onto: who serialized the object? Sep 29 11:11:45 Hello, I implemented a SearchView on my toolbar. I get the query with an intent, but when I perform the search, it looks like open a new Activity. How can I avoid this effect ? I can give you some code if needed Sep 29 11:30:44 android:launchMode="singleTop" did the job Sep 29 11:37:29 mtR_: good. We knew you could fix the problem by yourself. That's why nobody answered. Sep 29 11:42:33 Melatonina: ;) Sep 29 12:23:13 I want to create a service that add a button on top of each view (in other app) containing an email. I am using an accessibilityservice to detect emails in other apps. I am using WindowsManager to create the button. But I don't know how to make the button "attached" to the view in other apps (eg: the button should move when the user scroll the other app, and should disapear when the view containing the email desappear) Sep 29 12:23:20 any idea how to do this ? Sep 29 12:24:44 blusky: I didn't know you could do something like that with a service. Cool Sep 29 12:28:40 yes, but what I wnat is not perfomed yet :) Sep 29 12:39:20 Ok .. i have never tried a nexus device before...I love em . but for some reason my corp blcokers and windows PC, doesnt seem to load the drivers for them . and after reviewing google search results everyone complains or has a pecking order to get the drivers to install correct. Sep 29 12:39:51 I'm so glad I have full control over my work computer Sep 29 12:39:52 ughh why does other deviceswork better on windows ? ( as in installing drivers ) Sep 29 12:40:20 it's odd it allows the device to be a camera but not install the developer based drivers Sep 29 12:41:13 and suggestions are so stupid and mixed bagged and Stackoverflow questions are so dated like this one i saw from 2011 still had 2015 replies Sep 29 12:49:09 windows does as windows is Sep 29 12:49:14 or the other way round? Sep 29 12:50:32 i kept bugging the IT guy until I got the root password here Sep 29 12:50:39 i have a project where i have code in main\ and 2 flavors each with different activities. How do i 'merge' (?) the main manifest with the seperate flavors' activities? Sep 29 12:51:25 like main has A, B and flavor1 has C and flavor2 has D. flavor1 should get A,B,C and flavor2 should get A,B,D Sep 29 12:52:03 xorgate, http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger Sep 29 12:52:04 have fun Sep 29 12:52:30 and also https://developer.android.com/studio/build/manifest-merge.html Sep 29 12:52:59 aight ok Sep 29 12:53:23 Don't need to do anything for the manifest merger do do its thing Sep 29 12:53:32 Just define stuff in the right flavors Sep 29 12:54:43 right so the main manifest has only the 2 activities and some permissions and whatnot, and the flavors' has only the activities, i would presume.. let's try Sep 29 12:55:08 Yep Sep 29 13:01:27 Hi ! I have a lot of items on a RecyclerView. I implement items with a RecyclerView.Adapter, but it seems it waits all items to be loaded to diplay them. unless I am mistaken, ListView adapters load only visible items, and load others when user scroll into them Sep 29 13:02:24 How can I have the same behavior ? Sep 29 13:03:27 RecyclerView works like that as well Sep 29 13:04:04 kko, you should profile your app, it sounds like it takes time to populate your array simply, which is different than displaying only visible items but required to have the array populated prior to that Sep 29 13:16:12 Napalm around? Sep 29 13:16:17 yes Sep 29 13:16:34 Napalm any thoughts on ConstraintLayout ? Sep 29 13:16:43 adq: im not sure to understand, my list of items is very fast to fill. Here is how i refresh my list :http://paste.ofcode.org/33uH9sRP7BrvgAjggHsBGTH Sep 29 13:16:55 g00s: I like it Sep 29 13:16:57 :) Sep 29 13:17:03 i dont know what else to say Sep 29 13:17:17 Napalm ok. d.android.com docs are sketchy, trying to figure it out Sep 29 13:17:49 Napalm so ... sdk manager in AS is not the same as the standalone one ? Sep 29 13:18:02 using the standalone, i couldn't get CL installed Sep 29 13:18:05 it never has been since they integrated it Sep 29 13:18:10 i always use the standalone one Sep 29 13:18:39 in AS SDK manager, support repo actually behaves like a group, with CL as one item Sep 29 13:19:11 Napalm yeah i had latest support repo d/l form standalone, but CL was not there (well, alpha-1 was there) Sep 29 13:20:26 g00s: oh yea Sep 29 13:20:36 g00s: didnt see that, good to know Sep 29 13:21:05 alpha 9 came out, i think AS comes bundled with a8 so i got confused :D Sep 29 13:21:29 man they need to cut the shit and put everything on maven central Sep 29 13:21:38 no they dont Sep 29 13:21:57 yes damn it! Sep 29 13:22:29 :D Sep 29 13:26:04 "This Old-Ass Commodore 64 Is Still Being Used to Run an Auto Shop in Poland" lol Sep 29 13:26:26 thats awesome Sep 29 13:28:16 http://tinyurl.com/z4mmaeh Sep 29 13:29:02 Can somebody please help me with Content Observers using Xamarin? https://www.reddit.com/r/learnprogramming/comments/5520wg/xamarin_android_really_stuck_on_using/ Sep 29 13:29:12 adq: also, onBindViewHolder (from Recycler adapter), is called for all items, not only the visible items Sep 29 13:31:31 kko, well i cannot really help you sorry, but you should profile anyway, for onbindviewholder it's a bit more complicated than just being triggered/called only on visible items and i don't want to start explaining it Sep 29 13:32:18 you can still speed up your RV with stable id if you are able to provide a unique identifier per item, but I doubt this is your issue Sep 29 13:32:26 i mean, i doubt this will solve your issue Sep 29 13:33:43 kko, i noticed "noeud" you might also ask on the francophone channel #android-fr Sep 29 13:35:41 adq: allright, thx for your advices Sep 29 13:35:52 g00s: last time I checked my C64 still boots Sep 29 13:41:33 gwm_: what's the issue? Sep 29 13:42:19 dsardari: i'm trying to use a contentobserver to watch the SMS sent box and when a change occurs (a new message) it fires another method (in my case saves that sms to a text file) Sep 29 13:42:40 however I'm doing something wrong with ContentObserver, as my SMSObserver it never run (i've put breakpoints on onChange) Sep 29 13:44:47 gwm_: maybe try moving your SMSObserver into an Activity for now to test Sep 29 13:44:57 gwm_: do you have permissions? Sep 29 13:45:19 thepoosh: i don't think i'm missing any? https://www.reddit.com/r/learnprogramming/comments/5520wg/xamarin_android_really_stuck_on_using/ Sep 29 13:45:26 i've put the manifset there Sep 29 13:46:33 what version is your device/emulator running? Sep 29 13:47:01 Android 6.0 - API 23, using my phone (Samsung S7) Sep 29 13:48:08 gwm_: in api >6 you need to manually request for permissions Sep 29 13:48:22 I think the receive/read SMS is considered a dangerous permission so even if you defined it you need to make sure your app has the permission available Sep 29 13:48:29 check under seetings> apps > YOUR APP > permissions Sep 29 13:48:41 yar. what he said. Sep 29 13:49:11 yes it has SMS permission on Sep 29 13:49:22 i can see the sms inbox through the debugger Sep 29 13:49:28 i can get access to the msesages Sep 29 13:49:47 its the observer notifiying me somehow when a new message is found or a change in the URI Sep 29 13:49:51 which isn't working Sep 29 13:52:51 Does anyone know of an elegant way to easily have sensitive information in a maven repository closure in the repositories section of your build.gradle (such as username and password for private maven repo), so that 1) they are not committed to the repo, and 2) I don't have to keep copy pasting them in when I want to test it out Sep 29 13:53:31 yiati: usually, it's performed using environment variable Sep 29 13:53:45 different to each developpement environement (even for CI) Sep 29 13:54:59 Hmm okay derp, yeah forgot about how I have to go about it. I have to parse an encrypted password for the password field Sep 29 13:59:07 encrypted password may be a good idea, but you'll have a similar problem to answer with storing decryption key Sep 29 13:59:44 so you will eventually end up with security through obscurity, which is a bad idea :) Sep 29 14:00:04 yeah I agree, have to convince my coworker about that Sep 29 14:00:06 blusky: ugh, you security nihilists. Sep 29 14:00:20 Something is better than nothing Sep 29 14:00:31 no Sep 29 14:00:38 Idiosyncratic: I suggested something "else" :-) Sep 29 14:01:25 Idiosyncratic: hello! Sep 29 14:01:37 Melatonina: hello Sep 29 14:03:32 Does anybody have any experience with google tango? Sep 29 14:04:52 nope Sep 29 14:05:11 yo Sep 29 14:05:15 tes Sep 29 14:08:31 Looks like a fad Sep 29 14:10:00 Idiosyncratic: project tango? Sep 29 14:10:06 Faizan: yeah Sep 29 14:10:10 agree on this so much Sep 29 14:10:20 My masters project is to do with project tango Sep 29 14:10:22 ok, I think I have found something for my problem, but I'm stuck somewhere else. I'm still on an AccessibilityService, and I oberve AccessibilityEvent, however, I can't get the text of "RecyclerView" (getText() is empty, and event.getRecord(i).getText() are empty), any idea ? Sep 29 14:10:37 and i'm regretting it so much. I also think it's gonna be a short lived project Sep 29 14:10:42 or take a really long time to kick up Sep 29 14:10:56 Faizan: I'm sure it'll pick up like Glasses :D Sep 29 14:11:03 Oh yeah Sep 29 14:13:01 Remember how Google did this really stupid presentation of Glasses in which they parachuted some people wearing them into the presentation. All the while I was thinking: screw the glasses, I wanna parachute out of an airplane! Sep 29 14:13:55 i thought that was a pretty cool presentation Sep 29 14:14:38 xorgate: really felt like you were jumping out of a plane and everything, right? :P Sep 29 14:14:56 no it felt like i was watching a presentation where ppl did that Sep 29 14:15:15 and well, the tech held up Sep 29 14:15:50 so i wouldn't call it 'stupid' Sep 29 14:16:59 xorgate: I don't know about you, but I would rather pay to jump out of an airplane than pay for a pair of Glasses Sep 29 14:19:45 They're not even released yet? I must admit that I thought they were released and they flopped Sep 29 14:20:10 Oh nevermind, read something eelse Sep 29 14:20:12 *else Sep 29 14:20:38 Jesus Christ, 1.5k $ Sep 29 14:22:16 This US website says that you could jump out of an airplane for just 240$ alone, while more people means less cash. Hmm... looking like a creeper or having actual fun? Sep 29 14:22:38 Hard decision Sep 29 14:25:27 You couldn't pay me money to sky dive Sep 29 14:28:15 mann: why? Sep 29 14:28:35 mann: the odds of dying are very low Sep 29 14:28:55 Probably lower than some drunk driver hitting your car Sep 29 14:29:19 I don't drive at night Sep 29 14:29:26 So statistically.. not really Sep 29 14:30:02 regardless, jumping out of a plane 10k feet in the sky is not really my idea of fun Sep 29 14:30:24 Hmm so I was thinking about making a really simple app for android Sep 29 14:30:25 To each their own, I guess Sep 29 14:30:29 but I dont know how to get started Sep 29 14:30:55 is there like some super simple template for somtehing like an app with a menu that has quit in it or somtehing like that? Sep 29 14:30:56 hk238, https://developer.android.com/training/index.html Sep 29 14:31:20 alright thanks Sep 29 14:32:56 There are samples on gihub you could find also Sep 29 14:33:02 github* Sep 29 14:40:54 yeah I was hoping for something like samples :d Sep 29 14:46:12 hk238: Android application samples pullulate on the web Sep 29 14:47:20 `pollulate` ^^ Sep 29 14:47:50 actually the app I wanted to make is relaly simple.. just start the app and you can enter 3 nubmers, then hit calculate Sep 29 14:48:12 then it just calculates the angles of the corners of a triangle with sidelengths corresponding to the numbers typed in Sep 29 14:48:19 and draws a triangle that looks like a triangle like that Sep 29 14:48:26 Cool Sep 29 14:48:31 once that's done, you just click new or quit Sep 29 14:48:45 There is definitely a huge market for that Sep 29 14:48:51 So the program itself is pretty simple Sep 29 14:49:34 Is there any way from an activity to cause the back button on the phone to not go back to the previous activity? Sep 29 14:49:42 it's not for sale or anything just a free app for fun, like probably takes 2 hours to do if you have the assets and already know how to program. Or maybe less than that. Maybe even really short time. It would take time for me though I guess I dont know Sep 29 14:49:58 Well, one good news is that you don't need a "quit" button Sep 29 14:50:11 Less work to do! Sep 29 14:50:15 Isn't that amazing? Sep 29 14:50:38 oh but I thought it would be nice if you could close it directly Sep 29 14:51:36 just a conveniency thing Sep 29 14:52:03 yeah but it's ugly and unnecessary and clashes with the conventions followed by the rest of the applications Sep 29 14:52:13 but it's your app Sep 29 14:52:15 you rule Sep 29 14:52:16 nah that's not true Sep 29 14:52:26 most things everywhere have quit as an option Sep 29 14:52:48 guys any one knows why when i delete = in line 4 it gives me indexoutofbounds exception ? Sep 29 14:52:50 https://gist.github.com/anonymous/3e7fd0486685184c7a2daa9f5df9725f Sep 29 14:53:02 it's the android stuff that's the exception to the rule, considering it's going to have 2 buttons, I dont think it's going to bea problem even if one of them wasnt necessary reqiured. But alright, that's jus tmy experience from using my android Sep 29 14:54:34 You already have 2 exit buttons, back and home Sep 29 14:55:02 hk238: I think that Melatonina is trying to tell you that in Android applications aren't "quitted", they just go in the background and if there isn't enough memory for them, then they *might* truly be killed Sep 29 14:55:16 *that in Android, applications Sep 29 14:55:26 Well I dislike closing recent app windows, there's this little lag before the cross shows up, and browsing through them is just pain Sep 29 14:55:29 Does anyone know how I could stop the back button taking me back to the main menu after someone logs out of the app? Sep 29 14:55:47 so I thought ifI can make a program then why not just include button that allows closing it, as a conveniency for the user Sep 29 14:55:53 that being me in this case :D Sep 29 14:55:55 hk238: there is nothing wrong in using an iPhone Sep 29 14:56:13 but anyway I didnt want to start any flamewars with some android cultists who think quit buttons are old fashioned Sep 29 14:56:29 hk238: but the default back button just send the application in the background Sep 29 14:56:33 *sends Sep 29 14:56:45 I was just going directly from what I want to have and what would be nice Sep 29 14:56:46 you didn't start a war Sep 29 14:57:10 otherwise you would be already dead several minutes now Sep 29 14:57:19 oh yeah you're funny Sep 29 14:57:38 I'll just add you into ignore, and drop this subject Sep 29 14:58:30 hk238: we're trying to tell you that you can't actually kill your application when you want to Sep 29 14:58:53 hk238: so making a quit button is useless because it will just do that same thing as the back button Sep 29 14:58:59 well that's another story Sep 29 14:59:08 if it's not possible Sep 29 14:59:11 then nevermind Sep 29 14:59:15 You can, but that's not the android way of doing things, and it will cause slower startup times. There is an android lifecyle. If you're going to develop on android, and want your app to act like it's supposed to, follow it. Sep 29 14:59:20 but that seems like a problem, if it's the case Sep 29 14:59:58 you can: android.os.Process.killProcess(android.os.Process.myPid()); Sep 29 15:00:04 https://developer.android.com/training/basics/activity-lifecycle/index.html Sep 29 15:00:11 Melatonina, finish() is all you need generally Sep 29 15:00:18 dragorn have you noticed a difference between stuff available in standalone SDK manager and AS SDK manager ? Sep 29 15:00:28 and nice weather for now ;) Sep 29 15:00:42 g00s, i haven't, but I've been out of android dev for a little while; i have to get the new AS installed still Sep 29 15:00:53 ah ok Sep 29 15:01:26 Melatonina: oh damn, I thought you couldn't :O Sep 29 15:01:55 Idiosyncratic: you couldn't. You could and can. You can too now. Sep 29 15:02:15 *I* Sep 29 15:03:13 but the whole point of the android lifecycle is it lets things sit in the background, idle, when you have free ram. It's more or less the same as opportunistic io caching. There's little reason to defeat that and cause higher battery load restarting everything in the app when the lifecycle is designed to minimize cpu and battey load. Sep 29 15:03:14 Melatonina: I get it :P Sep 29 15:05:04 in case you're interested in the story behind this Sep 29 15:05:16 probably no one is, but it's possible.. Sep 29 15:05:28 so I'm `studying` construction and we were going through some math Sep 29 15:06:36 and the teacher was like explaining how the `pythagorean theorem` is that `a + b = c` .. and I was getting well.. I wanted to point out that it has the squares... It's true Sep 29 15:07:03 it really happened so, anyway they were going through something like using the pythagorean triple (although Im pretty sure no one in the class knows what it is, including the teacher) Sep 29 15:07:14 hmm interesting Sep 29 15:07:17 to check if a corner is a right triangle or if it's 90 degrees Sep 29 15:07:21 allo's contentprovider is exported=true Sep 29 15:07:30 welllllllll shiiiit Sep 29 15:07:34 and they were memorizing the 3,4,5 triangle and using that for it Sep 29 15:08:08 so then there was this incident, when the people didnt remember, that the theorem involes these squares, because they only remembered using the memorytriangle, 3,4,5 .. so I thought that well what the hell I could make an app that doe sthe calcuation and explains it :D Sep 29 15:08:48 like it would be pretty simple just solve for the angle for each corner, with like arccos((c²-a²-b²)/(-2ab)) I think Sep 29 15:09:22 I mean the amount of information is so small.. you have 3 input numbers.. the `law` to use is like 1 line. It should be pretty easy.. but I dont know anything about android developing so.. well that's the story anyway Sep 29 15:10:39 are chromecast pros here? can you update mediaInfo/mediaMetadata without reloading stream? Sep 29 15:13:26 hk238: cool story bro Sep 29 15:19:43 g00s, this is old, I always noticed a diff between standalone & AS sdk manager Sep 29 15:20:07 especially with stuff tight to the ndk Sep 29 15:20:29 adq its annoying ... AS version says 'platform tools 24.0.4' but standalone didn't Sep 29 15:20:30 you don't have the same details too, nor the same workflow for approving license Sep 29 15:20:34 etc etc etc it's old AF Sep 29 15:20:57 g00s, could be the preview, AS is not able to distinguish in canary Sep 29 15:21:04 while with the standalone sdk manager, you can toggle preview Sep 29 15:21:08 i've been using the standalone until now, but noticed i couldn't get constraintLayout alpha9 with it Sep 29 15:21:21 there were other obnoxious issues across time Sep 29 15:21:33 oh shit, so maybe it installed RC platform tools ? Sep 29 15:21:33 like AS not able to update properly because it was running and some files were locked Sep 29 15:21:44 leading to platform-tools or anothjer folder with tools totally broken Sep 29 15:21:53 or sometimes failing to rename it etc lol Sep 29 15:21:57 android dev in a nutshell Sep 29 15:22:00 lol ... sigh Sep 29 15:22:07 i probably got them'all Sep 29 15:22:51 i've been using the standalone until now, but noticed i couldn't get constraintLayout alpha9 with it < yeah i do'nt think it appears in the standalone sdk manager, I saw it in the AS one though Sep 29 15:23:01 recently i however mainly use the AS one Sep 29 15:23:54 constraintlayout isn't even present in the one sdk manager Sep 29 15:24:00 yeah what adq said Sep 29 15:24:05 now I use both :/ Sep 29 15:24:10 adq so in AS one, under 'sdk platforms' it says i have one 'partially installed' ... wtf does that mean ? Sep 29 15:24:41 i think it means you don't have all sub items checked Sep 29 15:24:44 i don't want to install it there, seems like you have less control. i don't want to d/l all the emulator images, etc Sep 29 15:25:00 Show package details... Sep 29 15:25:00 don't you have the checkbox show details or something (let me check) Sep 29 15:25:06 there are no sub-items in the AS one though Sep 29 15:25:06 right, word Sep 29 15:25:33 i'm looking forward to the day they will move AS sdk manager into something else than "appearance & behavior" category of settings Sep 29 15:25:35 SimonVT oh thanks Sep 29 15:25:38 this is still bothering me a lot lol Sep 29 15:25:39 oh damn SimonVT just changed my world Sep 29 15:25:49 haha i didn't see that either Sep 29 15:25:54 :) Sep 29 15:26:45 since we're talking about it Sep 29 15:26:51 another joy is the download manager :))) Sep 29 15:27:01 if it fails, it will redownload everything from start (no resume mode) Sep 29 15:27:19 and believe me, i saw it failed many times for many reasons (not only network issues) Sep 29 15:28:26 adq what latest platform-tools do you see in standalone ? Sep 29 15:28:59 24.0.3 in canary Sep 29 15:29:48 constraint alpha 9 Sep 29 15:30:14 adq in standalone ... Sep 29 15:30:31 i think AS did something :( Sep 29 15:30:46 oops sorry i was looking inside AS Sep 29 15:30:50 totally mixed up, well 2 sec Sep 29 15:31:01 same version Sep 29 15:31:28 huh i guess AS updated it to 24.0.4 Sep 29 15:31:40 but it doesn't say RC / beta or anything Sep 29 15:32:11 hmm Sep 29 15:33:01 24.0.4 is in preview Sep 29 15:33:10 i was hiding preview in the standalone sdk manager Sep 29 15:33:23 i guess it was the damn 'sdk updated' plugin, uninstalling that Sep 29 15:34:22 i wonder if the sdk updater plugin looks at AS update channel, but its not 1:1 ... AS has 4 channels, i've only seen stable and RC in standalone SDK updater Sep 29 15:35:37 whatevs Sep 29 15:35:39 * g00s deletes Sep 29 15:36:10 your 1:1 descriptions sounds like maven & jcenter :> Sep 29 15:45:50 raoul11: it looks completely bad for my app Sep 29 15:46:40 raoul11: what do these "Google Hits" mean? The amount of searches of a particular keyword? Sep 29 15:47:06 Idiosyncratic Google has a rock band Sep 29 15:47:15 g00s: :P Sep 29 15:47:17 its a blend of Hipster and Punk Sep 29 15:48:06 g00s: chimes, clapping hands and nonsensical shouting, I bet :D Sep 29 15:48:14 Idiosyncratic ? Sep 29 15:48:53 raoul11: sorry, I thought it was a general term. It's this property that appears on my ASO analyzer. Sep 29 15:48:58 oh Sep 29 15:49:06 can u link me so i can see? Sep 29 15:49:50 raoul11: wait a second Sep 29 15:51:53 dsf Sep 29 15:51:55 hi Sep 29 15:52:39 i wanna start my activity in new instance, it means that i wanna see multiple activity in recent app :-/ Sep 29 15:54:14 hi again Sep 29 15:54:17 and again Sep 29 15:54:23 so Sep 29 15:54:38 isnt it the default behavior Sep 29 15:55:00 are chromecast pros here? can you update mediaInfo/mediaMetadata without reloading stream? Sep 29 15:55:00 ..? Sep 29 16:02:19 linuxlove: hi hi Sep 29 16:09:57 Melatonina, khaste nabashi beraaar Sep 29 16:18:39 linuxlove, newtask Sep 29 16:19:18 i tried it and no result :-/ Sep 29 16:25:31 Anybody know how I can update the gallery programmatically once a video is saved? For some reason the video doesn't show up until I reboot my device Sep 29 16:25:41 Only a few days until the Andromeda announcement. Sep 29 16:25:59 And I've read up I need to do a MediaScan, but the solutions I've read up on are apparently "outdated" Sep 29 16:26:08 oh cool, they put ContraintLayout chains documentation on twitter Sep 29 16:26:26 hey TacticalJoke :) Sep 29 16:27:10 Hey, g00s. Sep 29 16:30:15 is this the correct way to parse an image with uri: Uri.parse("file:///android_asset/image.png") ? Sep 29 16:30:27 coz it doesnt seem to work Sep 29 16:35:28 raoul11: I can't remember the details, but I'm pretty sure that kind of thing won't work. Sep 29 16:35:58 seen a few posts on SO sayin it should, but it doesnt seem to /: Sep 29 16:36:15 trying to pass it to a share intent Sep 29 16:39:51 raoul11: I've found several SO answers saying it won't work. Sep 29 16:40:41 ill write it to the cache folder instead, uri parse it from there Sep 29 16:42:54 how do I force a ViewPager to refresh on of it's pages? Sep 29 16:43:11 you tell the adapter to notifyDataSetChanged Sep 29 16:43:28 pfn: can you elaborate please? Sep 29 16:43:35 there's nothing to elaborate Sep 29 16:43:37 it’s a method you call Sep 29 16:43:50 In where? I am a bit of a newbie Sep 29 16:44:07 look up the docs for your view pager adapter Sep 29 16:44:15 hey Sep 29 16:45:18 can someone help me a bit how to make an button which is gray for a specific time Sep 29 16:45:29 after pressing Sep 29 16:47:39 gray as in disabled? or just gray Sep 29 16:49:26 disabled and while disabled it should change the color after it's enabled again it should change back the color Sep 29 16:50:28 you probably want a state list drawable with your disabled state in there Sep 29 16:51:42 buttons already have a naturally disabled state Sep 29 16:51:48 so just disabling and re-enabling will do it Sep 29 16:51:56 disable onclick, post a handler and re-enable it again Sep 29 16:52:04 i meant with the color Sep 29 16:52:15 a naturally disabled "gray" state :p Sep 29 16:53:34 yeah but i can't use gray because the buttons are standard gray Sep 29 16:53:43 so your custom gray Sep 29 16:54:14 and how i can do this after a specific time that it will be reenabled Sep 29 16:54:35 as pfn said, in the on-click, you’d post a handler to re-enable Sep 29 16:55:27 does this work only for one button or for 3 too ? Sep 29 16:55:38 it’ll work for as many as you want Sep 29 16:55:52 * Lapotor is new in android programming Sep 29 16:55:58 :-) Sep 29 16:57:28 ok i try it to programm if i have any questions i will ask Sep 29 16:59:46 is it good to use "CountDownTimer" ? Sep 29 17:01:46 I'd just use Handler.postDelayed. Sep 29 17:02:07 a Handler is almost always the correct tool in android Sep 29 17:07:31 hey, i recently updated android studio and now on a project i knew to be working before the update, i'm getting an error that AS can't download an artifact. I don't think I'm in offline mode, since I never changed it.. any idea of what could be going wrong? Sep 29 17:08:17 what version are you on now vs what did you upgrade from? Sep 29 17:14:16 Trying to think how I should redesign my planet feature >.> Sep 29 17:46:53 orbyt_, i went from 2.1 to 2.2 Sep 29 17:47:43 When you update to 2.2 AS shows a dialog to update older projects to the new format, and backs up the old format Sep 29 17:47:57 So you could check out the older format and check if it still works Sep 29 17:48:10 But it shouldnt really cause any errors Sep 29 17:48:55 could try that. how would one do that? Sep 29 17:51:01 Does anyone have experience with MediaRecorder? Specifically, I'm tryign to show the surface view before the user actually wishes to record anything. Sep 29 17:51:14 I.e. as soon as the app opens, the surface view has started Sep 29 18:02:05 Is there some nice pre-made suite of linux binaries to adb push to an emulator to make life nicer when running adb shell? Sep 29 18:03:52 that would depend on linux distro Sep 29 18:04:17 but mostly it is putting special things in PATH Sep 29 18:04:25 so you can simple use adb Sep 29 18:06:23 Faizan, surfaceview has its own life cycle, you should then prevent the user to record anything until your surface has been initialized and shown, simply Sep 29 18:08:32 it's a bit weird requirement though, because between recording audio and displaying stuff, even if they can be related to each other due to the data they share, they are independent Sep 29 18:14:39 Will unaligned zip ROM will flash successfully? Sep 29 18:15:04 Try #android-root Sep 29 18:15:05 Kinli, try the channel #android-root Sep 29 18:15:16 Thanks Sep 29 18:18:03 but will it? Sep 29 18:20:19 the new Android Basics Training course instructor is pretty cute Sep 29 18:20:43 http://android-developers.blogspot.fr/2016/09/android-wear-2-0-developer-preview-3-play-store-and-more.html Sep 29 18:20:54 lol android wear Sep 29 18:20:56 playstore on wear Sep 29 18:21:08 this gonna be.. [insert anything, even "fun"] Sep 29 18:32:37 adq did you see that post on reddit about the build docs being 4 revs behind ... Sep 29 18:33:28 nope, link? Sep 29 18:33:44 https://www.reddit.com/r/androiddev/comments/551fwc/have_google_given_up_on_the_build_tools_release/ Sep 29 18:33:54 thx Sep 29 18:34:09 imho its inexcusable, at least for one of the biggest sw companies in the world Sep 29 18:34:14 ahah Sep 29 18:34:48 yeah problem is ppl are tolerating too much, by ppl i mean the spectrum from developers to users and i probably forgot or excluse some other parties Sep 29 18:36:19 if you look at the beginning of the history of this pseudo-changelog on this page, it's also problematic. It's like everything started in 2013 Sep 29 18:36:46 "you can file a bug at b.android.com under Developer documentation" Sep 29 18:36:54 my bug report would amount to "get your shit together" Sep 29 18:37:05 amateurs Sep 29 18:37:30 well that's another story, i cannot say that Sep 29 18:37:35 i could not* Sep 29 19:01:56 are there .class files generated by AS? Sep 29 19:02:21 I'm trying to put a project handed to me under source control, and I'm seeing a ton of .class files that seem like they are generated by AS Sep 29 19:03:29 exclude build folders Sep 29 19:03:48 ahh thanks, anything else I should exclude that you can think of? Sep 29 19:04:02 yep, many things, you would better search for the list on stackoverflow Sep 29 19:04:16 k, thx Sep 29 19:04:32 exclude the .iml, the gradle cache, etc Sep 29 19:05:00 in fact, exclude anything not sufficient and necessary to build the project Sep 29 19:05:25 some of those things were obvious to me, some I'm a little green still and wasn't sure of Sep 29 19:05:35 no worry Sep 29 19:05:58 the build folders are about 85% of the mess Im looking at Sep 29 19:05:58 or you could also look at some famous projects or samples on github and check what they kept Sep 29 19:06:01 doesnt the gitignore plugin do that Sep 29 19:06:39 sometimes they also do the contrary, and include unnecessary stuff which prevents building after import on another machine lol Sep 29 19:06:56 like all those fragmented properties here & there because they do this or that with gradle Sep 29 19:09:28 I have to use mercurial anyways Sep 29 19:09:34 thg+mercurial Sep 29 19:09:42 hg ftw Sep 29 19:09:56 careful with AS, there are few caveats/bugs with mercurial Sep 29 19:10:28 now I always do everything related to hg outside of AS, except browsing history and diffing Sep 29 19:11:14 I'm not using any of the integrated stuff Sep 29 19:11:14 * Ping_2_Ur_Pong is going to hold onto RxJava 1 as long as humanly possibly, and its going to be pulled from his cold dead hands. Sep 29 19:11:21 and it seems obvious they don't care at all due to the success of git Sep 29 19:36:26 hm Sep 29 20:23:31 Hey. For a camera app, what would be the best way to handle the timer for a video recording? Sep 29 20:45:59 Faiz Sep 29 20:46:04 Oh he left Sep 29 20:50:47 I have a bound service that needs to keep running if the app is closed. Right now I've started it with START_STICKY, which causes the service to restart when the app is closed. Is there some way to just make it continue running instead of restarting? Sep 29 20:51:06 not really. If the system says you’re gone, you’re gone Sep 29 20:51:09 uhh Sep 29 20:51:21 What do you mean by "closing the app"? Sep 29 20:51:26 Closing activities shouldn't stop the service. Sep 29 20:51:34 (Maybe if the device is low on memory.= Sep 29 20:51:55 When I close the app completely by going to the "recent screens" and remove it Sep 29 20:52:17 Ah, that's normal then. Sep 29 20:52:24 (Don't do that.) Sep 29 20:52:58 But.. I always close my apps. Many people do. :D Sep 29 20:53:33 Uh, no. Sep 29 20:54:01 If a user swipes your app away it means he wants you to go away. Sep 29 20:54:04 OS will kill your app. Sep 29 20:55:00 Well... Okay.. But the service restarts at least. I'll just have to figure out some other way for the service to handle it's business Sep 29 20:55:04 its* Sep 29 20:55:26 Don't. Sep 29 20:55:56 If you implement your service properly it won't matter (since you have to be able to handle killing of your service at all times.) Sep 29 20:56:19 If you don't, then whatever hack you do won't matter, because your service still won't work properly. Sep 29 21:11:38 the service have to be started Sep 29 21:11:46 swiping your app away from recents will leave a foreground service though Sep 29 21:12:54 if it's just bound, when the last activity unbinds, the service may not be kept alive Sep 29 21:13:30 (correct me if i'm wrong) Sep 29 21:13:38 bitkiller_, depends on type of service. Sep 29 21:13:57 g00s, yeah, most stuff doesn't require that and I have a feeling that he doesn't either :) Sep 29 21:14:07 Foregrounds still get killed when device is under pressure Sep 29 21:14:14 So they need to be able to resume gracefully anyway. Sep 29 21:50:39 does android require oracle jdk or does open jdk work too? I'm getting mixed results on the internet here, wondering if anyone has any experience with that Sep 29 22:09:14 Mavrik have you poked ConstraintLayout any ? Sep 29 22:13:18 Hi. I've imported my Java Event REgistration project into Android Studio, and in this project there were exceptions that displayed error messages such as "Participant Name Field Cannot be Empty!". But when I run my application in Android Studio, these error messages only ever show up in AS console. How do I get it to display on my application's screen? Sep 29 22:13:53 bankai_ http://digg.com/video/pedal-treadmill-dog Sep 29 22:14:00 how are you showing those errors? Sep 29 22:14:13 In my Eclipse/Java project? Sep 29 22:14:16 of course it's japanese :P lol Sep 29 22:14:20 TTV: Yes Sep 29 22:14:48 and I’m assuming this is an Android app, and was written as one before? Sep 29 22:14:53 bankai_ maybe they have one for runners on both sides :) Sep 29 22:14:58 https://gist.github.com/EBruchet/14ecb7ef3d9d99293a737485a04be3a5 Sep 29 22:15:13 This is an extract from my Eclipse written Java code. Sep 29 22:15:20 so it’s not an Android app Sep 29 22:15:24 Nope. Sep 29 22:15:31 Unfortunately. Sep 29 22:15:32 are you trying to make it into one? Sep 29 22:15:54 The assignment required importing the project into AS and only changing the 'View' portion of the project Sep 29 22:16:07 So I've left the controller, persistence layers alone. Sep 29 22:16:31 so you’re probably going to want to catch the error wherever you’re calling this method Sep 29 22:16:50 But it is being caught already since these errors are being displayed to console, no? Sep 29 22:17:00 and in that spot, which is probably in the “View” portion, you’re going to want to use one of the Android methods for presenting something to the user Sep 29 22:17:04 maybe, maybe not Sep 29 22:17:08 Hm Sep 29 22:17:18 you can use a Toast, or a Dialog Sep 29 22:17:36 Or a Snackbar, which is an evolution of Toast Sep 29 22:17:45 But does this mean I'll have to rewrite those catch blocks in Android? Sep 29 22:17:51 *try-catch block Sep 29 22:17:57 probably Sep 29 22:18:08 Damn. Sep 29 22:18:14 i’m guessing this method is called from the View part, right? Sep 29 22:18:23 From the controller layer Sep 29 22:18:41 well, in that case, the controller layer would forward the error onto the View layer Sep 29 22:18:50 there should already be something doing that Sep 29 22:19:01 if there isn’t, you’ll have to make one Sep 29 22:19:09 Well I assume it already is in some sense as the error messages are appearing in the console. Sep 29 22:19:25 We aren't allowed to make any edits to the controller layer in AS Sep 29 22:19:59 then follow it through to the view layer, and present the message to the user Sep 29 22:21:00 That's the thing, I'm not exactly sure how to Sep 29 22:21:08 I mean Sep 29 22:21:25 If the try-catch blocks created a variable called 'error' in the original Java code Sep 29 22:21:33 as I said above, you’d either use a Toast/Snackbar, or a Dialog Sep 29 22:21:41 So can I pass this 'error' to Toast? Sep 29 22:21:54 no, you pass the string into toast Sep 29 22:22:05 Sorry I meant the string called error Sep 29 22:22:13 yeah, look it up Sep 29 22:22:33 On it already, thanks for the help! Will be back in a bit after I give it a go :) Sep 29 22:29:55 Ok, quick Java-noob question. How can I pass this 'error' String to Toast if 'error' comes from a library? Sep 29 22:33:17 I've tried using EventRegistrationController.error Sep 29 22:37:07 s7ev3r: Any suggestions? Sorry to nag. Sep 29 22:37:53 s73v3r: How can I pass this 'error' String to Toast if 'error' comes from a library? Sep 29 22:38:15 it’s gonna have to be returned from a method call Sep 29 22:38:23 how were you getting it before? Sep 29 22:38:42 I didn't do anything to get it before, any time I put in an invalid input it would print the error straight to console Sep 29 22:39:05 where are you catching it? Sep 29 22:39:51 https://gist.github.com/EBruchet/501a11534f3db820ec00f11db90291d0 Sep 29 22:40:00 Original Java code there for context on the error catching Sep 29 22:40:23 that’s the controller code. not the code that’s calling it Sep 29 22:40:33 In the Try-Catch blocks I've created in AS, I have only put e.printStackTrace in the catch block Sep 29 22:40:45 One sec Sep 29 22:41:02 https://gist.github.com/EBruchet/a7bb2e83dbd7fa7950b4235cfe99b76c Sep 29 22:41:06 Hope that's what you meant Sep 29 22:41:08 so in that catch block, is where you’re going to display to the user given one of the methods I mentioned above Sep 29 22:41:19 Okay cool. Sep 29 22:41:35 you passed the error string into the Exception, so now you need to get it out Sep 29 22:41:56 the 'e' in that piece of code is the error string? Sep 29 22:42:49 no, that e is the exception object Sep 29 22:43:06 Oh :/ Sep 29 22:46:52 I'm not sure exactly where the error string was passed into the exception - that piece of code was given to us by our prof with little explanation Sep 29 22:47:13 the line that says “throw new “ whatever Sep 29 22:48:31 Ohh ok Sep 29 22:49:58 When I look in 'InvalidInputException.class' the only thing in there is a method that is taking that error string as input and then inside just: 'super(errorMessage):' Sep 29 22:51:22 s73v3r: So it's not like there's a variable in InvalidInputException.class that I can 'take'...? Sep 29 22:52:41 read up on exceptions, and how to use them Sep 29 22:52:56 I’m guessing that’s part of what this assignment was supposed to teach Sep 29 22:53:45 Hi, guys. I have issues with ImageViews. I would like to do app with swiping windows, and I am using ViewPager. I have different Fragments to list. But I am running app on lolipop, and all ImageViews are not showing images. That happens only if I use something exept AppCompat activity (I am using FragmentActivity now). How to fix it? Sep 29 22:53:50 I have images in res/mipmap-nodpi Sep 29 23:02:50 DoITCreative: you shouldnt be using a FragmentActivity unless your supporting really really low apis Sep 29 23:03:10 Regardless, you need to post your code Sep 29 23:04:27 orbyt_: How to make horisontal swipe to change activities then? Sep 29 23:06:40 DoITCreative: If you’re not supporting really low APIs, you don’t need to use a FragmentActivity to use Fragments Sep 29 23:08:01 s73v3r: Ok, but ImageViews are also empty in the Fragments too Sep 29 23:08:20 s73v3r: https://gist.github.com/EBruchet/f2bef797bf191eefefd13c07225a58c0 I've gotten this far (Thanks again!) but for some reason nothing shows up when I put in an invalid input? Sep 29 23:08:29 Err I'll ask when you're less busy! Sep 29 23:09:33 I’m fairly certain you shouldn’t use the application context for toasts Sep 29 23:09:40 I believe that has to be the Activity context Sep 29 23:10:03 s73v3r: Thanks, I changed to AppCompat and it works now! Sep 29 23:10:12 Uhh Sep 29 23:10:18 s73v3r: You saved me so many time :) Sep 29 23:10:32 TTV: is that snippet in a View, Activity, or Fragment? Sep 29 23:10:36 So just put 'this' instead? Sep 29 23:10:46 In Activity Sep 29 23:10:49 if it’s an Activity, that is valid, yes Sep 29 23:11:00 Awesome, thank you - going to try it now. Sep 29 23:11:10 you may want to switch to LENGTH_LONG, at least to make sure you see it Sep 29 23:12:45 Will do, as I just ran it with LENGTH_SHORT and didn't see anything Sep 29 23:14:10 It worked! Sep 29 23:14:27 s73v3r: Thank you so much for being so patient with me and for all the help Sep 29 23:21:12 hi all. I had a question regarding netty on android. I'm trying to use bouncy castle with netty, however I can't figure out how to use it as a provider for Netty when creating an ssl context Sep 29 23:21:28 has anyone been able to successfully use BC with Netty? Sep 29 23:24:41 I'm having some issue getting Tag Manager and Firebase setup for ecommerce. I don't see type transaction. Anyone have tips for how to track purchases using this method Sep 29 23:29:53 Hey. Does anybody have any experience with writing to and saving YAML files in android? Sep 29 23:49:00 it shouldn’t be any different than writing to and saving any other kind of file Sep 30 02:32:47 How can I only affect a RecyclerView on one page of a ViewPager? **** ENDING LOGGING AT Fri Sep 30 02:59:58 2016