**** BEGIN LOGGING AT Thu Mar 13 02:59:58 2014 Mar 13 03:08:20 hell if JakeWharton doesn't use fragments why should I ;) Mar 13 03:08:57 gordon_: v13 is the same as v4 Mar 13 03:09:04 we don't need no stinkin fragments Mar 13 03:09:04 It just adds two classes Mar 13 03:09:13 Agree! Mar 13 03:09:24 What do you use other than fragments? Mar 13 03:09:44 views and layouts Mar 13 03:11:18 What about the retain-instance stuff? Mar 13 03:12:11 I also implemented my own action bar instead of using one off the shelf Mar 13 03:14:09 TacticalJoke: it's not that hard to save the minimum you need in your own backstack Mar 13 03:14:16 JakeWharton: I was thinking: couldn't you run JUnit at the command line? Mar 13 03:14:27 If it's hard to get set up in Android Studio. Mar 13 03:14:43 shmooz: Okay, but I was thinking of network connections and so on. Mar 13 03:14:52 I guess it depends on the app. Mar 13 03:14:54 just keep state Mar 13 03:15:10 unless it needs to change Mar 13 03:15:14 Don't network connections drop without setRetainInstance()? Mar 13 03:15:32 no Mar 13 03:15:38 don't think so Mar 13 03:16:07 I can continue streaming remote video with my app Mar 13 03:16:16 That's just a stupid hack for an activity's non-configuration instance state. Mar 13 03:16:33 I thought Google recommended Fragments and setRetainInstance. Hmm. Mar 13 03:16:40 Views + backstack yourself FTW Mar 13 03:16:58 Note that I am making the simplest Android apps. lol Mar 13 03:17:10 Y'all might be thinking on a different level. Mar 13 03:17:18 My next app will be a basic Reddit client. Mar 13 03:17:39 my next app will kill FlipBoard ;) Mar 13 03:17:39 I was planning to make everything in fragments. Mar 13 03:17:47 Will it kill Newsstand? Mar 13 03:18:11 not sure but FlipBoard lacks a lot of features Mar 13 03:18:23 I just couldn't get into FlipBoard, personally. Mar 13 03:18:27 I hated the up/down thing. Mar 13 03:18:29 And the animation. Mar 13 03:18:36 you mean the page flipping Mar 13 03:18:42 Yeah. Mar 13 03:18:58 yeah mine will make that optional so you can scroll up and down instead if you wnat Mar 13 03:18:59 want Mar 13 03:19:06 Cool. Mar 13 03:19:16 Should I use fragments for a simple Reddit client? Mar 13 03:19:22 and let you set background foreground colors Mar 13 03:19:27 Of course, I'm interested in the tablet UI looking good. Mar 13 03:19:54 and let you tap the titles that are flashing on the front page so you can jump straight to them, (which Flipboard doesn't do) Mar 13 03:26:06 I think my Reddit client should be 4.x. Mar 13 03:26:19 By the time I release it, Gingerbread's market share will probably be about 1%. lol Mar 13 03:26:22 if you made a reddit client i'd use it Mar 13 03:26:50 Same here. I've not found one I like much. Mar 13 03:26:56 RedReader is nice, but it lacks basic features. Mar 13 03:26:58 Most have annoying ads. Mar 13 03:27:23 Most have obnoxious features (e.g., an image viewer that overlays some other screen, rather than being full screen itself). Mar 13 03:27:24 'reddit is fun' is ok-ish, it just has some odd behaviours that i'm not fond of Mar 13 03:27:58 The main thing I'm unsure about is how to make it look good on a tablet. Mar 13 03:28:02 I don't own one. :/ Mar 13 03:28:06 I guess I should buy one. Mar 13 03:28:20 the emulator should be fine... i'll help you test if you want :) Mar 13 03:28:30 :) Mar 13 03:28:52 usually when you hold it in landscape there is horizontal space to show another view beside lets say a list of items for example Mar 13 03:28:58 Yeah. Mar 13 03:29:15 Subreddits in a small view on the left; main content on the right. Mar 13 03:29:20 so the description for the items would be on the right side in tablet mode but not on phone Mar 13 03:29:57 On the phone, I'll have to do navigation drawers on one visible fragment at a time or something. Mar 13 03:30:28 I'm thinking the latter is nicer. I don't like navigation drawers for something like this. Mar 13 03:30:37 They're too menu-y. Mar 13 03:31:05 if i have a service exported=false, should i still be able to 'adb shell run-as me am startservice me -a …. ? Mar 13 03:31:23 * g00s can't get it to work Mar 13 03:33:53 yeah it doesn't look like i can run 2+ Asynctask at the same time Mar 13 03:34:10 even if they are executed in different services :S Mar 13 03:35:08 bluezone you never heard of asynctask Mar 13 03:35:11 * g00s waves hand Mar 13 03:35:25 lol Mar 13 03:36:22 what else can i use then? i'm a total noob at running on other threads, asynctask made it easy :( Mar 13 03:36:49 bluezone try using rxjava Mar 13 03:38:18 bbiab Mar 13 03:49:58 bluezone: also, check how the executors got assigned etc. Mar 13 03:50:22 the default executor since some version of android executes all incoming asynctasks *serially*, not in parallel Mar 13 04:02:07 * bluezone is going to ragequit Mar 13 04:02:34 all i had to do was just use the Thread class Mar 13 04:03:03 instead of this nonsense asynctask Mar 13 04:03:11 bluezone, http://commonsware.com/blog/2012/04/20/asynctask-threading-regression-confirmed.html Mar 13 04:03:49 I have a dumb question Mar 13 04:04:01 why include a line like "if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)" Mar 13 04:04:13 if Build.VERSION_CODES.HONEYCOMB isn't defined on versions earlier than Honeycomb? Mar 13 04:04:16 alex_PP, lmao Mar 13 04:04:55 so at least it wasn't me who was at fault Mar 13 04:05:50 notbryant, it'll be the raw value of that constant in the compiled file Mar 13 04:05:51 notbryant: it simply won't execute the code for the earlier versions whether they recognice the tag or not Mar 13 04:06:01 *recognize Mar 13 04:06:16 alex_PP: wait, really? Mar 13 04:06:28 I guess my understanding of Java is just flawed then Mar 13 04:06:43 only for static final stuff Mar 13 04:08:05 notbryant, https://stackoverflow.com/questions/5173372/java-static-final-values-replaced-in-code-when-compiling Mar 13 04:08:22 eclipse warns you about this if you do a references search on a constant Mar 13 04:09:45 oh, ok. so it's like #DEFINE in C++. You learn something new every day! Mar 13 04:09:55 yeah Mar 13 04:35:26 sup guys Mar 13 04:35:51 can and if so ,how do i start an intent without extending acitivity Mar 13 04:36:00 Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT); Mar 13 04:36:18 i am trying to write the bt class as agnostic as possible Mar 13 04:37:09 jareddlc you need a context Mar 13 04:37:38 g00s: i can send it this from my acitivy then ? Mar 13 04:37:41 is this bad practice? Mar 13 04:38:47 don't leak it Mar 13 04:38:56 for starting an activity, its ok Mar 13 04:39:14 well i have main Mar 13 04:39:20 i only plan to have 1 window probably Mar 13 04:39:37 Activity_main creates an instance bot Bt() Mar 13 04:39:49 i want to bt module to be able to turn off/on bt Mar 13 04:40:08 passing new Bt(this) how would it cause a leak? Mar 13 04:40:48 or should i do something where i emit a local broadcast Mar 13 04:40:57 and turn it on in the main activity? Mar 13 04:44:26 i have all my BT code in a service; there really is no use for it in an activity Mar 13 04:44:56 sure, the activity can say (is BluetoothAdapter.isEnabled() == false() { … ask user to enable } Mar 13 04:46:03 i want to write a service Mar 13 04:46:14 but in my service im thinking of just using the bt class Mar 13 04:50:23 hey g00s i;ll post my code after im done with the project Mar 13 04:50:27 so u can laugh at it :D Mar 13 04:52:44 jareddlc i think you told me, or i have you confused with woozly Mar 13 04:52:59 nope Mar 13 04:53:01 were you using ble or rfcomm, and what were you connecting to Mar 13 04:53:26 somebody was connecting to a game controller Mar 13 04:56:22 rfcomm Mar 13 04:56:42 ble, low energy? Mar 13 04:56:59 ugh i need a UI designer Mar 13 04:58:08 im guessing mBluetoothAdapter.enable(); is very bad? Mar 13 04:59:18 becaseu that solves all my problems Mar 13 05:00:01 its says under note" Bluetooth should never be enabled without direct user consent" Mar 13 05:00:10 what if my button is a switch that says bluetooth Mar 13 05:00:19 would u consider that user consent? Mar 13 05:02:09 anyone? Mar 13 05:22:50 life ? :) Mar 13 06:18:38 I'm having trouble modularizing my classes following the directions on the SIP developers description at: http://developer.android.com/guide/topics/connectivity/sip.html a lot of stuff has to do with using a SipManager object, but after login is when the calls are placed... so how do I maintain and manage those Mar 13 06:18:52 sipmanager and other objects? Mar 13 06:19:00 in android how do I make those objects final? Mar 13 06:19:55 wait... that wasn't what I wanted to ask Mar 13 06:31:26 Hi i would like to know if v3 of the in app billing api Google Play returns signed static responses in any case. According to http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-static signed responses will be delivered when the app is published and signed with the release keystore Mar 13 06:31:44 but i still dont get the signature when using android.test.purchased SKU Mar 13 06:49:04 lol anyone? Mar 13 06:53:11 lol creativepsyco Mar 13 06:53:55 yeah i ended up waiting for 2 hours to get the signed response from a real purchase Mar 13 06:54:29 coz in any of the listed cases on the documentation site i was not able to get signed static response Mar 13 06:58:17 ok, i guess Mar 13 07:05:30 heh, this is funny. i'll join arnold in LA so we can ride in the tank and crush things ! Mar 13 07:05:42 first up, my droid-1 Mar 13 07:17:51 g00s: http://www.driveatank.com/packages/ Mar 13 07:19:01 JesusFreke :D http://digg.com/video/schwarzenegger-bought-a-tank-so-he-could-run-sh-t-over Mar 13 07:20:37 "saved all of my birthday cakes … why? so i can crush them!" Mar 13 07:22:23 never heard of omaze before, pretty cool idea http://www.omaze.com/experiences/arnold-schwarzenegger Mar 13 07:22:57 so i guess this is for supporting various causes Mar 13 07:36:32 cideroxylon, hi Mar 13 07:37:28 morning g00s Mar 13 07:37:38 good morning lemonxah Mar 13 07:53:48 [1] search for usb device, if found request permission to communicate. if not found show "no device found" , "BUTTON: try again OR exit", if "try again" is clicked goto[1] if "exit" simply finish(). instead of a loop with boolean checking, i want to make it interrupt based. anyone know how? Mar 13 08:08:55 wasn't there once.. http://android.kernel.org/ ? Mar 13 08:09:31 ah okay, got it :/ Mar 13 08:09:35 just google 'get android source' Mar 13 08:15:18 http://pastebin.com/9R4L2xpX uggg help? Basically this image is supposed to "blink" (think a fluorescent light blinking before it turns on... If i remove the last two animations (flashon1 and flashoff1) it will successfully blink once. But if I add them, the image just pops up and stays Mar 13 08:15:42 i suck at animations Mar 13 08:19:22 i also tried adding a for loop to do the dirty work, adding each animation before re-writing over the startOffset but it yielded the same results Mar 13 08:19:31 http://stackoverflow.com/questions/18405757/how-do-i-manually-pause-an-activity-in-android and sleep for 100ms (because its the best reaction time of human, and assuming user is human :p ) http://answers.yahoo.com/question/index?qid=20080105162831AA4tL5e Mar 13 08:20:05 kuldeepdhaka: I cant pause the activity, its one animation of many occurring at the same time Mar 13 08:22:41 JesperHead, sorry idk (newbie) :) Mar 13 08:22:51 thank you anyways Mar 13 08:28:35 kuldeepdhaka, uh... can you explain more what are you trying to do? Mar 13 08:28:40 blocking back button is terrible UX Mar 13 08:28:56 Mavrik: was trying to help me :) Mar 13 08:29:09 aw, crap. just installed git 1.9 and it crashes right away Mar 13 08:29:40 JesperHead, you should probably use the new AnimatorSet playTogether() and playSequental() stuff Mar 13 08:29:46 g00s: you know, I don't constantly upgrade my software... and my software isn't constantly crashing Mar 13 08:29:51 JesperHead, this is my own problem buddy :) Mar 13 08:29:54 Mavrik: *blink* Mar 13 08:29:58 Leeds 1.9 isn't new though Mar 13 08:30:03 kuldeepdhaka: so sorry Mar 13 08:30:07 i mean, like a few months ? Mar 13 08:30:09 I didn't say anything about new Mar 13 08:30:14 JesperHead, np :) Mar 13 08:30:31 Leeds, that's just boring Mar 13 08:30:38 working computers and phones... no adventure in that Mar 13 08:30:58 Mavrik: I'm old... can't be fucked with constantly breaking stuff for fun anymore Mar 13 08:31:10 meh Mar 13 08:31:17 sure you do, being old is a state of mind ;) Mar 13 08:31:39 what im trying to do is till some device is not found, or if found, request permission from user to access it. dont allow user to go further as my app is oriented toward usb device, even if it continue's NULL exception will be thrown and app will be killed Mar 13 08:32:22 "being old is a state of mind" is only valid as long as you dont feel the age ;) Mar 13 08:32:34 ššš. Mar 13 08:33:02 kuldeepdhaka, the thing is, you can't pause the main thread or the OS will kill your process Mar 13 08:33:02 the github guy that compiled the package messed up Mar 13 08:33:11 kuldeepdhaka, and people hate you because your app wil stutter Mar 13 08:33:27 kuldeepdhaka, you can disable buttons and then postDelayed runnable on a main thread handler to reenable them after 100ms Mar 13 08:33:59 hello folks Mar 13 08:34:24 Mavrik, thats what i concluded before (afai understand) Mar 13 08:35:30 what's on everyone's mind? Mar 13 08:36:09 Mavrik, disabling all button would be hard, instead just dont let them continue. if user assign the device to app nothing will appear to user and direct gui Mar 13 08:36:28 i keep having this nagging feeling, i should use hg anyway, but its too late Mar 13 08:36:36 nothing will appear to user = no try again box Mar 13 08:36:44 direct gui = the main control panel Mar 13 08:37:28 ^^ or simply saying: the control panel :p Mar 13 08:40:06 so, what are you guys talking about? Mar 13 08:41:07 Leeds for the android tooling, if you are using gradle / as you are pretty much committed to being on a constant update cycle Mar 13 08:41:20 until the have a dev release, or beta which is more stable Mar 13 08:41:33 always stuff broken … with the hope a new release will be better ;) Mar 13 08:42:43 I don't know what that is. I'm a bit amateur. Mar 13 08:44:24 uh fuck. timcharper only has one prior release up, and THAT is fucking broken too Mar 13 08:45:18 what's wrong with it? Mar 13 08:47:10 g00s, which OS are you on? Mar 13 08:47:19 Mavrik 10.7 Mar 13 08:47:43 it says snow leopard , so i should be OK Mar 13 08:50:09 so does anyone in here develop games for android? Mar 13 08:50:54 * gordon_ doesn't Mar 13 08:51:39 what does gordon_ develop? Mar 13 08:55:07 so, does anyone else have discomfort in the arms that feels like someone has been tugging down on their arms while sitting at the computer? Mar 13 08:56:09 Leeds the irony of the situation is, my stuff is so /old/ - from not updating, i ran into this Mar 13 08:56:56 hehehe, been a programmer for 25 years, I've gone through all feelings u can have, I'm certain :) Mar 13 08:57:44 it's very distracting. what kind of things do you program? Mar 13 08:58:10 I'd love to have that kind of experience under my belt. heck, I'd take 2 year of real programming experience. Mar 13 08:59:13 I program just about anything Mar 13 08:59:55 that's really cool. I'm personally trying to start a indie game company. I love programming, but it's not my life goal. Mar 13 09:00:10 worked on webbrowser for a decently known company for a few years, I once made a lot of hacks for xbox, I worked on prototypes for the army and NATO for a few years on single-chip computers Mar 13 09:00:39 then I got burned out and I've been a fireman for 8 years.... but I wanna program again :) Mar 13 09:00:47 that's really fancy. Mar 13 09:00:52 what's stopping you? Mar 13 09:01:04 nothing, I'm programming :) Mar 13 09:01:15 haha, well then, that's good. Mar 13 09:01:23 boredDev, just don't expect to become rich Mar 13 09:01:43 i know. I'd just like to be able to manage bills at this point. Mar 13 09:02:25 worked for a few game companies, not much to get there. Webbrowser was the big one salary-wise Mar 13 09:02:43 I'm not a greedy person. I'd like to make enough to live a decent life. I'd really like to develop a company to give people with limited opportunities to seek a dream job in game development a chance. Mar 13 09:05:04 I think it's actually rather humorous, I don't even enjoy playing games all that much anymore, but I do enjoy making them. Mar 13 09:05:25 I think programming for fun is the way to do it :) Mar 13 09:05:46 you can still fight fires :) Mar 13 09:05:58 * g00s is putting one out right now Mar 13 09:06:00 ofcourse ! where do u think I program lol Mar 13 09:06:09 haha. Mar 13 09:06:16 can't program at home, too much distractions Mar 13 09:06:32 I've been dealing with that issue. Mar 13 09:06:47 but how is the only place I have. Mar 13 09:07:58 Mavrik: I owe you a beer bud. AnimatorSet is precisely what I needed. Mar 13 09:09:09 I for one - will never work for a gaming company again :) it's the most rotten business I've ever dealt with Mar 13 09:09:24 TJ_CRS: depends on the company, no? Mar 13 09:09:40 why do you say it's rotten? Mar 13 09:10:00 well, true. I've worked for 3 so far, and they all ended up screwing me over Mar 13 09:10:40 hmm :( what did they do? Mar 13 09:12:00 different things, worst one was the game we made from a rather famous norwegian movie. The owners of the movie let us have shares instead of salary for quite a few months. a Week before reeleasing the product he put the company into bankrupcy and bought the rights to the game Mar 13 09:12:04 leaving us with nada Mar 13 09:12:31 he made millions Mar 13 09:12:39 boredDev,inspired by Dong Nguyen ?? Mar 13 09:12:48 O_O! Mar 13 09:13:01 I don't know who that is. Mar 13 09:13:40 TJ that's terrible. I wouldn't blame that on games though, I'd blame that on dirty greedy people. Mar 13 09:14:06 rak_ I don't know who that is. Mar 13 09:15:48 oh, that's the flappy bird dude. No, I've been seeking game development for years, but I'll admit that a recent game I did was based on the idea instilled by flappy bird that a game could be addicting if it were highly competitive, and unreasonably difficult. Mar 13 09:16:35 However, through the game development, my friends encouraged me to make it a little more reasonable. Mar 13 09:20:00 aw, all the talkers disappeared. :( Mar 13 09:20:16 they are probably programming or drinking beer Mar 13 09:20:28 does anyone no about viewpager? Mar 13 09:20:29 two things that should never be done at the same time ;) Mar 13 09:20:40 does anyone know about viewpager? Mar 13 09:21:07 I don't drink alcohol very often. Mar 13 09:21:35 abh I don't really know much about it. what's it for? Mar 13 09:21:37 u should, it's brilliant :D Mar 13 09:22:12 my body isn't very tolerant of alcohol. plus it tastes terrible most of the time. Mar 13 09:24:08 i have built chat application n m try to add emojicons and stickers.. i have added but problem is wen i click on image emojicons its perfect size and all but wen i click stickers its coming same size has emojicons Mar 13 09:24:34 i need to know how i can differniate b/w emojicons n stickers? Mar 13 09:25:05 that's sounds super interesting, but I don't think I could be very helpful. Mar 13 09:26:07 a boolean with an is getter? Mar 13 09:26:58 that was prolly a stupid response, but it's the best I've got. Mar 13 09:27:04 do you use github? Mar 13 09:27:10 boreddev thnx anyways..:) Mar 13 09:27:58 ya i use githhub but its not opensource.. Mar 13 09:28:58 ah, alright. you're prolly going to need to share some code to get help. that's why I was asking, I'm new to these chatrooms, but sending dozens of lines of code doesn't seem practical to do here. Mar 13 09:29:52 ok.. i ll send link of pastebin there u can c my code Mar 13 09:31:10 ok. Mar 13 09:32:02 oh, I forgot all about pastebin. I used to use that for minecraft. haha Mar 13 09:32:39 http://pastebin.com/HDHnD0Da Mar 13 09:33:26 http://pastebin.com/1vip58n8 Mar 13 09:33:53 heh:).. ok look into it.. if any suggestion let me know Mar 13 09:36:58 Mavrik still there ? Mar 13 09:43:49 abh where are you setting the size? Mar 13 09:45:18 g00s, m. Mar 13 09:53:01 Mavrik did we have a discussion about android & typography, kerning, etc ? Mar 13 09:53:15 umm, maybe Mar 13 09:53:21 don't remember anymore really :) Mar 13 09:53:36 this was a nice article today http://www.smashingmagazine.com/2014/03/12/taking-a-second-look-at-free-fonts/ Mar 13 10:04:46 boreddev in emojitextview file gettextsize() is thr rite.. it ll set size Mar 13 10:08:03 nope. just default. and you defined a set emojicon size Mar 13 10:09:36 but, where is the part responsible for getting the sticker or emojicon, and how are they different? Mar 13 10:09:43 forgot command to connect device Mar 13 10:09:47 cant find in google Mar 13 10:10:02 adb select device -s serial ? Mar 13 10:10:18 serial = adb devices Mar 13 10:12:09 wha tcomamnd ? Mar 13 10:12:12 what comamnd ? Mar 13 10:12:20 what command to connect device ? Mar 13 10:12:40 adb connect -s serial ? Mar 13 10:12:47 doieo, ? Mar 13 10:12:51 adb shell pm -s serial ? Mar 13 10:12:59 what are you trying to do? Mar 13 10:14:09 install all trash in SDcard Mar 13 10:14:23 adb shell pm setInstallLocation 2 Mar 13 10:14:36 but idiot adb cant select device first Mar 13 10:14:57 and no change in fone. no "move to SD card" disabled Mar 13 10:15:01 doieo, is this a programming related question or just android question? Mar 13 10:15:02 idiot google idiot Mar 13 10:15:19 this ? Mar 13 10:15:22 your question ? Mar 13 10:15:48 ok nvm .. this is not the correct forum for you to ask your question in please read the topic of this channel Mar 13 10:15:48 ur question is just some engrish sentence Mar 13 10:15:56 get lost lemonxah Mar 13 10:16:28 how about .. no Mar 13 10:16:30 kthnxbye Mar 13 10:16:46 you aren't being very doieo, no one is going to help you if you act like that. Mar 13 10:17:05 ack! aren't being very nice* Mar 13 10:17:18 how to select device S5630a730976 Mar 13 10:17:31 to bad irc cant sed Mar 13 10:17:41 s/very/very nice/ Mar 13 10:17:48 that would have been awesome Mar 13 10:17:55 lemonxah speak programming language or leave Mar 13 10:18:02 that would be cool. Mar 13 10:18:31 poor doieo, i have allready started that you are asking in the wrong forum Mar 13 10:18:39 stated** Mar 13 10:20:29 so what's up lemon? you're an android developer? Mar 13 10:20:33 goto forum.com fOoL Mar 13 10:20:37 yes i am Mar 13 10:20:38 tHiS fREE mIRC Mar 13 10:20:44 ? Mar 13 10:20:49 this no forum Mar 13 10:21:01 u in wrong internet Mar 13 10:21:05 omg .. do you even know what the word forum means? Mar 13 10:21:27 forum : a meeting or medium where ideas and views on a particular issue can be exchanged. Mar 13 10:21:52 all xchange sLEEP hErE- Mar 13 10:21:56 wAtEvEr Mar 13 10:22:08 uSeLeSs dEAD cHaNeL Mar 13 10:22:12 anyway done arguing with incompetence Mar 13 10:22:20 oNLY 'RuLE B0ts' Mar 13 10:22:36 so this has been productive... Mar 13 10:22:38 haha Mar 13 10:22:43 !lemonxah forum rule Mar 13 10:23:00 boredDev, i am a developer on mxit (largest mobile social network) Mar 13 10:23:33 dont argue with idiots. it makes you look one. use "/ignore name". Mar 13 10:23:50 heh no that qoute should read Mar 13 10:24:05 dont argue with idiots, they will drag you down to their level and then beat you with experience Mar 13 10:24:09 :P Mar 13 10:24:40 whatever. I know that quote. but thought I'd just make it more succinct. Ive a page of you trying to argue with an obvious troll. Mar 13 10:25:10 heh not arguing per say .. more entertaining myself during my lunch Mar 13 10:25:31 sometimes its fun fueling .. but only for a bit Mar 13 10:25:31 u dEVeLoP tRaSh . mIxiT lArGeSt TrASh nEtW0rK Mar 13 10:26:14 I'm not familiar with mxit Mar 13 10:26:29 yesterday it was b0t, was useless cretins Mar 13 10:26:30 yeah it started in 2005 on J2ME Mar 13 10:26:54 check out www.mxit.com if you are interested Mar 13 10:26:57 adb set device -s shell pm setInstallLocation 2 ? Mar 13 10:27:39 heh g00s Mar 13 10:27:49 lemonxah: What's the tech stack behind, if you're allowed to share that info? Mar 13 10:28:10 also i like his tenacity, insult the people i want to help me Mar 13 10:28:41 sensen, it used to be a smack stack and then it mutated and then we rolled our own to handle more concurrent connections Mar 13 10:28:44 lemonxah /ignore ! Mar 13 10:28:49 hmm. Ive reached that bit in my java/android travels where there's no reason not to sit down and actually create something. know my way around intellij,androidannotations, activity lifecycles etc. Must try and develop some sort of "get up and go" now.... Mar 13 10:28:53 g00s, nah its fun to read :) Mar 13 10:28:55 g00s: +1 Mar 13 10:29:00 no its not. Mar 13 10:29:11 it pollutes the group and deters new people. Mar 13 10:29:41 that's true. Mar 13 10:29:43 and this IS a good group. Much friendlier than ##java for example which has detiorated into a a "biggest number of bans" competition. Mar 13 10:30:08 heh haven't seen that channel yet Mar 13 10:30:15 lemonxah: Ah, okay. :) Mar 13 10:30:24 rgr i just peeked at androidannotations; does't seem that useful Mar 13 10:30:37 sensen, at any one time we have over 3 mill concurrent connections Mar 13 10:30:55 lemonxah you can do that with one box right :D Mar 13 10:30:59 its useful in removing chunks of boilerplate code. for me it was more nice just to get it working and understand it. Mar 13 10:31:08 lemonxah: Humm.. How many box to serve those connections? Mar 13 10:31:12 heh nope g00s we have proxies Mar 13 10:31:25 like 30+ Mar 13 10:31:33 not sure of the exact numbers Mar 13 10:33:26 I see. Mar 13 10:34:36 lemonxah i could not find the article on HN , something like the '10m connection challenge' Mar 13 10:34:42 for one machine Mar 13 10:36:06 http://c10m.robertgraham.com/p/manifesto.html Mar 13 10:37:40 rgr there is a lot of boilerplate in android. i guess partly b/c of java, some because of design (content providers). i guess each person has a different tolerance to boilerplate Mar 13 10:38:07 i have no problem with simple, understandable boilerplate ... Mar 13 10:38:19 much prefer that to some weird magic that can go on and break behind my back Mar 13 10:38:26 like some annotation processor :) Mar 13 10:38:47 adb iDi0t Mar 13 10:44:19 g00s, hrmph, dunno, AndroidAnnotations significantly reduced boilerplate and made code noticably easier to read and maintain Mar 13 10:44:31 it's also pretty clear what it does and how :) Mar 13 10:51:33 some of the annotations seem fun; others like @UiThread and @Background i wouldn't use Mar 13 11:01:38 hello, you guys know of any DNS debug tools that work on android Mar 13 11:02:14 I am trying to connect my PC to android using one of those devices eth to usb Mar 13 11:03:23 I can actually ping from my android device to an IP, but cant ping to a hostname Mar 13 11:03:39 any ideas? Mar 13 11:20:18 notok: your DNS is broken Mar 13 11:21:29 SpeedEvil, please could you elaborate a bit more :o\ Mar 13 11:21:53 Alas - no. Mar 13 11:22:22 All I know about android DNS is that it's controlled by the android stack, and there isn't easy ways to fiddle with it Mar 13 11:22:47 I would wonder if there are DNS servers on the appstore Mar 13 11:23:23 er.. have no idea, lemme check Mar 13 11:23:36 dhcp returns the right stuff like gateway,dns,ip etc... Mar 13 11:23:59 and if I try to access something with IP it works yet dns is not working Mar 13 11:24:42 note that I am trying with eth0 interface Mar 13 11:24:43 just checked out AndroidAnnotations, it looks interesting, but it kinda feels like i'm drowning in frameworks at the moment :S there's just so many for SOOOOO many different (and similar) tasks Mar 13 11:26:04 bankai_ yeah, they have rest stuff, concurrency stuff, etc Mar 13 11:26:13 i'd use rxjava over their concurrency stuff any time Mar 13 11:26:28 are they smashing together existing frameworks or spinning their own everything ? Mar 13 11:26:35 i can live with findViewById() :) Mar 13 11:27:20 g00s, @Background and @UiThread are the main reasons I use it ;) Mar 13 11:27:58 * g00s smack Mavrik with rxTrout Mar 13 11:28:16 rxJava is awful Mar 13 11:28:31 it adds even more noise and boilerplate over already verbose Java concurrency primitives Mar 13 11:28:56 for alot of server-side concurrent work yes Mar 13 11:29:09 i hope we get java 8 landas Mar 13 11:29:14 yeh. Mar 13 11:31:27 if we don't, i'm betting somebody in the android fireside chat will ask when will we get moar java ;) Mar 13 11:31:34 during i/o Mar 13 11:32:42 they asked last year and the answer was "er... *mumble mumble* maybe *mumble* no " Mar 13 11:34:58 i hear that kinda response a lot at work Mar 13 11:36:04 bankai_ probably also when you ask your dogs if they were the culprit :) Mar 13 11:36:17 wag wag wag is the usual response Mar 13 11:36:19 "did you do this?" Mar 13 11:36:35 then i think "aww you're so cute.... where's the ball?" Mar 13 11:36:43 hehe Mar 13 11:42:36 where would you go (Freenode) to ask about byte to bit and hex to byte and conversion and that stuff? Mar 13 11:42:42 CS 101, basically Mar 13 11:48:25 lol Sicp you asked that in #git XD Mar 13 11:48:26 ##programming seems to be the best choice Mar 13 11:48:32 yea I wanted a quick answer Mar 13 11:48:35 haha Mar 13 11:48:53 you ever had an exception come up as you run your app again? Mar 13 11:48:58 nobody could tell me why the 1.9.0 mac package is busted Mar 13 11:49:01 at the time of it closing and then reopening Mar 13 11:49:27 something's onClose or onDisconnect is finding some other thing to be null Im guessing Mar 13 11:56:15 so in my early experimentation days should I be using actionbarsherlock? If not why not? or if so why? Any advice appreciated. Mar 13 11:57:01 rgr i'm sure JakeWharton would say no Mar 13 11:57:13 but you can ask him why :) Mar 13 11:57:15 why? Mar 13 11:57:31 cause who praises their own work right? Mar 13 11:57:33 lel Mar 13 11:57:36 tl;dr would be use minSdk=14 or something Mar 13 11:57:58 someone asked him that yesterday Mar 13 11:58:22 but you would say yes? I'm aware of the dangers of moving too far from the "core" APIs too but also dont want to fight known weaknesses. e.g much as I like androidannotatins I'll probably remove them so I get a better feel for the native APIs there and in my face as I become familiar with the set up. Mar 13 12:01:38 no, JakeWharton is right. for a new app, minSdk=15 Mar 13 12:02:12 hi, what's the idiomatic/recommended way to programmatically create a symlink? Mar 13 12:03:02 ugh Mar 13 12:03:03 don't. Mar 13 12:03:08 basically :) Mar 13 12:17:46 Mavrik: yeah, I just noticed that the underlying fs doesn't always support them Mar 13 12:18:52 Hi Mar 13 12:19:15 I have an issue where the nexus 7 isn't able to locate my files Mar 13 12:19:26 Even though the path is right Mar 13 12:21:23 are you sure? ;) Mar 13 12:21:28 kitkat changed paths Mar 13 12:22:35 http://bas.bosschert.nl/steal-whatsapp-database/ Mar 13 12:23:35 hey folks Mar 13 12:23:52 there are so many names in this channell. do people just sit in the channel and never talk? Mar 13 12:25:30 many are just using a bnc I guess Mar 13 12:25:53 bnc? Mar 13 12:26:10 uhm Mar 13 12:26:13 a program that connects to an irc server for you and stays online. Mar 13 12:26:16 Im changing the width of a view, actually an image view. Can I animate it in any way? Mar 13 12:26:36 You connect to the bnc instead of the irc server. That way you can use the same chatrooms and history from multiple computers, boredDev Mar 13 12:26:52 boredDev: /join #ubuntu Mar 13 12:26:56 or #bitcoin Mar 13 12:27:02 ah. I've just been connecting to this from webchat.freenode.net Mar 13 12:27:04 haven't been on irc for 14 years, kinda forgot what it was lol Mar 13 12:27:13 boredDev if you just want to chat, try #defocus or something ;) Mar 13 12:27:20 TJ_CRS: welcome back :) Mar 13 12:27:28 hi :) Mar 13 12:27:41 boredDev: all I'm saying is that under 400 people is quite a small channel by freenode's standards :) Mar 13 12:28:03 I'm new to freenode. I'll keep that in mind. :) Mar 13 12:28:55 so #defocus is just a general chat place? Mar 13 12:33:08 hi Mar 13 12:34:06 hi Mar 13 12:34:27 wb :) Mar 13 12:35:50 guys what can be the best way to get logcat from android device Mar 13 12:37:13 bah, chrome is acting up. Mar 13 12:37:38 define "get". you can see it in your IDE. you can use logcat -f via adb to dump it to a file. Mar 13 12:37:54 hi Mar 13 12:38:14 i change my app to use volley, and after this i have this problem java.lang.OutOfMemoryError: thread creation failed Mar 13 12:38:24 i am using Volley with singleton Mar 13 12:38:30 i mean the app is run on android device how can i use ide in mobile Mar 13 12:39:21 there are a few good apps that let you develop directly on an android device, if that's what you're asking. Mar 13 12:40:45 u need to cache all the images Mar 13 12:47:26 gordon_: yes I'm sure, I checked it both via adb shell and 2 file browser apps Mar 13 12:48:51 no, JakeWharton is right. for a new app, minSdk=15 <-- yes and no .. yes that is what i would like to do .. but if you are developing for africa you cant Mar 13 12:49:58 or america Mar 13 12:50:09 walmart still sells gingerbread phones Mar 13 12:50:12 i bought one 2 weeks ago Mar 13 12:50:29 i know ppl locally who have the same phone too Mar 13 12:50:46 still sells vs only sells for africa Mar 13 12:51:06 well not really only but 90% of the android devices in africa and india is still gingery Mar 13 12:51:48 why not include minSdk 10, is there something not available in those that you need? Mar 13 12:53:34 yeah, i agree you have to know your market Mar 13 12:53:36 we are still on min 8 (should be 7) but its 8 cause of the play services we have .. we are not updating the play services Mar 13 12:54:28 Does anybody have issues with not being able to find files on certain tablets? (nexus 7 in my case) Mar 13 12:54:29 we have 150K devices that is on 2.1 (7) which we cant cater for anymore and they think that we choose to ignore them Mar 13 12:55:48 I had to make my application min target 10 because 8 wasn't able to handled admob with google play services. I'm sure I could have managed a work around, but that was more time and effort than was really worth it. Mar 13 12:56:56 Hmm, 8 is 2.2? Mar 13 12:57:33 hi anyone can help me how to share result to facebook i have inserted Uri imageUri = Uri.parse("android.resource://your.package/drawable/fileName"); Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("image/png"); intent.putExtra(Intent.EXTRA_STREAM, imageUri); startActivity(Intent.createChooser(intent , "Share")); but not working cause failed attachment my image.png on my drawable Mar 13 12:57:51 uuuuseeee pasteeeebiiiinz Mar 13 12:57:56 creatorb1 bro! Mar 13 12:58:35 g00s: yeaah :D hello bro, nice to meet you...hows you today? Mar 13 12:58:51 in intellij should an update to build.gradle auto kick off a refresh? or do you manually "refresh" from the gradle tool window or simply rebuild? Mar 13 12:58:59 It's techinically still a single line and the policy is "> 3 lines, pastebin" (usually) Mar 13 13:04:45 Would anyone like to help me with a problem Im having with google maps please? Mar 13 13:07:08 I currently have gradle 1.10 but there is a 1.11. can I just get rid of the old one or do I need to purge ~/.gradle too? Mar 13 13:09:02 hi anybody help me how to share finalresult to facebook? Mar 13 13:11:04 I'd love to help, but I've recently been confused by the facebook apis. Mar 13 13:12:35 ooo, question, does anyone know of a good source that I could use (book, web tutorial, etc) so that I could learn to do my own network programming so I don't have to use services like openkit.io Mar 13 13:12:51 Hey guys, I was performing some tests on a rooted device using sshdroid, and it seems like the reboot command doesn't do anything, is this normal? Is there another way you're supposed to reboot the device? Mar 13 13:12:53 rgr if using 1.11, you need AS 0.5 + Mar 13 13:13:41 I dont use AS. I use intellij. Mar 13 13:14:04 seems to work. changed symlink gradle to point to 1.11. Mar 13 13:14:26 If anyone can help me out that'd be great: http://stackoverflow.com/questions/22372504/attempt-to-invoke-virtual-method-void-maps-e-al-w-on-a-null-object-reference Mar 13 13:16:41 Hi, we're having some problems building our app with gradle Mar 13 13:16:49 we get Could not find any version that matches play-services Mar 13 13:16:58 google repositories and google play services is both installed in our SDK manager Mar 13 13:19:13 boredDev: hahah okay i'm confused too...wkwwk owh ya maybe you know how to import data on web to sqlite on my android, so when i'm press the button on android app database will sync automatically new database on web :) Mar 13 13:20:31 lisinge: show build.groovy Mar 13 13:21:24 Hello! In a RelativeLayout I have a central view (which is a 1 pixel width line) and a few other views on the left and on the right of that line. How can I ask the layout to make the central view as height as the entire RelativeLayout (which is a wrap_content)? Mar 13 13:22:06 set central view height to match_parent ? Mar 13 13:22:29 gordon_: https://gist.github.com/lisinge/1f2b232da0bac7073ed2 Mar 13 13:23:59 isnt that quite old ? Mar 13 13:24:02 I mean the version Mar 13 13:24:30 gordon_: tried that. It seems to make the RelativeLayout enlarge to take more space than required. Specifically, that RelativeLayout is placed inside a LinearLayout where the view above it has layout_weight="1". That view completely disappears. Mar 13 13:25:04 ugh Mar 13 13:25:11 luc4: I cannot help you with that Mar 13 13:25:20 I do design when they force me to :) Mar 13 13:25:29 but sounds really complicated Mar 13 13:25:35 probably can be done easier Mar 13 13:25:37 gordon_: me too :-) Mar 13 13:25:53 your views are probably 'red' in gpu debug Mar 13 13:26:22 gordon_: are you asking me if it's odl? Mar 13 13:26:23 lisinge: try newer version of google play services Mar 13 13:26:36 that's what I'd do Mar 13 13:26:41 g00s: you were of course correct. couldt import project. Now I'm confused and maybe you can explain : I have left 1.11 as the system gradle version. I have changed my gradle wrapper in the build.gradle back from 1.11 to 1.10 and it all then works. Has the build process gone and downloaded 1.10 into project localised cache/sys library? Mar 13 13:27:06 dunno, i don't use the wrapper Mar 13 13:27:17 why ? Mar 13 13:27:22 just another thing to fuck things up :) Mar 13 13:27:34 wrapper ? Mar 13 13:27:46 I kinda like it Mar 13 13:28:10 somewhat gradle interemental compilation doesnt work for me quite well Mar 13 13:28:21 well i can see that version in the m2_repository Mar 13 13:28:32 but how does gradly find out where to search for dependencies? Mar 13 13:28:40 lisinge: it doesnt come from maven repo Mar 13 13:29:04 but from android's libs Mar 13 13:29:13 which are downloaded by sdk Mar 13 13:29:22 probably inside gradle android's plugin Mar 13 13:29:23 what's an apropriate version then? Mar 13 13:29:38 4.2.+ Mar 13 13:29:39 maybe Mar 13 13:30:25 compile 'com.google.android.gms:play-services:4.0.30' Mar 13 13:30:31 from google's site Mar 13 13:30:39 it can't find that version either Mar 13 13:30:59 do you have $ANDROID_HOME with everything set up? Mar 13 13:31:07 I mena env variables Mar 13 13:31:18 *mean Mar 13 13:31:31 yeah it points to the sdk folder Mar 13 13:32:34 I'm using v4, AppCompat and android-support-v4-preferencefragment-master support libraries. When I set in manifest android:theme="@style/Theme.AppCompat" I got this error message http://pastebin.com/7Bm8y04S Mar 13 13:32:58 Can anyone help me - what to do now? Mar 13 13:33:53 should be working... Mar 13 13:34:00 what's the stack trace ? Mar 13 13:34:25 Flank_Y320-U30: what are you suing ? Mar 13 13:34:29 *using Mar 13 13:34:30 gradle ? Mar 13 13:34:58 yeah Mar 13 13:35:01 appcompat must be imported as andorid project if used as old android style project Mar 13 13:35:08 Yes, last Eclipse with gradle Mar 13 13:35:30 i dont think eclipse will work with gradle and new android projects :( Mar 13 13:35:55 gordon_, it was imported as android project http://developer.android.com/tools/support-library/setup.html Mar 13 13:37:11 what you mean by stack trace? where can I see that? Mar 13 13:37:11 usually I use logcat window Mar 13 13:38:00 Flank_Y320-U30: stacktrace was for lisinge Mar 13 13:38:23 when using gradle I dont think you need to import it as android project :) Mar 13 13:38:34 build environements are just too big and complex these days. you spend more time wondering about their build support than addressing the apps themselves ;) Mar 13 13:38:51 Flank_Y320-U30: with gradle you need to put this Mar 13 13:38:52 compile "com.android.support:support-v4:18.0.+" Mar 13 13:38:57 into dependencies Mar 13 13:38:59 in build.gradle Mar 13 13:39:03 before that I imported it as a jar, but it did not work inthat way Mar 13 13:39:23 *in that Mar 13 13:39:32 are you sure that you're using gradle ? Mar 13 13:39:51 dont know if that's even possible Mar 13 13:40:06 well, I have gradle folder in project structure Mar 13 13:40:33 hmm Mar 13 13:40:47 do you have build.gradle fle ? Mar 13 13:41:06 one minute, I'll search Mar 13 13:42:51 don't have this file in project folder Mar 13 13:43:11 so you're not using gradle Mar 13 13:43:23 did you just created your project in eclipse ? Mar 13 13:44:24 no. maybe gradle folder is there because I created project 1 year ago and after long time start it again in new version of eclipse Mar 13 13:45:34 hello, my adroid development tools eclipse is no longer starting when I click on its link Mar 13 13:45:34 it was working fine, then I stopped working with it for some time, today I run it, it does not start anymore Mar 13 13:45:41 why do you think that gradle relates to my problem? Mar 13 13:46:46 Kneferilis, did you try start eclipse.exe directly? Mar 13 13:47:24 Flank_Y320-U30, yes, it does not start Mar 13 13:47:49 it does not produce any error pop ups neither Mar 13 13:48:23 Flank_Y320-U30: it doesnt, but we need to know what kind of build system you use in order to help you Mar 13 13:48:26 anyway Mar 13 13:48:46 in the most simple build file there is a line "classpath 'com.android.tools.build:gradle:0.9.+" .. Where does one find if this is "latest" and what determines when and if we update it? Mar 13 13:49:15 why someone would like to develop android java applications instead of java J2ME (Java Mobile) applications? Mar 13 13:49:40 Flank_Y320-U30: did you import support library as project and marked it as library Mar 13 13:49:43 ? Mar 13 13:49:50 Becuase J2ME is dead Mar 13 13:49:56 Kneferilis: do you know what J2ME is or rather was ? Mar 13 13:49:57 no on euses j2me? Mar 13 13:50:17 rgr: do you rememeber times of nokia 3310? :D Mar 13 13:50:21 that was j2me Mar 13 13:50:29 I know what is was, I developed a game on it back then, but now it's called Java Mobile or something, right? Mar 13 13:50:46 I think it's just dead Mar 13 13:51:03 android has nothing to do with it Mar 13 13:51:43 I had j2me on a SE phone. was awful. Mar 13 13:51:58 gordon_, v4 I imported as a jar (and it works), after that I imported appcompat as a project by this instruction http://developer.android.com/tools/support-library/setup.html Mar 13 13:51:58 my app works on android 4, 3 and 2.3! But when I start fragment which using preferences, app failed with message what I pasted on pastebin Mar 13 13:52:24 the deal with my adt eclipse is that I click the pinned icon on my taskbar, it looks started for like two seconds, then icon goes back to inactive and eclipse does not start Mar 13 13:52:35 from all the bullshit spouted about "flying java apps bringing desktop gaming to the phone" i used to wonder if my phone was hosed or I had entered a parallel universe. marketing led garbage. Mar 13 13:53:47 how to reset the highscore in leaderboard in game service Mar 13 13:54:00 https://developers.google.com/games/services/management/api/scores/reset Mar 13 13:54:09 how do we send the request using thi Mar 13 13:55:53 .join #android Mar 13 13:56:31 boredDev, what is #android about? social chatting? Mar 13 13:56:57 gordon_, maybe problem is in android-support-v4-preferencefragment-master.jar? She's only related with fragment on which app fall down Mar 13 13:57:41 But error message says about appcompat Mar 13 13:58:10 Flank_Y320-U30: do you have support lib v4 also? Mar 13 13:58:15 appcompat needs that Mar 13 13:58:19 yes Mar 13 13:58:35 I put images from error message to my drawable-hdpi, but still have same error Mar 13 14:01:01 http://pastebin.com/7Bm8y04S Mar 13 14:01:51 yea. it's more just being able to talk. Mar 13 14:05:07 ugh Mar 13 14:05:16 it's hard to tell form that Mar 13 14:05:24 add jar also to the project Mar 13 14:06:05 is there any framework for using HTML5 to build your android app's interface? Mar 13 14:06:27 yes Mar 13 14:08:45 * Adlai|work googles Mar 13 14:08:51 pfn: thanks Mar 13 14:08:57 -.- Mar 13 14:09:06 please don't use them! Mar 13 14:09:21 Zharf: please convince me Mar 13 14:09:42 * Adlai|work is building an android app that will be ported to other OSs eventually, and would rather minimize the amount of platform-specific code Mar 13 14:10:10 you'll look like crap and don't feel like you belong on the OS at all, regardless of the OS you're on Mar 13 14:10:15 gordon_ : hi bro? Mar 13 14:11:30 Zharf: at that point, looking like crap depends on the designers; and your app will have its own "belonging feel", familiar to users from any platform Mar 13 14:11:41 are there *technical* reasons not to use such a framework? Mar 13 14:12:41 looking like crap and not native is technical Mar 13 14:12:51 you won't be able to look like you belong on an OS unless you specifically build it for that OS, and then you'll look like crap on other OSs unless you build another version for them also, which makes the whole point of html5 moot Mar 13 14:16:03 eh dunno. if you build the app right, then skinning it is just a matter of css... but that's like saying, "I'll use regex" :D Mar 13 14:16:30 * Adlai|work is building with java for the next few months anyways, so it's a moot point atm Mar 13 14:17:21 Xamarin is usually a way better option Mar 13 14:17:24 not cheap tho Mar 13 14:18:13 hi everybody anyone help me how to share final result to facebook? Mar 13 14:19:09 Mavrik: how about robovm? Mar 13 14:19:20 anyway Mar 13 14:19:24 moving to sleep Mar 13 14:19:26 good night! Mar 13 14:19:29 creator, not having any luck on that issue, huh? Mar 13 14:19:43 * Adlai|work wonders why Google displays an ad for Xamarin, right above the search result for Xamarin, when my search consisted of just "Xamarin"... haven't they heard of DRY? Mar 13 14:20:46 Mavrik: thanks for the suggestion. It is both duly noted, and... expensive Mar 13 14:22:10 hi Mar 13 14:22:23 any can suggest a tutorial to do searchview with suggestions Mar 13 14:30:02 very lame of me but I'm google blind. Whats the link/overlap between com.android.support:support-v4 and com.android.support:appcompat-v7:18.0.+ .... Mar 13 14:30:32 what're these called? https://dl.dropboxusercontent.com/u/19390574/actionbar.png Mar 13 14:30:35 no overlap Mar 13 14:30:38 appcompat depends on support Mar 13 14:30:42 the items below "All Notes" Mar 13 14:32:08 you mean the dropdown menu? Mar 13 14:32:19 yea but when within the actionbar Mar 13 14:32:25 action bar drop down menu? Mar 13 14:32:28 action menu? Mar 13 14:32:49 cause it's making the title turn into a dropdownable menu Mar 13 14:32:50 Sicp, drop-down navigation : http://developer.android.com/guide/topics/ui/actionbar.html#Dropdown Mar 13 14:32:55 ah, ok Mar 13 14:32:57 overflow Mar 13 14:33:16 oh, nav dropdown Mar 13 14:33:59 ah, not what I was looking for Mar 13 14:34:18 anyone know if there is an easy way to make the action bar back button (enabled using setDisplayHomeasUpEnabled) use the same animation as hitting the normal back button? When hitting the normal back button you get more of a "sliding off" animation, but when using the action bar back button you get more of a "new activity" animation. Mar 13 14:34:57 it's....*exactly* the same animation Mar 13 14:35:19 Sicp not from what I am seeing Mar 13 14:35:26 I am trying it as we speak Mar 13 14:35:40 Sicp hmm, i am using the support action bar. not sure if that has anything to do with it Mar 13 14:35:46 Sicp what device are you on? Mar 13 14:36:01 Nexus 5 Mar 13 14:36:21 theblang, if you handle it yourself you can modify the behaviour Mar 13 14:36:23 not using support action bar Mar 13 14:36:28 theblang, it's just a menu item with ID of android.id.home Mar 13 14:36:46 any can suggest a tutorial to do searchview with suggestions Mar 13 14:36:49 ? Mar 13 14:39:03 Hi Mar 13 14:39:21 How can I give my app access to read from SD? Mar 13 14:39:40 I have an issue where I'm not allowed to read from the SDcard Mar 13 14:40:28 there's a permission for that, Serus Mar 13 14:41:07 http://stackoverflow.com/questions/8954293/permission-to-read-data-from-sd-card Mar 13 14:41:16 does it make more sense to send over a user id and then on the server query for the user's array items then query on that or to send the userid with the array items? Mar 13 14:41:42 Mavrik, Sicp yeah, just tested on our Nexus 5. It does the same thing. Maybe it has something to do with the support library? I am declaring the PARENT_ACTIVITY in manifest, and using getSupportActionBar.setDisplayHomeAsUpEnabled. Weird that it does that. What would the proper way to modify the behavior be? Mar 13 14:41:59 I do getActionBar(), not using supportActionBar Mar 13 14:42:20 and I also have specified parent_activity, but it is useless in my case Mar 13 14:42:37 because only supportActionBar uses parent activity to know where to go back, in my case I just do finish() Mar 13 14:43:05 Sicp got ya. it is not a huge issue, but really bugs me lol Mar 13 14:43:16 Sicp seems weird that it would differ across the regular and support api Mar 13 14:43:17 use the native one, and see if it still does it Mar 13 14:43:21 then you will know Mar 13 14:43:49 well I am guessing that in the case of support action bar, it behaves like its opening a new activity because maybe it actually is Mar 13 14:44:26 Sicp yeah, that is the weird part. Seems that if the back button uses an animation, the home back button would use the same Mar 13 14:44:39 you don't do finish() right? you just specify parent and then pressing back automatically takes care of where to send you next Mar 13 14:44:44 Sicp yup Mar 13 14:44:55 yea, its opening a new one, which is (to you) the old one Mar 13 14:45:01 I am guessing Mar 13 14:45:24 hi bro, anyone know how to share final result to facebook Mar 13 14:46:31 *intergalactic WAT* Mar 13 14:47:57 wonderful, now I have banner ads everywhere for mobile portability frameworks >_< Mar 13 14:48:15 * Adlai|work can't say he wasn't asking for it Mar 13 14:48:42 creatorb1: final result of what? Mar 13 14:49:30 Adlai|work: final result of my app.. Mar 13 14:49:39 creatorb1: dunno. have a gander at https://developers.facebook.com/docs/android/share Mar 13 14:50:11 yea, have a gander Mar 13 14:50:13 haha Mar 13 14:55:41 Adlai|work: thanks bro, i have checked but my final results i want to share point of all layout not dialog,.. Mar 13 14:55:57 Sicp I just tested with a new Test project, Api Level 11 so I could use the regular Action Bar, and it does the same thing. I am on a Nexus 5 also. I wonder what is different between our methods? Mar 13 14:56:06 creatorb1: can you be a bit more specific? I'm having a hard time understanding what exactly you want to do. Mar 13 14:56:28 http://stackoverflow.com/questions/22382508/send-array-items-to-server-or-query-it-on-the-server-side Mar 13 14:56:48 Hey so that is my question... trying to figure out how to go about making a server request on the server, to send more from android or send less Mar 13 14:58:21 this is what's different, theblang http://pastie.org/8914898 Mar 13 14:59:07 Adlai|work: ok like this, i have created my trivia quiz and the end of game show the result point, nah now i want to adding share button to share a point to facebook... :) Mar 13 14:59:43 how does gmail and foursquare use the progress bars the new style is it something easily found or customized like that Mar 13 14:59:52 Sicp ahhhhh, got ya. I still feel that should be the way it works by default, hehe. That is an easy change. Mar 13 15:00:31 awesome found it Mar 13 15:00:48 creatorb1: ok. look at tutorials for "Publishing Custom Stories", here: https://developers.facebook.com/docs/android/sample-apps Mar 13 15:00:58 why did you mention going back to API 11 to use the regular Action Bar? I am running on min 14 and target 18 Mar 13 15:01:00 LoneSoldier728: maybe i have some problem like you, i want to import my data on the web to sqlite database app...maybe you know how to do it :) Mar 13 15:01:09 no need to go back to use it Mar 13 15:01:25 what problem are you having Mar 13 15:01:54 Adlai|work: oke i will check now... wait a few minute :) Mar 13 15:02:35 What is the purpose of v13.FragmentCompat? Aren't those methods available in v4.Fragment? Mar 13 15:03:31 LoneSoldier728: i want to import my data on the web to sqlite database app...maybe you know how to do it Mar 13 15:03:52 from website to mobile sqlite? Mar 13 15:04:09 send it from your server then store it in sqlite once the app retrieves it... Mar 13 15:04:36 Does anyone here use admob with the amazon store? Mar 13 15:06:58 Hello guys, I have a problem and I have not idea how to solve it. I am trying to connect an ethernet adapter to my device (kk4.4.2) so I had compile the modules and insert them into the kernel. I am trying with netcfg eth0 dhcp or dhcpcd eth0 to connect and I am getting IP. The problem is that dns is not working. Can anyone help? Mar 13 15:07:18 I had try every possible compination of properties net.dnsX etc Mar 13 15:07:18 net.ethX.dnsX Mar 13 15:07:21 I am dumping the packets and there is nothing on port 53 Mar 13 15:07:24 (dns port) Mar 13 15:07:29 guys anyone? I am struggling 4 days with this issue Mar 13 15:08:24 TacticalJoke: looking at that myself. God its confusing. Mar 13 15:08:35 Yeah. It seems to be a mess. Mar 13 15:09:13 petrkalos: check channel topic: "Android application development" - not kernel/OS hacking Mar 13 15:09:17 Adlai|work: wow bro, i have checked, but confused :( i think to share result to fb is simple trick but not, maybe you have another way :D Mar 13 15:09:17 LoneSoldier728: yeaah :D but i'm confused, i want to add update button, nah then user click it button so database automatically sync to my json on the web :) Mar 13 15:09:29 but v13 is for fragment compatibility post 3.2 or something. I dont know. I'm starting to headless chicken it. Mar 13 15:10:16 the kernel/os he is hacking is android... Mar 13 15:11:37 creatorb1: I've never done it myself, just pointing you where to begin your research... good luck :) Mar 13 15:11:44 Is there any way to pass all touch events that happen in a gesture detector on to a view that is behind it? It seems like the Gesture Detector has to consume everything to analyze more complex events even if it doesn't end up doing anything with it. Mar 13 15:12:01 creatorb1: I'm pretty sure "publish custom story" is the functionality you're looking for Mar 13 15:12:09 it's just a question of building that story, and publishing it Mar 13 15:12:28 yiati: a view behind gesture detector? Mar 13 15:12:40 The v13.FragmentCompat thing seems to use native Fragments. Mar 13 15:12:48 In that case, why use the support library? I don't get it. Mar 13 15:12:53 Maziz: Yes, a view behind a view that has a gesture detector bound to it Mar 13 15:13:35 Maziz: I am specifically trying to throw a blank view over the screen to catch all navigation events, and then pass on anything that isn't a navigation event to the next layer Mar 13 15:13:58 what about intercept touch? Mar 13 15:14:28 use you gesture in there. If not what you want delegate to ontouch Mar 13 15:14:31 or something like that. Mar 13 15:16:11 Maziz: Hmm don't remember if I've tried that yet, I will try it out Mar 13 15:16:13 thanks Mar 13 15:16:47 Sicp: That was it, thanks Mar 13 15:16:53 yiati: http://developer.android.com/training/gestures/viewgroup.html#intercept Mar 13 15:17:10 what was it? Mar 13 15:17:21 ok Mar 13 15:19:39 Maziz: Ah yeah I did try that before, but the GestureDetector class has to consume the touchevent in onDown to be able to see if any of the more complex events happen like onFling or onSingleTapConfirmed Mar 13 15:20:02 I looked at the code for v13.FragmentCompat. It does nothing if the API level is too low; does something otherwise. Mar 13 15:20:09 Where v4.Fragment does the thing in all cases. Mar 13 15:20:10 Weird. Mar 13 15:20:14 Even if I end up doing nothing with a swipe in onSwipe Mar 13 15:20:36 I can't return false because the event was already consumed on the first onDown event Mar 13 15:20:43 Whereas * Mar 13 15:21:05 yiati: could you explain the case. Mar 13 15:22:45 Adlai|work: thanks a lot bro :) i will research it, but not now cause deadline wkwkwk maybe i will not add share button :D owh ya i have last question...maybe you know or anybody help me, i want to sync my db sqlite with my json.txt nah actually i will import new data on json.txt when i'm revision old data to sqlite with press update button on my app :) Mar 13 15:22:47 v4 in all cases? even if the phone its on supports native api level? I dont understand how it works well enough to comment. I'm just getting more and more dismayed as I read posts here where it seems not only do you need support layersy x y and z you also need a "per device" switch in the code too.... Mar 13 15:23:26 Maziz: Yeah, I have a ViewPager filled with Photoviews (using https://github.com/chrisbanes/PhotoView) that fills the whole screen, and it needs to look at every touch event to be able to catch more complicated things like pinchzoom which PhotoView handles. On top of this however I would like to have a layer that overrides anything that PhotoView does if a navigation event happens such as swiping left/right hard enough, or tapping on the left Mar 13 15:23:26 /right 1/4 of the screen. Mar 13 15:24:31 Maziz: It's tricky though because both the Navigation layer, and the Photoview need to catch every event, but the Navigation layer should always have precendence Mar 13 15:24:47 Unless there's an easier way to do this that I'm not thinking of Mar 13 15:26:40 you wanna use gesture to detect swipes Mar 13 15:26:41 and? Mar 13 15:28:19 i don't think gesture will consume everything in onDown Mar 13 15:31:15 sorry onFling Mar 13 15:31:28 Maziz: Yes I would like to detect swipes. If it were just touches I wouldn't have any issues. GestureDetector requires onDown to return true to get to more complicated touch events like onSwipe. When onDown returns true it is consuming a possible touch event that my next layer could want. a Mar 13 15:31:33 http://stackoverflow.com/questions/4522637/android-onfling-not-responding Mar 13 15:33:38 hmm Mar 13 15:33:51 wonder how i did it last time. Mar 13 15:36:34 one of you fellas got an example you can pastebin of a build.gradle for a project using a base include for the common stuff? where the base build.gradle I would probably keep in a top level common directory. Mar 13 15:37:06 do I need to send a cookie for each user Mar 13 15:37:25 or can I just assume that it is the right user and just pull out the userId stored in sharedpref? Mar 13 15:37:31 or in intellij can I reference a build.gradle outside of the project directory and that build.gradle uses some sort of other meta data to specify the targets? Mar 13 15:40:39 How can I change the network type ?Is there anyway to do it from the sdk? Mar 13 15:45:10 Someone on SO said "All of the APIs in v4 are included in v13". Is that right? Mar 13 15:45:14 I thought v13 had almost nothing. Mar 13 15:46:07 Sicp haha, so I tried the onOptionsItemSelected method, using finish. It still does the "new activity" animation. Mar 13 15:46:18 waaaat Mar 13 15:46:35 using Actionbar and removing Parent Activity from manifest? Mar 13 15:48:34 Sicp ahh, wups, forgot to remove parent activity from manifest. Now it works. Mar 13 15:48:44 :) Mar 13 15:49:08 Sicp thanks man! Mar 13 15:49:25 ok Mar 13 15:51:12 Sicp I was hoping to do just implement the fix in one place, my BaseActivity that all other activities extend from. Problem is, navigation drawer also triggers android.R.id.home. Not a big deal, but just FYI Mar 13 15:51:56 ah Mar 13 15:52:02 can anybody suggest a tutorial to do searchview with suggestions ? Mar 13 15:52:07 well... Mar 13 15:52:12 i am on this 4 hours ehauehehe Mar 13 15:52:14 Sicp though I guess technically you could implement in BaseActivity, but in MainActivity catch it and just return true. But that is starting to feel a little hacky. Mar 13 15:52:56 navigation drawer click falls into the same case as android.R.id.home? Mar 13 15:53:07 Sicp yeah, it appears so Mar 13 15:53:45 Does the v13 JAR effectively include the v4 JAR? Mar 13 15:53:50 Yes Mar 13 15:54:05 Okay. Mar 13 15:54:05 well I have to go now, talk later Mar 13 15:54:14 Sicp see ya later! Mar 13 15:54:18 So, if I'm targeting 4.x, I might as well include v13, right? Mar 13 15:54:23 And just ignore v4. Mar 13 15:54:43 Sure, if you need something from v13 Mar 13 15:54:56 Hmm. Thinking about it, I doubt I will. Mar 13 15:55:02 Hi , I have two application , one has made a sqldatabase with tables , now i want to write data into the table with my another app , the device is rooted already Mar 13 15:55:05 Maybe I could just start with v4 and see if a v13 need arises. Mar 13 15:55:08 how can i do that ? Mar 13 15:55:36 TacticalJoke I am guessing your minSDK is lower than 4.x? Mar 13 15:55:36 Guys.Does anyone know how to change the network type from the sdk? Mar 13 15:56:40 theblang: It will be 4.0. Mar 13 15:56:52 (I haven't started the app yet. :) Mar 13 15:57:32 TacticalJoke then you shouldnt need anything below v13 right? Mar 13 15:58:04 theblang: I'm gonna be using the v4 support library. Mar 13 15:58:14 TacticalJoke what for? Mar 13 15:58:15 For fragments, for example. Mar 13 15:58:27 It's better to use the support library. Mar 13 15:58:49 The support library gets updated often (where users update Android rarely); therefore, Fragment (etc.) bugs are fixed quickly. Mar 13 15:58:50 TacticalJoke why is that? if min is 4.0 aren't fragments in the native api? Mar 13 15:59:11 TacticalJoke oh, interesting. i personally have to use it because im targetting lower Mar 13 15:59:17 Maybe he wants to use api's not available in api14 Mar 13 15:59:29 Maybe he just wants consistent behavior across api levels Mar 13 15:59:30 Yeah, there are some things *only* in the support library. Mar 13 15:59:36 And consistency, too. :) Mar 13 15:59:43 TacticalJoke, SimonVT interesting, didn't realize this since I am having to use it anyway Mar 13 15:59:53 I too didn't realise until last night, theblang. lol Mar 13 16:00:03 And I too have been developing for lower APIs. Mar 13 16:01:14 SimonVT : can you please help me Mar 13 16:01:20 I have two application , one has made a sqldatabase with tables , now i want to write data into the table with my another app , the device is rooted already Mar 13 16:01:30 no Mar 13 16:01:59 I just use support-v4 because of stuff that isn't in framework Mar 13 16:02:01 like viewpager Mar 13 16:02:04 and drawerlayout Mar 13 16:02:05 ok :| Mar 13 16:02:15 pfn : I have two application , one has made a sqldatabase with tables , now i want to write data into the table with my another app , the device is rooted already Mar 13 16:02:23 so? Mar 13 16:02:26 why are you asking me Mar 13 16:02:44 I thought you could guide me ... Mar 13 16:02:50 to a refrence or something Mar 13 16:02:52 Ask your question, wait for an answers. If noone has answered after 20-30 minutes, ask again Mar 13 16:02:58 If you never get an answers, try stackoverflow Mar 13 16:03:10 ok SimonVT Mar 13 16:03:34 What would someone do if they wanted to use ActionBarSherlock (which includes v4) and they wanted to use v13 (which includes v4)? Mar 13 16:03:49 TacticalJoke I personally am using Gradle Mar 13 16:04:22 ABS doesn't include v4, it depends on it Mar 13 16:04:34 As does v13 Mar 13 16:04:45 Okay, but wouldn't there still be an error? Mar 13 16:04:49 Using both ABS and v13. Mar 13 16:05:01 So noone knows how to change the network type? Mar 13 16:05:08 Not unless you for some reason manage your dependencies manually Mar 13 16:05:23 Instead of using gradle, maven, or something that pulls from maven repositories Mar 13 16:05:31 How would such an error be resolved? By removing v4 from ABS? Mar 13 16:05:38 from ABS's dependencies* Mar 13 16:05:43 Yes Mar 13 16:05:45 K. Mar 13 16:06:13 I thought your minsdk was going to be 14 Mar 13 16:08:25 * compac hi Mar 13 16:08:42 I am using picasso for cache is there a way to cache text as easily Mar 13 16:09:22 developer.android.com specifically gives a gradle dependency which I guess maps to a maven repo. But why doesnt it work? com.android.support:support-v4:18.0.+ ? It seems I must have it downloaded using the android sdk manager. Mar 13 16:09:43 can you help me understand why this would be? Mar 13 16:11:04 SimonVT: Yeah. Was just curious. :) Mar 13 16:13:15 So im curious, do you prefer, or is there a good reason to have activity animations. I feel like it looks cleaner just turning them off (also a lot of gapps don't seem to have the animations, not sure if they are more heavily using fragments or just turned them off) Mar 13 16:13:43 Is there a difference between, in Eclipse, adding a library in the Android tab and adding items to the build path? Mar 13 16:14:40 Hello!! Mar 13 16:14:46 disregard eclipse, acquire android studio Mar 13 16:15:05 I have a problem with listview and scroll content.. Mar 13 16:15:05 no idea Mar 13 16:15:20 i am kinda new in Android development i cant make it to work Mar 13 16:15:21 lol Mar 13 16:15:41 perhaps is not possible to do what i want Mar 13 16:15:57 I have a listview and i need scrollable content inside the listview items.. Mar 13 16:16:13 the problem is that the event is captured in the listview.. Mar 13 16:16:22 so it scrolls the list.. and not the inner content Mar 13 16:16:25 i think i saw a hack for that on stackoverflow somewhere Mar 13 16:16:37 although i dont think its a best practice to do that Mar 13 16:16:45 i know.. Mar 13 16:16:51 http://stackoverflow.com/questions/21095497/scrollview-in-listview-header-view-not-scrollable ? Mar 13 16:16:59 the problem is that i have fixed size boxes in listview... Mar 13 16:17:12 and the text is bigger... so i need to scroll or do something to show it in the fixed box Mar 13 16:17:24 Just don't make the boxes fixed size Mar 13 16:17:42 yes but i want all the boxes to look the same Mar 13 16:17:56 maybe add elipses or something? Mar 13 16:18:08 i allready did that for the title.. Mar 13 16:18:26 So bad UX is better than boxes of variable sizes Mar 13 16:18:26 I am tryng to make a list of movies with theater shows information Mar 13 16:18:39 in the box i put the pic of the movie, the tittle and the shows Mar 13 16:18:46 the problem is that the shows content is big.. Mar 13 16:18:51 sometimes.. not allways Mar 13 16:19:41 How do you folks name your UI widgets in XML files? like_this or likeThis? Mar 13 16:19:50 I guess the former style is more consistent with other XML elements. Mar 13 16:20:06 but not with java. Mar 13 16:20:19 I will try the link of shigeru Mar 13 16:20:26 On a side note, I hate reading "activity_main". "main_activity" is more readable. Mar 13 16:20:27 (i was wondering the same the other day . hate underscores in names) Mar 13 16:20:32 Same here, rgr. Mar 13 16:20:51 I wish the underscore didn't exist. Honestly. Mar 13 16:20:52 It's so ugly. Mar 13 16:21:00 It slows down my reading. Mar 13 16:21:08 Hyphens are great: this-is-easy-to-read Mar 13 16:21:10 I'm trying to create a listview that has an icon thumbnail for each entry. I am loading both the list data (DONE) and the image paths already. However, I'm not certain how to load the imageview(s) in the listview with the downloaded image data. Is there an example of this online? Mar 13 16:21:14 this_is_hard_to_read (IMO) Mar 13 16:21:25 thisIsOkayToo Mar 13 16:21:35 I hate using underscores. I actively avoid them. Mar 13 16:21:55 boredDev: Even with XML resources? Mar 13 16:22:14 I do game development, so it's really easy to avoid XML Mar 13 16:22:22 K. Mar 13 16:22:40 other than like a value here and there, and the manifest, I don't touch XML Mar 13 16:22:42 XML filenames can only contain lower case characters Mar 13 16:22:54 are you sure that's right? Mar 13 16:22:56 you think this_is_harder_to_read thanThis? Mar 13 16:22:59 o_O Mar 13 16:23:06 Yeah, the underscores slow me down. Mar 13 16:23:15 activity_main is used in order to group resources Mar 13 16:23:16 I keep having to look at the bottom of the sentence. Mar 13 16:23:27 I can read both just fine. reading isn't the issue for me. I hate typing underscores. Mar 13 16:23:43 keep one in your clipboard Mar 13 16:23:48 xD Mar 13 16:23:50 In my programming, I don't type much. lol Mar 13 16:23:52 It's 90% reading. Mar 13 16:24:47 I binge program. I spend like 80% of my time thinking about stuff, and then out of no where I just start programming and it last like 10 hours. Mar 13 16:24:53 haha Mar 13 16:24:56 That sounds familiar. Mar 13 16:26:03 Imagine if we could use hyphens in Java identifiers. Local variables might look-like-this. Mar 13 16:26:05 Isn't that easy to read? Mar 13 16:26:15 when I started doing android java, I actively looked for resources that showed how to do it without XML Mar 13 16:26:17 Obviously the minus operator would then require whitespace around it. Mar 13 16:26:33 I like the caps system. Mar 13 16:26:52 so, I cant use a gradle dependency to ensure that gradle takes care of downloading and caching the android support libraries? Why is that? Why must they be installed via the android sdk manager? Mar 13 16:26:58 entire code base should be uppercase xD Mar 13 16:27:00 The worst is when new words aren't clear. stufflikethis Mar 13 16:27:01 I hate that! Mar 13 16:27:07 what is gradle? Mar 13 16:27:09 People do that a lot in Python, from what I've seen. Mar 13 16:27:15 whereAsThisIsPerfectlyFine Mar 13 16:27:20 Yeah. Mar 13 16:27:25 rgr: Because google didn't upload them to maven central Mar 13 16:27:28 boredDev: gradle is a build and dependency system Mar 13 16:27:29 I like camelCase and PascalCase quite a lot. Mar 13 16:27:34 see, my brain just gets that. It's not confusing to me at all. Mar 13 16:27:49 there was a voguse against it a while back. Experience years ago in C/C++ proved to camel case works well. Mar 13 16:27:53 vogue Mar 13 16:28:14 SimonVT: oh so simple as that. nothing more sinister? Ok, thats fine so! Mar 13 16:28:17 Camel case for the win~ Mar 13 16:28:24 I remember writing C++ code ages ago using the STL and other libraries. God, that was a mess. Mar 13 16:28:25 durn it, that was supposed to be a ! Mar 13 16:28:32 A mess of stuff_like_this and StuffLikeThat. Mar 13 16:28:39 haha Mar 13 16:28:41 I hate ugly code. Mar 13 16:28:51 To me, code is like a work of art. Mar 13 16:28:55 I prolly write a lot fo that though. inexperience fo rthe win Mar 13 16:28:58 heh yeah. I tried using the IBM Visual Age template system. jesus. 2000000 lines generated for an OO hello world. Mar 13 16:29:12 lol Mar 13 16:29:19 haha Mar 13 16:29:31 rgr: There's "sinister" reasons for why they didn't do that Mar 13 16:29:32 I find Java/android to be similarly ugly and bloated but what can you do. Mar 13 16:29:35 I used to hate MFC. Mar 13 16:29:36 (you have to accept their license) Mar 13 16:29:38 SimonVT: ah ok. Mar 13 16:29:38 So horrible. Mar 13 16:29:39 But that's about it Mar 13 16:30:03 It was actually nicer, in ways, to use Win32 directly than use MFC. Mar 13 16:30:11 hmm. yet they provide a gradle snippet on their support pages hinting at it working mavenesque. oh well. Mar 13 16:30:26 It does work like that Mar 13 16:30:36 TacticalJoke: all ways. not least win32 was easier to port to PM/GPI on OS/2 ;) showing age now... Mar 13 16:30:37 The sdk lets you download a support repository Mar 13 16:30:47 I wonder about Android programmers. Are they the Windows programmers of yesteryear? Are they new to programming? Hmm. Mar 13 16:30:49 The android gradle plugin automatically adds that Mar 13 16:30:56 Or the *nix programmers of yesteryear. Mar 13 16:31:06 I've been a big fan of C++ syntax since I started programming with AS 2.0 and C++ when I was young. Mar 13 16:31:14 rgr: Oh, gawd, porting Win32 code sounds like a nightmare. Mar 13 16:31:30 you think I would have learned something in a decade of on off coding, but I feel I know so little. Mar 13 16:31:30 does it? maybe me manually removing it from the sdk manager after using the android plug in broke it then. anyway workign now. Mar 13 16:31:40 boredDev: Personally, I see C++ as a mess. Mar 13 16:31:50 It wants to be and do everything. It ends up being overly complicated. Mar 13 16:31:58 TacticalJoke: was remarkably easy when we put in the transforms to flip all coordinates.... lol Mar 13 16:32:08 but I think it's a lot about how you organize it personall.y Mar 13 16:32:16 rgr: lol Mar 13 16:32:20 But I despised C++. Not so much that its bad per se but its easily abused. Mar 13 16:32:21 C/C++ <3<3<3 there's nothing like a good C++ project Mar 13 16:32:30 TJ_CRS: What do you love about it? Just wondering. Mar 13 16:32:44 I like to actually get things done Mar 13 16:32:46 rgr: My view is that programming is so hard that we need simple tools (e.g., simple languages). Mar 13 16:32:52 When you get it right, it makes code look beautiful :) Mar 13 16:32:52 idiots overloading "+" on integers to go and doe something unlrelated. A nightmare to debug. Mar 13 16:32:55 Humans *cannot* cope with complicated programming using complicated languages. Mar 13 16:33:06 it really does. Mar 13 16:33:08 heard of noflo? Mar 13 16:33:22 if you block all your code just right, it can be so pretty and fluid and readable Mar 13 16:33:27 Seen the talk by Bret Victor abt future of prog langs? Mar 13 16:33:34 I haven't. Mar 13 16:33:39 ofcourse, C++ requires that you connect brain before going at it :) Mar 13 16:33:48 Ooh. Mar 13 16:33:49 and no drinking ! lol Mar 13 16:33:50 I've seen that. Mar 13 16:33:54 Good video. Mar 13 16:33:58 Yup Mar 13 16:34:04 TJ_CRS: But no human is clever enough to fully understand C++. Mar 13 16:34:12 you can drink a little. if you have ADD it can help, maybe. Mar 13 16:34:15 Even seasoned C++ programmers admit they don't understand parts. Mar 13 16:34:22 It's too complicated. Humans are dumb. Mar 13 16:34:33 We need all the assistance we can get. Mar 13 16:34:41 see, but I think thats' fair to say of all languages. Mar 13 16:34:45 no connecting brain at all. thats what most poor programmers say .. "you#re not clebver enough to understand my mesh of interrelated classes, friends and operator overloading" - especially on large code bases requiring a decade long maintenance. Mar 13 16:34:54 the difference is accessibility. Mar 13 16:34:54 It varies so much, though. Java is very simple compared to C++. Mar 13 16:35:02 i agree, even I after my decades as programmer feel I might master 50% at best. But aint it great to have room for improvement ? :) Mar 13 16:35:29 best thing java did was to limit inheritance IMO. ok, interfaces might be seen as a cop out but its, well, easier. Mar 13 16:35:32 TJ_CRS: But what is the improvement? Unless it leads to better apps, it's wasted time. Mar 13 16:35:53 rgr: Yeah, C# did the same. Mar 13 16:35:57 TJ_CTS: no...coz no 1 likes thr product breaking in production Mar 13 16:36:20 It's better if programming languages are simple and easy. Then, and only then, we can be productive. Mar 13 16:36:30 emotionull: need to test things properly :) Mar 13 16:36:34 No doubt sometimes complexity is required, but it can go too far. Mar 13 16:37:04 TJ_CTS: actually thats a good thing...it creates more job opportunities Mar 13 16:37:07 The fact that C++ attempts to be compatible with C makes it a failure from day one, IMO. Mar 13 16:37:09 TacticalJoke: programming is not meant to be easy. if it was easy, why would you need a programmer ? :) Mar 13 16:37:21 but I think that's a complexity and simplicity is really just the difference of control. Mar 13 16:37:25 TJ_CRS: The harder it is, the more bugs there are. Mar 13 16:37:35 If medical software has bugs, that can mean unnecessary deaths. Mar 13 16:37:44 Programming being hard isn't an end goal. Mar 13 16:38:06 C is a relatively simple language IMO. And it encourages one to think about efficiency too. I'm not a fan of garbage collection. The multiple itertions of it and its methods in Java suggest it isnt as "free" and "perfect" as many would have you believe. But then I realise I'm old school. Mar 13 16:38:18 brb Mar 13 16:38:29 TJ_CRS: programming isnt everything...using and developing right algos and right DSs is! Mar 13 16:39:07 what do you mean by DS, I'm not familiar with that abbreviation. Mar 13 16:39:10 I'm actually thinking that C# is getting too complicated lately. Mar 13 16:39:17 It started nice and simple. Now it's becoming bloated. Mar 13 16:39:23 sorry...Data Structures Mar 13 16:39:26 ah. Mar 13 16:39:43 I'm also just terrible with terminology Mar 13 16:39:45 It's all about declarative programming now, it seems. Mar 13 16:39:48 In C#. Mar 13 16:40:06 hvnt tried any .NET lang yet Mar 13 16:40:10 ofcourse not, it needs to be understandable. but point'n'click programming will never be good :) Mar 13 16:40:34 woot to anti-point and click Mar 13 16:40:38 TJ_CRS: I watched a video about a point-and-click thing for Android development. It was actually much more complex than I'd expected. Mar 13 16:40:44 But it left me thinking "Why bother?". Mar 13 16:40:51 It's complex enough to have a high learning curve, and for what? Mar 13 16:41:05 TJ_CRS: u need to see that vid....by Bret Victor Mar 13 16:41:05 we had to use gamemaker for one of my game dev classes, my first question was where do I put the code it. Mar 13 16:41:05 It's incredibly limited. Mar 13 16:41:34 I will, I'm at work right now so I gotta wait a bit. I can do whatever I want as long as I dont have sound on -.- Mar 13 16:41:46 no sound :( Mar 13 16:41:51 I love sound. Mar 13 16:42:00 TJ_CRS: headphones? Mar 13 16:42:09 the small wireless ones Mar 13 16:42:15 for a decade I programmed assembly. java is already a VERY highlevel language in my eyes Mar 13 16:42:29 hehe, I kinda gotta have attention so noone gets hurt :) Mar 13 16:42:36 assembly! Mar 13 16:42:40 I remember assembly becoming less fun after the "Hello, world!" stage. Mar 13 16:42:41 hurt? Mar 13 16:42:41 OMFG! Mar 13 16:42:45 oh. Mar 13 16:42:50 things that burn. Mar 13 16:43:18 assembly is not as bad as people want it to appear. When you get into it, you program it slightly similarly to C Mar 13 16:43:45 yeah, I control 400 firemen today in this county, gotta listen to the noises ;) Mar 13 16:43:49 TJ_CRS: what u working on? Mar 13 16:43:55 I am excited about getting to take an assembly class whenever I actually get to that point Mar 13 16:44:21 Imagine if we had to use assembly for Android apps. Mar 13 16:44:34 you shouldn't. A decent C/C++ compiler makes way better and faster code than humans can nowadays :) Mar 13 16:44:35 boredDev: bt y? C is a limit Mar 13 16:44:54 I can respect C. It's a language that does one thing and does it well. Mar 13 16:44:54 because I want to know more. Mar 13 16:44:58 But C++ wants to do everything. Mar 13 16:45:10 Stroustrup should've invented a totally new language. Mar 13 16:45:23 what r ur thoughts on node.js? Mar 13 16:45:24 When pentium II arrived with the pipelines, it became a massive headache to even match the speed of optimizing code as well as the compiler did Mar 13 16:45:42 Its in a completely diff league i knw Mar 13 16:45:42 c++ has the benefit of working with C though Mar 13 16:45:51 and it's multi-paradigm Mar 13 16:45:53 I'm bad at optimizing. :( Mar 13 16:46:03 I think. Mar 13 16:46:04 emotionull: It shows how badly JavaScript sucks. Mar 13 16:46:11 JavaScript, too, should be replaced by a totally new language. Mar 13 16:46:11 you can't just call it an object-oriented language anymore Mar 13 16:46:20 y u think so? Mar 13 16:46:32 Isn't evented prog good? Mar 13 16:46:35 TacticalJoke: you should look at c++11 and the upcoming c++14, some real game-changers Mar 13 16:46:37 better than threads? Mar 13 16:46:48 It made c++ enjoyable to program in Mar 13 16:47:26 benzap: Can u give a link to any good guide / tut to refresh C++ Mar 13 16:47:36 Hvnt touched it for 2-3 yrs Mar 13 16:47:51 benzap: Yeah, I'd like to read up on that Mar 13 16:47:52 . Mar 13 16:48:00 About the JavaScript thing: TypeScript looks quite nice. Mar 13 16:48:11 Even though it's technically a superset of JavaScript. Mar 13 16:48:24 Ya.. Mar 13 16:48:24 OO is JavaScript is just painful to look at. Mar 13 16:49:28 anyone could help with a DNS problem I have? Mar 13 16:49:50 I always wanted to get into PHP / javascript, but I always wanted to vomit on myself after 15 minutes of reading it Mar 13 16:49:56 Gawd, PHP. Mar 13 16:49:58 It's so horrible. Mar 13 16:50:07 indeed it is Mar 13 16:50:07 petrkalos: yup...whats it/ Mar 13 16:50:08 I've never used it, but for years I've read stuff like /r/lolphp. Mar 13 16:50:10 I don't do network programming, pretty much at all. Mar 13 16:50:15 It seems like an absolute mess. Mar 13 16:50:27 you're missing out, network programming is sweeeeeeeeeet on android Mar 13 16:50:29 it's very foreign and scary to me, and makes my head spin every time I try. Mar 13 16:50:40 The creator of PHP even admits that he's a bad programmer, who hates programming, and who cannot design a good language. Mar 13 16:50:40 @emotionull I am trying to connect an ethernet adapter to a 4.4.2 device Mar 13 16:50:42 I would really like to learn how to do it. Mar 13 16:50:45 TJ_CRS: I love network stuff! Mar 13 16:50:58 I'm gonna do it on Android soon (haven't started the app yet). What you just said is good to hear. Mar 13 16:50:59 Great then I need some help :D Mar 13 16:51:02 I made a kickass mysqlserver-server in linux the other day and now I'm making apps on android to mess with it... such a blast Mar 13 16:51:12 TJ_CRS: Awesome. Mar 13 16:51:18 so I am using the dhcpcd client Mar 13 16:51:20 to connect Mar 13 16:51:30 and everythind is going as it should Mar 13 16:51:37 except I cannot resolve DNS Mar 13 16:51:38 TacticalJoke: you are in for a fun ride :) Mar 13 16:51:54 from console(ping) and java apps Mar 13 16:51:55 my gf just got our indie company a website, and I'd really like to take advantage of its networking features in my games instead of having to use third party services Mar 13 16:52:01 i can access everything with ip Mar 13 16:52:42 dhcpcd sets this property dhcp.eth0.dns1 Mar 13 16:52:47 with the right value Mar 13 16:53:07 i had already set net.dns1,net.eth0.dns1 etc... Mar 13 16:53:12 nothing can work Mar 13 16:53:14 ack. suggest Mar 13 16:53:33 ack.? what is this? Mar 13 16:53:52 I'm too tired to think of words to explain that. Mar 13 16:54:00 :( Mar 13 16:54:04 umm. Mar 13 16:54:05 I am too Mar 13 16:54:16 i am struggling with this issue 4 days Mar 13 16:54:21 it's a sound you make when you're frustrated or something of the sort. Mar 13 16:54:24 /win 23 Mar 13 16:54:29 meh Mar 13 16:54:31 TJ_CRS: :D Mar 13 16:54:36 lol :P Mar 13 16:54:39 TJ_CRS: I used to love creating my own protocols over TCP. Mar 13 16:54:49 so any ideas on my problem? Mar 13 16:54:51 That leads to a lot of text parsing, which I'm into. Mar 13 16:54:57 how do you learn this fancy network programming?! Mar 13 16:54:59 That's also nice to unit-test. Mar 13 16:55:18 boredDev: I think the key in programming is to want to make an app that does X. Then you learn all about X. Mar 13 16:55:23 Any other way of programming seems to be a bad idea. Mar 13 16:55:29 It's all about motivation. Mar 13 16:56:02 ? I was hoping for a starting point. like research X to learn network programming. Mar 13 16:56:12 Oh. I'm not sure about Android. I haven't done it yet. Mar 13 16:56:22 But I used to do a lot of client/server stuff on Windows. Mar 13 16:56:37 TacticalJoke: I see we have a lot in common lol Mar 13 16:56:43 It's a case of figuring out the basics of TCP and then figuring out how the client/server APIs work. Mar 13 16:56:46 TJ_CRS: lol Mar 13 16:56:48 i feel like that should be easy to transfer, but I've been wrong before. Mar 13 16:56:54 if your app imports "android.support.v4.app.FragmentManager" why would it also import "import android.app.FragmentManager;" ? my reading of the docs suggests it will always use the legacy support code (https://developer.android.com/reference/android/support/v4/app/FragmentManager.html). I'm seeing both imported when googling issues quite a lot. Mar 13 16:57:06 TJ_CRS: Perhaps my most fun app was creating an HTTP server using Winsock. Mar 13 16:57:47 Though parsing HTTP headers was insane. Mar 13 16:58:54 TacticalJoke: On the xbox I was so upset that it took hours to transfer a few games to the system, so I made it slightly faster by expanding the FTP protocol Mar 13 16:59:02 went from 3 hours to 8.3 minutes ;D Mar 13 16:59:07 lol Mar 13 16:59:29 had over a quarter million users, was very popular ... back then Mar 13 16:59:58 but yeah, its become one of my favorite topics, networking and clever protocols Mar 13 17:01:19 how "complete" server did u make ? I made one too once , but it was in it's simplest form, just transmitting requested files :) Mar 13 17:01:32 Yeah, mine was simple. Mar 13 17:01:43 think I managed to make it in 80 lines or so. Did it to get job at Opera hehe Mar 13 17:01:51 I did it mainly for fun, but I also used it in a file-hosting app with a nice GUI. Mar 13 17:02:01 hi all. n00bie here, with a n00bie question. In what kind of class of a simple project would you guys handle the LocationManager? I was thinking static subclass, but I can't get that to work. I think my java is failing me there :P Mar 13 17:02:06 nice, thats alway fun :) Mar 13 17:02:22 Do you still work for Opera? Mar 13 17:02:35 half hour to gooooooo Mar 13 17:03:16 I also enjoyed writing chat clients, for Yahoo!, IRC, etc. Mar 13 17:03:18 nah, quit at opera back in 2001. I'm a fireman now Mar 13 17:03:19 The IRC protocol is very neat. Mar 13 17:03:24 K. Mar 13 17:03:35 it is? it's so naive... Mar 13 17:03:42 I wanted to write one for Paltalk, but their protocol is so hard to figure out. Mar 13 17:03:50 yeah, made a irc client but it's kinda painful i recall Mar 13 17:03:51 pfn: Yeah, but it's kinda easy to program for. Mar 13 17:04:01 yeah, doesn't make it "neat" Mar 13 17:04:09 unless by neat you mean simple and naive Mar 13 17:04:10 I guess I meant that it translates into neat code. Mar 13 17:04:22 I was comparing it to Yahoo!, which was an absolute mess. Mar 13 17:04:29 haha Mar 13 17:04:41 On Yahoo! Chat, if a room had a large number of users, the user list would, without warning, span more than one message. Mar 13 17:04:48 And there was no continuation notifier. Mar 13 17:04:53 true, I gotta agree completely with that. Same with msn iirc Mar 13 17:04:53 It just gave another message with no type. Mar 13 17:05:03 Can these imports (v4 and standard) interfere with each other? http://pastebin.com/z4QdUKP7 Mar 13 17:05:03 My app just had to *guess* that it was the continuation of a room list. Mar 13 17:05:10 And it might've been the continuation of something else. Mar 13 17:05:11 It was horrible. Mar 13 17:05:15 lol Mar 13 17:05:30 I'm going to hop off for now. I'll talk to you all in future time. Mar 13 17:05:37 see ya around bD Mar 13 17:05:38 Later. Mar 13 17:05:54 This is day 18 of overtime Mar 13 17:06:00 not overtime Mar 13 17:06:03 I think it was actually impossible, sometimes, to understand those continuation messages on Yahoo!. Mar 13 17:06:07 day 18 of consecutive work Mar 13 17:06:15 Like, some of them were actually ambiguous. Mar 13 17:06:28 Good regexes produced good guesses, though. Mar 13 17:06:55 sounds like a good example of why (whoever designed it) shouldn't drink and code Mar 13 17:07:10 I can't believe the mess they made. It's so easy to make a neat chat protocol. Mar 13 17:07:16 It's a fun exercise. Mar 13 17:07:28 it really is Mar 13 17:07:37 And user lists can be just one message (even if they span multiple TCP packets). Mar 13 17:07:51 Or continuation messages can be marked as such. Mar 13 17:08:03 aa Mar 13 17:08:06 Sry. Mar 13 17:08:39 TJ_CRS: Did you ever do anything outside of the C++ world? Like Delphi or C#? Mar 13 17:08:46 FTP is another fun protocol actually. I have made quite a few of those during my prime time :) Mar 13 17:08:48 For writing GUI apps, I mean. Mar 13 17:08:49 oh tons Mar 13 17:09:02 I made my first program in 1981 Mar 13 17:09:04 I never got into FTP. I can imagine. Mar 13 17:09:48 basic->assembler->pascal->C->assembler->c++->assembler->assembler->assembler->assembler->assembler->c++ and now I just started with java/android Mar 13 17:10:02 Did you start with QBASIC? Mar 13 17:10:18 no, didn't exist in 81 iirc Mar 13 17:10:23 this was on a ORIC-1 Mar 13 17:10:26 is there a way to preview animation sets on PC? Mar 13 17:10:52 4 or 16 kb memory oO Mar 13 17:11:06 Okay. Mar 13 17:11:16 I actually never touched C#, kinda ashamed of that Mar 13 17:11:28 It's basically Java with extra neatness. Mar 13 17:11:36 Though it's getting bloated lately, IMO. Mar 13 17:12:23 so not missing much i rekon Mar 13 17:12:55 I was planning to start messing with the NDK, but it's actually too much fun to just mess directly in java Mar 13 17:14:00 ever messed with ndk ? Mar 13 17:14:41 TJ_CRS: heh. not so dissimilar. I quit end of 2001 too .. bought a pub ;) Mar 13 17:14:47 lol Mar 13 17:15:35 burned out ? Mar 13 17:15:45 trying to ramp back up now. About the only thing thats changed is the number of rude knowalls in some of the #irc channels whose only role seems to be say "we" and "rtfm" and ban people. Mar 13 17:16:00 TJ_CRS: yeah totally. Add the market crash and you can guess. Mar 13 17:16:35 true,was something happening then Mar 13 17:17:28 why pub ? kinda big leap :) Mar 13 17:18:04 enjoyed a tipple and a mate needed a hand. took it off his hands a few months later. kind of regret it but its been fun. Mar 13 17:18:29 kills all weekends tho ? :) Mar 13 17:18:53 makes them ;) Not good for holding down a relationship tho ... Mar 13 17:19:07 (or for getting up early to get cracking on an android app...) Mar 13 17:19:08 eep Mar 13 17:19:12 lol Mar 13 17:19:28 she's hanging on still ? Mar 13 17:26:57 What does it mean for a fragment to be persistently kept in the fragment manager? Mar 13 17:29:08 I'm using FragmentPagerAdapter to hold multiple fragments, of which only one is visible at a time. However, if I call a function in a not-currently-visible fragment which modifies a textview, that function gives me a null pointer exception if I try to change that view. Mar 13 17:29:23 that is, if I do setText, or something. Mar 13 17:30:09 swiping to the hidden fragment so it's visible doesn't seem to call any of the fragment lifecycle callbacks Mar 13 17:30:14 neither does swiping away from it Mar 13 17:31:34 The FragmentPagerAdapter docs say " The fragment of each page the user visits will be kept in memory, though its view hierarchy may be destroyed when not visible." Mar 13 17:31:54 but how am I supposed to know if a the view hierarchy has been destroyed or not? Mar 13 17:32:19 and if it isn't being destroyed, why can't I access the fragment's views when it's hidden? Mar 13 17:34:56 rufsketch1: maybe show some code of your flow. and are you following the life cycle calls of your fragments? plus if you are calling a method outside of your fragment, you can check to see if the fragment is found in the manager Mar 13 17:35:18 by setting tags etc... Mar 13 17:35:26 question. How does the project decide whitch activity is the 'main' activity?. Example: I have this main class which extends activity, and uses onCreate and such, and has a ref with the only layout. In this class I instantiate an object which also has to use onCreate etc, extending Activity. This will cause problems, correct? Mar 13 17:36:02 by 'main' activity you talking about what gets launcher from launcher? if so it's set in manifest Mar 13 17:36:39 ahh inside the tags, correct? Mar 13 17:37:15 yes Mar 13 17:37:17 Mar 13 17:37:17 Mar 13 17:37:17 Mar 13 17:37:17 Mar 13 17:37:25 so I can set the Main starting activity there, and from there on i can instantiate new objects with new classes that extend Activity? Mar 13 17:37:31 is inside my that i start with Mar 13 17:37:54 yeah exactly, i see it here in my project now as well Mar 13 17:38:10 thanks man, i had a tough time googling that :P I couldn't formulate it well enough Mar 13 17:38:27 all your other activities have to be registered too in manifest Mar 13 17:38:40 and you can load them with startActivity() Mar 13 17:39:03 does setContentView need to be loaded with Activity OnCreate? Mar 13 17:39:07 check out using fragments too. it can cut down activities, and you just swap in/out what you want Mar 13 17:39:18 ahh k. Yeah, the second class i am using is a subclass and is used as Static Mar 13 17:39:25 Radium: if you are wanting to interact with the views Mar 13 17:39:48 canvs2321, Ok Mar 13 17:40:06 which brings me to the next question: How would I, from that subclass, reference the instanced superclass? I can't create a new Superclass obviously, but where do i get the ref? Mar 13 17:40:16 u setContentView(R.layout.main_activity); then you can findViewById()... etc Mar 13 17:40:28 Do we not need in the manifest any more? Mar 13 17:40:35 if you have a subclass can't you get the parent? Mar 13 17:40:39 Someone is telling me that gradle handles that bit now Mar 13 17:41:02 Can't find any proof of gradle doing such a thing and becoming redundant Mar 13 17:41:07 canv: ahh the objects are views ofcourse. Thanks for your help man Mar 13 17:41:10 ThomQ you can usually do that with casting Mar 13 17:41:23 lut4rp I don't Mar 13 17:41:39 las: yeah, but then you'll be just insaniating New objects, correct? Mar 13 17:41:40 theblang, ? Mar 13 17:41:45 canvs2321: Okay, about to post three links, then additional explanation Mar 13 17:41:48 lut4rp dont specify that in manifest anymore Mar 13 17:41:59 theblang, oh Mar 13 17:42:03 canvs2321: BaseActivity: http://pastebin.com/UYWAULYE Mar 13 17:42:05 theblang, right, I also just found this. http://stackoverflow.com/questions/19997509/android-studio-why-are-minsdkversion-and-targetsdkversion-specified-both-in-and Mar 13 17:42:13 lut4rp have it defined in build.gradle, under android, defaultConfig Mar 13 17:42:23 canvs2321: ModuleOverview: http://pastebin.com/7mUzdGts Mar 13 17:42:28 theblang, got that, thanks Mar 13 17:42:40 Is there any reason to use activity animations? I set a no animation style because it seems cleaner. I also noticed that the gapps don't really animate, not sure if that is because of heavier fragment usage or if they manually turned it off. Mar 13 17:42:41 canvs2321: EyeController: http://pastebin.com/XUFRV9Uh Mar 13 17:43:31 canvs2321: so, I have the ModuleOverview fragment listening to see if the user drags bluetooth device icon into a textv Mar 13 17:44:10 canvs2321: when they do, the onBluetoothSelected callback in the baseActivity is called Mar 13 17:45:40 canvs2321: that then calls the updateBluetoothDevice function in the eyeControllerFragment Mar 13 17:47:26 canvs2321: some points of uncertainty though; I'm instantiating eyeControllerFragment in the baseActivity, and then calling its init function in SectionsPagerAdapter's getItem() Mar 13 17:47:54 rufsketch1: Viewpager does cache fragments, dunno if default is 1 left 1 right of currently visible. That's alot of code to look over :) Sounds like you need to read up on how to communicate between fragments Mar 13 17:48:16 canvs2321: and I'm not sure if pager adapter is creating a new class or something. Mar 13 17:48:33 canvs2321: I have read and read. Mar 13 17:48:55 canvs2321: the problem is that the only thing I've read which lets you do it with view pager says to communicate directly between fragments. Mar 13 17:49:08 canvs2321: and everything else says to never communicate directly between fragments. Mar 13 17:49:39 canvs2321: but yes, I was hoping the additional explanation I gave would help focus your attention to just the parts of interest. Mar 13 17:50:26 basically to communicate between fragments, use a middle man. have your fragments implement methods to update where you can call from a main activity. so if main activity is loaded, you using a viewpager, you can have whatever visible fragment with actions happening, report back to the main activity&from there check what fragments are around using Tags and deploy actions to whereever you Mar 13 17:50:26 need. Mar 13 17:50:32 dunno if that all made sense :) Mar 13 17:51:14 gonna flood Mar 13 17:51:16 how can I message from a class that extends AsyncTask to an Activity? (Not an Activity subclass) Mar 13 17:51:16 manager = getSupportFragmentManager(); Mar 13 17:51:17 Fragment fragment_byTag = manager.findFragmentByTag("system_info_fragment"); Mar 13 17:51:17 if(fragment_byTag !=null && fragment_byTag.isResumed()){ Mar 13 17:51:17 ((FragmentSystem)fragment_byTag).drawGraphCpuUsage.updateGraph = true; Mar 13 17:51:17 ((FragmentSystem)fragment_byTag).drawGraphCpuUsage.invalidate(); Mar 13 17:51:17 Mar 13 17:51:21 canvs2321: it did make sense. And the problem is that is what I am doing. Mar 13 17:51:24 here's an example in my main activity Mar 13 17:52:10 canvs2321: how do I get a fragment's tag? Mar 13 17:52:48 get or set? Mar 13 17:52:59 canvs2321: both? Mar 13 17:53:00 Fragment fragment_byTag = manager.findFragmentByTag("system_info_fragment"); Mar 13 17:53:10 that's how you find it in the fragment manager Mar 13 17:53:42 transactionSwapInSystem.replace(R.id.fragment_container, newFragmentSystemCpuUsage,"system_info_fragment"); Mar 13 17:53:42 transactionSwapInSystem.addToBackStack(null); Mar 13 17:53:46 that's how i set it Mar 13 17:53:56 Anyone used Shinobi Charts successfully in conjunction with hierarchyviewer? Shit breaks. Super ghetto. Mar 13 17:55:02 canvs2321: where should I be doing that? Mar 13 17:55:13 canvs2321: and where is this documented? Mar 13 17:56:13 does anyone know what algorithm android uses for sensor fusion? i am having difficulty understanding it from the code alone Mar 13 17:56:58 rufsketch1: forgot you are using a viewpager. but i'm sure it's very similiar. when you add your fragments to your adapter, you can set tags in the adapter, and get what is backstack'd etc... Mar 13 17:56:59 I want to access one of my apps database from my another app ,please help , my device is already rooted Mar 13 17:58:00 chinu: can chmod the db file for access, or use a root shell, or copy the db to somewhere your app has r access Mar 13 17:58:19 my device is rooted Mar 13 17:58:24 I want to run it in that Mar 13 17:59:00 canvs2321: the closes thing I have to adding the fragments to my adapter is in lines 144 to 154 of BaseActivity http://pastebin.com/UYWAULYE Mar 13 17:59:06 canvs2321: is that right? Mar 13 17:59:10 Process p = Runtime.getRuntime().exec("su sqlite3 -csv quadcopter.db \"select * from signal_search\";"); Mar 13 17:59:37 canvs2321 : somewhere i got this , but not working Mar 13 17:59:44 neither giving error Mar 13 18:01:43 Am I missing something? Why are people coming up with complicated (and gradle-foo) plugins to embed the git version in the released apk file? A straight up in custom_rules would 'just work' with ant. Mar 13 18:02:22 I would like to create an animation in which I have a circle which gradually fills. What is the best way to do this animation? Mar 13 18:02:39 rufsketch1: not sure where to tell you to go from here. Basically simplest way is to create static fields or methods in your main activity that your fragment can check/call to see what's alive and do what you want. or set fields in your main activity that fragments that were not loaded, upon loading read new values set from other fragments Mar 13 18:02:52 canvs2321 : ??? Mar 13 18:03:01 chinu: what does that command do from a shell? Mar 13 18:03:57 and do Process p = Runtime.getRuntime().exec("su"); then get your input&output streams and do as you please Mar 13 18:04:09 someone suggested me to use it to gather info from android database , but my apps database is inside com.arduino.quad/database.db Mar 13 18:04:30 as i can see in fileexplorer Mar 13 18:05:19 DataOutputStream toProcess = new DataOutputStream(process.getOutputStream()); Mar 13 18:05:19 toProcess.writeBytes("sqlite3 -csv /data/data/com.blah/databases/quadcopter.db \"select * from signal_search\";"+ "\n"); Mar 13 18:05:19 toProcess.flush(); Mar 13 18:05:27 in data/data/com.arduino.quad/database/data.db Mar 13 18:05:40 ok Mar 13 18:05:40 then read input Mar 13 18:12:32 freeone3000: there are probably plenty of ways. how does the circle fill? just bottom top, left right, is it only stroke or filled too? Mar 13 18:12:44 canvs2321: Clockwise. Filled. Mar 13 18:13:02 from radius? Mar 13 18:13:11 canvs2321: I get that I need to draw progressively wider arcs, and I have the math for that, just how do I actually trigger the animation? None of the xml files seem to be what I want. Mar 13 18:13:54 you using a custom view and overriding onDraw? Mar 13 18:14:05 canvs2321: Is that what I need to do? Mar 13 18:14:39 that'd probably be best. are you just looking for an xml animation set to do this? Mar 13 18:14:48 canvs2321: Was hoping for one. Mar 13 18:15:25 i'd say create your own if google is giving you anything. Mar 13 18:15:31 isn't* Mar 13 18:17:51 freeone3000: just quick search https://android.googlesource.com/platform/packages/apps/DeskClock/+/android-4.3.1_r1/src/com/android/deskclock/CircleTimerView.java maybe look at that. it may help give ideas Mar 13 18:18:02 So, I'm looking for something that you can create an android app with, but I forgot the name. It had something to do with html5 Mar 13 18:18:50 canvs2321 : i tried toProcess.write("commad to sqllite"); Mar 13 18:19:13 than I SysOut(toPorcess); Mar 13 18:19:20 it gives unknown values Mar 13 18:19:52 freeone3000: http://components.xamarin.com/gettingstarted/radialprogress Mar 13 18:20:34 chinu: i dunno SysOut is. are you using a library? Mar 13 18:21:17 SysOut is a method from a library which return the process return value; Mar 13 18:21:19 i show'd you the DataOutputStream, u write out using that to su, then you get a DataInputStream of the process. and read Mar 13 18:22:42 from where i will get the DataInputStream , toProcess.write("commads"); does this return the InputStream ? Mar 13 18:25:09 toProcess.writeBytes(""); sends the commands to your su process, then you'd get the InputStream of process and read the data from running your command Mar 13 18:26:46 canvs2321 I am really sorry for asking again , but from where I will get the InputStream ? so far i understood is , the outputstream will output the stream on the super user process and than there will be a output , but what should i read ? Mar 13 18:27:15 DataInputStream dis = new DataInputStream(process.getInputStream()); Mar 13 18:27:49 Thank you so much Mar 13 18:28:29 :) Mar 13 18:29:20 my code is pretty old, so there maybe better Streams to use. but i had DataInputStream&DataOutput stream from my old code Mar 13 18:29:57 canvs2321 : for(byte b:dis.toByteArray()) { System.out.print(b + ","); } , is it ok to show the result ? Mar 13 18:30:36 Found it was easier to do with a PropertyAnimator and a custom Drawable. Mar 13 18:32:22 chinu: i'd probably read all data til end. then close your streams and do whatever with your data, doing the for() may block once data is read waiting for more Mar 13 18:33:08 or don't necessarily have to close the streams if gonna be doing more commands. but it'll block if reading and waiting on data with process still open Mar 13 18:34:27 i'd suggest creating a class for read/write terminal. it'll have multiple threads for input&error streams and have a handler that those threads report back to upon data&or errors Mar 13 18:35:10 and in that class have members for process,inputstream,outputstream,errorstream. so you aren't always creating a new process just to run an sql command Mar 13 18:35:28 thankyou so much Mar 13 18:35:30 it worked Mar 13 18:35:36 finnaly Mar 13 18:35:39 constructor create your process and get your streams, then start threads for your stream reading etc... Mar 13 18:35:41 cool Mar 13 18:35:43 really a big thanks to you Mar 13 18:36:01 do you have a blog or github page ? Mar 13 18:36:08 would like to follow you Mar 13 18:36:08 nope Mar 13 18:36:17 haha i'm here often Mar 13 18:36:25 ok :) Mar 13 18:36:51 gonna have me a root app on market soon, you can follow that :) Mar 13 18:37:11 sure , just send me the link :) Mar 13 18:38:34 gonna call it root required. used to be called absolute system back in the day Mar 13 18:40:20 Is there an android.R resource to decode a blank, transparent bitmap ? Mar 13 18:41:08 to decode or that is a blank transparent drawable? Mar 13 18:41:25 just want to return an "empty" (not null) bitmap in a try catch Mar 13 18:42:09 isn't there a Color.TRANSPARENT?, why a bitmap? can just create a bitmap and return it Mar 13 18:42:20 "create a bitmap" ? Mar 13 18:42:23 this is for a cache Mar 13 18:42:37 trying to keep it fast, but this is for a catch in case someone doesn't pass the right selector Mar 13 18:42:38 new Bitmap.createBitmap() Mar 13 18:42:45 ahh thanks Mar 13 18:42:50 hey, just been looking at this https://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/ ... was just wondering, when implementing broadcast receiver on the activity way, in the log cat it only shows when the activity SCREEn Turned off, and not when the phone screen is actually turned off, can someone point me in the right direction please Mar 13 18:42:52 you'll have parameters Mar 13 18:46:29 ok got it :) Mar 13 18:48:30 guys I am looking for lib which would extract audio/ speech from file and turn it into speech any tips? Mar 13 18:54:26 not that I really know either way, but speech to text, or text to speech? (speech to speech seems unlikely :-) Mar 13 18:57:16 What's a good package name, if my initials are xyz and I don't have a domain name? Mar 13 18:57:50 I used to use org.bitbucket.mybitbucketusername, but it's so long. Mar 13 18:58:00 Because I'm also appending 'appname', of course. Mar 13 18:58:13 Ultimately, whatever doesn't clash in the play store, I guess. I usually use org.initials.appname.android myself Mar 13 18:59:04 Nice idea. Mar 13 18:59:14 I might do something similar. Maybe "android.initials.appname". Mar 13 18:59:35 I would probably avoid sitting right under the android.* namespace myself, but hey Mar 13 18:59:40 Oh, true. Mar 13 18:59:47 Maybe "initials.appname.android". lol Mar 13 18:59:56 Or "initials.android.appname". Mar 13 19:00:37 yea. the org is redundant, all said and done. I find the initials.appname.android lets me have initials.appname.servlet.* (etc) for related code whicrh doesn't sit inside android per-se Mar 13 19:00:46 Nice. Mar 13 19:01:03 Do you mind if I copy your "android" thing? lol Mar 13 19:01:13 It's a nice idea. Mar 13 19:01:21 I think "initials.android.appname" will suit me. Mar 13 19:01:31 oh by all means - don't think I'm the first one to hit upon this particular style ;-) Mar 13 19:01:37 K. Thanks for the idea. :) Mar 13 19:03:21 A question about intents... how do I add data to the "Intent.mData" field? Mar 13 19:03:27 * Adlai|work wants to send a http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_SCANNER_SCAN_FILE Mar 13 19:03:45 my app receives a media file and needs to notify the mediastore of the new media Mar 13 19:06:01 Adlai|work: I've found the most convenient way for your specific case to use MediaScannerConnection.scanFile - the callback is particularly useful to add additional information to the file (title, etc.) Mar 13 19:07:32 kbs: perfect. thank you :) Mar 13 19:08:22 I want to use a camera instance to take a photo when the ACTION SCREEN IS ON. I have the BC reciever working now, i was just wondering if someone could just give me some tips on where to implement the camera and the best way? http://pastebin.com/btu5EMpz Mar 13 19:09:33 :q Mar 13 19:10:25 How do I use Log.d Mar 13 19:10:33 It expects a string but now suddenly it doesn't like it Mar 13 19:11:02 Oh, a tag and a message Mar 13 19:11:04 oh well Mar 13 19:12:22 I want to use a camera instance to take a photo when the ACTION SCREEN IS ON. I have the BC reciever working now, i was just wondering if someone could just give me some tips on where to implement the camera and the best way? http://pastebin.com/btu5EMpz Mar 13 19:12:23 Hello, is there any difference between implementing each row (set on itself as a custom subclass) as a touch listener versus implementing the touch listener on its parent (the adapter, for instance) and setting it on each row? Mar 13 19:15:37 a list adapter? I wonder with the former approach, if you'd need to know if/when the adapter takes your child out of the view hierarchy (to deregister the listener just in case.) Mar 13 19:16:26 dunno :) interesting question - seems like it would create the same number of objects and so not an obvious memory issue I suppose? Mar 13 19:17:23 Hi all. I was wondering if there is a standard set of tricks to make demuxing and muxing work faster on android phones. I have adde hwaccels and passed libx264 the fastdecode parameter...but thought there might be some expertise in this area somewhere online. Mar 13 19:18:20 in particular how much overhead is there loading the libs? i.e. if i reduce my encoders,decoders, formats and filters to the bare minimum will i see a performance improvement. Mar 13 19:19:21 http://lpaste.net/101146 <- does anyone see a memory leak in that code? one problem i see is that i replace the fragment and thus i never return true right? so what does that do? also, could there ba problem with the edittext, not closing the editor properly? Mar 13 19:21:07 Hi, when I start a hello world activity I saw that there are about 11 threads created out of which 3 finally remain. Could anyone point out what these threads are? Mar 13 19:21:55 Hello, is there a way how can I use default signing keystore for custom build type with gradle? Mar 13 19:28:21 Has anyone here tried to capture video (from camera) and encode it as VP8 to send over the network? Native libvpx that is, since it's builtin only since 18 Mar 13 19:28:38 I'm wondering as to the performance of libvpx on ARM, there isn't much to find out there Mar 13 19:40:11 I've been working in Mortar/Dagger land the last few days. and now that it's all coming together I'm really liking this approach! Anyone else doing something like it? Mar 13 19:41:51 I'm trying to do the first Basic tutuorial http://developer.android.com/training/basics/firstapp/starting-activity.html when I try to create the Second Activity nothing happens after I click finish Mar 13 19:42:27 hi guys any good free course is available for learning andengine? Mar 13 19:45:48 MarkProffitt caan you share your code? Mar 13 19:46:39 There isn't any code, that is the problem Mar 13 19:47:12 I'm using Eclipse. It is supposed to create a new class but it doesn't. Mar 13 19:47:26 i just had the same problem Mar 13 19:47:31 you have to right click the project Mar 13 19:47:34 and create a new class Mar 13 19:47:51 Oh sorry wrong channel Mar 13 19:47:58 Are you using the ADT- Bundle MarkProffitt Mar 13 19:48:13 you need to update your SDK-Tools or some B/S i had the EXACT same issue Mar 13 19:48:36 projects would make w/ no classes, was frustrating as hell Mar 13 19:51:15 Yes I am using the ADT Bundle Mar 13 19:52:51 Ok well its your SDK-Tools Mar 13 19:53:09 update everything though, SDK-Tools and ADT Plugins all that jazz Mar 13 19:53:26 Something is wrong with the ADT-22.0 plug in so update to the absolute latest version, restart your computer and you should be fine Mar 13 19:53:31 but its either your sdk-tools or your adt-plugin Mar 13 19:54:24 I'm trying to get my GestureDetector to process stuff in onInterceptTouchEvent of my RelativeLayout, then return false in onInterceptTouchEvent so that all the children views of the RelativeLayout can still process the touch events. Mar 13 19:54:51 It is falling through to all the children, but the GestureDetector never makes it to the more complicated touch events like onFling() Mar 13 19:54:53 https://gist.github.com/anonymous/568655317ba7a6bd6c13 Mar 13 19:56:41 https://gist.github.com/anonymous/5b8ce3f764b6cfbd106f Mar 13 20:08:06 just messing around with android dev, trying to make a simple bluetooth toggle thing. but isEnabled isn't working, anyone mind taking a sec to set me right? http://pastebin.com/rELE3MUA Mar 13 20:09:33 if I have a gradle dependency like "compile 'com.android.support:support-v4:19.0.+'" why do I still need to add it as a library dependency to get the resource references for the themes? Confused. Mar 13 20:09:33 Mar 13 20:15:41 huh? Mar 13 20:15:46 hey, anyone interested in forking bitcoin wallet? Mar 13 20:15:53 support-v4 doesn't have resources Mar 13 20:15:57 to make a wallet for an altcoin Mar 13 20:16:08 you clearly are, get to it Mar 13 20:21:43 this is mad. the gradle docs say that a compile dependency defaults to runtime inclusion too. Mar 13 20:21:58 you're mad... what are you talking about Mar 13 20:22:07 it's a mad world Mar 13 20:22:15 mad mad world. Mar 13 20:24:00 is gradle used for android dev? i was looking at it yesterday Mar 13 20:24:09 yes Mar 13 20:25:02 pfn: I was referring to the need to add the supprot libs as a library as well as adding them in as a gradle compile dependency in order to use the AppCompat themes. Mar 13 20:25:10 support libs Mar 13 20:25:46 I cant figure out why this is. So I'm missing something in my understanding of how the whole thing is packaged. Mar 13 20:27:19 what's the proper way to place text over an image such that the text is always x% and y% away from the image borders? Mar 13 20:27:34 padding? Mar 13 20:27:53 Hey guys. I still need help with my google maps problem, if you can help thatd be great! http://stackoverflow.com/questions/22372504/attempt-to-invoke-virtual-method-void-maps-e-al-w-on-a-null-object-reference Mar 13 20:27:54 wtf_: does padding allow you to specify by percentage? Mar 13 20:28:04 hi all.. n00bie here. I'm trying to make a seperate 'utility' class for my Locationlistener. It needs to have a onCreate method at the beginning of it's luifecycle, but it shouldn't be a seperate activity, it should just send the new location once in a while to my 'base'class, the main activity the (simple) app is running when it starts. How would I do this? A service? A subclass? I'm Mar 13 20:28:04 confused :) Mar 13 20:28:23 wtf_: basically, I need the text to always be over a very specific part of the image, regardless of the how much the image has been scaled. Mar 13 20:29:04 so to simplify -> App starts, starts Main activity, in that activity it should create / start the Utility class, which then runs on it's own in the background, giving some data every now and then. Mar 13 20:29:12 rufsketch1 it does not go by % unfortunately. if im not mistaken, im not very knowledgeable in android-dev tho, im just here to learn as well. Mar 13 20:29:14 sorry Mar 13 20:29:15 ThomQ: maybe look into processes and threads? Mar 13 20:30:04 wtf_: it's cool Mar 13 20:30:18 Hi, I'm uploading my first apk with expansion file, but I can't figure out how to upload the .obb ? Mar 13 20:30:25 okay so does anyone know how to effectively "pin" a textview onto a certain part of an imageview? Mar 13 20:30:29 I can't seem to find an upload button of some sort Mar 13 20:30:45 To the playstore Mar 13 20:31:10 rufsketch1: that is the next step, i think. I don't think I need it for just the location listener though. I just need the loationlistener to have it's own class that's capable of beginning its lifecycle with OnCreate, and at the end of it's lifecycle call some methods in another class, in this case the 'base' class Mar 13 20:31:51 any idea on the matter? Mar 13 20:32:38 plus, i am trying to get a handle of Activity flow in android. Where i am used to just building utility classes, instantiating them as an object and using them where needed, android is a bit different from what I can tell Mar 13 20:34:23 ThomQ: to my knowledge, anything that is meant to run in the background and just give data every now and then should be a service Mar 13 20:35:35 * kbs subscribes to the 'everything in the background in a service theory' :-) Mar 13 20:35:36 Cool thanks. I'll have a look. :) Mar 13 20:36:16 I really wish the frameworks were set up that anything not running in a UI thread essentially runs in a service - makes things much simpler... Mar 13 20:36:42 just messing around with android dev, trying to make a simple bluetooth toggle thing. but isEnabled isn't working, anyone mind taking a sec to set me right? http://pastebin.com/rELE3MUA Mar 13 20:36:49 I noticed that android doesn't really do 'simple' ;) Mar 13 20:37:08 although, not when you're coming from C# Mar 13 20:37:43 ThomQ: bits of it are pretty nice and simple; I guess figuring out which bits to ignore is the complicated part ;-) Mar 13 20:39:34 hehe yeah Mar 13 20:39:38 Phase: Did you omit your onCreate from the paste, or from your code? Mar 13 20:40:16 speaking of simple, HOW HARD IS IT to overlay some text over an image? Mar 13 20:41:12 rufsketch1: Nope, wasn't aware I needed one. What is it..? lol Mar 13 20:41:33 Phase: look into the android activity lifecycle docs Mar 13 20:41:40 thanks Mar 13 20:42:20 is there a way to refresh or redraw a fragment programatically? Mar 13 20:43:14 I was trying with notifyDataSetChanged() method but it doesn't work Mar 13 20:43:25 rufsketch1: framelayouts or subclassing, I guess? True though, the UI frameworks are rather simplistic can be needlessly tricky to decorate with arbitrary behaviour/visual elements Mar 13 20:45:06 I think the Message/Intent/Handler ideas are the simplest/nicest parts of the framework. The UI stuff is sort of blah, mostly. But the framework implementations are getting better and better despite that, so kudos to them... Mar 13 20:45:59 rufsketch1: I actually removed all of the starter code that AndroidStudio created, which had the onCreate stuff in it.. I added it all back, and 'isEnabled' is still doing the same thing: http://pastebin.com/ZxJPguJ4 Mar 13 20:46:09 kbs: I'm not sure how much help those will be. Mar 13 20:47:53 Phase: the btCheck.isEnabled() call needs to be inside of your onCreate() Mar 13 20:49:13 Phase: but do not put it before super.onCreate(), the android framework wants that to be the first thing called in your onCreate method Mar 13 20:50:04 rufsketch1: aha got it, read more of the onCreate documentation too Mar 13 20:50:07 thanks Mar 13 21:01:18 rgr, why would you need to add it as a "library" Mar 13 21:01:21 wtf does that even mean Mar 13 21:01:44 appcompat is completely independent of support-v4, other than depending on support-v4 transitively Mar 13 21:04:16 Can these imports (v4 and standard) interfere with each other? http://pastebin.com/z4QdUKP7 Mar 13 21:08:08 so im just messing around with eclipse, by using tuts to see how stuff works Mar 13 21:08:41 im pulling data from my site, and i was wondering, how do i break lines when it get pulled from the site Mar 13 21:08:48 this is what it looks like so far Mar 13 21:08:48 http://prntscr.com/30ja7c Mar 13 21:09:27 pfn: Im intrigued as to whether you're here to help or just be rude and an arsehole. It has to be added as a libraryx as per the android docs because it contains resources. adding it as gralde dependency does NOT work. and is well documented throughout stackoverflow. If you have nothign positive to say and are just here to snipe then let me know & I can ignore you. Mar 13 21:10:32 me? Mar 13 21:10:51 what did i do o.O Mar 13 21:14:58 if a user clicks the screen, the onClickListener will always be run on the main thewsd right? Mar 13 21:15:07 DarkChaoz: ah, don't think you're in the firing zone ;-) but a screenshot is hardly useful if you want coding suggestions, no? At a guess, maybe using setText(Html.fromHtml(...)) rather than setText(...) might help Mar 13 21:15:40 Here's a tip; 1. Referring to SO as an authorative source for anything is plain stupid. If you mean a specific posting on SO, link it. 2. Some politeness may be in place. What you write looks kind of newbieish, and if you're not willing to show some respect I doubt you will get much real help. Mar 13 21:15:56 rivet: yea - the UI callbacks run on the main/UI thread Mar 13 21:16:11 that was for rgr in case it wasn't obvious. Mar 13 21:16:34 ahh kk Mar 13 21:17:15 has anyone else has trouble installing your apps on a RAZR device? i've tried it using the adb tool manually and from google play and it will not work, always says "Package file not signed correctly" Mar 13 21:17:29 i know the apk is signed and zipaligned Mar 13 21:18:40 brb Mar 13 21:19:16 thanks kbs man it worked :) Mar 13 21:19:51 DarkChaoz: have fun exploring android :) Mar 13 21:20:07 thanks Mar 13 21:20:19 need to press on java though Mar 13 21:20:33 just getting a feel with eclipse and android beforehand Mar 13 21:20:36 :) Mar 13 21:23:11 I've been seeing a lot of people with the error while trying to update apps but mine is with installing, oddly enough Mar 13 21:27:35 Not that I know, but curious - is this a system app? Or just some your own app etc Mar 13 21:27:58 er, s/some your own app/one of your apps/ Mar 13 21:28:39 also one more question, is it possible to get image from site and display it in android? Mar 13 21:29:13 rgr, support-v4 does not contain resources Mar 13 21:29:40 rgr, and you make so many stupid vague statements, you can't get help Mar 13 21:30:56 kbs: it's one of my own apps just a game that i made Mar 13 21:32:24 Tacticalmind: ah, I see. Not sure - assuming it's installable on (say) an emulator, I'm sure you've already seen the suggestions about nuking the cache, etc - seems like a bug in the underlying system, dunno. Mar 13 21:33:12 Maybe there's some clues in logcat? I'd look at that too if you haven't tried it already Mar 13 21:33:17 ye i can install it on other devices, i've successfully installed on galaxy s3 and s4, but i've tried 3 RAZR's and they all fail Mar 13 21:33:52 i'm gonna try signing it with the debug key as well as my own to see if that fixes it Mar 13 21:35:22 it vaguely sounds like you're not using the standard build scripts to create your apk file? Mar 13 21:35:45 (not that I can see it'd make a difference, if it's installable on the other devices...) Mar 13 21:51:42 What does android.jar contain? Mar 13 21:51:45 I just noticed that my app uses that. Mar 13 21:52:08 it contains awesomesauce Mar 13 21:52:33 It doesn't contain the API, right? Mar 13 21:52:58 http://stackoverflow.com/questions/22389140/android-edittext-and-oneditoractionlistener-memory-leak <- can someone have a look at that? Mar 13 21:53:11 Hmm, it's 20MB. Mar 13 21:53:46 gradle question - I have some environment variables I currently pass in to my gradle script, and based on the combination of these environment variables, different BuildConfig flags are set. I also want to use specific resources and add certain things to my manifest if a certain combination of environment variables are present. Any recommendation on the best way to accomplish this? Mar 13 21:53:52 So it's not compiling into my app. Hmm. Mar 13 21:54:03 I feel like using environment variables like that isn't really the 'gradle' way to do things Mar 13 21:54:31 i would like to use flavors, but there is a large number of possible environment variable combinations that I feel like could get pretty hairy if I went the flavors routes Mar 13 21:54:32 route* Mar 13 21:54:46 I could be wrong though, pretty new to gradle Mar 13 21:55:09 TacticalJoke: It's the android api, yes. It's just stubs since everything is on the device Mar 13 21:55:13 what kinda things do you want to add to the manifest? could you achieve teh same thing with buildconfig vars? Mar 13 21:55:45 like I might wantt o add a permission to my manifest only if environment variables A and B are present Mar 13 21:55:52 or an actiivty declaration Mar 13 21:57:34 SimonVT: How comes it doesn't get added to my app? It's 20MB and my app is tiny. Mar 13 21:57:50 Is it just used for autocomplete? Mar 13 21:57:55 its a stub. you dont redeploy the entire libraries. Mar 13 21:58:19 And for checking method calls. Mar 13 21:58:49 think like dll back in your c++ days I would guess ;) Mar 13 21:59:16 Yeah. Mar 13 22:01:55 Is there any way to figure out what index I am at within a ViewPager, when I am in the transformPage() method of a custom PageTransformer? Mar 13 22:02:33 the only parameters transformPage gets are the View, and the position from (-1, 1) Mar 13 22:04:01 I also have http://stackoverflow.com/questions/22390169/non-intercepting-gesturedetector if anyone is bored Mar 13 22:14:11 yo is anyone around who could please give me a 30 second help on where to put a piece of code? Mar 13 22:14:27 in your editor Mar 13 22:14:53 Hi guys. I wanted to know if it was technically possible to take content from another string in a string defined in the XML strings.xml file. eg. Mar 13 22:14:53 Welcome to $app_name Mar 13 22:14:58 *starts clock* go. Mar 13 22:15:05 where $app_name is the place holder Mar 13 22:15:32 time done Mar 13 22:20:30 wget: ah, I can see why you'd want to do that; but as far as I know anyway, don't think there's builtin-support for "substring references" [you could do this programatically of course, by using %s and then expanding the string within the code.] Perhaps it might be easier to have a small script or something do the expansion during bulid time, to generate the eventual resources files. Mar 13 22:20:55 Hi guys Mar 13 22:21:07 following android tutorials I have placed a search png in the "default" drawable directory under res. I see it in the menu layout preview in intellij. Nothing is drawn on the device however. The taskbar options menu IS there. Just no icon. What would be the standard mistakes to to cause this situation? Hints on how to debug it? Mar 13 22:22:17 I need to process some videos frame by frame (saved videos). What do you think is a good library? We're currently using jcodec's SequenceEncoder, but it's really slow right now. Mar 13 22:22:43 wish i could help you guys Mar 13 22:23:16 In "external libraries" in Android Studio, I see "support-v4-19.0.1" and "support-v4-v7"... what is the difference? Mar 13 22:23:22 kbs: Thanks this is what I actually think too. :-( Thanks for your opinion though. Mar 13 22:23:48 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 22:25:46 wget: well -- probably a judicious application of a replaceregexp task from your ant build script is all that's needed :) good luck Mar 13 22:29:27 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 22:35:44 After updating the support libraries, get this error when trying to compile: "cannot find symbol method getChildFragmentManager()". I doubt they removed this method from 18 -> 19, am I missing a step in upgrading? Mar 13 22:36:37 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 22:36:44 so I'm trying to set up a project in android studio Mar 13 22:37:08 but gradle is pretty confusing Mar 13 22:42:03 intellij4life Mar 13 22:46:10 james-ubc: Gradle is amazing Mar 13 22:47:12 yiati, when it's working Mar 13 22:47:40 Whats the best way to implement a login activity? Should you push a general CheckLoginStatus activity that will push either the Login activity or the Main activity or should you push the main activity and if you find the user isn't logged in, to push the login activity? In the latter case, how do you prevent the user from backing out of your login? Mar 13 22:47:53 james-ubc: Gradle works, it's all about how it's being used Mar 13 22:48:44 Mentos: What is this pushing? Mar 13 22:49:02 yiati: iOS terminology :P Mar 13 22:49:31 Mentos: if you go with the CheckLoginStatus approach, you can simply finish() it -- that'll take it out of the back stack [and hence backing out of either the Main or the Login activity will just get out of the entire app.] Mar 13 22:49:50 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 22:51:22 kbs: i see so finish() will remove it from the back stack Mar 13 22:52:27 Mentos: right. startactivity() and finish() will 'do the right thing'. I notice now that your question was for option #2 [whereas my comment was for your option #1] but hopefully it's enough to answer some subset of your question at least :) Mar 13 22:54:07 yiati, well... i'm trying -_-; Mar 13 22:59:07 kbs: thanks, was able to find this SO post after refining my search http://stackoverflow.com/questions/5859095/what-is-the-correct-way-of-creating-a-login-screen-activity-in-android Mar 13 22:59:45 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 23:00:29 Mentos: sounds like your option #2, basically - makes sense. Mar 13 23:01:17 kbs: k thanks, just started Android dev yesterday so still a newb Mar 13 23:02:29 how does one determine which drawables/resources your app is picking up at run time? Mar 13 23:02:42 I'm new to Gradle and thinking of learning it. Would it make sense to use Gradle at the command line while using Eclipse? Mar 13 23:02:50 For an Android project, of course. :) Mar 13 23:03:22 fun fun :-) a handy tip - /tools/templates/activities/LoginActivity usually has some entertaining things to poke around with; once you figure out where all the configuration stuff lives. Mar 13 23:07:35 Can someone please indicate where i need to start my service using a screen on BC reciever, im a bit confused http://pastebin.com/cL4Et8VE Mar 13 23:12:55 amazwon: no use just repeating that endlessly - maybe some more information might help? why have you commented out your startservice for example Mar 13 23:14:35 that was just practising Mar 13 23:14:48 basically i am making an app that takes a photo as soon as the screen comes on, Mar 13 23:15:27 so far got a broadcast reciever for action screen on working, but im unsure where abouts to implement the next part of code, just need some stearing in the rigght direction :), cant find much info online that i understand Mar 13 23:15:48 have you tried uncommenting your start service, for example :) Mar 13 23:17:49 yeah Mar 13 23:18:06 nothing shows on the log cat Mar 13 23:18:34 perhaps - paste what does show up on the logcat and go from there? Mar 13 23:18:43 eg: does the broadcast service itelf get triggered Mar 13 23:18:46 and so forth Mar 13 23:18:59 just uncommented the " context.startService(new Intent(context, myService.class)); " Mar 13 23:19:38 I think there might be larger issues with your current appproach; but as far as a strategy to debug - it looks feasible; but needs poking around your logcat to see what's working, and what's not working Mar 13 23:19:50 possibly, you may not have declared your service in the manifest file, who knows Mar 13 23:20:05 i have declared it Mar 13 23:20:08 if I'm going to be doing manual git version control, should i track the top level project folder that has build.gradle,gradlew,gradlew.bat, local.properties, etc OR should I just track the folder with the build, libs, src directories? Mar 13 23:20:13 i get loads of red errors in the logcat Mar 13 23:20:34 i see all sorts of tutorails online to autosize text in a textview, but how do i autosize the textview's layout to fit the text? Mar 13 23:20:35 amazwon: but the 'teaching to fish' thought here is verify your broadcast service is called, and investigate from there Mar 13 23:20:56 amazwon: :) that's a good start then - look at what's working and what's not, and go from there Mar 13 23:20:59 is there a simple method like iOS's sizeToFit? Mar 13 23:21:09 theres no logcat errors without starting the service, so i think its something basic? as there is little code? Mar 13 23:21:14 does activity remembers intent it received when it is killed by system? so when it gets resumes, does getIntent() return anything? Mar 13 23:21:39 uncommenting these 2 lines of code have created like 30 red lines in the logcat ? surely that must be something basic? Mar 13 23:21:49 amazwon: I dunno what to tell you - to get more info, paste the logcat errors you do get if you are unable to figure out the error by inspection Mar 13 23:22:52 I start activity A with some intent, then I leave my app and activity A gets killed after while I resume my app and activity A starts, does it have intent? Mar 13 23:23:04 unable to initiate service.exam , android app ActivityThread.handled Mar 13 23:23:08 all stuff like that Mar 13 23:23:12 let me double check manifest Mar 13 23:23:30 this is correct yeah? Mar 13 23:25:15 How to set service in its own process? getting malformed error Mar 13 23:25:38 amazwon: not to belabour the obvious; but full and complete information is generally much easier to track. [eg: the full manifest file, the actual paste from your logcat error, the package name of your service] etc Mar 13 23:27:03 hey so I wanted to send a cookie the way I do to browsers can I send them the same way Mar 13 23:27:36 is there a special way to grab them and store them? Mar 13 23:29:28 ok changed my service to my old one and trying , no errors at all, but still doesnt start Mar 13 23:29:44 LoneSoldier728: are you using a webview? Or just URLConnection and so forth Mar 13 23:30:16 I am using retrofit for my get/post calls is that what you are referring to? Mar 13 23:30:31 I think it is a url connection Mar 13 23:30:36 actually it is Mar 13 23:30:40 oh - no idea what 'retrofit' is, weird Mar 13 23:30:50 ya but url connections Mar 13 23:31:03 is this better? http://pastebin.com/1agcvkPs but service still not showing start, manifest shows "PService" now as well :/ Mar 13 23:31:30 LoneSoldier728: well -- then just grab the cookie header and send it forth I guess? :) Do you know how to do that? Mar 13 23:31:37 if you could take a look i will be very appreciative, been playing for hours with this Mar 13 23:31:45 and where do I store it Mar 13 23:31:48 shared preferences? Mar 13 23:32:48 amazwon: see above for what information might help debug it, otherwise - oh well, not sure how to help other than generic advice as above :) Mar 13 23:33:03 LoneSoldier728: oh, dunno - wherever it's convenient to persist your data I guess Mar 13 23:33:34 but I choose, and I just pull it out when making requests and add it what back in the url? or as a field in a body post? Mar 13 23:33:44 kbs: what do you mean above? Mar 13 23:34:00 i got no erros now, went back to the service i used with an onclick listener that worked Mar 13 23:34:19 "amazwon: not to belabour the obvious; but full and complete information is generally much easier to track. [eg: the full manifest file, the actual paste from your logcat error, the package name of your service] etc" Mar 13 23:34:23 but the BC reciever isnt starting it, thats the part im confused about, linking them, looked into it loads Mar 13 23:34:57 LoneSoldier728: Do you already know how to extract the cookie from a URL connection (and to set cookies to a connection)? Mar 13 23:35:19 how do i show my full file? Mar 13 23:35:22 bitbucket ? Mar 13 23:35:22 yeah it looks like it works like this http://stackoverflow.com/questions/21244968/retrofit-auth-cookie Mar 13 23:36:33 I am just confused as to where it is stored there or where you are calling setSessionId if that makes sense to you Mar 13 23:36:58 LoneSoldier728: Oh well. Don't understand how retrofit works, probably better to wait for someone more informed about that for its idioms Mar 13 23:37:15 yeah ok Mar 13 23:38:58 with plain old URLConnections, you just extract the cookies from a getHeader(), and set it with setRequestProperty() Mar 13 23:39:13 retrofit seems to want to do something elaborate, so dunno... Mar 13 23:40:27 anyone know how i can send an intent to a service via adb (am startservice) **when the service has exported=false** ? is it even possible ? Mar 13 23:41:09 i tried every combination of am startservice --user … with run-as I could think of Mar 13 23:41:24 hm ok thanks kbs Mar 13 23:41:34 Also, is it fine to save cache text into sqlite? Mar 13 23:42:04 and if I do, do I have to clear the table from time to time? or something? Mar 13 23:43:10 WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO Mar 13 23:43:23 GOT MY SERVICE WORKING WHEN SCREEN TURNS ON YEAHHHHHHHHH BOYYYYY!!!!!!! Mar 13 23:43:41 next job, snap a photo when the service starts, haha Mar 13 23:50:16 So generating a viewgroup with emulates a listview with a maximum size is about an order of magnitude faster to invalidate Mar 13 23:54:06 g00s: hm never tried that; but curious - what errors do you get with the combinations you've tried? Mar 13 23:55:21 I'd have assumed the exported=false might apply only to other uids, but hm; that's an interesting thought. Mar 13 23:58:30 kbs SecurityException Mar 13 23:58:57 basically, i want to poke my service for diagnostics, but not export it to anyone else. i thought run-as would work there Mar 13 23:59:33 i wonder as a workaround, if gradle could set exported="x" depending on the configuration Mar 13 23:59:36 g00s: oh, interesting. Yea - I'd have also thought run-as would be the trick; what's the full error out of curiosity? Mar 14 00:02:11 one sec Mar 14 00:02:31 ava.lang.SecurityException: Permission Denial: service asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Mar 14 00:03:09 thats with exported="false" , of course Mar 14 00:03:14 my command line was: Mar 14 00:04:09 adb shell run-as com.my.project am startservice current -n com.my.project/.service.FooService -a com.my.project.action.BAR Mar 14 00:04:28 i tried without current Mar 14 00:06:30 now, if i take out run-as, i get this instead: Mar 14 00:06:33 Error: Requires permission not exported from uid 10084 Mar 14 00:06:51 hmmmm Mar 14 00:07:11 that rather like run-as is still running as user 0, doesn't it? Mar 14 00:07:14 if i replace current with '--user 10084' i get service not found Mar 14 00:08:04 i tried "--user current" too, incase i had tat wrong Mar 14 00:08:49 --user current, hm -- looking at Am.java, wonder what it's actually using Mar 14 00:10:14 just for kicks - as the root user - tried using --user 10084? Mar 14 00:10:30 i don't have root on the device Mar 14 00:10:33 oh Mar 14 00:10:45 * kbs rereads Mar 14 00:14:55 oh finally. icons appear on the toolbar. wrong xml namespace was the problem. double doh. Mar 14 00:15:02 g00s: hm - so mabye maybe as a hail-mary pass - I might try two explicit vales for the userid. "--user 10084", and "--user -3" Mar 14 00:15:26 UserHandle.java uses -3 for USER_CURRENT_OR_SELF which has some entertaining documentation Mar 14 00:16:06 -3 ==> Error: Requires permission not exported from uid 10084 Mar 14 00:16:55 ah well :-) I assume you're running all this always with the run-as? Mar 14 00:17:41 i've tried both Mar 14 00:18:02 i may just make a LocalSocketServer and redirect through adb Mar 14 00:18:11 & check with getPeerCredentials Mar 14 00:18:34 ah well -- good luck, sounds like more fun :) Mar 14 00:21:49 LocalSocketServer sounds like a neat idea. Mar 14 00:22:39 yeah, jasta got me thinking about it a while back. i was going to use it to debug the facebook app (he works at facebook) Mar 14 00:23:02 aah. Mar 14 00:24:10 whats the best way to add into a service , take photo with camera? using no prevoew etc... just as a background service taking a snap then closing Mar 14 00:27:55 so if I do the eclipse>export-gradle -> import build.gradle in android studio, it complains about gradle version not supported, upgrade to 1.1 ... Mar 14 00:28:08 anybody know what to do? I can't seem to find any good resourceso online Mar 14 00:43:44 oh thats the wrapper stuff I think. None of its clear until you understand it... You need to add a wrapper line to the build.gradle which tells gradle to download the necessary gradle to cope with the project or something... Mar 14 01:53:09 Okay, Gradle is awesome. Mar 14 01:53:11 I can get it working with Eclipse, I think. Mar 14 01:53:20 By doing stuff like 'gradle eclipse'. Mar 14 02:03:10 It seems that I can use Gradle to manage dependencies and then just say "gradle eclipse" to go back into Eclipse and pretend Gradle doesn't even exist. Mar 14 02:03:15 Seems strangely easy. Hmm. Mar 14 02:12:42 http://john.mcafee.usesthis.com/ ….. like rifles, and android :| Mar 14 02:18:04 if i change the layout of my admob adview, the first ad that loads ony displays if i minimize then amximize the app. any one know how to fix it? Mar 14 02:20:14 the easy fix to abandon admob :) Mar 14 02:20:32 there, solved \o/ Mar 14 02:25:07 ugh, is the complete schema documented somewhere ? Mar 14 02:29:55 From the emulator I can load a static gif and the full animated gif, but when I try to debug on my phone I can only see the static gif, not the animated one I'm doing with the Movie class Mar 14 02:30:48 any ideas why? How can I debug issues on the real device? Mar 14 02:32:36 I have a value that I set when I come back to my fragment from another activity in "onActivityResult" but it gets reset Mar 14 02:32:54 why would that happen? Mar 14 02:43:46 4.x blocks Movies if hardware acceleration is on! Mar 14 02:43:53 gg **** ENDING LOGGING AT Fri Mar 14 02:59:59 2014