**** BEGIN LOGGING AT Wed Apr 09 02:59:58 2014 Apr 09 03:05:17 I am having this error: "The following classes could not be found:- android.support.v4.view.ViewPager (Fix Build Path, Create Class)", how can I fix it? Apr 09 03:05:46 import the library correctly Apr 09 03:06:07 What is the proper way to do that? Apr 09 03:19:25 what IDE are you using Apr 09 03:44:31 hm, if depending on screen size / orientation you go from 1 column to multiple columns (of items), do you switch between Listview and GridView, or just Stay with GridView and set #columns=1 in the degenerate case Apr 09 03:45:38 Anyone have a look at those pileup exploits? Apr 09 04:01:59 g00s the latter is what i did Apr 09 04:02:35 but i was enabled drag n drop and it was more useful for the gridview for my implementation Apr 09 04:03:21 g00s: https://www.youtube.com/watch?v=_BZIvjMgH-Q Apr 09 04:03:42 you can apply same principle to gridview if that's a feature you might want to be adding Apr 09 04:07:17 g00s: it shouldn't matter Apr 09 04:12:41 if i need activty reference nfragment more times, it is good pratcie to save activtiy in onAttach method or should I call getActivity ecery time I need it??? Apr 09 04:15:00 is there a nice way to get notifications of a data change in rx? you can do it in RAC, and rx.net ... Apr 09 04:30:53 slani because you probably won't be calling getActivity so frequently you'll create a bottleneck, why add an unnessary field to your class? Apr 09 04:31:29 lasserix JakeWharton thanks Apr 09 04:33:30 what's a good way to style an action bar when a searchview in it is opened Apr 09 04:41:42 bankai_au notification of data change? .. what does rx.net have ? Apr 09 04:42:28 nvm Apr 09 04:43:09 INotififyProperyChanged .... RAC has RACObserve Apr 09 04:44:30 Religious Action Center, wut ? Apr 09 04:44:38 * g00s keeps googling Apr 09 04:44:56 ah Apr 09 04:45:11 ok, switched back to Dalvik Apr 09 04:45:28 a bit faster installs now Apr 09 04:45:39 you having problems with ART ? Apr 09 04:46:15 bankai_au, dex2oat just takes a while on a Nexus S Apr 09 04:49:50 awww g00s i think i hacked a solution :) not sure if i should be proud or disappointed in myself Apr 09 04:51:11 bankai_au what did you do? Apr 09 04:52:21 i used a PropertyChangeListener to monitor variables in an object and emit when a change happened Apr 09 04:52:27 but it's a lot of boiler plate crap i was hoping to avoid Apr 09 04:53:24 oh yeah, that thing Apr 09 04:56:43 but the obvious problem here is, it died during reinstantiation of the object Apr 09 04:56:51 so i'm not sure how well it's going to place with a WS call later on Apr 09 05:10:21 good morning Apr 09 05:16:14 good evening Apr 09 05:16:20 I am curious. With Jit if I have a constructor like public IntSequence(int[] sourceData) { this.intArray = new int[sourceData.length];n5 Apr 09 05:22:01 derp Apr 09 05:22:11 sorry probably with using two keybaords at the same time Apr 09 05:22:15 *problem Apr 09 05:23:04 Hello I had a question on developing an app like a photo collager or something like that Apr 09 05:23:20 Mainly the ones that people use to make Instagram pictures or other edits Apr 09 05:24:05 Not too long ago I was studying Java and aiming to build a more complex app, but what would I need in order to make an app like that? Apr 09 05:25:00 alex_PP looks like Lightroom Mobile was released for iPad Apr 09 05:25:04 A simple app that you can edit an app by adding text, freely draw, add stickers or other shapes? Resize and so on an so forth? Apr 09 05:25:38 Umm anyways I was going to ask this in java but since I derped, here's the post with the question inside: http://pastebin.com/JRmZBUKV Apr 09 05:25:43 Sorry for posting everything in 4 different posts, I forgot that I should post everything in one post. Sorry won't do it again :x Apr 09 05:27:20 g00s: any idea how i could catch a reinstantiation... other than 'just don't do it' ? Apr 09 05:27:57 hopefullyTI you could probably get away with just overriding a canvas onDraw method Apr 09 05:28:17 bankai_au not clear on what you're doing Apr 09 05:28:30 though depending on how far you want to take it you should probably use surfaceview (which would enable gif creation and stuff, with real time playback more easily) Apr 09 05:29:13 HopefullyThisUse: but if you have no idea what i am talking about: first read the developer docs, then make a simple app or two, then look at tutorials on custom views particularly overriding onDraw and drawing on a canvas object Apr 09 05:30:04 g00s: humm ok ... let me try to explain it - i've nailed down observing property changes with propertychange listener, but if i re-create the object, i lose this functionality... so in the situation where i fetch a new GSON object i lose all my listeners. So, i'm looking for a way to monitor the whole object, rather than properties within Apr 09 05:30:27 lasserix: what's the developer docs? Apr 09 05:31:03 bankai_au: oh ... i could just create a local setter method and listen for that -- good idea, thanks Apr 09 05:31:17 bankai_au if you don't have that many properties, i'd make a wrapper for decorator for the object; swap out the inner Apr 09 05:31:27 g00s is my rubber ducky! Apr 09 05:31:36 :) Apr 09 05:31:40 I wouldn't want to take it too far, it would probably be for my own use to help me out with quick editing or if I need to add a small detail like a "sticker" of something. I would want to create something very similar to the app called PhotoGrid Apr 09 05:32:05 HopefullyThisUse: have you created any apps yet? Apr 09 05:32:49 No, I was on the track a few months ago but didn't have anymore time to keep going Apr 09 05:33:02 ahh so Apr 09 05:33:07 So I decided that maybe now I could start back up with something more simple Apr 09 05:33:23 first ask yourself "what is it going to take to make an app that runs without crashing that does something somewhat interesting" Apr 09 05:33:41 when you finish that, you can ask the question you are asking but actually understand the answer Apr 09 05:34:04 problem is you don't have enough expirence (so it would seem) that any answer i can help you with won't be of use since it'll go over your head Apr 09 05:34:19 so again i suggest first just try to make an app a la https://developer.android.com/training/index.html Apr 09 05:34:33 then when you do that, look up custom view / overriding onDraw / drawing on a canvas Apr 09 05:34:40 (those could be the same step) Apr 09 05:34:43 Yeah I just studied a little bit of Java when I stopped Apr 09 05:34:48 that will get you on the direction you want to go Apr 09 05:35:17 Should I study more Java first? Apr 09 05:35:18 via the canvas object, using a custom view by overriding ondraw, you should be able to add a bitmap (the original photo) and then paint on text, other bitmaps (stickers) etc and then save it and share it Apr 09 05:35:28 not necessarily Apr 09 05:35:39 learning android will force you to learn java so... Apr 09 05:35:45 Or just study with that link? Because I remember I was using that website to study before Apr 09 05:36:49 there is no such thing as studying how to program really, you just got to actually program... Apr 09 05:37:09 so yeah use that link and make some app that has a button that makes a wah wah wah (sad trumpet sound) when you press it Apr 09 05:37:31 Okay so to help me out a little bit more (I'm a visual and organized learner that likes to have a detailed plan of what I am going to) what would be the step by step process that I should take? Apr 09 05:37:40 then switch out the wah wah wah sound with an intent (an android thing you will learn about) to pic a picture then go from there Apr 09 05:37:47 just goto that website Apr 09 05:37:49 and make an app Apr 09 05:37:52 follow the steps Apr 09 05:38:23 when you have done that and upload your mildly entertaining hello world app to the store i will be more than happy to walk you through the steps of the next phase if you publish it to the store :) Apr 09 05:38:50 Okay thanks! Apr 09 05:39:31 I still have the programs from before, using NetBeans IDE is all I need right? Apr 09 05:39:44 I'm pretty sure it already has all of the add-ons it needs Apr 09 05:40:50 Oh wait I also have eclipse, which one should I use? Apr 09 05:41:46 eclipse had a standard plugin Apr 09 05:41:52 you can find all this info on that website Apr 09 05:42:06 Okay Apr 09 05:42:09 you can in fact download the latest version of eclipse already configured to do android from that website Apr 09 05:42:43 g00s, yeah, but it blows Apr 09 05:42:43 however there is also another IDE called android studio: some people like it better since it is based on a better ide but at the end of the day it's whatever helps you get the work done the best Apr 09 05:42:54 alex_PP did you try it already ? Apr 09 05:43:01 i can see how it'd be useful at AFP or reuters Apr 09 05:43:03 but not for me Apr 09 05:43:07 And approximately how long will it take to finish the whole process? That way I can make sure to schedule a certain amount of time each day? Apr 09 05:43:11 yeah, last nught Apr 09 05:43:20 HopefullyThisUse: i have no idea that is really up to you Apr 09 05:43:36 and $10 / month!!!!!!!!! Apr 09 05:43:44 if you want to learn the fundementals of bit shift operations and all other stuff as you learn java as you learn android it could take quite a while Apr 09 05:43:45 alex_PP can it connect directy to the camera, or does stuff need to be synced via cloud shit Apr 09 05:44:00 cloud crap Apr 09 05:44:04 god damn it Apr 09 05:44:05 can use camera roll too Apr 09 05:44:11 but reasonably if you have a couple of hours to spend all day and some coding expirience i would say maybe two weeks tops? in as little as a few days? Apr 09 05:44:24 anyways i got to goto the pool before it closes Apr 09 05:44:31 Okay, and which software is probably the BEST to use? Apr 09 05:44:36 lasserix the deep end ! Apr 09 05:44:42 hehe Apr 09 05:44:44 You mentioned two others Apr 09 05:44:47 going to sit and grock a while Apr 09 05:44:50 don't worry about them Apr 09 05:44:58 just focus on those developer training link Apr 09 05:45:04 Okay Apr 09 05:45:07 use eclipse since there is more information if you have a problem Apr 09 05:45:27 Okay thank you Apr 09 05:45:41 I'm going to go sleep, it's almost 2 am here! Apr 09 05:45:50 use intellij if you want *no* problems ;) Apr 09 05:46:10 g00s, basically it works by syncing collections you choose to creative cloud from your desktop install Apr 09 05:46:20 then you can apply filters and presets on the ipad Apr 09 05:46:27 and rate i think Apr 09 05:46:38 fairly limited Apr 09 05:46:55 well, it you can keyword, rate, etc thats very good - but it can't rely on cloud Apr 09 05:47:03 there needs to be some sort of ad-hoc networking Apr 09 05:47:20 wifi direct, or ios has something too Apr 09 05:47:59 don't think it can keyword Apr 09 05:48:06 just falg and unflag Apr 09 05:48:16 and no smart collection support Apr 09 05:48:20 only propepr collections Apr 09 05:49:22 i guess i'll watch it for now Apr 09 05:49:38 i paid ~$100 die LR5 Apr 09 05:49:59 i'd rather get a MS tablet running the real thing Apr 09 05:50:02 so they'd need to release a whole new version every 10 months for it to be worthwhile for me Apr 09 05:50:19 i never feel the need to use full PS Apr 09 05:50:29 SurfacePro with full Lr ;) Apr 09 05:50:38 that'd be better Apr 09 05:50:44 i haven't used Ps. i would use Ai Apr 09 05:51:00 is the windows version as complete as the osx? Apr 09 05:51:19 i don't know how it looks on Metro (Lr) Apr 09 05:51:23 when it was beta the windows bersion lagged behind Apr 09 05:51:28 i suspect it looks like their old stuff Apr 09 05:52:39 i've been looking at eyefi cards again Apr 09 05:52:42 they're pretty cool Apr 09 05:53:34 might get one and actually use my twitter account Apr 09 05:53:40 :o Apr 09 05:53:55 :D Apr 09 05:56:57 holy shit the facebook sdk docs are horrible Apr 09 05:57:10 holy shit everything about facebook is horrible Apr 09 05:57:18 indeed Apr 09 05:58:36 lol Apr 09 05:58:46 dammit i wanted to get a good night's sleep tonight Apr 09 05:59:47 you won't get that dealing with facebook, buds Apr 09 06:03:41 What's a 'good night's sleep?' Apr 09 06:04:08 You see, I said I was going to bed 10 minutes ago and I'm still up Apr 09 06:05:45 WTF FACEBOOK I OPENED THE FKING SESSION Apr 09 06:08:24 the task should never run on a closed session Apr 09 06:08:52 is your callback lying to me? Apr 09 06:13:00 https://plus.google.com/u/0/+Chainfire/posts/LDW4jMjj23Z Apr 09 06:22:48 morning Apr 09 06:26:28 :JakeWharton GalleryDatabase injects GalleryService. GalleryService depends on RestAdapter. RestAdapter depends on Client, Client depends on OkHttpClient. Apr 09 06:26:55 you mean Client in u2020 is retrofit.client.Client? Apr 09 06:27:18 g00s: Hi. I looked at the source code you linked me yesterday. but I haven't found any AsyncTasks :-/ Apr 09 06:38:45 kamol: yes. That dep tree may not be accurate, but it's close. Apr 09 06:38:51 Just follow the dependencies. Apr 09 06:40:38 :JakeWharton ok, I am trying :) Apr 09 06:41:40 let me try from beginning, maybe, I messed up with my code Apr 09 06:44:35 yawn Apr 09 06:48:53 Hello, I've got this fragment: < https://gist.github.com/Technicus/10233006 >, and I want to put into it: < https://gist.github.com/Technicus/10232904 >, which comes from: < http://examples.javacodegeeks.com/android/core/bluetooth/bluetoothadapter/android-bluetooth-example/ >. How can I put these two together? Apr 09 06:50:34 "KitKat, though having only a marketshare of just over 5%, is responsible for half of (my) revenue, while Gingerbread with quadruple the marketshare, is hardly relevant revenue-wise at all" wow Apr 09 06:52:11 lasserix: I'm planning to monetize my apps, how much money on an average does a person make? Apr 09 06:52:28 $0 Apr 09 06:52:42 t4nk741: no idea but if you are looking at average alex_PP is probably spot on Apr 09 06:53:03 hmmm Apr 09 06:54:05 you need to be exceptional to make money, just look back at all the garbage you've installed and then deleted in 2 mins time Apr 09 06:55:24 alex_PP: I've got friends who make a few $ from icon packs though Apr 09 06:55:27 p50 might even be $0 too :) Apr 09 06:55:48 but average can't be $0. that would mean no one makes non-zero. or some folks make negative (?) Apr 09 06:56:08 everyone starts at -$25 Apr 09 06:56:12 i guess technically that's possible since $0 is -$25. Apr 09 06:56:19 $0 might be generous, then. Apr 09 06:56:21 it's probably not a normal distribution Apr 09 06:56:29 make an app, put it out there, wait...probably nothing Apr 09 06:56:57 bbl Apr 09 07:01:20 Unless you're awesome like me Apr 09 07:02:17 Go to sleep frankdrey Apr 09 07:03:44 frankdrey: sleep?! now?! it's 10 AM Apr 09 07:05:47 :JakeWharton I am debuging and comparing U2020, looks like there is an issue with rx.Subscription in my case. Should I enable something to work with rx ? Apr 09 07:05:50 Hi all, somebody experience with osmdroid bonuspack? the routing Apr 09 07:16:59 my xml layout file is http://pastebin.com/f7t6iLRA --- There's a TextView and a GridView with a LinearLayout as a parent. Parent's padding is 15dp but both children are drawn with a 30dp padding :/ Apr 09 07:18:08 what makes you so sure it's at 30dp? Apr 09 07:18:22 uiautomatorviewer :) Apr 09 07:19:58 i think that gives cords in px Apr 09 07:20:14 and 60 px == 30 dp on and xhdpi device Apr 09 07:20:23 *an Apr 09 07:21:10 alex_PP, !! I think you are absolutely right!! thnx ;) Apr 09 07:21:25 i often am Apr 09 07:21:26 ;) Apr 09 07:21:29 :) Apr 09 07:49:04 :JakeWharton it was because of this line `NefeteApp.get(context).inject(this)` https://github.com/kamoljan/Nefete/commit/c4a934c3a28369b8ca6cfc65d384dbc08ddb20a6#diff-c60b547c2d6ee61fbec3f832907b1a05R34 :) btw, thank you for being patient with me Apr 09 07:49:35 What has better performance - private static final vs private final? Apr 09 07:50:42 in what context? Apr 09 08:36:46 Leeds "The First Meal Eaten on the Moon Was Bacon" Apr 09 08:37:06 g00s: NO MOON Apr 09 08:37:21 i KNEW i should have been an astronaut Apr 09 08:38:50 maybe i should volunteer for that mars mission then Apr 09 08:39:02 "unlimited bacon when you arrive" \o/ Apr 09 08:39:14 yeah, but was it space bacon? spacon? Apr 09 08:39:16 thats why the red planet is … red. its made of bacon ! Apr 09 08:39:31 its a huge fffing bacon factory Apr 09 08:39:34 my god... it's full of ham! Apr 09 08:39:38 :D Apr 09 08:52:40 hey guys, do I have to use AsyncTask in order to implement PullToRefresh library? Apr 09 08:53:26 My project uses Volley for network request, so I'm kinda stuck here. Apr 09 08:55:02 I'm not sure how to put Volley request in onRefreshListener method Apr 09 08:57:15 wait, nevermind Apr 09 09:01:15 hi, i need google play api search, are there some official or unofficial api? Apr 09 09:09:59 hy all Apr 09 09:10:14 what is the minimum requirement of API level for the support of NFC? Apr 09 09:16:53 http://stackoverflow.com/questions/5863919/use-nfc-in-android-2-1 Apr 09 09:17:01 what does it mean? throught reflection? Apr 09 09:17:06 what is it? Apr 09 09:18:56 gregtom6: the android.nfc package was added in API 9 Apr 09 09:19:29 and there's no reason to support anything below 10... Apr 09 09:20:42 Leeds: thx Apr 09 09:29:34 trying to build someone else's project, i get this error: Error:Module 'app': platform 'android-10' not found. Apr 09 09:29:42 minsdkversion is 7, target is 19, what's with the 10 ? Apr 09 09:30:07 If it build against 10, you must either change that, or install 10... Apr 09 09:30:40 but i don't Apr 09 09:31:00 It uses gradle? Apr 09 09:31:14 yes Apr 09 09:32:50 And there's no mention of API level 10 anywhere in the project? Apr 09 09:32:55 hmm i think cosmic rays flipped a bit and now it works Apr 09 09:33:06 nope, i guess it needed a thorough clean or sth Apr 09 09:33:10 thakns :0 Apr 09 09:33:37 Damn those butterflies... Apr 09 09:35:40 hello guys, I have a problem with the android emulator. I want to debug some sharing in my app and if I click share on my real phone an option appears wih something like "copy to clipboard". This option is not available on the emulated device, wha can I do? Apr 09 09:36:22 Same API level? Both stock android? What do you need it for? Apr 09 09:37:13 If you depend on letting your users copy to the clipboard, use the Context Action Bar, not sharing. Apr 09 09:39:52 @serrghi I'm using the context action bar Apr 09 09:40:43 @flan3002 emulator runs on lvl 17, real device is a nexus 4, how o I display the api level there? Apr 09 09:41:42 FillFeile_: You don't display, you know (Most of the time). You can of course look up the android version in Settings»About. Apr 09 09:41:57 @flan3002 ah I see, nexus seems lvl 19 Apr 09 09:42:24 What do you need that for? Apr 09 09:42:50 the copy to clipcoard stuf?? Apr 09 09:43:11 Yeah. Apr 09 09:44:19 to allow the user sharing data out of my app with the clipboad. why this question? Apr 09 09:46:45 Well, if you that is a feature™, that you specifically need, you shouldn't imply that the android version/modification has that copy to clipboard thing. You should put a button into the CAB, to explicitly copy the selected data. Apr 09 09:46:54 *~you~ Apr 09 09:46:57 I'm trying to play a sound when first clicking a spinner. OnClickListener crashes, onTouchListener spams the sound. any idea what might work better? Apr 09 09:47:33 OnClickListener crashes is not very descriptive... Apr 09 09:48:29 It crashes and tells me to use OnItemClickListener instead... which also crashes. basically they're not allowed for spinners. Apr 09 09:48:52 how does it 'tell you' that Apr 09 09:49:01 via the exception message Apr 09 09:49:31 well, what is the exception message Apr 09 09:49:31 FillFeile_: Or you could ship your own 'Copy to clipboard' intent, although that's no good way, because if everyone did that, we'd have bazillions of 'copy to clipboard' options... Apr 09 09:52:36 Syzygy: onTouchListener spams the sound: This is because onTouchEvents also get fired for other things than touching down on the view. You also get a touch event on lifting your finger, for example. You should only play the sound, either on touch down, touch up. Apr 09 09:53:02 yuizy, java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead Apr 09 09:53:12 flan3002, thanks, that actually helps a lot. Apr 09 10:06:15 Syzygy: Works? Apr 09 10:06:36 any idea how to change the text color of a number picker? Apr 09 10:06:36 yes Apr 09 10:06:49 adding a style to it is not taking any effect Apr 09 10:08:31 Guys, I need help. I'm struggling here. Apr 09 10:08:54 I've searched google but I can't find the answer. HOW do you access your UI elements via code? Apr 09 10:09:16 impossible to google that and not find an answer Apr 09 10:09:36 No, you see, I've found ways to CREATE NEW ui elements Apr 09 10:09:39 but not access existing ones Apr 09 10:09:51 uh Apr 09 10:10:23 in .NET it's much simple - you just go uiElement.DoStuff() Apr 09 10:10:38 but fuck knows how to do it in java/android Apr 09 10:10:41 Koolaids- perhaps try tutorial 101 Apr 09 10:10:46 Koolaids-: you create them in xml and access them in java, there are many examples online Apr 09 10:10:49 Google "android ui find view by id" Apr 09 10:12:01 .net Apr 09 10:12:02 haha Apr 09 10:12:06 use .net then Apr 09 10:12:16 there's a way you can use .net for Android, google that Apr 09 10:13:40 Or just dont, it's not hard to manipulate the android UI. Apr 09 10:27:56 dot what ? Apr 09 10:28:10 .net .. you know ... the internet ... Apr 09 10:34:15 it's cool i figured it out Apr 09 10:35:29 http://th09.deviantart.net/fs70/PRE/i/2012/185/9/8/the_internet_by_surlana-d261zl2.jpg Apr 09 10:36:10 yozilla lol Apr 09 10:37:28 hey thats TheBigRedButton Apr 09 10:38:16 g00s or little red light on a big black box Apr 09 10:38:45 trying this answer: http://stackoverflow.com/questions/4153517/how-exactly-does-the-androidonclick-xml-attribute-differ-from-setonclicklistene Apr 09 10:39:14 but i get: IllegalStateException: Could not find a method joinTurny(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.ImageView with id 'r1c2' Apr 09 10:39:17 any help? Apr 09 10:40:04 I’ve made public void joinTurny(View v) in MainActivity.this from which I’ve created the dialog, like so: m_ChooseGameDialog = new ChooseGameStatic(MainActivity.this); Apr 09 10:42:11 http://stackoverflow.com/questions/18817706/illegal-state-exception-application-cant-find-method-defined-in-class Apr 09 10:42:30 seems i need to set on click listener for all the button.. i hope i can do that in the xml also, otherwise sort of defeats the purpose Apr 09 11:16:06 what's the ID of the edit text that's inside a number picker Apr 09 11:16:36 editFromNP = (EditText) np1.findViewById(Resources.getSystem().getIdentifier("numberpicker_input??","id", "android")); Apr 09 11:16:49 how can I find out what its called Apr 09 11:21:15 Sicp: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/NumberPicker.java#L675 Apr 09 11:21:30 it's numberpicker_input Apr 09 11:22:48 But on froyo it's https://github.com/android/platform_frameworks_base/blob/froyo/core/java/android/widget/NumberPicker.java#L210 Apr 09 11:23:01 timepicker_input Apr 09 11:23:41 and every smartphone manufacturer can use it's own ids, so.. Apr 09 11:23:49 let me just check Apr 09 11:23:57 I just want to change the numberPicker's textColor Apr 09 11:24:04 no one seems to know how, actually Apr 09 11:25:45 neither numberpicker_input nor timepicker_input have been able to get the view I need Apr 09 11:26:10 its changed from some theme attributes if i remember correctly Apr 09 11:26:15 Sicp Apr 09 11:26:29 I tried setting a style for it Apr 09 11:26:36 Sicp: http://stackoverflow.com/a/15032921 seems to be not "themable" Apr 09 11:27:42 I'll try that lib Apr 09 11:27:49 ah Simon's Apr 09 11:27:50 Sicp: hold your horses Apr 09 11:27:50 great Apr 09 11:28:08 why would I want to keep digging.. Apr 09 11:28:12 seems blocked Apr 09 11:28:25 because i think i have a solution thats simple Apr 09 11:29:05 there's this thread I'm referring to for the ID, http://grokbase.com/t/gg/android-developers/1287p4zckr/changing-text-color-font-for-datepicker-widget/oldest Apr 09 11:29:08 but that ID doesn't hold Apr 09 11:29:38 the other way is to simply ignore the id all together Apr 09 11:29:46 just get the first child view that is a EditText Apr 09 11:30:52 childAt(0) is null Apr 09 11:31:33 Sicp: are you using NumberPicker in your own layout? Apr 09 11:31:54 yea Apr 09 11:32:20 Napalm: neat idea Apr 09 11:32:58 yea.... Apr 09 11:33:01 hold on :) Apr 09 11:35:00 getting the first child is successful Apr 09 11:35:30 now its white text color Apr 09 11:35:42 so, fixed? Apr 09 11:35:54 yea Apr 09 11:36:12 should post this somewhere on SO, there is no mention of it on any of the links that pop up as first results Apr 09 11:37:27 hey...it only changes the first number/letter that appears in that picker Apr 09 11:37:35 if you scroll it it's back to black! Apr 09 11:37:48 this happened with the ID (just tried) and with getChildAt(0) Apr 09 11:37:54 one moment Apr 09 11:38:00 hi, i made an activity with a 9patch windowBackground which is displayed as dialog with a simple layout (LinearLayout with a TextView as title, second element would be the content). Now i want to make it reusable. A custom activity which i can inherit from which automatically uses the dialog theme with the custom windowBackground and the setContentView in onCreate should be set as the second element of the linear layout. Is this po Apr 09 11:39:13 Sicp: it does have a layout attribute Apr 09 11:39:54 Sicp: one moment, will give you some code Apr 09 11:41:01 When I create a new object using JNI and pass it to a Java function and then assign it to a variable, is the object still alive once my JNI code leaves the scope? Apr 09 11:43:15 Serus: If it is allocated on the stack? Apr 09 11:44:28 It's allocated using NewObject Apr 09 11:45:07 Sounds like a good thing to try in a short example... Apr 09 11:45:52 I don't know if CallVoidMethod is blocking or not Apr 09 11:46:10 I hope it is Apr 09 11:47:55 well "numberpicker_input" seems to be the id of the editText when a value is selected inside the numberPicker, because normally they are all the wrong color, except for when the activity has first started (and the first value is automatically selected) Apr 09 11:48:09 the rest are wrong color, up until you scroll to them and press, then they become the color I want Apr 09 11:49:40 Sicp: https://gist.github.com/slightfoot/10259668 does that work? Apr 09 11:49:49 checking Apr 09 11:51:35 it has no effect Apr 09 11:51:41 but no errors either, no crashes Apr 09 11:52:20 even after use? Apr 09 11:52:33 the code reads well, it should work Apr 09 11:53:21 Serus: Please stop. I'll get nightmares tonight just because you mentioned asynchronous method calls like this. That would be terrible. I don't know a lot about JNI, but it sounds like it would be synchronous and NewObject sounds like it would create the object on the Java heap. Apr 09 11:53:27 strange, nothing Apr 09 11:53:40 Sicp: Same problem as before? after you use the EditText the colors don't change? Apr 09 11:53:54 it has no effect, not even when at the beginning Apr 09 11:54:16 ah shit Apr 09 11:54:17 my bad Apr 09 11:54:23 wasnt paying attention Apr 09 11:54:29 one moment will update the gist Apr 09 11:55:49 Sicp: try again, https://gist.github.com/slightfoot/10259668 Apr 09 11:57:59 I am reading: < http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-Configurations > on how to turn off debug for uploading to google play, but this is cryptic to me. How do I turn off debugging to compile for google play with android studio? Apr 09 11:58:59 flan3002: it does return a jobject, so you might be right Apr 09 11:59:51 yea that works Napalm Apr 09 11:59:55 Technicus: I'd bet that the default for assembleRelease is debugged set to false Apr 09 12:00:03 *debug Apr 09 12:00:08 where'd you get a hold of that Apr 09 12:00:24 Sicp: me? Apr 09 12:00:38 yea I mean how'd you find such methods and etc.. Apr 09 12:00:45 ansgarm: where is that? Apr 09 12:00:49 Sicp: i just wrote it Apr 09 12:00:59 yea but HOW dude! Apr 09 12:01:00 lol Apr 09 12:01:00 Technicus: where's what? Apr 09 12:01:20 no idea why you used Field.. mSelectorWheelPaint? Apr 09 12:01:24 Sicp: i looked at the NumberPicker source code Apr 09 12:01:35 ah ok Apr 09 12:01:37 well thank you Apr 09 12:01:44 ansgarm: I do not understand where assembleRelease is? Apr 09 12:01:52 should post on SO Apr 09 12:01:55 tons of rep! Apr 09 12:02:08 Serus: True, and to me, it's the only thing that makes sense for such a method name. What are you doing with JNI? Apr 09 12:02:15 then post a question, and I'll post the answer Apr 09 12:02:20 Sicp: ^ Apr 09 12:03:05 Technicus: thats a gradle task Apr 09 12:03:19 you execute ./gradlew assembleRelease Apr 09 12:03:26 flan3002: And now I have to explain this again :| But long story short, make a lua <-> java bridge for our game engine so we can easily work with Java specific SDKs Apr 09 12:03:45 ansgarm: gradle is confusing me, >< Apr 09 12:03:47 or just gradle assembleRelease depending on whether you use the gradle wrappe Apr 09 12:03:50 *wrapper Apr 09 12:03:55 Cool! With the tooling? Apr 09 12:04:01 hmm? Apr 09 12:04:21 Serus: I mean, does it autogenerate the bindings? Or doesn't it need them at all? Apr 09 12:04:33 We use jnlua for that Apr 09 12:04:50 but I had to fix some synchronization problems Apr 09 12:05:17 since we need jnlua to attach to the existing lua state before any code is executed Apr 09 12:05:25 and not have it create it's own state Apr 09 12:06:10 * flan3002 notes down to play with lua at some point. Apr 09 12:06:33 So that's what I'm doing now, create a jnlua/LuaState object using JNI and then pass the object to the nativeactivity. Apr 09 12:06:50 so in theory everything should work :P Apr 09 12:07:17 Is it "just a game engine" or is there a specific game behind it? What genre? Apr 09 12:07:33 I'm not allowed to talk about it Apr 09 12:07:51 Nasty... Apr 09 12:07:56 I have a problem that onFocus plays a sound in my case, but when i call finish, all views that have on focus are called rapidly. Can I avoid that somehow? Apr 09 12:08:34 ansgarm: where does it put the apk? Apr 09 12:08:38 Just set a flag to ignore that event after finish? Apr 09 12:08:51 anyway flan3002, I personally wouldn't go with lua because it's mainly sequential programming and simulating OOP is meh. Apr 09 12:09:04 Angelscript seems nice and it has a form of strong typing Apr 09 12:09:20 so it's not a single local keyword Apr 09 12:09:23 Napalm, http://stackoverflow.com/questions/22962075/change-the-text-color-of-numberpicker Apr 09 12:09:27 Hey does anyone know what happens if i have an animation with a duration of 1000 and in its animation listener onAnimationEnd I set the view it is animation to view.gone, but the activity was closed in that second? will it auto handle that or do I have to check? Apr 09 12:09:43 hi. i have a question regarding in app purchase in android app. my company is located in croatia and for that reason we cannot receive payments beacuse croatia is not on supported country list for google payout. so we wanted to implement tapjoy offerwall in order to enable our users can buy items inside the app. my concern is would that be violation of new Google Play Developer Program Policy which started on march, 28th? Apr 09 12:10:18 lasserix: it will handle it your animationListener will get a onAnimationCancel called on it Apr 09 12:10:31 Serus: I heard it is great for seperating data and code (code being data). What's wrong with 'sequential programming' for game scripting? Apr 09 12:10:39 lasserix: it happens for any view when its detached Apr 09 12:10:54 flan3002: That depends on the person Apr 09 12:10:57 Napalm: but does it mean if i dont do something else, it'll crash out if i try and alter the view its animation after the view was detached? Apr 09 12:11:08 It's just my preference to program OO Apr 09 12:11:17 Hi, I'm trying to structure my views in Android studio(activities/fragments) but if I create a subfolder in the layouts folder and move e.g. an activity there it gives me an "URI is not registrered" error, How do you solve that? Apr 09 12:11:24 lasserix: depends on the view Apr 09 12:11:27 cuks1, there was a guy from Croatia which got his app removed due to collecting PayPal money in the app like a few months ag Apr 09 12:11:28 o Apr 09 12:11:45 lasserix: most views will be ok. Apr 09 12:11:46 pro9: You don't divide the resources folders into subfolders. Apr 09 12:12:11 its a progress bar Apr 09 12:12:13 pro9: How many layouts have you actually got there? Apr 09 12:12:26 should i check if it is attachedtowindow anyways? Apr 09 12:12:43 flan3002: about 20 Apr 09 12:13:20 Mavrik, we're not collecting money. we just wan't to enable our users to buy virtual items inside the app. for example, if the do not have enough credits they can achieve them by going to tapjoy offerwall. Apr 09 12:13:34 pro9: And they're all unique? 20 sounds okay. I asked becauce I saw people hardcode the data into hundreds of copies of layouts. Apr 09 12:13:39 pro9: dont use folders use subpackages Apr 09 12:14:17 flan3002: its a mix of activities, fragments and "items" Apr 09 12:14:48 pro9: you want to use subpackages to visually unclutter your code definitions, based on their association Apr 09 12:15:25 lasserix: Now I guess this is very basic stuff, but isn't a folder = package? Apr 09 12:15:54 for instance lets so you have main activity you might do com.myapp.main (where the activity lives) then com.myapp.main.fragments (where all fragments used in main activity live) and also com.myapp.main.items (where all item sets live) Apr 09 12:16:03 not exactly Apr 09 12:16:30 lasserix: Ahha, I guess it just is the same in the actual file system Apr 09 12:16:31 flan3002: Nothing wrong with it, but I just prefer to program object oriented Apr 09 12:16:48 but since folders can mean many things, i use package to specify java hierarchy Apr 09 12:17:27 lasserix: I will create sub-packages, thanks for the help Apr 09 12:17:38 Serus: Sure, but then again it depends if you do a 3d game with lots of stuff, or a simple 2d platformer/puzzle. Apr 09 12:17:44 pro9: alternatively based on how you reuse the code definitions because of access modifiers you might want to do com.myapp.activities com.myapp.specialfunction (where fragments a and b live with items x y z) Apr 09 12:18:01 flan3002: Still personal preference imho Apr 09 12:18:24 lasserix: Ye, I will have to consider that Apr 09 12:18:38 pro9: easiest way I have found to do this, is actually ALWAYS create everything in your "root" and when it becomes obvious to fork a subpackage to group some things, do it then, that way you don't have to end up refactoring all your access modifiers Apr 09 12:19:19 lasserix: ye, that sounds like a good advice Apr 09 12:19:33 can someone else answer or help me with this question please: hi. i have a question regarding in app purchase in android app. my company is located in croatia and for that reason we cannot receive payments beacuse croatia is not on supported country list for google payout. so we wanted to implement tapjoy offerwall in order to enable our users can buy items inside the app. my concern is would that be violation of new Google Play Developer Program Poli Apr 09 12:19:33 cy which started on march, 28th? Apr 09 12:19:41 Serus: In the most extreme case, Pong doesn't really need OO. But of course, personal preference is a good way to decide for/against OO as well. Note that I'm not against OO here, but probably don't have written enough Lua to see that it's OO sucks. (Metatables are weird, yes) Apr 09 12:20:21 cuks1: Mavrik already answered your question, I think... Apr 09 12:20:46 flan3002: sucks is not the correct way to describe it, but the syntax kinda goes against what you've learned with other OO languages. Apr 09 12:20:58 so clunky is a better description Apr 09 12:21:16 cuks1: Or you just read the whole damn thing... Apr 09 12:23:01 flan3002: yes, he answered, but my question does not have anything with paypal Apr 09 12:23:46 Serus: Well, Lisps do use a different notation for everything. Personal preference again. Apr 09 12:24:04 is it possible to use google directions inside osmdroid map? don't know how it can be done with the point Apr 09 12:24:45 flan3002: yep Apr 09 12:25:14 Napalm: thanks for the help time to catch some shut eye before work in a bit ;p Apr 09 12:30:19 Anyone else has abysmal speed when debugging? Like 1000x slowdown for just one breakpoint? Apr 09 12:37:35 flan3002: yeah Apr 09 12:37:48 but this might be an issue of harddrive fukk Apr 09 12:37:50 full* Apr 09 12:37:56 on my side :P Apr 09 12:40:33 hi, i want to create an own component (like TextView) and then use it like CONTENT but add some additional buttons/etc around the content (mycomponent should add these). Can i do that by inherit from ViewGroup? Apr 09 12:40:52 Serus: It is really annoying. I've come to like the source-level debugger and now I can't use it because it is too slow and the problems disappear when the code runs too slow... -.- Apr 09 12:41:09 try genymotion Apr 09 12:41:26 flan3002: Are you on windows? Apr 09 12:42:28 debugging on linux is orders of magnitudes faster for me and me a happier developer Apr 09 12:43:21 No. I't not even the emulator. I debug a Nexus 5, and I think the bottle neck is the tons of instruction needing to be checked via the USB (2.0) cable. Apr 09 12:43:45 Also, I'm running ART, which might not be optimized for this stuff yet.. Apr 09 12:44:07 Sicp: I've posted a solution to one of your other SO questionsa Apr 09 12:44:09 But battery really rocks with ART. Apr 09 12:44:31 flan3002: there's also the problem that the java debugger can't debug ART binary Apr 09 12:44:48 so it drops to at best JIT (and probably to interpreted mode) Apr 09 12:45:15 Well, I though there'd be a compatibility layer... Apr 09 12:45:38 It actually explains the speed! Apr 09 12:45:47 Damn. Apr 09 12:45:49 Do you know if android/some website has a number of finished icons that you can use in your app? I only found a generator: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Apr 09 12:46:11 flan3002: ART-generated binaries are probably too different to emulate Java debugger interface Apr 09 12:46:29 pro9: There's a website with numerous good icons for some dollars... Forgot the name. Apr 09 12:46:34 flan3002: I know you're debugging an android device, but I mean, what's the operating system you're debugging from Apr 09 12:46:40 thanks :) Apr 09 12:46:44 very old question, but still Apr 09 12:46:50 Serus: Arch linux 64 bit. Apr 09 12:47:03 Well, that should be fine Apr 09 12:47:15 I only experience the slow debugging problem on windows Apr 09 12:47:22 flan3002: Ok, I'll try and see if I can find it, let me know if you remember the name Apr 09 12:47:43 Yeah. It probably is this slow because of the interpretation. Apr 09 12:48:02 pro9: I'm sorry, I can't google it, because my connections really slow... -.- Apr 09 12:48:27 The google page needs minutes to load. Apr 09 12:48:29 hmm I saw other people bumping into this situation too -> https://groups.google.com/forum/#!msg/android-gcm/g7P-6jsa-pU/HjWj87C3GsQJ Apr 09 12:48:36 Luckily IRC is a thin protocol. Apr 09 12:48:38 flan3002: No problem :) Apr 09 12:48:47 does google invalidate GCM tokens ? Apr 09 12:50:08 Hi everyone, could someone help me with Swipe Views? Apr 09 12:50:33 I tried getting Swipe Views working in my application which is currently using a navigation drawer Apr 09 12:51:23 I got it working, however it was then displayed for every other fragment for the navigation drawer Apr 09 12:51:27 pro9: Okay, google loaded: androidicons.com Apr 09 12:51:39 pro9: Note that I haven't yet loaded that page. :) Apr 09 12:51:56 Is there a way to get Swipe Views working for inside a fragment? Apr 09 12:52:17 So I'll be using a fragment which will have 3 fragments inside it to get the Swipe Views working Apr 09 12:52:18 flan3002: haha, thanks :) It seems like the right one :) Apr 09 12:52:56 flan3002: if you're curious, I believe gdbserver is available on the device, though you might need root :> Apr 09 12:53:30 p_l: I just rooted days ago. ;) Apr 09 12:58:41 p_l: What exactly does gdbserver do, and how could it help me? 'find / -name gdbserver' didn't show any files with that name... Apr 09 12:58:55 ah, maybe only some ROMs had it Apr 09 12:59:28 it's essentially server variant of GDB (GNU Debugger), which you can connect to from another machine Apr 09 12:59:46 requires first setting a lot of stuff to get right libs etc. but allows you to debug native code Apr 09 13:00:03 Oh, then I doubt it is in the stock ROM... Apr 09 13:00:15 flan3002: well, I thought I had seen it in stock :) Apr 09 13:00:57 do the developers of the Emu messaging app idle here? Apr 09 13:01:03 if so, id like you to know you're a bunch of pussies Apr 09 13:01:13 http://techcrunch.com/2014/04/06/the-fallacy-of-android-first/?utm_campaign=fb&ncid=fb Apr 09 13:01:14 lol Apr 09 13:01:59 Hah, read that too... I wouldn't word it that way, but I think as well that they shouldn't have dropped Android... Apr 09 13:04:16 they can do what they want, i just thought their underlying thought process was the actual fallacy Apr 09 13:04:35 sabton: well.. they went with trying to play the MMS game Apr 09 13:05:22 yes and was their #1 "reason" for abandoning Android Apr 09 13:05:33 that is a technical challenge though, not a fallacy for dev on Android Apr 09 13:05:51 unless you are building MMS apps Apr 09 13:05:57 while I'd agree on some stuff... playing the SMS/MMS game automatically puts you between two hypersonic anvils Apr 09 13:07:20 maybe they could write an article on that particular subject then Apr 09 13:08:30 i suppose the article itself is interesting, except it was then spun into a sensationalized headline and general premise that Android dev sucks and here's why Apr 09 13:08:48 aka standard "journalism" Apr 09 13:09:27 right but this article is by the Emu co-founder ;) Apr 09 13:09:34 so what's his angle? Apr 09 13:09:49 same i guess, attention Apr 09 13:10:24 folks hate to just ask this but this has been bothering for the past hour. I ran some SQLite code through an online validator, however the same code, refuses to execute on my local android environment. Apr 09 13:10:37 does any of you see anything wrong with this? Apr 09 13:10:50 Caused by: android.database.sqlite.SQLiteException: near "(": syntax error (code 1): , while compiling: CREATE TABLE availableVouchers(obj_id INTEGER PRIMARY KEY,userId INTEGER(5),voucherType VARCHAR(100),issued DATE,expires DATE,voucherValue DECIMAL(5,2),amountINTEGER(4)); Apr 09 13:10:51 I just do not see where the issue is. Apr 09 13:10:57 sabton: don't underestimate the power of editor Apr 09 13:11:04 (and PR dept) Apr 09 13:11:40 word Apr 09 13:11:44 why is this a top developer? Apr 09 13:11:45 https://play.google.com/store/apps/developer?id=MetaMoJi+Corp. Apr 09 13:11:54 the apps barely have a few downloads Apr 09 13:16:25 smart_ptr arbitrary friendlies in Google Ranks Apr 09 13:17:05 hey guys, i`m developing my first android project and would like to know if this is the right way of doin (before overtaking this into all future projects): I want to create "Settings" (startable from menu) for my app and thought of making a settings class, creating a settings-object in my MainActivity (which is accessible for other classes with get/set-method) and starting a listactivity (the settings-activity). In my setttings ListActivi Apr 09 13:17:12 I need those too :b Chainfire Apr 09 13:17:38 who doesn't ... Apr 09 13:17:48 smart_ptr: hmm... >100k on one app, with pretty good ratings... Apr 09 13:18:37 seems a bit short of several >millions app with 4.5+ ratings Apr 09 13:18:39 it is good, but nothing related to "top developer" in my opinion :/ Apr 09 13:18:49 for that, 100k is nothing and 4.1 is "normal" in my opinion Apr 09 13:18:50 as used to be the 'alledged' requirement Apr 09 13:19:18 dunno why, but I have a feeling it's a bit regional Apr 09 13:19:34 Do you guys read the reviews from time to time? Hilarious. Apr 09 13:19:37 point still is, you need to get some community manager or Play team guy to like you Apr 09 13:19:57 unless you are Facebook or Twitter or the likes Apr 09 13:20:19 Morning Apr 09 13:20:34 Chainfire: true :b Apr 09 13:21:34 Chainfire, that definitely seems true, I've heard that from many people Apr 09 13:22:32 well at has to be, as they're the only ones who can give the badges out, and there's no official way to apply ;) Apr 09 13:22:44 You want to set that all up before you launch, because that first week seems to be the most crucial Apr 09 13:23:06 to get featured Apr 09 13:23:45 well getting a top developer badge or being featured are different things Apr 09 13:23:54 yeah Apr 09 13:24:32 I have yet to release my app, the website version is launched, but I'm first trying to figure out who and how to market it Apr 09 13:25:12 I've tried facebook ads and adwords, but my CTR so far has been pretty bad Apr 09 13:25:35 Yeah, who really clicks on ads... Apr 09 13:25:55 Especially on facebook. Apr 09 13:27:50 you get picked to be featured as well, they send you some question to answer, etc Apr 09 13:27:57 never seen my apps get featured though Apr 09 13:28:30 That probably has another reason than quality... Apr 09 13:29:48 I mean, IIRC you got apps like TrianglyAway, SuperSU or stuff, right? It's quite sensible to not feature root stuff. Apr 09 13:30:50 oh right Apr 09 13:31:09 but they've sent me emails asking me if it was ok to feature one of my non-root apps several times, never seen it actually happen though Apr 09 13:31:21 * Chainfire shrugs Apr 09 13:31:56 I once read "This app sucks. I'd give it 5 stars if you could improve so that it doesn't need root". Kept me laughing for minutes. Apr 09 13:32:30 That'd happen if they's feature your apps! Apr 09 13:32:38 *That'd happen if they'd feature your apps! Apr 09 13:37:54 When putting an app on Google Play, do you need to have your own Web site/file repository or can you put everything on a Google Play server? Apr 09 13:38:34 define ”everything” BWestOz Apr 09 13:39:36 cezium, the downloadable app & description page Apr 09 13:39:47 The apk and obb files are hosted for you. You can use Google Drive to store some of the applications data online and you can use GCM for communication Apr 09 13:39:49 cezium, thanks for replying by the way Apr 09 13:40:04 That should be on google play. Apr 09 13:42:51 I'm trying to understand all the requirements for putting an app on google play but there's rather a lot of info Apr 09 13:44:26 Yes, I was very cautious at first as well. Apr 09 13:45:23 You only need your own server if you do any custom communication/hosting for your app. Trivial apps don't need an extra server. Apr 09 13:45:47 BWestOz: I sent you the meta data requirements Apr 09 13:46:09 to much to flood the channel with… Apr 09 13:46:12 flan3002; thank you. I'm planning on starting with a trivial app, it's a game I built with unity Apr 09 13:46:12 cezium, thank you Apr 09 13:47:29 Many thanks both of you Apr 09 13:47:44 good luck with your project :) Apr 09 13:49:14 I'm wondering about the High Res icon. I've made everything in gimp. I'm really a programmer not a graphic designer. Apr 09 13:49:26 * frankdrey is going to act like a play store reviewer for the next few minutes Apr 09 13:50:21 BWestOz, well u SHUD aren't u smart, lern how to use paint Apr 09 13:51:13 er, right Apr 09 13:51:22 BWestOz: True story, my app icons suck as well. I haven't seen yours, but I shouldn't show you mine. Apr 09 13:51:41 It says for the icon, Use a distinct silhouette. Three-dimensional, front view, with a slight perspective as if viewed from above, so that users perceive some depth. Apr 09 13:51:59 Chanfire app sucks, it say root. Not everyone has root! Y does he do this to us? Why can't he just turn off rot!!! Apr 09 13:52:09 (This is fun) Apr 09 13:52:20 BWestOz, check out Inkscape Apr 09 13:52:33 I wouldn't design icons in GIMP Apr 09 13:53:07 Not? I consider GIMP much better for that sort of stuff. Though I admittedly did my last icon in Blender... Apr 09 13:53:16 Lol Apr 09 13:53:51 Question I have for you is *how* do you make an icon in GIMP? Apr 09 13:53:56 paint it? Apr 09 13:54:20 Depends on icon. Apr 09 13:54:44 I think non-vector graphic icons are ugly :p Apr 09 13:54:49 I just created a bunch of cheesy sprites and sprite sheets using gimp. They look good enough but I'm sure they would be better if created by a proper graphic designer Apr 09 13:54:51 Stuff like the Google+ or Facebook icon should be trivial in both. Apr 09 13:55:22 I'd say those icons would be easier in Inkscape Apr 09 13:55:25 But I usually just go high-res enough so that you can't recognise it's not vector graphics. Apr 09 13:55:55 Shrinking raster graphics looks just as bad Apr 09 13:56:10 But then again, I'm ashamed about my icons, so you shouldn't listen to me... Apr 09 13:56:20 Lol Apr 09 13:56:42 No really, I should just stay with 2d text next time... Apr 09 13:56:43 Then again for me, I've made 1 icon :p Apr 09 13:57:01 what graphics file format should one save vector images in? Apr 09 13:57:01 Looks good? Apr 09 13:57:08 svg? Apr 09 13:57:15 Though I deleted that project so I don't have it to show again Apr 09 13:57:42 BwestOz, for further editing, svg. But you'll want to export the different DPI pngs for android Apr 09 13:58:37 I notice you have to provide 5 or 6 different size icons. I assumed they must be raster Apr 09 13:58:52 Yeah the final product has to be raster Apr 09 14:00:06 unfortunately, there aren't any good vector editors out there ;) inkscape is a train wreck Apr 09 14:00:12 *affordable Apr 09 14:00:14 Meh Apr 09 14:00:17 not even free. Apr 09 14:00:19 Better than GIMP imo Apr 09 14:00:28 I'm also trying to find out about ad-networks; eg admob, revmob etc. The ones I've looked at don't seem to have a lot of doco Apr 09 14:00:54 I remember trying to use inkscape with a tablet once and gave up and used something else Apr 09 14:00:55 If you use that one network that does notifications I will murder you Apr 09 14:01:14 If you ads: Don't. Make. Banner. Ads! Please. Apr 09 14:01:18 I'd like to do the monetization thing Apr 09 14:01:38 flan3002, what else is there? Apr 09 14:01:42 I think best is extra content via IAP. Apr 09 14:01:44 I figure interstitual would probably be less intrusive Apr 09 14:02:27 * flan3002 didn't make a single cent on Google Play, and hasn't tried. Apr 09 14:02:48 You made $-25 Apr 09 14:03:24 I doubt I'd make any money but I'd get a tax benefit Apr 09 14:03:50 So anyone prefer a particular ad network? Apr 09 14:05:24 I'm inclined to go with Admob Apr 09 14:06:01 Is talking ad networks in this channel a bit sacraligeous? :) he he Apr 09 14:06:18 Why would you get a tax benefit? Apr 09 14:06:33 expense claims. Apr 09 14:06:37 i think the IRS feel sorry for android devs Apr 09 14:06:54 I'm in Australia Apr 09 14:07:16 being an android dev lets you add something on the itemized deduction Apr 09 14:07:23 * frankdrey moves to Australia Apr 09 14:07:25 :) Apr 09 14:07:28 I don't get taxes Apr 09 14:07:44 I probably should figure em out soon, I'm almost 18 Apr 09 14:07:53 If I earn 50c on Google play and claim an ink cartridge or something, I'm ahead! Apr 09 14:08:21 Obviously there's the small matter of eating Apr 09 14:08:44 Do you need to lose any weight? Apr 09 14:09:11 I'm going the right way about it huh!? Apr 09 14:09:36 Well I'll keep my flappy bird fantasy alive for the moment anyway Apr 09 14:09:53 You're doing another Flappy bird? Apr 09 14:09:59 A scroller Apr 09 14:10:06 Oh come on... Apr 09 14:10:24 What do you mean by scroller? Apr 09 14:10:37 2D scroller game Apr 09 14:10:52 Yeah, but with FB setting, or what? Apr 09 14:10:57 mario etc Apr 09 14:11:17 Okay... That's better. Apr 09 14:11:25 no, I was only referring to the download volume of flappy bird Apr 09 14:11:37 * flan3002 refuses to consider/use Unity. Apr 09 14:11:46 I tried it once Apr 09 14:11:49 I hated it Apr 09 14:12:01 Plus the app wouldnt run on my G1 Apr 09 14:12:02 Do you create games? Apr 09 14:12:21 I'm creating a game, but that project is on a back burner Apr 09 14:12:22 UDK 4 sounds awesome, but is probably overkill... Apr 09 14:12:44 It's the only game engine I've ever spent any time on. I love it but I know there are ones better suited to other needs Apr 09 14:12:46 Hi... is there someone who can tell me if making a static IntentFilter like this makes sense: https://gist.github.com/scan/81b34bd442e57ec48f38 Apr 09 14:13:10 Rajawali, libgdx Apr 09 14:13:26 Hardcore OpenGL Apr 09 14:13:28 Nah... Apr 09 14:14:13 * flan3002 should have read the article "Create games, not engines" (or similar) earlier. Apr 09 14:14:24 Hi, I'm using osmdroid, for drawing a line. I'm using a Paint (PaintDrawable). Is it possible to use a drawable as a pattern with a Paint object? It must be something like this: http://www2.psd100.com/ppp/2013/11/2701/Railway-1127233633.png Apr 09 14:14:47 Libgdx is most definitely an engine :p Apr 09 14:15:24 Yes it is. And it is pretty good. I still don't want to use it. Apr 09 14:15:36 Well then ._. Apr 09 14:15:51 LambdaDusk: What was wrong with defining it in the manifest? Apr 09 14:17:41 flan3002: I need to use it as an object for a broadcast receiver in a fragment Apr 09 14:19:08 LambdaDusk: Well then, good luck! Apr 09 14:19:17 ... Apr 09 14:19:41 * flan3002 passes this to someone else. Apr 09 14:20:20 Thanks people :) Apr 09 14:22:05 Hello, I'm trying to fix an error with my SoundPool where it won't play a specific sound even though it plays all others. The problem specifically seems to be with loading, since soundpool prints the error "Unable to load sample: (null)" to my debugstream Apr 09 14:22:20 The file works fine in windows Apr 09 14:22:49 sounds like a reference problem. Apr 09 14:23:22 Are you sure you are not trying to load a null value? Apr 09 14:23:49 networkimageview... how I hate you right now Apr 09 14:23:51 * Zharf sighs Apr 09 14:24:34 Urlimageviewhelper :> Apr 09 14:24:48 they all suck, I should just write my own Apr 09 14:25:28 mostly because its a pain to do this on android ^^ Apr 09 14:25:57 it's not, really... or I'm not aware of what might make it a pain Apr 09 14:26:24 is it possible with google maps to draw a line with a repeating drawable instead of a color? Apr 09 14:26:25 Hi Apr 09 14:26:52 danijoo, yes, the file is referenced via the ID it gets from R Apr 09 14:26:56 the pain is async loading + caching + gc it :p Apr 09 14:32:27 danijoo, trivial Apr 09 14:32:35 not for me :) Apr 09 14:32:37 So any idea what might cause SoundPool to throw an error message like "Unable to load sample: (null)" for one file only while all others can be loaded without the file actually being corrupt? Apr 09 14:33:32 I wish I could remember the answer to your question, it's been like 1.5years since I tackled this -.- Apr 09 14:33:46 I don't even have access to the codebase anymore since I switched companies -.- Apr 09 14:34:38 Zharf: have you looked at http://square.github.io/picasso/ for image loading? Apr 09 14:35:59 no, and currently not really interested in bringing new libraries into this Apr 09 14:36:16 I might someday, if I remember Apr 09 14:37:31 it will make your life easier then roling your own. Apr 09 14:37:59 from my experience that's not necessarily true ;) Apr 09 14:38:47 I've rewritten parts of the various libraries I've used recently because they're simply horrible or broken :) Apr 09 14:39:31 square tend to have high quality code in general and picasso is well tested. Apr 09 14:40:08 well I'm a sceptic but not a NIH advocate Apr 09 14:41:58 This is an existing app: http://imagebin.org/304761 I'd like to make something similar, but don't know how. I tried with a RelativeLayout and adding ImageViews for the g cleg and all the horizontallines, and though I could just show/hide the added top lines as necessary, but it doesn't scale the view =\ Apr 09 14:42:58 Should I create a large enough bitmap, draw images on it, scale it to fit screen and put it in an ImageView? Apr 09 14:45:21 Zta: looks like you should make a custom view and handle the drawing on your own. Apr 09 14:50:00 With the approach I outlined? I have all the images in one size-fits-all. Apr 09 14:52:14 um, the one-size-fits-all is not entirely true; I have scaled versions for different resolutions. What I mean is that I have e.g. a g-clef image that fits um.. this is difficult =) Apr 09 14:52:57 Actually, a one-size-fits-all might be a good approach since it would make it easy to offset all the different images? Apr 09 14:53:57 DoctorD90: Your question was too unspecific, don't reask. Apr 09 14:54:08 Hello, I have this error: < https://gist.github.com/Technicus/10279211 >, with this code: < https://gist.github.com/Technicus/10279211 >. How can I cure this? Apr 09 14:54:27 hello! i have downladed sdk packet from.site, not bundle. (windows). i have created a device, but how can i start simulating android? Apr 09 14:54:42 ??? flan3002 what do you mean? 0o Apr 09 14:55:59 I asked you not to reask the very same question as on #android, because that's what most people do when they get no answer. Your question on #android left a lot of details open, making it impossible (unlikely) to help you. Apr 09 14:56:35 Zta: creating an image and stretching it to fit the screen sounds like a bad idea. Apr 09 14:56:44 ??....you mean to not re-post question here?? 0o Apr 09 14:57:14 (my english isnt very good if you havent seen xP) Apr 09 14:57:16 DoctorD90: Well, what you did was okay, because you specified the contect further now. Apr 09 14:57:27 *contect Apr 09 14:57:30 *context Apr 09 14:58:34 But I do not use Windows, so asking what the equivalent to chmod is on Windows is a question I can't answer. Apr 09 14:58:38 cezium: I was think of creating a large image with my one-size-fits-all images on it and then downscale it. Apr 09 14:58:40 ah...lol....no, im waiting for that question(about chmod) from 2days :) ...but im trying to emulate android on windows too, so i remember this question, and i have thougth that this channel would.be better ^^ Apr 09 14:59:02 Install Linux. ;) Apr 09 14:59:10 ....no, i explain bad.....i make 2 separete question xP Apr 09 14:59:19 Okay, understood now. Apr 09 15:00:01 * flan3002 thinks it would be interesting to poll #android-dev for OS distribution. Apr 09 15:00:02 Zta: why not just draw it in the correct size? Apr 09 15:00:51 I am trying to take the code: < http://www.tutorialspoint.com/android/android_bluetooth.htm >, and put into a fragment. The application that I am building has a tab for bluetooth settings, how can I put this code there? Apr 09 15:01:18 flan3002: i would try some app only for newandroid version, so i thougth to test them.in a vm....but i cant starup android.....i think im forgetting something :P Apr 09 15:01:20 cezium: Look at the animation: http://imagebin.org/304761 As more ledges are added to the top, all everything shrinks in size. Apr 09 15:02:17 I get: "Error:(63, 9) error: cannot find symbol method setContentView(int)" with the line: "setContentView(R.layout.activity_main);" Apr 09 15:02:21 Zta: what’s stopping you from drawing that? Apr 09 15:02:24 What does that mean? Apr 09 15:02:34 cezium: ... Apr 09 15:02:41 DoctorD90: If you give me more information I can try to guess what the problem might be. (Notice the conditionals). Apr 09 15:02:49 cezium: I'm asking for advice on how to implement something similar. Apr 09 15:03:38 cezium: You said scaling was bad and that I should draw in the correct size. I don't understand what you mean. Apr 09 15:04:06 Zta: you get to redraw your custom view as the state of the view changes. Apr 09 15:04:26 you also know the size of the view. Apr 09 15:05:19 Obliviusly! .....i have downloaded package from site...not bundle...i have left program to download 2.3 android and all other development stuffs. i have created a device, and start it.....it "freezes" at ANDROID written as dos/shell session.... Apr 09 15:05:57 How long have you waited? Apr 09 15:06:20 ....15-20 min xP Apr 09 15:06:24 cezium: I'm new so pardon my ignorance. My custom view gets a Canvas it its onDraw, so I suppose I know the size of the view. I also have some sort of state that says how tall I should draw the image, ie. how many ledges should be drawn on top of each other. This needs to fit inside the View. Therefore I rescale. Apr 09 15:07:05 i thougth to 'loading' but, even if i run 2 other os in vm, it takes a lot ot time xP Apr 09 15:09:14 what are you rescaling? you draw in the same view depending on your state Apr 09 15:10:29 DoctorD90: It takes a lot of time. I've seen it take 15 minutes. If you multitask it can take hours. Apr 09 15:11:56 cezium: My image is e.g. 100x100 pixels. It won't fit in all situations. See how the g clef shrink in the animation depending on number of ledges. Apr 09 15:13:47 ah...so it simple loading? i havent to start installation or similar...ah ok, so, i will wait this evening ^^ thx flan3002 ^^ i will try ....i thougth to forget something :) Apr 09 15:15:43 DoctorD90: It may be loading. That's all I can guess. Apr 09 15:16:22 thx :) i will.try ^^ very thx you ^^ Apr 09 15:17:35 Zta you can transform the bitmap for your g clave when you draw it. Apr 09 15:19:26 cezium: Right. But wouldn't it be easier to transform the entire bitmap when all images have been drawn on it? g clave, lines, top ledges, node staff etc? I haven't tried this before, but I assume offsetting is easier when I know the exact image sizes. Apr 09 15:26:47 Zta: it might be easier as you just set a fixed size for your bitmap and use magical numbers for positioning. But if your aim is just to make it easy to implement you could just prerender your images and bundle them. Apr 09 15:28:15 I don't see how. But I already have a small taste of success with fixed size and magic offsets =) Apr 09 15:28:48 How do I re-use a fragment in android? I can declare the UI part with in the XML, but how do I link in the code to operate that bit of the UI? Apr 09 15:39:36 is there anything wrong with this SQLite query? return db.query(TABLE_NAME, new String[] {NAME},"username = "+ uName , null, null, null, null); Apr 09 15:51:11 Hey. What would throw Operation Canceled in BluetoothSocket.readNative() or rather under what circumstances would such an error message be thrown? Apr 09 15:51:53 Will someone help me understand this bluetooth tutorial: < http://www.tutorialspoint.com/android/android_bluetooth.htm >? Apr 09 15:58:02 With the code: < https://gist.github.com/Technicus/10285891 >, I get the error: < https://gist.github.com/Technicus/10279211 >. What am I doing wrong? Apr 09 15:58:50 oi Apr 09 15:58:59 any uses genymotion ? Apr 09 15:59:07 yeah Apr 09 16:00:34 can you run an app with google maps? Apr 09 16:00:42 Could anyone at least tell me whether Operation Canceled is the sender's or recipient's fault? Apr 09 16:01:00 Technicus: do you know the member access levels for methods? Apr 09 16:01:34 Technicus: read "Access Control and Inheritance" here: http://www.tutorialspoint.com/java/java_access_modifiers.htm Apr 09 16:01:39 @kroot; it seems like I do not. Please educate me. Apr 09 16:02:17 thanks Apr 09 16:04:18 @kroot; setting it to public fixes it but setContentView can not be found? Apr 09 16:06:28 Technicus: I think for a Fragment, you'd remove onCreate and put all that stuff in onCreateView Apr 09 16:07:30 Technicus: onCreate is for an Activity, but Fragment is part of potentially many other Fragments an Activity Apr 09 16:08:47 @kroot; I almost follow you . . . Apr 09 16:09:34 @kroot; here is what I am trying to adapt: < http://www.tutorialspoint.com/android/android_bluetooth.htm >. What is important, what do I modify, and what do I ignore? Apr 09 16:10:42 Technicus: For that, you'll probably have to read the Fragment design guide. http://developer.android.com/guide/components/fragments.html Apr 09 16:12:29 Anyone with canvas/imageView/opengl experience care to take a look at my current problem? http://stackoverflow.com/questions/22951375/show-the-user-that-an-imageview-is-selected-by-using-a-glow Apr 09 16:14:08 @kroot; would it be better to keep this as an activity? Apr 09 16:14:27 @kroot; can I spawn an activity from the fragment? Apr 09 16:14:36 Technicus: It'd be more flexible to have a fragment. Apr 09 16:16:38 kroot lives Apr 09 16:20:37 hi Apr 09 16:20:45 how i can create and loading in my start app? Apr 09 16:21:51 @kroot; WOW! I see now how flexible, and how much of a pain fragments are to program. Apr 09 16:23:03 @kroot; Where should I start? I have the fragment working, it is just a tab with the title and buttons for bluetooth. How do I connect the buttons to bluetooth functionality within the fragment? Apr 09 16:25:34 I'm using app compat 7 to show action bar and action items in all version above 2.2 but it is not showing action items in 2.2, any idea?? Apr 09 16:26:12 Technicus: flexibility usually means pain of some form Apr 09 16:26:50 What would I turn: On = (Button)findViewById(R.id.button1); into so that it would work in a fragment? Apr 09 16:33:00 Cafzalone: Does the device not showing action items have a "menu" button? Apr 09 16:34:08 eghdk> I'm trying with emulator which doesnt have a menu button Apr 09 16:34:24 Hmm... are you sure. My emulator has a menu button. Apr 09 16:34:56 It needs home search menu and back on 2.2. because 2.2 can't have on screen buttons yet Apr 09 16:38:54 eghdk> wait I will check it again, I created my emulator like that, i will recreate it Apr 09 16:41:04 Hey devs, is there anyway to take a compiled dex file and get it to execute in an android VM? Unfortunately the dex files I have are mroe complicated than a simple HelloWorld app so I have been having difficulty figuring out how to do this... Apr 09 16:45:11 eghdk> it shows the menu on menu button, is there any way that I can show that on action bar itself Apr 09 16:46:13 That's just how old android works. If a device has a menu button before android 4.4 it won't show the action bar items. Apr 09 16:47:41 There are ways to "force action bar items to always show" and it's as simple as a search on google/stack overflow. But the answer to your original question is, thats how android work. A device with a menu button wont show action bar items. This is why the galaxy S series sucks. They put menu button on phones that shouldn't have it, and then people can't find options as easily. Apr 09 16:48:00 i want to stop an intent servcie from an activity, is it ok to do this? Apr 09 16:48:41 i registered a broadcast reciever in the onStart() of the IntentService, i can get to intent action from Activity to the IntentService but stopSelf() in the receiver doesnt stop it Apr 09 16:52:14 how is an admob impression determined, is that when your ad is on the screen and user sees it? Apr 09 16:54:34 is there any practical use for support-annotations? Because they don't seem to do anything Apr 09 16:55:26 I would expect that if I have a field labelled @LayoutRes, and I pass in a DrawableRes, Lint should tell me I'm doing something wrong. it doesn't. Apr 09 16:57:29 how can I show action menu as in holo, with appCompat Apr 09 16:57:46 huh? Apr 09 16:57:52 it's automatic Apr 09 16:58:23 Anyone else having issues getting the S5 recognized as a device when USB debugging through ADT? Apr 09 16:58:25 pfn: He's referring to devices with a menu button I think. Apr 09 16:58:33 it's still automatic Apr 09 16:58:47 i.e. platform behavior is automatic Apr 09 16:59:14 Yeah, but he wants menu items to show up. Which they will, but after they press the menu button. Apr 09 17:00:12 client started whining about missing overflow menu today... Apr 09 17:00:29 they were using some samsung device with hardware menu button :E Apr 09 17:01:04 Zharf: I had my client complain about the same thing. They had a S4 and was like "I DONT SEE OPTIONS". So I had to force them on. Found the code snippet on SO Apr 09 17:02:09 I would like to see that snippet, from what I understood that you couldn't do that... however my client was content with the behaviour explanation Apr 09 17:03:42 I believe I used this question, but I'm not 100% sure. Let me look up my code on github: http://stackoverflow.com/questions/13307214/how-to-force-overflow-menu-in-actionbar-using-actionbarsherlock-on-4-0-devices Apr 09 17:04:18 eghdk, having menu items show up without pressing the menu button is against platform design Apr 09 17:04:21 * pfn shrugs Apr 09 17:04:22 yeah don't do that Apr 09 17:04:24 I fucking hate it Apr 09 17:04:26 but it is what it is Apr 09 17:04:34 dumbest design choice ever Apr 09 17:04:43 I just picked up my first android phone and I'm trying to run the "HelloWorld" app from the ADT but my phone doesn't show up in the device list. I've updated the drivers, downloaded the latest API (19) but still having no luck. Can anyone point me to some reading materials for this or have any suggestions? Apr 09 17:05:01 their reason for not exposing actionable menus is the same exact reason they got rid of the menu button in the first place Apr 09 17:05:57 Yeah, I mean this all changed in 4.4 because they force it whether or not you have a menu button, which is why samsung now put the recent apps button instead of menu button on the Galaxy S5. Apr 09 17:06:25 they finally forced it? Apr 09 17:07:10 not like I'll notice though... I'll be having this device with my beloved menu button until someone makes a small android with hw keyboard again :p Apr 09 17:07:13 pfn: JakeWharton I'm not forcing them to "open" I'm just forcing the action overflow to appear in the upper right. Becuase on samsung devices, somehow still, people complain that they can't get to setting, but it's hidden away by the menu button. Apr 09 17:07:39 people will always complain about something Apr 09 17:07:41 eghdk, of course, it's stupid Apr 09 17:08:04 the menu button is a bit dodgy because there's no visible way of telling if there's something there in the current view Apr 09 17:08:09 Forward their complaints to samsung support Apr 09 17:08:22 I would've left it. But my client is the one that pays me, and he told me to remedy it. Probably shouldn't have said "its probably possible" when they asked about it Apr 09 17:08:36 Zharf: hence why the default changed to always show the overflow on the action bar in later versions of the platform Apr 09 17:08:54 JakeWharton, it did? interesting Apr 09 17:09:10 I'm stuck on 4.0.4 :p Apr 09 17:09:26 eghdk: that's easy to respond to "There are no public APIs which allow controlling this behavior. All apps on Samsung devices suffer from this problem not just ours." Apr 09 17:10:14 JakeWharton: Thanks. I will definitely use that with my unruly clients. Appreciate it. Apr 09 17:10:58 Menu button should have stopped here in 2012: http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html BUT IT TOOK THIS TO KILL IT: https://android.googlesource.com/platform/frameworks/base.git/+/ea04f3cfc6e245fb415fd352ed0048cd940a46fe Apr 09 17:11:44 Such a great commit message "The menu button is not pining, it's passed on! This button is no more! It has ceased to be! It's expired and gone to meet its maker! It's a stiff! Bereft of life, it rests in peace! If you hadn't nailed it to a flagship device it'd be pushing up the daisies! THIS IS AN EX-BUTTON!!" Apr 09 17:26:11 i can't believe its been over 2 years since they said goodbye to the menu button Apr 09 17:26:45 but i +1 not changing device behavior, its samsung that is broken, not the apps Apr 09 17:27:01 and that is the experience that samsung users expect on their device Apr 09 17:27:13 Can anyone help me figure out why I can't get my S5 to show up in the ADB device list? Apr 09 17:35:13 What's the most affordable-yet-enviable 9" or bigger tablet at the moment? Still something like the Nexus 10? I'm particularly interested in gaming performance. Apr 09 17:38:46 What is the fragment implementation of getApplicationContext(), it only seems to work with activities? Apr 09 17:38:47 nexus 10 is still what I would get in that category Apr 09 17:40:09 Technicus, getActivity().getApplicationContext() Apr 09 17:40:10 I've added Google Play Services client to my app (for AdMob). When I run my app on my device, I get an error in log cat: "Google Play services out of date". Is this not backward compatible? Do I have to push users to upgrade? Apr 09 17:41:41 palithius, users have to upgrade the main play service on their phone Apr 09 17:42:00 ...that sucks Apr 09 17:42:08 well Apr 09 17:42:23 would you rather have to tell them "buy a new phone with Android 4.4"? Apr 09 17:42:34 the GPS service is upgraded silently in background on most devices Apr 09 17:42:46 except by users who disable data Apr 09 17:42:57 is google play services always automatically upgraded or do users have to do it themselves? Apr 09 17:43:42 did you read what I wrote? Apr 09 17:43:49 it attempts to upgrade when users open Play Store Apr 09 17:43:55 of course not Apr 09 17:44:00 reading is OP Apr 09 17:44:18 you did not say that it upgrades when users open the play store Apr 09 17:44:23 but it doesn't always go through with it due to other reasons... the GPS libary will even make an intent to redirect the user to play store for upgrade for you Apr 09 17:44:36 palithius, because that's not always true. Apr 09 17:44:50 it starts the service on Play store open, but it can also start it another time Apr 09 17:45:01 what you NEED to know at this point it: users will mostly have updates play services Apr 09 17:45:14 but not ALL of them will have it and you'll have to handle that. Apr 09 17:45:19 ok, I see. Apr 09 17:45:43 the way the services themselves upgrade isn't really documentat and behaviour can even change from version to device Apr 09 17:45:55 and this applies for all devices, (the docs say Google Play is supported on OS as old as 2.3)? Or was this effort to auto update something that comes for later devices? Apr 09 17:45:56 Thrae|pc: there should be a new Nexus 10 due out soon Apr 09 17:46:00 I see Apr 09 17:46:51 thanks, I appreciate the help Apr 09 17:47:00 palithius, it applies for all devices running 2.3 Apr 09 17:47:35 except those which run broken ROMs with broken Play libs Apr 09 17:47:45 shmooz: That's true, but I was wondering about comparisons in overall Android tablet gaming performance with say, Tegra vs Adreno Apr 09 17:48:31 there's bunch of tegras and bunch of adrenos out there with differing OGL extensions Apr 09 17:48:35 what are you trying to code? Apr 09 17:48:52 leslie: Do you know of a tutorial for setting up bluetooth in a fragment? Apr 09 17:48:57 where do i find the app data? Apr 09 17:49:02 in /data/data/package.name there only is a symlink named "lib" Apr 09 17:49:09 Mavrik: Cross-platform, possibly Unity2D Apr 09 17:49:10 no prefs, no apk! Apr 09 17:49:22 Technicus, never used bluetooth Apr 09 17:49:59 Thrae|pc, I haven't seen new tegras out in the wild yet (isn't Shield the only one?) but the old ones were nothing to brag about Apr 09 17:50:16 Adrenos have buggier drivers but newer cores next to Krait chips are decently fast Apr 09 17:50:33 but it really depends just how crappy the GPU in respect to the screen resolution is on the device Apr 09 17:52:51 Mavrik: Of course, which is partly why I'm not even looking at the super-HD 1600p ones. Apr 09 17:53:02 O.o Apr 09 17:53:11 but users will run your stuff on them Apr 09 17:54:54 Can I somehow execute something when a dialog was cancelled by the user? Apr 09 17:55:00 aka, by presssing the back button? Apr 09 17:55:54 nvm found it. Apr 09 17:57:34 Hey all. Apr 09 17:57:57 hey rufsketch1 Apr 09 17:59:26 I have a surfaceview within a listview within a fragment. I'm trying to detect where the users finger is as they drag it across the surfaceview. But OnTouchEvent and OnGenericMotionEvent both seem to only get fired when the user first touches the screen. Apr 09 17:59:36 what should I be using instead? Apr 09 18:00:12 errr, sorry Apr 09 18:00:16 not a listview, a linearlayout Apr 09 18:04:46 ping Apr 09 18:05:02 !ping Apr 09 18:07:43 anyone? Apr 09 18:08:18 Hi, where is the c++ util headers (IBinder.h, IServiceManager.h, etc)?? Apr 09 18:15:55 I'm trying to highlight an element by putting a framelayout with my layout, and a foreground view on top of it with 10% opacity, but the foreground view is not appearing in old android devices like 2.1 and 2.3 Apr 09 18:16:00 any ideas what might be happening? Apr 09 18:16:03 it works on newer androids Apr 09 18:19:35 gavilan2: have you tried NineOldAndroids? Apr 09 18:19:38 gavilan2: Wait! Kind of sorta like this question I recently posted? http://stackoverflow.com/questions/22951375/show-the-user-that-an-imageview-is-selected-by-using-a-stoke-outline-glow Apr 09 18:31:27 well how can i start another package from history? Apr 09 18:31:42 http://stackoverflow.com/questions/22970879/open-another-application-in-current-state Apr 09 18:32:01 here, if i try to start a package a new default activity is created Apr 09 18:32:02 gavilan2, height/width behave differently in certain layouts on certain versions Apr 09 18:32:19 e.g. wrap_content behaves differently in relativelayouts in pre-4.3 vs. post Apr 09 18:32:51 gavilan2, and who cares about 2.1-2.3 minSdk them out :p Apr 09 18:36:07 what is current apk size limit on the store Apr 09 18:39:15 50mb, afaik. but not positive Apr 09 18:39:24 g00s you here? Apr 09 18:40:03 thanks JesusFreke Apr 09 18:44:23 I have a ScrollView that has two Child linearlayouts that are being animated away (GONE). When they are animated back I would like the scrollview to maintain how far it has scrolled. It seems this works if i only animate in/out a single linear layout, but when both happen, the second one resets the scrollY to 0 instead. What is the reason for this? Apr 09 18:50:25 Can someone explain the threading on WebView? When does a url get put into the history, when can I clear history in a predictable way. I've been experimenting but I can't figure it out. Apr 09 18:53:10 Is it possible to create a view/custom view that has multiple views in it? Apr 09 18:53:18 yes Apr 09 18:53:29 hi Apr 09 18:53:43 eghdk, extend a viewgroup, like framelayout Apr 09 18:54:26 And then, I could put... lets say two views in there by default? Apr 09 18:55:29 in the constructor you could call View.inflate(context, R.layout.my_views_in_a_merge_tag, this) Apr 09 18:55:56 funkbox: and jayd16 Basically, I'm going to add this CustomView programatically, and you basically pass it two drawables in the constructor, and then it gives you back a viewgroup with two imageViews. That sounds plausible... right? Apr 09 18:56:56 eghdk, yeah sure Apr 09 19:05:11 yikes, light sensors report very different values across devices - no wonder auto-brightness never works Apr 09 19:08:52 jayd16: You said View.inflate.(context, R.layout.something, this). Do I have to give it a layout? I would like to give it an imageView with a drawable set to it. Apr 09 19:09:37 Thats if you wanted to use xml. You can just doing programmatically if you like. I think you're on the right track. Just give it a shot and come back if you have issues. Apr 09 19:15:09 eghdk, you use inflate only if you want to get a Java object represeting view hiearchy from XML Apr 09 19:15:30 eghdk, to make your own view container you extend a viewgroup and implement onMeasure and layout Apr 09 19:16:02 use addView to add subview class :) Apr 09 19:18:02 Thanks Mavrik. Thanks for clearing up "inflate" for me and how to make my own view controller. But I'm lost at "use addView to add subView class". Apr 09 19:18:10 Where would I use "addView"? Apr 09 19:18:45 eghdk, if you want your ViewGroup to contain other views you'll have to instantiate those views and use addView to add them before measure phase is done Apr 09 19:18:50 eghdk, in most cases that would be in constructor Apr 09 19:22:06 Mavrik: Got it. So in my constructor of my custom ViewGroup I can do ImageView one = new ImageView(...) and then do this.addView(one)? Apr 09 19:22:14 yep Apr 09 19:23:54 eghdk, and in onMeasure you'll call getChildCount() / getChildAt to call measure() on each of them Apr 09 19:24:04 and in onLayout you'll do the same to call layout() Apr 09 19:24:27 Thanks. APpreciate it Apr 09 19:26:31 Is there a current bluetooth chat example? I am trying to do: < http://www.instructables.com/id/Android-talks-to-Arduino/?ALLSTEPS >, which links to: < http://developer.android.com/resources/samples/BluetoothChat/index.html > which is not there. Apr 09 19:26:50 Is there a substitute? Apr 09 19:27:07 check your android SDK for samples Apr 09 19:27:13 (don't forget to download them first) Apr 09 19:32:15 i/o should move to vegas Apr 09 19:33:00 nop. Apr 09 19:36:23 Mavrik: Ok, I found it, but it seems to be outdated. Apr 09 19:36:43 Mavrik: it is legacy Apr 09 19:36:45 outdated how, Technicus ? Apr 09 19:37:16 Technicus, pretty sure "legacy" just means it hasn't been updated to use Gradle for building Apr 09 19:38:01 leslie: that sux, how can I import it into android studio? Apr 09 19:38:03 hi Apr 09 19:38:15 any can help me to pass object between activities? Apr 09 19:38:16 I think you can import old style projects, Technicus Apr 09 19:39:18 leslie: will you please direct me, because eclipse randomly crashes for me, so I have to develop with android studio, and I like it more anyway. Apr 09 19:39:26 Mavrik: From what I see the implementation worked flawlessly! Thanks, my only problem is that my custom viewgroup is actually a custom relative layout. So the drawables end up right on top of each other, is there any way to tell it to have one right next to the other. Ideally I need the top of one imageView to align to the bottom of the other imageView. Apr 09 19:39:54 Technicus, file, import project maybe? Apr 09 19:41:37 (0,0) on a Canvas is top left corner, right? Apr 09 19:41:58 Zta: yeah Apr 09 19:42:17 Zta: Actually. yeah * afaik Apr 09 19:42:36 usually is, eghdk Apr 09 19:42:38 t0th_-: use intents and bundles Apr 09 19:42:57 t0th_-: look at http://developer.android.com/reference/android/os/Parcelable.html if you need to send your own kind of object Apr 09 19:43:04 thanks Apr 09 19:43:10 eghdk, just checking... =) Apr 09 19:43:39 t0th_-: but don't get too carried away, you also might consider using a database or sharedpreferences Apr 09 19:43:46 t0th_-: I probably should have suggested that first actually :x Apr 09 19:44:05 hmmm Apr 09 19:44:29 i am seeying Apr 09 19:45:32 My app is crashing and it's not fair. I've tried reasoning with it but it still goes on crashing. What should I do? Apr 09 19:47:25 fix your crash bug Apr 09 19:47:26 duh Apr 09 19:47:31 stupid questions => stupid answers Apr 09 19:47:40 ehehehe Apr 09 19:47:42 Zta: Apr 09 19:47:47 you see the logcat? Apr 09 19:48:46 pfn, I'll bet you're fun at parties Apr 09 19:49:25 Zta: try giving it chocolates Apr 09 19:49:26 btw, it's nyancat's birthday today: http://www.nyan.cat/ Apr 09 19:49:38 zta: its your moms birthday too Apr 09 19:50:14 Guys, I need your help! Apr 09 19:50:55 I am trying to play RTSP Stream with VideoView Apr 09 19:51:23 nice Apr 09 19:52:21 But I am getting this error: MediaPlayer﹕ Couldn't open file on client side, trying server side Apr 09 19:53:11 I can play with VLC, but not with VideoView Apr 09 19:53:12 mikedg: You and your mom coming to the party? Apr 09 19:54:02 your mom already came Apr 09 19:54:05 to the party Apr 09 19:54:21 i miss this shit i should hang out here more Apr 09 19:54:57 I could play with: Intent intent = new Intent(Intent.ACTION_VIEW, video); Apr 09 19:55:05 But It was very slow Apr 09 19:55:28 mikedg, here's some shit for you 💩 Apr 09 19:55:36 it's her party Apr 09 19:55:53 woot... 💩 Apr 09 19:57:39 hello all, we have users decompiling our application in the wild on Android and we're using proguard to protect against this kind of stuff. What other mitigation techniques are there? Apr 09 19:58:04 BlakeRG: write your app in Spanish Apr 09 19:58:15 everyone expects english Apr 09 19:58:44 =| Apr 09 19:58:49 Something broke in my android studio. I can build fine but the editor does not seem to find any android classes. Anyone had this problem before? Apr 09 19:59:05 so basically, everyone i've talked to is saying "you're screwed" Apr 09 19:59:20 how can this be possible, there's got to be a way to help this kind of problem Apr 09 19:59:59 BlakeRG, there's a thing called dexguard, but afaik it's just a different form of obfuscation Apr 09 20:00:31 hey is it springtime out where you guys are at Apr 09 20:00:34 Or you could just not worry about it, like everyone else Apr 09 20:00:42 oh, checking this out leslie Apr 09 20:00:57 Obfuscating code isn't security Apr 09 20:01:04 It just makes it a little harder to hack Apr 09 20:01:18 this heartbleed bug seems pretty bad Apr 09 20:01:19 my app developer is telling me we're using proguard, but the code i saw was plain a day... Apr 09 20:01:22 frankdrey: Obfuscating code isn't security. I like that. Apr 09 20:01:29 openssl is open-source but noone found it for 2+ yrs? Apr 09 20:01:47 open source != security. Apr 09 20:01:49 i guess no one is looking Apr 09 20:01:57 well apparently there's no way to protect against decompilation so what else can you do besides obfuscate Apr 09 20:01:59 no one looks at most open source projects. Apr 09 20:02:10 sqlcipher for your DBs Apr 09 20:02:24 what else do you want to protect? Apr 09 20:04:49 eghdk: it is still a guarantee that things are not being hidden and when someone bright enough comes along will find the error or improve it Apr 09 20:05:09 it is a great solution to security Apr 09 20:13:52 leslie: when I open bluetooth chat example in eclipse, it has 25 errors. Either I don't have the right example files or something else is wrong. I don't know what to do . . . Apr 09 20:14:13 Anyone know a tool to analyze memory allocation in NDK like hprof for MAT on java side? Apr 09 20:14:19 Sorry . . . I'm going nuts . . . Apr 09 20:14:57 And stupid eclipse, keeps randomly crashing . . . Apr 09 20:15:30 lasserix: adb maybe Apr 09 20:15:35 shmooz: Debateable I guess. someone bright could come along, and not report the error, and just use it for themselves to exploit others. Apr 09 20:15:46 u can use it to connect to a process Apr 09 20:17:26 fg Apr 09 20:17:31 oops srry Apr 09 20:17:45 password: Apr 09 20:18:02 hunter2 Apr 09 20:18:12 muahahahahaaaa! Apr 09 20:18:55 eghdk: the important thing is sooner or later it gets fixed if its open, at worst after attacks have been made and people wake up Apr 09 20:22:04 Having a problem in IabHelper (I have the latest market billing code from git) -- int response = mService.isBillingSupported(3, packageName, ITEM_TYPE_INAPP); <-- my app just hangs on this line. That is inside Iabhelper Apr 09 20:22:16 been googling like crazy but can't find anything Apr 09 20:39:13 Question from a someone relatively new to android dev. Should I learn basic android development if I'm attempting to play around with the gdk? Apr 09 20:39:24 gdk? Apr 09 20:39:34 ndk? Apr 09 20:39:53 gdk - gui for linux Apr 09 20:39:58 or? Apr 09 20:40:03 google glass dev kit. Apr 09 20:40:07 no it was gtk Apr 09 20:40:10 :) Apr 09 20:41:17 theloniousfool: It seems smart to learn some basics of android when working with glass dev kit. Apr 09 20:41:36 Especially since they say "The GDK is an Android SDK add-on that contains APIs for Glass-specific features." Apr 09 20:41:58 "By using the Android SDK and GDK, you can leverage the vast array of Android APIs and also design a great experience for Glass." Apr 09 20:41:59 Yea, makes sense. Figured I was grasping at straws there. Apr 09 20:48:37 Using a LinearLayout, I want to create 6 buttons ( in rows of 2). I create the first row, but how do I create 2 rows underneath them using this as my starting code: http://pastebin.com/FwVNTk0r Apr 09 20:49:55 Retrodude: one all encompassing vertical one, with 3 horizontal ones inside it Apr 09 20:50:44 RetroDude, em, by using GridLayout instead of LinearLayout. Apr 09 20:53:26 one all emcompassing vertical what? Apr 09 20:54:40 never mind, got it Apr 09 20:56:30 * frankdrey doesnt like GridLayout Apr 09 20:57:26 could be done with a single relativelayout, nested linearlayouts, a tablelayout or gridlayout Apr 09 20:59:55 Retrodude: the simplest to implement would probably be nested linearlayouts Apr 09 21:00:38 Retrodude: Just 3 LinearLayouts with orientation="horizontal", wrapped up by one LinearLayout with orientation="vertical" Apr 09 21:01:04 or 3 vertical linear layouts wrapped in one horizontal :) Apr 09 21:01:18 depends if you need scrolling in either direction Apr 09 21:01:45 i would hope a list of buttons doesnt need to scroll Apr 09 21:13:45 I'm getting an error on my Gingerbread emulator: Style contains key with bad entry: 0x010102e4 Apr 09 21:14:17 I am certain it is because I am using the support libraries, but nothing online seems to have an answer. Apr 09 21:14:41 I've followed this guy to the letter: https://developer.android.com/tools/support-library/setup.html# Apr 09 21:16:44 that is windowActionBarOverlay Apr 09 21:16:51 it was introduced in api 11 Apr 09 21:17:42 http://developer.android.com/training/basics/actionbar/overlaying.html#Overlay7 Apr 09 21:22:46 birbeck: So why wasn't that the top result on google? Apr 09 21:23:46 Ugh, back to using excite, askjeeves and yahoo search. Or Bing, I guess. Apr 09 21:26:10 i googled it Apr 09 21:26:59 Jonathan_Eyre: there's this button that switches "personalized" and "general" search... Apr 09 21:35:39 How do I specify relation in a relative layout programatically? Apr 09 21:42:37 you set RelativeLayout.LayoutParams on the child Apr 09 21:42:41 those have methods you need Apr 09 21:49:44 Thanks Mavrik . Really quick if you don't mind. I've never understood what type of object a ClassName.Name is. So Am I using RelativeLayout.LayoutParams class? Is that a legal name? Apr 09 22:02:48 hey guys, switched to Android Studio! anyone know how to navigate to method? Eclipse's Cmd-O Apr 09 22:04:17 i just do double shift Apr 09 22:04:37 hm - nice! Apr 09 22:05:10 I couldn't find the action in keymap -- so, I'm not sure if it even exists -- but that would be insane Apr 09 22:05:12 looks like ctrl + shift + h works Apr 09 22:07:48 well, I just found I can switch the map to Eclipse's Apr 09 22:07:50 all is well Apr 09 22:32:31 Hi all. I'm trying to get a reference to a spinner I got in my menu.xml with spinner = (Spinner) menu.findItem(R.id.category_spinner).getActionView(); but it keeps returning null Apr 09 22:32:50 My XML's: http://pastebin.com/CHpNBxew Apr 09 22:34:33 I think the error lies in that r.id.category_spinner is a Item, rather then a spinner. (The item references the spinner layout by android:actionLayout="@layout/action_sort" Apr 09 22:35:01 It's a method I got from StackOverflow Apr 09 22:45:50 ThomQ use a different ID for the two Apr 09 22:45:55 And then do something like Apr 09 22:46:56 how do you center the text in my button. I'm using linearlayouts, heres the code: http://pastebin.com/AkpumM5C Apr 09 22:47:03 spinner = menu.findItem(R.id.spinner_menu_item).getActionView().findViewById(R.id.spinner); Apr 09 22:47:12 Cast to Spinner, ofc Apr 09 22:51:50 Does anyone know if the Purchase Status API is supposed to work for Sandbox transactions? Apr 09 22:57:36 Frank, i've tried it like MenuItem item = menu.findItem(R.id.category_spinner); spinner = (Spinner)item.getActionView();, but no cigar. item is getting filled, although it does show a nullref in the mWrappedObject though, but spinner still hits a null Apr 09 22:57:55 Trying your line now, in case i missed something Apr 09 22:58:14 hi guys i have 7 textview... and i use this tv2 = (TextView) findViewById(R.id.tv2).setText("a"); Apr 09 22:58:40 i need create 7 findviewbyid?? Apr 09 22:59:10 yes Apr 09 22:59:17 tecate: ur the best Apr 09 22:59:49 i aim to please Apr 09 22:59:49 birbeck: ? yes for me? Apr 09 23:00:01 roxdragon: yes Apr 09 23:00:02 and create a method? Apr 09 23:01:01 frankdrey: I can't get findViewById(R.id.spinner); The line still comes back with the view Apr 09 23:01:11 if i have a bunch of views i need to assign to private members i usually create a private initializeViews() method, but you dont need to Apr 09 23:07:08 Hi everyone. Greenhorn here. Installed Android Studio and like it. Now wanted to dive into libGDX and found out that it is not really compatible. Apr 09 23:07:34 Found several posts on how to make it work, but each post suggest a vastly different approach and all of them look very complicated. Apr 09 23:07:46 Will I just make my life miserable? Should I install Eclipse instead? Apr 09 23:09:02 imo they are both pretty hellish. I use IntelliJ Idea, hadn't had 1 IDE problem in weeks Apr 09 23:09:46 mbrochh: you should install them both and compare them Apr 09 23:10:14 schmooz: isn't android studio just a buggy version of intelliJ Idea? Apr 09 23:10:15 ThomQ: good point. Since I won't need the WYSIWYG editor for game development, I might just as well go with IntelliJ Idea instead of Android Studio... Apr 09 23:10:28 ok install all three then ;) Apr 09 23:10:51 don't forget netbeans! Apr 09 23:10:58 and visual studio Apr 09 23:11:09 yeah visual studio Apr 09 23:11:14 if you got deep pockets :) Apr 09 23:14:04 I'm gonna get a late night snack. After that, I Will be casting that spinner! Apr 09 23:15:06 ThomQ: what's the problem with the spinner again ? Apr 09 23:17:34 I think I'm going to do a custom spinner myself so that it has that nice smooth drop down animation with nice color menus with icons Apr 09 23:17:59 somehow :P Apr 09 23:18:44 the default spinner is ugly and not too customizable Apr 09 23:18:53 guys i have a problem with this code Apr 09 23:18:57 http://pastebin.com/6n5H2xJ5 Apr 09 23:20:03 http://paste.ubuntu.com/7228543/ debug is here Apr 09 23:20:08 can you help me? Apr 09 23:20:57 shmooz: I get this menu item (actionbar compat) in which I use android:actionLayout="spinnerlayout" and then the corresponding layout with just a Spinner. I'm trying to cast like so: spinner = (Spinner) menu.findItem(R.id.category_spinner_item).getActionView(); (latest version), but everytime I get a View back Apr 09 23:23:04 spinner = (Spinner) findViewById(R.id.category_spinner); should be working as well, according to multiple examples i've found Apr 09 23:37:30 anyone know at way to make the whole page scrollable rather than just the listview? ive wrapped the layout with a scrollview however the listview isnt expanding when new elements are added. you just end up scrolling through that Apr 09 23:40:58 ThomQ: I haven't tried it inside an ActionBar yet but yeah your code should be working I guess Apr 09 23:41:53 I can't even see the purpose of the actionbar anymore, I just use a horizontal layout and put a spinner and whatever else in it as my action bar Apr 09 23:41:58 roxdragon: tv2 has not been assigned Apr 09 23:42:17 but from the stacktrace, that doesnt look like the root cause Apr 09 23:43:55 also info has never been assigned Apr 09 23:45:16 and it is very bad practice to access class members from an asynctask. i usually make my tasks private static final so it has no access to the hosting class, though what you are doing will still work Apr 09 23:45:21 shmooz: I'm a android newb, so the actionbar Seemed like a good idea Apr 09 23:46:08 I'm a noob too, still haven't finished my first app :P Apr 09 23:46:35 birbeck, why is it bad practice to access class members from asynctask? Apr 09 23:46:46 * myke is also a noob Apr 09 23:46:56 but I've learned a lot hanging around here and sometimes trying to get stuff added to my video player app Apr 09 23:47:20 separation of concerns... i usually pass a callback class to the tasks constructor and let my activity or fragment process the finished result Apr 09 23:48:22 is there any site where I can get royalty-free images for FREE. Every "free" site I've visted in the last 20 minutes cost money Apr 09 23:48:24 i often put my asynctasks in a separate package altogether so they can be shared with other activities and fragments. so it has no access anyways Apr 09 23:48:30 birbeck, so just organization? Apr 09 23:48:48 frankdrey: loose coupling, just good coding design Apr 09 23:48:58 eh.... Apr 09 23:49:20 i make my asynctask classes in the activity they're used in Apr 09 23:49:33 and it's cleanest to access class members Apr 09 23:49:42 i used to do some weird parameter and result class shit Apr 09 23:49:43 and then you copy/paste it if you need to re-use it somewhere else? Apr 09 23:49:46 but that got messy Apr 09 23:49:59 birbeck, if I do need to re-use, then I'll move it out, reluctantly Apr 09 23:49:59 birbeck: http://paste.ubuntu.com/7228606/ i have this code... but tv1 is assigned, and my app crash Apr 09 23:50:10 duplicated code is worse than a callback interface Apr 09 23:50:50 this is debug http://paste.ubuntu.com/7228611/ Apr 09 23:51:00 roxdragon: no its not. it is declared, but there is no tv1 assignment in there Apr 09 23:51:25 and then you return info, which again is declared but not assigned Apr 09 23:51:45 how to assign tv1? Apr 09 23:52:01 both of those will throw an exception, the commented out tv2 one in onPostExecute() will as well Apr 09 23:52:13 tv1 = (TextView)findViewById(R.id.tv1) Apr 09 23:52:52 birbeck: The method findViewById(int) is undefined for the type arrivi Apr 09 23:53:07 generate a method? Apr 09 23:53:16 ios.find... Apr 09 23:53:25 didnt notice you were in onCreateView() Apr 09 23:53:42 you just need tv1= on line 26 Apr 09 23:55:10 tv1 = (TextView) ios.findViewById(R.id.tv1); Apr 09 23:55:10 ? Apr 09 23:55:17 yeah Apr 09 23:57:25 birbeck: error here: crash my app tv1.setText(iterator.next().text()); //kolom -1 Apr 09 23:58:12 birbeck: http://paste.ubuntu.com/7228627/ Apr 09 23:59:52 did you read the stack trace ? Apr 09 23:59:57 * frankdrey is wrestling with facebook sdk again Apr 10 00:00:55 Owwwww. I found it.. And it's So logical. getActionView doesnt work unless you use setActionView first. Apr 10 00:01:06 Such logic, to not pick it up from the xml Apr 10 00:01:17 also, it's not mentioned Anywhere in the script reference Apr 10 00:03:49 bankai_au: yes... tv1 is null?! Apr 10 00:04:13 something is null on that line Apr 10 00:04:31 set a breakpoint and debug Apr 10 00:07:29 bankai_au: if i replace tv1.setText... with system.out.println it works Apr 10 00:07:55 there's your answer then Apr 10 00:09:49 bankai_au: yes, i don't know how solve this problem Apr 10 00:10:45 i can't see your code, but you shouldn't be makine UI changes on any thread other than the main Apr 10 00:13:04 :( Apr 10 00:41:17 anyone here worked with the facebook sdk? Apr 10 01:07:12 unfortunately Apr 10 01:10:07 i have a Switch in a DrawerLayout, which works fine for clicks, but I can't move it with a swiping motion … seems the Drawer has intercepted that. is there any way i can have the switch still receive the swiping / dragging ? Apr 10 01:10:50 anyone know if Google has any internships for EE students? Apr 10 01:14:33 YAYA Apr 10 01:14:38 THIS FACEBOOK THINGIE WORKS Apr 10 01:14:45 It's buggy, but oh well Apr 10 01:14:51 that's for later :P Apr 10 01:14:56 let me celebrate Apr 10 01:18:54 whoa... I got libGDX running with Android Studio. Not that I understand what's going on but hey! Apr 10 02:03:44 Hello . . . I'm still trying to build a bluetooth application . . . I put: BluetoothAdapter bluetooth; in the MainActivity.java file, so how do I refer to bluetooth from the BluetoothFragment.java file? Apr 10 02:14:50 To define an interface: < http://developer.android.com/training/basics/fragments/communicating.html#DefineInterface >, is this another java file or does this code go into the fragment.java file or the mainactivity.java file? Apr 10 02:17:18 it can be any of those, though in that example the interface looks like it's defined within the fragment.java file Apr 10 02:18:18 Technicus would be good to get familiar with java Apr 10 02:19:18 g00s: Sure, so am I asking the wrong question? Apr 10 02:23:28 general java questions are best asked in #java Apr 10 02:24:59 g00s: I just asked there and was told to come back here. Apr 10 02:25:19 the first rule of #java is, don't tell them its android Apr 10 02:26:02 g00s: I defined: < http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html >, in the mainactivity.java, and I want to acces it in the fragment.java. Apr 10 02:26:59 g00s: How am I supposed to know where it is approporate for me to ask? Apr 10 02:27:45 you are asking 2 questions; a basic java question, and a bluetooth question. if you knew the former, the latter would go away. #java rejected the question because they were entangled and they don't like android Apr 10 02:28:03 read the oracle java tutorials, learn java, java scoping rules, and this will be clear Apr 10 02:29:05 wtf is java? Apr 10 02:29:13 its this shit we have to deal with Apr 10 02:29:42 society ? Apr 10 02:29:56 is there any good library for drawing a live chart for acceleromter senosr data?? Apr 10 02:30:53 slani you can try jjoe64 Apr 10 02:32:01 g00s: thanks, I will try Apr 10 02:33:40 bankai_au: he's talking about the indonesian city Apr 10 02:34:02 the one with the coffee? Apr 10 02:34:14 so this new Play Newstand thing; does it replace 'Currents' … do i need to dl it from Play? Apr 10 02:34:16 perhaps Apr 10 02:37:02 currents is already deprecated ? Apr 10 02:37:05 what bout flux? Apr 10 02:38:12 ok, seems like Currents disables itself, but android doesn't swap APKs or switch anything Apr 10 02:38:24 i thought Currents morphed into Newstand Apr 10 02:41:07 who can keep track of these things oy Apr 10 02:54:48 g00s: just wrote this super awesome code - https://lh5.googleusercontent.com/-X7KA3PO9nA8/U0YH0DICsWI/AAAAAAAAM_E/CrTZLgl4NvU/w498-h664-no/download_20140410_125403.jpg Apr 10 02:55:56 I'm trying to implement PullToRefresh library into my project. DOes it use SmoothProgressBar? Cuz I have error that says 'couldn't find method in SmoothProgressBar' something. But i was using Pulltorefresh! Apr 10 02:56:37 bankai_au \o/ Apr 10 02:56:42 But i do installed smoothprogressbar into my project. But the error is pointing to the pulltorefresh code hmm Apr 10 02:56:47 guy on the left looks like the coder Apr 10 02:56:56 guy on the right is marketing Apr 10 02:59:13 wow, this is pretty amazing http://www.motorauthority.com/news/1091345_land-rovers-transparent-hood-is-technology-from-the-future-video Apr 10 02:59:55 oh that's cool **** ENDING LOGGING AT Thu Apr 10 02:59:58 2014