**** BEGIN LOGGING AT Sun Aug 17 02:59:59 2014 Aug 17 03:04:20 speculative fiction? Aug 17 03:07:20 yeah ... hmm Aug 17 03:07:45 naomi O is a good author for nonfiction Aug 17 03:07:58 she has a few important books Aug 17 03:12:38 lasserix what was the best non-fiction book you read recently ? Aug 17 03:15:59 hm, udacity has a UX course for mobile https://www.udacity.com/course/ud849 Aug 17 03:17:04 umm i reread chaos theory Aug 17 03:17:08 making of a new science Aug 17 03:17:49 and now i am reading his othe rbook on the information age "Information: A history, a theory a flood" (by gleik) Aug 17 03:17:53 its pretty interesting Aug 17 03:18:43 he talks about how the fires atop mountains the greeks used to signal fires (battle at troy, for instance) where essentially 1 bit of information Aug 17 03:19:09 they built up the fire pits, manned them around the clock all for one bit of information: "war or not" Aug 17 03:19:21 interesting Aug 17 03:19:22 in the first chapter, anyways its pretty good Aug 17 03:19:58 brb Aug 17 03:20:10 oh gleick wrote both of those Aug 17 03:21:58 jabza: isnt that EXTERNAL file dir? Aug 17 03:24:21 luist yeah, it'll be in your external files directory, which means it's stored on the SD card but it shouldn't be visible to the user Aug 17 03:24:34 It's explained here: https://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Aug 17 03:24:59 jabza: isnt better storing a config file as in PRIVATE_MODE? Aug 17 03:25:11 jabza: its meant only for my app Aug 17 03:26:17 If you're downloading a file, that's your only choice. I don't think you can put it in your internal directory unless you create the file. Maybe you can download it, copy the contents and create a new file, then delete the one you downloaded Aug 17 03:52:08 Hi i am following a tutorial on udemy, There seems to be a problem with either my project configuration. From what I understand I should be using the build-tools 19 but this gradle output suggest i am using 20 https://gist.github.com/ccolorado/82af78e6c9867231b740 ? Any input is greatly appreciated. Aug 17 03:52:47 * with either my project configuration or the course instructions ( I doubt the last one ) Aug 17 03:54:21 The problem is that you left "dp" in after "listPrefferedItemHeight" Aug 17 03:54:25 So the line should read: Aug 17 03:54:35 android:minHeight="?andorid:attr/listPreferredItemHeight" Aug 17 03:54:40 instead of Aug 17 03:54:41 android:minHeight="?andorid:attr/listPreferredItemHeightdp" Aug 17 03:55:20 hey guys, got one quesiton, is there way to alter information given to the gps, or to subsitute an actual computer terminal to given highly accurate fixed location? Aug 17 03:55:40 dang it, i think i fuged that up Aug 17 03:56:20 nm Aug 17 03:56:21 jabza: oh god, Aug 17 03:56:31 actually the problem is Aug 17 03:56:37 "andorid" Aug 17 03:56:39 along with dp Aug 17 03:57:09 quantibility: yep. Enable "allow mock locations" in developer options, then check out here: https://stackoverflow.com/questions/2531317/android-mock-location-on-device Aug 17 03:57:11 thanks jabza that fixed it. feeling really dumb now Aug 17 03:57:26 ccolorado: no problem, happy to help. It's an easy mistake to make! Aug 17 03:57:38 so thats what the option is for... hah Aug 17 03:57:54 Yes sir! Aug 17 03:58:26 need some guidence then, ? better eclipse or intelliJ/ Aug 17 03:59:11 I prefer Android Studio to Eclipse, but it's up to you. Most tutorials are written with Eclipse in mind, though the code itself is generally the same Aug 17 04:00:17 Why does my app die when I try to use GooglePlayServicesUtil.getErrorDialog(errorCode, getActivity(), 0).show(); Aug 17 04:01:05 I dunno, what's your logcat say? Aug 17 04:01:09 yeah how's it work with pure eclipse, my problem is im linux *(well NOT a problem really) however i always seem to have issues in this enviroment and JDK.. its kinda confusing Aug 17 04:01:16 nullpointerexception Aug 17 04:01:21 on onCreateView Aug 17 04:01:26 i try to use that in fragment Aug 17 04:02:19 give us the log Aug 17 04:03:00 I assume the default place to paste is... pastebin? Aug 17 04:03:19 quantibility: if you're having issues with JDK environment, you should add the line "export JAVA_HOME=/opt/java6" to your ~/.bashrc. But change /opt/java6 to the path of your java installation Aug 17 04:03:20 no Aug 17 04:03:22 pastie.org Aug 17 04:03:34 I usually use pastebin tbh, but use whatever you want Aug 17 04:04:55 yeah thats been my issue jabza, unable to work with my enviroment for being at it for 4 weeks though i don't think im doing too bad.. Aug 17 04:05:08 desmin88: http://pastie.org/private/ovu40huesa6vci69lv3mw Aug 17 04:05:44 And line 140 of samplefragment is Aug 17 04:06:01 GooglePlayServicesUtil.getErrorDialog(errorCode, getActivity(), 0).show(); Aug 17 04:06:20 quantibility: it takes time to learn, I don't blame you. Keep at it and you'll figure it out Aug 17 04:06:31 Jabza: your a bada though that was exactly the answer i was looking for.. cause aparently even if you set in eclipse the setting doesn't hold when you to go to impliment it though Aug 17 04:07:18 now i need to search for the installs because that was about 2 distros ago jabza Aug 17 04:07:21 Yeah, just set it in ~/.bashrc and it'll stick every time you open a terminal, and it'll work for both Eclipse and Android Studio Aug 17 04:07:21 detachYo: what is your error code Aug 17 04:07:49 desmin88: let me debug and tell you Aug 17 04:08:09 i guess i should go for studio then, i will admit it is pretty cool.. ive used on windows... ugh... windows... smh.. what was wrong with me.. Aug 17 04:08:26 detachYo: it looks like errorCode is coming up null when you get to that line Aug 17 04:09:13 jabza: errorcode is an int Aug 17 04:09:16 it cant be null. Aug 17 04:09:39 desmin88: error code is 0 Aug 17 04:09:51 ok Aug 17 04:09:56 It doesn't make sense for getActivity() to be null, though Aug 17 04:09:58 have you read the javadocs for this method Aug 17 04:10:03 hint Aug 17 04:10:04 http://stackoverflow.com/questions/17811720/googleplayservicesutil-error-dialog-button-does-nothing Aug 17 04:10:07 oops Aug 17 04:10:08 the errordialog is null Aug 17 04:10:33 The method call is working as intended. Your calling .show() on a null dialog Aug 17 04:10:53 Ha we got a smart one over here Aug 17 04:11:22 ? Aug 17 04:11:23 im really really proficient in google. Aug 17 04:11:31 http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#getErrorDialog(int, android.app.Activity, int) Aug 17 04:11:32 Read that Aug 17 04:11:40 if errorcode = Success (0) it returns null Aug 17 04:11:47 lol Aug 17 04:11:51 work arounds Aug 17 04:11:53 desmin88: I was just saying you're smart for figuring it out. I was just assuming one of the arguments was null rather than actually looking it up Aug 17 04:11:59 but before that, I am checking if ConnectionResult.SUCCESS != errorCode Aug 17 04:12:02 shouldn't that take care of it? Aug 17 04:12:49 you messed up somewhere Aug 17 04:13:08 code time Aug 17 04:13:11 how can it be lol Aug 17 04:13:12 alrighty, Aug 17 04:13:15 thanks for your help Aug 17 04:13:20 i'll dig into this later Aug 17 04:13:25 .. Aug 17 04:13:29 ... Aug 17 04:13:47 do you think im lying or something Aug 17 04:14:12 lmfao, why would I think you're lying Aug 17 04:14:15 you're funny dude Aug 17 04:14:31 every time i give you the answer you always seem so doubtful Aug 17 04:14:41 this happened with the action bar tab hightlighting too Aug 17 04:14:41 i am not doubtful about your answers Aug 17 04:15:01 ok Aug 17 04:15:01 good Aug 17 04:15:02 i am doubtful about my code... Aug 17 04:16:52 desmin88: found the problem, in case you'd wonder Aug 17 04:17:14 im woundering? Aug 17 04:17:15 desmin88: you're right, i did mess up somewhere else Aug 17 04:26:44 does anybody have worked on sending MMS programmatically without using an Intent Aug 17 04:27:30 as my code working on below 4.4 Aug 17 04:27:41 but not in Kitkat version Aug 17 04:28:33 google it Aug 17 04:28:33 but no seriously Aug 17 04:28:45 i have googled it alot Aug 17 04:28:50 but all in vain Aug 17 04:29:06 infact checkout the source code Aug 17 04:29:15 so why cant you use an intent Aug 17 04:29:27 client need Aug 17 04:29:48 no manual interaction Aug 17 04:30:27 app should forward SMS and MMS to another mobile without user interaction Aug 17 04:42:12 did you see this Aug 17 04:42:12 http://stackoverflow.com/questions/2972845/how-to-send-image-via-mms-in-android?lq=1 Aug 17 04:53:04 yes i saw this but still i will analyse the code let u know Aug 17 04:53:15 thanks for information Aug 17 05:24:23 Hey guys, is it possible to use AccountManager to make the user add a specific Google account to the device? Aug 17 05:27:52 uh can i merg a java instalation Aug 17 05:29:16 quantibility do you even know what you asked Aug 17 05:30:44 what? Aug 17 05:31:44 yes i know desmin88 Aug 17 05:31:51 why do you want to do this Aug 17 05:32:30 i set variables becuase it can't find it.. can i not just merge the java installation Aug 17 05:32:43 merge meaning what Aug 17 05:32:59 bins with bins etc with etcs Aug 17 05:33:19 uhh Aug 17 05:33:22 go ask on #java Aug 17 05:38:58 is there any problem in line 12 and 13 ? http://pastebin.com/rG1BpJVk Aug 17 05:39:14 editor reports the variables are not initialized Aug 17 05:40:18 Activity,imple <-- no comma Aug 17 05:40:31 bankai_au: yes, rectified that Aug 17 05:41:15 bankai_au: the mSendorManager and mAccelerometer variables are red underlined... for which it reports line 12 and 13 .. the respective variables are not initialized Aug 17 05:41:43 ERROR: Cannot start Android Studio Aug 17 05:41:44 No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation. Aug 17 05:41:55 can someone help me understand what im doing wrong here? Aug 17 05:41:55 solofight: it's coz they are final Aug 17 05:42:30 bankai_au: oh, thanks Aug 17 05:42:41 quantibility: it tells you what to do Aug 17 05:42:42 * solofight googles about usage of final Aug 17 05:43:20 quantibility: install JDK and set environment variables Aug 17 05:43:29 it is installed Aug 17 05:43:35 did you set env Aug 17 05:43:40 dont know how Aug 17 05:43:54 ... Aug 17 05:43:56 whats your os Aug 17 05:44:24 xubuntu Aug 17 05:44:38 ok Aug 17 05:44:43 now google Aug 17 05:44:50 "xubuntu set environement variables" Aug 17 05:54:26 bankai_au: i learned about final keyword and i can avoid the error by doing private final SensorManager mSensorManager = null; but in that example is there any need for the mSensorManager variable to be declared as final ? Aug 17 05:54:27 if yes why > Aug 17 05:54:28 ? Aug 17 05:54:41 you need to learn java Aug 17 05:54:55 googling i found answers like to have security from c++ hackers Aug 17 05:55:04 if you just learned about the final keyword Aug 17 05:55:42 desmin88: have worked with core java long back - so boldly took a step on learning android by refreshing java along side Aug 17 05:55:48 desmin88: pardon my noobness Aug 17 05:56:26 desmin88: earlier i knew that final var = 0 then you cannot change the value of var inside the program anywhere else Aug 17 06:04:47 unfortunately the motio detector has stopped is the message when i execute this program http://pastebin.com/MjEe0zX0 Aug 17 06:04:56 also have pasted the log output in the paste Aug 17 06:05:00 any reasons why ? Aug 17 06:28:44 how can i simulate a accelerometer tilt in emulaor ? Aug 17 06:29:10 by changing the orientation itself the accelerometer in emulator shows no differnce in values Aug 17 06:30:45 is this the correct way ? https://code.google.com/p/openintents/wiki/SensorSimulator Aug 17 06:37:23 should probably just get a device Aug 17 06:49:36 desmin88: thanks for replying, will get one Aug 17 06:49:45 first building a prototype with emulator Aug 17 06:50:13 desmin88: managed to emulate the accel values in the emulator with the openintents package Aug 17 06:50:27 but this code that i used http://webtutsdepot.com/2011/08/20/android-sdk-accelerometer-example-tutorial/ is not showing any values in the emulator Aug 17 06:50:34 can location be obtained by "geomagnetic field sensor"? Aug 17 06:50:45 desmin88: the code does not have any errors, and ran successfully in the emulator Aug 17 06:50:49 but no accel values Aug 17 06:51:11 whereas when i use the open intents tool inside the emulator it responds to the accel values changes Aug 17 06:52:45 solofight: you need to test accelerometer on real device. Aug 17 06:53:06 goodwin: no way to test on emulator ? Aug 17 06:53:19 i just used openintents to emulate the accel values inside Aug 17 06:53:29 goodwin: it will take some time for me to get a real device Aug 17 06:53:35 any alternatives till then ? Aug 17 06:55:41 nope Aug 17 06:56:01 solofight: from google site, "You currently can't test sensor code on the emulator because the emulator cannot emulate sensors. You must test your sensor code on a physical device. There are, however, sensor simulators that you can use to simulate sensor output." Aug 17 06:56:08 Hello. I've run into a problem where I hide() 1 fragment, show() 2 other ones and save it to the backstack. However if I cancel the animations with the back key, the first one stays hidden. Without an animation it's fine. Anything I can do about it? http://pastebin.com/hxacmwZA Aug 17 06:57:29 solofight: if you're going to do be doing any serious android dev work youll need atleast 1 good device Aug 17 06:59:18 can location be obtained by "geomagnetic field sensor" with a (lat,long) database? Aug 17 07:08:04 desmin88: i want to do programming for accel, gps and gyro and continously moniot their values to produce a map - how much does a decent device cost for this activity ? Aug 17 07:09:23 if i cannot pass these simulated accel values from openintents to my app - what is the use of having such application ? its just for showing the accel values which i produce from my desktop to their own openintent application ? Aug 17 07:09:29 whats the use of that ! Aug 17 07:15:00 yuo might as well give up now and never look back Aug 17 07:15:33 ^ Aug 17 07:20:39 good morning :) does anyone have an example of adding a new contact with its name and phone number? (I tried some things from google, nothing really worked) Aug 17 07:22:04 http://developer.android.com/training/contacts-provider/modify-data.html Aug 17 07:22:45 pretty much 95% of questions are answered by looking at the offical site/docs Aug 17 07:22:50 StingRay: without intent :) Aug 17 07:22:57 oh without sorry Aug 17 07:23:12 fk, well you could grab the content provider Aug 17 07:23:15 and insert Aug 17 07:23:33 yeah, this is what I tried Aug 17 07:23:43 but contacts are a relational database of may trees/branches Aug 17 07:24:06 like raw contact, account, type all converge to be a contact the user sees Aug 17 07:24:10 done though cp Aug 17 07:25:13 I think you would need to decide on type and the account to create a raw entry then add the granular stuff Aug 17 07:25:29 but never done it, so just guessing Aug 17 07:25:31 never needed to Aug 17 07:25:33 :) Aug 17 07:25:53 http://pastebin.com/K7FNTENL Aug 17 07:26:01 this is my code and the excpetion ^^ Aug 17 07:26:30 I don't really care which type, I just need a person with a name and a phone number :) Aug 17 07:27:25 well then you do care the type Aug 17 07:27:35 cause it needs to support data of name and number Aug 17 07:27:36 lol Aug 17 07:27:38 which one do I need? Aug 17 07:27:47 where can I read about the differences? Aug 17 07:27:54 you need a phone entry hung from a raw contact I think Aug 17 07:28:03 not just the raw contact insert Aug 17 07:28:14 but like I say, never done it or wanted to so all speculation Aug 17 07:28:50 it makes sense what you wrote :) Aug 17 07:29:10 (sorry for my lame english, it's too early in the morning...) Aug 17 07:29:51 I'm 5 more coffees away from being 10% proficient so know the feeling Aug 17 08:03:29 hey Aug 17 08:04:25 can anybody help me with this? https://github.com/kncgroup/bitcoin-wallet/issues/2 Aug 17 08:04:43 when i import a jar file into the libs directory of my project - how do i use them ? import android.hardware.jar_file_name does not recognize it Aug 17 08:11:06 solofight: best to use google for things like that, "how to use jar lib in (insert ide here)" Aug 17 08:11:35 StingRay_: yep just watching a video about it https://www.youtube.com/watch?v=fHEvI_G6UtI Aug 17 08:11:57 StingRay_: found that i missed out the compiling with gradle part Aug 17 08:12:04 Thanks for replying Aug 17 08:14:49 can anybody help me with maven? Aug 17 08:16:37 Is google maps api 3.0 available for android sdk? Aug 17 08:49:07 has anyone successfully implemented geofence with broadcast receivers? Aug 17 08:49:20 i just need an advice on a direction i should take Aug 17 08:58:30 is there an easy way of temporarily disabling google play services, to test stuff on the phone? Aug 17 09:02:40 detachYo: isn't your broadcast question similar to asking if anyone has implemented databases with a broadcastReceiver ? Aug 17 09:02:46 or anything with anything ? Aug 17 09:03:31 I just dont think there is a question there… not meaning to be rude… maybe I dont understand what the issue is though :) Aug 17 09:07:02 Anyone know how to add google maps api library in androud studio? Aug 17 09:07:31 Um, Google maps API is part of Play Services library. Aug 17 09:10:11 Woah, there's OPs on the channel! Aug 17 09:18:22 yeah but it says it needs support library? Aug 17 09:18:25 fuck the support libraries Aug 17 09:18:42 good luck with that Aug 17 09:18:45 :) Aug 17 09:20:40 Do any of you guys have a personal website for people to hire you? I need some inspiration Aug 17 09:22:20 Guess my question is even if idont plan on supporting older phones, the gsm play services still requires it? Aug 17 09:23:21 if you want to use something that it provides "support" for then yes Aug 17 09:23:25 if not no :) Aug 17 09:27:57 StingRay_: I think there wasn't anything wrong with my question. Aug 17 09:28:16 well what is a geofence ? Aug 17 09:28:31 and what has it to do with a broadcast receiver or and activity ? Aug 17 09:28:41 or a service or intentService Aug 17 09:28:47 StingRay_: you're hanging on my words, I think you know what I meant. Aug 17 09:28:59 :) Aug 17 09:29:05 I didn't or I would maybe try and help Aug 17 09:29:17 it an odd question to me Aug 17 09:29:23 StingRay_: have you ever eaten bacon with eggs? Aug 17 09:29:42 yes both are food Aug 17 09:29:42 what is bacon, or eggs? asparagus? maybe more bacon. Aug 17 09:29:45 that go in a meal Aug 17 09:29:47 ^^ That's what I see. Aug 17 09:30:05 ah well no it's not like that is it lol Aug 17 09:30:12 Please don't get me wrong, I am not trying to be rude either. Aug 17 09:30:20 Yes, that's how I understood it. Aug 17 09:30:21 :) Aug 17 09:30:31 it;s like syaing how would I eat bacon and eggs in a car while on a boat is it possible Aug 17 09:30:46 and then, but could I eat it on a train Aug 17 09:31:13 My question was: "has anyone successfully implemented geofence with broadcast receivers?" Aug 17 09:31:43 well I would suspect 99% chance yes they have and do Aug 17 09:31:51 Might not be the most descriptive question, but being an android dev and having the knowledge you do, I think you'd understand what I meant. I might be wrong. Aug 17 09:31:53 it quite efficient to do it that way….at a guess Aug 17 09:32:21 but what I mean is thats no different than saying has anyone done it in an activity Aug 17 09:32:26 or service Aug 17 09:32:28 thats my point Aug 17 09:32:46 how else would it be done…thats kinda my follow question :) Aug 17 09:32:46 Is it though? BroadcastReceiver != activity != service Aug 17 09:33:05 all = android component hung of context for doing "things" Aug 17 09:33:24 so yes, they are all fruit as apples and pears are Aug 17 09:33:50 I can't believe we are arguing about this. LOL Aug 17 09:34:00 not an argument at all Aug 17 09:34:08 just saying your question has no answers Aug 17 09:34:23 but I would suspect the answer is …well if thats the way you choose to do it Aug 17 09:34:56 ok look at it this way, what are you stuck with ? Aug 17 09:35:00 lol I get it. I love the fact that you're not being a dick about my question, like some other people are sometimes. So respect! Aug 17 09:35:02 thats a better starting point :) Aug 17 09:35:36 oh dont get me wrong, I am a dick, I just lack coffee enought to be a real dick! Aug 17 09:35:42 * StingRay_ goes for more coffee Aug 17 09:36:12 Indeed. First let me say I have no problem understanding/implementing code. Since I started android dev not too long ago, I still don't understand concepts and way of doing things that clearly. I want to implement a geofence to send email/message/notification when a user enters in an area that s/he has set up previously. THe user can set up multiple locations. Aug 17 09:36:41 StingRay_: are you a 100% dick? "Guardians of the galaxy reference" Aug 17 09:36:53 not seen it yet, but want to Aug 17 09:36:55 no time Aug 17 09:36:57 why havent i designed my apps on paper first Aug 17 09:37:04 so much easier to understand what im doing Aug 17 09:37:14 having not looked at geofences I take it you register interest in some system service handler ? Aug 17 09:37:39 I guess, I am not too familiar with system service handlers. Aug 17 09:37:40 or pass in some object that defines and area along with an intent that should be fired if condition is true ? Aug 17 09:38:16 I am confused because some examples use IntentService, some use BroadcastReceiver. Some implement location updates... Isn't the point of geofence to take care of itself, like alarmmamanger. Aug 17 09:38:36 right but alarm manger fires and intent right ? Aug 17 09:38:44 Second one sounds closer to what I try to do. Aug 17 09:38:44 Yes. Aug 17 09:38:51 that intent could trigger whatever is listening Aug 17 09:39:03 headless listen = broadcast receiver Aug 17 09:39:22 if app is running, maybe it's within the activity you register a receiver Aug 17 09:39:26 whatever is listening for that intent, or whatever that intent is listening to? Aug 17 09:39:39 listening for the intent Aug 17 09:39:44 have a look at intent filters Aug 17 09:39:52 then you will understand it all a little better Aug 17 09:40:01 intent = package of stuff Aug 17 09:40:14 with clear and defined names, addresses on it... Aug 17 09:40:18 contents can be whatever Aug 17 09:40:49 android shouts to the things listening for that "type" of intent by way of a filter in a receiver Aug 17 09:40:59 intent/pendingIntents Aug 17 09:41:19 you can obviously do things direct with intents like fire up activites too Aug 17 09:41:48 reading now on android. The above makes a lot of sense and helps me understand it better. Aug 17 09:42:08 s/android/android dev website/ Aug 17 09:42:22 are broadcastreceivers services? Aug 17 09:42:26 new Intent("SOME_FILTER_IDENT"); defines and intent…god knows what will deal with it, but if I register a broadcast receiver that listens for that action Aug 17 09:42:35 it will be fired and I can do things Aug 17 09:42:37 no Aug 17 09:42:48 you would fire a service up if thats what you wanted Aug 17 09:43:16 so in the broadcast receivers onReceive… fire an intent service to deal with the xxx stuff off the UI thread Aug 17 09:43:45 Currently using broadcastreceiver with alarm manager, consuming pending intent. So that part makes a little more sense than the geofencing stuff. Aug 17 09:44:13 well I would suspect just like location listening you register with it to receive updates/triggers Aug 17 09:44:22 but as I said, never used so dont know Aug 17 09:45:01 but yeah, was not being funny with my orig question, just your question didn't help in any way in what you were doing or what you were stuck with :) Aug 17 09:45:15 probably why no1 has answered in 2 days ;) Aug 17 09:45:18 I am confused because you set up an alarmmanager, and at the given time it triggers the broadcastreceiver. Aug 17 09:45:25 no Aug 17 09:45:31 it fires a broadcast Aug 17 09:45:35 containts and intent Aug 17 09:45:39 that you are listening for Aug 17 09:45:47 there is no direct start there Aug 17 09:45:53 as I understand android Aug 17 09:45:54 :) Aug 17 09:46:05 but here is a killer, I'm not a programmer !! Aug 17 09:46:19 so only listen to 5% of what I say ;) Aug 17 09:46:27 * StingRay_ really does go off to make coffee Aug 17 09:46:49 StingRay_: WHAT ARE YOU! Aug 17 09:46:56 right Aug 17 09:49:19 I'm a 3D TD/Games TD Artist/VFX person Aug 17 09:49:35 or thats what my instructor status with autodesk says Aug 17 09:49:50 That's really cool man. Aug 17 09:49:56 I am a perl developer. :D Aug 17 09:50:03 if it were that cool I would not be learning android ;) Aug 17 09:50:52 haha Aug 17 09:51:06 Perl is cool, but I am trying to expand my skillset. Aug 17 09:51:43 least your comming from a programming BG Aug 17 09:52:01 I come from the fairy land of art and design Aug 17 09:52:02 :) Aug 17 09:52:44 Agree. I think that's why I have no problem understanding code and implementing. Just gotta learn how things work in android land. Aug 17 09:54:00 Alright. I am off to bed. Aug 17 09:54:09 Thanks for all your help StingRay_ Aug 17 09:54:17 np :) Aug 17 09:56:24 hi Aug 17 09:56:29 how do i debug an android app? i got a sdl app compiled without errors, works on linux desktop, compiled to a .apk without errors, but on android it just says 'SDL app quit' Aug 17 09:57:21 is there an error console somewhere that shows ... errors? Aug 17 09:57:44 lolcat Aug 17 09:57:56 "adb lolcat" to be more precise Aug 17 09:59:19 Or pidcat, for colored output. I think at least Arch and OS X Homebrew have a package for it. Aug 17 09:59:58 i see logcat, but no lolcat ;) Aug 17 10:01:03 both work... Aug 17 10:01:18 you'll also probably have to use gdbserver build for some serious debugging Aug 17 10:07:05 hi, i know that bluetooth a2db thing can capture anroid' system playback and transmit it to PC. i wonder, what needed to be able to transmit the same playback not over bluetooth, but via TCP/IP, over wifi network for instance? Aug 17 10:07:46 seems like i don't have to replace android audio system with pulseaudio for that, as it capable of making playback monitor already, with a2dp Aug 17 10:08:05 but is there any specs/docs regarding accessing this playback monitors? Aug 17 10:08:29 Hey guys is there any way I can reference screen's width/height in objectAnimator? Like http://pastebin.com/qTKjHyNF Aug 17 10:15:54 are xml attribs not populated at runtime ? so they would not get updated ? Aug 17 10:16:00 StingRay_: the gsm play services wont compile in my project unless i have support library (though I am not using it) -- so this is a bug? Aug 17 10:16:04 so rotation of screen = fails :) Aug 17 10:16:24 play services depends on support Aug 17 10:16:30 as far as I recall Aug 17 10:16:38 skulltower: you can always get device screen with from context.getDisplayMetrics Aug 17 10:16:53 ahh okay so you do have to have support lib even if you dont use Aug 17 10:17:05 well you are indrectly using it Aug 17 10:17:18 so yes, you have to satify deps on things you are using :) Aug 17 10:17:21 yeah yeah just wish all older phones would die off already Aug 17 10:17:46 and now my google play services needs to be updated so i downloadednew system image but battery too low sigh Aug 17 10:17:47 StingRay_, ahh yes you are right so that wouldn't work.. lasserix I can get the width/height, I'm just having trouble referencing those values in an xml animation :/ Aug 17 10:17:56 GingerBread forever! Aug 17 10:23:02 new system image? O.o Aug 17 10:23:09 why? Aug 17 10:24:45 huh? Aug 17 10:26:46 system image - system update Aug 17 10:27:11 but why. Aug 17 10:27:13 really want to get one of those inductive chargers so i can dev on my n5 without any cables and it be fully charged all the time Aug 17 10:27:16 Play services are updated from play store. Aug 17 10:27:22 rooted device Aug 17 10:27:26 dunno Aug 17 10:27:29 says its up to date Aug 17 10:27:31 it even gives you an intent Aug 17 10:27:43 that you can call that automatically redirects user to update his GPS from store Aug 17 10:27:44 yeah it says have to update, i go then there is no update just open Aug 17 11:51:37 need help, when i click on textview dialog appears. I have edittext. in the dialog window. I want open dialog with editbox and virtual keyboards as well. Now i always need click to edittext again Aug 17 11:52:34 what i have to setup to automaticaly keyboard is appera with dialog window ? Aug 17 12:04:02 Is DrawerLayout only avaible in the Support Library and not in the native Android Library? Aug 17 12:05:50 I was using google maps api and got the app to run but everytime i goto launch it i get a msg and button that says "This app wont run unless you update google play services" and update Aug 17 12:05:59 but i cannot update, just open Aug 17 12:06:05 anyone know how to resolve this problem? Aug 17 12:08:03 Rayne: yeah it's only in the v4 support lib Aug 17 12:11:19 http://pastebin.com/z2KxCpuh right. So thats my create statement for the db. Using my contentprovider it gives sqlexception no such column for KEY_HOST entry. Any idea what to do? Aug 17 12:11:32 reinstall, increment db version etc doesnt help Aug 17 12:12:41 You need a space before TEXT Aug 17 12:14:15 super facepalm, thanks a bunch. SimonVT / lol Aug 17 12:24:54 why does my service always die on orientation change >:/( Aug 17 12:28:56 bound to your activity? Aug 17 12:30:33 lasserix, which version of google play services are you using in your app? Aug 17 12:30:44 5208000 Aug 17 12:30:48 that's bad Aug 17 12:30:52 is the int value for the version in the manifest Aug 17 12:30:53 use 5.0.89 Aug 17 12:30:56 yeah i figured Aug 17 12:30:59 how do i switch it? Aug 17 12:31:11 do you use AS/gradle? Aug 17 12:31:15 yeah Aug 17 12:31:25 set it in the build.gradle dependencies section Aug 17 12:31:35 ahh Aug 17 12:31:42 where can i get a list of previous versions Aug 17 12:31:48 do you know which verison i can use? Aug 17 12:31:54 5.0.89 Aug 17 12:32:18 if you use the google repository you can find all available versions in the SDK directory Aug 17 12:32:31 oh ok Aug 17 12:32:35 sdk/extras/google/m2repository/com/google/android/gms/play-services Aug 17 12:33:24 thanks Aug 17 12:33:41 it worked! Aug 17 12:33:43 thanks Aug 17 12:33:49 :) Aug 17 12:34:46 alright thanks so much now i can actually get back to coding Aug 17 12:40:06 guys help me with this issue Aug 17 12:40:07 https://github.com/kncgroup/bitcoin-wallet/issues/2 Aug 17 12:43:38 i dont understand what is going on Aug 17 12:44:46 is integrating fb login in your app woth it? Aug 17 12:46:38 depends what you want of course. But for many things yes if you think your app offers things people wish to share and publicise to their friends. A single point of authentication is also a bonus. Aug 17 12:47:31 it is a chat app Aug 17 12:48:02 you think i should get the users' name etc from fb login insteaad of askking for a username? Aug 17 12:48:27 their email could serve as a "username" in the database Aug 17 12:48:45 or do you think people would want to be anonymous Aug 17 12:50:58 you can do both. a moniker in your app. re FB : clearly you need to think it out more if you're not even sure if you'll offer anonymity or not or whether they must be FB users in order to get a name. Aug 17 12:56:14 I/O Error: EOF Aug 17 12:56:15 fuck this Aug 17 13:00:51 guys, who can help me with maven? Aug 17 13:02:40 google Aug 17 13:17:04 why didnt i think of running my service from the application class earlier Aug 17 13:17:05 :l Aug 17 13:28:59 lasserix mentioned earlier it was probably bound to the activity which can cause havoc on orientation change. Aug 17 13:37:52 rgr: didnt even notice because he didnt highlight me Aug 17 13:37:56 iffa you can also start and stop your serice in addition to binding it, to keep it running outside of the activity lifecycle Aug 17 13:38:14 doh sorry Aug 17 13:38:22 its okay Aug 17 13:38:25 i got it to work how i wanted it to Aug 17 13:38:27 :) Aug 17 13:38:37 application class good idea tho Aug 17 13:47:43 but another reason to always use the debugger and set a break in onCreate and other critical callbacks and do an app test. You'd have realised straight away what the issue was. Aug 17 13:53:22 iffa, put an empty line at end of the file Aug 17 14:20:32 I have this function: http://pastebin.com/1GYPqNQf , I see that it execute line 32 (return true) and then jumps to line 41 (return false) - so the final result is false. Any idea why? Shouldn't it exit the function in line 32? Aug 17 14:31:46 pifon: what Aug 17 14:34:41 hello all. Quick question regarding the play dev console: I'm reviewing the DL statistics for my app and it seems to be missing this weekends data. Is there any kind of delay before that information is available to you? Aug 17 14:37:09 play dev gives you data with 24-48hour lag Aug 17 14:37:23 thanks ma Aug 17 14:37:25 v Aug 17 14:53:49 if I have more than 1 action that can complete an intent, how can I programmatically choose one? Aug 17 14:54:33 erm … with an if ? Aug 17 14:54:39 and some other param ? Aug 17 14:54:51 meital, set package explicitly Aug 17 14:54:58 on the intent Aug 17 14:58:06 but how can I get the list of available intents? Aug 17 14:58:13 the closer I got is: Aug 17 14:58:16 List resolveInfoList = packageManager.queryIntentActivities(intent, 0); Aug 17 14:58:46 yes, that's it. Aug 17 14:59:46 but how can I get the intent itself? Aug 17 14:59:51 lets say that I want the first one Aug 17 14:59:59 so: ResolveInfo a = resolveInfoList.get(0); Aug 17 15:00:04 and now what? Aug 17 15:00:34 meital, read again what I wrote. Aug 17 15:00:49 ah sorry :) Aug 17 15:02:51 it's inside the activityInfo ;) Aug 17 15:06:22 so I did this: "intent.setPackage(a.activityInfo.name);" Aug 17 15:06:26 and startActivity Aug 17 15:06:30 and nothing happens Aug 17 15:07:22 meital, packageName. Aug 17 15:07:25 again ;) Aug 17 15:07:55 argh sleeping 2 hours at night wasn't a good idea Aug 17 15:08:00 now it's working! thanks!!! Aug 17 15:28:47 hi all Aug 17 15:29:02 i have an app, which is an APK. i've wrapped an activity in it which uses resources. Aug 17 15:29:13 i'm now trying to load it via a Host app, using a Dex class loader Aug 17 15:29:32 the code runs - but the loaded APK code is looking for resources which doesn't exist Aug 17 15:29:50 looks like the code can run but it looks for resources in the *host* app Aug 17 15:30:13 how can I re-route the apk code to look for resources in the apk ? but still be hosted via a dex class loader? Aug 17 15:39:12 What View should be used for displaying a matrix with [1..n]x[1..n] cells with cells [a]x[1] and [1]x[b] always visible on screen? (Scrolling content, but fixed headings) Aug 17 15:39:56 Rayne: GridView Aug 17 15:57:50 how can i download a file to a place the user wont see?? this is downloading to the regular download folder: request.setDestinationInExternalFilesDir(getApplicationContext(), null, “myfeed.xml"); Aug 17 16:09:15 luist: you can download to the cachefolder of your app Aug 17 16:09:38 danijoo: how can i do that?? :DDDD Aug 17 16:09:45 sounds perfect Aug 17 16:09:47 but then you cant rely on it being deleted at any tme. Aug 17 16:09:50 time * Aug 17 16:10:03 http://developer.android.com/reference/android/content/Context.html#getCacheDir() Aug 17 16:10:35 danijoo: im planning to re-save it privately right after the download Aug 17 16:10:48 why aren't you downloading it directly there then? Aug 17 16:10:52 danijoo: i just dont want the config file in the user folders Aug 17 16:11:00 why dont you keep it in cache until the download is finished then? Aug 17 16:11:07 Mavrik: i was told i cant download a file directly to the internal storage Aug 17 16:11:08 cache = memory Aug 17 16:11:13 was what i meant.. Aug 17 16:11:21 luist, you were? Aug 17 16:11:27 Mavrik: yep Aug 17 16:11:32 you can. Aug 17 16:11:37 why shouldnt you Aug 17 16:11:39 by who? and how are you downloading files? :) Aug 17 16:12:18 Mavrik: im downloading a config file asynchronously on my main onCreate Aug 17 16:12:24 Mavrik: if thats what you wanna know :P Aug 17 16:12:28 doesnt make sense because for the filesystem downloading direclty to it looks the same as saving it. Aug 17 16:12:29 danijoo, GridView doesn't support headers as far as I know Aug 17 16:12:53 Rayne: have a look at https://github.com/TonicArtos/StickyGridHeaders Aug 17 16:12:57 luist, that's not really an answer Aug 17 16:13:13 or, that really doesn't explain why you thought you can't save the content of stream you're receiveing into your private files folder Aug 17 16:14:12 Mavrik: this: http://paste.ofcode.org/HnY6t78kK5Vu2x6yF74fPs Aug 17 16:14:48 Mavrik: i was told here… plus there are only setDestinationInEXTERNALFilesDir funcions or such Aug 17 16:15:01 Mavrik: but if theres a way, that would be perfect Aug 17 16:15:27 well you open a fileoutputstream Aug 17 16:15:29 and write in it. Aug 17 16:19:25 danijoo, that library looks interesting but I am searching for a grid with "fixed" vertical and horizontal headings (like the numbers and letters in MS Excel or *Office Calc). Do you know a library for this use case? Aug 17 16:19:39 oh.. hm Aug 17 16:19:48 how many rows Aug 17 16:19:52 maybe a tableLayout? Aug 17 16:29:10 danijoo, I found no clue that TableLayout supports fixed headings. I will take a look at https://github.com/InQBarna/TableFixHeaders Aug 17 16:29:51 well you could wrap the table in a scrollview with another table as header above that scrollvie Aug 17 16:32:00 Mavrik: but i have to download the file first, to open it and do what you said ¬¬ Aug 17 16:32:06 or two ListViews and one GridView. Hm. Aug 17 16:32:07 list Aug 17 16:35:55 Hi, I'm pretty new to the AMazing World of the Android Programming, and I'm studying it from the "for Dummies" book Aug 17 16:36:30 Actually I'm in the Feature Rich Application section, but I'm stuck with a problem that I don't know how to solve Aug 17 16:36:56 I google for it, finding nothing, and the code that I'm using its's copyied directly from the book Aug 17 16:40:20 luist, why? Aug 17 16:40:21 Tuly-, that is no question. Aug 17 16:40:39 luist, you open connection, you transfer data as you're getting directly into your private file Aug 17 16:40:47 which part of the process is confusing you? :) Aug 17 16:40:48 No, ? was just sayin what my problem is, I'm making a pastebin Aug 17 16:40:53 Mavrik: theres no such option with DownloadManager Aug 17 16:41:01 then don't use download manager. Aug 17 16:41:04 I'll share the pastebin url Aug 17 16:41:06 Sorry :D Aug 17 16:41:08 there's no need to for a small file. Aug 17 16:41:16 I thought i did it Aug 17 16:41:22 Don't use a screwdriver to hammer a nail. Aug 17 16:41:28 okay Aug 17 16:42:24 Tuly-, I'm talking to someone else, sorry to confuse you :) Aug 17 16:43:13 package com.dummies.android.taskreminder; Aug 17 16:43:13 import android.os.Bundle; Aug 17 16:43:13 import android.support.v4.app.Fragment; Aug 17 16:43:14 import android.support.v4.app.FragmentActivity; Aug 17 16:43:14 import android.support.v4.app.FragmentTransaction; Aug 17 16:43:14 public class ReminderEditActivity extends FragmentActivity{ Aug 17 16:43:14 Aug 17 16:44:00 wow. didnt he say "Ill share the pastebin" O.o Aug 17 16:44:10 Here's the code Aug 17 16:44:10 http://pastebin.com/rSXBcSWk Aug 17 16:44:26 Mavrik: but i like downloadmanager :( Aug 17 16:44:32 where is the problem with this code Tuly- Aug 17 16:44:39 Mavrik: got any example without downloadmanager? Aug 17 16:45:55 luist: if you search for "download file http andoird" or something you will get loads of examples Aug 17 16:46:31 I would think it's one of the top 3 things people want to do in an app :) Aug 17 16:47:14 danijoo: as I was saying the problem is that a Bundle object doesn0t have a putExtra() method Aug 17 16:48:02 Tuly-: try bundle.putLong() Aug 17 16:49:12 the methods of Bundle have a slightly other syntax then the methods of intent Aug 17 16:49:13 see http://developer.android.com/reference/android/os/Bundle.html Aug 17 16:49:50 well put extra does type resolving from an intent to a bundle cotained within no ? Aug 17 16:51:41 StingRay: Yes, should be Aug 17 16:52:18 daniJoo: I'm going to take a look, and let you know if I've resolved it Aug 17 16:53:03 Thank you all very much, I think that this is the best place for seeking help, with people always kind and available to help you Aug 17 16:53:08 Thankyou Again Aug 17 16:58:06 It's working men !! Aug 17 16:58:15 Thank you all!! Aug 17 16:58:54 yw Aug 17 17:03:56 StingRay_: i guess ill have to create another class that extends AsyncTask ¬¬ Aug 17 17:04:10 or use a thread Aug 17 17:04:16 or use intentService Aug 17 17:04:22 or …there are lots of ways Aug 17 17:04:22 Hey guys I need to register how long (in accurate time) a user holds down a key. Am I right in thinking the only way to do this is to make my own keyboard? Aug 17 17:04:28 up to you to decide Aug 17 17:06:20 Timmaah21: measuring the length of time a key is pressed in the default android on screen keyboard? Aug 17 17:06:35 That's the aim yes Aug 17 17:07:16 I tried doing event.startTracking() in onKeyDown and checking time differences on onKeyDown and onKeyUp but they were always the same (in nano time too) Aug 17 17:07:37 just measure the exact time, the subtract onkeyup from onkeydown Aug 17 17:07:54 also consider http://stackoverflow.com/questions/14217535/android-softkeyboard-onkeydown-up-not-detecting-alternative-keys Aug 17 17:07:54 Issue is the time is always identical Aug 17 17:10:30 anyone implement immersive_sticky and use fragmentDialogs ? Aug 17 17:11:17 I could try the onKeyPreIme but will it detect when its been pressed and released? Seems ot suggest it only knows when its been pressed Aug 17 17:12:12 Ah no.. I can get that from the event. Ok great, thanks Jesperhead I'll try with that approach Aug 17 17:16:44 StingRay_: how about this: http://paste.ofcode.org/DLXpskEx4CrC6zmGLjPs9D Aug 17 17:19:14 luist: go have a look at http://developer.android.com/reference/java/io/BufferedInputStream.html Aug 17 17:19:44 follow the class path to where it gets toString() Aug 17 17:19:53 then decide if thats really what you want Aug 17 17:20:26 as in http://developer.android.com/reference/java/lang/Object.html Aug 17 17:20:31 toString() Aug 17 17:21:48 StingRay_: you mean i have to read() it? Aug 17 17:24:52 Hi! I have a TableLayout for highscores (4 columns), how do I configure it so that columns 1,3,4 take only as much space as needed and col 2 takes rest of it, but the table doesn't overflow when a long text is inserted Aug 17 17:26:01 I have android:stretchColumns="0,1,2,3" in XML Aug 17 17:28:57 getting a lot of "Bitmap too large to be uploaded into a texture" in an activity. I'm going over android's guidelines for bitmaps and memory management and will be reformatting some code according to them, but in the meantime i was hoping to find some tips as to which bitmap is the offender Aug 17 17:29:20 astroduck: post your xml layout in a pastebin so people can see Aug 17 17:30:49 Jesperhead: how do these errors show? Can you not detect that in code when the load fails? Aug 17 17:31:06 well theres a constant animation so my debug log floods Aug 17 17:31:28 but the loads fails : can you not catch this in your code? Aug 17 17:32:26 little confused on "load fails", because all images *appear* to be there. Aug 17 17:33:06 http://pastebin.com/zw7hVXMT | I am using printHighscores() to add highscores to Table Layout Aug 17 17:33:17 i could surround the animation of the bigger bitmaps with try-catch if that is what you're suggesting Aug 17 17:34:51 Is there any reaosn why overriding onPreKeyIme() of an EditText only ever returns the back key and doesn't capture any other key presses on the device? Aug 17 17:34:53 well, if you want to know which one is failing it seems that running through with the debugger seems an obvious solution. I prefer that assing extraneous Log.d type calls but thats up to you) Aug 17 17:35:09 Seems to work ok on emulator but on actual device it only gives me the back press key event Aug 17 17:35:48 onPreKeyIme I cant find in the api Aug 17 17:36:13 sorry spelled it wrong, onkeypreime - http://developer.android.com/reference/android/widget/TextView.html#onKeyPreIme(int, android.view.KeyEvent) Aug 17 17:38:07 are you sure? log the events passed to it without using the debugger in this case. Aug 17 17:38:40 Ya, so in my genymotion emulator i can print out the keycode of everything fine. On my physical galaxy nexus it only shows the keycode for the back button Aug 17 17:39:08 same is for onKeyUp and onKeyDown :/ Aug 17 17:40:15 Let me get a code sample up for you to see Aug 17 17:41:39 astroduck: Im going to guess here : the XML can only apply to columns defined in the XML. COloumns 0,1,2,3 dont exist. Try adding a blank row in the XML. Aug 17 17:42:05 and take it from there. I have no idea if you can specify what you want in code - but I would guess yes. Aug 17 17:42:27 Basic question: can 3rd parties read what I print out in my apps log? like log.e Aug 17 17:42:29 http://pastebin.com/9CexCmWM Aug 17 17:42:52 ^So that only ever prints 4 - and nothing if other keys are pressed Aug 17 17:42:54 how can i use this FileOutputStream?? the method seems to be unresolved: FileOutputStream fileOutputStream = openFileOutput("myfile1.xml", Context.MODE_PRIVATE); Aug 17 17:43:19 on the physical device that is Aug 17 17:44:10 luist: did you even try to google? http://stackoverflow.com/questions/3625837/android-what-is-wrong-with-openfileoutput Aug 17 17:44:25 its not a global function. it runs on a context according to that. Aug 17 17:45:04 rgr: i found a similar example, but i dont pass a context to the method Aug 17 17:45:15 Timmaah21: use the Log.d type logging. Aug 17 17:45:26 neither did the guy in that SO Q. Aug 17 17:47:50 rgr: i cant pass a context in my funcion because it overrides doInBackground from AsyncTask Aug 17 17:48:46 rgr: Using Log.d produces same results - not sure what difference between using Sys outs over log would have - it either calls the method or it doesn't right? I appreciate Log.d is cleaner and the expected way though Aug 17 17:49:23 Thats the only reason I suggested it : and it removes an "unknown" ie wtf system.out.println might be doing or buffering. simplify. Aug 17 17:49:53 ya, fair Aug 17 17:49:54 luist : post your code. Are you calling it from a static method? This is explained in the SO post I linked. Aug 17 17:50:04 i can not get android studio started and ive followed directions Aug 17 17:50:22 i know its not right somewhere so what am I doing wrong Aug 17 17:50:54 how on earth would anyone here know from that scant info? Go follow the instructions more carefully and ensure you have a JDK installed. Aug 17 17:51:05 It obviously works. Aug 17 17:53:11 rgr: http://paste.ofcode.org/nZKXfREB24U7iJaAktYNwG Aug 17 17:55:27 quantibility: You need to tell us what isn't working and what you've done for us to help you Aug 17 17:58:44 luist: Im a bit confused. Why dont you just reference a valid context? Aug 17 17:59:29 stick it in a static on your main activity for example. MyActivity.context.open.... Aug 17 18:09:13 Is there a way to set viewpager current item after the fragment's onCreateView has been called? Aug 17 18:09:16 from the hosting activity. Aug 17 18:19:43 hello everyone Aug 17 18:19:57 i finally decided to switch to Android Studio today Aug 17 18:20:15 but I'm having trouble getting ndk components to build Aug 17 18:21:16 I tried follwing the instructions here: Aug 17 18:21:21 https://software.intel.com/en-us/videos/using-the-ndk-with-android-studio Aug 17 18:22:14 supposedly as long as ndk.dir is set up and jni dir exists in main dir, then it should build the libs automatically Aug 17 18:22:37 but nothing happens for me. Aug 17 18:23:01 no errors, nothing. it simply ignores jni. Aug 17 18:23:17 anyone experience similar issue? Aug 17 18:30:55 anyone currently using Android Studio with NDK? Aug 17 18:37:30 lurkerzero: I haven't used the NDK, but this just passed through my stream : https://plus.google.com/u/0/+ShaneeNishry/posts/JN4vHWb1WQV Aug 17 18:39:46 I_Artist: thanks. I'm trying it now Aug 17 18:44:40 i am so stupid for not making my app support orientation changes from the beginning Aug 17 18:44:43 this amount of fixing Aug 17 18:44:44 ;_; Aug 17 18:49:21 any app that forces orientation or locks it is instant uninstall for me Aug 17 18:49:23 lol Aug 17 18:50:14 rgr: how do i get the activity from inside this class? Aug 17 18:51:55 i am getting so many different errors right now i dont know where to start Aug 17 18:54:24 Umm what's the different between siblings and children? >.> Using jsoup and they give different results Aug 17 18:54:49 siblings are brothers/sisters, children are children Aug 17 18:54:57 oooh Aug 17 18:55:13 Thanks :) Aug 17 18:55:29 skulltower: you an only child ? Aug 17 18:55:36 ;) Aug 17 18:56:40 :) nop but weirdly enough I didn't know the meaning of that word XD how fail of me Aug 17 19:01:35 Ah finally! NDK is working with Android Studio Aug 17 19:01:43 I was doing 2 things wrong: Aug 17 19:02:01 1. I was hitting "build". I was supposed to do "run" Aug 17 19:02:24 2. my ndk was outdated (r9) using the latest version (r10) Aug 17 19:09:10 although I think I still need to stick with eclipse... the new build scripts seems to have trouble with relative include paths Aug 17 19:09:39 at least on windows Aug 17 19:13:38 Hello there! Aug 17 19:14:34 Hi Dr. Nick Aug 17 19:14:55 I'm looking for some page or whatever to learn specific things such as how to implement a drawer, for instance. Is there anything like that on the Internet? Aug 17 19:15:25 for rails we have railscast, short videos about tools and libraries Aug 17 19:15:28 what about android? Aug 17 19:15:41 what'd google say? Aug 17 19:15:49 I couldn't find anything like that Aug 17 19:16:01 how do I detect when a user has scrolled to the bottom of a listview Aug 17 19:16:21 there are videos on youtube of course but nothing like railscast Aug 17 19:16:36 can't read code? Aug 17 19:16:55 me? of course I can Aug 17 19:17:11 heh - personally I hate video tutorials Aug 17 19:19:09 iffa: can check visible positions of items Aug 17 19:24:42 im going to shoot myself soon because i get errors that i have no clue about why they happen Aug 17 19:25:25 well find out :) better option than shooting ones self! Aug 17 19:25:52 one error doesnt even tell me a line number from my code Aug 17 19:25:59 5/5 Aug 17 19:26:10 pastebin the stacktrace Aug 17 19:26:23 ill have to come across said error again Aug 17 19:26:32 ill let you knw when that happens Aug 17 19:28:22 http://pastebin.com/ZgETakbN Aug 17 19:28:23 there it is Aug 17 19:28:42 heh - NPE Aug 17 19:29:34 yeah Aug 17 19:29:37 i understood that much Aug 17 19:29:38 iffa: ArrayAdapter.java:330 Aug 17 19:29:39 ok so there's no way to learn android the way I wanted? :( Aug 17 19:29:52 iffa: I think you need some learning time Aug 17 19:30:00 need help, how to accept only one comma on input in edittext ? Aug 17 19:30:02 if you get stuck at npe Aug 17 19:30:24 i wouldnt get stuck if i could actually understand what is going on in there Aug 17 19:30:50 well yeah, that comes with learning Aug 17 19:31:23 itd help a lot if it told me where in my code im doing shit wrong Aug 17 19:31:32 freelancercerbob: implement a TextWatcher? Aug 17 19:31:46 iffa: it does Aug 17 19:31:46 capella: yes and then ? Aug 17 19:31:54 write code Aug 17 19:31:57 iffa: when you set the adapter Aug 17 19:32:09 and it does getCount Aug 17 19:32:24 now that you explained it, i sort of understand Aug 17 19:32:28 using the textwatcher you can allow or disallow user pressing the OK button for eample Aug 17 19:32:59 iffa: I would step back though and do some back to basics on things like error/exceptions etc Aug 17 19:33:03 capella: i need disallow type more than one comma Aug 17 19:33:04 or display a flag/wanring that the field contains invalid input Aug 17 19:33:32 iffa: or you will end up being very frustrated, no point being like the rest of us if you can prevent it Aug 17 19:33:44 TextWatcher - http://stackoverflow.com/questions/8543449/how-to-use-textwatcher-in-android Aug 17 19:33:59 inputdecimal works fine but with the point, i need the same result with comma Aug 17 19:46:01 some weird shit is going on with my listview right now lol Aug 17 19:57:59 the nsa is jamming your adapter Aug 17 20:00:36 my list derps out the instant i rotate my screen Aug 17 20:00:39 amazing Aug 17 20:01:35 I thought they just use mind-control to disrupt your ability to understand where your bugs are ... and that tin-foil acts as a valid anechoic chamber Aug 17 20:02:41 And can you actually get tin-foil anymore? All I can find is aluminum wrap :/ Aug 17 20:06:19 iffa: learn about the android lifecycle Aug 17 20:06:33 StingRay_: ive spent the last 4 hours learning just that Aug 17 20:07:43 you missed a bit Aug 17 20:07:45 or lots Aug 17 20:08:03 or didn't quite understand it Aug 17 20:08:17 theres no way one could understand something so retarded as android's weird lifecycles Aug 17 20:08:49 sounds like your on the wrong platform Aug 17 20:09:04 I would go do someting else if thats the case :) Aug 17 20:09:15 hey guys - I have an activity with a listview where onClick starts a new activity where you can edit text. I want to animate it so listViewItem onClick expands the listitem to fit the screen. What's the best way to accomplish this? I am thinking make my 2nd activity a simple View Aug 17 20:09:26 or would making my second activity a fragment be a better approach? Aug 17 20:10:05 activity is a class, so you cant make an activity into a view Aug 17 20:10:11 views can be inside activites Aug 17 20:10:18 well I mean throw out the activity, and have a view with an edit text Aug 17 20:10:19 but maybe a dialog is an idea Aug 17 20:10:53 capella: There are 8 stable isotopes of Tin, you must make sure that you have a close to, perfect ratio of isotopes, preferably with a minimum of odd numbered ones, to enhance the beneficial quantum effects! :-) Aug 17 20:10:55 fragmentDialog Aug 17 20:12:58 ok I will look into it thanks Aug 17 20:13:30 personally, I prefer a velostat Aug 17 20:14:34 iffa: Yeah. I agree with StingRay. Time for you to give up :) Its pretty well documented and the millions of other apps suggest it can be mastered...... Aug 17 20:14:49 Aug 17 20:19:57 how can i open a file that i saved to: openFileOutput("myfile1.xml", Context.MODE_PRIVATE); Aug 17 20:23:47 it works !! \o/ Aug 17 20:27:51 welcome to the life of a hacker Aug 17 20:35:29 Hi, I'm having trouble with the R.java file Aug 17 20:35:52 Now, since then is automatic generated, what can I do to fix it Aug 17 20:36:10 (I've already cleaned the project, and deleted it 'cause the first didn't work) Aug 17 20:36:26 maybe fix the xml error that is preventing build ? Aug 17 20:36:48 could just be a little syntax error you got Aug 17 20:37:31 You're right, but the fact is that I've only got warnings in the other files, no errors Aug 17 20:37:43 forget R missing Aug 17 20:37:48 that is a symptom Aug 17 20:38:03 Okay Aug 17 20:38:19 Now the R.java file has been regenerated, but it gives alway an error Aug 17 20:38:38 what error ? Aug 17 20:39:42 I don't know Aug 17 20:40:02 you dont know the error ? then how do you know there is an error ? Aug 17 20:40:10 heh Aug 17 20:46:09 [NTCTC001|bp%lwxk59oj6] Aug 17 20:46:15 why i cant pass the context that i receive from the upper class??? http://paste.ofcode.org/Q4MzixKhws6eXqkER4xPjp this gives me: error: non-static variable ctx cannot be referenced from a static context Aug 17 20:47:14 luist: honestly I'm not much of a programmer but I can see that you learning basics of java would aid you soooooo much Aug 17 20:47:27 how can I get adb only to display log that's related to my app? Aug 17 20:47:42 Stingray_ : Sorry but my connection died Aug 17 20:47:53 What were you sayin' Aug 17 20:47:56 ? Aug 17 20:48:04 StingRay_: true… but nobodys gotta time for that Aug 17 20:48:04 Tuly-: you dont know the error ? then how do you know there is an error ? Aug 17 20:48:21 luist: it will save you TONNES of time if you do Aug 17 20:48:37 StingRay_: i’m learning by demmand… which is working perfectly until now Aug 17 20:48:37 otherwise you will waste it in misunderstandings and confusion Aug 17 20:49:01 StingRay_: i learn pretty fast and i wont repeat the same mistakes… so you could help me with this ^^ Aug 17 20:49:09 google can Aug 17 20:49:14 these are all java 101 things Aug 17 20:49:19 lencl: pipe the logcat output through a grep filter Aug 17 20:49:20 StingRay_: can i pass a pointer to the upper class context? Aug 17 20:49:27 yes Aug 17 20:49:34 StingRay_: should i? Aug 17 20:49:51 if you want Aug 17 20:50:05 StingRay_: i want it to work but i also wanna use the best practice Aug 17 20:50:17 then learn some java 101 stuff Aug 17 20:50:21 static <--- Aug 17 20:50:25 StingRay_: dont be mean T_T Aug 17 20:50:52 capella I'm using windows Aug 17 20:50:54 luist: why is that method static? does it need to be? try making your context var static Aug 17 20:51:35 lencl: then pipe to a file and search for your apps TAG's Aug 17 20:51:51 or ge a windows version of grep like I did Aug 17 20:52:02 ah Aug 17 20:52:44 Actually, I wrote one ... (where did I leave that thing) Aug 17 20:55:19 cheap grep for windows https://pastebin.mozilla.org/6027855 Aug 17 20:57:09 capella: i removed static form getVideoList method but when i call it passing the context as parameter i get basically the same: error: non-static method getVideoList() cannot be referenced from a static context Aug 17 21:00:57 capella, actually I got the grep to work Aug 17 21:01:12 isn't is logcat | grep AppName Aug 17 21:01:21 it doesn't seem to recognize AppName Aug 17 21:02:53 isn't it the name that's in the strings app_name? Aug 17 21:04:20 nvm got it Aug 17 21:04:31 thank you capella, the grep is awesome Aug 17 21:04:32 pipe logcat to a file, edit the file, practice reading through it ... do text searches 'n stuff ... grep gets easier after that Aug 17 21:04:33 adb logcat -c && adb logcat > myFile.txt Aug 17 21:05:09 sure :p Aug 17 21:05:26 but adb logcat | grep AppName did the trick Aug 17 21:05:36 yes it does Aug 17 21:06:42 so piping logcat into a file will be for when it gets more complicated? Aug 17 21:06:53 cause right now I have a simple simple app from the docs Aug 17 21:09:23 So on the 'onClick' button, I'm calling upon a method. Why does it need the parameters View view in the method () ? Aug 17 21:09:31 I know I should but I'm wondering why Aug 17 21:11:56 not sure what you're asking Aug 17 21:12:50 so I a came to a conclusion that no one uses Android built in geofence tool, and implements their own.. Aug 17 21:13:07 I'm not sure if many devices supported the built-in one yet Aug 17 21:13:55 Basically... when I have a simple edittext and a button.. the button has onClick="SendMessage()" Aug 17 21:14:10 Then the public void sendMessage() should be public void sendMessage(View view) Aug 17 21:14:15 wondering what's the View view for Aug 17 21:16:14 Lencl: it's the view that triggered it Aug 17 21:16:26 so you can do things like grab the id, value or anything else Aug 17 21:16:35 or nothing at all Aug 17 21:17:12 ah ok Aug 17 21:21:35 StingRay_ is in the building! Aug 17 21:22:15 bed time Aug 17 21:31:23 Hi, it is possible to disable vsync on the android device? is it relevant/possible at all? Aug 17 21:31:29 or is it a noob question? =) Aug 17 21:33:30 peroht: afaik it isnt posible Aug 17 21:33:39 not possible, also, why? Aug 17 21:35:08 because in android its an app independent kernel feature Aug 17 21:35:24 you can enable/disable it system wide, but not for a single app Aug 17 21:35:52 still, I wonder why someone would want to disable vsync :> Aug 17 21:36:52 better framerate Aug 17 21:37:15 but less quality Aug 17 21:38:13 danijoo: if the only thing you care is "framerate", which by itself is pretty useless Aug 17 21:38:33 danijoo: ok thanks Aug 17 21:38:41 p_l: i'd want it for profiling only Aug 17 21:39:09 p_l: not everything but I understand why you may want it. If you write a game with bad performance, and it would be possible to disable vsync Aug 17 21:39:20 you may could get it from 20fps to 30-40. Aug 17 21:39:56 danijoo: VSync will at most *limit* max framerate Aug 17 21:40:09 it won't magically increase framerate of shitty code Aug 17 21:40:37 unless someone simply utterly bollocked drawing synchronization, but then they've got worse problems Aug 17 21:42:42 disabling vsync will however never solve shit in - shit out Aug 17 21:46:50 would you say android developers get paid more than web developers? Aug 17 21:49:53 these questions just aren't fun any more Aug 17 21:50:03 as something funny like, whats better iOS or Android Aug 17 21:50:25 IDEA > Eclipse! Aug 17 21:50:27 ;) Aug 17 21:51:16 haha Aug 17 21:52:24 JesusFreke i bumped into this while wondering aimlessly in the amazons http://www.amazon.com/Slowspoke-Unicyclists-America-Mark-Schimmoeller-ebook/dp/B00M1QJLQ0 Aug 17 21:52:28 Jesusfreke wins the internet Aug 17 21:52:38 g00s: haha Aug 17 21:52:45 hadn't seen that one Aug 17 21:53:33 Sorry, does anyone knows what this error means ? Aug 17 21:53:57 Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V Aug 17 21:53:58 Exception details are logged in Window > Show View > Error Lo Aug 17 21:54:08 g Aug 17 21:54:13 hi, how do I connect via adb to my phone (attached via usb)? adb devices lists one device with the ID 0123456789ABCDEF Aug 17 21:54:42 Schrostfutz: it sounds like it's connected Aug 17 21:54:43 pretty cool id Aug 17 21:54:50 Schrostfutz: does "adb shell" work? Aug 17 21:54:57 sounds fake :P Aug 17 21:55:07 is it confirmed? Aug 17 21:56:20 JesusFreke: ah! what would happen with multiple devices connected? Aug 17 21:56:32 g00s: its my sisters phone with cyanogenmod on it Aug 17 21:56:35 Schrostfutz: it would tell you there are multiple devices connected Aug 17 21:56:44 read over adb help Aug 17 21:57:01 it has info on how to specify a specific device by id Aug 17 21:57:19 p_l: i'd want to see just to see how much it can perform. thats all. Aug 17 21:57:43 JesusFreke: thank you! Aug 17 22:03:16 http://pastebin.com/NMXa8QRK <-- The is not centering. Is there anything wrong here? Aug 17 22:07:11 android:gravity="center_horizontal" is not what you want Aug 17 22:07:23 you want android:layout_gravity Aug 17 22:08:09 and why is that Aug 17 22:08:33 g00s: clearly window phone is better Aug 17 22:11:54 gravity affects the content of the view (in the case TextView) , layout_gravity defines how the view will react in its layout Aug 17 22:12:23 ahh makes sense thank you Aug 17 22:12:51 no problem :) Aug 17 22:18:56 Is there a way to change type of class member throughout the app in Android Studio? Aug 17 22:19:50 detachYo: you mean refactoring ? Aug 17 22:21:35 Good questiion, I tried refactorig a class member type and couldn't do it Aug 17 22:26:09 Ok, this is kicking my ass. Hard. I'm trying to completely remove the status bar and use immersive mode. No matter what I do the status always appears if I swipe down from the top of the screen Aug 17 22:27:32 bankai_au: could be, let me check. Aug 17 22:49:17 detachYo it is my favorite, indeed XD Aug 17 22:49:43 http://www.washingtonpost.com/world/national-security/spyware-tools-allow-buyers-to-slip-malicious-code-into-youtube-videos-microsoft-pages/2014/08/15/31c5696c-249c-11e4-8593-da634b334390_story.html Aug 17 22:49:57 g00s might like Aug 17 22:50:42 oh yeah i saw that. Aug 17 22:55:17 "Armed men attack Liberia Ebola clinic, freeing patients" oooiiii Aug 17 22:55:35 freeing? Aug 17 22:56:09 thats what it says http://www.cbsnews.com/news/report-armed-men-attack-liberia-ebola-clinic-freeing-patients/ Aug 17 22:57:25 oh so bad Aug 17 22:57:57 darwin wins this one Aug 17 22:58:14 BBC reports that as confusing reports : hints they may have been disposed of. Aug 17 22:59:06 well, what I guess may have happened since this was an angry mob not happy with the clinics in their particualr ghetto. Aug 17 22:59:25 http://m.bbc.com/news/world-africa-28827091 Aug 17 23:00:44 * capella-s3 goes back to ContentProvider docs where it's safe Aug 17 23:00:48 if this breaks lose in Lagos all hell is going to happen Aug 17 23:02:48 I watched Omega Man the other day too.... Aug 17 23:04:59 heh... was just trying to remember the name of that film the other day Aug 17 23:06:55 I_Artist, that's how immersive is documented to work Aug 17 23:07:17 I_Artist, you're better off just disabling the status bar Aug 17 23:20:57 hmm... anyone have a direct link to download 4.4 (api19) images (arm, NOT x86) for the emulator? (do those even exists, or are x86 the only ones available?) Aug 17 23:21:17 strange as it is, I would prefer to not do it through SDK manager Aug 17 23:26:56 ravilov: dont know if it's possible Aug 17 23:27:06 probably is but Aug 17 23:27:12 there's offline version of it I guess Aug 17 23:30:07 ravilov: https://dl-ssl.google.com/android/repository/addons_list-2.xml Aug 17 23:43:42 bankai_au, thanks, will try to make use of that Aug 17 23:46:11 When I try running ndk-gdb-py I get an error: "Could not extract package's data directory..." when I try running adb shell run-as with my app I get "Could not set SELinux security context: Permission denied" Any ideas what the problem is? Aug 17 23:52:28 http://pastebin.com/rCHHSyeu is the full output of ndk-gdb-py --force --verbose --start Aug 18 00:10:21 So say I want to save a some paired URLs and titles. What's the best way to do that? Can you add pairs to a list or arraylist? Aug 18 00:12:10 there's collections that will have key value relations, is that what you're trying for? Aug 18 00:15:54 rrobe53: I believe so. I don't know much about collections, but that sounds like what I'm looking for Aug 18 00:16:36 depending on your goal you might want something like a map, or you could do an array and use Pair Aug 18 00:16:46 http://developer.android.com/reference/java/util/Map.html http://developer.android.com/reference/android/util/Pair.html Aug 18 00:20:19 Huh, that looks like what I'm looking for, or at least a good starting point. Thank you! Aug 18 00:22:11 np Aug 18 00:26:08 looks like https://dl-ssl.google.com/android/repository/google_apis-19_r07.zip is what I was looking for Aug 18 00:28:24 Hi guys, whatsup. I'm having some issues with Google Analytics, and I cant seem to get an answer anywhere else, so might as well try here. It seems that everytime I install a build on my test devices, Analytics counts it as a new user. Why is this, and can I do anything about it, other then disabling Analytics when pushing test builds? Aug 18 00:32:22 need some help with AsyncTask… this is my code: http://paste.ofcode.org/4ierH25xWZmws2YfNzhVun and i need to know how can i run the .execute() Aug 18 00:33:40 http://developer.android.com/reference/android/os/AsyncTask.html Aug 18 00:39:02 When I try running ndk-gdb-py I get an error: "Could not extract package's data directory..." when I try running adb shell run-as with my app I get "Could not set SELinux security context: Permission denied" Any ideas what the problem is? Aug 18 00:39:10 http://pastebin.com/rCHHSyeu is the full output of ndk-gdb-py --force --verbose --start Aug 18 01:12:52 http://pastebin.com/QDN8D64r is the output of ndk-gdb. What is the error I'm getting? Aug 18 01:18:23 in order to query the database from intentservice, do I have to trigger broadcast receiver, to get a context? Aug 18 01:20:57 detachYo lol wut Aug 18 01:21:17 just use the Service, its a context Aug 18 02:24:47 can i install APKs from inside my app? Aug 18 02:26:25 not exactly, but you can open the play store to a certain app for the user to install Aug 18 02:27:54 I have a library (caldroid) in my project, which I try to edit, but the changes do not apply when the app is run. I tried cleaning the project and the lib, removing build folders and R.java files manually Aug 18 02:28:42 uninstall the app Aug 18 02:28:58 no effect, will try once again Aug 18 02:29:18 you can crack open the APK and checksum the lib Aug 18 02:29:19 you can send a VIEW intent with a path to the apk as the data component Aug 18 02:58:27 bankai_au: what if the APK is not in the play store Aug 18 02:58:41 bankai_au: id download it and install Aug 18 02:59:10 luist: JesusFreke was actually answering you, which wasn't entirely clear... Aug 18 02:59:25 oh **** ENDING LOGGING AT Mon Aug 18 02:59:59 2014