**** BEGIN LOGGING AT Sat Aug 31 02:59:58 2013 Aug 31 03:35:14 google drive's appdata directory is awesome Aug 31 03:35:19 seems pretty rock-solid secure Aug 31 03:40:57 huh, if I have rows in a relative layout, how do I get the items of the rows aligned on their centerline? Aug 31 03:42:03 I suppose I could give all the rows a height and use gravity to center them, but that's pretty lame Aug 31 03:42:32 http://logs.nslu2-linux.org/livelogs/android-dev/android-dev.20130522.txt Aug 31 03:42:36 apparently, I've asked this before Aug 31 03:42:36 heh Aug 31 03:52:58 guys is there an android UI designer can I can create some mockups with before development? Aug 31 03:57:08 zquad seems like plenty of options on stack overflow Aug 31 04:01:19 I just confused between java and other langs. I want to make an String Array in java with only one element. Is this code ture? String[] myStrArray = new String[]{someStr}; Aug 31 04:03:34 digitsm, during declaration, you can do String[] myary = { str }; Aug 31 04:03:45 and only during declaration :( Aug 31 04:04:01 damnit, strings.xml doesn't support

Aug 31 04:06:55 pfn: It only supports text style tags. Aug 31 04:07:36 Auv5, indeed, I always hope that it supports more Aug 31 04:11:36 so i haven't open android studio in 2 weeks and now i launch it and i get this: http://i.imgur.com/RA2G7Ie.png Aug 31 04:11:41 any ideas how to fix it? Aug 31 04:33:00 Auv5: I got confused about AssetManager.list(String path). What does it exactly return? Aug 31 04:36:15 I just updated android studio, and it's not giving me code errors that make no sense: http://i.imgur.com/YfL84x9.png Aug 31 04:40:09 n/m, closing studio and reopening fixed it Aug 31 04:59:24 Anyone in here familiar with importing an external library into Android Studio. I have attempted it with ViewPagerIndicator, but am not having any luck. I have followed multiple examples about other libraries described on stackoverflow, but with no luck so far Aug 31 05:30:47 http://notes.fundersandfounders.com/ Aug 31 05:40:48 I try to include ViewPagerIndicator to the project folder and include the required lines in settings.gradle and build.gradle. The result is either an error showing that the path is incorrect or "Configuration with name 'default' not found" Aug 31 05:42:53 whats a good json parser? i don't really want to deal with streams and all, just want to deserialize a string to a POJO Aug 31 05:43:09 sylon: Gson Aug 31 05:44:47 Napalm: does it support stuff like ignoring some data in json if my POJO dont have it Aug 31 05:45:02 its does that anyway Aug 31 05:45:11 cool Aug 31 05:55:10 I compiled android kernel but it raised uninitialized variable in function, and compile stop, How can I turn off uninitialized varible flags? Aug 31 05:56:17 its probably a warning? so turn off that warning or all warnings Aug 31 05:57:26 Napalm: yeah it's warning but compile says forbidden warning and compile stop Aug 31 05:57:44 Surely Aug 31 05:57:53 because someone has added the "treat all warnings as errors" probably Aug 31 05:57:54 Instead of trying to ignore the warning Aug 31 05:57:58 fix it! Aug 31 05:58:01 it should be fixed Aug 31 05:58:04 true, Aug 31 06:06:10 Why stackoverflow is so bad for beginners. I have 3 reputations. I can't vote up, can't vote down, can't comment. I actually can do nothing Aug 31 06:07:05 I'm not sure whether I can ask a question or not!!! Aug 31 06:10:55 digitsm: you can post answers Aug 31 06:10:57 http://cache.ohinternet.com/images/f/f8/ZalgoRegex.png Aug 31 06:11:31 thats a classic one Aug 31 06:53:42 Hi Aug 31 06:53:55 Is anyone here awake? Aug 31 06:56:16 hi Aug 31 06:57:04 hi Aug 31 06:57:19 is anyone available here? Aug 31 06:58:19 mast3rmar: what Aug 31 06:58:31 mast3rmar: ask your damn question Aug 31 06:58:35 :P:) Aug 31 06:59:12 lol Aug 31 06:59:37 let me just do a final test and ill see if i have to ask or just chill here Aug 31 06:59:59 i have been coding and researching since 12 pm and its almost 3 am -_- Aug 31 07:04:48 my question is Aug 31 07:04:56 i do not understand why my code doesnt work Aug 31 07:04:57 http://pastebin.com/jVsckZD8 Aug 31 07:05:41 its very simple, its suppose to play a sound when i click on a button Aug 31 07:06:11 but for some reason, in my onResume() it doesnt work Aug 31 07:09:14 Napalm are you there? Aug 31 07:13:36 mast3rmar: patients Aug 31 07:14:17 You have patients? Aug 31 07:15:23 *patiences Aug 31 07:15:28 yesç Aug 31 07:15:30 i have Aug 31 07:15:31 damn man its too early in the morning for this Aug 31 07:15:31 lol Aug 31 07:15:34 sorry for rushing Aug 31 07:15:55 you really know how to fudge code, i give you that Aug 31 07:15:58 *patience Aug 31 07:16:19 is fudge a good thing or a bad thing? Aug 31 07:16:30 Depends on where it is. Aug 31 07:16:31 not good, lets just say that Aug 31 07:16:40 In code, it's bad. On ice cream, it's good. Aug 31 07:16:46 mast3rmar: so what are you trying to achieve here exactly? Aug 31 07:16:47 lmao Aug 31 07:17:02 i have 10 sounds Aug 31 07:17:16 On a spouse or partner, 50/50 chance it's good. Aug 31 07:17:16 lets say i have abcdefghj Aug 31 07:17:29 Nilium: depends how much Aug 31 07:17:35 a,b,c,d,e,etc Aug 31 07:17:36 And if they shed body hair easily. Aug 31 07:17:43 lol Aug 31 07:18:13 Your morning is now filled with joy. You're welcome Aug 31 07:18:14 i want that when i write abc in the textbox and click on the button it checks the code and plays the audio according to the string Aug 31 07:18:27 * Nilium goes back to being happy that he has a Sublime Text-like minimap in IDEA. Aug 31 07:18:28 Nilium: cheers bud Aug 31 07:19:15 mast3rmar: are these "sounds" the sound coords of a piano for instance and this is like a ringtone player? Aug 31 07:19:39 kinda Aug 31 07:19:51 heh Aug 31 07:20:03 lets say its a custom text to speech Aug 31 07:20:14 oh dear Aug 31 07:20:50 what format are these RAW files in? AIFF? Aug 31 07:20:58 in .wav Aug 31 07:22:20 the ideal solution to your problem is to actually nit all the parts of the audio together and then play that one single piece of audio Aug 31 07:23:02 that is one way Aug 31 07:23:31 but i want them to be in different sound files, it is more updatable that way Aug 31 07:23:40 you missing my point Aug 31 07:23:44 they would be different sound files Aug 31 07:23:55 its just when you playback the audio you join them up Aug 31 07:24:12 how do i do that? Aug 31 07:25:14 Anyone got a Snapdragon 800 phone like the Sony Z Ultra yet? :P Aug 31 07:25:35 Sonicadvance1: why? Aug 31 07:25:59 Trying to figure out if the new Qualcomm drivers are still crap Aug 31 07:26:28 well i can get my hands on one during monday Aug 31 07:26:32 if that helps Aug 31 07:27:23 Oh Fancy, willing to do some minor testing for me then? :P Aug 31 07:27:59 mast3rmar: i can send you some code that uses MediaPlayer to achieve what you desire, but you wont get smooth playback, there will be loading/buffering time between playbacks of each file Aug 31 07:28:08 Sonicadvance1: sure Aug 31 07:28:27 I'm handling the Android build of http://dolphin-emu.org/ and the current V14 drivers just cause the phone to lock up or show garbage Aug 31 07:28:50 The V41/V43/V45 drivers + newer kgsl may have fixed it Aug 31 07:28:55 send it Aug 31 07:29:07 maybe it wont buffer that much Aug 31 07:29:15 because the sound files are all below 30 kb Aug 31 07:30:04 mast3rmar: it doesnt work that way.. its not the file size that matters Aug 31 07:30:30 hmmm, how does it work? Aug 31 07:31:55 mast3rmar: there are lots of things that must happen inside the audio pipeline that means if your trying to play short samples in series at a fast pace you will hear jumps/clicks/pops so on Aug 31 07:32:07 mast3rmar: this wont take a moment, hang on a sec Aug 31 07:32:53 ok mate Aug 31 07:48:01 lol i am getting a headaque xD Aug 31 07:48:08 lol Aug 31 07:48:41 why you are getting the code for me i am still trying and i feel that i have been defeated xD Aug 31 07:48:48 your my only hope :p Aug 31 07:48:54 mast3rmar: see PM Aug 31 08:46:14 http://pastebin.com/AeG951JL Aug 31 09:01:12 anyone have advice for an s3 that seems totaly dead? doesn't seem to charge but is there some reset procedure you can do in that state? Aug 31 09:01:18 Does the sudden death bug do that? Aug 31 09:01:27 it's totaly stock phone Aug 31 09:13:06 sabgenton: this channel really is for app development, not general android help =) Anyhow, "doesn't seem to charge"how long has it been plugged in? And taking out and putting back in the battery is the best reset feature I know about. Aug 31 09:14:09 Thorbear: new charger has been tried nothing works just dead Aug 31 09:14:31 Thorbear: would you know per chance how the sudden death bug works? Aug 31 09:14:52 Never even heard of it Aug 31 09:14:56 I understand the eMMC chips get corrupted somehow cause there a bad batch Aug 31 09:15:17 Thorbear: eMMC corruption in general? Aug 31 09:16:37 Nope, but if there is a broken chip, I bet the guarantee covers it Aug 31 09:17:37 not even jtag bit blasting can fix eMMC corruption apparently Aug 31 09:17:52 Thorbear: friend brought phone second hand :( Aug 31 09:18:14 guess he could still try Aug 31 09:40:51 woo bit blasting Aug 31 09:57:03 I'm using google GCM and also using a custom adapter to display sqlite contents in a list. How do I update the list that in in the main UI while the window is open when a new GCM update comes in Aug 31 10:21:28 using android studio and following some tutorials by thenewboston and just did the splash screen one, but it doesn't seem to work, must be missing something but can someone help? Just says "Unfortunately, X has stopped" when I run it in the virtual machine Aug 31 10:21:46 last thing I edited was the manifest so am thinking it's something there Aug 31 10:29:37 Mrono: When you receive a GCM message, update your database/content provider, and make sure setNotificationUri gets called, and your view should update itself magically. Aug 31 10:31:20 Thorbear: yay it was just a dead battery Aug 31 10:31:51 hopefuly a friends phone will charge it Aug 31 10:32:16 his friends phone's battery brought everything back to life Aug 31 10:32:18 I like the 3amp chargers Aug 31 10:32:50 what are they? Aug 31 10:33:37 you mean separate charger from the phone? Aug 31 10:33:51 Right, the wall adapter Aug 31 10:34:44 No phone uses 3amps, but dang it, I like being prepared Aug 31 10:37:11 kjeldahl: do you have any examples of content providers (do i need one), i've tried to do several but they don't work out for me Aug 31 10:38:28 Sonicadvance1: where do you get a 3amp charger, i've only been able to find 2amp ones Aug 31 10:38:34 nup no one, bummer Aug 31 10:40:06 Mrono, You caught me in my lie Aug 31 10:40:20 Do you want me to make one so I am no longer a liar? Aug 31 10:40:40 yes Aug 31 10:40:45 Don't wanna Aug 31 10:40:55 Waste of time, no phone would use that amperage :P Aug 31 10:42:08 wait Aug 31 10:42:21 Quick Charge 2.0 uses 4Amp+ Aug 31 10:42:49 Future devices Aug 31 10:43:47 Maybe the Galaxy Note 3 Snapdragon 800 model will have it :P Aug 31 10:44:00 We'll see on Wednesday!~ Aug 31 10:48:18 the interesting thing is that the nexus 7 2012 has a 2amp and the nexus 7 2013 has a 1.3 amp Aug 31 10:49:40 hah Aug 31 10:49:50 S4 Pro probably sucks less power to be honest Aug 31 11:41:07 hello. Is there any other way to download 4.3 source code instead of git? I am cloning through wireless connection and it sometimes breaks then download starts from beginning... Aug 31 13:26:59 Anyone in here familiar with importing an external library into Android Studio. I have attempted it with ViewPagerIndicator, but am not having any luck. I have followed multiple examples about other libraries described on stackoverflow, but with no luck so far Aug 31 13:53:23 Anybody has ever attached keyboard (musical) to computer and used with FL Studio ? Aug 31 13:53:32 err wrong channel. Aug 31 13:53:36 sorry. Aug 31 13:56:00 hey guys my webview is flashing black when i scroll it, any ideas? i tried android:cacheColorHint="#00000000" but no luck Aug 31 13:56:59 Gaz`: try forcing into software layer Aug 31 13:57:39 Gaz`: mWebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); Aug 31 13:57:50 thx Aug 31 13:57:55 will give it a shot Aug 31 13:58:03 i only said try, let us know if it fixes it Aug 31 13:58:13 its not the best solution, but it might solve it Aug 31 13:58:26 wow yep! Aug 31 13:58:28 it does! Aug 31 13:58:36 your welcome Aug 31 13:58:38 cheers Aug 31 14:03:25 View v = findViewById(R.id.view); int w = v.width(); why w is 0? Aug 31 14:03:44 Napalm ah only works on some apis Aug 31 14:03:47 api levels Aug 31 14:04:18 Gaz`: do you force hwAcceleration on in your manifest? Aug 31 14:04:22 no Aug 31 14:04:26 then its not a problem Aug 31 14:04:31 crashed my n1 Aug 31 14:04:35 but worked on tab Aug 31 14:04:38 on the previous platforms you dont require it Aug 31 14:04:49 they only software render Aug 31 14:04:55 if not forced on Aug 31 14:05:05 should i be forcing hw acceleration or not? Aug 31 14:05:21 depends on your app Aug 31 14:06:00 got a view scrollign things and viewpagers etc Aug 31 14:06:34 Gaz`: ignore that for now.. simply add a Build check around the function call Aug 31 14:06:38 and then test it on your N1 Aug 31 14:06:46 yep doing that now thx Aug 31 14:07:04 cant wait to get this damn app out Aug 31 14:07:11 and get back to making games Aug 31 14:08:41 works like a charm with the if :D Aug 31 14:09:22 ;) Aug 31 14:09:37 i find maintainingseperate xml files a nightmare really Aug 31 14:09:54 seems mad u make one change later and u need to go change like 2 or 3 others Aug 31 14:10:14 your probably doing it wrong then Aug 31 14:10:22 yeh? Aug 31 14:10:59 but if you decide to change something on one screen and that screen has alternative xml layouts, then you have to go edit them too right? Aug 31 14:11:51 you should be making your layouts more modular with and tags Aug 31 14:12:08 oh yes Aug 31 14:12:10 thats a good idea Aug 31 14:12:21 and try to set sizes in code maybe? Aug 31 14:12:22 hmm Aug 31 14:12:23 Has anyone in here used AndroidStudio with a library based module under Maven like ViewPagerIndicator Aug 31 14:12:52 epsilonorion: sounds like you want http://gradleplease.appspot.com/ Aug 31 14:16:11 Napalm: Tried that a while ago. Just says I need to ask the author to make an aar available on Maven Central Aug 31 14:16:30 so you have to use a local lib Aug 31 14:16:54 Then, after asking in here JakeWharton turned me towards a stackOverflow page talking about how someone setup actionbarsherlock. I followed it, but to no luck so far Aug 31 14:17:29 basically yes. I am trying to use ViewPagerIndicator Aug 31 14:17:49 solution I have been trying http://stackoverflow.com/questions/17642094/how-to-properly-setup-gradle-in-android-studio-for-actionbarsherlock Aug 31 14:17:58 one of the many Aug 31 14:19:40 Napalm: any other ideas? Aug 31 14:22:19 hmm going back from a fragment seems to take a while Aug 31 14:29:02 anyone else have any ideas on the local library in android studio thing. It has been killing me for some time Aug 31 14:29:27 zurfer Aug 31 14:30:35 sorry no epsilonorion, only on eclipse Aug 31 14:32:51 I have uploaded a simple test to use AsyncTask but it does not work properly: http://pastebin.com/qq9je4cK Aug 31 14:32:51 Line 96 does not seem to be executed and line 83 crashes (if enabled) with the error "Can't create handler inside thread that has not called Looper.prepare()" Aug 31 14:33:17 Any ideas? Aug 31 14:34:09 Gaz`: Yeah, currently regretting Android Studio. I know it is still in early stages, but it has been nice up until now Aug 31 14:35:07 Zurfer: this is not how to use AsyncTask Aug 31 14:35:56 Well, I'm trying to learn how to use AsyncTask Aug 31 14:37:16 My code should be a straight forward, but why is it not working? Aug 31 14:38:33 doInBackground is not for Foreground.. for a start Aug 31 14:39:51 How do I get a view to overlay other views? Aug 31 14:40:07 and how would I go about positioning it ;S Aug 31 14:40:28 CocoStorm: draw a picture of what you want Aug 31 14:41:33 I need to do some work that can make the foreground/UI hang/freeze. I therefore want a thread to do the work. The thread needs to update the UI (adding rows to a tablerow) inside the loop. How would you do that? Aug 31 14:41:41 Napalm, click explore events in the drawerlayout then on the top where it says who's going out, the second picture is clickable and when clicked that view/shape appears underneath. That's what I'm trying to achieve https://www.flinto.com/p/b28e2a1b Aug 31 14:42:49 Zurfer: you do all your background work and pass your result back, then onPostExecute makes the changes to the UI Aug 31 14:43:08 Napalm, did you find it? Aug 31 14:44:31 CocoStorm: yup i see it Aug 31 14:46:12 CocoStorm: there are several ways to achieve that type of effect.. is it specially for access to contacts? Aug 31 14:46:49 Napalm, I just want the effect for now, so the simpler the better =] Aug 31 14:48:06 well the old-skool method is to create a Window and position it, but this has negative effects on the performance with HW accel.. so its probably better to achieve this with View's alone.. athough a really simply method is to use an Activity Aug 31 14:50:14 CocoStorm: ^ Aug 31 14:50:42 hm, won't activity stop execution of underlying activity_ Aug 31 14:51:11 yes, but probably not in the way you think Aug 31 14:51:17 Napalm: If I let the doInBackground do the work and pass the result back to onPostExecute, would it not appear as if the app isn't doing anything for the duration of the loop and suddenly there will be X number of rows added to the table? Aug 31 14:51:17 one moment, i'll do a quick example Aug 31 14:51:35 Napalm, basically I was having a similar issue Aug 31 14:51:52 Zurfer: then you use on onProgressUpdate Aug 31 14:51:54 how to create a floating view above the activity that doesn't interfere with execution Aug 31 14:52:01 "chatheads" or whatever style Aug 31 14:52:14 one moment Aug 31 15:02:20 I have added a loop in doInBackground that contains "publishProgress(null);" and the "onProgressUpdate" line but it does not seem like "onProgressUpdate" is being called: Aug 31 15:02:21 protected void onProgressUpdate() { tvStatus.setText(tvStatus.getText() + "\n" + new Date() + ": " + "onProgressUpdate"); } Aug 31 15:02:57 Zurfer: post your code, because that operation signature is incorrect Aug 31 15:03:26 Hi. I created a ContentProvider in my app and now I see that under Apps->Running, my app is using 50+ MB. The provider only deals with a small number of text rows. Is this normal? Aug 31 15:06:06 Napalm: new post: http://pastebin.com/NtqYVFfy Aug 31 15:06:14 umanx: cant you answer that yourself.. comment out your ContentProvider and check to see what the memory usage is like Aug 31 15:07:02 Zurfer: just wait, im sorting this other example out Aug 31 15:07:25 Napalm: Ok. Let me know when you are ready. Aug 31 15:10:18 is this document obsolete as fsck or am I missing something: https://developers.google.com/cloud/samples/mbs/getting_started Aug 31 15:10:24 In the upper left, locate the two small dots under the sample app icon, and click the second dot to switch to the Mobile Backend sample: Aug 31 15:10:34 what "sample app icon" 0.0 Aug 31 15:11:10 hmm the galaxy tab2 is giving out of memory scaling a bitmap, but no other devices are, shouldnt this thing be loaded with ram? altho i know it has a high res Aug 31 15:13:50 Gaz`: bitmap operations have little to do with ram size Aug 31 15:15:10 scale the bitmap appropriately and set the correct options flags (especially: inScale, inSampleSize, inPurgeable) Aug 31 15:16:50 ah yes Aug 31 15:17:21 thx gemidjy Aug 31 15:23:32 Is there another way to get a working Google Books app besides though Google Play? Aug 31 15:27:21 Hi, anyone here uses Maven for android projects? and got lots of knowledge on maven ? Aug 31 15:30:15 I'm wondering how to add the classes.jar - located into an archive (.aar) which is present as a dependency - from every aar dependency into the classpath during the compilation of the project Aug 31 15:33:16 Shusshu, need aar support Aug 31 15:33:25 can't just add classes. jar Aug 31 15:33:58 i'm working on the aar support Aug 31 15:34:17 but there is one thing that is not working just yet and is related to this classes.jar Aug 31 15:34:45 https://github.com/jayway/maven-android-plugin/pull/228 Aug 31 15:35:03 hey, anyone here have the new DROID MAXX? Aug 31 15:35:12 I can't find the drivers for it Aug 31 15:35:25 the Motorola ADB Interface drivers Aug 31 15:36:07 pfn any knowledge on maven plugin ? Aug 31 15:40:21 anyone experienced in google cloud console? Seems like rocket science to figure out how things work there :/ Aug 31 15:42:21 Shusshu, no, I dislike maven Aug 31 15:43:06 pitty Aug 31 15:43:31 Shusshu, do like apklib support, unpack then add the classes. jar Aug 31 15:44:05 well the thing is normally you are supposed to define the dependency in the pom.xml Aug 31 15:44:43 but because the classes.jar is in an .aar it is ignored from the classpath Aug 31 15:45:02 so I have 2 solutions: Aug 31 15:45:16 ask #maven or ##java Aug 31 15:45:26 nobody on maven Aug 31 15:45:50 Google mojo add jar to claspath Aug 31 15:46:10 * pfn has aar support in his build :p Aug 31 15:46:29 link? Aug 31 15:48:30 https://github.com/pfn/android-sdk-plugin/blob/master/src/tasks.scala#L81 Aug 31 15:50:38 so you build android apps only in scala? Aug 31 16:09:05 CocoStorm: Mavrik: you guys still around? Aug 31 16:16:01 I want to build a C library (libjpeg) for android. I'm not sure how to start Aug 31 16:22:45 Napalm, yep i'm here Aug 31 16:24:08 So first of all, I need to configure the library by writing a header. For example, on windows, you need to typedef unsigned char boolean Aug 31 16:25:11 the library comes with an executable that you can run, and it will generate an appropriate header file Aug 31 16:25:19 but I'm not sure how to run that on my phone Aug 31 16:42:50 Napalm, we were :P Aug 31 17:06:53 Shusshu, I do both java and scala for android, but I I build only with sbt Aug 31 17:08:20 pfn: How much of a performance hit is scala? Aug 31 17:08:39 negligible Aug 31 17:11:21 pfn: Can you see why onProgressUpdate() isnt triggered?: http://pastebin.com/NtqYVFfy Aug 31 17:12:37 because you're missing @Override Aug 31 17:14:45 Hmm.. why does "onPreExecute" get executed without "@Override"? The method "onPreExecute" is the only one that fires. Aug 31 17:15:13 onProgressUpdate and onPostExecute do not fire. Aug 31 17:15:23 Eclipse disagrees with @Override Aug 31 17:15:31 guess whty Aug 31 17:15:43 because you did it wrong Aug 31 17:15:57 override makes sure you do it *right* Aug 31 17:16:33 It says "The method onProgressUpdate() of type MyAsyncTask must override or implement a supertype method" when I add @Override above "protected void onProgressUpdate()" Aug 31 17:16:58 understand what that means then come back Aug 31 17:22:26 * pfn ride home & Aug 31 17:38:55 Mavrik: CocoStorm: https://github.com/slightfoot/android-popup-info Aug 31 17:43:14 pfn: I found references to Java JDK Compiler being at the wrong compliance level but the fix (in the Project settings) did not help. Aug 31 17:46:20 Mavrik: CocoStorm: ive added an example image of it in action.. if you cant be bothered compiling Aug 31 17:46:26 https://raw.github.com/slightfoot/android-popup-info/master/example.png Aug 31 17:46:50 wow Aug 31 17:46:53 you get a cookie :) Aug 31 17:47:17 double coch-chip or i redact my code :D Aug 31 17:47:18 haha Aug 31 17:47:27 *choc Aug 31 17:48:33 ;) Aug 31 17:48:37 Hi Aug 31 17:48:45 A question Aug 31 17:48:53 Napalm, hmm, so you just basically create an activity and put it on top Aug 31 17:48:58 yup Aug 31 17:48:58 What is the best place to store state of big NDK games? Aug 31 17:49:01 Napalm, oh wow o.O thanks! Aug 31 17:49:11 CocoStorm: is that what you were trying to achieve? Aug 31 17:49:14 by "state" I mean entire application life Aug 31 17:49:15 Napalm, YEH Aug 31 17:49:19 *srry for caps Aug 31 17:49:20 lolz Aug 31 17:49:21 and if I get this correctly, Transluscent teme will make sure the background activity won't pause_ Aug 31 17:49:33 in the activity? Aug 31 17:49:37 SiPlus, state as in persistent state? Aug 31 17:49:38 but it can be destroyed on low memory Aug 31 17:49:47 Mavrik, everything in the game Aug 31 17:49:58 thats why you back your state by persistent storage Aug 31 17:50:01 like disk Aug 31 17:50:08 aka a file or database Aug 31 17:50:12 mhm Aug 31 17:50:26 SiPlus, well if you have NDK stuff you're probably holding your state in C structures right? Aug 31 17:50:26 Napalm, yes, but where do I save non-critical things? Aug 31 17:50:42 well if its in NDK.. you could use global vars Aug 31 17:50:43 Mavrik, not in structures, everywhere in the libraries Aug 31 17:51:04 but global vars are preserved across multiple runs Aug 31 17:51:20 what I need is to make something like applications on Windows Aug 31 17:51:28 I mean Aug 31 17:51:38 the game isn't closed until explicitly closed by the user Aug 31 17:51:59 so it isn't restarted if the system kills the activities to reclaim memory Aug 31 17:52:18 are foreground services with invisible (or, as of API 18, "app is running") notification okay for games? Aug 31 17:52:37 there's almost no communication with the activity needed Aug 31 17:52:38 SiPlus: hang on a moment, what is the big deal here? Aug 31 17:52:57 Napalm, I'd like to know where do big games like Shadowgun and Asphalt 7 store their stuff Aug 31 17:53:21 arg, i just said Aug 31 17:53:27 I haven't seen them being randomly restarted when switching back to them after pressing home button Aug 31 17:53:34 if it needs to be persisted then its saved to file.. if not, its just in memory Aug 31 17:53:46 Napalm, the game engine support game saves Aug 31 17:53:52 but Aug 31 17:53:59 there are multiplayer and things that are not saved Aug 31 17:54:03 such as the GUI Aug 31 17:54:18 the engine is huge Aug 31 17:54:36 is it common for big games to run in foreground services? Aug 31 17:54:55 if your app is killed, its killed Aug 31 17:55:04 it matters not if your playing about with services or not Aug 31 17:55:21 foreground services are killed only at a last resort Aug 31 17:55:26 like foreground activities Aug 31 17:55:39 exactly my point Aug 31 17:55:47 your worried about your game loosing its state Aug 31 17:55:57 well its going to anyway, if its not saved to disk Aug 31 17:55:59 I'm porting from Windows Aug 31 17:56:13 good for you Aug 31 17:56:16 lol Aug 31 17:56:22 in Windows, there is explicit start and end of an app Aug 31 17:56:32 and you never get that with Android Aug 31 17:56:36 congrats Aug 31 17:56:57 when does Android initialize and destroy globals? Aug 31 17:57:24 what you want to do is handle it in your Games activities onCreate/onRestoreInstanceState and onDestory Aug 31 17:57:41 the stage is HUGE Aug 31 17:57:45 there are tens of subsystems Aug 31 17:57:58 so it's not just a single bundle Aug 31 17:58:06 globals are used very often in the subsystems Aug 31 17:58:08 so, add another stage Aug 31 17:58:14 to the activity pipeline Aug 31 17:58:29 it's impossible to save and restore everything Aug 31 17:58:29 have those events spin off some code in yours Aug 31 17:58:31 it' Aug 31 17:58:34 s possible Aug 31 17:58:45 but it will require complete rework of the engine Aug 31 17:59:17 which is huge Aug 31 17:59:58 Anyone know why the onProgressUpdate() isnt being called? I added "@Override" above it but it gives me an error: The method onProgressUpdate() of type MyAsyncTask must override or implement a supertype method Aug 31 18:00:18 Zurfer: ok, hang on a sec Aug 31 18:00:37 Zurfer: this is your code right.. http://pastebin.com/NtqYVFfy? Aug 31 18:00:39 Zurfer: this is your code right.. http://pastebin.com/NtqYVFfy Aug 31 18:00:48 Yep Aug 31 18:09:04 How can I change formatting of the sentence in text view ? Aug 31 18:09:14 bluesm_: as in? Aug 31 18:09:19 make stuff bold? Aug 31 18:09:37 Napalm: For example. Aug 31 18:09:50 Napalm: Or dimmed. Aug 31 18:10:07 Napalm: I try to reproduce this behaviour Aug 31 18:10:09 Napalm: http://twigit.pl/twigit2.0/ Aug 31 18:10:40 Which is trivial in the html + JS because I just "span" my sentence and then add formatting to the particular Aug 31 18:12:35 SpannableStringBuilder blah = new SpannableStringBuilder("this is bold"); blah.setSpan(new StyleSpan(Typeface.BOLD), 8, 12, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); myTextview.setText(blah); Aug 31 18:12:41 bluesm_: ^ Aug 31 18:13:19 bluesm_: you can add formatting to string resources free of charge Aug 31 18:13:46 bluesm_: this is bold and then use getResources.getText(R.string.blah); Aug 31 18:19:01 Napalm: Anything? Aug 31 18:20:59 hi, is there easy way to emulate multitouch in emulator (BlueStacks)? need to emulate two fingers Aug 31 18:22:14 when working with a hashmap that holds values (such as waypoints/markers), is it best to hold it in the Main Activity and allow fragments to use intents to affect it, or hold it as an object that is created initially and passed to each fragment, thus causing a change in one fragment to show in both fragments? Aug 31 18:23:02 Currently I create it in a class extending the application, and then modify that value directly in both fragments Aug 31 18:25:03 Napalm: Does the "blah" remain ability to change style even after inserting it to TextView ? Aug 31 18:25:24 Napalm: You know. I need to change style dynamically. Aug 31 18:25:28 yes Aug 31 18:25:37 what do you mean exactly? Aug 31 18:25:53 Napalm: Exactly this behaviour: http://twigit.pl/twigit2.0/ Aug 31 18:25:59 hello guys Aug 31 18:26:47 can anyone tell me why webview doesn't encode proprely the text? http://i.imgur.com/0EbaI1C.png same code in .html opened with chrome is well encoded Aug 31 18:27:04 bluesm_: yes, you can do that exact thing really easily on Android Aug 31 18:28:03 Napalm: Without DOM ? Aug 31 18:28:17 yes Aug 31 18:28:46 Napalm: (try to click the word) there is functionality that add the word inside text after you click one of the words Aug 31 18:29:04 bluesm_: yes Aug 31 18:29:14 as i said, you can do exactly this Aug 31 18:29:41 Napalm: Ok. I will try :) Thanks for time :) Aug 31 18:37:12 is there a better option that I am not thinking about in connecting a marker with information on that marker as I am doing with a HashMap? Specifically, I need to also keep track of the order of which the marker is created, otherwise, I can just make that part of the information stored in the hashmap? Aug 31 18:48:00 Napalm: Could you give me a hint, how to add "click" event on every word in the TextView ? Aug 31 18:48:32 bluesm_: http://developer.android.com/reference/android/text/style/ClickableSpan.html Aug 31 18:53:51 Zurfer: still there? Aug 31 19:01:18 Zurfer: well when your back.. heres your example https://github.com/slightfoot/android-asynctask-correctly Aug 31 19:08:46 bluesm_: i feel like doing a bit of code that does that highlighty stuff.. want my input? Aug 31 19:11:44 under: yes, you have several possible causes. your source file is not encoded as UTF-8. your StringEscapeUtils is not maintaining the encoding. or its your loadData Aug 31 19:11:47 Napalm: If you want to help me :) Sure :) Aug 31 19:12:09 under: just checked the docs.. its your loadData.. the last parameter of loadData is not what you think Aug 31 19:12:31 under: http://developer.android.com/reference/android/webkit/WebView.html#loadData%28java.lang.String,%20java.lang.String,%20java.lang.String%29 < read 4th paragraph and it tells you how to fix your issue.. next time .. read the docs :P Aug 31 19:12:38 bluesm_: yay! Aug 31 19:13:10 Napalm: ? Aug 31 19:13:28 bluesm_: so are you simply trying to replicate this interface in Android? Aug 31 19:14:15 bluesm_: Right. Aug 31 19:14:56 Napalm: I'd like to make "mobile" version of this. :] Aug 31 19:15:04 so is this suppose to spin load for ever? Aug 31 19:15:17 Napalm: It Aug 31 19:15:29 ? Aug 31 19:15:34 Napalm: It's servers bandwidth problem I suspect. Aug 31 19:15:52 so i click on a word.. then click + Aug 31 19:15:55 what is suppose to happen? Aug 31 19:16:18 Add word to the database (it would be Ajax call) Aug 31 19:16:25 Napalm: ^ Aug 31 19:16:42 oopsy Aug 31 19:16:49 i might have been pressing plus and plus Aug 31 19:16:49 lol Aug 31 19:17:13 Napalm: It's not implemented yet in that version Aug 31 19:17:15 so is this like a crowd-translate app? Aug 31 19:17:31 Napalm: But now, it's irrelevant, I need the basic behaviour like this. Aug 31 19:17:34 With audio. Aug 31 19:17:38 nice Aug 31 19:17:50 congrats on a coolo idea Aug 31 19:17:55 want sound in the mobile version aswell? Aug 31 19:18:01 Napalm: It's more like helping people to learn english. Aug 31 19:18:12 Napalm: Yes. Aug 31 19:18:33 Napalm: But say, I need to focus on the formatting... Aug 31 19:18:39 bluesm_: see PM Aug 31 19:21:15 Yeah I am looking to code in Python for android because java sucks Aug 31 19:24:33 whats a good smartphone to get from a developer's perspective/ Aug 31 19:24:52 JesusFreke http://ftw.usatoday.com/2013/08/unicycle-football-is-real-and-it-is-spectacular/ Aug 31 19:25:11 RustyShackleford: dev doesn't even need one :P Aug 31 19:25:58 g00s: hah, yeah. I saw that the other day Aug 31 19:26:14 even *I* think that is totally insane :) Aug 31 19:27:29 :D Aug 31 19:28:21 There's no way any of the players escape that without tons of scrapes bumps and bruises Aug 31 19:29:45 on the topic of weird things Aug 31 19:29:46 http://www.youtube.com/watch?v=HSpuVsLnl1k Aug 31 19:29:57 I discovered that band earlier this week Aug 31 19:30:07 acappella... metal. Aug 31 19:35:14 JesusFreke heh, different :) Aug 31 19:35:51 i think master of puppets was the 2nd album i owned, iron maiden live after death was first Aug 31 19:36:09 my first cd was yanni's live at the acropolis. hah Aug 31 19:36:41 .. Aug 31 19:37:13 goddamnit Aug 31 19:37:23 friggin' internet providers are all a massive pain to work with Aug 31 19:37:24 JesusFreke lol Aug 31 19:37:27 can't upgrade to uverse today Aug 31 19:37:41 and I couldn't get ddwrt to route over my tether Aug 31 19:37:45 how painful... Aug 31 19:43:12 Im trying to move a project from eclipse to android studio. In eclipse, i export -> generate Gradle files. In android studio, i import project -> build.gradle. But im getting an error that i cannot import the project because "Task 'wrapper' not found in root project 'java'." ? What am i doing wrong? Aug 31 19:43:55 This is a library project, and when im importing i use the gradle wrapper Aug 31 19:45:57 i dont understand the gradle wrapper Aug 31 19:46:22 whats its meant for Aug 31 19:47:21 Its not like i have a deep personal connection with the wrapper, im just selecting that option because its what the docs says you should do Aug 31 19:49:05 well, you would need this if you wanted to use it Aug 31 19:49:07 task wrapper(type: Wrapper) { Aug 31 19:49:07 gradleVersion = '1.4' Aug 31 19:49:07 } Aug 31 19:49:17 or whatever. i think its silly Aug 31 19:54:21 Hmm. Isnt it strange that the "generate gradle build files" export option doesnt actually work? I shouldn't have to manually modify it afterwards Aug 31 19:55:03 i just tried it though, and it tells me im not supposed to use such an old version. If i change it to 1.6, i get a new error: "Could not create plugin of type 'LibraryPlugin'. org/gradle/tooling/provider/model/ToolingModelBuilderRegistry" Aug 31 20:03:05 Guess ill just keep using eclipse till android studio becomes a bit more mature Aug 31 20:03:11 Any1 know about the Amazon apps store Aug 31 20:06:49 liefer, Android Studio is mature enough and runs way better than eclipse Aug 31 20:06:57 just gradle is unfinished POS at the moment Aug 31 20:07:04 use another build system and you're fine Aug 31 20:07:07 use intellij ;) Aug 31 20:07:20 they're practically identical :) Aug 31 20:07:46 not quite, but yeah... I still won't use android studio over idea though Aug 31 20:07:46 "Its completely mature.... except for the parts thats not" :) Aug 31 20:08:17 liefer, hmm? Aug 31 20:08:25 Any1 know about the Amazon apps store Aug 31 20:08:29 it works perfectly when you use maven or IDEA build system Aug 31 20:08:41 liefer, instead of a build system that's versioned as pre-alpha Aug 31 20:09:07 Zharf, I used both and there's practically no differect except for some artwork Aug 31 20:09:14 that is if you compare IDEA13 and AS Aug 31 20:09:16 But gradle is whats officially recommended Aug 31 20:09:31 liefer, well go suffer with Eclipse then. Aug 31 20:09:34 jesus. Aug 31 20:09:49 android studio is just an android focused intellij Aug 31 20:09:59 there's no reason to switch to/from eclipse, unless you want to specifically use android studio Aug 31 20:10:07 just because there's android studio doesn't mean adt will go away... I think Aug 31 20:10:12 mhm Aug 31 20:10:25 and the comparison is eclipse :: intellij, adt :: android studio Aug 31 20:10:27 I can either suffer with eclipse, or i can suffer with going against/outside the documentation and end up having a completely un-testable setup that may or may not work Aug 31 20:10:34 jesus, dont take it so personal mate Aug 31 20:11:01 mhm, I doubt they'll kill ADT Aug 31 20:11:13 pfn: i *like* android studio. A lot. But i really do need this project Aug 31 20:11:17 Eclipse does run noticably slower tho Aug 31 20:11:23 liefer, then you can use intellij instead of android studio Aug 31 20:11:39 liefer, intellij works with eclipse android projects just fine, it even has an eclipse import Aug 31 20:11:48 mhm Aug 31 20:11:55 AS can do Eclipse import too Aug 31 20:12:02 I no longer have any faith in import/export actually working, but i guess i could give it a try Aug 31 20:12:02 of course AS can, it's intellij Aug 31 20:12:03 :p Aug 31 20:12:12 ;) Aug 31 20:12:29 * pfn shrugs Aug 31 20:12:35 my projects work 100% with sbt and intellij :p Aug 31 20:12:39 no gradle, no maven, no ant bullshit Aug 31 20:12:40 :p Aug 31 20:12:46 AS cannot actually import eclipse projects, no. Its a myth Aug 31 20:13:03 maven <3 Aug 31 20:13:14 liefer, you need the eclipse plugin in intellij Aug 31 20:13:28 if I could do mvn ~do-shit, maybe I'd use it more often Aug 31 20:13:54 ^^ Aug 31 20:13:58 * pfn goes back to writing his keepass share Aug 31 20:14:32 https://github.com/bpellin/keepassdroid/pull/38 Aug 31 20:14:32 Is there a way to automatically attach sources for maven dependencies in Android Studio? Aug 31 20:14:36 this gradle business is just wasting everyone's time -_- Aug 31 20:14:38 lets see if bpellin will take the PR Aug 31 20:14:49 f2prateek, probably? Aug 31 20:14:49 f2prateek, you click "download sources" in Maven window and it'll grab them from repo if they exist Aug 31 20:14:55 pfn who is bpellin ? Aug 31 20:15:04 oh Aug 31 20:15:05 g00s, brian pellin, dude who put out keepassdroid Aug 31 20:15:15 I assume it's 'brian' Aug 31 20:15:17 * pfn shrugs Aug 31 20:15:24 damn, dude's gravatar is ugly... Aug 31 20:15:50 needs more pixels Aug 31 20:15:59 Mavrik have you had trouble with the gradle stuff yourself? when i go to the google+ developer/tools page, its a bloodbath :| Aug 31 20:16:13 g00s, I tried to migrate couple of project Aug 31 20:16:16 wanted to stab people, stopped Aug 31 20:16:22 still on Maven :P Aug 31 20:16:26 :) Aug 31 20:16:35 I wish google would release google apis x86 images Aug 31 20:16:41 mostly comes down to terrible buginess of AS support Aug 31 20:16:53 and the fact most libs aren't available as .aars but they are as .apklibs Aug 31 20:16:56 i liked maven better yeah. and i had tons of frustration with maven over the years Aug 31 20:17:02 and repackaging them is just a pointless waste of time Aug 31 20:17:13 I'll switch as soon as I'll see first benefit of it. Aug 31 20:17:34 maven was fine imho, its just the plugins can be problematic Aug 31 20:17:38 Right now maven does just what I want and it's actually supported by pretty much anything that works with Java ecosystem, including CI servers etc. Aug 31 20:17:39 if gradle could do gradle ~assembly, maybe I'd consider using it, too Aug 31 20:17:41 and it were fast Aug 31 20:17:57 pfn, yeah, I wish for those images as well. Maybe even more featured emulator… Aug 31 20:18:11 been using Genymotion myself to mitigate that, but that one has it's own problems Aug 31 20:18:16 I'm trying to build something with NDK in eclipse Aug 31 20:18:17 I don't like genymotion Aug 31 20:18:22 it doesn't really work in my setup Aug 31 20:18:29 first of all, is there some project template I can select? Aug 31 20:18:30 because I have virtualbox already running as another user Aug 31 20:18:52 RustyShackleford, not really, you need to create Android.mk manually Aug 31 20:19:04 Mavrik it always brings me back to this; why didn't google just do what genymotion did? it seems like they half ass the tools; but i'm thinking there is a good reason - they see all this as a stopgap until something else and don't want to invest Aug 31 20:19:16 i created jni/example.c. However, code completion is complaining about missing headers, undefined symbols, etc Aug 31 20:19:24 hello Aug 31 20:19:27 maybe chromeOs, whatever Aug 31 20:19:28 Mavrik: thanks Aug 31 20:19:35 g00s, I don't get that either, they already use KVM images, don't know why their images are missing so much Aug 31 20:20:01 RustyShackleford, you'll probably have to tell CDT plugin where to look for headers Aug 31 20:20:04 also, does eclipse rebuild my native code? or do I need to run ndk-build always? Aug 31 20:20:19 you'll have to run ndk-build always Aug 31 20:20:26 i want to ask you if it is possible to lock programatically the orientation for all activities in an application Aug 31 20:20:27 there is an option to specify a command to rebuild code Aug 31 20:20:36 so use that, replace "make" with ndt-build Aug 31 20:20:53 resu01, you'll have to add flag to each activity in manifest for permanent solution Aug 31 20:20:55 there's no global flag Aug 31 20:21:56 g00s, I just have a feeling they don't really have enough people on the Android team to really polish the dev tools Aug 31 20:22:35 Mavrik that begs the question, why tho Aug 31 20:22:44 i always got the impression they were understaffed Aug 31 20:22:47 including Play Aug 31 20:23:09 Mavrik: the problem is that in the main activity i check if the device is tablet or not. In case it is tablet i want to set the orientation as landscape only and load different layouts. In other case i want to set the orientation as portrait Aug 31 20:23:20 i was reading part of this may have been Andy's Culture. they were pretty closed off from the rest of google for a while Aug 31 20:24:20 i always like looking behind the curtain not just at the technology, but the culture that produces it Aug 31 20:24:24 i liked this http://www.theverge.com/2013/8/30/4675746/new-faces-of-android-the-inside-story-of-googles-management-shuffle Aug 31 20:24:56 the love triangle business is awesome Aug 31 20:25:03 * pfn snickers Aug 31 20:25:10 resu01, hrm, I doubt there's a good solution :/ Aug 31 20:25:10 ha, HR must have blown a gasket Aug 31 20:25:11 leave it to a 25yr old girl to bring down the titans, heh Aug 31 20:25:21 hehe Aug 31 20:25:29 resu01, use a base activity class that you extend from Aug 31 20:25:29 pfn, is that certanly true? Aug 31 20:25:45 I dunno, but that's what the news snippets I've seen said Aug 31 20:25:58 btw, guys, do we have any documentation on how Android decides to pause activity? Aug 31 20:26:02 nobody knows if he left because of that, but the fact that it happened is kinda weird from a HR perspective Aug 31 20:26:10 Mavrik, when it's not the top-most window Aug 31 20:27:09 pfn, there are cases when activities run even when covered with other windows Aug 31 20:27:15 (e.g. chat-heads etc.) Aug 31 20:27:19 hi guys Aug 31 20:27:28 Mavrik, chat-heads aren't activities Aug 31 20:27:34 Mavrik, they're just an overlay system dialog window Aug 31 20:27:42 i need to download the android suite or whatever its call these days...and start development in earnest Aug 31 20:27:46 pfn, yeah Aug 31 20:27:57 pfn, but you said: "when it's not the top most window" Aug 31 20:28:05 the chatheads are top-most window, then comes the activity Aug 31 20:28:13 theoretically i have only 3 weeks and want to leverage of being an experienced Java developer, and once a prfessional BB OS developer Aug 31 20:28:15 LINK? Aug 31 20:28:21 Mavrik, chatheads aren't an activity, though Aug 31 20:28:30 pfn, and? Aug 31 20:28:32 Mavrik, when you tap on the chathead, if an activity is started, the underlying activity will be paused Aug 31 20:28:38 pfn, you said "window"? Aug 31 20:28:47 so it's not about top-most window? Aug 31 20:28:49 Mavrik, topmost window in the activity stack Aug 31 20:28:54 there Aug 31 20:28:56 hi Aug 31 20:28:57 activity window? or any window? Aug 31 20:29:07 activity window Aug 31 20:29:26 huh… just checked Aug 31 20:29:37 transluscent activities don't always pause underlying activities either Aug 31 20:29:50 translucent activities pause the underlying Aug 31 20:30:01 they have everytime I've used it Aug 31 20:30:27 hmm, that's not what I got from another source and a demo. Aug 31 20:30:37 see, that's why I'm asking if we have any doc on that -_- Aug 31 20:30:40 this http://developer.android.com/sdk/index.html still makes a reference to Eclipse! i thought the new IDE was supposed to be something from Jetbrains? Aug 31 20:30:46 Mavrik, activity lifecycle is the doc on it Aug 31 20:30:46 ... Aug 31 20:31:20 which doesn't help me much when I'm not always dealing with activities and the behaviour is inconsistent with wording Aug 31 20:31:30 * pfn shrugs Aug 31 20:31:33 seems to work consistently for me Aug 31 20:32:32 also I've noticed different behaviour when using multi-window config on TouchWiz devices Aug 31 20:32:56 multi-window is weird Aug 31 20:33:02 Any1 know about the Amazon apps store Aug 31 20:33:06 * pfn goes back to hax0ring on keepass share Aug 31 20:35:07 It's a store for apps.. I think Amazon made it Aug 31 20:35:29 I know what it is Aug 31 20:35:50 (If you have a question, ask it.. Don't just try and dupe people into talking to you by asking an overly broad question) Aug 31 20:36:48 I want help with finding my apps on the amazon app store on a tablet Aug 31 20:42:39 why is LLckfan such a troll Aug 31 20:42:45 why hasn't someone just klined hi m for us Aug 31 20:46:33 * pfn ponders just having a global Handler that he posts shit to Aug 31 20:46:55 async { foo }; ui { bar } Aug 31 20:47:02 that'd be pretty convenient Aug 31 20:47:03 just use a global variable, I know you want to. Aug 31 20:47:21 I do already :p Aug 31 20:47:31 right now, I call it UiBus.post { ... } Aug 31 20:47:56 http://pastie.org/8287167 Aug 31 20:47:57 yeees, join the dark side, give into temptation of global state Aug 31 20:48:21 it's android, it's littered with global state Aug 31 20:55:46 what's the best way to decrypt an AndroidManifest.xml file from an APK in Java? Aug 31 20:56:11 I'd rather not rely on an external tool like aapt, because that reduces the portability of my program Aug 31 20:59:08 it's not encrypted Aug 31 20:59:11 it's just binary packed Aug 31 21:00:45 oh Aug 31 21:02:54 figure out the unpacking scheme and unpack it yourself Aug 31 21:08:13 reading through the strtod code, or java's FloatingDecimal class, is very humbling Aug 31 21:09:33 this? http://www.docjar.com/html/api/sun/misc/FloatingDecimal.java.html Aug 31 21:09:54 Xabster yeah Aug 31 21:10:10 i find it ugly java code, not bad or wrong or anything, but it looks like C or C++ in many places and isn't using normal idioms of java because it needs to added performance Aug 31 21:10:17 complex, indeed Aug 31 21:10:40 not something i'd enjoy writing at all Aug 31 21:10:52 well, its mostly using David Gay's algorithm Aug 31 21:11:03 lots of corner cases Aug 31 21:11:06 hmm, that kind of code is most enjoyable to write Aug 31 21:11:09 is there a better option then hashmap in regards to keep a keyed list of items, but remember the order of the list so you can reference the specific ordered item. I need a list of items that can be used for markers on a map and a list fragment. Markers are listed by the marker (thus hashmap), but the list fragment handles by an ordered list Aug 31 21:11:17 not talking about that, i'm talking about so many low level manipulations and if-elses an mass Aug 31 21:11:22 most enjoyable? Aug 31 21:11:25 epsilonorion LinkedHashMap Aug 31 21:12:00 solved problems aren't really enjoyable to write... Aug 31 21:12:07 maybe as an occasional exercise Aug 31 21:12:17 it can be enjoyable to write it better surely Aug 31 21:12:37 epsilonorion, there's LinkedHashMap Aug 31 21:12:54 g00s: I saw that and was trying to check it out, but maybe I misunderstood. Doesn't the order of the list change when you access an item Aug 31 21:13:03 no Aug 31 21:13:33 <|0xD34D|> I think that's the HeisenbergHashMap Aug 31 21:14:20 in my case i have a char[] like { '0' , '.' , '1', '2' } and need to convert this to a double efficiently, but i don't want to allocate a string and then call Double.parseDouble(). i have 10's of thousands of numbers to parse, just this would be a string and FloatingDecimal allocation Aug 31 21:15:00 g00s, char to int is trivial and very fast, int to double as well Aug 31 21:15:02 go that way Aug 31 21:15:07 but a naive approach leads to all kinds of weird rounding errors Aug 31 21:15:18 double is bound to have all kinds of rounding errors Aug 31 21:15:43 Mavrik yeah, i use the common trick so far. actually works best for plain floats, since the accuracy is so poor :P Aug 31 21:15:53 ;) Aug 31 21:15:55 but plain floats get like 6-7 sig figs Aug 31 21:15:58 IEE754 Aug 31 21:15:59 we all love it Aug 31 21:16:09 java doesn't even follow that very well Aug 31 21:16:11 there's another E in there somewhere. Aug 31 21:16:12 g00s, rounding and string stuff can be avoided with BigDecimal constructor Aug 31 21:16:13 fucking java Aug 31 21:16:38 Xabster i'd allocate a BigDecimal class for every number to parse :P Aug 31 21:16:38 allocate all the things Aug 31 21:16:51 BigDecimal being immutable, all that Aug 31 21:16:55 yeah, you would Aug 31 21:17:34 so i settled on this guy's code, but it has me mystified too Aug 31 21:17:35 http://stackoverflow.com/questions/7332558/efficient-strtod-in-java Aug 31 21:17:42 not the parsing, thats easy Aug 31 21:18:11 http://code.google.com/p/core-java-performance-examples/source/browse/trunk/src/main/java/com/google/code/java/core/parser/ByteBufferTextDoubleReader.java Aug 31 21:18:16 asDouble() … hmm Aug 31 21:19:08 I am also missing how one may use a linkedhashmap to actually get the index (position in map) based on the key Aug 31 21:19:20 do you think eclipse will run okay in a Virtualbox VM? Aug 31 21:19:20 epsilonorion oh , you want that Aug 31 21:19:30 epsilonorion for that, you will need a counted btree Aug 31 21:19:36 I've got lots of memory and an SSD Aug 31 21:19:50 its only meant to be iterated in order Aug 31 21:19:54 not positionally accessed Aug 31 21:21:14 RustyShackleford, it ran fine for me Aug 31 21:21:25 g00s: I think i need that. I am not actually sure. I am trying to find a solution to handle the new google maps api since in my original code I used ArrayLists. Basically, I have a map that has multiple markers. Each marker also has a object class that includes information for the marker (technically Waypoint Info). Any time the list is modified or changed it should update a ListFragment. This means occasionally refer Aug 31 21:21:31 in the list, array, map, or whatever Aug 31 21:21:45 Xabster, can you use USB debugging? Aug 31 21:21:50 or is it painfully slow? Aug 31 21:21:56 for android stuff? Aug 31 21:22:04 This communication can also go the other way, where the ListFragment is modified or an item is deleted and should modify the marker/waypoint list Aug 31 21:22:05 eclipse would run fine in a vm Aug 31 21:22:07 no clue, didn't try, but i expect it to work flawlessly Aug 31 21:22:10 why would you run it in a vm, though... Aug 31 21:22:31 cause I'm using windows. Maybe the NDK would be easier to setup/use? Aug 31 21:22:38 eclipse already runs in a (java) VM Aug 31 21:22:55 RustyShackleford: NDK easier where? Aug 31 21:22:56 Basically, accessing the list by "marker" is nice for working with Google Maps, but not so much when working with ListFragment Aug 31 21:23:12 Xabster, on linux, as opposed to windows Aug 31 21:23:24 RustyShackleford, ndk works perfectly fine on windows... Aug 31 21:23:36 why would you need to install linux to work with ndk... Aug 31 21:23:46 i don't know about the NDK or how easy it is but ubuntu/eclipse will both run fine in a VM if you let it have enough mem and cpu and gfx access Aug 31 21:24:03 all 3 are important Aug 31 21:24:03 i don't really want to install cygwin Aug 31 21:24:09 especially if you run unity desktop Aug 31 21:24:09 so don't install cygwin Aug 31 21:24:13 I usually install git + mingw Aug 31 21:24:29 mingw included with git should be enough to run ndk Aug 31 21:24:31 what do you need thats in cygwin? Aug 31 21:24:34 make? Aug 31 21:24:52 hmm, maybe you do need make, you can get that from mingw separately Aug 31 21:25:01 and you'd rather install a vm than install cygwin? Aug 31 21:25:03 * pfn boggles Aug 31 21:25:13 g00s: any ideas on that, or do you think the counted btree is the option? Aug 31 21:25:17 heh, I already got it installed on windows Aug 31 21:25:44 I'm just interested in other ways to do it Aug 31 21:29:03 Napalm: the funny thing is that I red the doc lol Aug 31 21:29:08 or Mavrik , if you have an idea. I want to make sure it is somewhat clean before I continue. What I currently have is a bit of a mess Aug 31 21:29:17 under: heh Aug 31 21:29:25 thanks btw Aug 31 21:36:32 is it troublesome to gain execute access on external storage? Aug 31 21:37:59 i would be needing something like manifesting but for be able to execute processes with Runtime.getRuntime().exec(...) Aug 31 21:38:57 am currently not being allowed even a single unharmful .exec("pwd") Aug 31 21:43:16 Ok, anyone else then. Any ideas on what is a good way to keep a list of markers for google maps that can reference an object class of data per marker, but also keep track of the order they are created. I was using HashMaps, but order is lost Aug 31 21:44:24 basically, i need a hybrid between hashmap and arraylist Aug 31 21:45:41 am not java powered, but i would implement the creation date and a class implementing Comparator Aug 31 21:47:38 but is probably easier to have just two HashMaps Aug 31 21:48:14 and Aug 31 21:51:05 in my case it would just be a counter/iterator, not date, but you suggest just using two hashmaps Aug 31 21:51:53 Hey guys, I'm using Android Studio v0.2.6 and it has errors on my application saying the android.support library doesn't exist. How do I import this module? Aug 31 21:52:17 The rest of the android API is there, apart from support.* apparently Aug 31 21:52:34 shur: that would work, just wish there was a better way, lol Aug 31 21:52:48 I'm trying to import android.support.v4.app.NotificationCompat if that helps Aug 31 21:58:13 the two mapped approach is scripting languages amicable, but bet a Java purist would consider a Comparator solution hundert percent elegant Aug 31 21:58:38 and then that 'better' way Aug 31 22:00:51 I may look into the Comparator solution, though I am not too familiar with it Aug 31 22:01:00 for now, I will just do the two maps Aug 31 22:01:59 I'll probably just make a custom hashmap class that has a simple hashmap internally to keep track Aug 31 22:03:23 epsilonorion: have you looked at LinkedHashMap? Aug 31 22:03:55 epsilonorion: it's like a hash map, except that the entries are kept in a linked list based on the order they were inserted Aug 31 22:04:24 so you can get them back in the same order Aug 31 22:06:55 JesusFreke: we were talking about it earlier. The problem is I need to get the index of where a value is entered. I may also need to modify that entry (changing the key), and then reinsert. If I do this, it changes the order of the LinkedHashMap Aug 31 22:07:12 Also, I believe anytime you access a value on the LinkedHashMap, it changes its position Aug 31 22:07:42 access doesn't change the position Aug 31 22:07:49 I need the ability to have a list of markers with an object of waypoint info tied to the marker (thus hashmap), but I need the ability to know the order of entry as well as modify that value Aug 31 22:07:51 but yeah, if you need the index, it won't be a great solution Aug 31 22:07:56 JesusFreke: ok, then I misread that part Aug 31 22:08:29 I already have a custom HashMap class. My thought is I can have another hashmap inside with a single integer to keep track of entry of the keys Aug 31 22:08:48 make a container class, that holds an integer and a market? Aug 31 22:08:50 marker* Aug 31 22:10:18 a custom hashmap class? but why... Aug 31 22:10:26 what was wrong with linkedhashmap? Aug 31 22:10:34 if you need to be able to look up by the market instance, you can define equals and hashcode of the container class such that you can look values up by either the container instance or the market instance Aug 31 22:10:40 marker*. grrr :) Aug 31 22:11:05 think even in Java are tuples, you just do HashMap<¿tuple?, data> Aug 31 22:11:18 java doesn't have tuples Aug 31 22:11:44 yet no? well java 8 will have lambdas Aug 31 22:11:51 so it's a matter o time Aug 31 22:12:06 pfn: did you see above why linkedhashmap won't work? Aug 31 22:12:25 'i said i will do it, i didnt say when the tools for that will be available' Aug 31 22:12:29 JesusFreke: not sure I follow how to do that, honestly Aug 31 22:13:02 didn't see why you said it didn't work Aug 31 22:13:08 looking up some ideas now Aug 31 22:13:17 if you put into a linkedhashmap it goes on at the tail Aug 31 22:13:24 if you replace an existing value, yes, the position changes Aug 31 22:13:40 pfn: no problem. It won't work for me because I care about order and the ability to modify a specific item in the map. Basically, I need a mix of a list and a hashmap Aug 31 22:13:48 linkedhashmap does that... Aug 31 22:13:51 I don't see the problem Aug 31 22:14:00 that's exactly what it lets you do Aug 31 22:14:01 i don't op this but isnt it a #Java question? Aug 31 22:14:18 epsilonorion, if it's not working for you, you're doing it wrong Aug 31 22:14:30 if you want to modify the value stored in a position, mutate the value, not replace the value in the map Aug 31 22:14:51 mydata = linkedmap.get(key) ; mydata.updateAndShit() Aug 31 22:14:55 done Aug 31 22:14:57 shur: it is, originally I was asking about a good way of mixing data between map markers and a list fragment, this is what it has moved to Aug 31 22:15:09 your ordering is maintained Aug 31 22:15:30 pfn: but you can't update the key and keep order, can you? Aug 31 22:15:49 epsilonorion, you can mutate the key, yes Aug 31 22:16:24 Iterables.find(linkedmap.keySet(), Predicates.equals(mykeylike)) ... result.updateDataAndShit() Aug 31 22:16:42 add a proper hashCode and equals on your Key type and you're done Aug 31 22:16:45 that is my primary issue that I wasn't sure of. I have a list of markers, but I may want to modify a specific marker as well as the value tied to the marker, thanks to a listFragment Aug 31 22:16:58 pfn: the Preciates.equals is what I was missing Aug 31 22:16:59 listfragment has nothing to do with this... Aug 31 22:17:16 epsilonorion, if you want to use the above, you'll need to add guava to your dependencies Aug 31 22:17:23 I have the iterator method in my code write now, but wasn't sure how to access the point Aug 31 22:17:27 ah Aug 31 22:17:29 that would be why Aug 31 22:18:09 Iterables.find is going to be a linear search though Aug 31 22:18:13 lol, all of this just to modify a key and value by order as well Aug 31 22:18:31 JesusFreke: true, but it may be my own solution Aug 31 22:18:46 Set doesn't have any methods for retrieval Aug 31 22:19:15 so yeah Aug 31 22:19:36 I suppose if you're in a linkedhashmap and know the index, you can just retrieve it directly Aug 31 22:19:52 Right, but there's no point in using a hashmap in that case. The whole point of a hashmap is to avoid having to do a linear search to find something :) Aug 31 22:20:02 you'll still need to iterate to your index Aug 31 22:20:18 well, you could always maintain your original key values somewhere accessible Aug 31 22:20:22 that is why I was wondering if there was something better Aug 31 22:20:23 in any case, sounds like a case of using a Map incorrectly Aug 31 22:20:30 epsilonorion, yes, don't put mutable data in your Key Aug 31 22:20:34 pfn: that is where some suggested using another hashmap to keep the index order Aug 31 22:20:34 that's wrong Aug 31 22:21:11 (¡the Java tuples guy!) Aug 31 22:21:31 keys should be immutable Aug 31 22:22:34 framework would be with a for chronologic access Aug 31 22:22:52 well, since some of the idea is that using a hashmap is a bad idea, is there another solution to handling what I need. From my earlier comments, this is modified google maps api v1 code, where I used arraylist and overlays. I am trying to find a way to handle the situation for data to be shared between a ListFragment and MapFragment Aug 31 22:22:54 why do you even need to mutate your key? Aug 31 22:23:05 with the obvious > if needed Aug 31 22:23:28 If a user modifies a marker in ListFragment, it should modify the markers in MapFragment Aug 31 22:24:09 worked fine with my solution in maps v1, but changing it up now with v2 Aug 31 22:25:48 sorry, I know I am being a pain on this one, just stumped on the best way to solve it Aug 31 22:26:40 what's to be stumped? Aug 31 22:26:47 you keep a single values object that you mutate Aug 31 22:31:24 pfn: sorry, what do you mean single values object. You mean getting rid of the idea of hashmaps of any type? How does that solve the index thought? Or is the best option for what I am looking for the iterator you mentioned earlier with quava? Aug 31 22:35:30 what index thought Aug 31 22:35:41 what exactly is the problem Aug 31 22:35:50 you haven't shown anything how this is actually a problem Aug 31 22:36:12 hi all Aug 31 22:37:03 i have a question regarding the hardware on popular android phones Aug 31 22:37:14 like the galaxy s4, etc Aug 31 22:37:36 what is the gps update rate? 1Hz or faster? Aug 31 22:37:44 pfn: I felt I have been. Specifically, referencing a specific key in a hashmap based on the order it was placed on the hashmap. That was the original thought that was a problem. Some suggested LinkedHashMap. I had even looked it up before. Then through discussion, some said it didn't sound as if the ability to modify a key,value by index was possible. You mentioned using an iterator..... Aug 31 22:38:02 i didn't really know where i should ask this question, hence came here as i figured someone here would know Aug 31 22:38:04 my follow up was whether that was the best option or if going with something other than a hashmap would be better. Aug 31 22:38:06 epsilonorion, do not ever modify KEY Aug 31 22:38:11 and your problem is solved Aug 31 22:38:11 YES Aug 31 22:38:13 lol Aug 31 22:38:18 what is the problem? Aug 31 22:38:35 in my country that HashMap questions are material of second year comp science degree Aug 31 22:38:36 I modify key or value at different times Aug 31 22:38:44 shur, they're material of any CS degree Aug 31 22:38:49 epsilonorion, you're doing it wrong Aug 31 22:38:50 lol Aug 31 22:38:52 do not ever modify key Aug 31 22:39:00 that was my point Aug 31 22:39:09 your point is digging a hole for yourself Aug 31 22:39:11 do not ever modify key Aug 31 22:39:24 epsilonorion: do not ever modify key Aug 31 22:39:35 cyanide: surely that depends on the availability of a GPS fix as well as your subscribed precision... ? Aug 31 22:39:51 if you want a modifiable key, what you really want is a List> Aug 31 22:39:54 which is why before you even jumped on this question i asked what would be better than a hashmap. Aug 31 22:39:54 maybe im not understanding what you mean by "update rate" Aug 31 22:39:55 you don't want a map Aug 31 22:40:09 is it troublesome to gain execute access on external storage? Aug 31 22:40:09 liefer: assuming a fix with at least 5+ satellites and in an open area Aug 31 22:40:16 i would be needing something like manifesting but for be able to execute processes with Runtime.getRuntime().exec(...) Aug 31 22:40:24 am currently not being allowed even a single unharmful .exec("pwd") Aug 31 22:40:32 should the precision also not be dependent on the hardware available on the phone? Aug 31 22:41:01 although most phones these days should have at least 10^-5 precision Aug 31 22:41:15 pfn, actually, just looking it up that sounds exactly like what I want. Thanks. I wasn't trying to make this difficult, but so many people kept jumping in a different times in the conversation. This was not me digging a hole for myself, but having a difficulty explaining a discussion with various people over time Aug 31 22:41:29 cyanide: its been a while since i used location on android, but AFAIK you subscribe to the location event, given a desired range. Say, you want a location update event everything the location has changed with at least 1000m Aug 31 22:41:31 about a radius of 6 metres as per my observetions on a standalone gps board Aug 31 22:41:44 do you know which way the happiness is? Aug 31 22:42:11 cyanide: as for the maximum update rate in the ideal scenario.... i dont know. Aug 31 22:42:33 Would probably be a good idea to do actual in-field measurements Aug 31 22:42:35 liefer: i want to query every 250ms for the exact co-ordinates. is that something that would be possible? Aug 31 22:42:53 i have never developed for android, so i don't really know much Aug 31 22:43:14 I'm building a standalone board that would use the phone's location data Aug 31 22:43:36 You dont really want to poll for a location like that, you want to subscribe to location update events instead so that you are notified whenever the location has changed Aug 31 22:43:52 But really, go read the docs, its been too long since i've worked with this Aug 31 22:43:52 shur: if your application can write to external storage, then any process you spawn should be able to as well. Aug 31 22:44:15 i am looking at the docs, yes Aug 31 22:44:19 shur: what happens when you try to run pwd, as you mentioned? Aug 31 22:44:41 cyanide: polling every 250ms is a little bit pointless if the latest location fix has not actually changed Aug 31 22:44:59 shur: looking in /system/bin, there is no pwd executable Aug 31 22:45:05 that means pwd is a shell intrinsic Aug 31 22:45:12 JesusFreke: thanks, this is talking about an android virtual device Aug 31 22:45:20 so you probably need to run sh -c pwd Aug 31 22:45:27 ok, i didnt take that into account Aug 31 22:45:39 liefer: assume a moving car at all times, doing at least 50 mph Aug 31 22:45:51 but i finally remember doing also the sh -c pwd way Aug 31 22:46:20 doing pwd gave me like "permission denied" Aug 31 22:46:20 shur: you probably need to use the array version Aug 31 22:46:33 new String[] {"sh", "-c", "pwd"} Aug 31 22:46:56 sh -c pwd didnt fail but i think didnt worked all as expected Aug 31 22:47:15 shur did you use exec(String) or exec(String[])? Aug 31 22:47:43 cyanide: My main point is: YOU dont control when to get a new location fix. You tell android: "I want to know when the location changes. I want to know this, when the location has changed by at least X meters". In other words, you subscribe to a location update event. Im almost certain thats how its done Aug 31 22:47:51 i did exec(String) and sometimes logcat showed String was being trimmed Aug 31 22:48:10 shur: right, the String version won't work if you need to pass arguments Aug 31 22:48:26 cyanide: if you set X to a low value, you should get updates very often Aug 31 22:48:33 you need to use the String[] version Aug 31 22:49:10 i think i can use that and setup interrupts on my board to take action when the new data comes in Aug 31 22:49:13 i get it, you saying it is safer to say 'sh', '-c', 'pwd' than to say 'sh -c pwd', arent you? Aug 31 22:49:23 not "safer", but required. Aug 31 22:49:30 for system.exec, at least Aug 31 22:49:31 still going through the docs Aug 31 22:49:39 runtime.exec, rather Aug 31 22:50:07 cyanide: that might work, and yeah, you should go through the docs, a lot of things has likely changed since i looked at them. But at least, thats the general idea Aug 31 22:50:38 i can't try right now, but this could be of a lot of help to me. I have a program that i can compile to a static relocatable and then the plan is to call it from java Aug 31 22:51:09 all this because am not pro enough to get it compiled to dynamic lib Aug 31 22:51:24 static is going to be huge :) Aug 31 22:51:27 and then call it from jni Aug 31 22:51:28 a noob question. assuming I'm using bluetooth between my board and the phone and assume they are paired, can i stream my data from the phone via bluetooth as serial data? Aug 31 22:51:48 cyanide: if you really want though, you could poll for the location i think. It just seems very inefficient, but maybe in your case (not a phone, a custom board) it makes sense Aug 31 22:52:11 from less than 200kiB grows up to almost 9MiB Aug 31 22:52:28 but at least works Aug 31 22:53:23 shur: I assume you had previously tried to compile as a dynamic lib using the ndk? Aug 31 22:53:28 what was the problem? Aug 31 22:53:42 libraries not available? Aug 31 22:53:50 By the way, thanks everyone who was helping. Sorry for the confusion and frustration Aug 31 22:54:43 ld says: recompile libgnustl_static.a with -fPIC (position independent code). Or, if i compile against libgnustl_shared.so, then logcat says ¡hey there is nowhere libgnustl_shared.so! Aug 31 22:54:54 later Aug 31 22:55:47 spent half and a day trying to get it done, i gave up, having tested ok the relocatable static Aug 31 22:57:29 looking the android-ndk group and maillist, i started to think that solution was to recompile whole ndk Aug 31 22:58:04 if that is true, then it will be done. Well, (*someday*) Aug 31 23:00:16 (according to http://code.google.com/p/android/issues/detail?id=36472 it could be a matter of libgnustl_static.a visibility option, problem looks like mine) Aug 31 23:01:54 no verbatim escape in java wtf Aug 31 23:08:01 so there is no big security trouble about execute permissions in the external storage, right? Aug 31 23:08:47 it can be assumed as a jail to write to and read to, but also to execute from Aug 31 23:14:34 * pfn ponders having another espresso Aug 31 23:15:41 shur, external storage should be formatted as FAT on most devices Aug 31 23:15:47 no execute permissions there. Aug 31 23:15:55 it should also be mounted as noexec Aug 31 23:17:37 hmm... yay.. how would you cope the problem? would you keep on trying to get the libs to be called from ndk, or is there any jail in the filesystem for nonroot execution? Aug 31 23:18:16 shur, your app can execute binaries from internal data storage Aug 31 23:18:24 it'll run with app uid/gid Aug 31 23:18:37 is /data that? Aug 31 23:19:26 /mnt/storage maybe? Aug 31 23:19:50 shur, Context.getDataDir() Aug 31 23:20:04 that's what you call to get the right directory on a device Aug 31 23:21:28 can not try right now, but am really grateful for that Aug 31 23:24:52 http://frupic.frubar.net/shots/30251.jpg Aug 31 23:25:11 C64_ Aug 31 23:25:11 ? Aug 31 23:25:40 mhh? Aug 31 23:26:15 compaq presario 700 Aug 31 23:26:41 (see ucp700 as hostname) Aug 31 23:29:09 here the machine http://frupic.frubar.net/shots/30249.jpg Sep 01 00:01:58 bb Sep 01 00:19:40 my gmail address/account i use to publish the apps won't be visible to users of my apps will it? Sep 01 00:24:43 only if you set one in your profile iirc occ Sep 01 00:25:27 i see. i was just wondering if it is worth making a new email just for publising apps or if most people just use their normal ones Sep 01 00:26:09 * SpeedEvil wishes there were compulsory public bugtrackers. Sep 01 00:26:41 you can specify a different email address to the one you use to login, occ. so yeah, that might be a good idea Sep 01 00:26:46 occ: You'll need to publish an email address through Google Play. Sep 01 00:26:59 I'd highly recommend setting up a new address for that, since you'll get a lot of crap. Sep 01 00:27:05 Both from spammers and cranky users. Sep 01 00:27:50 well for general support id be using my domain/host email address Sep 01 00:27:58 since ill have a website too Sep 01 00:30:18 Another quirky Android bug I've discovered, setting the background colour of a simple listview produces artifacts when then scrolling the list. Seems like so much stuff just isn't tested well before release :-\ Sad times Sep 01 00:38:00 I'm getting a UnsatisfiedLinkError with the NDK. I cannot figure out why Sep 01 00:38:10 i believe all the package names are right Sep 01 00:40:28 god, I so hate intellij's logcat Sep 01 00:40:30 http://ideone.com/Al9kCR Sep 01 00:40:32 it's such a piece of garbage Sep 01 00:40:40 there's my code. See anything wrong? Sep 01 00:43:34 RustyShackleford: Need to see jni.h since that's where the C compiler grumbles Sep 01 00:44:28 it's one of Java's headers. Do you really want to see it? Sep 01 00:44:28 RustyShackleford: I just noticed sorry, it's saying it can't find the file that's why it's grumbling. You have specified your include path in the compiler options? Sep 01 00:44:43 btw, it compiles on my machine Sep 01 00:44:46 RustyShackleford: I thought you might have broken it by mistake ¬_¬ Sep 01 00:44:56 I get unsatisfiedlinkerror at runtime Sep 01 00:45:08 I'm having trouble with a content provider Sep 01 00:45:08 You will do if it's not compiling properly, which it isn't? Sep 01 00:45:22 https://github.com/Mrono/notifytest - when I run it i get an error that it can't find the content provider Sep 01 00:45:52 A C compiler doesn't ignore a missing .h file then decide to wing-it and compile anyway, guessing at everything you meant and writing code for you Sep 01 00:46:16 that output is because ideone tried to compile it. Again, my machine has jni.h and it compiles Sep 01 00:46:28 Ok well good luck with that Sep 01 00:46:41 also nkd-build runs without error and creates the shared library Sep 01 00:46:54 As above Sep 01 00:47:08 I'm gonna try restarting my machine lol Sep 01 00:47:24 Some people really are their own worst enemy Sep 01 01:09:51 lol, so hostile Sep 01 01:29:59 https://github.com/Mrono/notifytest - I get the error 08-31 19:29:37.873: E/ActivityThread(30087): Failed to find provider info for com.notifytest.LazyProvider **** ENDING LOGGING AT Sun Sep 01 02:59:58 2013