**** BEGIN LOGGING AT Sat Jan 21 03:00:01 2017 Jan 21 03:32:34 purplex88: http://stackoverflow.com/questions/15523157/change-checkbox-value-without-triggering-oncheckchanged Jan 21 03:37:58 Melatonina, thx im having strange problem in one application, listeners are triggering when programmatically checking the button but in another application it doesn't trigger listener. both are pretty small apps i created for test. i will discuss them soon after i come from classes Jan 21 03:40:43 They'll do that. It's _loads_ of fun. Jan 21 04:00:39 My goodness, that answer given by 'android developer' has some awful code in it. Jan 21 04:05:09 Dagmar: If there's a listener and the new value is different, it'll invoke the listener always. Jan 21 04:25:40 TacticalJoke: Yeah, I know. I just recently went through a round of fun with that and an EditText. IIRC I wound up using a canary value in a common class as a flag to prevent it running in circles when I would revert the value of the entered text. Jan 21 04:41:14 You might want to narrow your functionality a bit... the zeroconf/bonjour apps are basically just mDNS service advertisement browsers Jan 21 04:41:15 #!@$!@ Jan 21 04:47:25 hey guys i have a problem in my app Jan 21 04:47:32 i have a session string whi Jan 21 04:47:42 i have a session key which is granted when the android user logins to my application Jan 21 04:48:00 and if he minimizes for a long time it seems like session key gets removed (back to default non-logged in). Jan 21 04:48:12 is there any way to disable that? so that its not lost? Jan 21 04:49:56 Theres Javascript code in the IAP examples Jan 21 04:50:29 ⚆ _ ⚆ Jan 21 04:50:45 orbyt_ maybe they are switching to JS ! :) Jan 21 04:50:58 I mean hey I'd be interested Jan 21 04:51:05 Kinda Jan 21 04:52:19 renkon What do you mean by a "session string" Jan 21 04:52:31 Are you storing this string in memory? Jan 21 05:11:05 i have a fragment activity, that obviously has fragments inside of it, and according to the documentation, fragments on the backstack are not destroyed. they are onPaused then onStopped. however, when i hit the back button while inside a fragment thats on the backstack, it is onDestroyed Jan 21 05:11:54 im adding the fragments via replace. which in the documentation specifically states that a fragment being replaced thats on the backstack is not destroyed Jan 21 05:12:27 "Note: When you remove or replace a fragment and add the transaction to the back stack, the fragment that is removed is stopped (not destroyed). If the user navigates back to restore the fragment, it restarts. If you do not add the transaction to the back stack, then the fragment is destroyed when removed or replaced." Jan 21 05:14:42 every fragment i hit the back button on is onDestroyed/onDeatched. ive been baffled for days now Jan 21 05:19:57 it sucks because the view is constantly recreated and refilled with data, and that is "expensive." im aiming for the onPause/onStop then onStart/onResume back button activity to offer nice graphical performance Jan 21 05:24:02 orbyt_ yes Jan 21 05:24:08 i found out a possible workaround but still not 100% trustable Jan 21 05:24:18 using a Bundle element onSavedInstanceState and onCreate trying to read it Jan 21 05:24:24 but some clients end up having to re-login again Jan 21 05:24:56 renkon Store it in SharedPrefs Jan 21 05:25:07 i thought about that Jan 21 05:25:18 but im afraid that will be saved even when the client CLOSES the application Jan 21 05:25:27 i didnt explain myself well, sorry. Jan 21 05:25:43 Im supposed to save it until client decides to "close" the application, like using HOME + close in the app list. Jan 21 05:31:06 renkon An activity can be destroyed at any time, I don't think there is an event that is called when a user purposefully closes an application. Jan 21 05:32:51 You should explain your use case though, as what you are requesting is kinda odd Jan 21 05:54:25 Is there any reason to choose ListView over RecyclerView if we are developing for API levels 7+ ? Jan 21 06:26:04 pan_duh: if there's a small number of items that will never grow Jan 21 06:27:03 shmoooz, so if i'm just pulling a user's contact list and displaying them in a list adapter, do you think listview is the way to go? technically that will never grow, although the list might be quite large Jan 21 06:27:43 pan_duh: yes, in those cases, I would imagine it would be more lightweight Jan 21 06:28:07 shmoooz, alright. thanks Jan 21 10:14:14 Hey.. I've got a spinner in my action bar. Jan 21 10:14:42 It seems the touch bit is small.. is there a way to set it larger. Jan 21 10:15:02 When I tap on it, I have to be very specific.. half the time it doesn't work. Jan 21 10:15:30 Anyone know how to set it's height.. Jan 21 12:36:18 Hello Jan 21 12:36:36 I've got an issue where I installed the debug version of my app on my phone Jan 21 12:36:44 and now I can only run that Jan 21 12:37:04 the (unsigned) release version won't install Jan 21 12:37:21 and it's not giving me a helpful error, it just says it "wasn't installed" Jan 21 12:38:31 I don't know if the debug version is the reason it wont install for certain though, it's a guess Jan 21 13:20:53 hy i tried to build los on falcon and i got this error *actually everytime i trying to build nougat roms i still got this error* https://hastebin.com/raw/usuvuyawez any solutions? thanks Jan 21 13:43:21 When I install my app which requires an HTTP connection on Android 6.0.1 it doesn't work but works on 4.4.2 Jan 21 13:44:02 it was compiled using min api target = 17 and max api target = 24 Jan 21 13:53:00 What is the file size of android-studio-ide-141.2117773-linux.zip? Jan 21 14:23:00 purplex88: did you request the correct permissions? Jan 21 14:23:12 From android 6 on you have to request permissions at runtime Jan 21 14:27:45 in settngs > apps > permissions it says: "no permissions required" Jan 21 15:07:21 how can i dynamically set my shape resources color without making the whole thing a square? setBackgroundColor is giving me problems Jan 21 15:32:04 Can I make the virtual phone pretend there is no internet connection? Jan 21 15:35:33 ah nevermind Jan 21 15:35:56 I could turn off data in the phone Jan 21 15:46:08 Forecaster: airplane mode Jan 21 15:46:25 I just turned off data Jan 21 15:46:40 now to figure out why this thing crashes when there is no connection Jan 21 15:49:18 :o Jan 21 15:51:26 I mean, obviousy it's because it can't send the request to my server Jan 21 15:51:33 but whyyy Jan 21 15:51:47 it can't because you turned off data Jan 21 15:51:51 because it raises exception you dont catch [solved] Jan 21 15:52:15 Melatonina: no, it's because of what Ashiren said Jan 21 15:52:26 the problem is, where is it thrown Jan 21 15:52:32 really? Jan 21 15:52:39 the strack trace is remarkably inhelpful Jan 21 15:52:43 unhelpful* Jan 21 15:52:49 how so Jan 21 15:53:49 "the stack trace is remarkably unhelpful" is a remarkably futile help request Jan 21 15:53:58 it wasn't a request Jan 21 15:54:11 Ah, you just feel lonely Jan 21 15:54:13 Ok Jan 21 15:54:27 I'm here for you. We can chat Jan 21 15:54:27 I'm using an AsyncTask to do the reqest, in a class Jan 21 15:54:31 that works fine apparently Jan 21 15:55:20 the exception happens when I try to do a .length() call after getting a json array from the result Jan 21 15:55:25 apparently that is returning null Jan 21 15:55:34 Cool Jan 21 15:55:51 How's the weather there? Jan 21 15:55:53 so there being no connection doesn't throw an exception Jan 21 15:56:42 if you are using retrofit, you should check is the response was successful before trying to get the body Jan 21 15:56:52 if Jan 21 15:56:56 I have no idea what retrofit is Jan 21 15:57:12 probably you should check it nonetheless Jan 21 15:57:32 doing a null check on the result.get() return has solved it Jan 21 15:57:57 Well, everybody is free to set their own standard regarding to coding Jan 21 15:58:08 -to Jan 21 15:58:12 * Forecaster shrugs Jan 21 15:58:32 So, what about the weather? Jan 21 15:58:38 I looked up how to do http requests and found some instructions that used AsyncTask Jan 21 15:58:43 so that's what I did Jan 21 15:59:36 Cool Jan 21 16:01:08 It makes you feel good to know that there is somebody sloppier than you out there Jan 21 16:01:15 Thanks Jan 21 16:01:50 I have no idea what you're talking about Jan 21 16:02:57 I meant "Knowing that there is somebody sloppier than you out there makes you feel good". That should be better English Jan 21 16:05:39 I still have no idea what you're talking about Jan 21 16:08:09 If I set the min build target = 17 API max build target to 24 API, does it mean it will on all devices between 17 to 24 or just 17 and 24? Jan 21 16:08:26 That means it will run on everything 17 and up Jan 21 16:08:56 i only have 17 and 24 API installed in studio, that ok too? Jan 21 16:09:01 Yes, it's fine Jan 21 16:09:20 You actually don't need the older build tools installed. Jan 21 16:09:40 Most of what those settings do is tells AS when to nag you because you're using a feature that might only be supported from 19 up Jan 21 16:09:53 anyone know how I can get a view object for a snackbar message in the main context? Jan 21 16:10:09 in onCreate Jan 21 16:11:37 At a guess, call getActivity() or getContext() Jan 21 16:12:17 Otherwise, depending on what you're doing, you might have to cache it in a class variable during onAttach() Jan 21 16:15:41 hm Jan 21 16:15:49 neither of those exist Jan 21 16:16:00 getActivity and getContext that is Jan 21 16:17:24 Dagmar: do you know where onAttach is? Jan 21 16:17:34 it's not listed as an override in AppCompatActivity Jan 21 16:18:43 That's why i said "depending on what you're doing" Jan 21 16:18:57 For a fragment, you've got an onAttach() method that's called Jan 21 16:19:17 when my app is starting, ie when the main activity is created, it requests data from my server to display Jan 21 16:19:31 if that fails I want to display a snackbar message saying it failed to connect Jan 21 16:19:43 getWindow().getDecorView().getRootView() Jan 21 16:20:30 You *do* apparently have getApplicationContext() available Jan 21 16:20:46 ...as well as getBaseContext() Jan 21 16:21:19 Tip... if you type "Context context = getContext" it will actually show you both those autocompletes, even tho' there's something in between "get" and "Context". Jan 21 16:22:21 You might want to look up what the difference between those two is, becuase I've no idea. I'd just use one and see if it explodes Jan 21 16:22:26 I've seen those, but they return a context, not a view Jan 21 16:22:35 getWindow().getDecorView().getRootView() Jan 21 16:23:55 that works Jan 21 16:23:56 thanks Jan 21 16:24:23 *shrug* I figured the getting the context would be required Jan 21 16:26:28 anyone know how I can get a view object for a snackbar message in the main context? << you don't need to do anything, you pass a view, snackbar will try to find the a coordinator layout otherwise it will use the decor content view, it's stated in the doc: Snackbar will try and find a parent view to hold Snackbar's view from the value given to view. Snackbar will walk up the view tree trying to find a suitable parent, which is defined as a Jan 21 16:26:28 CoordinatorLayout or the window decor's content view, whichever comes first. Jan 21 16:26:48 your problem is related to asynctask and your context probably not anymore available Jan 21 16:27:14 it's a common pitfall with asynctask Jan 21 16:27:18 the snackbar message isn't called in the async task Jan 21 16:27:33 still, you don't have to pass anything to snackbar except a valid view Jan 21 16:27:59 but you have to pass it a view Jan 21 16:28:06 the issue was getting a view to give it Jan 21 16:28:30 findviewbyid Jan 21 16:28:40 you could also just findViewById(R.anyViewAtAll) Jan 21 16:28:49 how come you use a snackbar without any view already laid out Jan 21 16:29:20 or directly findViewById(R.yourCoordinatorLayout) Jan 21 16:29:42 are you doing that before setContentView ? Jan 21 16:29:52 Well, at least I was solving for y correctly Jan 21 16:30:02 i would not say correctly, but anyway Jan 21 16:30:12 ppl should be extremely careful with those "contexts" Jan 21 16:30:24 and there are differences which are not obvious, depending on which context you use Jan 21 16:30:27 adq: no, I was doing it after setContentView(R.layout.activity_main); Jan 21 16:30:54 i cannot blame you, the lolcycle is crazy Jan 21 16:31:03 adq: Yeah, I know when I'm in the weeds because AS gets pretty complainy, and I generally go look up bloody everything to avoid pitfalls Jan 21 16:31:06 but you're doing it wrong if you have trouble using a snackbar Jan 21 16:31:25 application context is always available. People can always context.getApplicationContext() and store that Jan 21 16:31:32 toast was more simple because it did not rely on the activity context Jan 21 16:31:33 adq: the problem was that there wasn't a view object in onCreate by default Jan 21 16:31:38 and I didn't know how to get one Jan 21 16:31:42 I have a cool like about Contexts Jan 21 16:31:56 You can just create a view at any time if you don't mind eschewing XML Jan 21 16:32:00 Forecaster, hence findviewbyid to get one reference Jan 21 16:32:01 it's easy in an onClick for example, because they have a view as a parameter Jan 21 16:32:25 usually ppl populate their view in onCreate Jan 21 16:32:31 it's kinda weird you don't have any view there lol Jan 21 16:32:33 https://possiblemobile.com/2013/06/context/ Jan 21 16:32:38 That's the link Jan 21 16:32:41 also onCreate does not mean your activity is visible Jan 21 16:32:47 I don't know what you mean by "populate their view" Jan 21 16:32:50 so your snackbar might pop, disappear, and you won't see it lol Jan 21 16:32:53 Stuffing things into it Jan 21 16:33:09 Forecaster, where they reference their view with findviewbyid Jan 21 16:33:10 Like buttons and strings into textViews and so forth Jan 21 16:33:19 ^ Jan 21 16:33:22 Forecaster: Doing PWAC? Jan 21 16:33:24 ...or inflating a whole layout into it Jan 21 16:33:37 that must be happening in the background for me Jan 21 16:33:49 well, where I don't see it Jan 21 16:33:54 you're doing it wrong, but again cannot blame you Jan 21 16:33:55 Yes, you are doing PWAC Jan 21 16:34:31 I'll go and spend some money on low calories food Jan 21 16:34:49 "Person Without A Clue" yep Jan 21 16:35:00 I started on this like a week ago Jan 21 16:35:10 You're ahead of the game. :) Jan 21 16:38:09 actually, according to my git history, it was two weeks ago Jan 21 16:41:31 https://hastebin.com/itibubuliy.java -- here's the main activity class if you're curious/want to be horrified :P Jan 21 16:41:55 Oh I'd love to see someone else writing code that causes cancer that isn't me Jan 21 16:43:30 Ah... Okay... You know that *lots* of things are Views, right? A LinearLayout is a View, for example Jan 21 16:43:55 From looking at it, I don't know that what you're doing on line 29 is necessary at _all_ Jan 21 16:44:11 that's Melatonina's thing Jan 21 16:44:45 Yeah, but this was an X-Y problem from the outset Jan 21 16:47:11 as far as I'm aware x is getting a view for the snackbar thing Jan 21 16:48:16 The snackbar I'm unfamiliar with Jan 21 16:48:56 me too :P Jan 21 16:49:20 all I knew is that it wanted a Vew, and I didn't have anything that was explicitly that at the time Jan 21 16:49:24 From a quick look at the API docs, this looks like part of the reason I just call Toast Jan 21 16:50:07 the snackbar thing was in the base project code when I made the project Jan 21 16:50:14 so I kept using that Jan 21 16:51:35 A Toast message is a less fancy transient popup Jan 21 16:51:47 About the only thing you have to give it is a Context and a string Jan 21 16:51:53 Well, and a duration Jan 21 16:52:13 Forecaster, so you could just give one of your fab to your snackbar view parameter, no need to retrieve root view Jan 21 16:52:14 Toast.makeText(getApplicationContext(), "Your toast message.", Toast.LENGTH_SHORT).show(); Jan 21 16:52:17 Derpily simple Jan 21 16:52:18 but it's not that problematic anyway Jan 21 16:52:36 and it's not horrible at all for someone of 2 weeks of experience, believe me Jan 21 16:53:06 Yeah you at least know about the existance of the lifecycle Jan 21 17:01:37 there, switched to toast instead of snackbar :> Jan 21 17:01:58 anyone using an edge that doesn't hate it? (slightly on-topic)... I can't love the spurious touches and IME support is awful Jan 21 17:06:04 Hell, might as well go ahead and report it to eBay Jan 21 17:09:19 nah, they don't care Jan 21 17:09:54 can't remember who dev on what last time I paid attention :-/ Jan 21 17:10:46 Sorry that was a mis-chan. Someone in #android was asking about an ebay listing for a Nexus 6P for $20 Jan 21 17:10:52 There's just no way that's legit. Jan 21 17:11:57 or, gimme! ;-) Jan 21 17:12:23 but yah, broken /stolen,... Jan 21 17:13:17 Possibly glows-in-the-dark radioactive Jan 21 17:13:32 <_abc_> I am reading https://developer.android.com/studio/run/emulator-acceleration.html and trying $etc/emulator -accel-check . This simply starts the emulator. emulator says -accel-check is not an available option. Can someone please tell what version they ... Jan 21 17:13:32 A chop shop would pay more for this just to cannibalize them for parts in a heartbeat Jan 21 17:13:36 <_abc_> ... run and whether it has this option? Jan 21 17:14:56 <_abc_> anyone please? Is the developer... page out of date or is my emulator out of date? The accel check option is not present. Jan 21 17:16:29 What is the file size of android-studio-ide-141.2117773-linux.zip? Jan 21 17:20:27 _abc_: your emulator comes from the future Jan 21 17:22:55 upgrade to the latest and be sure Jan 21 17:23:44 I'm having issues with the stock news and weather app on my N1 Jan 21 17:23:44 It just keeps saying network error even after a reset and flash. I looked around and couldn't find a answer. Can anyone help? Jan 21 17:24:02 would not be surprised that the documentation is totally out of date Jan 21 17:25:28 developer.android.com seriously thinks it needs to warn the world about its cookie use? Jan 21 17:26:16 it's a european law Jan 21 17:26:27 they have to comply Jan 21 17:27:02 cough, mmmm, euro law bad l Jan 21 17:27:15 capella2: https://www.cookielaw.org/the-cookie-law/ Jan 21 17:27:25 ignore the stupid Jan 21 17:31:21 <_abc_> Melatonina: can I send it back to the future and use a contemporary one which actually does what the manual says? Jan 21 17:32:22 <_abc_> The answer to "cookie law" is to set your browser to keep cookies only for the current session. Every time you restart it it starts clean. Jan 21 17:33:19 <_abc_> Webmasters reacted to this by identifying people by browser signature and ip block and behavior tuple (installed plugins, machine characteristics etc). That happens to be quite illegal in EU precisely because of the required opt in law @cookies. Jan 21 17:38:10 <_abc_> Has anyone here got experience with sgabios from google code? Jan 21 17:38:30 k, but providing a non transient context for websites we visit is pretty obvious... what if your car was forced to remind you to stop using gas Jan 21 17:38:45 heh, nag nag nag Jan 21 17:40:03 <_abc_> Your car DOES remind you to stop for gas. Jan 21 17:40:15 <_abc_> The hard way, if you ignore the blinky light and the pointer on zero. Jan 21 17:43:22 no the reverse, each time you start it, it says some preachy thing about burning dinosaurs instead of eating them Jan 21 17:51:05 capella2: http://www.recs.org/glossary/european-20-20-20-targets Jan 21 17:51:32 theres no secret tricks to making a tableview is there? nothing like the google hover api or whatever. you just make a ListView and BaseAdaptor and do everything yourself. you do the layouts for each row type, you track sections, seperators, etc yourself. if you want to hide a row you change BaseAdapter getCount and getItem. Jan 21 17:52:02 I didn't notice any BaseAdapter stuff Jan 21 17:52:22 how do you hide a row? Jan 21 17:52:31 setVisibility on it Jan 21 17:53:42 <_abc_> Mystery half solved, I need tools >= 25.0.10 Jan 21 17:54:10 hnm ok. i read this SO last night that seems to poopoo the setVisibility idea http://stackoverflow.com/questions/5041499/how-to-hide-an-item-in-a-listview-in-android Jan 21 17:54:12 melatonina Nice to have goals, forget how EU emissions compare to overall world, China esp, with advances in CCS, methane is more interesting Jan 21 17:54:49 That's a _ListView_, not a _TableView_. Jan 21 17:55:10 right thats what i said Jan 21 17:55:42 well thats another quesiton of whether androids ListView or TableView is more appropriate to implement my idea of a TableView Jan 21 17:55:42 You also started with talking about a TableView, which is an entirely different widget Jan 21 17:56:02 which is mostly influence by iOS UITableView and Qt QTableView Jan 21 17:56:19 for some reason last time i worked on this i decided to go with a ListView to make my "table view" Jan 21 17:56:42 If you need a plain list of items, particularly if they're in an array of some type, then a ListView is in order. If you actually need rows and columns that line up like a spreadsheet, then a TableView is probably what you want Jan 21 17:57:29 If your list of objects is _large_, or even more than will fit on one screen, you _really_ want to consider using a RecyclerView instead Jan 21 17:57:33 They are _much_ faster Jan 21 17:57:36 capella2: we just set goals. Then we forget about them. Jan 21 17:57:51 150 items with three sub-items apiece will take whole seconds to render in a listview Jan 21 17:58:03 oh, look how that works out :D Jan 21 17:58:05 It's pretty much instantaneous with a RecyclerView Jan 21 17:58:48 hm hadnt heard of RecyclerView will look into. I think i basically want a listview. my elements are list like, but they may have a left icon, a right icon, a textfield, a password field, in addition to label text and subtext Jan 21 17:59:08 recyclerview ftw Jan 21 17:59:20 maybe a tableview with 2 columns for basically key and value Jan 21 18:00:02 How many of them tho? Jan 21 18:00:15 could be more than 1 screens worth but not hugely more Jan 21 18:00:32 Literally the big difference between Listview and RecyclerView is that RecyclerView only bothers rendering the ones that are visible, and it's basically got a built-in scroller Jan 21 18:00:49 A ListView renders them _all_ Jan 21 18:00:55 its pretty similar to the android.preferences.PreferenceFragment for instance Jan 21 18:01:06 ok cool ill try RecyclerView thanks Jan 21 18:04:49 Having used them both, there's some added complexity to RecyclerViews, but the way it functions is much more elegant Jan 21 18:07:08 YouCallItFar: http://www.androidhive.info/2016/01/android-working-with-recycler-view/ Jan 21 18:16:29 who's using listview nowadays, anyway Jan 21 18:17:26 those who havnt found out bout recyclerviews Jan 21 18:22:10 ...and people with very short lists. Jan 21 19:04:48 anyone here worked with layer lists/array of drawables? trying to achieve a row of filled/unfilled icons depending on the size of an int Jan 21 19:12:17 KukOrkan: you didn't state your problem Jan 21 19:13:07 Hi, I'm new to Custom views, i want to have a car's Plate which consist of three EditText with an ImageView(Plate background), where should i start? At first! Should i extend View or ViewGroup? Jan 21 19:13:10 Melatonina: "trying to achieve a row of filled/unfilled icons depending on the size of an int" Jan 21 19:14:15 currently have an array of drawables, if i < size, then its a certain icon, else its another. setting that array to a LayerDrawable, but only 1 drawable appears Jan 21 19:15:12 KukOrkan: create one of such icons, then use a loop to create many of them Jan 21 19:15:28 KukOrkan: "LayerDrawable: A Drawable that manages an array of other Drawables. These are drawn in array order, so the element with the largest index will be drawn on top. " Jan 21 19:17:12 yes but how can i set an imageview to show all those drawables in a row? Jan 21 19:17:48 maour: http://www.vogella.com/tutorials/AndroidCustomViews/article.html You are interested in the "compound views" part Jan 21 19:18:20 KukOrkan: you don't. You create a row of ImageViews Jan 21 19:19:15 KukOrkan: LayerDrawable has obviously nothing to do with what you want to do Jan 21 19:19:45 maour: https://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889 Jan 21 19:19:55 theres no way i would only be able to use one imageview? Jan 21 19:20:58 KukOrkan: yes, create a custom drawable Jan 21 19:23:29 Melatonina, Thanks. Jan 21 19:23:51 maour: you're welcome. Jan 21 20:00:57 KukOrkan: you are welcome to Jan 21 20:00:58 too Jan 21 20:47:34 Hello, I added this animation https://developer.android.com/training/animation/cardflip.html#views in app. I tested it on API 17, API 25 and API 23, but it only works on API 17 (android Jellybean). In the other versions the UI blocks and app crashes because the animation takes along, and I get Fatal signal 6 (SIGBART) error; however this shouldn't happen because I'm performing an animation with object animator Jan 21 20:47:34 on the main thread. Any solutions? Jan 21 20:49:04 I also Error: get Ambient Vertex overflow!! used 334, total 332 Jan 21 20:59:30 Melatonina: thanks for earlier, just really in to what im doing. forgot to thank you :) Jan 21 20:59:45 :) Jan 21 20:59:53 You're welcome Jan 21 21:24:07 Hey Jan 21 21:24:37 Someone here who can teach me how to download a pdf with volley? Jan 21 21:29:28 Hey Gang, It's been a while since I've started an Android Project which talks to the web. Is Retrofit still the best way? Jan 21 21:37:40 Is anyone here familiar with using the CardsLIB API. Having a few issues in a list view Jan 21 21:39:44 Ankhwatcher Yes, if your communicating with an API Retrofit is is pretty good. Jan 21 22:09:37 in rx, is there an easy way for .map(foo -> foo.bar) to throw something other than an NPE when foo is null? Jan 21 22:09:45 should I even care Jan 21 22:13:44 You can handle it and return what you want Jan 21 22:13:49 but it's still Java Jan 21 22:25:44 What's the best way for a user to access their contacts in an app and select multiple? Jan 21 22:26:47 hello Jan 21 22:26:56 does anyone have HD2 NAND Toolkit Jan 21 23:04:21 pan_duh: http://stackoverflow.com/questions/15620805/how-to-select-multiple-contacts-from-the-phone-using-checkboxes Jan 21 23:05:25 pan_duh: http://www.sachinmuralig.me/2013/11/android-simple-multi-contacts-picker.html Jan 21 23:05:52 Melatonina, yeah I saw that one. The method seems really heavy if the person has a reasonable amount of contacts. If that is to work well, it needs to be done in a loader Jan 21 23:06:04 Which is how I plan to implement it. Thx. Jan 21 23:08:41 Melatonina: why is that when i call setChecked(false) on switch programmatically then event listener function is not involved but when i call setChecked(true) it gets involved.. have you seen this behavior? Jan 21 23:08:54 Melatonina, Oh yeah. The second one you linked does it in an asynctask - that makes more sense. Jan 21 23:09:55 pan_duh: yes Jan 21 23:10:38 purplex88: no experience with that, sorry Jan 21 23:10:53 it is strange.. Jan 21 23:10:57 purplex88: where are you doing it? Jan 21 23:11:28 in a demo example just testing it i can show you Jan 21 23:12:23 in which thread? Jan 21 23:12:43 what triggers the call to setChecjed(false)? Jan 21 23:14:53 pan_duh: a recycler view instead of a list view may be appropriate too Jan 21 23:20:48 Melatonina: here http://pastebin.com/QAxWUevZ the result will be a toast which displays "Switch is on" and if you change the line #13 and #30 like this: http://pastebin.com/yQBaKJSX then the toast will still display "Switch is on" Jan 21 23:22:42 so it seems as if listener was involved by setChecked(true) but not in case of setChecked(false) Jan 21 23:23:14 Melatonina, yeah. i'll see how it performs. i'm going to implement it with a cursor loader, and i can implement easy caching. the contact display is static too, so it should be okay as a listview, at least temporarily. Jan 21 23:25:36 purplex88: move the if (isSwitchOn)... code inside the callback. I hope you didn't waste many hours on this "bug" Jan 21 23:26:11 is this a bug right? Jan 21 23:26:21 i did waste a whole day Jan 21 23:26:34 figuring what was wrong Jan 21 23:26:49 then came to actually write a demo to test Jan 21 23:29:50 purplex88: this is not a good demo. You don't allow the UI loop to run between the setChecked() call and the check. It COULD fail for that reason Jan 21 23:30:19 purplex88: in any case, it's not a good way to test an UI feature. Jan 21 23:30:44 purplex88: move the code in that callback and see what happens Jan 21 23:33:24 purplex88: did you read what I wrote? Jan 21 23:34:05 yes, purplex88: move the code in that callback and see what happens Jan 21 23:34:16 ok Jan 21 23:36:12 Melatonina: right, nothing happens on OnOffSwitch.setChecked(false); Jan 21 23:36:45 it wasn't a good way to test Jan 21 23:36:55 but its a bug Jan 21 23:37:12 purplex88: another cause may be that it's already false, so nothing changed and the callback is not called Jan 21 23:37:23 ah Jan 21 23:37:59 will add: android:checked="true" in xml Jan 21 23:38:41 Melatonina: yes its that what you said Jan 21 23:39:26 it doesn't unnecessarily invoke it if not needed. Jan 21 23:46:24 Melatonina: what does it mean again that "i don't allow the UI loop to run between the setChecked() call and the check? At the line setChecked shouldn't it immeditedly invoke the listener? Jan 21 23:48:32 purplex88: it should do it with a 99.9% probability but I would not take it for granted not knowing the UI framework in depth and I would never test an UI feature like that Jan 21 23:55:11 purplex88: anyway, in this specific case the problem was that "Changed" callback (or event, in other frameworks) are typically strictly called only on actual changes. Jan 21 23:55:31 purplex88: do you still think you have a bug? Jan 21 23:57:04 Melatonina: now it seems more like feature intentionally implemented Jan 22 00:03:23 thanks, purplex88 Jan 22 02:02:50 Hello Everyone, would anyone be willing to help me get Android Studio working on my computer, Im having some trouble getting it to work..... Jan 22 02:10:46 mewn: That depends. Will I be able to help, and will the amount of time and energy required be worth it for me? :D Jan 22 02:13:10 once android studio finshes updating ill tell you the problem im having. And it will be much worth your time and effort if you enjoy helping people :) Jan 22 02:14:06 mewn: what OS are you using? Jan 22 02:14:15 xp Jan 22 02:14:22 im wondering if thats my problem also Jan 22 02:14:27 will android studio work on xp? Jan 22 02:14:51 JDK when i installed it said it wasent ment for xp.... Jan 22 02:15:16 You don't need to install the JDK anymore. Jan 22 02:15:23 AS installs its own, FWIW. Jan 22 02:15:37 Windows XP? Jan 22 02:15:39 oh well dose it cause a problem if i installed it? Jan 22 02:15:45 yes windows xp Jan 22 02:16:03 Are you one of those guys who think that 16 bit computer are only a fad? Jan 22 02:16:04 No, it won't cause a problem. Jan 22 02:16:47 im not sure what your talking about melatonina ? Jan 22 02:17:25 still waiting for AS to update also so i can copy/paste you the error / problem Jan 22 02:20:42 Why are you still using Windows XP? Jan 22 02:21:22 * g00s gives mewn a nickel "get yourself a real OS" Jan 22 02:22:37 Because i cant afford a different computer just now, so im trying to make this one work until i can build one that would in fact run windows 7 :) Jan 22 02:23:05 i doubt mewn is really running XP, its probably more like somebody in east europe is running it for him :D Jan 22 02:23:34 No i am, its a older laptop from 2012 :) Jan 22 02:23:51 The Windows requirements for AS are "Microsoft® Windows® 7/8/10 (32- or 64-bit)", so I dunno whether it'll work with XP. Jan 22 02:23:52 my old computer broke and i just dont have the money to get a new one yet, cars more imporant right now Jan 22 02:23:55 my laptop is from 2009 \o/ Jan 22 02:24:33 AS is starting up and running its just this error im getting.... hold on its starting now i think Jan 22 02:24:42 lol Jan 22 02:24:59 poke it a few times to make sure Jan 22 02:25:21 oh you know how these old 32bit systems are ;) Jan 22 02:26:25 9:24:17 PM Gradle sync failed: CreateProcess error=193, %1 is not a valid Win32 application Consult IDE log for more details (Help | Show Log) Jan 22 02:26:43 thats the error and ive searched and i cannot find a answer anywheres Jan 22 02:26:49 before that error AS tells me..... Jan 22 02:26:56 9:23:44 PM System Health This IDE is running on a Java JRE instead of a full Java JDK. This does not work; debugging (among other features) will not work. You must configure the boot JDK (via Help > Find Action... > Switch IDE boot JDK.) More Info Jan 22 02:27:21 when i do what it says goto find action and click switch IDE boot nothing happens Jan 22 02:27:40 according to another website a dialog box should appear but dosent Jan 22 02:29:59 Someone had the first error on Windows 7: http://stackoverflow.com/questions/39245238/errorcreateprocess-error-193-1-is-not-a-valid-win32-application Jan 22 02:30:36 https://www.google.com/search?q="is+not+a+valid+Win32+application"+android+studio Jan 22 02:32:25 http://imgur.com/a/doepw playing with interpolators & animations on android wear Jan 22 02:32:57 (it's not really a splashscreen :3) Jan 22 02:36:46 hrm okay last time i searched and nothing came up, i guess adding quotes makes some kind of difference? Jan 22 02:36:52 adq: did you do it? Jan 22 02:36:59 ofc Jan 22 02:37:50 I'd like to extend my application to an android watch too Jan 22 02:37:55 not sure if i should center everything, and maybe move the pulsing circle at bottom centered too Jan 22 02:38:23 because they don't it here: https://www.google.com/design/spec-wear/components/permission-messages.html# Jan 22 02:39:20 adq: I would center everything but not moving the pulsing circle at the bottom Jan 22 02:40:17 yeah but on square screen, idk Jan 22 02:40:28 adq: making it pulsing make you want touch that point Jan 22 02:40:32 makes Jan 22 02:40:32 http://imgur.com/a/KKxWF (on square) Jan 22 02:41:09 yeah that's the point of making it pulsing, otherwise the app is useless Jan 22 02:41:12 can you do a layout for circular screens and a different layout for square screens? Jan 22 02:41:17 yes Jan 22 02:42:05 Sincerely, I would center everything on the square screen but leave the pulsing circle on the same line of the text Jan 22 02:42:26 On the circular screen I would make the pulsing circle above the text Jan 22 02:42:30 all centered Jan 22 02:42:45 have you look the guidelines link? Jan 22 02:42:55 Yes. I know what you mean Jan 22 02:42:57 i'm debating, will try to see anyway Jan 22 02:43:46 guidelines have images for a circular screen and are ugly, in my opinion Jan 22 02:44:08 that would work better on a square screen Jan 22 02:44:41 i think they are slowly killing square screens for wear Jan 22 02:45:11 well, i tried i don't like it when all is centered Jan 22 02:45:20 gdit, UI is such a pain Jan 22 02:45:21 then they should implement text justification on non-squared areas Jan 22 02:45:33 lol text justification Jan 22 02:45:40 still not there Jan 22 02:45:48 I meant text layout Jan 22 02:45:57 ppl are using crazy lib or webview for that Jan 22 02:46:04 it's ... .. mffff Jan 22 02:46:48 I'd buy a smart watch with a square display Jan 22 02:47:36 don't, because they are pushing wear 2.0 in february Jan 22 02:47:39 Anyway implementing text layout on slices of circle is not that hard Jan 22 02:47:44 and all square watches won't get it, iirc Jan 22 02:48:49 Oh, I won't buy a device before I can actually implement the relevant part of my application Jan 22 02:49:32 It's my fifth month of Android development and my only smartphone still doesn't have a SIM card in it Jan 22 02:52:59 well, you don't need a sim if you don't test stuff related to it, like sms, call & co Jan 22 02:59:20 Yeah, my application doesn't deal with that stuff. I mentioned that to say that I'm not one who hurries to buy stuff unless I really need to **** ENDING LOGGING AT Sun Jan 22 03:00:00 2017