**** BEGIN LOGGING AT Tue Feb 14 03:00:03 2017 Feb 14 04:29:05 whay log is not getting disabled from release build Feb 14 04:30:06 how to hide default logging Log.d/v/i from release build Feb 14 04:30:58 I have also mentioned check in .pro but no use Feb 14 04:31:30 min2 not sure its still the right way, but you can disable log.* from proguard. you can also do something if (debug) log.* (...) but thats kinda lame Feb 14 04:31:55 maybe the logcat wrappers do it for you Feb 14 04:32:37 thanks g00s, but now i can not put check everywhere it will become too messy Feb 14 04:32:57 not everywhere, just create a single logging class and do it there Feb 14 04:33:07 min2 yeah, you can make your own wrapper Feb 14 04:33:18 does timber do something smart there ? Feb 14 04:34:02 yeah I checked, but for that I have to replace logs everywhere m i right? Feb 14 04:34:13 amnd replace with my own wrapper Feb 14 04:35:22 exactly how much ARE you logging? Feb 14 04:35:33 it too much Feb 14 04:35:38 sounds it Feb 14 04:36:16 logjam :) Feb 14 05:30:04 What's the go-to book for android programming? Feb 14 05:57:43 How can i diable logs which are coming from .jar files Feb 14 06:00:09 there is one Log.d inside classes.jar of third party lib which I wan to disable in release Feb 14 06:08:41 I opened up Android Studio today and I can't see a preview of my app's manifest... Feb 14 06:08:52 All I can view is the code. Feb 14 06:18:47 bacon is definitely a thing in Texas 🐷 Feb 14 06:51:28 * raoul11 thepooshes thepoosh Feb 14 06:51:34 boker Feb 14 06:52:05 hi hi hi Feb 14 06:52:34 bacons has 541 calories for 100g Feb 14 06:53:01 wsup Feb 14 06:53:03 o/ mela Feb 14 06:53:09 Melatonina: that's why I keep kosher Feb 14 06:53:13 no bacon for me Feb 14 06:53:25 raoul11: s'all good, still 2-2 Feb 14 06:53:28 hi raoul11 hi thepoosh Feb 14 06:54:02 Melatonina send me some salaminos plz Feb 14 06:54:24 give me your address in private Feb 14 06:54:30 \: Feb 14 06:54:35 it wont work Melatonina Feb 14 06:54:45 why? Feb 14 06:54:51 coz thepoosh's mafia blocks any shipment of nonkosher meat into israel Feb 14 06:54:54 ): Feb 14 06:55:00 :( Feb 14 06:55:00 give me your address Feb 14 06:55:14 thats why i have to smuggle 3kg of salaminos everytime i visit italy Feb 14 06:55:36 :D Feb 14 06:55:51 or buy local shitty salaminos Feb 14 06:56:18 * thepoosh is squinting towards raoul11 Feb 14 06:56:25 I gottca now! Feb 14 06:56:39 salami is not kosher? Feb 14 06:56:57 anything that doesnt have the stamp of thepoosh's friends isnt kosher Feb 14 06:57:09 very thepoosh Feb 14 06:57:21 he is always like that Feb 14 06:57:32 doesnt have to be pork. even biltong is blocked here ): Feb 14 06:57:52 thepoosh: did u turn on package private in AS Feb 14 06:58:09 as per JakeWhaXXX advised? Feb 14 06:58:25 can't I fake the kosher stamp with my printer? Feb 14 06:58:35 its certeficate Feb 14 06:58:39 ^^ Feb 14 06:58:46 raoul11: ? Feb 14 06:59:06 I signed out before i got a chance to see the answer Feb 14 06:59:07 smugglin drugs is less dangerous than smugglin nonkosher meat Feb 14 06:59:10 do you have logs? Feb 14 06:59:16 no, from the talk Feb 14 06:59:19 oh Feb 14 06:59:22 didnt see him respond yday Feb 14 06:59:30 I try to do less privates Feb 14 06:59:39 I wanna get rich Feb 14 06:59:40 mostly use package protected Feb 14 06:59:46 Melatonina: it'll happen Feb 14 06:59:54 Melatonina: do you have plan where to spend Feb 14 06:59:55 you're in the right field Feb 14 07:00:16 I'll study way to import Italian salami to Israel Feb 14 07:00:25 squ: I already decided that once i'm a freakin' billionaire I will become a butcher Feb 14 07:00:32 The first one I already showed. Turn on that private member inspection and listen to it. Don’t ignore it. You don’t have to do it for every single type. Feb 14 07:00:56 thepoosh i do everything private ): Feb 14 07:01:02 not anymore! Feb 14 07:01:09 no wonder am hittin 65k limit like a baws Feb 14 07:01:48 my meat is both halal and kosher so there :P Feb 14 07:02:36 shmooz: I think that all kosher meat is halal as well Feb 14 07:11:18 My ImageView wont let me resize it in Android Studio. The resize knobs dont work. Feb 14 07:11:30 In fact the image is bigger than its supposed to be...what do I do? Feb 14 07:11:41 learn xml Feb 14 07:17:04 thepoosh http://i.imgur.com/WtAUpaE.png Feb 14 07:17:20 oh, nice Feb 14 07:17:23 setting now Feb 14 07:18:55 Okay trying to remove the actionbar from my app. I've made a new theme whos parent is set to: Theme.AppCompat.Light.NoActionBar Feb 14 07:19:21 but....it still appears in the design view of the activity_main.xml. It doesnt show up when I run my app though but it still pushes elements downwards as if its still there..whats going on? Feb 14 07:20:10 Like it still appears in android studio Feb 14 07:21:02 i think thats what he meant thepoosh Feb 14 07:21:08 not entirely positive Feb 14 07:21:29 well, we'll wait and see Feb 14 07:30:40 Anyone else had this problem with the ActionBar? Feb 14 07:31:02 I simply want it to be invisible everywhere. Its invisible in the app but no Android Studio, and also I can't place elements at the top. Feb 14 07:32:36 did you change the theme in the design tab? Feb 14 07:42:40 oh how? Feb 14 07:43:05 as in how do I change it to my custom theme defined in styles? Feb 14 07:52:19 above the designer you have AppTheme bar Feb 14 08:32:05 Is there an easier approach to taking UI from a PSD (photoshop document) and importing it into Android Studio other than manually editing the XML files and attempting to translate the styles manually? Feb 14 08:32:16 Or are there plugins/programs nowadays that can get the job done more easily? Feb 14 08:53:20 I honestly don't see how that kind of conversion would end up anything else than looking like total crap. Feb 14 08:53:27 Especially when you consider scaling to different screen sizes. Feb 14 09:59:50 A broadcast receiver that I set in code with LocalBroadcastReceiver.getInstance(this).registerReceiver(...) does not need to be added to the android manifest. Is this correct? Feb 14 10:01:05 eeyup Feb 14 10:06:51 Thansk Feb 14 10:06:56 *Thanks Feb 14 10:26:39 https://gist.github.com/Syzygy2048/8fdbabc49f159a0fc0b762e03563bbbf any idea why this broadcast receiver would not trigger? Feb 14 11:01:54 do you have the permission in manifest for access network state? Feb 14 11:15:28 Syzygy, you can't use *Local*BroadcastManager for receiving system broadcasts Feb 14 11:17:50 also your code confuses me Feb 14 11:39:00 how do I tell a recyclerview that the amount/content of the rows has changed? Feb 14 11:39:18 adapter.notifyDatasetChanged() Feb 14 11:39:29 there is also one for particular row Feb 14 11:41:09 aha Feb 14 11:42:30 there's also insert and delete notifys Feb 14 11:47:04 whatitis, yes i have. Zharf I used the LocalBroadcastManager due to some guides I found. Where should I register my receiver? Trying context now. Feb 14 11:47:24 Also what part of my code do you find confusing? I'll try to clarify it. Feb 14 11:48:15 mniip: Don Feb 14 11:48:29 mniip: *Don't use notifyDataSetChanged Feb 14 11:49:46 Zharf, seems to work with context.registerReceiver. thank you for your input. Feb 14 11:50:05 astroduck, why? Feb 14 11:50:10 because it has to redo everything? Feb 14 11:50:38 Syzygy, you got it Feb 14 11:51:29 Syzygy, the exception handler seems weird but I might be missing context Feb 14 11:54:58 Zharf, the init call comes from my onCreate method. The ResourceAccessException is triggered when there's not internet available, in that case I set a receiver that initializes the data once internet has been restored. Feb 14 12:06:02 1487073004 [14:50:04] astroduck, why? Feb 14 12:06:02 1487073009 [14:50:09] because it has to redo everything? Feb 14 12:07:11 mniip: Yeah thats why. Sorry I got disconnected. Use notifyItemChanged/notifyItemRangeChanged Feb 14 12:07:35 Also notifyDataSetChanged won't animate your items unlike its siblins Feb 14 12:07:38 I see Feb 14 12:07:43 siblings* Feb 14 12:10:12 does notifyItemInserted reclaculate the layout immediately or does it schedule it Feb 14 12:10:37 can I call it 100 times or should I try to cache and notify ranges instead? Feb 14 12:10:49 it schedules it afaik Feb 14 12:10:54 it does Feb 14 12:10:58 even though calling it 100 times is probably not a good approach Feb 14 12:11:01 perhaps use diffutils? Feb 14 12:11:09 nah Feb 14 12:11:18 there's only addition at the end and removal from the beginning Feb 14 12:11:37 the issue though is that it can happen thousands of times per second Feb 14 12:13:43 mniip: For addition/removal of views use notifyItemRemoved notifyItemInserted, something like that Feb 14 12:13:47 Can intent.getExtra() be null if intent.getStringExtra() returns a valid string? Feb 14 12:14:14 And I think notifyItemRangeChanged just calls notifyItemChanged on your behalf on every item Feb 14 12:14:24 It used to do it at least Feb 14 12:15:13 Yeah it does, in source notifyItemChanged calls notifyItemRangeChanged Feb 14 12:15:29 so its like a helper function Feb 14 12:15:31 :P Feb 14 12:16:36 https://gist.github.com/Syzygy2048/24299a7280f41ec61d12a486bb32c1f7 How is it possible that intent.getExtras() is null while intent.getStringExtra(...) is working? Feb 14 12:17:30 Syzygy: I think getExtra is a bundle you can place in an intent Feb 14 12:18:13 yeah Feb 14 12:18:16 but putExtras Feb 14 12:18:26 sure, but if getStringExtra(..) works, then that implies that the intent does have an extra, so getExtra() shouldn't return null. Feb 14 12:18:48 unless I'm misunderstanding something. Feb 14 12:19:19 *getExtras() Feb 14 12:19:34 I think, putExtras and getExtras work in pair, data of getStringExtra is kept separate Feb 14 12:19:47 Look at its source, see what each of those functions do Feb 14 12:20:17 http://grepcode.com/file_/repo1.maven.org/maven2/org.robolectric/android-all/5.0.0_r2-robolectric-1/android/content/Intent.java/?v=source Feb 14 12:20:26 it seems getStringExtra() uses the extra internally Feb 14 12:20:30 getStringExtras also uses extra. Feb 14 12:20:39 so if getStringExtra is not null, getExtra shouldnt be null Feb 14 12:21:53 but according to the crashlog I received, that's exactly what happens. Feb 14 12:26:08 Syzygy: You are talking about getExtra or getExtras? Feb 14 12:26:29 If getextra, are you using same key for getStringExtra and getExtra? Feb 14 12:27:11 getExtras() Feb 14 12:27:24 (I even pasted the code) Feb 14 12:27:44 where are you finding NotificationUtil.EXTRA_NOTIFICATION_MESSAGE Feb 14 12:28:10 googling i can find some sites with NotificationUtil.EXTRA_NOTIFICATION_TYPE but not EXTRA_NOTIFICATION.... Feb 14 12:29:02 NotificationUtil is a custom class. all of those are public static final Strings and all of them are set Feb 14 12:29:44 Syzygy: Oh, oops Feb 14 12:29:53 can you show it being used to send in the intent Feb 14 12:32:01 I'm not sure where it is sent from, but does it matter? The if should prevent getExtras() from being called if the first call doesn't have extras. Feb 14 12:34:06 before String msg = ... and an if(intent!=null){ and see what happens Feb 14 12:34:13 I doubt the sender can somehow asynchronously remove on an intent that was sent. Feb 14 12:34:35 and = add Feb 14 12:35:07 I can not reproduce this, it happened in the wild. Feb 14 12:35:12 ah Feb 14 12:35:45 Not often, but I don't have many users. Feb 14 12:35:53 Add explicit check and forget about it :P Feb 14 12:36:36 I would like to understand the reason for this crash... as far as I can see it should be impossible. Feb 14 12:36:50 I agree :/ Feb 14 12:38:09 can it be caused by a sudden/perfectly timed race condition of app getting destroyed? Feb 14 12:38:35 Maybe? I can't tell... Feb 14 12:38:57 I'll close this without a fix I guess... freak error. If it happens again I'll look at it. Feb 14 12:40:37 if won't affect performance can try and add some debugging try catch magic for rare cases to log what is happening when it happens Feb 14 12:41:03 whatitis: If that is true, which I doubt is possible, we can't trust anything in android o_O Feb 14 12:41:18 haha Feb 14 12:41:53 can methods be break'd upon destroying app? or do the methods complete and then halts? Feb 14 12:42:17 or atleast the objects in them collected Feb 14 12:43:02 If they are halted, it won't throw an exception. Its like killing the vm, nothing will happen after it Feb 14 12:43:38 I don't know how dalvik works when destroying apps Feb 14 12:44:06 it does kill -9 :P Feb 14 12:52:03 Is dalvik still a thing? wasn't it replaced with art in version 5.0? Feb 14 12:54:31 Nexus 4 running API level 23 btw. Feb 14 12:54:32 hello guys,this is my first time dealing with rxAndroid , any suggestions about tutorial or general would be appreciated Feb 14 13:02:56 sci-fic, rxjava wiki and stackoverflow are probably the best resources Feb 14 13:08:11 not entirely sure I understand FragmentStatePagerAdapter Feb 14 13:09:47 are inheriting classes expected to store the created viewgroups? Feb 14 13:09:47 fragments, rather Feb 14 13:10:09 or is there a way to figure out whether a given position has a real existing view currently? Feb 14 13:11:32 why do you need to know that? Feb 14 13:12:04 mniip, https://github.com/xxv/android-lifecycle maybe? Feb 14 13:12:14 hellcycle or lolcycle Feb 14 13:12:16 you choose Feb 14 13:13:03 Zharf, I need to propagate an update notification to a particular tab Feb 14 13:13:39 I usually use an eventbus architecture for these. Feb 14 13:13:44 yeah Feb 14 13:13:55 Register in onStart() / unregister in onStop() Feb 14 13:14:09 And just send an event so presenters / fragments can update themselves if anything changes. Feb 14 13:14:15 I see Feb 14 13:14:22 Alternatively, replace it with register / unregister listeners Feb 14 13:14:22 * Zharf nods Feb 14 13:14:30 But IMO that adds spaghetti. Feb 14 13:14:38 This way you sidestep the whole issue :) Feb 14 13:14:53 you mean fragment.onStart/onStop? Feb 14 13:15:08 Whichever is relevant for you. Feb 14 13:16:16 Hi, I want my app to be able to write a plain text file containing cache data from a piece of C code. Which is the easiest way to accomplish this? Feb 14 13:16:41 Which part? Feb 14 13:16:54 I mean... just write the file in C code as you'd usually? :) Feb 14 13:18:33 Mavrik: Im getting permission denied then Feb 14 13:18:39 Well. Feb 14 13:18:51 For internal storage Feb 14 13:18:51 Are you writing to the directory within your app private store? Feb 14 13:18:55 You can't just write wherever. Feb 14 13:19:02 How are you figuring out where to write? Feb 14 13:20:00 you need WRITE_EXTERNAL_STORAGE permission. aside from that, since android M you need also ask for runtime permission Feb 14 13:20:20 you don't need that for external files dir Feb 14 13:20:34 or cachedir. Feb 14 13:20:36 yeah Feb 14 13:20:45 But you will get write error if you do something dumb like hardcode the path ;) Feb 14 13:20:48 only if you write outside of the applications data directories Feb 14 13:22:13 silly q: in retrofit, i am posting to my api using a particular pojo, and on the response body i am receiving a diff pojo Feb 14 13:22:24 Mavrik: is it possible to retrieve the internal storage directory from C, like is it specified in any header files? Feb 14 13:22:33 raoul11, that's a statement, not a question Feb 14 13:22:36 orzen, nope, you need a context. Feb 14 13:22:43 how exactly can i parse the response as a diff object? Feb 14 13:22:53 orzen, easiest is just pass it in from Java as a String Feb 14 13:22:56 clicked enter by accident Zharf Feb 14 13:22:59 raoul11, :p Feb 14 13:22:59 at startup / invocation / etc. Feb 14 13:23:17 raoul11, just make it return a different type in your service interface? Feb 14 13:23:35 silly indeed Feb 14 13:23:37 thanks Zharf Feb 14 13:24:18 the diff object in the Call<> part ot the (@body part)? Feb 14 13:24:27 call id assume Feb 14 13:24:34 call, yes Feb 14 13:25:12 thanks Zharf Feb 14 13:31:41 Mavrik: I see, thank you! Feb 14 14:11:04 hi.. in eclipse, i am getting 'import android.support cannot be resolved'. the line is: import android.support.v7.app.ActionBarActivity Feb 14 14:11:42 eclipse isn't supported by google anymore, but you're missing the support-v7 library from your project Feb 14 14:11:52 and don't ask me how to do that in eclipse, I can't stand it :p Feb 14 14:12:12 Zharf: :) Feb 14 14:12:14 thanks Feb 14 14:16:26 Zharf: so i right-clicked etc and clicked Add External JARs.. and then browsed to /.../support/m2repository/ Feb 14 14:16:39 does that location look right? Feb 14 14:18:37 extras\android\support\v7\appcompat\libs Feb 14 14:18:56 thouuugh you'll need to add the whole parent directory, really Feb 14 14:19:04 it's an android library project with resources Feb 14 14:19:12 and you can't pack resources in a jar Feb 14 14:19:36 http://stackoverflow.com/questions/26878803/how-to-add-android-support-v7-libraries-in-eclipse Feb 14 14:20:26 raoul11: can't I send you a vacuum-packed salami or prosciutto by snail mail to Israel? Feb 14 14:23:09 Zharf: many thanks.. i just need to download android support library and then add it Feb 14 14:23:29 that would be 1 line in gradle and androis studio :v Feb 14 14:23:57 Ashiren: :) Feb 14 14:24:43 sure but you'll quickly lose the time saved in configuration when compiling the project :) Feb 14 14:49:43 no Melatonina /: Feb 14 14:49:52 thepooshes m8 will stahp it Feb 14 14:49:56 * raoul11 thepooshes thepoosh Feb 14 14:50:15 Zharf: under /extras/android/ there is only one directory 'm2repository'.. no support Feb 14 14:50:18 What a strange Country Feb 14 14:50:42 enforcing religious rules by the state law Feb 14 14:51:26 bytefire, it should be downloadable from sdk manager Feb 14 14:52:10 Zharf: that's what i did. from SDK manager. but i can't find it under directory Feb 14 14:52:18 raoul11: HAI Feb 14 14:52:26 what are we talking about? Feb 14 14:52:30 going in an hour to the meeting Feb 14 14:52:43 Melatonina wanna smugle proschuto to israel Feb 14 14:52:50 told him your m8s will block it Feb 14 14:53:18 Zharf: in SDK Manager window it shows SDK Path as the one i am looking under Feb 14 14:53:30 you are not allowed to import food in to any country Feb 14 14:53:37 sending food in the mail can get you in jail Feb 14 14:54:31 but is it legal to create an import business of Italian food in Israel? Feb 14 14:55:16 non-kosher food, I mean Feb 14 14:55:20 bytefire, not at my computer right now but the support lib should be in the extras... bot the maven one Feb 14 14:55:25 not* Feb 14 14:56:48 Zharf: right Feb 14 14:56:50 non kosher no Melatonina Feb 14 14:57:04 Zharf: is there another way? to manually download them? Feb 14 15:00:13 Sorry guys but I support people following the kosher tradition but I find debatable a law prohibiting people from selling, buying and eating what they want. Feb 14 15:02:10 Melatonina: yes it is Feb 14 15:02:18 and there are non-kosher food places here Feb 14 15:02:26 raoul11: you're full of shit friend Feb 14 15:02:53 am not your friend, buddy Feb 14 15:03:13 do it thepoosh /: Feb 14 15:03:50 I AM NOT YOUR BUDDY, GUY! Feb 14 15:04:20 <3 Feb 14 15:04:36 you must be the coolest mitnahel ever thepoosh Feb 14 15:04:50 I was born in 1983, I remember the first southpark episode Feb 14 15:04:58 i member Feb 14 15:04:58 I watched Oz live Feb 14 15:05:10 SIMON Feb 14 15:05:17 ADA BEEEE ZZZZZZ Feb 14 15:05:19 I remember when netflix would mail you the DVDs Feb 14 15:05:38 my network module is almost done thepoosh Feb 14 15:05:43 coolio Feb 14 15:05:56 all done with helper classes Feb 14 15:06:01 mvcing like a baws Feb 14 15:07:31 talk to corporate like a baws? Feb 14 15:07:38 approve memos? Feb 14 15:08:26 hey all Feb 14 15:08:56 hi eagles0513875|2 Feb 14 15:09:18 kvirc has a remote code execution vulnerability, you should try a different client Feb 14 15:09:36 thepoosh: ??? im on my laptop Feb 14 15:09:49 you're using kvirc irc client? Feb 14 15:10:04 version 4.9.2 which is a nightly Feb 14 15:10:13 i can update the nightly if need be if its been fixed in a more recent nightly Feb 14 15:10:19 no worries Feb 14 15:10:23 what's news? Feb 14 15:10:47 what do you mean thepoosh Feb 14 15:11:05 eagles0513875|2: I'm exploiting your client vulnerability to organize an illegal ring of Italian food import in Israel Feb 14 15:11:08 you said "hi" I said "hi" Feb 14 15:11:11 what's up? Feb 14 15:11:23 Melatonina: make me a pasta! Feb 14 15:11:31 that's all I have Feb 14 15:11:46 Melatonina: not funny Feb 14 15:11:57 Melatonina, add some panceta in thepoosh's pasta Feb 14 15:12:57 Ok, eagles0513875|2 is going to go in jail anyway. Pasta alla carbonara: http://assets.simplyrecipes.com/wp-content/uploads/2012/02/pasta-carbonara-horiz-a-1200.jpg Feb 14 15:13:39 Melatonina: that is some good looking fucking pasta! Feb 14 15:13:46 :) Feb 14 15:14:59 Melatonina: obviously I can't eat it, it has cheese and meat mixed Feb 14 15:15:46 pasta, smoked streaky bacon, egg yolk, onion, Parmigiano, black pepper Feb 14 15:15:50 under /extras/android/ all i see is m2repository. how do i get support repository there. i tried SDK Manager and it did download spport package but i can't find it Feb 14 15:16:03 thepoosh: I can't eat it either, I'm dieting. :D Feb 14 15:16:16 is that legal in Italy? Feb 14 15:16:25 of course :) Feb 14 15:16:33 bytefire: you need to add it as a dependency in build.gradle Feb 14 15:17:05 I'm just trying to lose some weight. I'd like to have a slim waist Feb 14 15:17:13 a diet in italy means they only have 3 courses meals, rather than 5 Feb 14 15:17:20 :D Feb 14 15:17:23 hehehe Feb 14 15:17:41 thepoosh: right. but should SDK Manager have at least downloaded it? i am not using android development studio Feb 14 15:17:55 don't worry about it Feb 14 15:18:04 if the SDK manager downloaded it you're fine Feb 14 15:18:09 add it as a dependency Feb 14 15:19:06 thepoosh: but still.. the lib - where is it? Feb 14 15:19:19 what exactly are you looking for? Feb 14 15:20:33 i get this error: the import android.support cannot be resolved Feb 14 15:20:39 on this line: import android.support.v7.app.ActionBarActivity Feb 14 15:21:34 bytefire: did you add the appcompat dependency? Feb 14 15:21:36 apparently i need to add /extras/android/support/v7/.. Feb 14 15:21:42 nope Feb 14 15:21:48 that is NOT what you do Feb 14 15:21:51 riight Feb 14 15:22:08 okay so appcompat is what i need? Feb 14 15:22:37 compile 'com.android.support:appcompat-v7:25.0.1' Feb 14 15:22:40 thepoosh, im back Feb 14 15:22:44 different client this time Feb 14 15:22:50 oh hi there :) Feb 14 15:22:52 what's news? Feb 14 15:23:01 not much here. Feb 14 15:23:07 where is here? Feb 14 15:23:09 got some interesting side projects for work i want to continue this evening Feb 14 15:23:13 but im still at the office lol Feb 14 15:23:17 thepoosh: thanks! i am on it Feb 14 15:23:18 android-dev side projects Feb 14 15:23:24 sounds familiar Feb 14 15:23:28 good luck with that Feb 14 15:23:41 thanks im brand spanking new to droid dev Feb 14 15:23:51 raoul11: you're coming with me? Feb 14 15:23:51 https://events.google.com/io/ Feb 14 15:23:58 but made a great contact with someone in the channel whose in my time zone so i have been discussing things with him and getting help from him Feb 14 15:24:14 brb again Feb 14 15:24:20 just come by and ask, there are pepes from all over the globe here Feb 14 15:24:36 depends if your baws is paying for my ticket thepoosh Feb 14 15:24:48 well, I aint payin jack Feb 14 15:24:59 jill? Feb 14 15:25:00 thepoosh: okay so now the error is still on the same line but this time it says android.support.v7 cannot be resolved (before it was jsut android.support) Feb 14 15:25:07 just** Feb 14 15:25:53 thepoosh: hang on.. might be my mistake Feb 14 15:26:15 hey again sorry changed one last thing which was bugging me as well Feb 14 15:26:30 17:24 thepoosh: just come by and ask, there are pepes from all over the globe here Feb 14 15:26:34 ya i saw that mate Feb 14 15:26:41 i do tend to hang on irc quite a bit Feb 14 15:26:54 so does raoul11 Feb 14 15:26:59 said side projects will be worked on in my own spare time Feb 14 15:27:05 raoul11, i spoke to him this past weekend Feb 14 15:27:27 i halp Feb 14 15:27:33 actually think i did Feb 14 15:27:33 thepoosh: right. now i get this: The import android.support.v7.app.ActionBarActivity cannot be resolved Feb 14 15:27:41 what was it eagles0513875_, fcm? Feb 14 15:27:44 ya Feb 14 15:27:45 change to AppCompatActivity Feb 14 15:27:47 that was it :D Feb 14 15:28:02 right.. Feb 14 15:28:09 hi byte Feb 14 15:28:12 bytefire, Feb 14 15:28:28 hi eagles0513875_ Feb 14 15:28:34 how are you bytefire Feb 14 15:29:19 why do you ask.. what do you want from me :p Feb 14 15:29:38 nothing just striking up a convo Feb 14 15:30:56 thepoosh: ActionBarActivity doesn't exist in android.support.v7.app.* Feb 14 15:31:02 *pulling hair* Feb 14 15:31:17 bytefire: AppCompatActivity Feb 14 15:31:42 that means i have to change it everywhere.. but aren't they different? Feb 14 15:31:43 bytefire, honestly you'd be better off not using eclipse -.- Feb 14 15:31:52 Zharf: not my choice mate Feb 14 15:32:09 but you do use gradle? Feb 14 15:32:23 Zharf, i love android studio with gradle Feb 14 15:32:31 amazing IDE setup for sure :) Feb 14 15:32:34 bytefire: you're working on Eclipse?! Feb 14 15:32:39 eagles0513875_, you're a sick man Feb 14 15:32:41 haha android studio for the win Feb 14 15:32:44 Zharf, ? Feb 14 15:32:57 gradle is slow as a turtle Feb 14 15:33:04 why go through the headache of all the extra setup with eclipse when you have android studio with gradle already setup? Feb 14 15:33:05 nevermind i'll spend whole night here Feb 14 15:33:10 Zharf: you use protify? Feb 14 15:33:22 if i could i would use android studio etc Feb 14 15:33:30 Zharf, will see as my two side projects for work progress Feb 14 15:33:38 thepoosh, no, that was slow as a turtle as well :p Feb 14 15:33:59 don't let you-know-who hear that Feb 14 15:34:02 so BUCK? Feb 14 15:34:15 I talked about it with him like a year and a half ago Feb 14 15:34:31 but I haven't had time to spend more time on getting the thing to build any faster since then Feb 14 15:34:49 so I'm still stuck with the slow builds in gradle Feb 14 15:35:15 yeah, I actually like the gradle setup even if it's kinda slow Feb 14 15:35:26 btw, there is a payed plugin that has fucking fast builds Feb 14 15:35:30 don't remember the name Feb 14 15:35:39 the 1-3 minute incremental builds are really getting to my nerves occasionally Feb 14 15:36:00 how complex is yoru app Zharf Feb 14 15:36:08 before we migrated to gradle, the incremental builds were around 5-10s Feb 14 15:36:16 on what setup Zharf Feb 14 15:36:25 what do you mean "setup"? Feb 14 15:36:38 to have them that fast did you have something in house like an in house build machine so to speak Feb 14 15:37:05 no it was just an old style android project Feb 14 15:37:20 fine, gotta go Feb 14 15:37:25 seeya tomorrow peeps Feb 14 15:37:32 raoul11: you're going to the meetup tonight? Feb 14 15:37:44 bytefire, do you use gradle or not? Feb 14 15:37:52 yeah Feb 14 15:38:15 say hi to Britt Feb 14 15:38:19 seems like gradle you can get the source code for it and set it up on your own hardware Feb 14 15:40:00 is that the curly jumpy girl? Feb 14 15:40:19 Zharf: no Feb 14 15:40:34 Zharf: but it shouldn't be so hard to download a jar Feb 14 15:41:12 bytefire, it's not just a jar though Feb 14 15:41:18 i have m2repository but i just can get support repository Feb 14 15:41:46 bytefire, check package -> show obsolete packages Feb 14 15:41:54 Zharf: okay. but i mean it is a set of files at the end of the day. why not just download them and point to them Feb 14 15:42:00 you should have "android support library" in extras Feb 14 15:42:03 not repository Feb 14 15:42:04 Zharf: right Feb 14 15:43:42 bytefire, it shows it for me but that might be because I've installed it before... but it might also be marked obsolete so it won't show it to you by default... check the package menu Feb 14 15:43:54 Zharf: i can see Android Support Repository in Extras, inside SDK Manager. it is installed also Feb 14 15:44:17 you want the library, not repository... Feb 14 15:44:27 okay Feb 14 15:44:48 can't see library though. even after checking obsolete Feb 14 15:49:53 bytefire, huh, interesting, I guess they removed it and I just have an old install Feb 14 15:53:44 thepo Feb 14 15:53:56 where he go Feb 14 15:54:14 does facebook login is done auto after first login? Feb 14 15:54:49 bytefire, https://dl-ssl.google.com/android/repository/support_r23.2.1.zip Feb 14 15:55:19 bytefire, but there won't be any more updates to that Feb 14 15:55:30 since eclipse isn't supported anymore Feb 14 15:58:17 there might be some features that don't exist in that version of the support library too Feb 14 16:14:48 is integer overflow reliable or is it UB? Feb 14 16:17:47 will have to bug you guys later as im soon out of the office and im shattered today was a super busy day but very productive :) Feb 14 16:27:19 Zharf: thanks for your help on this non-sensical challenge :) Feb 14 16:28:12 Zharf: won't be spending any longer on this. either it's android studio or nothing. not wasting any further energy on obsolete stuff Feb 14 16:29:44 how do you know if android phone is using dalvik or art? Feb 14 16:30:20 bytefire, pre-lollipop is dalvik Feb 14 16:30:47 on kitkat there was an option to choose art Feb 14 16:31:03 but it was an experimental thing Feb 14 16:31:53 ah so anything after kitkat is art? Feb 14 16:32:00 yes Feb 14 16:32:21 cheers Feb 14 16:39:15 why is this relevant? Feb 14 16:39:20 you should never care from app code Feb 14 16:39:44 yeah it doesn't really affect applications Feb 14 16:42:40 hmm, evgo doesn't have an api, boooo Feb 14 16:56:11 hello everyone, can someone tell me what is the difference between MapView and Mapfragment Feb 14 16:56:20 one is a fragment and one is a view Feb 14 16:56:35 view like web view Feb 14 16:56:56 can you clarify a bit more Feb 14 17:00:01 a View is a View Feb 14 17:00:04 a Fragment is a Fragment Feb 14 17:00:28 hey Feb 14 17:01:36 I am a beginner so I dont really know much about view and fragment, could you please give some more details Feb 14 17:03:10 https://developer.android.com/reference/android/view/View.html Feb 14 17:03:16 then you should probably go learn that first, before you deal with maps Feb 14 17:03:18 Examples include TextView, ImageView, Button Feb 14 17:03:20 And https://developer.android.com/guide/components/fragments.html Feb 14 17:03:33 Views and Fragments are some of the bases of Android development Feb 14 17:04:23 thanks Feb 14 17:04:34 is there a setting in Android Studio that will keep showing the horizontal scroll bars? Feb 14 17:13:25 Does anyone know of a way to export crashlytics crash data? Feb 14 17:13:30 Using an API or automated solution? Feb 14 17:20:15 Good morning peeps. Feb 14 17:20:41 Quick morning poll: what website do you like to use the most to share snippets of code on IRC? Feb 14 17:24:54 Any pastebin, like pastebin.ca Feb 14 17:25:05 Could also use github gists Feb 14 17:34:57 thanks everyone bye now Feb 14 17:35:59 Hi! Feb 14 17:36:02 How I can load a library? Feb 14 17:36:13 I have to execute which gradle command? I'm inside Android Studio Feb 14 17:37:41 add it to your build.gradle file Feb 14 17:39:10 https://developer.android.com/studio/build/dependencies.html Feb 14 17:42:25 s73v3r: It says to include all jar files, then why I have to add it manually? I don't understand Feb 14 17:42:46 that’s if they’re in jar files Feb 14 17:43:24 also, I don’t know what you just asked Feb 14 17:44:16 it's inside a jar file Feb 14 17:44:24 how I can do that Android Studio detects it? Feb 14 17:44:41 so your dependency is a jar file. you add it to the project as that page says Feb 14 17:44:51 then you add an entry to your build.gradle file Feb 14 18:04:31 How I know if my library has been loaded? Feb 14 18:04:45 it doesn't says that it has load Feb 14 18:08:50 no, it doesn't Feb 14 18:10:54 you can see libraries in the library view of your project Feb 14 18:12:12 the famous nokia 3310 is coming back :D http://venturebeat.com/2017/02/13/hmd-global-will-launch-the-nokia-3-5-and-6-at-mwc-plus-a-3310-homage/ Feb 14 18:15:03 larfen: are you having problems with a library? Feb 14 18:20:28 s73v3r: yes, I cannot load inside Android Studio the cordova library Feb 14 18:20:46 How I config it to be found by Android Studio? I think that's the probelm Feb 14 18:20:48 *problem Feb 14 18:20:54 cordova is not supported here Feb 14 18:21:02 why? Feb 14 18:21:04 i showed you the page on how to include libraries with your project Feb 14 18:21:12 yes, and I have done that Feb 14 18:21:24 if you need help with Cordova, you’d be better served by a Cordova channel Feb 14 18:21:25 I think the dependency isn't found by android studio, is only that Feb 14 18:21:34 we are not Cordova developers, we are Android developers Feb 14 18:21:44 why do you say that? Feb 14 18:29:50 any idea why I only get alpha channel to work in Paint.setColor() ? the rest is always black, whether I use hex strings or color definitions ... Feb 14 18:30:58 p.setColor(0xFFFFFFFF); and p.setColor(0xFF000000); throw me same result (black paint). Only alpha channel works. Why? Feb 14 18:31:13 O.K. my quick survey reveals that pastebin is by far the most popular snippet sharing website. Feb 14 18:31:13 How come in Android Studio, when I click on an element and under the properties list, if I click beside: alpha for example to set its value, it doesn't work? I can't double click the grey box to input a value. There's also a little wrench icon but clicking that does nothing either. Feb 14 18:31:42 ClydeSlims: cause, well, it's Android Studio Feb 14 18:32:00 mrandroid, it doesn't let you edit values? How come? Feb 14 18:32:24 my point is there are many features in Android Studio that don't seem to work well. Feb 14 18:32:24 I mean it's liked locked or something, how do I unlock it? Feb 14 18:32:43 you live with the fact that something is wrong in the world and get on with life. Feb 14 18:32:48 it's the Android Studio way. Feb 14 18:32:52 lol Feb 14 18:33:06 Yes but this is like such a primitive feature. Surely there's something wrong Feb 14 18:33:12 Does anyone actually know why though? Feb 14 18:33:16 take, for example, the fact that I upgraded to the latest Gradle plugin, and just now the build is failing with cryptic messages Feb 14 18:33:21 At the moment rather a number of the property dialogs take "a while" before you can actually edit them Feb 14 18:33:38 ClydeSlims if we took the mystery out of the situation you'd get bored Feb 14 18:34:02 I can't even close Android Studio properly...clicking the close button doesn't do anything.. Feb 14 18:34:17 That's all you Feb 14 18:48:36 hello Feb 14 18:51:07 I've created a homescreen widget and I've created my appwidgetprovider class. I'd like to use change color of a drawable used as android:background in an imageview inside my widget Feb 14 18:51:19 you can't change the color of a drawable Feb 14 18:51:26 you only have apis available via RemoteViews Feb 14 18:51:35 that is all you can do Feb 14 18:51:59 in activity I can use findviewbyid and then getbackground from imageview Feb 14 18:52:30 ok, I've created a remoteviews also in onReceive method Feb 14 18:52:42 *instance Feb 14 18:53:46 pfn: could I access drawable from a remoteviews (not directly, too)? Feb 14 18:54:02 read the api available on remoteviews Feb 14 18:54:04 that is all you can do Feb 14 18:54:06 what should I change in my widget xml layout? Feb 14 18:54:25 pfn: I'be read them, but I've not found a ,way, yet Feb 14 18:54:29 there is no way Feb 14 18:54:30 *I0ve Feb 14 18:55:15 pfn: I see many wisget change color of imageviews when clicked Feb 14 18:55:20 *widgets Feb 14 18:55:27 *changing Feb 14 18:55:34 that's not changing the color of a drawable Feb 14 18:55:49 do they change the drawable itself? Feb 14 18:55:59 that is one approach Feb 14 18:56:56 currently I use roundedlightgrey.xml formmy drawable, so i should use a roundedblue:xml , I suppose Feb 14 18:57:24 but if I can't access to imageview by remoteviews, I can't do anything Feb 14 18:57:36 of course you can access it Feb 14 18:57:39 who said you can't Feb 14 18:58:37 currently is android:background=drawable/roundedlightgrey attribute in my Feb 14 19:00:21 setBackgroundColor and setBackgroundResource are @RemotableViewMethod Feb 14 19:01:11 todsy, I've looked at setbackgroundresource, I'll take a look again Feb 14 19:01:30 and I'll male some further tests Feb 14 19:01:34 *make Feb 14 19:01:55 https://dpaste.de/ccH1 Feb 14 19:02:47 public void setBackgroundColor(@ColorInt int color) { Feb 14 19:02:56 it's pretty stupid that everything remotable in View isn't automatically in RemoteViews Feb 14 19:03:34 I've read only remoteviews class documentation on android developer website Feb 14 19:03:42 atm Feb 14 19:04:39 ah, ok, now I understand what remotableviewmethod means Feb 14 19:06:34 (I've also looked at setInt method in remoteviews class) Feb 14 19:10:07 What are other options to display video than a normal app? I want to make a console app,and then somehow make a video output. What about vnc conection? Or a streaming of video i to a video player? Feb 14 19:10:26 no Feb 14 19:11:17 Right now im making images and use gallery app to view a result Feb 14 19:12:54 there are no console apps on android Feb 14 19:13:51 I just made one Feb 14 19:13:55 if you absolutely insist on doing it from an int main(); then you can write an http server and server HLS to anything that can stream it Feb 14 19:13:59 or rtsp Feb 14 19:14:01 or whatever Feb 14 19:14:14 ffmpeg, and live555, etc. can help you Feb 14 19:14:24 thats interesting idea Feb 14 19:14:39 Website as a universal gui Feb 14 19:15:17 I can add a script that will simply reload an image once a second, for starter! Feb 14 19:15:36 Yaay, thanks, will do it this way and switch to a video codec later Feb 14 19:23:55 Does anyone know of a programmatic way of exporting crashlytics data? Feb 14 19:24:20 patarr: Try their support, they're usually pretty responsive Feb 14 19:46:01 raoul11: are you there? Feb 14 20:02:27 thepoosh ! Feb 14 20:02:42 hi g00s Feb 14 20:03:03 dinking around with rust and go. man, go really sucks Feb 14 20:03:23 what?! why? Feb 14 20:04:24 all the good things about the language have nothing to so with the language itself (like easy deployable static exes, etc). well its go goroutines, channels. but they have no generics, inheritance, and their package management is horrific Feb 14 20:05:20 rust is proving to be a bit more complicate than i thought, but i wanted to do some bare metal on rpi and not have to use fucking C again Feb 14 20:08:14 thepoosh I guess we're all waiting for AS 2.3, should be very soon now! Feb 14 20:09:04 well. what's on the changelog? Feb 14 20:09:35 its been so long i forgot lol Feb 14 20:09:48 seems like the pace is slowing down over there Feb 14 20:10:19 the gradle plugin 2.3 has a better build cache to speed things up Feb 14 20:25:39 yes, go sucks Feb 14 20:25:49 it's only good because it's an easy language to learn Feb 14 20:26:08 ie commodity developers if you're only Looking for warm bodies Feb 14 20:30:41 g00s: rust is nice Feb 14 20:30:53 for bare metal.. you need to wait Feb 14 20:31:32 gordon_ have you seen https://blog.thiago.me/raspberry-pi-bare-metal-programming-with-rust/ Feb 14 20:32:43 I think I've seen something different Feb 14 20:32:52 I like how you can write functional rust Feb 14 20:33:03 and it's still zero cost abstraction Feb 14 20:33:13 I will take a look later Feb 14 20:33:23 bought old thinkpad x230 today Feb 14 20:33:28 rust is ok, needs more abstractions Feb 14 20:33:29 that glorious feeling Feb 14 20:36:47 rust stdlib is pretty big, too Feb 14 20:41:09 might be, didnt check Feb 14 20:42:47 you can use rust w/o the stdlib if you want Feb 14 20:43:22 i like the pay-as-you-go / zero cost abstractions approach they ttok Feb 14 20:43:45 I wish that they would implement nicer lambda Feb 14 20:43:49 like => or -> Feb 14 20:44:14 the syntax is kinda funky Feb 14 20:44:23 or what ? Feb 14 20:44:42 *of what Feb 14 20:44:47 rust or closures in rust Feb 14 20:45:06 rust in general Feb 14 20:45:14 it's nice I think Feb 14 20:45:22 reminds me a little bit of C Feb 14 20:45:33 but I've been playing with javascript and clojure lately Feb 14 20:45:47 so you can say I'm used to weird syntax ;) Feb 14 20:46:47 gordon_ we have similar tastes :D Feb 14 20:47:23 i'm just interested in js because of electron, i wonder how long until we can use wasm for that (and any language) without transpiling Feb 14 20:47:24 ÂŻ\_(ツ)_/ÂŻ Feb 14 20:47:33 do not use electron Feb 14 20:47:44 llvm backend is getting wasm support Feb 14 20:47:45 please, for the world's sake Feb 14 20:47:49 lol Feb 14 20:48:03 there's libui, qt.. wxwidgets Feb 14 20:48:16 oh come on, wx seriously ... Feb 14 20:48:19 many nice gui libs but.. you wanna use electron Feb 14 20:48:27 wx uses native widgets Feb 14 20:50:07 I'm sick of apps 150 mb in size and using 120 threads for chat messages Feb 14 20:50:18 I look at you slack Feb 14 20:50:56 I wonder how long before ring drawables behave properly and break my layouts Feb 14 20:51:34 anyone used bazel before ? Feb 14 20:59:08 Hey, using a dialog fragment, is there a way to find out in run time the background color of the dialog? Feb 14 21:15:00 What's the correct way to share data from a REST API between activities? Feb 14 21:15:12 I currently have a singleton (which is an ugly thing to do) Feb 14 21:19:39 singleton is the only reasonable way to do it Feb 14 21:22:06 the other option is to do the network io in a service and bind it from both to look at the data Feb 14 21:23:16 binding to services ftl Feb 14 21:37:29 I´m getting a CursorWindowAllocationException when accessing a foreign collection like this. for (ItemIdWrapper itemId : list.getItemIds()) where list is a table in my database and getItemIds returns a foreigncollection. Feb 14 21:37:51 CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=751 (# cursors opened by this proc=751) Feb 14 21:38:39 Since I´m not using cursors directly I´m not entirely sure what´s going wrong here. Feb 14 21:39:05 Hey, using a dialog fragment, is there a way to find out in run time the background color of the dialog? Feb 14 21:39:09 rubenwardy the data should go into a repository that all activities can see, whether its sqlite, cache, in-memory structures, or combination thereof Feb 14 21:40:19 rubenwardy also, if you bind to a service from an activity (bind in onStart, unBind in onStop), i'm pretty sure that going from Activity A to Activity B will cause 'handoff' of the service to shutdown and restart Feb 14 21:41:09 you might need to double check that though, maybe dragorn knows Feb 14 21:45:20 Syzygy, sounds like you're opening cursors and not closing them Feb 14 21:45:31 Syzygy, directly or indirectly, you are Feb 14 21:46:00 services won't shutdown and restart during "handoff" as long as the service was previously in a started state Feb 14 21:46:06 Syzygy when the window allocation failed it usually means an OOM situation, or the memory is too fragmented to enlarge it Feb 14 21:46:21 pfn, sure, but I´m under the impression that ormlite should take care of its own cursors. Feb 14 21:46:38 Syzygy, it likely does, but it likely requires you to do your own housekeeping as well Feb 14 21:47:04 pfn yeah, then you just have to manage overlapping service lifecycles - some might find it tricky Feb 14 21:47:06 brb, I think hexchat might need to be restarted to realize that I just changed some keyboard internatilization settings. Feb 14 21:47:32 the service lifecycle doesn't overlap Feb 14 21:47:35 it's already in a started state Feb 14 21:47:40 you only get an onBind Feb 14 21:47:59 still, not a preferred approach Feb 14 21:48:25 Odd that hexchat needs to restart for my changes to work. Feb 14 21:48:37 but it's working now :D Feb 14 21:54:41 Syzygy i think you'll see it again :( Feb 14 21:56:08 well, the android thing is still not working. Trying to find what housekeeping I have to do. Feb 14 21:57:02 also trying to get umlauts, but not accents working on my keyboard. At least the euro sign... Feb 14 22:17:21 for some reason my tabs are not responding to clicks like in this http://i.imgur.com/qXtIShK.png Feb 14 22:17:50 even though I have tabLayout.setupWithViewPager(viewPager); Feb 14 22:22:29 Veruso, that seems to be working correct judging from your screenshot. Feb 14 22:25:32 That's a different application that I'm running Feb 14 22:26:25 Syzygy, I can't find any differences between my code and the working example Feb 14 22:27:21 Hello people! I am a security researcher and I am trying to reverse engineer some Android malware and try to devise a method to cirvumvent the malware from damaging the device. Feb 14 22:27:53 I have a question about a piece of code I reverse engineered from the malware, could someone look at it? Feb 14 22:28:46 https://securify.nl/blog/SFY20170202/AV_evasion.png this piece of code, is it possible to stop the action from an external application? Feb 14 22:33:49 no Feb 14 22:34:01 replace HOME with your own application that is a no-op Feb 14 22:35:59 pfn: I have an app and I do not want it to do what that intent says it has to do, there is no way to do that? Feb 14 22:36:05 of course, you'll subsequently break the home key until you remove it Feb 14 22:36:12 no Feb 14 22:36:20 HMM> Feb 14 22:36:24 hmm* Feb 14 22:36:31 voider1: how would you know if it’s the system calling you, or a 3rd party? Feb 14 22:37:01 s73v3r: So that's what I'm trying to find out, I was already testing to see if there exists a difference, but AFAIK there isn't a noticeable difference... Feb 14 22:37:36 there isn’t. an intent is an intent is an intent Feb 14 22:38:46 Hmm. Feb 14 22:39:05 Isn't there a way to see where the Intent came from? Feb 14 22:39:18 no Feb 14 22:39:29 Can I check if the home button was really pressed? Feb 14 22:39:37 no Feb 14 22:40:03 Hmm. Feb 14 22:41:29 So there is no way for me to stop that intent from happening? Feb 14 22:41:34 nope Feb 14 22:42:15 It'd be easy if I could say to my app: "If the Intent comes from X app, don't respond" Feb 14 22:42:43 but that would be contrary to the intent system Feb 14 22:42:59 especially if you’re talking about intents sent from the system Feb 14 22:43:00 Why? Feb 14 22:43:23 But this Intent is fired by an app right? Feb 14 22:43:33 all intents are fired by an app Feb 14 22:43:38 the Launcher is also just an app Feb 14 22:43:41 The annoying thing is. Feb 14 22:43:48 This malware can just close any application it likes. Feb 14 22:44:17 the best anti-malware is common sense Feb 14 22:44:20 This all sounds like a strange approach though. Why not take a leaf from the malware book, check if the malware is running and kill its process? Assuming the AV app has permissions to do so. Feb 14 22:44:54 how do you know what malware is Feb 14 22:44:58 Veruso: Sadly, most non-tech savy Android users do not have that and need protection from themselves. Feb 14 22:45:51 Thorbear: Banking apps and such do not have this permission and they want to protect themselves from these things, they do not have time to wait on Google to finally patch something in the system that makes the malware obsolete. Feb 14 22:46:13 s73v3r: I reverse engineered it, and from the looks of it, it is malware. Feb 14 22:46:33 i mean, a banking app should probably not be responding to intents besides Launch, anyway Feb 14 22:46:54 It seems my problem is still persisting... Pressing tabs in my fragment does not do anything to the ViewPagerAdapter Feb 14 22:47:10 s73v3r: So I can make an app so that it will not respond to that Intent? Feb 14 22:47:33 to the launch intent? I suppose you could, but then no one could ever run your app Feb 14 22:47:56 To the HOME thing. Feb 14 22:48:02 are you a launcher? Feb 14 22:48:27 That differs from app to app, this is not a one-time solution. Feb 14 22:48:32 not going to be* Feb 14 22:48:36 Why is the home-intent of interest if you're a banking app? Does the malware simply close the banking app? Feb 14 22:48:42 It could. Feb 14 22:48:48 It could close any app. Feb 14 22:48:58 Why is that a concern? Feb 14 22:49:01 it can't "close" apps Feb 14 22:49:09 it can only bring the launcher forward Feb 14 22:49:11 voider1: If you’re not a launcher, then you shouldn’t be responding to the HOME intent in the first place Feb 14 22:49:12 you can always go back Feb 14 22:49:15 of course, that's annoying Feb 14 22:49:39 especially if the "malware" is doing something like 'while (true) { startActivity(launcher) }' Feb 14 22:53:14 voider1: So it's a malware that prevents a certain app from opening, and the app in question wants to be opened anyway? Feb 14 22:54:08 So I've skimmed through the reverse engineered code (I'm working on this like, since yesterday) and this specific part is for when you open an AV app, it will return to home screen. Feb 14 22:54:30 so what Feb 14 22:54:44 So the problem is, the AV app will ask permission from the user to remove the malware. Feb 14 22:55:00 But since you cannot ever open the AV app you cannot give permission to remove the malware. Feb 14 22:56:32 See the problem? Feb 14 22:56:45 and you’re the maker of the AV app? Feb 14 22:56:49 No. Feb 14 22:56:52 I'm a security researcher. Feb 14 22:57:33 the solution would be for the AV app to operate through notifications Feb 14 22:57:39 rather than having to open an AV app to do work Feb 14 22:57:43 Hmm. Feb 14 22:57:46 That could work. Feb 14 22:57:47 I think? Feb 14 22:57:49 Notification: "Malware has been detected, remove it?" Feb 14 22:57:51 It doesn't block those. Feb 14 22:57:58 Cool. Feb 14 22:57:58 =) Feb 14 22:58:28 notification's action intent can be to launch the uninstall screen for that app, assuming there's such a thing Feb 14 22:59:19 That seems like something that could work. Feb 14 22:59:25 It doesn't seem like the malware can block that. Feb 14 22:59:33 From what I have seen. Feb 14 23:00:15 Thank you pfn, I'm off, going to sleep. See ya. Feb 14 23:00:42 I'll maybe come back for some more questions tomorrow, if you do not mind. Feb 14 23:00:45 Or you guys. Feb 14 23:00:45 xD Feb 14 23:00:49 Nn Feb 14 23:00:51 don't forget to send me money Feb 14 23:01:01 This conversation never happened. ;) Feb 15 00:00:54 TextInputLayout has a character counter that can be enabled. However, it doesn’t appear to do anything other than change style when that counter is tripped Feb 15 00:05:07 So right now, I can go over the limit all I want, and I don’t appear to get any notice Feb 15 00:19:31 what do you want to do Feb 15 00:19:34 set a max length on the textview Feb 15 00:26:38 Yeah, that’s what I did. I was hoping that some kind of error or something i could check would get thrown Feb 15 00:26:55 Although now I have a slightly different problem. When it overflows, the highlight color turns purple Feb 15 00:27:11 and I can’t see where that color gets set Feb 15 00:30:24 and why in the holy hell is android studio not able to get horizontal scroll bars right? Why is it so hard to display one? Feb 15 00:39:40 Hi. Can anyone tell me if I need to know Java if I want to develop a Qt app for Android? I ask this because I only do not know Java (only C++ and Python) Feb 15 00:41:43 you’d probably benefit from knowing some, as, despite the path you want to go down, Java is still the lingua franca of Android Feb 15 00:46:24 awww is qt making a come back? Feb 15 01:04:37 how does maxLines actually work? Feb 15 01:07:30 s73v3r: I understand that, thing is I was just looking for the fastest way to develop a simple app knowing only C++ and python, without having to learn a new language... It's for a minor school project, so it doesn't need to be super fancy Feb 15 01:07:58 honestly, you’re still probably going to be faster doing it the way Google intended Feb 15 01:08:13 If you know C++, you can pick up Java no problem Feb 15 01:11:54 s73v3r: How thanks for the input :). I was even thinking of using "Kivy", do you have anything to say about it? Feb 15 01:12:42 never heard of it Feb 15 01:19:27 s73v3r: Ok, thanks for the input ;) Feb 15 01:39:06 Throwing OutOfMemoryError "Failed to allocate a 64 byte allocation with 0 free bytes and 0B until OOM" - Fun Feb 15 01:39:40 Even more fun: Feb 15 01:39:41 java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available Feb 15 01:54:10 I'm trying to send an ormlite object over the network via retrofit2, but apparently that leaks cursors when executing the rest call, at least according to strict mode and the fact that it crashes. Here's the code. https://gist.github.com/Syzygy2048/ddd06d0860e278ced48651006093e3fc Feb 15 01:54:28 Any idea what I can do to close the cursors when the call finishes? Feb 15 02:26:09 Syzygy: ormlite isn't your best bet for ORM on Android. It's very heavy. Feb 15 02:26:24 and some bugs you'll see are more related to the desktop than for mobile. Feb 15 02:43:02 Syzygy_ if you don't want to deal with sqlite directly, maybe try realm Feb 15 02:43:51 unfotunately it's a bit late for this project. maybe next time. **** ENDING LOGGING AT Wed Feb 15 03:00:01 2017