**** BEGIN LOGGING AT Sun Jan 05 02:59:58 2014 Jan 05 03:01:25 is gcm not google cloud messaging for android? Jan 05 03:01:41 it is Jan 05 03:01:56 in the sdk manager it says it's deprecated Jan 05 03:03:04 It's part of play services Jan 05 03:03:22 ah Jan 05 03:07:16 Is any of these constructors better than another? Jan 05 03:07:17 public MyManager(Context context) { Jan 05 03:07:17 mContext = (Activity) context; Jan 05 03:07:17 } Jan 05 03:07:17 public MyManager(Activity context) { Jan 05 03:07:17 mContext = context; Jan 05 03:07:17 } Jan 05 03:08:00 is mContext actually an Activity? Jan 05 03:08:04 that's really confusing Jan 05 03:08:09 mContext is a context Jan 05 03:08:17 why are you casting it to an Activity then Jan 05 03:08:22 Uhm... Jan 05 03:08:26 anyway an Activity is a Context so one of those is redundant Jan 05 03:09:02 Because when I wasn't, my Activity that I was trying to use this MyManager.java constructor wasn't working. Jan 05 03:09:15 Told me to create a new constructor to take an activity Jan 05 03:09:30 that's… very strange Jan 05 03:09:40 you should be able to pass an Activity anywhere a Context is expected Jan 05 03:10:11 If your class needs an Activity, make the constructor take an Activity Jan 05 03:10:39 MyManager class needs a context. Jan 05 03:11:18 yeah Jan 05 03:11:29 so you're saying you had a constructor taking a context, and you passed an activity, and it didn't compile? Jan 05 03:11:31 Then why cast it to an Activity Jan 05 03:11:37 that's what I'm having trouble believing Jan 05 03:11:42 Hmm… I think eclipse was giving me an error because it was too slow to update. Jan 05 03:11:50 It seems to be fine now. Jan 05 03:11:59 it does that sometimes Jan 05 03:11:59 Phew. Thought I was going crazy. Jan 05 03:12:19 btw, if you cast a context to an activity I am pretty sure you will get a ClassCastException Jan 05 03:12:30 that is, if it was not really an activity Jan 05 03:16:10 oh dear Jan 05 03:16:17 I saved an image from my app, and viewing it crashes the Gallery Jan 05 03:19:44 pro tip: don't save an image with orientation greater than 360! Jan 05 03:19:52 this seems like a bug I should report Jan 05 03:21:24 lol yeah Jan 05 03:21:42 I mean, it's my fault Jan 05 03:21:46 but crashes are bad Jan 05 03:25:43 https://code.google.com/p/android/issues/detail?id=64431&thanks=64431&ts=1388892298 Jan 05 03:25:50 durka42: if it crashes its ALWAYS dev fault lol Jan 05 03:26:01 even if you had to do stupid stuff to make it crash Jan 05 03:26:03 but I caused a crash in someone else's app! Jan 05 03:26:15 yeah Jan 05 03:26:20 and gallery should be smart enough to do "orientation % 360" anyway Jan 05 03:26:26 indeed Jan 05 03:32:12 in conclucion, as a roboticist: I hate angles Jan 05 03:37:46 :P Jan 05 03:46:20 I'm getting java.lang.VerifyError: com/topcontotalcare/topconnews/utility/AuthenticationUtility where I'm calling a static method, attemptAuth Jan 05 03:46:36 I'm not sure how to debug, as it shows the right class path and that method definitely exists. Jan 05 03:47:28 The symbols link correctly aswell Jan 05 03:47:57 Korvin: look in logcat when the application is installed Jan 05 03:48:11 you'll likely see some messages from dalvik giving more info about the verification error Jan 05 03:49:39 thanks JesusFreke Jan 05 04:14:33 eclipse: "we're still confusing developers in wonderfully obscure ways" Jan 05 04:18:23 ^ Jan 05 04:20:50 I have to agree with that Jan 05 04:24:28 intellj user before google made android studio Jan 05 04:26:07 How do I pass a bundle back to the main activity from a fragment? Jan 05 04:28:18 make a callback method Jan 05 04:44:50 Hello Jan 05 04:45:23 I have a problem reading a data file. See: https://gist.github.com/anonymous/62f7b08df388c3c96066 Jan 05 04:46:33 did you read the stack trace? Jan 05 04:46:35 MDTech-us_MAN: why are you indenting like that? Jan 05 04:47:11 well, probobly coying it messed the indents up Jan 05 04:47:18 *copying Jan 05 04:48:49 It says it is a NullPointerException, but I wonder where would that come from. Jan 05 04:49:29 it tells you where Jan 05 04:50:39 I know it says "at java.io.InputStream.read(InputStream.java:163)", but that doesn't make it more clear WHY did it happen. Jan 05 04:51:09 go down one more line Jan 05 04:52:28 at us.mdtech.mdapp123123.MainActivity.onCreate(MainActivity.java:88)? Jan 05 04:52:45 indeed Jan 05 04:54:15 and... WHY is this happening Jan 05 04:54:39 well Jan 05 04:54:41 "fis" is null Jan 05 04:54:44 you have a Null Pointer Exception Jan 05 04:54:48 localized to a very short line of code Jan 05 04:54:56 you should be able to see what is happening Jan 05 04:54:58 I did run fis = openFileInput(FILENAME); Jan 05 04:55:13 therefore you can extrapolate openFileInput is returning null Jan 05 04:55:28 so fis should not me null Jan 05 04:55:33 *be Jan 05 04:56:02 you never want anything to be null Jan 05 04:56:04 null is bad Jan 05 04:56:07 null makes things crash Jan 05 04:57:28 I know. Since I ran "fis = openFileInput(FILENAME);" fis should be a valid "FileInputStream". Jan 05 04:57:57 apparently it's not though Jan 05 04:58:10 what might cause openFileInput to return null Jan 05 04:59:10 ok, lets put our thinking hat on. openFileInput would make a "FileNotFoundException" if the file didn't exist... Jan 05 04:59:15 If I want to include the script engine class from java in my open source android Library will I have to provide any additional Licenses? Jan 05 05:00:26 MDTech-us_MAN: hard to say without the source to that function Jan 05 05:00:43 oh wait, didn't realize it was a library function Jan 05 05:00:50 well, it is a android finction Jan 05 05:00:58 *function Jan 05 05:07:26 MDTech-us_MAN: I think the problem is actually readBuff is null Jan 05 05:08:35 oh, so how should I initialize it? Jan 05 05:09:51 http://docs.oracle.com/javase/6/docs/api/java/io/FileInputStream.html#read(byte[]) Jan 05 05:09:57 you initialize it to the number of bytes you want to read Jan 05 05:37:01 was only in #java for 4 minutes before we get "f@# off pr$ck" Jan 05 05:38:11 gee, what'd you say ? Jan 05 05:38:26 heh, it wasn't me. i'm just waiting for the smoke to clear :) Jan 05 05:39:08 people are meanies Jan 05 06:05:39 does ArrayMap exist only in the support library? Jan 05 06:08:49 How can i like define gestures in android? Jan 05 06:09:03 what do you, like, mean Jan 05 06:09:07 Actually better yet Jan 05 06:09:33 How can i like make a collapsible menu in android? Jan 05 06:10:33 be a little more specific Jan 05 06:11:14 I want to make a view with a collapsible menu on the bottom so i can like flick a couple fingers to access/hide the menu Jan 05 06:19:57 http://www.businessinsider.com/apple-android-market-share-ecommerce-2014-1 Jan 05 06:20:10 "GOOGLE'S DIRTY SECRET: Android Phones Are Basically Used As Dumbphones" Jan 05 06:20:35 i didn't think this was news, but … things haven't changed i guess Jan 05 06:21:10 I don't use my phone as a dumbphone... Jan 05 06:21:23 "We asked Google for comment. We'll update this post if the company gets back to us." that will be fun Jan 05 06:21:52 haha Jan 05 06:22:43 lol Jan 05 06:23:33 durka42: is that specific enough? I like have a couple of options and settings and want a collapsible menu on the bottom so I don't take up too much realestate all the time Jan 05 06:24:15 normally a menu like that comes up when the user presses the physical menu button Jan 05 06:24:30 https://developer.android.com/guide/topics/ui/menus.html Jan 05 06:25:05 I see Jan 05 06:26:04 but wait- like my nexus 7 and stuff don't have an actual physical menu button Jan 05 06:26:40 yeah I guess google is pushing for action bars in new apps Jan 05 06:27:10 but if you have too many options the action bar will overflow, and have an ellipsis button that opens a menu Jan 05 06:27:36 ah i see Jan 05 06:28:07 yeah i just have a few options- like 3 or 4 main ones. It looks perfect :) Jan 05 06:28:42 I also use an app that slides out a menu when you swipe from the right side of the screen Jan 05 06:28:47 I guess it doesn't follow the conventions Jan 05 06:28:52 but it's pretty slick :) Jan 05 06:53:00 Is there anyway I can draw on my views canvas without calling invalidate? Jan 05 06:53:20 I don't want to redraw other views in my layout. Jan 05 06:54:16 Anyone? Jan 05 07:03:15 sorry no clue Jan 05 07:11:54 Eeeeeee: Thanks anyways. I might try SO. Jan 05 07:12:11 :D Jan 05 07:42:00 hey i'm able to develop on the phone itself using jdk for arm, and dynamic loading of jars Jan 05 07:42:28 lol was it easy Jan 05 07:42:37 or weird and complex to get there? Jan 05 07:43:15 wasnt too bad, Jan 05 07:43:30 less time spent building apks, transferring them over, and reinstalling Jan 05 07:44:49 lol ok so connected keyboard and mouse or something? Jan 05 07:45:15 i login to the phone using putty Jan 05 07:45:30 and edit the files using vim, i have a linux kit Jan 05 07:45:35 installed Jan 05 07:46:06 so tired gonna go sleep night. enjoy it Jan 05 07:46:21 thanks have a nice night Jan 05 07:46:32 me too going to sleep now Jan 05 07:53:46 Frack - win8 ate my ubuntu partition ... (you bastard!) Jan 05 08:00:10 yummy Jan 05 08:00:17 ok really need go sleep lol later Jan 05 08:15:48 hello, in the context of a Preference Activity, what is a Header? is it just the name for one of the preference items listed? Jan 05 08:16:19 it seems this way, but unfortunately the API uses the word header in the description of the class "Description of a single Header item that the user can select" Jan 05 08:16:27 and that just makes it confusing Jan 05 08:27:04 A single item at the start of a lust thats in the list for UI but is a different item type than that of the list - Could just be any info thing aiui Jan 05 08:27:13 *list Jan 05 09:32:46 Can anyone help with this? http://stackoverflow.com/questions/20922152/get-relational-data-with-parse Jan 05 10:04:41 hello :) Jan 05 10:05:32 hello :) Jan 05 10:39:03 No one with experience with Parse.com? Jan 05 10:41:24 wtf Jan 05 10:41:29 cleaned project and R Jan 05 10:41:41 s are missing.. never had the on android studio :/ Jan 05 10:41:54 that rather Jan 05 10:42:18 no experience with parse Jan 05 10:43:10 Maybe I'm just doing my data scheme badly Jan 05 10:43:18 why do you want relational db/ Jan 05 10:43:23 speed? Jan 05 10:43:43 I have Categories which have a List of Events, and the Events have a Category Jan 05 10:44:14 is it a foreign key? Jan 05 10:44:21 is that what you're looking for Jan 05 10:44:24 i believe so Jan 05 10:44:45 Yes Jan 05 10:44:49 That's what I'm using Jan 05 10:44:55 Well, parse calls it "relations" Jan 05 10:45:00 ah weird Jan 05 10:45:21 it won't be truly relational db Jan 05 10:45:26 they use nosql? Jan 05 10:45:28 First of all, the web dashboard doesn't let you relate an element to an existing one Jan 05 10:45:37 I have no idea of what they use.. let me look Jan 05 10:45:51 yeah don't mess with their dashboard i would guess Jan 05 10:46:01 do everything via their api Jan 05 10:46:07 and command line Jan 05 10:46:47 https://www.parse.com/docs/rest ? Jan 05 10:46:57 also why parse and not appengine? Jan 05 10:47:38 I like parse better Jan 05 10:47:58 lol Jan 05 10:48:25 https://www.parse.com/docs/android_guide Jan 05 10:48:35 unless your api is REST Jan 05 10:49:00 install their SDK Jan 05 10:49:01 I'm using the Android API on my app of course Jan 05 10:49:09 But I meant when you said not to use their dashboard Jan 05 10:49:29 i doubt they would provide direct access Jan 05 10:49:39 from a backend Jan 05 10:50:05 gonna get api key, enter it in app, enter it in backend, etc Jan 05 10:50:15 is only my guess Jan 05 10:50:19 haven Jan 05 10:50:22 t done it personally Jan 05 10:50:33 here but minimized Jan 05 10:52:02 https://www.parse.com/tutorials/get-started-with-android Jan 05 10:52:28 maybe I was wrong, maybe you can specify your api through backend, looks weird Jan 05 10:53:32 they have an IRC channel #parse Jan 05 10:55:19 parse is still around, eh Jan 05 10:55:38 facebook bought them Jan 05 10:55:47 sesame st use it ;) Jan 05 10:55:54 lol Jan 05 10:56:32 4 people in channel Jan 05 10:56:36 Better not get my hopes on it Jan 05 10:56:40 oh, fb yuck. i'd never willingly use it then (for my app, or in another app) Jan 05 10:56:42 they make money Jan 05 10:56:59 you know, so probably you can contact them Jan 05 10:57:14 They don't get money with me :) Jan 05 10:57:17 they use aws anyway Jan 05 10:57:19 At least not yet Jan 05 10:57:21 act like it Jan 05 10:57:31 thats what their free accoutns are for Jan 05 10:58:33 i went to see what the big deal about convenience was, and well might have been revolutionary 6 months ago lol Jan 05 11:00:33 Is sharedpreferences is just update xml ? Jan 05 11:01:38 does it matter? Jan 05 11:01:45 the underlying storage is an implementation detail Jan 05 11:18:54 JakeWharton: i wonder if i can use only shared preferences, instead of both Bundles and Sharedpreferences. Jan 05 11:42:20 guys, why does dialog.dismiss, does not dismiss the dialog as soon as it is called ? Jan 05 11:42:29 I am calling it from the click listener of the setpositive button Jan 05 11:45:02 What is auto-import in android studio Jan 05 11:45:10 ? Jan 05 11:47:01 on the gradle screen? Jan 05 11:50:27 bluesm i think it means, when you change the build.gradle file, it imports it Jan 05 11:50:34 i found it annoying, so i disable :) Jan 05 11:53:26 Eeeeeee: g00s https://dl.dropboxusercontent.com/spa/ll0oz57hyrt1crz/gxz233u2.png Jan 05 11:54:17 Could I invert this with !=~ ? $foo =~ /pattern/ Jan 05 11:56:20 the default wrapper is the gradle/gradle.properties + other file that ships with new projects, or that gets added to non gradle projects Jan 05 11:56:49 just make backup and use that option Jan 05 11:57:51 if you have more specific needs create a customizable wrapper Jan 05 11:59:28 bluesm yeah Jan 05 11:59:56 g00s: Eeeeeee I'm afraid I don't know what gradle is. Jan 05 12:00:04 hold me Jan 05 12:00:21 don't worry i'm afraid i don't know what java is Jan 05 12:02:43 I also think I'm turning Japanese Jan 05 12:02:56 Eeeeeee: Could you explain ? Jan 05 12:03:03 えぇ?すごい! Jan 05 12:03:03 I really think so? Jan 05 12:03:09 lol! Jan 05 12:03:38 Eeeeeee = えぇぇぇぇだよね? Jan 05 12:04:02 no I do not want to cyber with you bankai1 Jan 05 12:04:11 oh come on... you didn't mind yesterday Jan 05 12:04:16 i'm not there yet I just said I think Jan 05 12:04:21 lol Jan 05 12:04:29 THIS IS A SHARED COMPUTER THAT WASNT ME Jan 05 12:04:56 unless it was good ofc Jan 05 12:07:34 Eeeeeee: What do you mean ? Jan 05 12:07:46 what do you mean Jan 05 12:08:28 ? Jan 05 12:08:55 Get a room, preferably not this one ;p Jan 05 12:09:57 it's almost as if no one wants to use loaders and contentproviders Jan 05 12:10:21 like everyone is saying just use async task Jan 05 12:14:12 Eeeeeee, just use asynctask :P Jan 05 12:14:27 got a question if you don't mind Jan 05 12:14:49 is this other way too hard to make up for the benefits? Jan 05 12:17:06 like I want to do it the "right" way, but I'm not sure if people are just resistant to change or it's really just a waste of time Jan 05 12:18:01 Eeeeeee, do however you feel you want to do it. yolo. Jan 05 12:18:13 :/ Jan 05 12:18:33 Eeeeeee, at the end of the day, all that matters is how much money you have in the bank. Jan 05 12:18:50 and given your presence on irc, i assume not much. hrhr Jan 05 12:19:00 or too much Jan 05 12:19:06 or that yea. Jan 05 12:19:16 ur chatting from your yacht for example. Jan 05 12:19:30 located on the shores of belize. Jan 05 12:19:55 what are you bugging my phone or something Jan 05 12:20:50 yes, your nokia 1110 Jan 05 12:20:52 brb Jan 05 12:23:57 Eeeeeee: Where I can learn about contents of project and what gradle is ? Jan 05 12:24:24 it's on d.android.com Jan 05 12:24:32 search google and it should come up Jan 05 12:31:16 <_genuser_> when using an AlertDialog, how do you guys send notification back to the caller? caller implements an interface and you use that to call methods? Jan 05 12:54:25 Hmh. Finally updated my phone to android 4.4. Fixed some runtime issues with renderscript that cyanogenmod apparently hadn't caught/solved, but created more issues. One being that RS kernel that I have runs like 10 minutes and some watchdog thread kills it Jan 05 12:54:45 it might be firing the GC prematurely based on escape analysis or something. Have to try shuffling the code around. Jan 05 12:55:02 Of course, this is on ART Jan 05 12:56:03 I kinda wish I had never bothered with this *Script stuff. Not only is it always running on the cpu, it's far, far less robust than just doing a JNI Jan 05 13:04:03 Hmh. Shuffling code around didn't help. This is weird, it basically allows doing one 10-minute call but crashes when attempting the next one Jan 05 13:06:40 I need a quick suggestion: what do I do to remove special character that might appear in strings read from a FileInputStream. (in the IDE they display as squares) Jan 05 13:12:17 anymore? Jan 05 13:14:47 Is there any difference between SharedPreferences.Editor(sh) and sh.edit() ? Jan 05 13:16:39 MDTech-us_MAN: eh, take a look at string.replaceAll, or figure out what encoding the file is in and read it correctly or edit the file to not contain garbage in the first lace Jan 05 13:17:52 oh, so you mean I need to force an encoding when I write and read to the file, right? Jan 05 13:19:34 that would be preferable. Jan 05 13:19:58 Can Android projects that don't use gradle load aar files? Jan 05 13:20:09 <_genuser_> for yes/no dialogs, do you guys actually extend DialogFragment and implement all teh stuff inside making the caller implement an interface with methods for yes no? Jan 05 13:20:22 there are cases where file self-declares an encoding, such as XML. In that case, just giving the binary data to parser is correct thing to do Jan 05 13:20:37 <_genuser_> or do you just create the AlertDialog right there and setPositiveButton listener and just be done with it? Jan 05 13:52:01 finally the renderscript thing works again Jan 05 13:52:08 rs.finish() calls helped me out Jan 05 13:52:12 yay!!!! Jan 05 13:53:09 so I had done allocation.destroy(); rs.finish(); and the destroy of allocation triggers a finalize which timeouts Jan 05 13:58:14 the only way to solve the problem was to read android source code. I saw which objects inherited from BaseObj and realized that this is the source of my trouble Jan 05 13:58:55 because the answer was "all which are created from a renderscrit context" Jan 05 14:21:02 marrrk, depends Jan 05 14:21:15 On what? Jan 05 14:21:49 On What The project uses to build Jan 05 14:22:28 wow, what's wrong With swiftkey Jan 05 14:22:32 So in the case of ant? Jan 05 14:22:57 no Jan 05 14:23:14 Interesting. But apklibs work? Jan 05 14:23:34 no Jan 05 14:23:41 No? Jan 05 14:23:48 That's bad Jan 05 14:24:24 Do you mean in general or the ones created with your plugin? Jan 05 14:24:39 in general Jan 05 14:25:32 Okay what about maven? Jan 05 14:26:03 dunno what the state of aar is Jan 05 14:26:37 So apklibs with maven? Can I make this work with scala classes? Jan 05 14:27:40 the maven plugin is what started apklib Jan 05 14:27:45 and mostly no Jan 05 14:28:05 That makes me sad. Jan 05 14:28:30 why Jan 05 14:29:30 Because my coworkers refuse to use scala but I get so angry when I have to use java. So I created my custom view in a Scala project and thought I could turn this into a library project and everybody would have been happy. Jan 05 14:31:00 yeah, that won't really work Jan 05 14:31:16 maintain the build completely in sbt Jan 05 14:31:58 You mean make them use sbt? Jan 05 14:32:37 Damn, I thought adding scala-library as a jar would be enough. Jan 05 14:35:09 Would changing the build to gradle help? If I make an .aar will it work for them? Jan 05 14:35:39 no Jan 05 14:36:19 Okay if I replace the two guys with reasonable people is that going to make a difference? Jan 05 14:36:39 well, adding scala-library as a dependency/library would work but you also need to add proguard rules Jan 05 14:36:47 I can do that Jan 05 14:36:58 I guess? Jan 05 14:38:06 so your builds must always run proguard Jan 05 14:38:30 that's generally unacceptable, and works poorly in ides Jan 05 14:38:54 Why do they have to do this because otherwise the apk becomes too big? Jan 05 14:39:40 Google dex method limit Jan 05 14:39:52 ah yeah, I see Jan 05 14:41:41 So I guess I will port everything to Java. Jan 05 14:42:09 nooooo Jan 05 14:42:19 jalcine: Correct Jan 05 14:42:56 how do I do foldLeft in Java? I don't! Jan 05 14:43:28 I don't even know how to do map Jan 05 14:44:05 use guava Jan 05 14:44:15 That, I have to google Jan 05 14:44:30 there's also functionaljava, but it's pretty verbose and big, itself Jan 05 14:45:04 There is this javaRX thing Jan 05 14:45:56 it's not functional Jan 05 14:46:50 it claims to be Functional Reactive Programming Jan 05 14:47:01 It's also called RxJava Jan 05 14:47:41 the semicolons alone are killing me, so I can also just do it in Java 6, I guess Jan 05 14:47:47 it's reactive, it's not functional Jan 05 14:47:47 wait for java 8 :( Jan 05 14:48:26 storkme: Did they get rid of the semicolons in java 8? Jan 05 14:48:38 no Jan 05 14:48:51 I already hate it, then Jan 05 14:49:20 ^^ lol Jan 05 14:51:11 I honestly don't see any advantage of Java over Scala, that's why it makes me so angry. Jan 05 14:52:31 you can use scala for Android development Jan 05 14:55:37 I can Jan 05 14:55:52 there isn't any advantage, it's just the language of the masses Jan 05 14:56:19 There's more than 2 users Jan 05 14:57:38 I have several thousand users of my sbt plugin... Jan 05 14:58:56 at least if 5-10‰ of users star projects on github Jan 05 14:59:04 Why does it matter how many users there are? Jan 05 14:59:20 That's like saying a Lambo is a bad car because there aren't many people driving one. Jan 05 14:59:36 marrrk, programming != driving. Jan 05 14:59:56 * michalrus loves pfn's plugin. Jan 05 15:00:01 it's because people like to use it as an excuse for not doing something better Jan 05 15:05:48 pfn: how do your plugin compare to scaloid? Jan 05 15:05:51 does Jan 05 15:12:20 it's orthogonal Jan 05 15:12:50 scaloid is a framework, the closest analogy/comparison is macroid Jan 05 15:14:08 macroid is good, but ide support is poor Jan 05 15:14:20 ides have bad support for macros Jan 05 15:17:32 cool. plz send me the link to your project. Jan 05 15:20:40 Can anyone help me with alpha testing? I added a Google+ Commonity, how do I share the app with the people in it? Jan 05 15:29:45 michalrus: don't program and drive Jan 05 15:31:18 I uploaded my APK to Google Play (as alpha), how do I share it? I added a Google+ community Jan 05 15:33:17 cam someone explain to me what exactly a Fragment is Jan 05 15:34:33 windwaker: It's like an Activity but more complicated. Jan 05 15:34:48 why use a fragment over an activity Jan 05 15:35:18 a fragment is reusable Jan 05 15:35:19 Some stuff forces you to use them (like ViewPagers) and I've heard that using them is faster. Jan 05 15:35:40 it's a reusable controller Jan 05 15:35:52 if you're looking for an mvc analogy Jan 05 15:35:53 autrilla: yea, g+ or group. then invite people to it. Jan 05 15:35:56 Nothing forces you to use them Jan 05 15:36:04 what should I be using them for Jan 05 15:36:15 fmj47, Ah, I need to give it an icon and everything Jan 05 15:38:36 windwaker: http://developer.android.com/images/fundamentals/fragments.png Jan 05 15:39:35 Two different activities using the same fragments. Jan 05 15:39:41 Or maybe three Jan 05 15:39:42 windwaker, a reusable controller Jan 05 15:40:28 Alright, pfn, if I remove all the Scala classes and still build with SBT for making an apklib it should work in a Java only maven project? Jan 05 15:42:02 marrrk, yes Jan 05 15:42:22 marrrk, you can create it as an apklib or just a regular jar if it doesn't need R/resources Jan 05 15:42:37 * pfn plays a few games of lol Jan 05 15:42:43 It needs resources, I don't think I can put what's in attrs.xml somewhere else. Jan 05 15:42:49 then I need to fix me some issues Jan 05 15:42:53 you can't Jan 05 15:42:57 then it needs to be an apklib or aar Jan 05 15:43:15 but apklib/aar only work with gradle and maven Jan 05 15:43:21 (well, aar may/may not with maven) Jan 05 15:43:59 Alright, thanks, have fun playingl Jan 05 15:47:49 hello world Jan 05 15:48:03 meh, some ahole dodged already Jan 05 15:54:54 now I got a troll Jan 05 15:54:59 lol is filled with the best community... **** BEGIN LOGGING AT Sun Jan 05 15:58:21 2014 Jan 05 15:58:44 hi guys. hope one of you guys worked with AudioTrack already and can tell how I can determine the currently available buffer length... I basically want to get the same value I get in javax.sound.sampled.DataLine#available() Jan 05 15:58:45 http://docs.oracle.com/javase/7/docs/api/javax/sound/sampled/DataLine.html#available() Jan 05 15:59:23 So I want to get the same value as available() is returning, but with AudioTrack obviously Jan 05 16:00:21 I can see this as well: Description Resource Path Location Type Jan 05 16:00:21 HONEYCOMB cannot be resolved or is not a field SyncSettingsActivity.java /tasks/src/org/dmfs/tasks line 96 Java Problem Jan 05 16:05:00 does anyone have exprience with udoo http://shop.udoo.org/other/product/udoo-quad.html? Jan 05 16:05:34 i believe u do Jan 05 16:08:12 lol Jan 05 16:20:37 Hi folks. I'm a happy-go-lucky amatour coder. Never learned OOP, just messed about with function code and spaghetti code (moste php, and years ago: comal80, basic). I want to develop an android app to collect some data (basically a questionnaire type thing). I was considering Python, as Java seems further from my previous experience and I'm lazy :-) Jan 05 16:20:46 Hello dudes Jan 05 16:21:02 Any thoughts on coding a GUI questionnaire for Android with Python? Jan 05 16:25:39 To communicate between a task thread and UI thread I use Handler. The only way to connect two handlers (one of UI and other on the task thread is to instantiate in the UI thread and pass to the task one (with constructor) that is how I'm doing right now. Or there is another way? I tried to instantiate both each in own classes with un new(Looper.getMainLooper()) but when from task thread I send a messag Jan 05 16:25:39 e, the other (on UI thread) doesnt receive nothing. Jan 05 16:33:02 Is it possible to code over ssh? (Ubuntu system) Jan 05 16:34:48 yofun: I do it all the time Jan 05 16:34:56 but I use vim and *too many* command line tools Jan 05 16:35:10 jacky what tools do I need? Jan 05 16:35:21 what are you trying to make? :) yofun Jan 05 16:35:28 android apps Jan 05 16:35:31 I'm new Jan 05 16:35:41 have basic sense of codeing Jan 05 16:35:42 wouldn't recommend doing that with Android apps Jan 05 16:35:51 you'd want to sit in an IDE Jan 05 16:35:58 well I'm on mobile Jan 05 16:36:27 so I figured I could code over ssh and use that system to make the apps Jan 05 16:36:30 Ah, well, it'd be ideal. I personally wouldn't recommend it but someone else here might have a different opinion Jan 05 16:36:39 there's an app that allows you to build Android apps on Android Jan 05 16:36:43 AnIDE, I believe. Jan 05 16:36:47 ah? Jan 05 16:36:52 Let me look Jan 05 16:37:14 again: if you're just starting out, use a computer Jan 05 16:39:32 Well I'm gonna try atm I only have access to a tablet Jan 05 16:41:55 yofun: i tried the app. it's not bad. the editor even does completion. Jan 05 16:41:58 Jacky what about this? http://sigmyers.com/blog/2013/10/14/build-an-ios-and-android-app-in-5-minutes-without-an-ide Jan 05 16:42:31 fmj47 which app? anIDE? Do you have a link? I couldn't find it Jan 05 16:42:49 AnIDE i think Jan 05 16:43:14 yofun: https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Jan 05 16:43:26 and that link uses phonegap Jan 05 16:43:28 yea "aide" Jan 05 16:43:40 unless you don't mind using HTML5 for building an Android app Jan 05 16:43:42 * jacky cringes Jan 05 16:44:54 aide uses phonegap? amazing. felt like a native app. Jan 05 16:46:31 Phonegap? something wrong with it? Jan 05 16:47:11 fmj47: nooo lol Jan 05 16:47:21 Lol Jan 05 16:47:29 the link that yofun linked from sigmyers.com refers to phonegap Jan 05 16:47:38 ahh Jan 05 16:47:38 yofun: just a personal preference Jan 05 16:48:07 Ah Jan 05 16:48:48 Brb Jan 05 16:49:26 anyway, yea aide is rock solid. just get a real keyboard and mouse? Jan 05 16:49:47 can you attach a bluetooth mouse to phones? Jan 05 16:49:54 aide uses phonegap? no freaking way Jan 05 16:50:04 also coding android on android is ridiculous Jan 05 16:50:50 * jacky headdesks Jan 05 16:50:56 AIDE doesn't use phonegap Jan 05 16:51:02 fmj47: I've done it Jan 05 16:51:11 that and a USB mouse Jan 05 16:51:15 just for the lulz Jan 05 16:52:01 cool. so when you plug it in, a cursor pops up? Jan 05 16:52:35 yup, little ol' black thing Jan 05 16:53:10 and this was on your phone? Jan 05 16:53:11 wish I could change it Jan 05 16:53:18 not a tablet? Jan 05 16:53:30 fmj47: yeah, I don't have the adapter from micro to USB on me Jan 05 16:53:36 but I would screenshot if I could Jan 05 16:53:40 oh right. Jan 05 16:56:42 Looks like AIDE handles phonegap apps as well Jan 05 17:02:04 Any way of "embedding data" into a button view? I'm creating the buttons programatically based on some results, and I want each one of them to to individually process one of the results. (new to java and android) Jan 05 17:03:29 JohnTheSavage101, findviewbyid(R.id.yourid).setText("text here") Jan 05 17:05:23 MindfulMonk: not really what I asked for. Anyway, it seems that I'm just going to add a listener for each of those buttons. Jan 05 17:15:23 Does it take a while between publishing the app and it actually showing on Google Play? Jan 05 17:16:23 yep Jan 05 17:21:06 anyone using OpenCL Mali drivers? Jan 05 17:24:11 hey guys, I need some help with a stock dialer problem i'm having, anyone around to give me a hand? Jan 05 17:26:52 SimonVT, how much approx? Jan 05 17:27:35 anyone? Jan 05 17:27:44 Miksang: what prblem Jan 05 17:27:50 There's no way to tell Jan 05 17:28:11 Oh :( Jan 05 17:28:13 it all depends on how fast google is at propagating the app to whatever server you're connected to Jan 05 17:28:24 I found a bunch of alpha testers, now they have to wait Jan 05 17:28:28 I thought it was instant Jan 05 17:28:31 Might be half an hour, might be half a day Jan 05 17:28:34 i'm trying to get rid of the stock dialer and replace it with dialer plus, but it just won't let me... every time i get an incoming call the stock dialer takes over Jan 05 17:28:35 or a year Jan 05 17:28:41 It's already been an hour :3 Jan 05 17:29:04 Miksang: please use #android for user support Jan 05 17:29:19 ah okay, didn't know thanks : ) Jan 05 18:10:33 Hello, I have a question : I have a openGL ES 2 app that I'm writing, and I want to modularize the rendering, so I pass to the openGL renderer a list of objects that it has to draw, however it seems that because of thread problems, the List that I send to the renderer is never available in onDrawFrame (it is `null`) although the renderer object receives a list, someone knows where it can come from? Jan 05 18:16:39 hello Jan 05 18:25:12 hello Jan 05 18:26:31 I Jan 05 18:28:14 The Jan 05 18:30:07 Hi i have a question about services - http://developer.android.com/reference/android/app/Service.html , why START_STICKY restart my application after low memory but START_REDELIVER_INTENT not restart? Jan 05 18:35:22 I found information about START_REDELIVER_INTENT "Similar to Service.START_STICKY but the original Intent is re-delivered to the onStartCommand method. " Jan 05 18:48:07 from pitch, roll, yaw and inclination. what is the easiest way to tell if the device is upside down? Jan 05 18:49:23 <_genuser_> folks, trying to launch an activity from a fragment. what is the best way to notify the fragment of the result? Jan 05 18:49:42 Fritiof: an intuitive way is to find the direction of the gravity vector Jan 05 19:06:37 * Dreeass is away: I'll be right back or not. Jan 05 19:06:58 Does having a bigger projection, is a performance issue? Jan 05 19:07:34 wat Jan 05 19:07:50 you have to be more clear Jan 05 19:08:10 although, on mobile, "is X a performance issue" => yes Jan 05 19:10:41 Sorry, I meant, If I have a cursor with unused columns. Will the cursor be slower? Jan 05 19:14:16 <_genuser_> so startActivityForResult will trigger onActivityResult in calling Fragment and then in host Activity? Jan 05 19:15:21 Could anyone point me at how to conditionally set an intent-filter? Is this possible? I would like to allow users to enable a home screen mode in our app. Jan 05 19:16:43 For example, I have a listview item which uses 8 columns in my cursor. And I want on the item click to open an activity containing full object which use 20 columns in the cursor. Jan 05 19:19:35 Could I perhaps set an activity to handle an intent and selectively disable that activity so it doesn't? Jan 05 19:20:06 you can't. Jan 05 19:20:38 intent filters are resolved from static AndroidManifest and Android does not go and try to resolve them again later Jan 05 19:20:46 you can probably do a workaround though. Jan 05 19:21:50 I'm trying to figure out if I can set an intent filter and then mess with the PackageManager's setComponentEnabled setting perhaps to remove the activity from consideration for the intent Jan 05 19:22:34 I suppose I should just try it. I was wondering if anyone here had ever tried to do what I'm attempting. Jan 05 19:24:48 Oh sweet. I found my answer after more Googling. Here it is in case anyone's wondering: http://stackoverflow.com/questions/6408086/android-can-i-enable-disable-an-activitys-intent-filter-programmatically Jan 05 19:24:58 <_genuser_> ColinTheShots: you can always query the intent that launched your activity. Jan 05 19:25:05 <_genuser_> and selectively choose to ignore it. Jan 05 19:25:29 <_genuser_> so instead of removing your activity from considering for that intent, you leave it there but ignore it. Jan 05 19:26:17 Yeah, but I'm taking the home screen intent and only want to do so if the user set the option. Otherwise, it just looks like I'm hijacking their device and that's not at all my intent. Jan 05 19:38:52 * Dreeass is back (gone 00:32:15) Jan 05 19:44:06 Does anyone know what methods must be called (if any) on child views in the onMeasure overidde of custom view group? Jan 05 19:44:58 Or if i know that the viewgroup will always have a constant width/height, can I simply call setMeasuredDimension(w/h)? Jan 05 19:47:43 Call measure on child views, call setMeasuredDimension on viewgroup Jan 05 19:48:43 (setMeasuredDimension on your viewgroup, not child viewgroups) Jan 05 19:58:14 SimonVT: thank you Jan 05 19:59:44 hi! Jan 05 20:00:11 just wondering how relevant is the manual download fallback for OBB files these days? Jan 05 20:02:21 is it safe to expect all recent devices to just download the file from the play store? Because the documentation just says "most devices" just work which is a tad vague Jan 05 20:06:13 Huh. Parse.com takes about 1 minute to load a bunch of objects Jan 05 20:14:32 sorry i got disconnected, where there any answers to my question regarding OBB file download? Jan 05 20:15:58 no, nobody answered :( Jan 05 20:16:19 bummer Jan 05 20:20:00 hi all, i'm new to android dev, please be gentle. take a look at http://pastebin.com/aZGRfkW9. i'm trying to get the TextViews either side of the SeekBar. i want the SeekBar to take up *as much width as possible but leaving space for the TextViews either side*. how can i do this without hard-coding the width which i understand is a Bad Idea? Jan 05 20:23:36 antgel: use weights Jan 05 20:25:12 anybody experienced with the NDK/JNI stuff ? Whenever I call vm->DetachCurrentTHread(vm); I get the following error E/dalvikvm﹕ ERROR: detaching thread with interp frames Jan 05 20:25:27 I'm using this code https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c Jan 05 20:25:42 here's the detachThread method I'm using https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c#L30 Jan 05 20:26:13 and here's the method that is used to retrieve the JNIEnv and which calls AttachCurrentThread https://github.com/nvdweem/libjahspotify/blob/master/native/src/main/native/src/JNIHelpers.c#L321 Jan 05 20:26:39 every time I'm getting the SIGABRT crash :((( Jan 05 20:26:55 thanks in advance for any hint whatsoever Jan 05 20:37:31 canvs2321: i don't know what weights are yet, but i'll have a go. i tried fill_parent for the seekbar, but it hid the right-most label Jan 05 20:38:16 How can I check what's slow on my app? I download data from the internet (parse.com), and I want to know what is slowing everything down Jan 05 20:38:17 Wow Jan 05 20:38:17 Dat flood Jan 05 20:41:55 autrilla: add some timing checks on certain methods. What's slow a UI response, or data response? if data, could be your internet connection, if UI, then see how long or what is running on UI thread slowing you down Jan 05 20:42:44 I don't think there's anything on my code that could slow it down.. Jan 05 20:42:59 And I don't see any messages telling me to do something on another thread Jan 05 20:43:05 you haven't told what slow down you are expierencing Jan 05 20:43:07 I just see too much garbage collection Jan 05 20:43:23 canvs2321, it takes a lot of time to load Jan 05 20:43:24 well gc & visual slow down aren't related Jan 05 20:43:40 or they could be, but gc happens alot Jan 05 20:43:55 load what? data from internet? Jan 05 20:44:03 you need to refine your ? a bit Jan 05 20:44:13 or atleast give a peak at what you are doing Jan 05 20:45:05 canvs2321: it was that easy, thanks! Jan 05 20:45:11 canvs2321, data from the internet Jan 05 20:45:13 From parse.com Jan 05 20:45:23 The data isn't bigger than 1MB Jan 05 20:45:28 antgel: excellent :) Jan 05 20:45:59 autrilla: but what i'm saying is the speed at which you get the data is all related to network connectivity, not what your app is doing Jan 05 20:46:32 For me it loads fast Jan 05 20:46:34 It's for other users Jan 05 20:46:39 Even on my same network Jan 05 20:46:46 autrilla: as parsing the data should be lightning fast, but getting it is your bottleneck, if so, then add some kind of indicator while data is being retrieved Jan 05 20:47:14 on same network as in 2blocks from your house or as in on same network sprint,verizon,etc...? Jan 05 20:49:16 Same network as in my WiFi Jan 05 20:50:54 autrilla: then what are device spec differences? and are you physically seeing the delay, or just hearing bout it? could all be about perspective Jan 05 20:51:17 canvs2321, now it happens on my device Jan 05 20:51:22 I think it's parse's problem Jan 05 20:52:01 do some testing on ping from parse, as it seems you maybe correct with the server being the problem. if so, just make it less visible with adding some loading effects Jan 05 20:52:43 where are the parse servers in relation to your physical location? Jan 05 20:52:48 No clue Jan 05 20:53:01 It is something on their servers, not the connection Jan 05 20:53:07 Come on, 1mb max. Jan 05 20:53:13 And it takes a minute Jan 05 20:53:14 then work with what is given :) Jan 05 20:53:45 at max speeds&adjust your app to deal with 14.4 modem speeds :) Jan 05 20:54:18 is it a one time shot download of 1mb, or a every needing new 1mb? Jan 05 20:55:22 canvs2321, 1 time I guess Jan 05 20:55:24 I caching works fine Jan 05 20:55:30 &also maybe contact parse, as i am not well versed with them&see what they have to say Jan 05 20:56:29 well if a one time shot then add some cool animations or a notification to allow user to see that something is happening, then after, get to the work of it all :) Jan 05 20:56:51 &maybe add a disclaimer that it's waiting for parse :) Jan 05 20:57:19 Good. Jan 05 20:57:36 Better. Jan 05 20:57:41 Great. Jan 05 20:58:31 Speed kills, but does it kill Evil? Jan 05 21:03:54 Too many GC_FOR_ALLOC messages Jan 05 21:10:26 Someone knows the list of affeceted devices that do not automatically download expansion files from google store? Jan 05 21:11:46 autrilla: you are still that i know of to post code or logcats, so it's all hearsay :/ Jan 05 21:12:02 canvs2321, I'll get you the code and logcats Jan 05 21:12:17 felix89: what are you talking about, seems only way you'd be denied is if you are in a country not supported Jan 05 21:12:45 autrilla: i'm no expert, but the more detail you can give can allow others to chime in when they get a chance :) Jan 05 21:13:17 Here is the logcat http://pastebin.com/FjFm0sWZ Jan 05 21:13:25 felix89: and by automatically alot of preferences may be set to Wifi only or using data etc... Jan 05 21:13:32 canvs2321: Nope, I quote the docs: "On most devices, Google Play downloads the expansion file(s) at the same time it downloads the APK, so your application has everything it needs when the user opens it for the first time. In some cases, however, your application must download the files from Google Play when your application starts." Jan 05 21:13:45 http://developer.android.com/google/play/expansion-files.html Jan 05 21:14:32 autrilla: what are you doing to cause GC? they seem swift under 20-30ms, you seem to be doing alot of work Jan 05 21:14:44 canvs2321, posting the code Jan 05 21:14:54 Nothing intensive Jan 05 21:15:02 Maybe there's an infinite loop somewhere or something Jan 05 21:15:53 felix89: expansion files are usually for games that need extra files downloaded, heavily intensive graphics downloads, like pro apps with very detailed data. why you need it? Jan 05 21:16:31 Here it is http://pastebin.com/VU1C2gq1 Jan 05 21:16:32 beacuse i am writing a game Jan 05 21:16:35 that is 80mb Jan 05 21:17:18 i just need to know what devices are not supported and if i can safely ignore the manual download because the game would not run on those old dveices anyway Jan 05 21:17:31 felix89: what game? you have a link? if they can download your app, why are they being denied? or with the automatic you are expecting something else Jan 05 21:18:12 felix89: there isn't a unsupported devices. if they can dl your game they can download the extra. it's just the automatic thats got me Jan 05 21:18:55 when you download from the goolge play store and the game has an expansion file, then, according to the documentation, on "most devices", the fiels will be downloaded automatically. On others, they won't be. Jan 05 21:19:32 There is no list or hint that would let me guess which devices that are Jan 05 21:19:46 my best guess is: old devices... which is a tad vague Jan 05 21:20:38 felix89: i'm just saying how how important is getting the expansion via google play? if you can't make it work automatically, why not just provide the user to get it? Jan 05 21:21:01 but like i said i'm not versed in the whole expansion deal Jan 05 21:21:16 host it ourselves? that's not a realistic alternative currently. Jan 05 21:22:01 i'm not saying host it yourself. If you can host it with google play, find a way to make it work the way you want :) Jan 05 21:23:20 canvs2321, do you see anything wrong in my code? Jan 05 21:23:27 Looks like the documentation already covers the case where the expansion files are not downloaded automatically: http://developer.android.com/google/play/expansion-files.html#Downloading Jan 05 21:24:32 autrilla: not gonna lie there is alot of implemations i've never dealt with in your code :/ i'm sorry, but i'm hoping someone more knowledgeable can help u :) Jan 05 21:39:06 Hi. Jan 05 21:39:06 Does android have "alarm" api. That will, no matter what, execute particular intent ? Jan 05 21:39:13 Is requestingLayout comparably more expensive than invalidating to displace one child view of a viewgroup to the left or right? Jan 05 21:39:33 bluesm: you could schedule alarm that fires the intent Jan 05 21:39:38 AlarmManager Jan 05 21:40:01 lahwran is spamming us with con/discon messages Jan 05 21:40:22 lasserix: storkme But only intent ? Not function, because your app could be turn off completely, Right ? Jan 05 21:40:51 alarmanager uses broadcast reciever? so put inside service? Jan 05 21:41:06 SimonVT: Yes, now look at the size of that scrollbar to the right. There is a lot that can go wrong esp. since we work under a lot of time pressure. The game is supposed to be going out today, this being the last hurdle. So we need to know what the benefits are exactly if most devices are covered anyway. Jan 05 21:41:47 I cannot ask for more time by syaing because I don't know it better Jan 05 21:43:32 hi all, SetContentView returns a value, yet my findViewById calls return null. what do i need to check here? you can see http://pastebin.com/zQW40743 - lines 20 and 21 return null Jan 05 21:44:06 felix89 well ask for more time after you know it better :) Jan 05 21:45:40 is there any way to send an HttpPost but catch the redirect before it happens? Jan 05 21:46:47 eh. Battery status can go really, really out of whack Jan 05 21:47:59 p_l i had that on froyo :| Jan 05 21:48:21 g00s: I had the whole charging system die on me Jan 05 21:48:21 phone would say battery was empty; but it should have been fully charged, etc Jan 05 21:48:29 that is, my N4 would not boot Jan 05 21:48:33 :( Jan 05 21:48:59 felix89, obb's are on external storage, there are many reasons they might not be there when the app is launched.. Like changing SD card on phones that have those.. The way to handle it is the same Jan 05 21:49:11 just managed to get it to boot, but I have really interesting battery graph, claiming just after boot that it was running for >12h, date set to 1970-01-02, etc. Jan 05 21:49:21 so I have an extra that seems to be getting lost Jan 05 21:50:18 hi all, SetContentView returns a value, yet my findViewById calls return null. what do i need to check here? you can see http://pastebin.com/zQW40743 - lines 20 and 21 return null Jan 05 21:50:18 SimonVT: Thanks, good point Jan 05 21:50:33 Although a re-install might also fix that Jan 05 21:51:00 can anyone explain this http://pastie.org/8604695 Jan 05 21:51:16 shit Jan 05 21:51:19 I'm stupid Jan 05 21:51:21 nm Jan 05 21:51:50 bonus points if someone can find me derp Jan 05 21:51:56 my* Jan 05 21:54:41 Can anyone help with my code being slow? http://pastebin.com/VU1C2gq1 Jan 05 21:55:13 hey folks, so I was looking over a sample app that was illustrating how to get multiple layouts for the same app using the values-DESCRIPTOR/refs.xml Jan 05 21:55:26 however, I was wondering what happens when there's an overlap of id's? Jan 05 21:56:10 autrilla: are you using an emulator Jan 05 21:57:14 IE I got main.xml and main-large.xml and then put into values-large/refs.xml that makes @layout-large/main-large Jan 05 21:57:46 Hey guys, I have a LinearLayout with a background drawable which is white. I currently have a setting to change theme and when it does it changes the background of the app to black and the icons to light icons programmatically. My problem is that my LinearLayout remains white, how can I change it to black using this setting. Is it better to have a separate xml file and depending on setting use Jan 05 21:57:46 a different xml file? Or just change the color of that shape? Also how would I do this? I have some styles like parent="@android:style/Widget.EditText" is it possible to something simliar with a LinearLayout? Jan 05 21:57:53 I'm sorry if that was badly worded.. Jan 05 21:57:53 doesn't there create an overlap (like if both main and main-large have a list with "list" as their id)? Jan 05 21:57:55 I don't speak english Jan 05 21:58:12 (I do speak english) Jan 05 21:58:19 windwaker, no Jan 05 21:58:21 Nexus 4 Jan 05 21:59:59 Ubuntu keeps sliding more and more downhill... Jan 05 22:00:56 anyone? Jan 05 22:02:58 on Jan 05 22:03:23 oops Jan 05 22:04:13 anyway i think my problem is related to fragments. you can see http://pastebin.com/zQW40743 - lines 20 and 21 (findViewById) return null. what am i doing wrong? it looks so simple Jan 05 22:04:31 i didn't even choose to use fragments - it's what android studio generates for me Jan 05 22:07:05 antgel: can you paste your activity_metronome.xml Jan 05 22:07:21 bankai_: sure, one sec :) Jan 05 22:08:08 bankai_: ah. before i do that - all the interesting stuff happens in fragment_metronome, not activity_metronome. i'll paste both? Jan 05 22:08:32 antgel: activuty_metronome is more interesting to check the ids Jan 05 22:09:14 SimonVT: Hi ;] Jan 05 22:09:53 felix89, bankai_: activity_metronome is http://pastebin.com/ngcZqAnc, fragment_metronome is http://pastebin.com/2TqhrizB Jan 05 22:10:26 antgel: from what i know findviewid is not recursive Jan 05 22:10:30 i think you're doing the right things in the wrong areas Jan 05 22:10:40 :( Jan 05 22:11:34 keep a reference to the fragment, then call "findViewByID()" on that Jan 05 22:11:47 i'll be honest, i don't really understand fragments yet. i'm new to android but old at dev. i saw that when i put xml in fragment_metronome.xml, i saw widgets, so i used that file. my basic structure is whatever android studio throws my way Jan 05 22:12:20 ah damn, low battery, gtg, back tomorrow :((( Jan 05 22:14:48 think he's on a power allocation? hehe Jan 05 22:22:45 I added inflated xml layout to custom viewgroup, and it displays correctly, but getChildCount only ever is 1: why is this? Jan 05 22:28:23 hello Jan 05 22:28:29 Can anyone help with my code being slow? http://pastebin.com/VU1C2gq1 Jan 05 22:28:47 ddms has some profiling tools Jan 05 22:29:11 bankai_, I know Jan 05 22:29:17 I don't think it profiles the network though Jan 05 22:29:46 where's the slowness? is it in your data fetching with parse ? Jan 05 22:31:19 bankai_, I think so Jan 05 22:31:24 I have a question about the ViewHolder pattern to make a smooth scrolling listView. Can anyone help me out? Jan 05 22:32:34 Can onLayout of a viewgroup be overridden such that child views of viewgroups in the viewgroup get different l/t/r/b values? Jan 05 22:38:22 what's the best way to send data to fragments from the activity and back again? Jan 05 22:38:52 depends what you're sending and how much Jan 05 22:39:00 Hey guys, how do I get something to go on top of an activity over other widgets? Is this possible? If so what do I use, fragments? Jan 05 22:39:58 CocoStorm: you can use a framelayout for that Jan 05 22:40:15 bankai_, Oh I see, hmm I'll check out what that is Jan 05 22:40:18 thanks Jan 05 22:41:48 or relativelayout ... or dialog, really depends what you're doing Jan 05 22:42:16 i have some problems setting my enviroment in debian Jan 05 22:42:21 elipse + sdk .. Jan 05 22:42:43 such as ? Jan 05 22:44:12 bankai_, I want to have a display message like a dialog, but a custom one with my own shape. It needs to overlap other widgets like buttons and edittexts with an okay button to clear Jan 05 22:44:26 oh and I want it to appear at a particular part of the screen Jan 05 22:45:41 so I should use a framelayout? Jan 05 22:45:50 currently my app has a mixture of relative and linearlayouts Jan 05 22:45:55 all pretty complicated Jan 05 22:46:06 sort of Jan 05 22:46:14 can u recommend to me a good tutorial to start with eclipse +android sdk installation+ configuration+first hello_world application? Jan 05 22:47:30 plotino, thenewboston on youtube :D Jan 05 22:48:06 thnx Jan 05 22:48:10 np Jan 05 22:52:11 Is there any easy way to "swipe off" part of the layout ? Jan 05 22:52:35 I don't want to add button "delete", but swipe something out of the list. Jan 05 22:53:04 there's a demo of how to implement that in listview on one of the Android Dev videos by Chet Haase Jan 05 22:53:51 bankai_, I want to have a display message like a dialog, but a custom one with my own shape. It needs to overlap other widgets like buttons and edittexts with an okay button to clear Jan 05 22:53:57 woops sorry Jan 05 22:54:05 Hey guys, how do I get something to go on top of an activity over other widgets? Is this possible? If so what do I use, fragments? Jan 05 22:56:49 Mavrik: Thank you! Found it :] http://www.youtube.com/watch?v=PeuVuoa13S8&list=PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0 (if sb interested) Jan 05 22:57:24 checking this one first will probably be better: https://www.youtube.com/watch?v=YCHNAi9kJI4 :) Jan 05 22:58:40 Mavrik: Ah. I see. He backport it on video I've linked. Thank you very much Jan 05 23:09:13 anyway its not so easy to set up the enviroment for developing android app in linux Jan 05 23:10:34 what? of course it is ... Jan 05 23:14:31 im fighting with debian squeeze ... Jan 05 23:15:00 now im trying to start from scratch with eclipse Kepler .. Jan 05 23:27:53 what's the best way to send data to fragments from the activity and back again? Jan 05 23:33:08 se_busca_ayuda, an interface Jan 05 23:33:34 On the fragment create an interface with a method like onFragmentInteraction(String data) or whatever Jan 05 23:33:36 Or use a bundle Jan 05 23:34:30 Can anyone help with my code being slow? http://pastebin.com/VU1C2gq1 Jan 05 23:35:53 autrilla: is the bundle being passed to the fragments going to update on the activity side if i add to it? Jan 05 23:36:33 If you modify it on the same thread, yes Jan 05 23:36:50 Maybe I'm wrong. If I am, someone will point it out and laugh at me Jan 05 23:37:29 When adding a touchlistener to a listview row I lose the default selector highlight, is there an easy way to "super" this in the touch listener implementation? Jan 05 23:38:51 Hi is it possible to change the type face for an edittext hint? Jan 05 23:40:04 And now parse works fine! Jan 05 23:40:07 Without touching code Jan 05 23:40:11 This can't be right Jan 05 23:40:29 Oh it doesn't Jan 05 23:40:30 Wow Jan 05 23:40:42 Know I know why this GC party is going on Jan 05 23:40:53 anyone? Jan 05 23:40:57 getItemView (getView, essentially) gets called every time Jan 05 23:41:02 CocoStorm, I think you can't Jan 05 23:41:05 Make your own TextView Jan 05 23:41:10 Extend TextView Jan 05 23:41:12 hit enter a few more times Jan 05 23:41:16 I see Jan 05 23:41:36 bankai_, I am sorry. Did that bother you? Jan 05 23:42:16 Now how to know why it gets called so often... Jan 05 23:44:21 CocoStorm: editText.setTypeFace() Jan 05 23:44:38 spobat, that changes the hint too? Jan 05 23:44:49 i'll try it out Jan 05 23:44:55 e.g. et.setTypeFace(Typeface.SERIF); Jan 05 23:44:59 or you load your own typeface Jan 05 23:45:06 spobat, that changes the hint? Jan 05 23:45:13 I think that changes the EditText font Jan 05 23:46:15 autrilla, confirmed it changes hint :D Jan 05 23:46:18 ah, no you can't change the one of the hint Jan 05 23:46:21 oh, okay :D Jan 05 23:46:23 haha Jan 05 23:46:24 thank Jan 05 23:46:24 s Jan 05 23:46:32 It changes both, doesn't it? Jan 05 23:46:35 it's changed implicitly with edittext :) Jan 05 23:46:36 yes Jan 05 23:46:39 I thought you wanted to change only the hint Jan 05 23:46:53 autrilla, ah I see, well ideally but as long as the hint is changed then it's okay Jan 05 23:46:54 then change it iff the hint is displayed :) Jan 05 23:47:37 awesome Jan 05 23:47:38 :D Jan 05 23:47:54 I'm so dumb. Calling notifyDataSetChanged() every time I loaded the view isn't a good idea Jan 06 00:03:26 When I set a touchListener on a list view row view, it negates the default selector highlight. is there any way to stop this or do the selector highlight in code? Jan 06 00:17:44 How do you make it so two viewgroups in a framelayout, if overlapping, will make it so the one viewgroup behind the other will not show through? Jan 06 00:27:56 hi guys Jan 06 00:28:08 i have problems with AVD manager Jan 06 00:28:15 the emulator is not working for me Jan 06 00:28:25 is it maybe a GPU issue? Jan 06 00:35:19 any help about thta? Jan 06 00:44:32 dont use the sdk emulator Jan 06 00:44:35 use genymotion Jan 06 00:50:40 To communicate between a task thread and UI thread I use Handler. The only way to connect two handlers (one of UI and other on the task thread is to instantiate in the UI thread and pass to the task one (with constructor) that is how I'm doing right now. Or there is another way? I tried to instantiate both each in own classes with un new(Looper.getMainLooper()) but when from task thread I send a messag Jan 06 00:50:40 e, the other (on UI thread) doesnt receive nothing. Jan 06 00:51:06 plotino: do you have intel cpu? Jan 06 00:51:26 no Jan 06 00:51:28 amd Jan 06 01:23:39 holy crap, coming back to an in-progress project after a vacation is weird Jan 06 01:26:12 I would like to create a custom actionbar, maybe set the background to of it to an image? What size should I use/ Jan 06 01:30:09 ? Jan 06 01:38:19 I would like to create a custom actionbar, maybe set the background to of it to an image? What size should I use? Jan 06 01:41:25 Does anyone have experience using two SqliteDatabases in one app? I don't suspect there would be any issue running a database smaller than 50MB but I am wondering how expensive or dangerous it is to keep two SQLite connections open at the same time Jan 06 01:41:27 And if there is any possible overhead to it. Jan 06 01:54:52 how big is the actionbar Jan 06 01:55:09 48dp on phones, 40dp in landscape, 56dp on sw600dp Jan 06 01:55:42 or, more accurately, it's actionBarSize from the theme Jan 06 01:56:38 JakeWharton, hmm I want to create a custom actionbar so I want to use adobe illustrator to create an image for it but I'm not sure what size to set it. Jan 06 01:57:53 what's the standard way of doing it? Jan 06 01:58:36 a 9-patch that stretches to the fit the size Jan 06 02:00:00 JakeWharton, in the docs it says 'You'll need the PNG image with which you'd like to create a NinePatch.' Does that mean the background image I want to set? Jan 06 02:02:52 i'm confused. Jan 06 02:09:48 has anyone had problems with the IntelliJ layout preview being inaccurate? Jan 06 02:09:58 JakeWharton said goodbye to ABS today, now in the minSdkVersion=14 club... thanks for everything Jan 06 02:10:13 awesome. congratulations! Jan 06 02:10:43 thx :) Jan 06 02:12:50 what's an ABS? Jan 06 02:13:03 http://abs.io Jan 06 02:13:17 there are a bunch of things the AS preview thing doesn't support Jan 06 02:13:21 but I haven't seen it being innacurate Jan 06 02:13:39 there are some bugs in the newest rendering library too I think Jan 06 02:13:49 but it actually tells you about them and to watch a bug Jan 06 02:21:25 how's your widget coming along, wabz ? Jan 06 02:24:15 all done Jan 06 02:25:11 the worst part is the wrong documentation about onUpdate not being called if you specify a configuration activity Jan 06 02:25:39 it took me ages to figure out what was going wrong there because I assumed that was correct Jan 06 02:26:09 it's also really unclear about how remoteviews/services are cached, I had to check the source to find out what was going on there too Jan 06 02:26:51 I didn't know anything about widgets before, but I didn't imagine they'd be so fiddly Jan 06 02:33:48 JakeWharton: you're the ABS guy? Jan 06 02:34:01 yeah Jan 06 02:34:18 right on Jan 06 02:37:28 hes also the Square guy Jan 06 02:37:29 lol Jan 06 02:38:04 he's lots of guys bundled into one Jan 06 02:39:42 > jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name Jan 06 02:39:47 can someone tell me what alias_name is in this context? Jan 06 02:42:07 the alias in your keystore Jan 06 02:42:48 bankai_: <33 Jan 06 02:49:18 I've dragged my image to the 9-patch tool.. but I don't know wtf I'm doing Jan 06 02:57:02 can anyone help Jan 06 02:57:16 if I'm supposed to make a 9 patch using an image Jan 06 02:57:20 then what image should that size be Jan 06 02:57:31 what size shuold that image be Jan 06 02:57:35 going nuts Jan 06 02:58:42 CocoStorm: it should be the smallest size that the image can be Jan 06 02:59:03 JesusFreke, oh :S Jan 06 02:59:26 afaik (I might be wrong) a ninepatch never shrinks, it only grows. Jan 06 02:59:53 oh I see, hmm and resolution would still be okay? **** ENDING LOGGING AT Mon Jan 06 02:59:59 2014