**** BEGIN LOGGING AT Sun Apr 13 03:00:00 2014 Apr 13 03:04:27 http://pastebin.com/qtyGCvmc is anyone able to tell me why "ContentValues();" is undefined? shouldn't the import have sorted that ? Apr 13 03:04:47 I feel like it's going to be something deadly obvious... Apr 13 03:06:08 are you missing a new? Apr 13 03:06:52 yup... Apr 13 03:06:56 haha thanks a lot Apr 13 03:07:01 that will do it. :D Apr 13 03:07:20 thanks for the fast response :) Apr 13 03:08:04 Hey, I need some help. I have made a ListView with a custom layout and it seems like all items in the view get selected when i click them. Is it possible to fix? Apr 13 03:08:23 Yes, it's possible! :D Apr 13 03:08:38 Fenny: How do I do it? Apr 13 03:09:15 Figure out why your item selection code is drawing the item selected thing on everything, and not just one thing. Apr 13 03:09:38 Is it multiple instances of the same layout? Apr 13 03:09:58 are you trying to select by id rather than by index? Apr 13 03:10:50 did you make a custom adapter? Apr 13 03:11:22 Ohh, or does your data source give each item the same identifier? Apr 13 03:12:34 It uses an array adapter and overrrides getView to set parameters Apr 13 03:13:00 It shpuld be multiple instances, how do I check identifyer? Apr 13 03:13:08 pastebin your adapter code. Apr 13 03:15:37 https://gist.github.com/anonymous/2ee926676dc5a4340e2f Apr 13 03:15:57 and result is an List Apr 13 03:26:28 Fenny: Nothing wrong with it that I can see Apr 13 05:43:28 any expert for CursorAdapter and fragments are here? Apr 13 06:08:40 slani: I'm no expert, but I might be able to help Apr 13 06:13:38 @codeguru are you familiar with Calendar events? Apr 13 06:13:57 nope, sorry Apr 13 06:14:17 no worries, it was worth a shot Apr 13 06:37:06 codeguru: I sove a issue. thanks anyway Apr 13 07:08:53 bah, SO is down, going to have to use my own brain now :( Apr 13 07:21:14 My TextView's text is being reset on rotation. But I set my fragment to retain state. Shouldn't this stop it? Apr 13 07:25:00 hey folks., Apr 13 07:25:27 is there anyone in here doing android development with vim? Apr 13 07:26:01 is it feasible? Apr 13 07:27:24 there are some weirdos doing that,yes Apr 13 07:27:29 probably you like pain X) Apr 13 07:35:49 I've been doing pretty serious Python development for the last 6 years in Vim... to me, Eclipse and Android Studio are pain :) Apr 13 07:40:31 yeah auto code generation and completion is a real pain Apr 13 07:40:46 don't get me started on refactoring! Apr 13 07:46:19 Vim can do all this. Apr 13 07:47:00 Guys, anyone around to give a few tips to a n00b with sdk! For the entire evening I've been trying to add two buttons, I add the button, can edit it, but the location is always top left and I can't position it!! Apr 13 07:47:46 I have been looking online and have seen people just dragging the button wysiwyg style to where they want! But mine is locked top Apr 13 07:55:58 ~resources Apr 13 07:56:26 Anybody have any android + java programming books that they would highly recommend, or even websites with tips from personal experiences Apr 13 07:57:01 I'm primarily looking to develop programs for functional use (ie interacting with databases, GPS location etc - more academic), rather than gaming Apr 13 08:38:51 lots of good examples on d.android.com and in the sdk Apr 13 09:10:10 hi, i am trying to use google play location services in my app. all the tutorial are speaking about a build.gradle. my project has none. i am using ADT most current version Apr 13 09:12:56 Morning Apr 13 09:13:57 Button button = (Button) findViewById(R.id.button1); Can someone please explain what this is doing.. I see the find view is looking for the correct button by id but not what the Button button = (Button) is doing! Apr 13 09:14:16 snudel: tells you how to do it here: http://developer.android.com/google/play-services/setup.html Apr 13 09:14:56 findViewById returns a View, that's casting it to a Button Apr 13 09:15:00 Raynerd: the (Button) is a cast to 'Button' type Apr 13 09:15:49 :-S I've done a bit of C with arduino and pics and some python, admittedly, this is a huge jump! Apr 13 09:16:13 C has casts too Apr 13 09:16:16 What is the lower case button then? Apr 13 09:16:26 the variable Apr 13 09:17:05 = (Button) Apr 13 09:17:09 maybe you should learn some basic java/OO before dipping into android Apr 13 09:17:32 I think you are probably correct! Apr 13 09:17:36 Sorry Apr 13 09:18:38 bankai_au: no it doesnt Apr 13 09:18:51 snudel: it does, there's a section talking about eclipse Apr 13 09:18:57 it tells me to download the apis via sdk manager and then 1st step is open biold.gradle Apr 13 09:19:03 i am using adt Apr 13 09:19:08 adt is eclipse Apr 13 09:19:22 adt is not android studio? Apr 13 09:19:44 Can I ask then what would be the best way to learn some java? I used a raspberrypi when learning python, I used arduinos and pics for C. What is the best way to get into Java? Apr 13 09:19:51 ok, ill start over and check again Apr 13 09:19:51 thanks Apr 13 09:20:13 Raynerd: there's some good tutorials on the oracle site Apr 13 09:20:16 I'm only a hobbiest and a rubish one st that. Apr 13 09:20:18 Ok Apr 13 09:20:53 Raynerd and you'll have to ignore the new java 8 things ;) Apr 13 09:21:05 ? Apr 13 09:21:15 android is mostly java 7 Apr 13 09:21:50 Ahh! Thank you Apr 13 09:22:05 android is still mostly java 6 Apr 13 09:22:12 :-S Apr 13 09:22:39 So android isn't a good way to directly get started in Java? I must admit, that as my plan! Apr 13 09:22:46 no Apr 13 09:23:09 actually, if you go to #java and tell them you're using android, they say 'go away' Apr 13 09:23:18 they tell everyone to go away Apr 13 09:23:23 Ha Apr 13 09:24:03 I did go in java irc but there is a message at the top saying to come here for android specific.,. Hence why I'm here Apr 13 09:27:13 Raynerd i guess it depends what you mean by learning java; as far as the language it doesn't matter much. but if you planned on doing EE or JavaFX or whatever, then android wouldn't be a good place to start Apr 13 09:29:08 I'm a teacher and teach a Chemistry, nothing to do with computing! But I enjoy engineering and electronics www.raynerd.co.uk. I purchased some raspberry pi for school and the kids came up with a game, really really clever grid game! We spent months programming in in python using pygame Apr 13 09:29:23 Only to realise it couldn't be used in a browser or android! Apr 13 09:29:49 This has now become a personal project, wanting to develop it for them and hopefully get it to a downloadable game for android. Apr 13 09:30:07 ah, that sounds like fun Apr 13 09:30:20 are you sure there isn't an android port of pygame? Apr 13 09:30:43 I've tried a few times.. Apr 13 09:31:08 There is one but it was poor and I gave it. Apr 13 09:31:18 ah right Apr 13 09:31:48 There is also the option of using Kline or... Something, I'm sure you guys know the name! But it used totally different structure than py game so would require a re write anyway! Apr 13 09:32:43 Right best go bike riding with daughter. Thanks for the help Apr 13 09:33:22 have fun Apr 13 09:36:35 hey to all anyone knows if there is anyway to use my dual sim android to use the best 3g signal and change the use of internet on itself? Apr 13 09:37:09 doesn't sound like a dev question, daimwn Apr 13 09:37:44 it isnt :) its an android related question though :P Apr 13 09:39:41 I've never used a phone with dual sim Apr 13 09:40:01 :( thnx Apr 13 09:40:10 Android related questions go in #android Apr 13 09:41:22 already asking there just maybe someone had an idea thats why i asked here too :) but thnx Apr 13 09:43:41 I was trying to modify my previously written JDBC based class for inserts etc. to android sqlite Apr 13 09:43:48 since I learned that I can't use JDBC for android Apr 13 09:43:52 I have "PreparedStatement" everywhere in that class... so I was wondering to keep most of things same and change it to Apr 13 09:43:57 http://developer.android.com/reference/android/database/sqlite/SQLiteStatement.html Apr 13 09:44:02 But I was not able to figure out how to put 'int' based parameter inside the insert Apr 13 09:44:07 Because, there are only 2 methods provided, "bindString()" and "bindLong()" Apr 13 09:44:07 I'm trying to broadcast an intent from a service, but no other apps can receive this intent Apr 13 09:44:29 if it were PreparedStatement's I would have used setString setInt etc Apr 13 09:49:57 Omnipotent do you need this? http://developer.android.com/reference/android/database/DatabaseUtils.html#bindObjectToProgram%28android.database.sqlite.SQLiteProgram,%20int,%20java.lang.Object%29 Apr 13 09:50:45 i haven't messed with these apis in a while; ugh Apr 13 09:55:33 g00s, No idea, but I want to put 'int' in pretty much Apr 13 09:55:42 don't think generelizing it to object would be prettier Apr 13 09:58:37 which db were you using with JDBC? coz sqlite is pretty 'dumb' and doesn't have as many datatypes as a proper database Apr 13 10:01:17 bankai_au, To be honest, I first made server application (where my android phone application will connect) with MySql as database, So for that I used JDBC Apr 13 10:01:29 Most of the inserting and querying code stays same in Server and Android application Apr 13 10:01:46 So I thought, I would use the same code... Apr 13 10:01:59 But it turns out, I can't considering JDBC does not work with Android Apr 13 10:02:12 So I was trying to change the JDBC code with less efforts to android sqlite api Apr 13 10:08:05 Omnipotent are you trying to do stuff with local db or remote mysql db ? Apr 13 10:08:14 local db Apr 13 10:08:39 MySQL DB is for the server, unrelated, just mentioned that the JDBC code originates from the server, which I wrote earlier Apr 13 10:08:48 trying to save time, by re-using the code Apr 13 10:09:55 there is no 'saving time' porting stuff to android, its all custom frankenstein Apr 13 10:11:02 x_x Apr 13 10:11:07 Well, Heh Apr 13 10:11:14 I hope at least Java NIO is supported Apr 13 10:11:21 NIO yes, not NIO.2 Apr 13 10:11:35 Well, I use Asychrnouse socket and what not Apr 13 10:11:44 hmm. i dont think so Apr 13 10:11:45 Asynchronous* >_> Apr 13 10:11:53 async network sockets were nio.2 Apr 13 10:11:59 its blocking for you :) Apr 13 10:12:27 ;_; Apr 13 10:12:41 otoh - and this is a stretch, if you need async networking you could try apache mina Apr 13 10:12:58 i thought that worked, and didn't depend on nio.2. not sure though Apr 13 10:17:02 Omnipotent http://netty.io/wiki/new-and-noteworthy-in-5.x.html Apr 13 10:17:43 ah Apr 13 10:18:06 i hear netty is nicer than mina; i hope you get it to work. if you can , please let me know - i would be interested in the results Apr 13 10:18:36 Okies Apr 13 10:19:24 problem is, android support v5 - thats still alpha or something Apr 13 10:34:57 not sure Apr 13 10:35:03 alpha? so you must be using it :P Apr 13 10:37:00 :) Apr 13 10:40:06 Hello everybody, I've got a problem with ant... everything works fine on "ant debug", but when i want to sign it with my key and "ant release", result it's a very buggy app... it crash on splashscreen (but i see splashscreen)... Any Idea how to trace the problem down? Apr 13 10:40:49 what crashes? Apr 13 10:40:54 i guess if ant release uses proguard, try disabling that Apr 13 10:42:29 g00s: yes, it uses proguard... let me disable that ... Apr 13 10:43:50 but yeah logcat would say, maybe a class is missing, etc Apr 13 10:46:05 g00s: disabling proguard solve that, but i want to obfuscate my code... Apr 13 10:46:22 you'll have to fix your proguard config ;) Apr 13 10:46:30 good luck :D Apr 13 10:46:38 g00s: okey, thanks :) Apr 13 10:46:59 bersam maybe look for a newer template in the sdk tools dirs Apr 13 10:47:17 or maybe you used some library which uses reflection, and need to add something for that Apr 13 10:49:21 g00s: :d thanks for your helps :) Apr 13 10:49:34 yw Apr 13 11:21:49 Do you need the tool call ant to build android app? Apr 13 11:22:32 just asking. Apr 13 11:23:24 no Apr 13 11:23:45 just make sure and thank you:D Apr 13 11:36:40 "depends". Apr 13 12:01:50 What is the best way to check if a user has a calendar event happening right now? Apr 13 12:04:46 hi guys i have a problem with my code.. http://paste.ubuntu.com/7244210/ crash my app Apr 13 12:05:26 thi sis log http://paste.ubuntu.com/7244219/ Apr 13 12:05:56 this is line 54 String Compagnia = new String(lista[count]); //COMPAGNIA AEREA Apr 13 12:06:12 if i replace count with 1, is correct... why??? Apr 13 12:06:16 count is 1 Apr 13 12:13:05 line 54 is Apr 13 12:13:06 imageView.setImageResource(drawable.logo_ryanair); Apr 13 12:13:08 in your paste Apr 13 12:13:49 You might want ++count; at the end of each block instead of before, but hard to guess from your code. Apr 13 12:14:17 what is the variable 'count' anyway Apr 13 12:14:33 everytime something calls getview the value increases Apr 13 12:15:23 roxdragon: can you explain the purpose of the variable 'count' Apr 13 12:15:43 The code never reads lista[0], so hope you didn't have anything important there. Apr 13 12:22:34 Does anyone know how to return the user's current calendar event? I am able to retrieve all of their calendar events, but I am only interested in their current event. I want my app to check if the user is busy from their calendar. If they are, then I want to silence their phone Apr 13 12:26:21 I have a problem closing my application, Apr 13 12:26:26 on finish() Apr 13 12:26:31 Hey guys...I need to ask if I have rooted my phone and then I do a factory reset...does this mean after the factory reset the phone is un-rooted? Apr 13 12:26:42 activity restarts alone Apr 13 12:27:15 Intent intent = new Intent(this, CerrarActivity.class); Apr 13 12:27:15 startActivity(intent); Apr 13 12:27:16 finish(); Apr 13 12:28:07 ReGiStRaS: ask in #android-root Apr 13 12:28:59 hi. anyone here knows an app that can display the IP's of the Android on startup or on wallpaper? Apr 13 12:29:05 binder.getService().stopForegroundCompat(R.string.app_name); Apr 13 12:29:05 server.clearConversations(); Apr 13 12:29:06 Database database = new Database(this); Apr 13 12:29:06 database.removeServerById(serverId); Apr 13 12:29:06 database.close(); Apr 13 12:29:06 finish(); Apr 13 12:29:06 Intent intent = new Intent(this, CerrarActivity.class); Apr 13 12:29:07 startActivity(intent); Apr 13 12:29:07 server.setMayReconnect(false); Apr 13 12:29:08 binder = null; Apr 13 12:29:08 finish(); Apr 13 12:30:09 dude, use pastebin Apr 13 12:30:24 in cerraractivity, the above activity starts Apr 13 12:30:48 I do not want to kill the process Apr 13 12:31:14 which is passed Apr 13 12:31:58 don't call finish then Apr 13 12:32:44 Guess he'll never learn to use pastebin, even tho he's told every single time he joins the channel Apr 13 12:33:09 SimonVT, ☺ Apr 13 12:33:38 Hello. I am using Intent serverIntent = new Intent(this, DeviceListActivity.class); startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);. However, what I would rather want is to switch to it (assuming it is already started) instead of starting it new Apr 13 12:33:53 How can I achieve that? Apr 13 12:34:48 Tobbi, see intent flags Apr 13 12:36:05 Tobbi, CLEAR_TOP is one that commonly used Apr 13 12:36:19 Okay, thanks. I will try that. Apr 13 12:40:39 Mavrik: Thank you very much. That worked like a charm"! Apr 13 13:05:04 I'd highly appreciate it if anyone would care to take a look at this issue which I'm totally stuck at: http://stackoverflow.com/questions/23031095/part-of-custom-android-view-for-ime-being-cut-off Apr 13 13:05:58 I have an issue the fragment's onCreateOptionsMenu not being called after a rotation on 4.3. Is this a known issue? Apr 13 13:14:28 there's no guarantee that will be called on orientaiton change Apr 13 13:14:46 documentation is clear about that: "This is only called once, the first time the options menu is displayed. To update the menu every time it is displayed, see onPrepareOptionsMenu(Menu)." Apr 13 13:17:53 yuizy: sorry... count is a variable....for increment Apr 13 13:18:21 i have an strings array and with count ....lista[count] Apr 13 13:19:34 yuizy: http://paste.ubuntu.com/7244551/ i want populate mu listview with it Apr 13 13:21:38 Hre-ask my question...for all new guys! Apr 13 13:21:45 hi guys i have a problem with my code.. http://paste.ubuntu.com/7244210/ crash my app Apr 13 13:21:50 thi sis log http://paste.ubuntu.com/7244219/ Apr 13 13:21:57 this is line 54 String Compagnia = new String(lista[count]); //COMPAGNIA AEREA Apr 13 13:22:17 if i replace count with 1, is correct... why??? Apr 13 13:23:22 variable count is a variable for increment index... this is my strings array lista[] Apr 13 13:23:30 http://paste.ubuntu.com/7244551/ Apr 13 13:24:41 So you keep incrementing count.. What if the user scrolls back up? Apr 13 13:25:48 You'll save yourself a lot of trouble you keep a List of items that each represent a row in the ListView Apr 13 13:26:15 uhm... how? Apr 13 13:26:40 can u make me an example please...please..? Apr 13 13:27:08 By creating a list and filling it with objects that hold all the data for a row Apr 13 13:27:16 Like every single listview tutorial out there does Apr 13 13:28:53 SimonVT: my list is created with: CustomList adapter = new CustomList(arrivi.this.getActivity(), lista); list=(ListView)arrivi.this.getActivity().findViewById(R.id.listView1); list.setAdapter(adapter); Apr 13 13:30:38 You're also not reusing views.. And you shouldn't keep the views as member variables Apr 13 13:34:12 the my experiment is: populate a listview... into 1st row there are 6 elements... Apr 13 13:34:27 2nd row other 6 elements Apr 13 13:34:48 etc... i have parsed a table with jsoup and i want populate this Apr 13 13:35:05 http://www.vogella.com/tutorials/AndroidListView/article.html#listadvanced_interactive Apr 13 13:40:27 someone here who has experience with libgps ? Apr 13 14:00:37 hello, I'm trying to save data from sensor into database via contentResolver. If do this only for one sensor my app works OK. But if I include data from tow different sensor and save data into separate tabel, my app becom very slowly. How can I solve this problem? Apr 13 14:05:34 hi, iam getting a Fatal signal 11 (SIGSEGV) when doing Looper.myLooper().quit(); on my Nexus5 on other devices it works as expected Apr 13 14:05:45 Actually that not having it called again would be fine, except that the fragment's menu entries are no longer there. Apr 13 14:05:45 any other way of stopping a looper`? Apr 13 14:07:31 guys, if( Compagnia[1].equals("RYANAIR")) ... dosen't work with array??? Apr 13 14:07:38 error nullPointer Apr 13 14:08:03 hello, I have a strange problem with an npe: I have an object (BluetoothGattCharacteristic) which is not null (assert (char != null)) but when I call a method on it, I get an NPE Apr 13 14:08:18 Strangerly the exception is not logged, I had to catch it manually Apr 13 14:10:53 clynamen stack trace? Apr 13 14:12:36 leslie: I printed it manually, it reach only my code: Apr 13 14:13:05 04-13 16:05:29.818: E/WatchyLogger(20113): com.example.jwatchy.WatchyBluetoothManager WatchyBluetoothManager.java 115 writeColor Apr 13 14:13:07 04-13 16:05:29.818: E/WatchyLogger(20113): com.example.jwatchy.NotificationListener NotificationListener.java 64 sendNotificationToWatch Apr 13 14:13:09 04-13 16:05:29.818: E/WatchyLogger(20113): com.example.jwatchy.NotificationListener NotificationListener.java 58 onNotificationPosted Apr 13 14:13:25 writeColor is the last function on the stack Apr 13 14:14:23 Are you sure it's not null? I dont think assertions are on by default. Apr 13 14:15:33 ah, well, let me check again Apr 13 14:20:01 leslie: yes, it's null. I didn't know about disabled assert Apr 13 14:20:41 Can you repeat that? My irc client just crashed Apr 13 14:20:45 leslie: Thank you, I was about going to look at the driver sourcecode Apr 13 14:20:51 leslie: it was null indeed Apr 13 14:20:56 Ahh Apr 13 14:21:08 leslie: and the assert was disabled, so I didn't notice Apr 13 14:21:53 Asserts are always off by default in java Apr 13 14:22:34 Kinda makes me wonder why they even exist Apr 13 14:23:22 leslie: seriously ? Strange I didn't found out about it earlier. I guess I used other stuff. Apr 13 14:25:21 i keep asserts on even in production code and use asserts as sanity checks so that beyond the assert the code is much simpler than otherwise. i code in C, but that's what i'd do in any language. Apr 13 14:25:53 That's how groovy uses them, trssnd Apr 13 14:26:11 ic Apr 13 14:26:34 For java i usually use Guava preconditions Apr 13 14:26:59 leslie: me too. Apr 13 14:31:12 anyone is expert for Sqlite here? Apr 13 14:31:16 can you help me please? Apr 13 14:31:47 yesÄ Apr 13 14:31:51 I can try Apr 13 14:32:25 I wonder how many apps implement NotificationListenerService using broadcasts Apr 13 14:32:41 if they're doing that, any other package can just piggyback on those broadcasts Apr 13 14:32:52 kind of nulls the whole tickbox being needed Apr 13 14:34:01 at least this example's doing just that http://www.javacodegeeks.com/2013/10/android-notificationlistenerservice-example.html Apr 13 14:37:07 i have a nullPointyer string Apr 13 14:39:01 What would be the correct way, MohammadAG? Apr 13 14:39:26 leslie at the very least, the broadcast should have a permission attached to it Apr 13 14:39:39 Ah, yeah. Apr 13 14:40:19 are PendingIntents persisted even if your app is killed? Apr 13 14:40:42 or would you have to set it up again Apr 13 14:48:43 I have a weird problem. Apr 13 14:49:13 My class implements Parceable and I write it to a Bundle when the screen orientation changes, and then read it back from the Bundle. Apr 13 14:49:42 But my CREATOR.createFromParcel code is never being run. Apr 13 14:49:49 Nor is the MyClass(Parcel in) constructor. Apr 13 14:50:01 The writeToParcel method *is* being called. Apr 13 14:50:03 But... Apr 13 14:50:13 Everything works even if my writeToParcel method does nothing., Apr 13 14:50:18 What magic is this?! Apr 13 14:50:31 Maybe it's serialised? Apr 13 14:50:52 Okay, but I didn't implement Serializable. Apr 13 14:50:58 Hm Apr 13 14:51:09 It's so weird. My reading code is not being called. Apr 13 14:51:19 But if I comment everything out it still persist's my class's data. Apr 13 14:51:19 You just get the same object instance after the orientation change Apr 13 14:51:59 If it's passed completely back to the framework (e.g. if the process is reclaimed), then it'll parcel/un-parcel it properly Apr 13 14:52:17 SimonVT: But how? I have commented out the "dest.writeWhatever();" code. Apr 13 14:52:24 In writeToParcel. Apr 13 14:52:52 .. how? Apr 13 14:52:57 I also commented out the CREATOR thing. Apr 13 14:53:03 It's the same instance Apr 13 14:53:09 Basically, all my class does is (claim to) implement Parceable. Apr 13 14:53:16 And the data is persisted. Apr 13 14:53:19 Passed from one activity to another within the same process Apr 13 14:53:41 I'm using this: title = savedInstanceState.getParcelable("title"); Apr 13 14:53:50 That seems to be picking up the same instance, as you say. Apr 13 14:54:22 I don't get how it's persisting, though. Apr 13 14:54:30 My writeToParcel code is doing *nothing* right now. Apr 13 14:54:53 That'll break if you ever try to pass it to another process Apr 13 14:54:58 "outState.putParcelable("title", title);" is used in onSaveInstanceState. Apr 13 14:56:06 In fact, my writeToParcel method is being ignored! Apr 13 14:56:19 It's the same instance.. Apr 13 14:56:20 If I write an arbitrary string, it never gets read again. Apr 13 14:56:25 I don't get it. lol Apr 13 14:56:38 I'm using Bundle.getParcelable. Apr 13 14:56:45 How is that returning the same instance? Apr 13 14:57:00 It's using serialization or something? Apr 13 14:57:07 Well, putParcelable puts it in a map or something Apr 13 14:57:11 getParcelable gets it from that map Apr 13 14:57:30 Hmm, okay. Apr 13 14:57:38 The second problem is that my reading code is just not running. Apr 13 14:57:42 I used this: http://developer.android.com/reference/android/os/Parcelable.html Apr 13 14:57:54 Implemented that perfectly. createFromParcel never gets called. Apr 13 14:58:03 And therefore the constructor never gets called. Apr 13 14:58:05 .. because it's the same instance Apr 13 14:58:08 Why would it need to run it Apr 13 14:58:55 You only call the constructor once per instance Apr 13 15:00:01 Is this documented anywhere? Apr 13 15:00:10 I would expect it to run the constructor every time the screen orientation changes. Apr 13 15:00:32 I should be able to write stuff in writeToParcel and have that stuff read on screen-orientation change. Apr 13 15:00:37 That would be wasteful Apr 13 15:01:15 No need to gc old instance and create new identical instances Apr 13 15:01:47 My writeToParcel is getting called, though. Apr 13 15:01:48 "Gradle invocation completed successfully in 30 sec" - and this was only the "Run app" command with a "Hello world" sample. Is this command supposed to be slow or it's just my garbage computer? Apr 13 15:01:52 And it's simply being ignored, in effect. Apr 13 15:02:13 WSergio: There's a way to speed up Gradle. Apr 13 15:02:16 It's horribly slow by default. Apr 13 15:02:26 It's googleable with simple terms. Apr 13 15:02:37 TacticalJoke, the "org.gradle.daemon=true" trick? Apr 13 15:02:40 Yeah. Apr 13 15:03:13 Well, this 30 sec is after the "optimization".. Apr 13 15:03:24 I expect the writeToParcel call is in case the original object gets GCed or something, TacticalJoke Apr 13 15:03:52 leslie: I see. Apr 13 15:03:57 This is all weird and unpredictable. Apr 13 15:04:11 The end result is that I can't test that my code actually works. lol Apr 13 15:04:36 In dev options you can turn off background processes, that should test it Apr 13 15:04:44 I see. Apr 13 15:06:40 Why do I see a default loading pregressbar with a Listfragment? Apr 13 15:06:48 I might do it manually. Apr 13 15:06:51 Just give the class the Bundle. Apr 13 15:06:53 Way simpler. Apr 13 15:07:29 Because ListFragment shows a progressbar by default Apr 13 15:08:10 Until you give it an adapter i think. Apr 13 15:08:30 SimonVT: And the real question is, how can I set an error message to this Empty text? (when my internet fetch doesn’t return anything) Apr 13 15:08:59 leslie: Yes, I did experiement with it. It disappears when I set an adapter Apr 13 15:09:12 With setEmptyText Apr 13 15:10:07 SimonVT: Didn’t know ListFragment had such a method. Let me try. Thank you. Apr 13 15:11:05 I'm confused. Even when my class doesn't implement Parcelable, I can still say "myObject = foo.getParcelable(bar);". Apr 13 15:13:06 Why is that even compiling? Apr 13 15:13:42 is there a better way to handle re-creation of PendingIntents when the app has been force closed/killed? besides checking if the PendingIntent exists every time onCreate is called Apr 13 15:14:04 This compiles fine: "Object o = savedInstanceState.getParcelable("test");" Apr 13 15:15:42 why wouldn't it? Apr 13 15:16:31 I guess it works because of type erasure. Apr 13 15:19:36 It's just casting to the type requested, TacticalJoke. Can't pick that up at compile time Apr 13 15:24:14 why does android.jar (platforms/android-19) contain YouTube logo? Apr 13 15:27:12 shvelo: where else would it be :) Apr 13 15:31:08 GMS maybe, funkbox Apr 13 15:36:21 Can anyone help me with reading contact info? I want to read all of the contacts, but only display the group that they belong to. I was able to get it working for the contact names, but I cannot get it working for groups. I am only able to return the group names, not the group name corresponding to the contacts. Apr 13 15:36:25 Here is my code: http://codeshare.io/19hW6 Apr 13 16:08:18 help plz! http://stackoverflow.com/questions/23043698/managing-accessing-google-contacts-via-app-engine-and-android-app Apr 13 16:33:11 howdy strangers Apr 13 16:34:21 anyone has any ideas about this one? http://stackoverflow.com/questions/23042803/android-library-aar-depending-on-another-library Apr 13 16:35:24 if an aar depends upon another library does that mean it needs to be individually compiled into the target app? can't the aar import it automatically? Apr 13 16:35:51 Is there something like onActivityResult except that it's now working the other way round, so I want to pass data to an activity after it started instead of after it returned. Apr 13 16:42:45 Oh this is supposed to be expected behavior https://groups.google.com/forum/#!topic/adt-dev/0ZAP8AVUZVw Apr 13 16:43:26 i must use jars if i am going to export them in my aar artifact which i am not going to upload to maven central Apr 13 17:05:33 Hello everyone Apr 13 17:06:14 http://pastebin.com/N1DTurkw could anyone take a look? Apr 13 17:06:27 whenever I add onclicklistener, the dialog cannot load Apr 13 17:06:36 even though, there's no error in the code Apr 13 17:08:53 I'm going to have a notification in my app that I want to update every hour. What's the best way to do that? Apr 13 17:09:17 Hey guys...I think my Android is bricked. Apr 13 17:09:33 Up or Down button + Volume no power Apr 13 17:09:40 battery was at 90% Apr 13 17:25:11 mohit u r a jarhead Apr 13 17:27:43 thank you nick9998 Apr 13 17:28:58 np Apr 13 17:34:59 I have just recently started making android apps. After creating a project, I closed out windows. How do I reopen everything? Apr 13 17:37:55 Is there a way to acquire an application-wide wake lock? Apr 13 17:38:11 i am using the preconfigured eclipse that came from the main website Apr 13 17:42:32 i thought this would be a simple question any in this channel knows the answer to Apr 13 17:47:17 Tobbi why would you need to? Apr 13 17:50:31 leslie: Demonstration purposes. I am gonna show the application on a fair kind of thing. Apr 13 17:50:38 but I think I found my answer already... Apr 13 17:57:22 Can I at least get advice for how to search the internet for this answer if I can't get the answer? Apr 13 18:00:04 hello :) I am having some trouble trying to understand the NSD example source code. Can anyone help me? Thank you Apr 13 18:06:46 Ryu_Fitzgerald: you open the project file Apr 13 18:07:02 and on the left you'll see the files in the project, and you can double click them to open them Apr 13 18:08:44 I don't know how to open a project file on an linux operating system Apr 13 18:09:02 I can't find where it is located Apr 13 18:17:18 can you see a project list on the left, Ryu_Fitzgerald ? Apr 13 18:17:50 hmm Apr 13 18:18:06 Ryu_Fitzgerald: check for ~/workspace dir Apr 13 18:18:06 Is there any IDE Extension that works well in Visual Studio? Apr 13 18:18:22 i hate eclipse with a passion Apr 13 18:18:24 and then there should be a dir in there with the name of the project Apr 13 18:18:58 for android dev, komugi ? Apr 13 18:19:02 yeah Apr 13 18:19:25 monodroid is pretty good if you want to use c# but it ain't free Apr 13 18:20:54 I'll take a look, thanks Apr 13 18:21:17 after trying your reset idea, i can see the project explorer on the left but the interface for working on the layout has not been restored Apr 13 18:21:58 komugi there's also intellij/android studio Apr 13 18:22:55 Ryu_Fitzgerald, use the project explorer to find the file you want to edit Apr 13 18:22:57 Android Studio works with Visual Studio? Apr 13 18:23:11 no, I mean, as an alternative to eclipse, komugi Apr 13 18:23:41 ahh ok, I thought not Apr 13 18:24:06 there are quite litterally over a 100 files. Is there anyway better then randomly clicking them one by on until i find what i want? Apr 13 18:24:43 there's probably some shortcut where you can type a filename Apr 13 18:25:02 i don't know the name Apr 13 18:25:10 Ryu_Fitzgerald: yeah read a tutorial and learn which files are important Apr 13 18:25:21 leslie: thanks for the info :) Apr 13 18:26:05 Ryu_Fitzgerald: you need MainActivity.java main.xml and manifest.xml Apr 13 18:26:17 to start Apr 13 18:30:14 Is it normal for MODE_WORLD_READABLE to not work on a Samsung Galaxy SIII? Apr 13 18:34:49 it found nothing name like that in my project Apr 13 18:35:41 Ryu_Fitzgerald: did you make the project ? if you named it something, it will be something like that Apr 13 18:36:05 the project was just created but no coding or editing has been done Apr 13 18:38:02 ok well, take your time observing things Apr 13 18:38:46 you got a main java file in the src/com/.../... dir Apr 13 18:40:04 maybe its your projectName.java Apr 13 18:40:27 i see that file in the folder Apr 13 18:40:36 it has a activity that extends Activity Apr 13 18:40:45 i guess that means the search engien in eclipse is useless :( Apr 13 18:42:03 yeah and so is the layout editor Apr 13 18:42:12 do your layouts in xml Apr 13 18:42:55 I still want to learn how to use it first Apr 13 18:43:35 ok but keep your eye on the code Apr 13 18:43:41 I found that file, you were making some point about it? Apr 13 18:46:35 hello all Apr 13 18:49:51 Hi guys Apr 13 18:50:06 Does Odin recovery works ONLY on Samsung Phones? Apr 13 18:50:29 ReGiStRaS see topic please Apr 13 18:50:39 I am trying to add the BaseGameUtils project to my already existing app, but I am not able to add the folder as a dependency in my build.gradle Apr 13 18:50:45 anybody has an idea? Apr 13 18:50:47 sry... Apr 13 18:52:32 jrm2k6 is BaseGameUtils is a separate project, use uploadArchive from maven-plugin to put its aar in your local .m2/repository, and then depend on that from your project. you'll have to but mavenLocal() in your dependencies Apr 13 18:52:55 basically i am trying to use this https://github.com/playgameservices/android-samples/tree/master/EndlessTunnel Apr 13 18:53:01 you coul dbuild it separately and put the aar in your projects's libs/ folder too Apr 13 18:53:06 the BaseGameUtils from this Apr 13 18:53:56 actually in this project they put the BaseGameUtils fodler at the same level as the other app Apr 13 18:53:58 well, looks quite involved, tons of instructions there Apr 13 18:54:02 i havent tried that yet Apr 13 18:54:06 uh Apr 13 18:54:15 why the fuck to i bother Apr 13 18:55:01 but thanks g00s Apr 13 18:55:08 i feel like your way is much cleaner Apr 13 18:55:14 than just putting stuff around. Apr 13 18:55:19 Hello Devs... Apr 13 18:55:34 i didnt mean to ignore your advice. Apr 13 18:55:46 any1 got any experience with Contacts API? http://stackoverflow.com/questions/23043698/managing-accessing-google-contacts-via-app-engine-and-android-app plz help Apr 13 18:59:56 What's a good alternative to the ugly "((AppName) getActivity().getApplication()).getFoo()" thing for singleton-like stuff? Apr 13 19:00:01 (Without actually using a singleton.) Apr 13 19:00:20 TacticalJoke dont use getApplication ? Apr 13 19:00:28 just make a singleton Apr 13 19:00:59 How do I get a Context with a singleton? Apr 13 19:01:13 MySingleton.getInstance(Context context) { } Apr 13 19:01:41 gotta pass in a context in case it hasn't been made. the singleton will then say myContext = context.getApplicationContext() Apr 13 19:01:55 so you don't leak your UI context Apr 13 19:02:02 (activity context) Apr 13 19:03:24 how do i restore the gui to make the android app interface? Apr 13 19:03:37 I see. Apr 13 19:09:47 Ryu_Fitzgerald: What do you mean? Apr 13 19:12:10 When you first make an android app, it set up the enviroment for you so you can easily edit the apps interface by adding text boxes and such. I have messed that up and don't know how to get that to show again Apr 13 19:12:48 codeguru: that is my roblem Apr 13 19:12:52 problem Apr 13 19:13:20 Ryu_Fitzgerald: Are you using Eclipse? Apr 13 19:13:42 yes, am using the preconfigured eclispe from the android site Apr 13 19:14:07 i published my app a few days ago, but it doesnt show up when i search it by name, only when i search it by publisher, why is that? Apr 13 19:14:07 Try opening the main_activity.xml file. Apr 13 19:14:54 RetroDude: Google has a personal vendetta against you. Apr 13 19:16:10 apparently, since no one is ever going to be able to find my app unless i send them the direct link. Sucks. Apr 13 19:16:32 Anybody using Google play services? I have an issue with GameRequest not being found... Apr 13 19:17:06 nobody uses google play services unfortunaley. Apr 13 19:18:31 oh Apr 13 19:18:36 codeguru: found its activity_main.xml not mainactivity.xml Apr 13 19:18:42 RetroDude: why? Apr 13 19:18:44 I found it thanks Apr 13 19:19:17 jrm2k6: I think he is messing with you. :P Apr 13 19:20:22 Fenny: :( So naive. Apr 13 19:22:08 Ok so my real question is why GameRequests is not found when trying to include BaseGameUtils project as show here https://github.com/playgameservices/android-samples/tree/master/EndlessTunnel Apr 13 19:23:17 Next question: I am writing an attachment to a temp file and then try to attach it to Gmail which fails. Any idea what's wrong? Is it not possible to attach temporarily created files in Gmail? Apr 13 19:24:23 did you modify your manifest to include google play services? Apr 13 19:25:34 Tobbi, does GMail app have access to that file? Apr 13 19:26:29 Mavrik: It's in the application cache dir, and throwing permission denied. So, I'd assume no. Where do I place a file so that Gmail can read it and it works across devices? Apr 13 19:26:47 Tobbi, use a content provider and send an uri Apr 13 19:27:35 http://developer.android.com/training/secure-file-sharing/setup-sharing.html Apr 13 19:27:41 sadly it's not really a oneliner. Apr 13 19:30:06 Mavrik: What API level is ContentProvider? Apr 13 19:30:13 1? Apr 13 19:30:31 Tobbi, there's a method in support-v4 to make that easier Apr 13 19:30:38 Okay. let's see... Apr 13 19:30:54 Tobbi, http://developer.android.com/reference/android/support/v4/content/FileProvider.html Apr 13 20:08:46 Mavrik: Can you help me once more? getURIForFile() throws a NULL Pointer exception....and I don't know what exactly is wrong. Apr 13 20:38:50 hi. which is the easiest way to communicate multiple devices in the same network? I am trying to modify the nsdchat sample app to work in more tha 3 devices but it is a bit buggy. Can anyone help me out? Appreciated Apr 13 20:43:40 Ok, I have my main activity... and I want to use an asynctask to set up a DefaultHttpClient and return it so I can use it elsewhere... am I going about this the wrong way ? Apr 13 20:44:44 DefaultHttpClient httpclient = new Login("MyUser", "MyPass").execute(); Apr 13 20:44:51 with class Login extends AsyncTask being my task Apr 13 20:45:00 atheodor i guess you want something like the iOS Multipeer Connectivity framework but for Android; not sure whats out there Apr 13 20:45:49 Help, I accidentally my whole SD card! Apr 13 20:45:57 I'm having trouble returning the DefaultHttpClient though... Apr 13 20:46:30 atheodor or maybe something like http://www.jgroups.org/ Apr 13 20:46:40 g00s i have even tried UDP messengers. Actually I have developed a multiclient server in java, but i can't make it work in Android Apr 13 20:46:55 hm Apr 13 20:48:01 i don't need a real messenger. I am not developing a chat application. I just need to be able to exchange 3 or 4 messages between server and each client Apr 13 20:48:16 atheodor mqtt work ? Apr 13 20:48:32 use mosquitto; paho java client? i know that works Apr 13 20:48:50 but the plan socket stuff should work Apr 13 20:49:31 hmm Apr 13 20:49:41 can i pm you and explain you the app im working on? Apr 13 20:50:08 atheodor i probably don't have time right now, sorry :( Apr 13 20:50:15 ok Apr 13 20:50:30 i will check out the frameworks you suggested. thank you a lot for your time :) Apr 13 20:54:04 I`ve just put together some of my first lines of code and for some reason, when it boots up it crashes! Am I missing something obvious: Apr 13 20:54:06 http://pastie.org/9078171 Apr 13 20:54:31 Three buttons, click one and the text says red, click the other, text changes to say Green and the third amber. Apr 13 20:55:02 fatal exception: MAIN Apr 13 20:55:28 Raynerd: you are going to need to post the stack trace, lol. Apr 13 20:55:43 sorry, I`m new to this... and new to coding Apr 13 20:55:53 look for the big exception list in the logcat window Apr 13 20:56:49 lots of red :-S Apr 13 20:58:07 null pointer activity Apr 13 20:58:47 How do I post the stack trace Fenny Apr 13 21:02:17 This is what I'm trying to do (unsuccessfully) Apr 13 21:02:19 http://pastie.org/9078187 Apr 13 21:02:51 DefaultHttpClient httpclient = new Login("MyUser", "MyPass").execute(); Apr 13 21:02:51 do you have the internet permission? Apr 13 21:03:01 I do Apr 13 21:03:24 Where is the null pointer? Apr 13 21:03:26 The code works, but I'm having issues returning the httpclient Apr 13 21:04:07 * the code works if I spaghetti code it. I'm trying to break out the Login part into it's own function Apr 13 21:04:22 Raynerd: paste it into pastebin. or similar. Apr 13 21:04:36 No, sorry, where do I find/copy from? Apr 13 21:04:41 I can`t see anything to copy! Apr 13 21:04:57 "adb logcat" Apr 13 21:05:22 you can run that from the command line or get it in eclipse while debugging. Apr 13 21:05:46 In eclipse it will be filtered. Apr 13 21:06:06 * Fenny eats bagels. Apr 13 21:08:35 If I define it first... DefaultHttpClient = httpclient; and then try to execute I get Apr 13 21:08:36 Type mismatch: cannot convert from AsyncTask to DefaultHttpClient Apr 13 21:09:06 which I guess I'm not understanding... Would my return not be a DefaultHttpClient type ? Apr 13 21:09:41 what return? Apr 13 21:09:54 "DefaultHttpClient = httpclient;" this sounds very wrong Apr 13 21:10:38 Fenny: http://pastie.org/9078197 Apr 13 21:11:03 The return fro mthe class? Apr 13 21:11:03 class Login extends AsyncTask Apr 13 21:11:21 return from the class? what does that mean Apr 13 21:11:41 a class does not return anything Apr 13 21:12:08 Full full screenactivity.java http://pastie.org/9078199 Apr 13 21:12:26 Am I missing something fundamental here? When I fire off the .execute, I should get a return when it's done correct ? Apr 13 21:12:57 i have no idea what you mean by 'return' Apr 13 21:14:05 class Login extends AsyncTask should be ? Apr 13 21:14:25 result Apr 13 21:14:27 yes Apr 13 21:15:17 So when it runs http://pastie.org/9078187 it should pass back the httpclient Apr 13 21:15:38 did you just skip all the documentation? Apr 13 21:16:01 asynctask is _asynchronous_ Apr 13 21:16:18 there's no way it could work like that Apr 13 21:16:27 please read the doc Apr 13 21:16:29 http://developer.android.com/reference/android/os/AsyncTask.html Apr 13 21:16:38 your implementation of doInBackground will be called with the parameters, your implementation of onProgress will be called with progress, your implementation of onPostExecute will be called with result Apr 13 21:19:05 Am I going about it all wrong? I thought the point of Async task was so my main activity can call the login, and continue on without hanging while it does the login... Apr 13 21:19:28 yes Apr 13 21:19:55 exactly Apr 13 21:20:21 nothing i said denies that Apr 13 21:21:09 did you read the link i pasted Apr 13 21:21:57 please read at least the section ' The 4 steps ' before you ask anything else :) Apr 13 21:22:00 yes, I've read that page several times trying to understand it Apr 13 21:22:30 it doesn't look like you've read it :| Apr 13 21:23:09 So I need to set my httpclient variable in the asynctask doinbackground, and then return it in onpostexecute ? Apr 13 21:23:18 wrap the oncreate in a try block Raynerd Apr 13 21:23:30 it is erroring somewhere in there. Apr 13 21:24:20 try block? Apr 13 21:24:33 4. Apr 13 21:24:33 onPostExecute(Result), invoked on the UI thread after the background computation finishes. The result of the background computation is passed to this step as a parameter Apr 13 21:24:40 did you read that Niblek Apr 13 21:25:01 I appreciate you looking by the way! Apr 13 21:27:22 So as it stands, my doInBackground is trying to return my httpclient to the onPostExecute, which isn't in the code, which is why I'm getting nothing Apr 13 21:27:55 yeah Apr 13 21:28:40 try { yourcode } catch (Exception ex) { //print the stacktrace here ) Apr 13 21:28:45 Raynerd: ^^ Apr 13 21:28:51 Niblek: also "int a = calculateSomethingAsynchronously;" doesn't make much sense in java Apr 13 21:29:17 *coughs loudly* rxjava Apr 13 21:29:26 I`m googling now.. I`m not clear what to put in the catch block and what partd of the code to actually stick in the try block Apr 13 21:29:49 it's something like ex.printStackTrace() Apr 13 21:30:00 But I think that might not be the actual name. Apr 13 21:30:08 hehe Apr 13 21:32:43 Hi birbeck o/ Apr 13 21:32:44 "(00:53:08) birbeck: wget: here is an example of one of my DAO's... http://pastebin.com/R2ipYdP0" Apr 13 21:32:44 I haven't unfortunately saved your paste. It has expired the day after you posted it. Can you post your DAO example again. I'll save it this time ;-) Apr 13 21:46:12 yuizy I'm still missing something here Apr 13 21:48:07 My doinbackground return httpclient; should be sending that to onPostExecute, but how do I get that back to my main activity ? Apr 13 21:49:22 http://stackoverflow.com/questions/12575068/how-to-get-the-result-of-onpostexecute-to-main-activity-because-asynctask-is-a Apr 13 21:49:30 lots of options Apr 13 21:55:11 yuizy, can you recommend a good book for learning all of this? I have 10+ years of experience coding, but mostly with scripting languages (VBScript, Perl, PHP, ASP etc.) I think that's one of the resons I'm getting confused on a lot of things. Apr 13 21:56:02 yeah, learning the basics of java is definitely a requirement Apr 13 21:56:14 don't know a book though Apr 13 21:56:30 oracle site has some good reading Apr 13 22:15:31 I'm writing two different applications that use the same framework. when I install one with adt, it always installs over the other Apr 13 22:16:00 how do i tell the sdk that they're two separate programs that should get two separate installs? Apr 13 22:16:34 give them different package names Apr 13 22:16:42 they have different package names already Apr 13 22:18:02 ie different .apk names, that's what you mean right? Apr 13 22:18:08 no Apr 13 22:18:36 they have different project names in the AndroidManifest.xml Apr 13 22:18:53 4 Apr 13 22:18:57 oops, sorry Apr 13 22:19:34 ah, i think you mean the package="yadeya" part of the manifest? Apr 13 22:20:28 that did it! thanks :) Apr 13 22:20:34 ;) Apr 13 22:26:47 birbeck: Are you there? You can still send me your DAO example via PM if you want. Leaving the computer turned on. Apr 13 22:33:06 Dear #android-dev Apr 13 22:33:21 sounds like a break-up message :( Apr 13 22:34:00 Quick question: How do I get rid of the submenu for MenuItem (in the ActionBar)? I'm leaving the android:icon attribute unset, but it seems to default to the actionbar icon. :'( Apr 13 22:34:08 bankai_au: On some level, it is. :( Apr 13 23:09:24 time for some SPACE 1999 Apr 13 23:15:09 i'm more of a babylon-5 guy myself Apr 13 23:15:22 when's babylon-6 coming out anyway Apr 13 23:15:45 babylon got killed because of clashes with the network Apr 13 23:15:59 or rather, Babylon's continuation Apr 13 23:16:31 not sure when those rooster heads are back Apr 13 23:16:51 or what was it they called them, plucked chicken heads Apr 13 23:21:24 it had pretty good Amiga 4000 graphics for a cheap budget show Apr 13 23:22:56 yea i'd say Apr 13 23:26:31 I don't think they had 4000 when they started working on it :P Apr 13 23:26:41 but iirc they used VideoToaster with LightWave Apr 13 23:32:41 nick9998, I've almost finished my b5 runs of this year ;) Apr 13 23:32:50 seen the show like 20+ times probably Apr 13 23:33:29 also frankly, crusade deserved what it got Apr 13 23:37:40 Zharf: nice, i need to watch it again Apr 13 23:38:06 is it just me or do Gradle builds take longer from command line? Apr 13 23:39:04 nick9998, there's been rumours about hd versions at some point in the future Apr 13 23:39:21 would be awesome Apr 13 23:39:33 but they'd have to create all the CGI from scratch pretty much Apr 13 23:39:50 since it was rendered in poor 4:3 resolution Apr 13 23:40:19 I don't get it 16:9 is 4:3 isn't it ? Apr 13 23:40:53 if you reduce it Apr 13 23:41:16 off-topic, but is anyone else irratated by Mike Change from YouTube? Dude is spamming the hell out of every damn ad. Apr 13 23:41:34 shmooz: 9/4 != 3 Apr 13 23:41:56 shmooz: I'm trying to figure out if you're joking Apr 13 23:42:09 lol oops Apr 13 23:42:12 just brainfarted Apr 13 23:42:48 PeterJobe, no clue what you're talking about Apr 13 23:42:57 for a second I thought it was the same ratio, see I saw 16 as 4 and 9 as 3, duh Apr 13 23:43:35 shmooz, -.- Apr 13 23:43:53 hehe s'all good Apr 13 23:47:25 it turns out we need all that cutting edge computing power for the upcoming 4k revolution Apr 13 23:49:31 and new internet connections Apr 13 23:49:53 yeah to stream in 4k, except isp's have to stop capping Apr 13 23:49:58 or throttling Apr 14 00:00:59 shvelo: They do unless you use the daemon Apr 14 00:04:42 hi guys Apr 14 00:04:50 how to invert item printed in listview? Apr 14 00:17:57 @JakeWharton: do you have an example somewhere of using retrofit with tape? Apr 14 00:18:17 wondering how to queue up the requests Apr 14 00:24:04 birbeck: queue up objects which inject the service interface and make a call with the serialized data Apr 14 00:26:07 i dont get it... so my beans would inject the service? Apr 14 00:26:45 that sounds a little odd Apr 14 01:48:38 any recommendations on proper channel for question about BSD vs Apache licensing. trying to understand the key difference. Apr 14 01:48:54 Hi all. Quick general question: Is it possible to check/cast the loading of HTML5 streaming media and or the position of the file's playback (knowing at what time the file is playing) when loading that streaming media in a webview? Apr 14 01:53:33 thumbee: have you searched the internet? Apr 14 02:00:32 godlessfather: yes i have. for example this explains it.. kindda. but trying to clarify a point which im not sure about http://stackoverflow.com/questions/40100/apache-license-vs-bsd-vs-mit Apr 14 02:01:36 birbeck: they're tasks, not POJOs Apr 14 02:05:34 How would I put a navigation drawer ontop of a map Apr 14 02:05:37 like google maps Apr 14 02:17:11 what 3rd party emulator do you guys use? Apr 14 02:17:21 ProjectBarks, the same as any other view/fragment/activity Apr 14 02:17:31 ProjectBarks, use drawerlayout, problem solved Apr 14 02:17:49 is there an Android app that just demonstrates all the UI widgets, potentially with theming? Apr 14 02:17:51 Hi, how could I prevent Jelly Bean (4.2.2) to suspend device? Set screen_off_timeout to -1 just cause to suspend right after boot. Apr 14 02:17:59 pfn, I am getting this error on startup Apr 14 02:18:00 http://pastebin.com/SejrZjcy Apr 14 02:18:10 then fix the error Apr 14 02:18:14 hey y'all know about f-droid.org? Apr 14 02:18:19 whats ur opinion Apr 14 02:18:38 Basically something like http://nativeformelements.com/, but for the Android widgets and as an Android app Apr 14 02:18:40 http://pastebin.com/MQdBHnL5 here is the code pfn . I dont understand the error Apr 14 02:18:48 ProjectBarks, you should learn some java first Apr 14 02:19:00 I know what a nullpointerexception is Apr 14 02:19:01 ProjectBarks, it's a null pointer exception, the most basic of errors Apr 14 02:19:09 but I am not sure whats causing it Apr 14 02:19:29 I moved the map layout to a fragment Apr 14 02:19:34 and it causes this error now Apr 14 02:19:37 simple, the lifecycle does not work as you expect Apr 14 02:20:01 id.map is never initialized anywhere Apr 14 02:20:23 It initializes when its not in a fragment Apr 14 02:20:39 what causes R.id.map to come into existence Apr 14 02:20:42 fix that Apr 14 02:20:58 Thats my issue. Apr 14 02:21:16 I am not sure whats wrong here. Apr 14 02:21:18 well, you can't findFragmentById if you never added it to begin with Apr 14 02:21:41 problem solved Apr 14 02:21:58 The fragment is in fragment_main.xml Apr 14 02:22:03 it does exist Apr 14 02:22:35 then you're looking for it too early Apr 14 02:22:53 So should I move it into handler Apr 14 02:24:32 pfn, I movied it into Handler() and I still get a nullpointer exception Apr 14 02:25:29 think before doing Apr 14 02:26:24 Well I know the actionbar gets initalized by the time I ran my map function and if I know my order of operation correctly the fragment should be initalized by then Apr 14 02:29:04 :T Apr 14 02:29:17 pfn, Am I missing something very obvious Apr 14 02:33:28 I have no idea, I still don't know what you're doing, but onCreate is the wrong place to access your fragment Apr 14 02:35:44 pfn, Here. I will link you the code Apr 14 02:36:10 No time for that Apr 14 02:36:15 * pfn & Apr 14 02:36:17 http://pastebin.com/gTzkGNrV Apr 14 02:36:57 that was the code. here is the eror http://pastebin.com/Bw0yptR6 Apr 14 02:37:05 *error Apr 14 02:37:30 * Fenny | Apr 14 02:39:59 Apr 14 02:40:01 ACTION  Apr 14 02:42:03 pfn, I am honestly stumpted. Can you please help me out. Apr 14 02:52:07 ProjectBarks: with what? Apr 14 02:52:26 My fragment view wasnt loading its views Apr 14 02:52:38 like findViewById() would return null Apr 14 02:53:11 in my situation its ok becuase I realized the navigation panel isnt needed as a global navigation panel Apr 14 02:53:26 so I just merged everything into activity_main.xml Apr 14 02:56:01 Thanks for offering to help Errgnomeous Apr 14 02:58:25 I've got a bunch of ImageButtons with pressed and enabled images Apr 14 02:58:48 and they seem to work pretty much as expected.. except that the last button clicked gets a blue highlight that doesn't go away Apr 14 02:59:56 any idea on how to stop that? **** ENDING LOGGING AT Mon Apr 14 03:00:00 2014