**** BEGIN LOGGING AT Sat Jul 16 02:59:58 2016 Jul 16 05:10:03 hi, anyone using realm? Jul 16 05:10:18 got a lil problem trying to make it work with RN 0.29 Jul 16 06:04:48 hi guys Jul 16 06:05:50 guys, if I don't unregister a broadcastreciver in onPause(), will my app still receive those broadcast messages in background? Jul 16 06:23:14 anyone knows how to show build logs? Jul 16 06:47:41 Is user interface in NDK written in Java and code is C++? Jul 16 07:16:01 purplex88: why don't you check for yourself? Jul 16 07:16:08 all of that is open source Jul 16 07:16:35 if i was expert, i would. Jul 16 07:22:00 Manifest.permission.MANAGE_ACCOUNTS is not resolvable. How do I check for that permission? Jul 16 07:24:51 You don't need to check that permission Jul 16 07:26:19 SimonVT, How do I use it then? Jul 16 07:26:40 Do I not need to specify it in AndroidManifest.xml either? Jul 16 07:27:47 guys, if I don't unregister a broadcastreciver in onPause(), will my app still receive those broadcast messages in background? Jul 16 07:27:49 For older devices you do Jul 16 07:28:28 For M+ you don't need it to manage your own accounts Jul 16 07:29:24 hero_biz: Yes, but you should probably use a BroadcastReceiver registered in your manifest if you need to receive broadcasts in the background Jul 16 07:29:48 Your process might be killed Jul 16 07:30:25 ok, ty :) Jul 16 07:30:58 btw, will I get exception if I try to unregister an already unregistered broadcast receiver? Jul 16 07:31:26 Not sure, try it :) But you should know if it's registered or not Jul 16 07:31:44 k,k Jul 16 07:32:31 I winder what I should do if phone's network change from wifi to mobile(and vice versa). Jul 16 07:32:36 *wonder Jul 16 07:32:53 my connected sockets will disconnect probably. Jul 16 07:33:11 mobility management is a troubling problem... <.< Jul 16 08:01:32 purplex88: expert in what? just go to the source and take a look Jul 16 08:03:11 if the file ends in ".cc", ".C", ".cxx", ".c++", ".h++" , "h", "c", "cpp" and so on its c++, but just google the extension Jul 16 08:41:56 the internet is broken again! who googled 'google'!? Jul 16 09:12:34 Anyone know a good way to swap a fragment out in a viewpager? Jul 16 09:13:00 I am using a viewpager for a 2-level menu (first element is the root menu, second element is the fragment that changes based on the selection in the first menu) Jul 16 09:44:19 so i have a in my activity_main.xml and for it to work it mush have class= property directing fragments class, but what if i want to change that fragment? how to change that class= ? Jul 16 09:44:48 you can dynamically changed fragments in xml Jul 16 09:44:53 you have to add them dynamically Jul 16 09:45:00 cant* Jul 16 09:53:38 it took me maybe 10 hours to figure out i need my activity to extend FragmentActivity if i want dynamically add fragments Jul 16 09:54:17 AppCompatActivity Jul 16 09:54:29 appcompat didint worked Jul 16 09:54:52 oO Jul 16 09:55:02 ok maybe it did. Jul 16 09:55:09 im lost here Jul 16 10:01:32 ok. it appears i didnt understood how to use that transaction.add(). i had to provide an id for a container where i want my fragment to be placed first, then give it a fragment object, then provide name String Jul 16 10:02:27 it was frustrating, but i learnd much more about fragments and activities while trying to acomplish that :) Jul 16 11:53:35 hi Jul 16 11:53:51 I'm building an app to support my online platform Jul 16 11:53:59 and on that platform i use leaflet for my maps Jul 16 11:54:10 now i can choose between google maps and mapbox sdk Jul 16 11:54:20 both break in ux Jul 16 11:54:25 with my online platform Jul 16 11:54:26 i could Jul 16 11:54:43 use a webview en use leaflet on android Jul 16 11:54:59 but since i'm rather new with android development, i was wondering if that is a good chooice Jul 16 11:55:03 regarding performance Jul 16 11:55:07 usability Jul 16 11:55:09 etc Jul 16 12:00:04 what would you recommend? Jul 16 12:04:51 Hello Jul 16 12:05:20 Do you know a good Java IDE Online? Jul 16 12:06:01 It is for practice with small code: arrays for example Jul 16 12:06:10 With randoms, etc etc Jul 16 12:08:17 ?? Jul 16 12:14:52 You'll likely get an answer in hours, when everyone wakes... jellevictoor. Jul 16 12:14:54 NVM Jul 16 12:14:55 :P Jul 16 12:15:58 Usually, most people who need an online Java IDA, are on Android tablets? Jul 16 12:16:17 Because you can remote into your PC running a copy of say, JavaBeans. Jul 16 12:20:30 Ahhh ok, I did not know, hehehe. Here is midday Jul 16 12:21:02 I have not Android tablet, it is for my laptop, the problem is: I do not want to install it, I ONLY want to try some stuff Jul 16 12:21:06 "VNC" or "remote desktop" are keywords Jul 16 12:21:13 Ah Jul 16 12:21:30 I am going to eat Jul 16 12:21:33 See you later Jul 16 12:21:51 You could see if there's a portable IDE (that can just be unzipped to say, a Flash drive or folder on your PC) Jul 16 12:23:43 What does bootloader variable board_version mean? Jul 16 12:24:42 hi all Jul 16 12:28:22 how i can use an function from file "functions.class" in file "here.class" ? Jul 16 12:37:58 i have the file MyPreferenceManager.class => http://nopaste.linux-dev.org/?1119471 <= with the function clear(). And this function i need in the the file Receive.class => http://nopaste.linux-dev.org/?1119472 <=. How i do this? Jul 16 12:48:52 no one can helped me? Jul 16 13:09:00 hm? Jul 16 13:09:18 oh Jul 16 13:39:46 Is it secure to use SharedPreferences to store a remembered password in plain text - should I be storing it in some other way? Jul 16 13:48:48 Never store a password in plain text. Ever. Jul 16 13:50:00 CedricBeust: But if I hash it and an attacker gets hold of the hash, they might use that to authenticate equally well - the only difference is that they won't learn the user's password, which the user might be using in other websites as well. Jul 16 13:52:01 Does the above not compute for everyone else or is it just me? Jul 16 13:52:41 The point of a hash is that it's impossible to authenticate with it Jul 16 13:53:58 to clarify: I'm using the password to authenticate for a web service which I control Jul 16 13:55:03 You should use something like oauth and only store a token on the device Jul 16 13:55:37 I'll look that up. Jul 16 13:55:42 If the attacker gets an unsalted hash, then a rainbow table will get the password out of the hash very fast. Salted hashes, on the other hand, are harder to crack. Jul 16 13:56:20 VerbalKint: they will never need to crack the hash. If my application can authenticate only by knowing the hash, then an attacker can also authenticate that way. Jul 16 13:57:28 Velizar: must be misunderstanding something then Jul 16 13:58:32 then use token Jul 16 14:04:00 hello Jul 16 15:25:52 does androids sqlite scale well with very many columns? Jul 16 16:02:21 Oh my, I'm such a moron to think that just because they're 2 separate listeners, onNegativeButton and onDismiss might trigger different things! Jul 16 16:02:42 Jul 16 16:07:22 what is good project to learn loaders" Jul 16 16:07:23 ? Jul 16 16:46:48 man the activity lifecycle is brutalizing me Jul 16 16:47:57 theres no way to disable onDestroy and onCreate for back button is there? Jul 16 16:48:11 override onBackPressed Jul 16 16:48:35 but juding from the question im not quite sure you know what are you doing Jul 16 16:51:17 im running a c++ game loop via jni, and i programatically create ui elements from it. Jul 16 16:54:07 i have a static bool if my game is inited, in onPause i thread.join() my game thread, and onResume if its alreayd inited i just start the game loop back up Jul 16 16:56:33 so i think i resolved my crashing issue Jul 16 16:56:36 how bad of a design is that? Jul 16 16:56:46 I belive it was the choice of OS. Jul 16 16:57:07 was using android 3.0 and seem to crash where as android 4.1+ its ok Jul 16 16:57:10 im open to all suggestions Jul 16 17:03:18 YouCallItFar, why do you join your game thread? Jul 16 19:29:46 im checking BasicContactables sample. There is a check if (getIntent() != null) on onCreate method. In what scenario there could be no intent? Jul 16 20:59:50 hey, whats the preferred method in a professional environment for using APIs: 1) downloading the actual jar and placing into libs folder. OR 2) just letting the dependency manager take care of it by calling it online (example: compile 'com.google.apis:google-api-services-youtube:v3-rev176-1.22.0') Jul 16 21:00:24 Having your own Maven caching server and then using dependencies. Jul 16 21:00:31 Checking in jars is terrible practice. Jul 16 21:01:33 weird. the last place i worked at, we had to actually download every jar Jul 16 21:02:48 What's your point? O.o Jul 16 21:03:02 nothing Jul 16 21:05:09 Manually handling JARs is problematic because a lot of VCSs don't handle binary files well. Jul 16 21:05:31 You also have to manually resolve transitive dependencies and updating them for patches and few features is extremely painful. Jul 16 21:05:50 Hence dependency based build systems like Maven and company :) Jul 16 21:06:39 thank you Jul 16 21:07:06 On the other hand you don't want anyone to pull a NPM on you :P Jul 16 21:07:10 (Delete dependencies you need.) Jul 16 21:07:33 Hence the caching server - it automatically downloads the dependencies from public repositories as it sees them and keeps them on your own harddrive :) Jul 16 21:07:51 Setting up Sonatype Nexus or alternatives is like an hour job for an admin who's never seen them. Jul 16 21:38:47 this chat is like a ghost town :/ Jul 16 21:43:25 What's the preffered way to handle item clicks for recyclerview? Im used to setOnClickListener for ListView Jul 16 21:44:02 Set onClickListener on the view you want to handle the click :) Jul 16 21:44:32 I usually hook it up in the holder and use getAdapterPosition() to resolve the item Jul 16 21:45:41 Shouldn't the activity be the guy that decides what happens on click? Jul 16 21:45:57 Seems weird to put that logic in the adapter? Jul 16 21:46:21 That's up to you. Jul 16 21:46:34 You can call back to activity if you want yes. Jul 16 21:46:41 I pass callback interfaces to my adapters Jul 16 21:46:49 Yp. Jul 16 21:47:48 Heh. I guess it works, depends on what I want to do. Like if I need to change my activities actionbar or something... I would NEED to use a callback... right? Jul 16 21:48:03 Click listeners can become kind of complicated when you have multiple view types, use cursors, ... Jul 16 21:48:07 But if I'm just starting a new activity... I should be good to do that inside of the adapter. Jul 16 21:48:21 Instead I handle that in my adapter, pass the data I need back through the callback Jul 16 21:49:25 yeah, becomes interesting when you have a complex layout, like a CardView with a bunch of stuff, and when you select it, it opens up into another activity or something. You'll want to be able to reuse that stuff in 2 places Jul 16 21:50:05 SimonVT: So you do both at once? You implemented click listener in the adapter AND you have a callback? Jul 16 21:50:07 if you take the easy way out and put all the stuff in the adapter, like changing action bar, that won't be possuble Jul 16 21:50:30 Yes Jul 16 21:51:13 g00s: What if I pass in the context to the adapter constructor, and cast it to an activity? Jul 16 21:51:26 I don't want the first 10 lines of my click handling in the Fragment to be if (viewType == x) { cursor.getX(...); ... } Jul 16 21:51:30 I just don't know if in code review people will scrutinize my code. Jul 16 21:51:44 Ugh. Jul 16 21:51:47 Don't do that. Jul 16 21:51:54 I just want onSomeItemClicked(long id, String title, boolean whatever) Jul 16 21:52:12 Yeah. I guess I'll make sure I don't do anything hacky. Jul 16 21:52:30 And if you need an Activity in the adapter, pass an Activity... Jul 16 21:52:35 @simonvt I think i know the issue of the twitteractivity problem Jul 16 21:52:57 I was running android 3.0 which seem to crash the app lol, even though its compatible Jul 16 21:53:05 android 3? Jul 16 21:53:11 yeah :| Jul 16 21:53:14 wait you knew? Jul 16 21:53:15 wut Jul 16 21:53:16 O_O Jul 16 21:53:49 It works fine on android 4.0 but listview is empty Jul 16 21:53:49 So last question regarding this... how do I make sure it's the WHOLE list item that gets the click? Should I do this in onCreateViewHolder, onBindViewHolder or somewhere else? Jul 16 21:54:17 the tweets are logged, but some reason its not populating the listview. Jul 16 21:55:06 for some reason, hmmm ... wonder what that reason could be :/ Jul 16 21:55:24 those damn reasons :) Jul 16 21:55:34 I'll probably come back tomorrow and post code because I'm just lazy right now :/ Jul 16 21:55:42 inb4 more errors crop up Jul 16 21:55:47 >_> Jul 16 21:57:16 hey howdy there DarkChaoz Jul 16 21:58:01 umm hi? Jul 16 21:58:19 how's your app project coming along? Jul 16 21:58:37 do I know you? I cant remember lol Jul 16 21:59:08 the simple app is done never released it on google play, when I imported it to android studio i messed up on the importing lol Jul 16 21:59:25 ahh Jul 16 21:59:40 now, I'm going to revamp few features and then release it on google play Jul 16 21:59:45 cool Jul 16 21:59:49 after looking at tutorials xD Jul 16 22:00:06 what sort of improvements are you making to it? Jul 16 22:08:01 Ditching android gingerbread support, incoperate material design, convert twitter news feed into tab layout Jul 16 22:08:08 @jesseg Jul 16 22:08:31 Ahh - had to ditch gingerbread to get the desired effect? Jul 16 22:08:51 and probably some more, just dont know what features Jul 16 22:09:03 well it's lunchtime for me :D Jul 16 22:09:46 Yeah unfortunately Jul 16 22:10:20 Im probably going to upload the old app after i fix it as an legacy app for gingerbread Jul 16 22:10:34 But no further support Jul 16 22:18:46 I just got an app idea and I'd like to know if it already exists. App would use GPS to show people near you, allow a short profile and messaging. May also have the ability to send a flirt or ask on a date. Jul 16 22:19:30 It would show nearby people using a map, ofcourse. Jul 16 22:21:29 Sounds like Happn Jul 16 22:25:45 skinux, lol. "Hi. My app has detected that you app is within 40 feet of me, and I'm desperate for a date." Jul 16 22:27:37 lol Jul 16 22:40:44 i have a FrameLayout that i replace with a Fragment. when im done with the Fragment, how do i put it back how it was? i tried replacing with null but it crashed. if i get the fragment before its been replaced it says null Jul 16 22:43:42 FragmentTransaction#remove Jul 16 22:44:05 thanks Jul 16 22:58:14 hm my current minsdk is 9. should i just up it to 11? or else i guess i should switch to FragmentActivity from Activity Jul 16 23:08:01 Hey, way off topic, but maybe somebody here will have some insight for me. Github has been refusing connections from my laptop for about a week now. Any ideas why/how to fix? Jul 16 23:08:05 (#github is deader than dead, as far as I can tell) Jul 16 23:48:44 hey guys, anyone tried hosting a server in vagrant and using genymotion as client? they both use vbox Jul 17 00:31:41 skinux lol, that idea exists probably 100 times over Jul 17 00:34:19 Oh...perhaps you could name a few? Jul 17 00:53:35 skinux, unless you're inserting pokemon, I think there are too many obstacles for such a thing to become a success. GPS, internet and your app all need to be running constantly. Then you need enough people interested that an encounter is feasible, so very serious marketing. Probably best to focus on specific areas like public transport then. I don't think you have much competition so if you think it's a good idea, prototype it, hang some f Jul 17 00:53:35 lyers and go for it. Jul 17 00:55:31 What do you mean by focus on areas like public transport? Jul 17 00:57:53 Like so: https://vimeo.com/171062270 Jul 17 00:58:18 Did you hear they fixed the last bug in vi? Now it doesn't take up any space. Jul 17 01:06:44 hello Jul 17 01:07:13 anyone know what would be required to simulate a gyroscope using my devices other sensors? Jul 17 01:07:36 i wont dance around the fact, its for pokemon go Jul 17 01:09:23 Is this allowable and would it go over alright with users? : "Option: motivate yourself more and support the devs! Show ads for wrong answers? Yes / Not now / Don't ask again " Jul 17 01:10:00 i had a gps tool a while ago and noticed my phone can actually do everything required of it and in decent time / accuracy too, but, the actual lack of a physical gyroscope meant pokemon go ignored the available data Jul 17 01:10:40 its not just go, its annoying that other apps ignore this info too Jul 17 01:11:39 so, anyone know what it would take to create a fake gyroscope being fed the input data from all my other sensors that together it seems to the exact same job Jul 17 01:15:32 or is it simply too difficult or unpractical to attempt? Jul 17 01:32:06 sadpone start by reading d.android.com Jul 17 01:32:30 not sure if you're here for a question or recruiting help to make pokemon more fun ... Jul 17 01:39:08 its a question Jul 17 01:39:36 as far as i can tell its not a practical venture, i mostly wanted to confirm as much Jul 17 01:44:31 btw, im unsure exactly what it is i am to read Jul 17 01:55:47 other sensors cannot replace gyroscopic data Jul 17 01:56:06 you can simulate it somewhat Jul 17 02:06:55 is there any good way to put an ArrayList(Byte[]) on an intent as extraData? Jul 17 02:07:32 ArrayList* **** ENDING LOGGING AT Sun Jul 17 02:59:58 2016