**** BEGIN LOGGING AT Tue Aug 26 02:59:58 2014 Aug 26 03:01:11 yeeah, that would be great if they disabled design view in AS 0.8.8 Aug 26 03:01:26 (let us disable it) Aug 26 03:34:52 g00s: cool stuff http://googleprojectzero.blogspot.com/2014/08/the-poisoned-nul-byte-2014-edition.html?m=1 Aug 26 03:36:52 thanks capella-s3 Aug 26 03:36:56 "Step 9: Tea and medals; reflect" Aug 26 03:37:32 that's some serious hacking there Aug 26 03:39:28 last week's research was how to flash executable bugs into usb device code Aug 26 03:40:21 slightly off topic but cool tech nonetheless Aug 26 03:41:08 yeah i saw the usb one Aug 26 03:42:11 found a remark research paper describing it... tools used... hardware breakdowns... etc Aug 26 03:44:01 better reading than watching as vs. eclipse flame wars :D Aug 26 03:44:41 oh i thought that was settled, netbeans ftw ! Aug 26 03:49:48 Play 4.9.13 has that super slick action bar Aug 26 03:52:49 capella-s3 what else have you been up to Aug 26 03:55:09 usual stuff... firefox/Android... got into some c++ <-> java <-> javascript (triple witching) interactions on my current bug Aug 26 03:55:36 templates still annoy me Aug 26 03:59:19 c++ templates ia a big topic Aug 26 04:09:37 * capella-s3 needs more practice... our gfx area uses them extensively for stuff like CSS to layoutDevice conversions Aug 26 04:09:57 coordinate systems are hard :p Aug 26 04:16:47 what the hell is going on here: http://pastie.org/9503011 Aug 26 04:16:54 trying to use a simple searchview Aug 26 04:17:23 Doesnt want to start the search activity when i do use the search action bar view Aug 26 04:19:57 nevermimnd got it Aug 26 05:32:24 curry is good for the brain Aug 26 05:32:46 nice Aug 26 05:42:09 I'm trying to call the contact picker for result - new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); On my LG G3 it let's me choose a contact, but then it stay on the dialer. is there a way to avoid that? Aug 26 05:45:31 shmooz yeah, i take a tumeric supplement Aug 26 05:45:57 all the good ones use bcm-95 ;) Aug 26 05:52:51 hey guys Aug 26 05:53:39 can anyone help me with some compile kernel problems im having ? Aug 26 05:56:13 i keep getting this error when compiling the kernel (just need the kernel file) include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory using command : sudo ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make all Aug 26 05:58:32 is that script present in some path dragonkeeper Aug 26 05:59:01 if yes with the command include the path for the script also Aug 26 05:59:19 may be your arm system is not taking the path Aug 26 05:59:37 i have it under arch/arm/mach-msm/perf_trace_counters Aug 26 05:59:51 dragonkeeper: or else you can supress using the script Aug 26 06:01:09 so niru my command should be ARCH=arm INCLUDE=path ... make ? Aug 26 06:02:02 yes Aug 26 06:02:27 ok thanks Aug 26 06:02:40 good luck! :) Aug 26 06:04:20 g00s: are you there Aug 26 06:04:29 I have a small doubt Aug 26 06:05:13 i dunno it still doesnt run blah Aug 26 06:05:38 I want to access EditText (present in file A) in file B. Aug 26 06:06:36 that file A is not xml layout file though,Its programatically created Aug 26 06:07:08 dragonkeeper: not even a single step forward? Aug 26 06:07:26 dragonkeeper: may be some other error? Aug 26 06:08:26 In file included from arch/arm/mach-msm/perf_trace_counters.h:163:0, include/trace/define_trace.h:79:43: fatal error: ./perf_trace_counters.h: No such file or directory Aug 26 06:11:55 nvm ty anyway Aug 26 07:05:54 Having a hard time understanding what Context is. I'm formatting a date using DateFormat() and it asks for a context. Could someone help me understand what I need to pass into my dateFormat object? Aug 26 07:11:17 context is... context Aug 26 07:11:18 just like the name says Aug 26 07:11:31 the description of your current environment if you will Aug 26 07:11:40 have you looked it up on d.android.com? Aug 26 07:19:45 good morning, how can I get a byte array representation of an image? Aug 26 07:21:33 Bitmap.getPixels() Aug 26 07:22:29 ravilov: yeah. Tried looking it up. Am I right in understanding that context is 'this'? Aug 26 07:23:22 no you are not Aug 26 07:23:26 context is only Aug 26 07:23:35 'this' when 'this' is context Aug 26 07:23:45 Context is a class. 'this' is a java keyword that refers to the current instance of whatever class you're in Aug 26 07:23:53 haha, this sounds so philosophical Aug 26 07:24:05 SimonVT: oh yeah, right Aug 26 07:24:08 i was going to explain but SimonVT jumped in Aug 26 07:24:59 So when a DateObject() needs a Context. Do i pute my Date mDate as the context? Aug 26 07:25:03 put* Aug 26 07:27:41 ravilov: it gives me int array if I remember correctly Aug 26 07:28:44 If the Date class extends Context, sure. It doesn't tho Aug 26 07:36:41 Is it possible to have a back caret in an activity with a drawer? Aug 26 07:40:23 Instead of opening a new activity im having my action bar searchview just switch out a fragment, but i want to make it apparent there isback navigation. Aug 26 07:40:56 However the 'host' activity has a nav drawer, so "setDisplayHomeAsUpEnabled(true);" just gives you the 3 nav drawer lines Aug 26 07:41:28 nevermind solved it Aug 26 07:41:46 nevermind, no i did not. Aug 26 07:47:42 nevermind, i did. Aug 26 07:48:50 does anybody have worked on callforward? Aug 26 08:05:16 Hello, quick question about Loaders, why cant I use loader from Fragment and Activity at the same time? Aug 26 08:06:20 vegetablesalad19: what makes you think that? Aug 26 08:07:08 I call 2 loaders from fragment, and another one on parent Activity. If I do so my app gets minimized, no errors or anything Aug 26 08:07:12 just strange Aug 26 08:07:47 an app usually doesn't crash without logs Aug 26 08:08:30 It doesn't crash, it just throws me out to home screen. First time I see something like this Aug 26 08:09:05 maybe you called finish? Aug 26 08:09:36 Hi all, I'm using 2 3rd party ListViews, SwipeListView https://github.com/47deg/android-swipelistview and DragSortListView https://github.com/bauerca/drag-sort-listview is it possible to combine the 2 together? I need a Swipeable-DragAndDrop ListView Aug 26 08:10:08 yes Aug 26 08:11:56 startActivityForResults(Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI),42); on my LG G3 it return me result of canceled, but still show to contact picker and when I choose it go to the launcher Aug 26 08:11:57 why? Aug 26 08:14:03 yoavst: does it work on other devices or the emulator? Aug 26 08:14:35 BoD`: My app is designed only for LG G3 (it is for the smart case) Aug 26 08:14:41 so I need it to work only here Aug 26 08:14:52 irrelevant Aug 26 08:15:15 genymotion got a dialer? Aug 26 08:15:31 yes Aug 26 08:20:13 meital, yes it gives you int[], I believe that's as much as you can hope to get Aug 26 08:21:43 meital, how would you represent an image/bitmap as a series of bytes anyway? technically an int[] is an array of four-byte items :p Aug 26 08:28:49 a byte[] array Aug 26 08:29:30 huh? Aug 26 08:30:38 Hello guys, I want to connect to an electronic device with Bluetooth using the RFCOMM channel. But Android api createRfcommSocketToServiceRecord() requires a UUID as an argument. The thing is, the bluetooth device is just a serial port and want to read data from it. Aug 26 08:32:04 Should I approach it as a serial port or should I connect with it as a serial port? Hope someone can help me out with it. Aug 26 08:32:30 your last question is strange :) Aug 26 08:32:57 "approach" vs "connect with it" ? Aug 26 08:34:18 if I understand correctly, the UUID parameter is kinda arbitrary Aug 26 08:36:16 why do people do that... ask a question and then be silent for X minutes Aug 26 08:36:24 so annoying :) Aug 26 08:37:24 get used to it Aug 26 08:37:49 yeah I'll get over it ;) I'm just wondering why. Aug 26 08:38:12 BoD`, I'm sorry I was googling for some info Aug 26 08:38:27 ahah :) well I have my answer Aug 26 08:38:42 What I mean is I have an electronic device that can be connected with Bluetooth Aug 26 08:38:49 using RFCOMM channel Aug 26 08:38:54 but it has no UUID Aug 26 08:39:12 is that even possible? Aug 26 08:39:25 I already managed to create a server and client bluetooth app to communicate with each other as a proove of concept Aug 26 08:40:23 BoD`, well at least I have no UUID of the bleutooth's electronic device and I'm also not sure wheter it should have one or not. Aug 26 08:40:27 Number5, did you not see my response? Aug 26 08:40:45 ravilov, no sorry Aug 26 08:40:53 aaah Aug 26 08:41:08 ravilov, what do you mean by arbitrary? Aug 26 08:41:19 exactly what I said... Aug 26 08:41:20 you mean irrelevant Aug 26 08:41:25 no, I mean arbitrary Aug 26 08:41:51 English is not my native language sorry, but I'll translate it Aug 26 08:41:57 neither is mine ;) Aug 26 08:42:32 ravilov, hahaha Aug 26 08:42:46 ok, you mean kind of random Aug 26 08:43:33 so ravilov, this means it should connect correctly? Aug 26 08:44:19 sorry to interrupt in between.I have a file A which has an edittext field created programatically like this. Edittext ed=new EditText(this);...layout.addview(ed); Aug 26 08:44:35 I want to access in file B. how can I do that? Aug 26 08:44:45 Well, I'll try to analyze what the exact error is. Aug 26 08:45:16 like if(meets some condition){//invoke Edittext in file A} else { //exit} Aug 26 08:46:06 what I mean is, you can just "invent" some UUID once and store it as a constant somewhere Aug 26 08:46:12 then just use it every time Aug 26 08:46:43 niru, I believe you have asked this already, I'm guessing no responses means people have nothing to say Aug 26 08:46:51 niru: are you talking about accessing across classes? Aug 26 08:46:53 probably won't change just because you asked again Aug 26 08:46:58 ...or it might Aug 26 08:48:08 ravilov: I am clear with what I want so I asked again Aug 26 08:48:37 last time I was not into the exact problem may be... Aug 26 08:48:42 canvs2321: yes Aug 26 08:49:06 canvs2321: accessing functions across is straight forward Aug 26 08:49:14 hm ok, I still have no idea what you mean by "invoke" an edittext Aug 26 08:49:54 niru: you can pass the edittext to your other class method Aug 26 08:49:57 canvs2321: accessing views and child views...is my concern Aug 26 08:50:22 canvs2321: how? Aug 26 08:50:32 as a method parameter Aug 26 08:51:09 ravilov:/join #android-root Aug 26 08:51:14 either need an instance of the B Class or make the method in B Class static Aug 26 08:52:56 MY123, hm? Aug 26 08:52:58 in A, can do BClass bClass = new BClass(); then bClass.callMethod(ed); void callMethod(EditText editText){editText.doStuff();} or do static void and in A do BClass.callMethod(ed); Aug 26 08:55:00 canvs2321: ah so you mean I have to put every child few inside methods to access them? Aug 26 08:55:20 tbh this has the smell of bad structure Aug 26 08:55:21 canvs2321: if I have 10 child views to be displayed one at a time. So every method I can call that way.... Aug 26 08:55:53 when i run eclipse my javaw.exe takes about 600 mb ram\ Aug 26 08:55:59 is this normal ? Aug 26 08:56:04 pifon: yes Aug 26 08:56:06 niru, there are countless ways to do what you want to do, have you looked at some examples maybe? this is not strictly android-related, this has more to do with java programming patterns Aug 26 08:56:27 alright Aug 26 08:56:39 (it's also kind of a noobish question) Aug 26 08:56:42 ravilov: yes I have few and trying to make it work....but facing issues.... Aug 26 08:56:42 Just have 2 gb ram so running it with the emulator sllows down the pc Aug 26 08:57:04 ravilov: yes you are right this is not very relevant to android....but more to java Aug 26 08:57:06 Yeah, best to run it on a real device in low RAM environemnt Aug 26 08:57:41 pifon, that's what you get for trying to run this stuff on windows, I've been happily using eclipse and one or two emulator instances with 2GB RAM on ubuntu ;) Aug 26 08:57:56 ravilov: some how you pointed me to right path.....:) I will join java channel...and try getting some help.... Aug 26 08:58:11 cool Aug 26 08:58:18 That's totally not a Windows issue :P Aug 26 08:58:27 Estel, suuure :p Aug 26 09:12:01 I'm trying to understand why my app takes too much ram Aug 26 09:12:02 http://i.imgur.com/WSCmXwD.png Aug 26 09:13:05 The app is collections of tools for smart case, so it implement some things: Notification listener service, Notification listener service + RemoteController, torch for camera (but it should be disabled) Aug 26 09:14:22 do you have large bitmaps? Aug 26 09:14:25 background images, etc? Aug 26 09:14:36 yoavst, do a heap dump and use MAT to see which objects are the largest Aug 26 09:20:57 Error opening heap dump 'com.yoavst.quickapps.hprof'. Check the error log for further details. Unknown HPROF Version (JAVA PROFILE 1.0.3) (java.io.IOException) Aug 26 09:22:00 used monitor for that. Mavrik the app is built from 10 independent modules. Since it is for the smart case, I use finish() every time I exit an activity Aug 26 09:22:15 so nothing but the listener services should run on background. Aug 26 09:22:37 yeah you have to convert the heapdump from dalvik format Aug 26 09:22:44 there's bunch of guides on the internet :) Aug 26 09:23:02 finish() does nothing if you're holding objects in memory. Aug 26 09:24:24 One instance of "com.yoavst.quickapps.music.RemoteControlActivity_" loaded by "dalvik.system.PathClassLoader @ 0x4372e5e0" occupies 43,095,120 (44.13%) bytes. The memory is accumulated in one instance of "android.graphics.drawable.StateListDrawable" loaded by "". Aug 26 09:24:44 Mavrik: in this activity I show the running music info using RemoteController Aug 26 09:25:02 https://github.com/yoavst/quickapps/blob/master/app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fyoavst%2Fquickapps%2Fmusic%2FRemoteControlActivity.java Aug 26 09:25:23 btw, is this normal: Aug 26 09:25:24 The class "android.content.res.Resources", loaded by "", occupies 11,633,312 (11.91%) bytes. The memory is accumulated in one instance of "android.util.LongSparseArray[]" loaded by "". Aug 26 09:25:38 yep, you probably have a huge background image for a button or something Aug 26 09:25:50 StateListDrawables come from XMLs Aug 26 09:26:42 Mavrik: I'll check. is the resources fine? (10mb) Aug 26 09:26:56 Resources caches resources you're loading Aug 26 09:27:07 it's usually large, but it really depends on your device Aug 26 09:27:10 ok Aug 26 09:27:29 Mavrik: StateListDrawable can come from RemoteController? Aug 26 09:27:44 mRemoteController.setArtworkConfiguration(1100, 1100); Aug 26 09:27:52 I have no idea what RemoteController is Aug 26 09:28:26 The RemoteController class is used to control media playback, display and update media metadata and playback status, published by applications using the RemoteControlClient class. Aug 26 09:29:14 because I don't use anything big Aug 26 09:29:20 Mavrik: https://github.com/yoavst/quickapps/blob/master/app%2Fsrc%2Fmain%2Fres%2Flayout%2Fmusic_activity.xml this is the layout Aug 26 09:31:20 http://i.imgur.com/ixT4z1t.png Aug 26 09:35:38 yoavst, well it's one of the image buttons obviously Aug 26 09:36:38 http://i.imgur.com/ixT4z1t.png , so mArtwork is the problem, right? Aug 26 09:37:36 but mArtwork is ImageView! Aug 26 09:43:21 so Mavrik you got an idea? Aug 26 09:43:25 I can remove the image Aug 26 09:43:36 and then check Aug 26 09:44:06 Idea about what? You're the one that has application, device and everything there Aug 26 09:44:17 I don't know what your app uses, neither do I have time to go through all your code :) Aug 26 09:46:21 but Mavrik the strange thing is that the mArtwork which they say it is an imagebutton is an imageview Aug 26 09:49:34 hi to all. i have a problem with google maps v2. has always worked so far, my app's build published on the store is working properly. the new build that i do now doesen't work, I apparently have not changed anything. plz help me !!!! i don't know how can fix this Aug 26 09:54:38 xan_IT: do you get an error in the logs? Aug 26 09:54:44 Using a new debug key? Aug 26 09:57:08 I have a / BroadcastReceiver that wakes up on network changes and makes the app sync data. I'm wondering if the app process is killed when the app is in the background and that I should implement this via a Service instead. But, how can I determine if the app is indeed killed? Aug 26 10:06:20 Hello, i changed my app's icon but it's not updating on one of my devices. it's like the old icon is cached somewhere. it works on the other devices and i verified that all the drawable*/icon.png files were updated. any idea why that could happen? Aug 26 10:07:43 Different launchers Aug 26 10:10:23 what do you mean? i have to change my launcher or something? Aug 26 10:12:06 Different launchers work differently Aug 26 10:12:21 Apparently one of your devices has a launcher that sucks at caching icons Aug 26 10:15:37 SimonVT: i never really played around with launchers... do you think i should take the chance to install something else like "Nova launcher"? Aug 26 10:15:52 i don't really want to but if it's a bug in mine i guess i'll do it Aug 26 10:18:07 Or try rebooting or something Aug 26 10:18:21 Or live with it and hope the launcher clears its cache eventually Aug 26 10:19:38 or make your own :p Aug 26 10:19:57 hello Aug 26 10:19:57 god i feel stupid, rebooting the device fixed it! Aug 26 10:20:08 didn't think it would be that simple... Aug 26 10:20:14 thanks! :) Aug 26 10:20:16 anybody have worked on call forward Aug 26 10:20:37 Is there a library which contains a drag & drop + swipe to show another view (back view)? Aug 26 10:20:40 min2, do not expect individual help, instead just ask the damn question Aug 26 10:27:36 I am facing problem while activating call forward feature in dual sim devices i am activating the call forward by concatenating the *21* bfore number its working properly in single SIM devices but not in dual SIM , i observe that in dual sim its activating the call forward but unable to catch the event of activation in dual sim devices Aug 26 10:29:21 can I via adb or some other trace call monitor when Android kills a procesS? Aug 26 10:29:35 this is on a real device (not emulator or geny) Aug 26 10:30:50 maps works on last build on play store and now doesn't works. Aug 26 10:31:10 no package changes o anythings... Aug 26 10:31:17 *or Aug 26 10:32:04 is there an easy way to change the path name where the app's files will be stored on the phone Aug 26 10:32:30 current path is data/org.abc Aug 26 10:32:40 i want data/org.def Aug 26 10:32:51 Mavrik: I removed the image and set clearArtworkConfiguration so it won't even send me artwork. but it still high Aug 26 10:33:58 pifon1: You mean /data/data/org.def, right? Aug 26 10:34:10 yes flan3002 Aug 26 10:34:13 pifon1: what's your package name? Aug 26 10:34:32 pifon1: That location is dependent on your package name. Change it, if it is important enough. Probably not, though... Aug 26 10:34:48 its org.abc Aug 26 10:35:13 Changing the package name will mess up a lot of classes Aug 26 10:35:28 Yeah, fix them. Aug 26 10:35:33 * flan3002 recommends sed. Aug 26 10:35:36 Well it's either that or settle for that path? Aug 26 10:35:58 Why do you need to change the path name, out of interest? Aug 26 10:36:01 ok I'll change the package name thanks Aug 26 10:36:24 estel i decided on a different app name Aug 26 10:36:28 Does a call to MyApplication::onCreate(..) mean the app process was previously killed and is now started - or could it mean something else? Aug 26 10:36:49 (i don't start other processes in my manifest or elsewhere) Aug 26 10:36:50 pifon1: yeah, but nobody notices if the filesystem path is different Aug 26 10:37:07 They'd be more likely to notice the Play Store URL, but even then, meh, people don't care Aug 26 10:55:37 Question, If I want to have some sort of free iab promotion for let's say 50 users, as I understand there's no way to do it through the console, can I just add those user as testers? will it work after the game has been published? Aug 26 10:58:05 Is it possible to inflate a layout with one item at a time? Aug 26 10:58:26 My LayoutInflator displays all the items Aug 26 10:58:36 Hello, how do I place an edittext view over the image with respecting weights in linear layout? Aug 26 10:59:21 niru: you inflate the contents of a single XML file. You can always split the xml. Aug 26 10:59:22 The hprof file say my imageview takes all the ram, but the imageview is empty, with no bitmap/drawable/whatever - http://i.imgur.com/QKUVZNo.png Aug 26 10:59:26 can you think on a reason? Aug 26 11:01:22 afl_ext: "the image"? Aug 26 11:01:25 Estel: but that will be a tedious process if the number of items(button,textbox,checkbox etc) are more in number Aug 26 11:02:07 niru: why would you want to inflate them one at a time? Aug 26 11:02:13 What is it that you're trying to do? Aug 26 11:03:20 Estel: if I click Edittext it should inflate editext and hide others. If I click textlabel it should inflate textview. Aug 26 11:03:53 Estel - I have image with place for text and transparent edit box to write that text into. Now I need to precisely position that editbox so it matches it's desired position OVER the image and I'm puzzled Aug 26 11:03:54 niru: you mean that the views that are displayed should keep changing? Aug 26 11:03:56 Estel: May be I have to put setvisibility Aug 26 11:04:04 Exactly Estel Aug 26 11:04:09 niru: yes, you should definnitely setVisiblity instead. Inflating is very expensive. Aug 26 11:04:41 afl_ext: wrap the image and EditText in a RelativeLayout? Aug 26 11:05:05 Estel but then I must use dp and it will distort on different resolutions Aug 26 11:05:16 afl_ext: why must you use dp? Aug 26 11:05:43 So what should I use then? Below, Above etc wont allow me to overlap two views Aug 26 11:06:01 afl_ext: where do you want the edittext to be? Aug 26 11:06:30 I would describe it as below - (minus) 20dp, but I cant use dp Aug 26 11:06:39 it must be over the image Aug 26 11:06:44 Describe it in words Aug 26 11:07:00 centre aligned towards the bottom of the image with a margin? Aug 26 11:07:09 and margin in dp, right? Aug 26 11:07:25 negative margin below the image Aug 26 11:07:28 no Aug 26 11:07:36 Estel: so how I can go for it...First I will keep setvisibility of all items to View.GONE .If my condition is met give the View.Visible....something like that? Aug 26 11:08:28 afl_ext: You'd use android:layout_alignParentBottom or android:layout_alignBottom to match the bottom edges of the image and edittext Aug 26 11:08:42 Not below Aug 26 11:08:54 niru: yeah, could be a way Aug 26 11:09:04 and then I need about 10% upper from bottom edge, and thats the problem Aug 26 11:09:23 Why can't you use dps here? Aug 26 11:09:35 me Estel ? Aug 26 11:09:39 Is the image so small that a 16dp margin would break everything? Aug 26 11:09:47 Estel: thanks Aug 26 11:09:58 I need to be sure it will work for watches and for 4k tvs Aug 26 11:11:00 afl_ext: set a bottom margin with a dimen resource and then customise it for those devices Aug 26 11:11:24 It's not unreasonable to expect that a TV or a watch would need a custom layout file either Aug 26 11:11:34 Given that watches definnitely need custom layouts >_)> Aug 26 11:11:59 I need to remove the Action bar in my code, how do I do it? I have appcompat_v7 installed Aug 26 11:12:35 threenuc: Theme.AppCompat.NoActionBar ? Aug 26 11:12:41 I tried removing "extends ActionBarActivity" from infront of public class MainActivity but I get tons of errors. Why didn't that work? Aug 26 11:13:21 threenuc: did you change it to extend from Activity? Aug 26 11:13:33 Either way, the ActionBar will appear by default on 3.0+ devices Aug 26 11:13:47 Good day guys... how are you? Aug 26 11:14:02 i got a very big ISSUE right here... anyone to help me Aug 26 11:14:20 how can i work with this huge json data.... http://pastebin.com/iZ0TbqyN Aug 26 11:14:27 Woah, an ISSUE... Aug 26 11:14:36 Estel: I don't know what you mean, here's my code http://pastebin.com/gyL3x64R . It appears by default on Eclair for me since I think I've set it up with appcompat already installed I think Aug 26 11:15:14 threenuc: if you replace ActionBarActivity with Activity, you won't get an Action Bar on Eclair Aug 26 11:15:33 hackable: It's not that huge actually. Aug 26 11:15:40 actually, i exported the data from the database.. phpmyadmin to json, now i'm developing android app to work with the data, please how can i do it Aug 26 11:16:00 okay Flan3002: what do you think i can do and i do i red that? Aug 26 11:16:23 the data is in JSONArray Aug 26 11:16:26 http://pastebin.com/iZ0TbqyN Aug 26 11:16:35 You can likely get away with using Androids builtin JSON Api... Aug 26 11:16:54 oh.. so? Aug 26 11:17:13 Estel: http://imgur.com/QwX1O59 Aug 26 11:17:32 my problem is how i can read the data http://pastebin.com/iZ0TbqyN Aug 26 11:17:40 threenuc: you didn't import the activity class Aug 26 11:17:46 Sorry for just throwing every problem I have at you but I'm really new and I don't even know what do those errors mean. Aug 26 11:17:47 Oh okay Aug 26 11:17:51 hackable: Stop posting the same link over and over! Aug 26 11:18:06 ok sorry! Aug 26 11:19:19 what do you think i can do to get those data? Aug 26 11:19:23 hackable: Please have a look at https://developer.android.com/reference/org/json/package-summary.html Aug 26 11:19:33 hackable: you want to parse that json? Aug 26 11:19:50 yes... the link is here http://pastebin.com/iZ0TbqyN Aug 26 11:19:56 HHRRNNNGGGHH Aug 26 11:20:20 Don´t choke Estel Aug 26 11:20:28 hackable: yes, yes i saw your link. You can look at this https://developer.android.com/reference/org/json/JSONTokener.html Aug 26 11:20:50 hackable: sorry, was that http://pastebin.com/iZ0TbqyN? Not sure if I got the link down correctly. Aug 26 11:21:12 It´s without the questionmark I think Estel! Aug 26 11:21:16 here is the link Estel: http://pastebin.com/iZ0TbqyN Aug 26 11:21:49 VnM: silly me :/. hackable: thanks again! I'll let you know if I have any more issues Aug 26 11:22:23 Estel: Is this how it's supposed to look like? I mean, the action bar is the bar where the "My First App" inscription is, right? Aug 26 11:22:24 thanks bhargavg, Flan3002... appreciate! i'm looking into what you gave me Aug 26 11:22:30 Estel: http://i.imgur.com/jnorq3g.png Aug 26 11:22:56 threenuc: yes, that's the action bar Aug 26 11:23:09 Estel: but it's not supposed to be here :| Aug 26 11:23:56 You want the bar to disappear? calling requestWindowFeature(Window.FEATURE_NO_TITLE); in your onCreate should do the trick, that or change your theme Aug 26 11:24:46 So I also have the Action Bar with API 7 without the support lib but it doesn't have the fancy functionality API 11 has? Like the option drop down menu and so on? Aug 26 11:25:10 threenuc: there's no action bar in API7 without the support library Aug 26 11:25:14 there's a grey bar with a title on it Aug 26 11:25:47 So does the pic I sent you have the action bar or the title bar? Aug 26 11:26:43 Oh, I meant *appcompat library, not the support library. Aug 26 11:27:11 bhargavg, Flan3002 since i'm having everything inside one file and each data is inside one array, i think the best method is to loop over each that... Aug 26 11:27:49 hackable: whatever you've pasted is entirely in a single file? Aug 26 11:28:03 yes.. Aug 26 11:28:16 single file Aug 26 11:29:31 so? Aug 26 11:30:06 is looping over with jsonarray the best option Aug 26 11:30:29 ?? Aug 26 12:03:12 hello Aug 26 12:31:25 What's the best solution to capture the back press when FragmentA is active? FragmentB can be shown after FragmentA is visible Aug 26 12:40:09 Hello all, I'm looking for some help with adding a text element to a view. Aug 26 12:40:33 Would appreciate any help. Please PM me. :) Aug 26 12:41:58 ahmadux: tell it here what you already got, people will help you here too Aug 26 12:42:27 Got it. I posted the problem here on stackoverflow: http://stackoverflow.com/questions/25462256/android-adding-text-to-a-view Aug 26 12:42:50 But I couldn't figure out how to solve it. The suggestion was a bit ambigious. Thanks! Aug 26 12:48:39 i deleted my project from eclipse Aug 26 12:48:43 then imported it again Aug 26 12:49:57 now it cant import and says, abc overlaps the location pof another project:"abc" Aug 26 12:50:12 invalid project description Aug 26 12:50:35 What's going wrong here, because the project was deleted from eclipse by me then why is this error occuring Aug 26 12:51:58 pifon: Android studio is pretty neat Aug 26 12:52:25 ok Mrdarknezz but is there a quick fix for this right now? Aug 26 12:52:59 pifon: Did you delete the project files from the Eclipse workspace folder? Aug 26 12:53:08 no Aug 26 12:53:25 ill move them out and try improting from a diff locatio Aug 26 12:53:27 Are you trying to import it from another location or the same workplace location? Aug 26 12:53:34 same location ahmadux Aug 26 12:53:37 yes, I thought of the same solution. Might work. Aug 26 12:53:43 Wait Aug 26 12:54:03 When you import, are you importing it and having Eclipse copy it into the same folder? Aug 26 12:54:08 THe check box Aug 26 12:54:58 nice that worked Aug 26 12:55:04 Nice :) Aug 26 12:55:29 Possibly could you take a look at the problem, I'm having? http://stackoverflow.com/questions/25462256/android-adding-text-to-a-view Aug 26 12:55:40 Would appreciate some help :) Aug 26 12:56:04 ok Aug 26 12:56:34 Thanks Aug 26 12:59:07 is there a place in the google console to add keywords for the app? also I'm looking for a guide of promoting apps if anyone knows a good one Aug 26 13:01:23 I need app which will communicate with server via websocket while diffrent activity are started. But I need to open connection when app started and stop when app stop, is best to create service or I can open/close websocket in class which extends Application ? Aug 26 13:05:10 neither Aug 26 13:05:26 make a singleton Aug 26 13:05:47 and use activitylifecyclecallbacks to know when your last activity is finished Aug 26 13:08:02 BoD`, I'm planning use this library: https://github.com/koush/android-websockets for websocket communication, but can I override methods out of class, example in my activity to override the method onMessage ( to change text of textView when message ) Aug 26 13:08:26 sorry I don't know this lib Aug 26 13:09:44 Sorry to interrupt, but I would appreciate any help with this problem I'm having: http://stackoverflow.com/questions/25462256/android-adding-text-to-a-view Aug 26 13:09:47 Thanks in advance! Aug 26 13:09:57 BoD`, which library do you recommend for websocket ? Aug 26 13:10:28 Sorry I've never used websockets. Aug 26 13:11:35 BoD`, ok np, Is possible to make my event listener in java ? Aug 26 13:12:37 not sure what you mean exactly, but... yes :) Aug 26 13:12:54 Yes it's possible. Depends what you're trying to do Aug 26 13:19:00 "Failed to contact Google servers. Another attempt will be made when connectivity is established." on google map for android Aug 26 13:19:15 what it's means? Aug 26 13:21:40 Are you using the emulator or a phone to test your app? Aug 26 13:29:26 Trying to add a text element to a text view, but haven't had anyone find the right solution. I would appreciate any help with this problem I'm having: http://stackoverflow.com/questions/25462256/android-adding-text-to-a-view Aug 26 13:34:59 xan_IT: did you fail to give your app internet permissions? Aug 26 13:52:12 If a AndroidTestCase fails a test with "Test failed to run to completion.” is there a way to get it to run the rest of the tests or should I have to declare them in a different class? Aug 26 14:05:49 why startActivityForResult(new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI),11); return immidatally RESULT_CANCEL? Aug 26 14:06:30 You can't use startActivityForResult() if your activity is being launched as a singleInstance or singleTop. Aug 26 14:06:54 :/ Aug 26 14:08:26 or rather, singleTask... Aug 26 14:08:30 thanks BoD` I was working on it for a while :/ Aug 26 14:08:51 it's actually in the doc of startActivityForResult :) Aug 26 14:09:34 yoavst, so how many times are you going to ask this same thing? Aug 26 14:09:51 ravilov: Well, I didn't get the answer until now Aug 26 14:10:43 Another classic case of RTFM ;_; Aug 26 14:11:04 could've done that right away instead of asking half a dozen times Aug 26 14:11:57 EdGeorge: I was reading the source of the contacts app :/ not the right menual probably Aug 26 14:12:55 I'm using ubuntu 12.04, I want to pipe my audio output as my audio input for a recording app Aug 26 14:13:04 how do I do that? Aug 26 14:13:26 javnut: that doesn't sound like an Android question? Aug 26 14:13:38 yoavst Yer you should have checked http://developer.android.com/reference Aug 26 14:15:18 Estel: ok, let me rephrase that. Do the android emulator just record from the default input like every other application? Aug 26 14:15:58 javnut This may be relevant: http://goo.gl/RprSnr Aug 26 14:16:13 I´m not sure the default Android emulators support microphone Aug 26 14:17:08 You might have to specify when creating an emulator...but again, I am not sure Aug 26 14:17:11 Works on Genymotion, I think. Aug 26 14:17:38 EdGeorge: I've done all that, I was originally developing on windows and recording worked Aug 26 14:18:48 but I decided to switch to linux and now the same apps don't record my output sound Aug 26 14:19:22 even though the default audio recorder on linux does Aug 26 14:19:54 Hi there, Aug 26 14:20:20 Hi there. I'm using phonegap to build an application that gets the geolocation. It works great with a physical device, but it does nothing in my AVD. Logcat shows nothing. Any help will be appreciated Aug 26 14:20:25 I know Android Studio is still in Beta, but I've seen that it's almost reach the v 1.0 (0.8.4) Aug 26 14:20:27 Is timing out Aug 26 14:20:37 javnut, did you bother to check the docs by any chance? http://developer.android.com/tools/help/emulator.html Aug 26 14:20:44 I'd like to hear from those of you who have already use it Aug 26 14:21:11 zoraj: it's usable Aug 26 14:21:12 zoraj: right now #4 best IDE that I use - be higher once the Gradle integration gets better Aug 26 14:21:20 maybe #5 Aug 26 14:21:28 zoraj, 0.8.4 is as close or as far from 1.0 as anything and even reaching 1.0 says nothing about usability Aug 26 14:22:06 * xximjasonxx is just happy Google finally got wise and said goodbye to the Eclipse plugin Aug 26 14:22:07 I will download it a give a try but I still want to hear from you who use it for longtime Aug 26 14:22:13 now if they would just buy genymotion I will be set Aug 26 14:22:16 zoraj: it's far better than Eclipse... Aug 26 14:22:24 Estel: really isnt saying much Aug 26 14:22:28 :) Aug 26 14:22:34 No, but that's the comparison, right? :P Aug 26 14:22:35 it's beta Aug 26 14:22:44 Pft stop hating on Eclipse Aug 26 14:22:52 == not ready for real work Aug 26 14:22:56 Estel: how is it compared to the IntelliJ plugin we all used before Studio was launched? Aug 26 14:23:07 ok, layout designing work well ? Aug 26 14:23:10 Estel: I wouldnt say that, I am at work working on an Android app for a client and I am using studio Aug 26 14:23:15 debugging works well ? Aug 26 14:23:19 zoraj: dont ask me, I still love my XML Aug 26 14:23:19 svn integration ? Aug 26 14:23:21 zoraj: ues Aug 26 14:23:23 *yes Aug 26 14:23:25 * ravilov is a proud user of a perfectly functional eclipse setup Aug 26 14:23:25 xximjasonxx: you mean BoD`, I think Aug 26 14:23:33 Estel: yup I meant BoD` Aug 26 14:23:43 zoraj: I've had the misfortune of using the SVN integration; it's fine. Aug 26 14:23:51 ok Aug 26 14:24:01 its work well enough with Git, though I still keep Source Tree running Aug 26 14:28:20 I mean if they decide to break everything in the next update Aug 26 14:28:35 zoraj: in my mind, aside from the Gradle stuff and BoD` point, i think its ready to be used for work Aug 26 14:28:36 well... it's beta, what'd you expect :) Aug 26 14:29:09 just be careful with the updates. I had an update kill two hours a couple weeks ago, Gradle changes Aug 26 14:29:50 just wondering.... Is it better to organize classes into packages say "com.example.android.activities" then have the class name as "Main"? Or should the class name still be "MainActivity"? Aug 26 14:30:08 if you are really unsure, use IntelliJ until its ready. Either option is 1000x better than Eclipse Aug 26 14:30:16 f00dWorksta: convention says MainActivity Aug 26 14:30:32 OO convention in general says that Aug 26 14:30:32 BoD`: ok I was trying to find the convention online to no avail Aug 26 14:30:36 xximjasonxx, ok thanks, let's download the beast Aug 26 14:30:51 what about migrating ADT project to Android Studio ? Aug 26 14:31:03 supported Aug 26 14:31:07 ok Aug 26 14:31:08 same with IntelliJ Aug 26 14:31:14 There are instructions on their tools site, the difficulty depends on the complexity of the project Aug 26 14:31:19 ok, I've never use IntelliJ Aug 26 14:31:20 *nods* Aug 26 14:31:32 zoraj: Studio is effectively a skinned version of IntelliJ Aug 26 14:31:43 ok Aug 26 14:31:45 geared specifically to Android, IntelliJ is targeted at Java Aug 26 14:32:04 but it gained immense favor as an alternative to Eclipse, so much so that Google went and created an Android specific version Aug 26 14:32:21 xximjasonxx: ok, so packages are mainly for member access control? or just class organization? Aug 26 14:32:31 as in file organization Aug 26 14:32:39 i use it principly for organization Aug 26 14:32:51 though, you can certainly hide certain things within packages Aug 26 14:32:52 ok cool thanks :) Aug 26 14:33:13 It's just like the Eclipse ADT bundle. Android Studio is IntelliJ with the Android Plugin builtin... Aug 26 14:33:14 f00dWorksta: but in Object Oriented programming, it is generally considered good practice to have the class name mention its parent Aug 26 14:33:20 unless your parent is Object Aug 26 14:33:21 can i have a button set to layout_height="match_parent" and maxHeight at the same time? that doesn't seem to work... Aug 26 14:33:24 ok Aug 26 14:33:28 * xximjasonxx looks at Objective-C Aug 26 14:34:37 Studio + Genymotion = love Aug 26 14:35:06 sqrrl: I'm not sure that really makes sense? Aug 26 14:35:47 Estel: i want the button to be from 0 to maxHeight high, depending on containter height Aug 26 14:37:26 sqrrl: what drives the containers height? Aug 26 14:37:40 another element inside it Aug 26 14:38:09 off the top of my head I dont know precisely how to do what you are intending Aug 26 14:39:10 it's silly that maxHeight just doesn't work :| Aug 26 14:40:16 as a wise programmer once said "select is not broken" Aug 26 14:40:20 Dunno if RelativeLayout paramaters would work with maxheight? Aug 26 14:41:06 mhm good question Aug 26 14:41:28 should try that, thanks for the tip Aug 26 14:41:38 Hello friends... please what is the best method to add admod to listview baseadapter Aug 26 14:42:17 "admod"? Aug 26 14:44:44 I would like to make an app for a game I play. Basically a crafting guide for the game. I am not sure where to look for examples or thoughts into making almost a database of items and crafted results. Aug 26 14:45:12 I think a table would be fine but I would want to have it searchable with predictive text and what not. Aug 26 14:45:40 zanzacar: would you want this database to be on the device or hosted somewhere behind an API? Aug 26 14:46:26 I think on the device would be the easiest. It doesn't have to be a database it could be some kind of large array or hash or something like that too. Aug 26 14:46:29 "This game" absolutely isn't Minecraft... Aug 26 14:46:38 nope not minecraft Aug 26 14:46:57 wouldn't that be a very large list since minecraft you can create anything? Aug 26 14:47:28 zanzacar: so Sqlite is one option for storing data on the device Aug 26 14:47:50 however, I must say, you would be limiting yourself as people would only ever have their own data. Sharing would be more difficult Aug 26 14:48:13 well that game only has so many crafting possibilities. Aug 26 14:48:32 zanzacar: Go with an sqlite table Aug 26 14:48:43 if offeres all that you want incl. live text searching Aug 26 14:48:48 if Sqlite, I recommend Ormlite to sit in front of it Aug 26 14:49:20 do you have any references for me to look at for using sqlite? Aug 26 14:49:32 xximjasonxx: definitivly. Although it doesnt hurt do do it without once, to understand whats behind it.. Aug 26 14:49:34 not off the top of my head, but Google has aplenty Aug 26 14:49:41 danijoo: touche Aug 26 14:49:45 Something like this would be great https://play.google.com/store/apps/details?id=com.ChicaneryGames.PathfindersSpellbook&hl=en Aug 26 14:49:45 google -> android documentation database Aug 26 14:51:18 hy all Aug 26 14:51:40 can I use somehow the proximity sensor for infra communication? Aug 26 14:51:58 Uhm... Aug 26 14:52:04 got me on that one Aug 26 14:52:18 awesome I will look into the database documentation but I am uncertain how to represent the database onto the activity pages. Aug 26 14:52:32 I will just keep looking around for google suggestions or something Aug 26 14:52:41 zanzacar: thats explained there Aug 26 14:52:59 zanzacar: have you ever written an application which talks to a database in the past? Aug 26 14:53:51 xximjasonxx: no I haven't, this is hopefully a stepping stone into that. Aug 26 14:54:07 tbh, I would recommend doing something outside a mobile database first Aug 26 14:54:37 php against mysql is always a good starting point I think Aug 26 14:54:50 zanzacar: usually you use a database cursor and a listview and an adapter Aug 26 14:54:50 zanzacar: it its only... lets say under 100 entries, you could also store them in a file Aug 26 14:54:53 others may disagree, but I really think your first DB as Sqlite on Android is a bit daunting Aug 26 14:55:14 *xperience Aug 26 14:55:23 zanzacar: but i agree w/ the others - if you don't know, for example, what a cursor is in context of databases, try something more interactive and simpler first to get a handle on DB ops Aug 26 14:56:37 hi Aug 26 14:56:48 bueno Aug 26 14:56:56 ok so lets try something simpler and I can improve on the app as time goes on. If a database would be the best end goal what would be a reasonable starting point? Aug 26 14:57:03 Just a listview with everything init? Aug 26 14:57:18 where will the listview get its data from? Aug 26 14:57:36 I don't know, maybe just hardcode it in for starters? Aug 26 14:57:54 if possible have it read maybe a xml document, or parse a text file or something Aug 26 14:57:56 sure, that would help you understand how Adapters and Listviews work Aug 26 14:57:57 can i uh.. force-push in android studio? Aug 26 14:58:19 frankly you are coming in at a great time, since L will introduce a proper ListView control :) Aug 26 14:58:33 sqrrl: probably not, the VC stuff in Studio is still limited Aug 26 14:58:39 I recommend Source Tree for VC Aug 26 14:58:51 * xximjasonxx has problems with Studio commiting files correctly Aug 26 14:58:55 from time to time Aug 26 14:58:59 gah i ticked amend Aug 26 14:59:04 and now i'm stuch Aug 26 14:59:08 stuck* Aug 26 14:59:58 last test on this app then switch gears over to Xamarin for the other app I am working on Aug 26 15:00:41 xximjasonxx: What is L and how will they be chaing the ListView control? also when would that be happening? Aug 26 15:01:01 L is the next version of Android (Level 20 I think) Aug 26 15:01:04 21 Aug 26 15:01:06 they got a RecycledListView Aug 26 15:01:26 which basically encorporates all of the best practices that you have to do manually today Aug 26 15:01:29 I need to use webservice (kind of catalogue of rss feeds) I have an activity that has endless list reading partially those feeds items from webservice. What approach would you use to communicate with webservice: AsyncTaskLoader? Service? Aug 26 15:01:32 ViewHolder specifically Aug 26 15:01:38 *RecyclerView ? ^^ Aug 26 15:01:45 Intresting and whats the benefit? ALso would it be backwards compatibile? I don't want to develop and app only for the latest OS since I wouldn't even be able to ues that Aug 26 15:01:46 * xximjasonxx still votes its going to be called Licorice Aug 26 15:01:48 Estel: :P Aug 26 15:01:58 zanzacar: its two separate controls Aug 26 15:02:25 what is listview and recycledlistview? Aug 26 15:02:43 zanzacar: you will have to read about them, and its RecyclerView as Estel said Aug 26 15:03:16 in your case, you neednt worry about L Aug 26 15:04:14 ok sounds good so I will not read up on sqlite right now and look into ListView and see what it offers and see if I can get an app put together for now. Aug 26 15:04:31 then after release see about implementing all the "nice" features that I would want to add in. Aug 26 15:07:17 hey guys Aug 26 15:07:33 yo Aug 26 15:08:41 is there a way to delete beta builds from Google Play? I want to update what I have on there but since the version number has not changed it’s complaning. Aug 26 15:09:14 not as far as I know. You need to update your version number. Aug 26 15:09:50 you don't have to change the version string, but you do have to change the number Aug 26 15:10:17 thenovelist, just increase the counter by one the version (displayed in store) can be the same Aug 26 15:10:45 hm Aug 26 15:12:05 it’ll be annoying to have the string and number out of sync Aug 26 15:13:15 well if you think about it its a nice versioning system. so you can change version-scheme for your app but still having the play store know which one is "newer" Aug 26 15:13:29 if you switch from something like 1.0a , 1.0b to 1.1.1 , 1.1.2 etc Aug 26 15:14:44 I personaly increment a number after each build Aug 26 15:15:05 its great Aug 26 15:15:12 it is unrelated to the "displayed" version number Aug 26 15:15:13 just dont think of that number as the version Aug 26 15:15:20 yeah Aug 26 15:15:24 its just a counter telling google play store when to update Aug 26 15:15:30 exactly Aug 26 15:15:40 user will never see it Aug 26 15:17:21 somebody? Aug 26 15:17:33 can I use somehow the proximity sensor for infra communication? Aug 26 15:17:44 "infra"? Aug 26 15:18:10 infrared Aug 26 15:18:13 i think Aug 26 15:18:18 irda Aug 26 15:18:24 aww good old times Aug 26 15:18:25 wtf :) Aug 26 15:18:37 gregtom6: you can use it to sense proximity Aug 26 15:18:45 hence, the name Aug 26 15:19:08 eeyup Aug 26 15:19:16 gregtom6: the proximity sensor returns only a distance to the nearby object Aug 26 15:19:35 the hardware sensor itself might be using IR but it cant be used any other way than as proximity Aug 26 15:19:52 BoD`: I don't believe that Aug 26 15:20:01 since there are a lot of TV remote control application Aug 26 15:20:02 I doubt you can toggle it fast enough to to IO Aug 26 15:20:06 ktwo, the issue is I don’t want to use google play to test my builds. But I have to to see that MP invites are working. Aug 26 15:20:08 what uses IR Aug 26 15:20:17 Estel: I don't think so Aug 26 15:20:20 gregtom6: remote control apps are linked to devices with ir blaster hw Aug 26 15:20:24 Hi all; can someone please please please check this problem and tell me if this is android bug? http://stackoverflow.com/questions/25504606/alarmmanager-with-elapsed-realtime-wakeup-not-updating-pendingintent Aug 26 15:20:29 remote control apps use a IR blaster Aug 26 15:20:34 gregtom6: specifically, the galaxy s4, s5, and a few LG devices. Aug 26 15:20:35 gregtom6: thats because there are devices with IR Aug 26 15:20:46 dragorn: and what do you think? what is the proximity sensor? :D Aug 26 15:20:59 it's a sensor Aug 26 15:20:59 danijoo: what is the proximity sensor? that's not IR? Aug 26 15:21:00 :D Aug 26 15:21:01 gregtom6: It's an IR led and a sensor, not a high speed IR led Aug 26 15:21:04 for proximity Aug 26 15:21:13 IR sensor is ir Aug 26 15:21:24 proximity sensor is for.. well proximity :D Aug 26 15:21:26 gregtom6: Unless you can get ~36KHz out of the prox sensor toggling Aug 26 15:21:30 gregtom6: it ain't gonna work Aug 26 15:21:36 I don't know why can't I send datas throught the IR led Aug 26 15:21:40 plus it's extremely low power. It's designed to get a reflection off your big ugly face Aug 26 15:21:52 dragorn: I don't want to use that for TV Aug 26 15:21:53 it doesn't have a focusing lens on it Aug 26 15:22:07 because what you're trying to do X with something that was designed to do Y? Aug 26 15:22:14 -what Aug 26 15:22:21 BoD`: I'm a researcher, that's why Aug 26 15:22:24 again: it WILL NOT WORK FOR COMMS. It's not meant to do comms. The hysterisis is all wrong. Aug 26 15:22:26 yea infrared needs a blaster no other way Aug 26 15:22:39 If you want to do ghetto IR, wire up to the microphone and headphone jack Aug 26 15:22:41 the only thing you can do is to attach an IR-LED to audio port Aug 26 15:22:56 You can sometimes leech enough power, otherwise you'll need a battery pack and a transistor or two. Aug 26 15:23:02 You might be able to send data that could be interpreted by a custom receiver? Aug 26 15:23:12 You can reverse bias the LED and use it as an IR sensor that way, too Aug 26 15:23:18 it's a SENSOR Aug 26 15:23:20 it senses Aug 26 15:23:26 it doesn't transmit Aug 26 15:23:27 though you'd be better off getting a real IR RX and plug it into the microphone jack Aug 26 15:23:41 Sure, but if we're talking about theoretical hacking of the system :P Aug 26 15:23:49 BoD`: it turns on an IR led and senses reflections. But no way in hell you're going to get high speed toggling of that. Aug 26 15:23:51 technically Aug 26 15:23:59 all sensors do transmit, that is how they sense Aug 26 15:24:08 why do I need high speed? Aug 26 15:24:09 xximjasonxx: nope Aug 26 15:24:13 it would be good in low speed too Aug 26 15:24:21 xximjasonxx: so what does my microphone transmit, exactly? xD Aug 26 15:24:28 or the magnetometer? Aug 26 15:24:33 something :) Aug 26 15:24:36 or the GPS? Aug 26 15:24:43 nothing that's what :) Aug 26 15:24:47 so can't I do that? Aug 26 15:24:47 camera.. Aug 26 15:25:06 if not, can you give me a certain description about why can't I do that? Aug 26 15:25:08 Basically-any-sensor-that-isn't-a-proximity-sensor Aug 26 15:25:25 gregtom6: because it's a sensor, not a transmitter Aug 26 15:25:32 gregtom6: no, you can't do that in any reasonable form (anything that will start getting usable results will involve more hw modding than adding a proper IR transceiver over audio jack or android accessory protocol Aug 26 15:25:37 gregtom6: well the API doesn't allow it, is the top level one. Then if you have some custom controller code: the IR LED is too low power. Aug 26 15:25:50 gregtom6: why do we have to prove what you can or can't do? Go try it and figure it out if you want to do something nonstandard. Aug 26 15:26:12 I'm pretty sure there is no way to control this LED Aug 26 15:26:17 dragorn: because I don't know how Aug 26 15:26:25 gregtom6: as a researcher, not sure IRC s the best avenue for doing research Aug 26 15:26:30 *is Aug 26 15:26:37 gregtom6: developer.android.com for starters Aug 26 15:26:47 p_l: what do you mean audio jack and ir transceiver? Aug 26 15:26:55 it was mentioned already Aug 26 15:27:07 p_l: I don't understand that Aug 26 15:27:30 google it :) Aug 26 15:27:35 dragorn: you said wire up to the microphone and headphone jack Aug 26 15:27:36 use the headphone/microphone combo jack as analogue I/O connection and attach a powered IR transceiver to it Aug 26 15:27:41 dragorn: what do you mean? Aug 26 15:27:51 http://www.sbprojects.com/knowledge/ir/sirc.php <- you can see how an infrared code might look, you need to send this pattern in only about 1.2ms Aug 26 15:27:52 gregtom6: in the event that you are trying to do something vastly different from what is intended, which is what it sounds like Aug 26 15:27:53 gregtom6: http://www.irdroid.com/ Aug 26 15:28:11 google is going to be a better avenue for finding answers Aug 26 15:28:16 * StingRay_ just joined and has never seen the channel so active all in one conversation before :) Aug 26 15:28:19 wow :) Aug 26 15:28:20 most people in here help people with pratical problems Aug 26 15:28:37 StingRay_: almost like IR comms is something android lacks and many of us have tried to kluge it :P Aug 26 15:28:40 not theoretical Aug 26 15:28:45 p_l: ah, I see...so I get the values throught jack plug, right? Aug 26 15:28:50 StingRay_- i have a mission for you *hides* Aug 26 15:28:57 and there are devices that have ir built in Aug 26 15:28:58 yes. Masquarading as audio data Aug 26 15:29:05 StingRay_: is this a bug? http://stackoverflow.com/questions/25504606/alarmmanager-with-elapsed-realtime-wakeup-not-updating-pendingintent Aug 26 15:29:20 danijoo: fun fact about devices with ir blasters - there are no permissions controlling access to them Aug 26 15:29:33 danijoo: and with that, i go to lunch Aug 26 15:29:51 There aren't? Aug 26 15:29:55 There are some... hidden interfaces in AOSP that could be used to support a proper IRDA device, but you'd first need a device with it and load a ROM which exports that interface :D Aug 26 15:29:56 dragorn: well. i dont think users are scare of you shooting around with IRs to take control over there TVs :D Aug 26 15:30:01 scared* Aug 26 15:30:19 danijoo: no, but it does fall into the information leakage bucket Aug 26 15:30:24 Okay, I'm adding a method to change every TV in the area to channel 5 whenever someone uses my app Aug 26 15:30:25 true Aug 26 15:30:28 danijoo: same reason you restrict internet, etc Aug 26 15:30:41 lordgreg never seen that before, and I have tested my sched stuff like that….what phone android ver ? did you search bugs ? Aug 26 15:30:52 danijoo: not like it's a HUGE attack surface, but it's interesting Aug 26 15:31:05 Google Play reviews: "One star: great app, but my TV keeps switching over to the world's dumbest animals whenever I use it!?" Aug 26 15:31:07 StingRay_: 4.4.2. Aug 26 15:31:12 well over internet I can do serious harm. over IR I can basically change your TV. Aug 26 15:31:16 but i agree Aug 26 15:31:24 Estel: :D Aug 26 15:31:32 lordgreg could be why there was quickly a 4.4.3 and a 4.4.4 ? :) Aug 26 15:31:47 anyone here has 4.4.3 or 4.4.4? :) Aug 26 15:31:53 danijoo: as far as covert channels go it's a pretty good one, as far as other android attack services go it's not so much Aug 26 15:32:03 lordgreg, many i guess ;) Aug 26 15:32:05 lordgreg: almost everyone? :P Aug 26 15:32:06 me Aug 26 15:32:18 StingRay_: 4.4.3 was some security fixes and some random shit, 4.4.4 was openssl security fixes and not much else as I recall Aug 26 15:32:29 StingRay_: while "some random shit" oculd have fixed the scheduler, i don't recall seeing it Aug 26 15:32:38 I already see the usecases... A TV Program app where you can select what you want to watch today (maybe make a list of shows) and your phone automatically switches channels for you Aug 26 15:32:39 oh :/ and does this work for you without a problem StingRay? Aug 26 15:32:51 hi there Aug 26 15:33:15 danijoo: Except the ir blaster hw is really directional. Do it right, have a BT enabled blaster you mount in range of your tv and your phone tells THAT to do something Aug 26 15:33:35 Or just have a smart TV Aug 26 15:33:44 sounds like a million dollar idea Aug 26 15:33:48 danijoo: which is basically what some of the logitech stuff is Aug 26 15:34:11 I was wondering if anyone could give me some hints on how to control events with Notification buttons Aug 26 15:34:22 "events"? Aug 26 15:34:28 dammit. I wanted to get my patent on that one Aug 26 15:34:29 I'm getting a StackOverflowError, the stacktrace is at android.widget.GridLayout$Axis$1.walk(GridLayout.java:1393) about a thousand times with no other information. This only seems to happen on Galaxy Nexus and Nexus 4 Aug 26 15:34:43 danijoo: I built one a few years ago. At the time, android BT sucked so much it wasn't really worth continuing. HW wise it's really simple, you can do it with a attiny and a $9 BT serial module, if you really stretch it Aug 26 15:34:46 lordgreg what a bout FLAG_CANCEL_CURRENT, just create new each time ? Aug 26 15:34:51 works on Galaxy S 2 (4.4.4) and Nexus 7 (L) Aug 26 15:34:55 Basically, I'm making a audio recording app that records in the background and I want to record and stop recording with a Notification Aug 26 15:35:00 danijoo: I bet you could do it with the BT module only w/ custom firmware, but I dont' know if the clock is fast enough Aug 26 15:35:02 danijoo, well the samsung tv app tries do to it but lacks support of many devices and channels Aug 26 15:35:04 any idea how i could fix that error so it works on all phones? Aug 26 15:35:12 StingRay_: tried it too. it doesn't get cancelled (removed) either. Aug 26 15:35:31 lordgreg is this a modded android you are testing on ? Aug 26 15:35:45 the galaxy nexus is running on 4.2.1 Aug 26 15:35:46 p_l: so I would need a special IRDA rom for that? Aug 26 15:35:48 it's Sony's 4.4.2 for Xperia Aug 26 15:36:15 Syzygy: find the start of the stacktrace Aug 26 15:36:35 lordgreg could be the cause Aug 26 15:36:39 at some point, a method is calling itself Aug 26 15:36:46 which is of course problematic Aug 26 15:36:58 * StingRay_ never trusts anything but nexus, and erm…even then :) Aug 26 15:36:58 BoD`, the stacktrace ends mid sentence Aug 26 15:37:04 at android.widget.GridLayout$Axis$1.walk(GridLayout.java:1393) Aug 26 15:37:04 at android.widget.GridLayout$Axis$1.wal Aug 26 15:37:07 last two lines Aug 26 15:37:35 As a test, I started a Service which starts a Notification and there is an inner AsyncTask in there Aug 26 15:37:49 Syzygy: what's the first line? Aug 26 15:38:07 the same Aug 26 15:38:15 all lines are that Aug 26 15:38:35 well you won't be able to fix this problem if you don't have a comple stacktrace Aug 26 15:39:25 I can paste you the complete locat stacktrace if you want, but I doubt you'll be able to tell much more from that than right now. Aug 26 15:39:56 indeed I would be clueless Aug 26 15:40:03 therefore Aug 26 15:40:11 noebody can help you unless you have better traces Aug 26 15:40:15 :) Aug 26 15:40:17 Ok, one more question... AlarmManager.RTC_WAKEUP doesn't wake up if phone in deep sleep, right? AlarmManager.ELAPSED_REALTIME_WAKEUP does, right? Aug 26 15:40:23 is there a way I can enable better traces? Aug 26 15:41:38 probably not Aug 26 15:41:58 maybe you are doing something weird in your code? Aug 26 15:42:17 it works on most other devices Aug 26 15:42:24 still Aug 26 15:42:37 what is the code doing? Aug 26 15:42:41 http://pastebin.com/jLttiTtz here's the whole trace with some related log output Aug 26 15:43:06 lordgreg: both should wake the phone? Aug 26 15:43:34 Syzygy: what about the code? Aug 26 15:43:42 Estel: RTC_WAKEUP doesn't. it triggers only when i wake it myself with poweron button for example Aug 26 15:43:53 I'm looking through it right now so that i can tell you in a minute or so Aug 26 15:44:44 even if i created alarms and they're listed in dumpsys alarm... Aug 26 15:44:55 one should wake up at 6am but doesn't. Aug 26 15:45:16 it was (for example) 6:10 when i pressed power button to power up the screen and at that time it triggerd Aug 26 15:46:02 tested on different devices tho (from lg g3 to xperia z Aug 26 15:46:16 Hello Guys. I have two activities with map on my application, one suddenly just show gray tiles. And sometimes some map tile but I can't zoom or pan. Aug 26 15:46:38 (even genymotion vm) doesn't wake it up (RTC_WAKEUP). but it does with ELAPSED_REALTIME_WAKEUP. all android 4.4.2 Aug 26 15:47:39 ayy lmao Aug 26 15:48:28 BoD`, xml: root-linearlayout>horizontalscrollview. the gridlayout is created (not inflated) in code, 7 inflated linear layouts (containing two text views) are added to the gridlayout. then the gridlayout is added to the horizontal scroll view Aug 26 15:51:18 seems legit Aug 26 15:51:46 here's the only thing i've found about waking up from deep sleep: Using ELAPSED_REALTIME_WAKEUP with AlarmManager will rely on a monotonic clock starting from boot time "and continues to tick even when the CPU is in power saving modes, so is the recommend basis for general purpose interval timing" Aug 26 15:52:15 Why would a Google Maps V2 appear on one activity and on the other only gray tiles? Aug 26 15:52:36 How would you indicate that a level is cleared? my levels are displayed in a 3*5 grid. i want to indicate that 1. the user beat the level. 2. if he has the best score of all players. what are nice simple ways to do this? Aug 26 15:53:27 smitzer is this not art/design rather than code ? Aug 26 15:53:53 I thought this was general android deving? Aug 26 15:53:58 not really Aug 26 15:54:10 it's nothing to do with android if you think about it Aug 26 15:54:48 smitzer, you're better off in channels like #vidyadev or #gamedevv Aug 26 15:54:50 one v Aug 26 15:55:30 Someone already experienced this: Google Maps gray tiles in one particular Activity? Aug 26 15:55:57 I need to use webservice (kind of catalogue of rss feeds) I have an activity that has endless list reading partially those feeds items from webservice. What approach would you use to communicate with webservice: AsyncTaskLoader? Service? Aug 26 15:56:07 smitzer: for testing if a level is cleared the best solution is most often to store all enemies in an array and check if this is 0 Aug 26 15:56:21 or have a counter of num_enemies and decrement that Aug 26 15:57:17 danijoo, that is not my question but thanks. Aug 26 15:57:44 I just want to indicate to the user when choosing level if he has already played and woin it and if he has the best highscore in the world Aug 26 15:57:49 oh sorry Aug 26 15:57:54 yeah now i got it :D Aug 26 15:57:57 Okay, I'm stuck -- I want to have a gesture in a parent view, but still allow the child to work (a ListView) Aug 26 15:58:16 well this is just ui design Aug 26 15:58:19 cant help with that.. Aug 26 15:58:21 uhm. i've got inflater.inflate(android.R.layout.simple_list_item_1, parent, false), and it works fine in andoid 4.x, but in 2.x it simply displays a white rectangle. sounds like the dark theme doesn't work with the older devices. what should i do about this? Aug 26 15:58:27 in that case I would simple put a frame around it. for highest score adda stat in the corner Aug 26 15:58:50 sqrrl: Theme.AppCompat.Dark maybe? Aug 26 15:59:15 android.R.laupit.simple_list_item_1 shouldnt be theme-dependent Aug 26 15:59:18 isn't it nice when the android system classes have comments like this? : // this bit below should really be computed outside here - Aug 26 15:59:35 maybe the text just has the same color then your background sqrrl Aug 26 15:59:37 submit a patch Aug 26 16:00:28 Syzygy: http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered Aug 26 16:00:30 the holo themes are > 4,x Aug 26 16:00:43 its hilarious Aug 26 16:00:50 greymalkin: i should put that in a special values/style.xml file, right? Aug 26 16:01:01 danijoo: yup i suppose so Aug 26 16:01:25 lol touche danijoo Aug 26 16:01:26 sqrrl: as a workaround you could extend ArrayAdapter and set TextColor in it Aug 26 16:01:28 i love the 42 Aug 26 16:01:38 xximjasonxx: yeah thats the best one :D Aug 26 16:02:06 the God one is pretty good as well Aug 26 16:02:39 danijoo, I think the worst comment I made was user.getSex() //yes Aug 26 16:02:57 with the ; of course Aug 26 16:03:47 omg some of those are hilarious Aug 26 16:03:50 got some looks here at the office Aug 26 16:05:44 xD Aug 26 16:06:24 /uncomment the following line if the program manager changes her mind again this week Aug 26 16:07:21 Why would a Google Maps V2 appear on one activity and on the other only gray tiles? Aug 26 16:07:57 checkbox.toggle(); checkbox.toggle(); //magical fix, does not work otherwise Aug 26 16:08:25 // Replaces with spaces the braces in cases where braces in places cause stasis Aug 26 16:08:25 $str = str_replace(array("\{","\}")," ",$str); Aug 26 16:09:03 lol @ "drunk, fix later" Aug 26 16:10:14 xximjasonxx, that would be almost every comment for my private "at home" projects Aug 26 16:10:45 my best comment was "over caffeinated, doesnt run as fast me" Aug 26 16:10:55 but it pales in comparison to these Aug 26 16:10:58 The God one is my favorite Aug 26 16:11:50 (my problem was: http://stackoverflow.com/questions/13266901/dark-text-on-dark-background-on-alertdialog-with-theme-sherlock-light ) Aug 26 16:14:16 public GetRandomNumber() Aug 26 16:14:16 { Aug 26 16:14:16 // Chosen by a fairly rolen dice Aug 26 16:14:18 return 12; Aug 26 16:14:20 } Aug 26 16:17:43 danijoo, http://dilbert.com/strips/comic/2001-10-25/ Aug 26 16:21:36 ravilov: so true Aug 26 16:22:38 StingRay_: you here? Aug 26 16:23:16 lordgreg yeah, not sure why you want me though Aug 26 16:23:18 :) Aug 26 16:23:37 cause i want to tell you about RTC_WAKEUP or that other thing not deleting alarms -.- Aug 26 16:23:56 you mean CANCEL ? Aug 26 16:24:09 y Aug 26 16:24:14 are you sure the id's or whatever are correct Aug 26 16:24:21 mAlarmManager.cancel(mPendingIntent); is the code i called Aug 26 16:24:29 cause without a show stopping bug, I doubt this can be happening Aug 26 16:24:38 now, here's the thing... Aug 26 16:24:49 mPendingIntent was empty -.- I've never set it Aug 26 16:24:50 Q_Q Aug 26 16:25:13 no wonder it didn't get deleted -.- Aug 26 16:25:38 2nd thing, why it didn't triggered at morning? Aug 26 16:25:51 Xperia's POWER MANAGEMENT which stopped background services -.- Aug 26 16:25:55 lordgreg some special sony thing Aug 26 16:26:00 FFS Aug 26 16:26:01 yeah lol Aug 26 16:26:11 the thing with nothing in it got deleted... so nothing got deleted Aug 26 16:26:21 ravilov: exactly! :D Aug 26 16:26:25 just like you told it to Aug 26 16:26:26 lol Aug 26 16:28:02 i can't believe it i spend all day figuring out WHY alarms don't get deleted AND why they don't trigger at morninig Aug 26 16:28:09 imma go kick someone now ^^ Aug 26 16:28:11 ty all Aug 26 16:33:54 hi all Aug 26 16:37:05 when i try to build a project i get the error Aug 26 16:37:13 ant debug Aug 26 16:37:14 Buildfile: build.xml does not exist! Aug 26 16:41:17 Just submited the app :> Aug 26 16:45:24 How do you specify where your .so or armeabi folder is with android gradle plugin 0.12.2? Aug 26 16:46:46 Hello everyone, I'm struggling to send message via TCP to my "ServerApp" running on my Smartphone. I can connect and discpnnect to/from the server correctly but I can't get the datas from the InputStream of the Server. I came up with this: http://pastebin.com/MeSdTmLL but the messages aren't displayed when using "dataInputStream.readUTF()". If I us Aug 26 16:46:46 ed a predefined value for my message variable the chat is spammed with that value as soon as I send a message to the server, so I think the problem is the conversion from the inputStreamData to a string. Could someone help me out with this? Aug 26 16:51:35 Hello can someone explain this code snippet to me? http://pastebin.com/RR3N6RBF Aug 26 16:51:52 Question, even if background service is set as START_STICKY & notification put as mService.startForeground(APPLICATION_ID, note);, why can it get deleted on some devices? Aug 26 16:54:49 I am in a loop requesting a view's drawing cache, and then asking the returned bitmap for it's byte size. It is the same view I ask for each time, but every 3rd time the byte size is 1/2 what it usually is, anyone have any ideas on how to go about debugging that? Aug 26 16:59:58 can anyone help me with my issue Aug 26 17:00:23 wow Aug 26 17:00:49 are people STILL expecting someone to dedicate their full attention just to them and their issues and questions? Aug 26 17:01:52 but hes helpless Aug 26 17:02:22 HelplessJub yeah this is not 1 on 1 tutors :) Aug 26 17:03:25 hi Aug 26 17:03:50 i thought this irc was for people to learn and overcome hardships regarding android develop Aug 26 17:04:10 if you have question - ask away Aug 26 17:04:20 if someone knows the answer - he might help Aug 26 17:04:24 HelplessJub it is, but more for direct problems, the problem not being "I have not learned x, someone please teach me x" Aug 26 17:05:12 i can't find any data regarding that snippet, i looked at the android page and i didn't understand it. the code snippet is 4 lines long, i was hoping some more experienced people would be able to help if not, guide me in the proper directino Aug 26 17:05:25 HelplessJub, start by finding the documentation for all those methods, that should pretty much explain it Aug 26 17:05:47 http://developer.android.com/reference/android/view/View.html#animate() Aug 26 17:05:58 how hard is it to read docs and use search though ? Aug 26 17:06:25 like mgreg said, it's in the docs Aug 26 17:06:59 StingRay_: i understand .animate. But gogoles description of .offsetDescendantRectToMyCoords, doesnt make sense to me."Offset a rectangle that is in a descendant's coordinate space into our coordinate space." Aug 26 17:07:08 please excuse typos Aug 26 17:07:34 http://developer.android.com/reference/android/view/ViewGroup.html#offsetDescendantRectToMyCoords(android.view.View, android.graphics.Rect) Aug 26 17:07:38 seriously please Aug 26 17:07:49 :) Aug 26 17:08:00 I'm done being a search facility for you now lol Aug 26 17:08:25 yeah, those javadocs suck Aug 26 17:08:27 android docs are there, I would suggest using them Aug 26 17:08:30 StingRay_: i just quoted that documentation in my previous message...i already searched and found this Aug 26 17:08:36 "Offset a rectangle that is in a descendant's coordinate space into our coordinate space." Aug 26 17:08:41 wtf is that supposed to mean :) Aug 26 17:08:41 oh Aug 26 17:08:54 well that easy Aug 26 17:08:59 2 coord spaces Aug 26 17:09:03 im just asking for help deciphering it... Aug 26 17:09:03 child matrix Aug 26 17:09:15 transposed to parent matrix Aug 26 17:09:21 helper method Aug 26 17:10:01 so you have 2 x 2d coord systems, on is a child of the other, and you want a child of the child relative to the main parent Aug 26 17:10:01 whats needed here is good documentation, like a fucking diagram Aug 26 17:10:10 one* Aug 26 17:10:29 or rather A is the parent of B is the parent of C Aug 26 17:10:37 that method puts C into relative A Aug 26 17:10:55 as I understand it neways from that single sentence Aug 26 17:11:01 but yeah, could explain better Aug 26 17:11:32 actually balls I did not know that existed and did that manually a few days ago lol… arses Aug 26 17:12:11 if all else fails write some test code and play with it Aug 26 17:12:38 that make sense HelplessJub ? Aug 26 17:13:36 HelplessJub, no, this channel is not for tutorials and guides, it is for development discussions Aug 26 17:13:49 there are plenty other places online for tutorials and guides Aug 26 17:13:49 StingRay_: not really... I appreciate the effort in explaining..im going to continue looking for a diagram like g00s suggested..still i really appreciate the effort in explaining Aug 26 17:14:04 HelplessJub here is is in context Aug 26 17:14:19 ravilov: is this not a development discussion Aug 26 17:14:35 I wanted a android L button, but I wanted a UI bar to get the expanding shimmery thing Aug 26 17:14:47 the button sits in the bar(viewGroup) Aug 26 17:14:52 tutorials and guides are indeed a subset of development discussions... but I hope you understand what I mean Aug 26 17:14:57 the bar has the drawable that animates Aug 26 17:14:58 this is not a helpdesk for noobs Aug 26 17:15:10 * ravilov feels that should be added to the topic :) Aug 26 17:15:16 ...that nobody reads anyway, lol Aug 26 17:15:37 the user clicks the button and I get the event clck local to that view, but to start the anim I need that touch local to the ui bar which is the parent Aug 26 17:15:46 so I should have used that method :) Aug 26 17:15:55 if I had known it existed :) Aug 26 17:17:25 also HelplessJub this is the same thing http://www.java2s.com/Tutorial/Java/0240__Swing/Positionsthespecifieddialogatapositionrelativetoitsparent.htm Aug 26 17:17:38 I'm still stuck -- I want to recognize a gesture (fling/swip), but not interfere with the child views getting onClick; it seems like I have to consume the 'down' event in one view, so I can't get it in the other. Aug 26 17:18:18 this is documentation done correctly http://msdn.microsoft.com/en-us/library/windows/apps/br212661.aspx Aug 26 17:18:23 google should note :) Aug 26 17:18:48 the android guides are 'ok' but most of the javadoc is just horrendous crap Aug 26 17:19:02 if it wasn't open ssource, nobody would have a clue Aug 26 17:19:35 greymalkin, I solved a similar problem by implementing my own ViewGroup (extending RelativeLayout) and overriding onInterceptTouchEvent() Aug 26 17:19:44 pretty much all msdn docs i come across have incline examples right there Aug 26 17:19:50 *inline Aug 26 17:20:08 they should open it up like the php docs Aug 26 17:20:10 oh and by putting my entire view tree (which was just one view) into this new ViewGroup Aug 26 17:20:14 to add comment examples etc Aug 26 17:20:23 * capella finds MS docs pretty much useless Aug 26 17:21:21 MS docs have a good reputation, sorry capella :) Aug 26 17:21:26 the example video doesn't work for me Aug 26 17:21:54 "No video with supported format and MIME type found." Aug 26 17:22:01 do they rely on HTML5 video features? Aug 26 17:22:02 ravilov: That seems to have the effect that touch events on the ViewGroup (like a TextView that doesn't respond) don't come through. Aug 26 17:22:36 greymalkin, they can or they can not, depending on what you return from intercept Aug 26 17:22:52 ravilov it works OK in chome / mac - and i sure don't have silverlight installed Aug 26 17:23:16 g00s, nah, got it - I disabled HTML5 video in my browser, and they need it Aug 26 17:23:36 the world is starting to give up on flash video Aug 26 17:23:47 I've stopped looking at their site for anything meaningful ... maybe things have changed Aug 26 17:23:58 w/MS that is Aug 26 17:24:11 ravilov: firefox? Aug 26 17:24:15 ...or not Aug 26 17:24:20 doesn't work in chrome (iron) either Aug 26 17:24:23 p_l, yes Aug 26 17:24:24 ravilov: you don't have h.264 Aug 26 17:24:35 welcome to the crippled world of mozilla ;) Aug 26 17:24:45 p_l, I just tried in chrome, same thing Aug 26 17:24:51 I represent that :) Aug 26 17:24:51 I don't even get any message there Aug 26 17:25:09 ravilov: Iron probably wouldn't have h264 either, and I think it was nuked in some chrome version Aug 26 17:25:20 well that's inconvenient Aug 26 17:25:37 can't decide which is worse, browsers not supporting that format, or sites depending on it Aug 26 17:25:45 browsers Aug 26 17:25:59 even worse is browsers suggesting decoding in JS Aug 26 17:26:07 ok, works in official chrome Aug 26 17:26:18 decoding... video?! Aug 26 17:26:19 in js?! Aug 26 17:26:21 yes Aug 26 17:26:22 is that even possible? Aug 26 17:26:45 actually Aug 26 17:26:47 I don't want to know Aug 26 17:26:50 ravilov: on PC desktops? Yes, with that gigantic crotch rocket that desktops CPUs are, we can push a turd like JS fast enough Aug 26 17:26:53 too late Aug 26 17:26:54 * ravilov is in the happy place... Aug 26 17:26:55 * ravilov is in the happy place... Aug 26 17:26:56 * ravilov is in the happy place... Aug 26 17:26:57 * ravilov is in the happy place... Aug 26 17:27:00 bah not working Aug 26 17:27:40 p_l, I bet google's V8 had something to do with that Aug 26 17:27:52 I dislike chrome a lot, but I'll admit that engine is blazing fast Aug 26 17:28:09 ravilov: it helped promote the idea, but Mozilla's "only JS! ONLY JS!" doesn't help :) Aug 26 17:28:21 lol Aug 26 17:28:23 well Aug 26 17:28:44 firefox's UI is done in XUL which is a mashup of XML, HTML, CSS, and... JS Aug 26 17:29:15 danijoo: I think it's not easy to patent on something Aug 26 17:29:38 ravilov: I don't hate XUL, it lets some awesome things happen that I miss everyday in Chrome. I mind the 'let's not replace NSPlugin with something modern, instead push everything into JS" Aug 26 17:29:54 gregtom6: in usa? It's a question of your wallet Aug 26 17:30:13 given how I've seen people patent RLE in post year 2000... Aug 26 17:30:51 p_l: I don't know how to make patent Aug 26 17:31:41 but I don't think it is easy, I mean I think it needs a long description, a tons of money and to be able to go throught some kind of rights Aug 26 17:32:50 your main requirement is skill in BS Aug 26 17:38:31 Has anyone set up push notifications before? Aug 26 17:40:18 p_l: what kind of AOSP interfaces did you mean? Aug 26 17:40:25 this was the IR topic Aug 26 17:40:46 gregtom6: there's an interface for serial port hw in AOSP Aug 26 17:40:53 it's not normally exposed to user application Aug 26 17:41:34 p_l: serial port is for ir communication, just like if you use bluetooth for communcation? Aug 26 17:42:28 p_l: and about the patent topic, what did you mean BS skill? Aug 26 17:42:39 how much time approx does it take for an app to be available in play store since you've moved it into production? Aug 26 17:42:43 gregtom6: yes. IRDA gave you serial port, so you'd have to add an IRDA port to your device, make it accessible to kernel, and use serial port api Aug 26 17:42:57 gregtom6: bullshitting patent office official Aug 26 17:43:27 StingRay_: i think i get it now. Getting a rectangle from View B, gets a copy of A which is C. then offsetdescendantRect... brings C into A's relative perspective, correct? Aug 26 17:47:12 p_l: what are the steps to do this? I think I need to download the AOSP rom, modify something in that and compile the kernel? Aug 26 17:47:28 gregtom6: and make a device with IRDA in the first place Aug 26 17:48:07 p_l: but I think I need to do this in the kernel itself Aug 26 17:48:37 gregtom6: you need to first build a device that will have the necessary parts Aug 26 17:49:01 or maybe just add a small arduino driving an irda transceiver and attach it over android accessory protocol... Aug 26 17:49:14 no device on market has anything built-in Aug 26 17:49:34 gregtom6 what were you trying to do? i must have lost it in my history Aug 26 17:50:05 IrDA... wow. welcome to 15 years ago. Aug 26 17:50:32 as great as it was back then, we have much better solutions now. may it rest in peace. Aug 26 17:50:41 how do i set text alginment in "can you turn off the overhead light? i need to transfer a file. thanks." Aug 26 17:51:05 yeah ... haven't heard much about irda lately; but there is some really cool research going on with open-air optical networks over lightbulbs / leds, etc Aug 26 17:51:40 g00s: now I try to do communication with proximity sensors between two phones Aug 26 17:51:44 technology in general has come a long way since the mid-90s. Aug 26 17:51:53 gregtom6: why not bluetooth? Aug 26 17:52:04 lewellyn: it's not important Aug 26 17:52:35 well, you're not going to find much doing irda anymore. :P Aug 26 17:53:03 lewellyn: because the irda needs to be exactly there, where I point Aug 26 17:53:17 and bluetooth towards everywhere Aug 26 17:53:21 that's why Aug 26 17:53:30 irda's not as secure as bluetooth, honestly. Aug 26 17:53:45 you can pick up irda over security cameras and decode it on-the-fly. Aug 26 17:54:05 yummy lunch!! Aug 26 17:54:06 lewellyn: my friend (boss, but rather a friend) said to make a research about doing this Aug 26 17:54:12 and it's interesting Aug 26 17:54:17 so forget about bluetooth Aug 26 17:54:25 could it be that GridLayout fucking sucks somewhat before 4.4.4? Aug 26 17:54:38 xximjasonxx: lunch? it's almost 8:00 p.m. Aug 26 17:54:40 gregtom6: there are much better technologies out there. bluetooth 4.0 does far more than irda ever did and avoids casual eavesdropping attacks. Aug 26 17:54:52 xximjasonxx: in here, at least Aug 26 17:54:53 gregtom6, timezones Aug 26 17:55:02 but you may well need to build a transciever and bitbang it from your app. Aug 26 17:55:03 cst (chicago) Aug 26 17:55:24 utc in here? Aug 26 17:55:42 i'm not even sure where to find a reliable stock of good irphys anymore. once they gave up on 10gbit irda, the supplies all kinda dried up. Aug 26 17:55:47 what do you guys use for analytics in your apps? Aug 26 17:55:55 Google Analytics Aug 26 17:55:58 he's probably in central europe somewhere Aug 26 17:56:03 Afzal: something i built myself. :) Aug 26 17:56:10 lewellyn, why? :p Aug 26 17:56:17 Syzygy were you having problems with GridLayout ? Aug 26 17:56:18 because he likes punishment Aug 26 17:56:20 :) Aug 26 17:56:24 g00s, yes. Aug 26 17:56:29 Afzal: because my needs differ from most developers, who target consumers. Aug 26 17:56:32 but not on 4.4.4 ? Aug 26 17:56:41 ah okay, makes sense. Aug 26 17:56:46 4.2.1 is the newest OS where my gridlayout stackoverflows. 4.4.4 is the oldest it doesn't (don't have any inbetween devices to test it better) Aug 26 17:57:03 oh, well maybe ART Aug 26 17:57:20 there aren't any cloud based analytics services which can ensure that your analytics data meets your organization's regulatory compliance needs. :P Aug 26 17:57:26 not sure if my android L tablet runs art Aug 26 17:57:29 probably Aug 26 17:57:38 Syzygy it would by default i imagine Aug 26 17:57:39 let me deactivate ART on my galaxy s 2 Aug 26 17:57:51 so, i had to write one. :) Aug 26 17:57:54 but that ART and L ART will be quite different Aug 26 17:58:11 Syzygy: android L runs *only* ART, afaik Aug 26 17:58:19 g00s: well, it will be newer, that is :) Aug 26 17:58:22 ok, well, I can switch it on my 4.4.4 phone Aug 26 17:58:22 yeah Aug 26 17:58:48 somewhere Aug 26 17:58:51 ....where? Aug 26 18:00:16 Good evening! Aug 26 18:00:21 hey anybody here work with OpenCV ? I'm having a hell of time getting a freame to be read in properyl Aug 26 18:00:39 lmap Aug 26 18:00:43 i am such an idiot Aug 26 18:00:55 ben struggling with this color for the past half hour trying to get it to match the wireframe Aug 26 18:01:20 then I happened to drag it off the external monitor Aug 26 18:01:23 boom, colors are perfect Aug 26 18:01:38 i need duel apple monitors Aug 26 18:02:10 anyone have experience with push notifications wtih GCM? Aug 26 18:02:28 XxBlakeFailxX: some, i tend to use a service like Azure or Parse though Aug 26 18:02:54 what is the issue? Aug 26 18:03:01 using Push Sharp for the back end Aug 26 18:03:46 got some experience with that, we just deployed that for a client, thank your Urban Airship for removing that feature from yoru service Aug 26 18:03:47 batstards Aug 26 18:03:53 whats the problem? Aug 26 18:04:06 I'm pretty new at android development and have been trying to follow several different tutorials including the one on the android site and I just can't seem to actually get it to work. Aug 26 18:04:18 where are you getting stuck? Aug 26 18:04:24 actually sending it or receiving it from Android? Aug 26 18:04:27 *within Aug 26 18:04:52 I believe the issue is more than likely in the client portion Aug 26 18:05:12 yeah from what i remember, Android is the hardest of the three platforms for push Aug 26 18:05:14 btw. some nexus phones have a bug with notifications Aug 26 18:05:25 not sure what exactly Aug 26 18:05:34 it has been a while Aug 26 18:06:02 well I really could just be missing something entirely that is obvious, I just picked up mobile development as a whole on monday Aug 26 18:06:11 of last week Aug 26 18:06:20 XxBlakeFailxX: do you understand the concept of Push and how it works? Aug 26 18:07:15 Probably not, I think on a general level there is the GCM which is like a bridge between the server code and the client Aug 26 18:07:24 in a sense Aug 26 18:07:40 basically, your service, wherever that lives contacts GCM and asks it send a message to a particular token Aug 26 18:07:41 the server will push a message up to GCM and this will direct it to the client app and the client app receives it Aug 26 18:07:43 g00s, it seems the crash is indeed related to the runtime rather than to the OS/Phone Aug 26 18:07:58 Has android bluetooth enabling changed significantly, /*intent enabler = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);*/ not work anymore? Aug 26 18:08:05 ideally you would have that token stored somewhere within your service. The token is generated when the client (phone) regusters for Push Notifications Aug 26 18:08:18 Syzygy you still on with the stackoverflow ? Aug 26 18:08:30 in Androids case, when a notification is received, it raises an Intent that you handle within your client app Aug 26 18:08:43 handling this intent must be done in a very specific way, from what I remember Aug 26 18:08:47 yeah, i mean i've tried working out a database is locked error I get on another phone as well Aug 26 18:08:58 but i have fixed neither so far Aug 26 18:09:01 I get the intent in GcmBroadcastReceiver Aug 26 18:09:06 which passes it over to GcmIntentService Aug 26 18:09:13 kype that is kinda buggy! Aug 26 18:09:21 sounds like you are most of the way there then Aug 26 18:09:29 i tried it and had a malformed dialog on the screen; a really silly bug Aug 26 18:09:40 Or at least I think I do, hold on let me jist real quick and maybe you will see something obvious Aug 26 18:09:43 g00s: So would u suggest _bluetooth.enable(); then? Aug 26 18:09:44 Syzygy you looked at gridView src though right ? Aug 26 18:09:56 kype well, you have to show some UI asking the user first Aug 26 18:10:00 the layout topology stuff Syzygy Aug 26 18:10:19 XxBlakeFailxX: this is my GCMIntentService from a presentation i gave on push notifications last year: https://github.com/xximjasonxx/PushNotifications/blob/master/AndroidPush/src/com/farrellsoft/example/pn/GCMIntentService.java Aug 26 18:10:35 kype https://code.google.com/p/android/issues/detail?id=60002 Aug 26 18:10:45 so basically, this was working fine in 2.2 and .. up to some point Aug 26 18:11:02 nice to know my users were seeing garbage on 4.3 Aug 26 18:11:29 g00s: Ah its present on 4.4 also. Funny my app just crashes Aug 26 18:11:31 StingRay_, GridLayout. I kinda did, but this is the line I'm seeing the error on: Interval span = arc.span; Aug 26 18:12:18 yeah so I had a quick look when you posted, I'm not sure how you could get recursion there without other exceptions being thrown Aug 26 18:12:34 finally chrome x64 on windows Aug 26 18:12:35 magic mostly Aug 26 18:12:37 but well done fro doing it Aug 26 18:12:39 :) Aug 26 18:12:42 for* Aug 26 18:12:50 Magic Aug 26 18:12:54 g00s: Ill stick with force enable for now, thanks mate Aug 26 18:13:02 i do my best StingRay_ Aug 26 18:13:39 Syzygy tbh I think all that is triggered onLayout, so if somehow you could link views creating a cycle in the view tree you could do that Aug 26 18:13:51 nice... turns out the sources i got from the SDK manager are out of date Aug 26 18:13:52 maybe by some condition that forces layout again Aug 26 18:14:00 grep code actually shows a call to walk on that line Aug 26 18:14:32 Syzygy best bet if I wanted to do that is to have some call onLayout that would go to the walk and somehow trigger onLayout for the parent Aug 26 18:14:35 that would do it Aug 26 18:14:37 StingRay_, that would mean it shouldn't work at all. but it works with the ART runtime Aug 26 18:14:37 :) Aug 26 18:14:47 oh f*k Aug 26 18:14:53 you are screwed then :) Aug 26 18:15:01 works in ART, doesn't work in dalvik Aug 26 18:15:04 minApi 21 ? Aug 26 18:15:07 i would hope the layout is smart enough to detech cycles Aug 26 18:15:09 heh Aug 26 18:15:09 Nike Running was the exact opposite Aug 26 18:15:11 i think RelativeLayout does Aug 26 18:15:12 i wish Aug 26 18:15:17 worked in Dalvik, not in ART Aug 26 18:15:42 hence why I havent moved to ART yet on my Droid Maxx HD Aug 26 18:16:09 g00s, well, my GridLayout walk()s right into the ground. Aug 26 18:16:16 pun intended. Aug 26 18:17:18 crap... i guess I'll have to get to work early tomorrow to actually catch the other developers :( Aug 26 18:17:26 usually i get to work at like 3 pm Aug 26 18:18:07 ... isn't grepcode the official google repository stuff? Aug 26 18:18:13 ... why are there french comments Aug 26 18:18:16 @xximjasonxx https://gist.github.com/xxblakefailxx/30c6b7c0e524d84786fc Aug 26 18:20:13 XxBlakeFailxX: not sure this is the correct structure Aug 26 18:20:19 take a look at the link i posted Aug 26 18:21:31 XxBlakeFailxX: i do not know if you are allowed to use a custom broadcast receiver that way Aug 26 18:21:51 I wonder what I should do now. Aug 26 18:21:56 basically I'm fucked Aug 26 18:22:00 i think you might have to receive it first in the IntentService and then allow your intent service to place it somewhere where the custom broadcast receiver has access to it Aug 26 18:22:24 I mean... I try to piece together something similar Aug 26 18:22:28 I remember Android was vert particular about the classes being used in this process. Can anyone confirm? Aug 26 18:22:37 that's probably my only choice Aug 26 18:28:02 Is there any layout where I can add views to a maximum number of columns, top to bottom, left to right? Aug 26 18:28:22 or i guess left to right, top to bottom works as well Aug 26 18:28:23 kinda Aug 26 18:28:30 I'm trying to make it go the way you did it now to see if that fixes it. I was doing it that way because https://developer.android.com/google/gcm/client.html Aug 26 18:28:49 Syzygy: something like wrap panel in windows? Aug 26 18:29:06 xximjasonxx, don't know that, but probably Aug 26 18:29:10 where I can also change the number of rows/collumns during runtime Aug 26 18:29:20 its what they use for laying out tiles Aug 26 18:29:24 would you bother with a name for a highscore on the phone? or i mean the name is always the phone owen right, people dont play one ach others phone right? Aug 26 18:29:33 basically it goes down as far as allowed and then starts a new column Aug 26 18:29:40 i THINK i have seen a custom implementation for Android Aug 26 18:29:42 gridlayout did the job acceptably well, but only when using ART Aug 26 18:30:14 Would you bother with a name for a highscore? I mean the name is always the phone owner right? People dont play on e ach others phone right? Aug 26 18:30:15 nevermind Aug 26 18:30:21 appears gridlayout is the equivalent Aug 26 18:30:41 Syzygy: what about this: https://github.com/ApmeM/android-flowlayout Aug 26 18:30:43 smitzer, I did and my brother is still angry for breaking his highscores on the first try. Aug 26 18:31:12 smitzer: my brother did that on my Surface in Jetpack Joyride Aug 26 18:31:14 smitzer: Yes, lots of people use other people's phones to play games. Like the kids in the car using Dad's phone, etc Aug 26 18:31:17 i hate him for it Aug 26 18:31:18 :) Aug 26 18:32:07 XxBlakeFailxX: yeah this is different than what I remember. I dont have time to dive back in and figure it out right now Aug 26 18:32:07 sorry Aug 26 18:32:10 it's almost like we're brothers xximjasonxx Aug 26 18:32:33 naw, my brother is more annoying than you :) Aug 26 18:32:38 heh Aug 26 18:32:38 and he is a designer Aug 26 18:32:53 and an Apple fanboy Aug 26 18:33:24 although, he is upset that Apple is going to unveil a big phone Aug 26 18:33:33 I actually used flowlayout... although I copied the code from a blogpost, not from a repo. Aug 26 18:33:45 That's understandable, thank you for the help. Aug 26 18:33:54 I'm currently trying to figure out the best way to wrap it like that. Aug 26 18:34:12 sounds like its a timecrunch, probably take whatever works eh Aug 26 18:35:21 let's see what's the method impact on that repository is Aug 26 18:35:41 I don't want to hit the dex method limit again :( Aug 26 18:45:29 just use proguard Aug 26 18:45:32 easiest answer Aug 26 18:46:06 I can't seem to do "actionBar.setCustomView(someViewHere)" it doesn't change anything Aug 26 18:46:40 xximjasonxx: nice, I was looking for something like that Aug 26 18:46:51 XxBlakeFailxX: aka android-flowlayout Aug 26 18:46:54 err Aug 26 18:47:27 Hi anyone can help me? I can't seem to do "actionBar.setCustomView(someViewHere)" it doesn't change anything Aug 26 18:47:36 f00dWorksta: with no code and no idea what you're expecting it to do I doubt many people can help you. And dont double post ;) Aug 26 18:47:46 post your code and layout to pastebin Aug 26 18:47:53 If you had to deal with a data structure coming out of a database, would you prefer a hashmap or a json object? Aug 26 18:48:51 lasserix: isn't the JSONObject using a HashMap underneath? Aug 26 18:49:15 json every time for that. arbitrary levels of object nesting and let json worry about what data structures it uses underneath. Aug 26 18:49:20 yeah i am trying to convince my coworker we should use a hashmap instead of the jsonobject to get rid of one layer Aug 26 18:49:29 rgr: it's only every one deep Aug 26 18:49:35 lasserix: what is the value add? Aug 26 18:49:38 ie the keys are always the columns Aug 26 18:50:03 Youd need to maintain your own uniqueness. Aug 26 18:50:13 i am just wondering if developers would prefer to use a hashmap or a json object to retrieve keys (it only ever goes one deep) Aug 26 18:50:31 developers prefer to use whatever requires the least amount of work on their end Aug 26 18:50:51 ie if i had to dump a row from an sqlite database into either a json object or hashmap, where the keys are columns and the fields are the values, would you prefer to use a json object or a hashmap? Aug 26 18:51:10 nonsense. developers put in what is best suited and easier to maintain and do the job. Not what they can hack together in minimum time. Aug 26 18:51:45 you are missing the point: i am asking what is more convient, the json object or the hashmap (it'll never have nested data, always one node deep) Aug 26 18:51:49 rgr: http://pastebin.com/EjV5Wpge not sure if that's enough information Aug 26 18:53:03 :o Aug 26 18:53:49 f00dWorksta you have searched on google/so right ? Aug 26 18:53:56 there are lots of hits with that Aug 26 18:54:11 http://stackoverflow.com/questions/12883732/how-to-display-custom-view-in-actionbar being the 1st in a 4 second search :) Aug 26 18:55:03 StingRay_: I was looking on google for about an hour, i guess I never hit the right word combination... cos I just found the solution as well Aug 26 18:55:04 p_l, I agree, JS is cool and you can do a lot in it, but it makes no sense to implement *everything* in JS Aug 26 18:55:30 rgr, i meant that Aug 26 18:55:38 least amount of work pertaining to maint Aug 26 18:55:43 and integration Aug 26 18:56:13 f00dWorksta well to find that all I did was search "android actionbar setCustomView" not sure what you were looking for Aug 26 18:57:39 apperently I'm to stupid to use gradle/maven central. Aug 26 18:58:00 can someone confirm that this can not be loaded? http://search.maven.org/#artifactdetails|org.apmem.tools|java-flowlayout|1.0|pom Aug 26 18:58:09 Syzygy: when its done, gradle is going to be great, but the integration right now is a bit tricky Aug 26 18:58:10 its in flux Aug 26 18:58:18 http://tinypic.com/view.php?pic=2natxmu&s=8 <- my choose level fragment with the highscores underneath, does it make sense to do it like that? if you have played a level and won it you get a number beneath, ok so that is your best time for that level. or does it just look bad? Aug 26 18:58:20 I'm using compile 'org.apmem.tools:java-flowlayout:1.0' Aug 26 18:58:44 Is it possible to have 2 textviews within a button so i can have different size text in the same button? Aug 26 18:58:54 smitzer, yes Aug 26 18:58:59 is it possible to branch too much locally with git :) Aug 26 18:59:17 Syzygy, answering my 2nd question? Aug 26 18:59:30 StingRay_: I did that... and now I realised that I missed the line "actionBar.setDisplayShowCustomEnabled(true)" everytime... Aug 26 19:00:08 jfarrell: define too much Aug 26 19:00:11 smitzer, I recommend not using a button but instead using a viewgroup (e.g. linear layout) where you can set an OnClickListener, that way you can freely decide what to show Aug 26 19:01:51 can someone confirm/deny that what I just posted would be the correct way to load a dependency from maven central with gradle and that it doesn't work with the posted dependency or alternatively that I'm stupid Aug 26 19:02:34 go after Aug 26 19:02:37 oops Aug 26 19:03:07 Syzygy works, just added it Aug 26 19:03:25 shadynastys: trick question, there is no such thing Aug 26 19:03:29 least not locally Aug 26 19:03:58 StingRay_, Error:Failed to find: org.apmem.tools:java-flowlayout:1.0 Aug 26 19:04:00 just great Aug 26 19:04:07 why is everything fucking me over today :( Aug 26 19:04:27 tried with version + ? Aug 26 19:04:28 * jfarrell|busy hands Syzygy some whisky Aug 26 19:04:37 StingRay_, I did. Aug 26 19:04:43 freaky Aug 26 19:04:44 :) Aug 26 19:04:50 1.0+ Aug 26 19:04:55 no Aug 26 19:04:58 or just 1.+? Aug 26 19:05:00 just + Aug 26 19:05:05 for latest Aug 26 19:05:27 Error:Failed to find: org.apmem.tools:java-flowlayout:+ Aug 26 19:05:29 T_T Aug 26 19:05:33 but it's the same as putting 1.0 looking at the repo entry Aug 26 19:05:34 jfarrell: my thoughts exactly :) Branching too much is just ugly coding practice though. i guess it depends on what you need. Aug 26 19:05:54 http://tinypic.com/view.php?pic=2natxmu&s=8 <- my choose level fragment with the highscores underneath, does it make sense to do it like that? if you have played a level and won it you get a number beneath, ok so that is your best time for that level. or does it just look bad? Aug 26 19:06:06 shadynastys: i tend to make a new branch each time I am going to make a change to the code base Aug 26 19:06:13 seems to make merging easier with my other developers Aug 26 19:07:06 smitzer, as I said somewhere before I would frame won levels Aug 26 19:07:45 ya i know exactly what you mean. my git history has gotten much better/cleaner when i started coding with others. by necessity Aug 26 19:07:45 Syzygy confirm this line : compile 'org.apmem.tools:java-flowlayout:1.0' Aug 26 19:07:58 Syzygy, OK. and text underneath looks confusing only? Aug 26 19:08:00 confirmed Aug 26 19:08:03 cause I just did full rebuild and all works Aug 26 19:08:26 I guess I could try rebuilding Aug 26 19:08:29 or killing myself Aug 26 19:08:38 this is not the 1st maven dep you entered ? Aug 26 19:08:54 it is not. Aug 26 19:08:58 ok hopefully i can get some help here.. :) Aug 26 19:09:07 Syzygy then you are getting really good at this Aug 26 19:09:17 I am having a problem implementing a Staggered grid view i have been digging into this for the past 4 days. I am trying to model a part of JakeWhartons u2020 app since it was the only example of using the etsy staggered grid library correctly with actual data that i could find. Aug 26 19:09:21 at what? wanting to die? Aug 26 19:09:26 or you have not appeased the little gremlins Aug 26 19:09:29 :) Aug 26 19:09:37 http://pastebin.com/sjk2kw8m Here is what i am working with. my problem is: Aug 26 19:09:51 gah!! I hate you Gimp Aug 26 19:10:06 The SGV works great with just an image loaded. With a more complicated view the Grid view keeps redrawing the views causing them to jump around and reorganize. Aug 26 19:10:09 jfarrell|busy whats the prob ? Aug 26 19:10:17 wont allow me to export pngs Aug 26 19:10:22 From what i understand it is because the height of the view needs to be set before thing are loaded into it. Aug 26 19:10:27 Unresolved dependencies detected while building project in offline mode. interesting. Aug 26 19:10:38 jfarrell|busy must do lol Aug 26 19:10:41 Following JakeWhartons u2020 app I am able to set the view height correctly if it is just an image. Aug 26 19:10:44 that would explain a lot Aug 26 19:10:45 its something with the png.lib Aug 26 19:10:50 i just dont have time to debug it Aug 26 19:11:04 If i want a text view below the image however it fails. I am even trying to get the text view height and add it to the parent view height. Aug 26 19:11:37 jfarrell|busy I know you could maybe error it if you attempted palletized alpha or something Aug 26 19:11:51 but pretty standard and sturdy Aug 26 19:12:02 gimp on my mac side is broken, thankfully i have paint .net on the windows sid Aug 26 19:12:11 and with parallels i can easily reach between the two Aug 26 19:12:23 StingRay_, so apperently android studio entered offline mode somehow Aug 26 19:12:24 Syzygy, guess I could use different frames, simple. one frame for beaten level, one for global best high score Aug 26 19:12:30 and that's why i couldn't resolve it Aug 26 19:12:46 beta Aug 26 19:13:07 smitzer, red, yellow, green for local scores, gold for global highscore Aug 26 19:13:20 you could also add a little icon where you place a number now Aug 26 19:13:31 I would put the number in the button though Aug 26 19:13:51 Can't believe I never came in here :P4 Aug 26 19:14:35 hey Aug 26 19:14:38 Syzygy good to know about offline mode, but wtf is that there for ? lol Aug 26 19:15:00 to get rid of weak developers Aug 26 19:15:02 red,yellow,green? one of them you mean? Aug 26 19:15:06 to make the android race stronger Aug 26 19:15:07 what would you choose? Aug 26 19:15:10 I created my own relative layout "MyRelativeLayout extends RelativeLayout " and use it in activity_main.xml " constructors are called for sure Aug 26 19:15:37 smitzer, all of them depending on points, similar to the 3 star rating system employed by many puzzle games right now Aug 26 19:15:41 but do not see any sign from 'dispatchKeyEventPreIme' , any idea? Aug 26 19:16:30 or just use that 3 star rating system (i would still frame beat levels somehow) Aug 26 19:20:12 Is it possible to use a Loader to do multiple queries? Aug 26 19:22:42 Syzygy, well i guess i will show the time but inside the button and then have a gold frame if you have the global highscore Aug 26 19:23:51 can I draw a stroke programmtically? Aug 26 19:24:22 sure, you probably want a rounded rectangle drawable though Aug 26 19:26:31 where does gradle download dependencies to? Aug 26 19:27:18 anyway to change app priority, like niceness in linux? Aug 26 19:30:27 change it how? Aug 26 19:30:38 Syzygy: lib i believe Aug 26 19:30:49 nope, but i found it. Aug 26 19:30:52 * jfarrell|busy is doing MonoTouch at the moment Aug 26 19:30:57 ahh good Aug 26 19:31:11 sorry i found it, forgot the bin was named renice Aug 26 19:31:13 it's in User/.gradle/cache/modules Aug 26 19:31:18 lovely Aug 26 19:31:25 i like the Visual Studio approach better Aug 26 19:31:46 download everything to the Solution directory, just have VC ignore it, allow nuget to download on build if they dont exist Aug 26 19:31:59 depends where its gets them from. it also stores stuff in the local maven repo. ~/.m2 Aug 26 19:32:06 not sure how i feel about stuffing them in User Aug 26 19:32:10 rgr: good to hear Aug 26 19:32:50 as a windows user... where is ~? Aug 26 19:33:18 in /Users/username Aug 26 19:33:21 c:\users\username Aug 26 19:33:34 StingRay_: get your mind out of *nix land Aug 26 19:33:52 lol, yeah, well spend most my time in osx Aug 26 19:34:06 i as well, least for the next couple weeks Aug 26 19:34:18 new project at work is going to be an SPA with a WebAPI backend Aug 26 19:34:24 so ill be switching over to .NET Aug 26 19:34:25 the thing i mentioned earlier was in User/username as well, not in User itself Aug 26 19:34:50 though really, i could use Mac for it, the frontend is all Angular Aug 26 19:35:20 company bought me a webstorm license for it :) Aug 26 19:39:21 god damn it, the library is pulled but the classes still don't how up in autocomplete -.- Aug 26 19:39:32 make? Aug 26 19:39:35 restart? Aug 26 19:39:55 I already rebuilt Aug 26 19:40:53 if you just reference it, does it bitch and complain? Aug 26 19:43:55 yeah Aug 26 19:44:04 :/ Aug 26 19:44:28 in the funny "everything works until you use it and then the app crashes just like my hopes and dreams"-way Aug 26 19:44:56 android is famous for those :) Aug 26 19:45:20 10 pm soon... I think I'll just go home and cry myself to sleep Aug 26 19:45:51 did you try turning it on and off again? Aug 26 19:46:12 Syzygy: what error does it give you? Aug 26 19:46:15 android studio yes. Aug 26 19:46:49 can't remember. right now I have dublicate unaligned apks while building Aug 26 19:47:00 so I'm trying to fix that first before i try to fix that other thing again Aug 26 19:47:42 i'm having trouble with adb screenrecord while using eclipse+ADT to step through my application on a real device --when i start debugging it terminates the screenrecord. is there a way to initiate screenrecord through eclipse's adb session perhaps? Aug 26 19:48:00 Hey , can I use something like android:attr/borderlessButtonStyle in api 10 (2.3) ? Aug 26 19:48:14 It is supported from api 11 min Aug 26 19:48:56 killer, check support libraries or make your own Aug 26 19:48:56 killer did you not just answer your own question ? Aug 26 19:50:00 killer: technically you could copy that style from the 11 sdk source Aug 26 19:50:19 and use it in 10, however, likely there are things that it references that 10 doesnt support, you would have to strip those pieces off Aug 26 19:52:23 killer, is using api 11 an option? there aren't many people using api 10 anymore Aug 26 19:53:00 Syzygy that statement aint all that true Aug 26 19:53:07 depends what you class as many Aug 26 19:53:21 anything over a million is quite a lot to me :) Aug 26 19:53:30 percentage wise Aug 26 19:53:54 indeed, but many people still use Aug 26 19:54:09 combined percentage of the 2.x legacy is 14.3% according to Google own numbers Aug 26 19:54:14 I assume people still running an ancient OS on old or even newer devices aren't so keen on using the newest apps anyway Aug 26 19:54:44 usage of 4.x (15+) accounts for the remainder of the usage Aug 26 19:54:56 Syzygy: very correct Aug 26 19:55:27 http://lpaste.net/110079 <- why is the stroke not shown? Aug 26 19:55:38 Jelly Bean (API 16-18) accounts for greater than 50% of android devices Aug 26 19:55:54 * jfarrell|busy is actually quite pleased with the adoption of KK Aug 26 19:56:23 Syzygy, I'm still running 2.3 simply because I prefer it over anything newer, but that doesn't mean I prefer other apps to be older versions too Aug 26 19:57:13 I have another gradle issue. Aug 26 19:57:24 Syzygy: its a common theme with studio Aug 26 19:57:39 ravilov: you are in the extreme minority Aug 26 19:57:56 So apperently it downloaded all the availabe stuffs and now the apklib interferes with building because apperently it has it's own androidmanifest Aug 26 19:58:01 by most accounts, JB was considered one of the best mobile OS releases of the last 10yrs Aug 26 19:58:03 I want the .jar though Aug 26 19:58:07 also, apparently my Play Store just updated - so much about having outdated versions :) Aug 26 19:58:10 What is there to prefer with 2.3 over later versions? its slower, buggier and well, crappier. Aug 26 19:58:19 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Aug 26 19:58:23 jfarrell|busy, I'm perfectly aware, I don't really care honestly, this works for me perfectly and I'm not changing it Aug 26 19:58:30 I'm not sure I would call 13.6% "extreme minority" Aug 26 19:58:32 :) Aug 26 19:58:36 ravilov: I dont judge Aug 26 19:59:04 JesusFreke, the menority was a combination of old OS and heavy app user Aug 26 19:59:29 http://lpaste.net/110079 <- why is the stroke not shown? Aug 26 19:59:41 JesusFreke: I would, not by percentage, someone (a developer) who is totally aware of the ecosystem opting to stay with an older version Aug 26 19:59:45 cant say there are too many of them around Aug 26 20:00:43 jfarrell|busy, that you know of Aug 26 20:00:58 pretty sure most people you know run latest and greatest ;) Aug 26 20:01:01 why is this so stupid Aug 26 20:01:12 ravilov: that and most people do the Windows approach with their phones Aug 26 20:01:33 "most people" - again, that you know? Aug 26 20:01:42 and the carriers help with this. I asked someone the other day when the last time they saw a non dumb phpne Aug 26 20:01:58 *dumb phone commerical Aug 26 20:02:11 what's the windows approach? Aug 26 20:02:13 hm I guess there's something to this, my wife was basically *forced* to upgrade the phone by the phone itself Aug 26 20:02:20 dont upgrade, get a new phone Aug 26 20:02:28 why? Aug 26 20:02:34 cause they dont know any better Aug 26 20:02:41 eh Aug 26 20:02:42 I know better D: Aug 26 20:02:50 Syzygy: we arent talking about developers Aug 26 20:02:57 jfarrell|busy, I feel you're just keen on making overgeneralizations tbh Aug 26 20:03:14 ravilov: go into a carrier store and just listen to the conversations Aug 26 20:03:24 your average person hasnt got a clue Aug 26 20:03:33 I guess Aug 26 20:03:34 so compile 'org.apmem.tools:layouts:1.0' uses the apklib, compile 'org.apmem.tools:layouts:1.0@jar can not find the jar because the jar is called layouts-1.0-sources.jar Aug 26 20:03:39 I'm not actually all that keen to find out really ;) Aug 26 20:03:57 compile 'org.apmem.tools:layouts:1.0:1.0-sources' and this just can't find the jar Aug 26 20:04:31 I'm really not sure how to proceed here Aug 26 20:04:34 ravilov: my comment about the "extreme minority" was geared toward you, as I cant say i know too many developers who dont want the latest and greatest Aug 26 20:04:53 not that I think its good or bad, I was just making an observation Aug 26 20:05:50 ok Aug 26 20:06:22 I accept I'm in the "extreme minority" among the people you know or have heard of Aug 26 20:06:31 lol fair enough Aug 26 20:06:33 :) Aug 26 20:22:00 Is there any chance I can accurately tell the size of a view during onCreate? Aug 26 20:22:54 it has no size Aug 26 20:23:05 unless you are setting it to a specific size, no Aug 26 20:23:06 :) Aug 26 20:23:21 you can't know the size until after layout has completed Aug 26 20:23:24 ahh my new side project gathers steam Aug 26 20:23:29 the Anime Index Aug 26 20:23:48 the final size of a view depends greatly on its parent view Aug 26 20:23:54 Syzygy, -sources is the sources jar... Aug 26 20:23:59 Syzygy, that's not an apklib Aug 26 20:24:09 Syzygy, gradle doesn't support apklib Aug 26 20:24:35 pfn, apperently not building them, it definitely tried to though. Aug 26 20:26:42 I got a problem with the Switch element, that track in the middle of it won't go away without taking out the thumb with it Aug 26 20:26:55 go away as in android:track="@android:color/transparent" Aug 26 20:28:02 Every example I saw with php and android where php just echoes and android catches it as a response. Is there a more secure way? As if anyone can read the information echoed if they access the php. Aug 26 20:28:31 skulltower: firstly, php is not aware of android, nor should it be Aug 26 20:28:48 so, php is likely representing an endpoint, so yes, anyone accessing that endpoint can see the echo Aug 26 20:28:57 unless you have an authentication mechanism in place Aug 26 20:29:00 on the server Aug 26 20:29:09 I want it to look like this https://dl.dropboxusercontent.com/u/19390574/switch_desired.png but right now it looks like this (dont mind the width) https://dl.dropboxusercontent.com/u/19390574/switch_reality.png Aug 26 20:29:45 hopefully my colleagues will recognize that as a switch statement if they look at my screen and not something pornographic Aug 26 20:29:52 *view Aug 26 20:30:24 jfarrell|busy, Could I set the POST with php and read it with android? Or is that not much secure than echo? Aug 26 20:30:37 not anymore secure Aug 26 20:30:58 skulltower: when Android talks to PHP its making a web request. Anyone, anything, can make a web request Aug 26 20:31:03 you are making one right now, as you are chatting Aug 26 20:31:17 getLayoutParams will return null until onCreate is done, right? Aug 26 20:31:24 forget it being PHP : android doesnt care. It's simply a response. Probably a json record returned based on the post data you sent to your server. Aug 26 20:31:39 I dont think so Syzygy Aug 26 20:31:43 Syzygy depends Aug 26 20:31:45 I use it inside my adapters sometimes Aug 26 20:31:57 StingRay_, on what? Aug 26 20:31:58 Ugh. So I should just echo and be done with it huh Aug 26 20:32:09 skulltower: it all depends on what you are doing Aug 26 20:32:22 but again, php and android have nothing to do with each other Aug 26 20:32:28 Syzygy well if they existed… as in if they did not, and the view is not attached and onLayout not happened, then not sure it will return anything Aug 26 20:32:30 one is a server technology and one is a mobile client technology Aug 26 20:32:33 Yea I get that. Aug 26 20:32:41 (though Android goes beyond that, but that is another discussion) Aug 26 20:32:50 Syzygy of u actually set them, then yeah, or if the xml had them and inflated, then yeah it will return Aug 26 20:32:57 Syzygy so...depends Aug 26 20:32:59 :) Aug 26 20:33:06 is there some tutorial on buttons that explains why they have this weird margin on the bottom and how to get rid of it? >_< Aug 26 20:33:16 skulltower: what is the server echoing? Aug 26 20:33:23 what wierd margin? Aug 26 20:33:32 Json Aug 26 20:33:44 TIL that you dont have to drag the line of black dots all over the stretchable areas, instead you just have to place a dot anywhere along the line you wish to allow stretching on Aug 26 20:33:46 lel Aug 26 20:33:46 I'm starting to hate this more and more Aug 26 20:33:53 is the content of the JSON intend only for your client, or could it be viewed by others Aug 26 20:33:54 jfarrell|busy, atm doing a basic check of sha1 string sent by the client Aug 26 20:34:04 No, it's only for the client. Aug 26 20:34:24 sqrrl there is no odd margin, I think you refer to a perception Aug 26 20:34:34 ok, so you would probably want to lock it down. A simple suggestion would be to use the Authorization header Aug 26 20:34:53 send a token along, the server checks the token to make sure that specific client sent the request Aug 26 20:35:28 if someone else tries to query your service without the the token or the wrong token, you return an error code 401 Aug 26 20:35:35 rgr, StingRay_: https://dl.dropboxusercontent.com/u/21637985/Random/Shot-140826-233411-r.png Aug 26 20:35:51 there, there's margin at the bottom and padding (?) on the top Aug 26 20:36:07 So basically the same as I'm doing: sending a sha1 string, and checking if it applies to strings declared inside the server's php file? Aug 26 20:36:08 that looks fine on 4.x but not quite so on 2.x Aug 26 20:36:18 yup Aug 26 20:36:39 Okay, thanks for you help :) Aug 26 20:36:41 you could use https as an added layer. it all depends on what you are trying to secure Aug 26 20:36:45 xmlns:f="http://schemas.android.com/apk/res/your.namespace" what am I doing wrong when I can't place my namespace here? Aug 26 20:36:46 any idea about the switch track? pictures above? Aug 26 20:36:47 pl0x? Aug 26 20:37:16 Syzygy: not mispelling it are you Aug 26 20:37:22 nope Aug 26 20:37:30 without knowing the full "size" of the button one cant say if that's padding or margin from the diagram. Aug 26 20:37:48 jfarrell|busy, do you think it's possible to reverse-engineer my app to find the token? (with default proguard on) Aug 26 20:38:02 skulltower: anything is possible Aug 26 20:38:10 easy, nop Aug 26 20:38:19 Is it at least hard? Aug 26 20:38:19 :D Aug 26 20:38:21 yes Aug 26 20:38:28 sha1 is a pretty good hash Aug 26 20:38:32 certainly stronger than md5 Aug 26 20:38:32 hey, sorry for just bursting in here but i need some help with building a rom. Aug 26 20:38:59 is it an epic ROM epicboy_? X) Aug 26 20:39:00 Ok that's enough security :D Thanks. Aug 26 20:39:08 k Aug 26 20:39:34 lol, no it is actually for my samsung vibrant aka vibrantmtd. Aug 26 20:39:49 ahhh.. Aug 26 20:39:53 sounds epic Aug 26 20:40:09 X) Aug 26 20:40:23 yea you started something Aug 26 20:41:17 i get this error when trying to build using the brunch command "out/target/product/vibrantmtd/obj/STATIC_LIBRARIES/libc_common_intermediates/bionic/memchr.o' given more than once in the same " Aug 26 20:41:36 rule" Aug 26 20:43:17 rgr: the question is how to get rid of it. i want the button to either touch the top and bottom of the container or or to be equally distant from both sides. of 2.3.7 it looks like this https://dl.dropboxusercontent.com/u/21637985/Random/Shot-140826-234158-r.png Aug 26 20:43:58 well Im closer to the desired shape of that switch element Aug 26 20:44:08 you figure out which it is using the layout designed maybe or the pixel perfect hierarchyviewer Aug 26 20:44:14 just need that track to disappear! Aug 26 20:45:55 i also get this error "build/core/base_rules.mk:134: *** device/samsung/vibrantmtd/libgps: MODULE.TARGET.SHARED_LIBRARIES.gps.aries already defined by device/samsung/galaxysmtd/libgps. Stop." does anyone know how to fix these issues? Aug 26 20:46:20 epicboy_ this is not the correct channel Aug 26 20:46:24 this is application dev Aug 26 20:46:36 epicboy_: this is for android development. Not how to make a rom or learn about makefiles. Aug 26 20:46:45 makefile, not war Aug 26 20:46:53 PUT THAT ON A SHIRT Aug 26 20:46:54 OYA Aug 26 20:47:07 attributes defined in attrs.xml automatically include the prefix app:, is there a way i can disable that? Aug 26 20:47:11 my apologies. which is the right channel? Aug 26 20:47:25 hierarchy viewer! forgot all about it Aug 26 20:47:33 epicboy_ this is not a help channel on how to find channels lol Aug 26 20:47:35 I think #android-root Aug 26 20:47:37 haha Aug 26 20:47:53 do /topic Aug 26 20:48:06 it tells you Aug 26 20:50:46 hey guys could anyone help me convert a java project to an android application project? Aug 26 20:50:58 how much $$$ Aug 26 20:51:06 impossibruuuuuuu Aug 26 20:51:16 =( Aug 26 20:51:27 Slymatt: what are you finding confusing? Aug 26 20:51:49 jfarrell|busy: Im confused on what i need to do to change it over to android =P Aug 26 20:52:02 you dont do that Aug 26 20:52:03 what editor are you using? Aug 26 20:52:10 Eclipse Aug 26 20:52:16 you create a new android project, set that up and then move the java into it Aug 26 20:52:20 Guys, i am leaving this one you :) Aug 26 20:52:20 Slymatt: then read the android tutorials and come back with specific questions. Aug 26 20:52:25 * jfarrell|busy walks away Aug 26 20:52:29 There is a lot to learn. Aug 26 20:53:13 =l Aug 26 20:53:20 you cant just give me a hand? Aug 26 20:53:26 dude Aug 26 20:53:26 its a large hand Aug 26 20:53:30 you're asking about something huge Aug 26 20:53:33 HOW TO HACK Aug 26 20:53:54 Slymatt: while Java dev and Android dev share similarities Aug 26 20:54:00 hack? whats hacking got to do with it ? Aug 26 20:54:14 there are simply difference between ART, Dalvik, and JVM Aug 26 20:54:16 its a type of questions Aug 26 20:54:45 Android is Java, but at the same time it isnt Aug 26 20:54:50 jfarrell|busy: so there is massive change in code to convert? Aug 26 20:54:57 in some cases, yes Aug 26 20:54:59 Andriod = derivitive? Aug 26 20:55:05 Slymatt: that would be accurate Aug 26 20:55:15 if spelled correctly Aug 26 20:55:28 so like drawline become andriodline just an example not a clue if that ones real haha Aug 26 20:55:31 though specifically, Dalvik, which is the Android implementation of the JVM Aug 26 20:56:09 Slymatt: rgr had the best advice. Visit developer.android.com and follow some tutorials Aug 26 20:56:34 if you have a high degree of familiarity with Java, parts of Android will make sense almost immediately Aug 26 20:56:38 jfarrell|busy: but that doesnt explain what things have changed to =P Aug 26 20:56:59 Slymatt: i doubt anyone in this room can give you a list of the differences, API wise between Java and Android Aug 26 20:57:26 many things are no longer what they used to be. Aug 26 20:57:33 yep, about right Aug 26 20:58:13 I think I was looking for switchMinWidth property, but I dont want it to eat up the thumb! Aug 26 20:58:24 got to know before press Run! seconds wasted! Aug 26 20:58:37 Slymatt: I am a big believer that programming entails a life long learning experience. You either learn and accept that, or find a new profession Aug 26 20:58:47 the thumb Aug 26 21:00:12 ahh so java.awt in andriod is similar to android.graphics Aug 26 21:00:38 is it possible to bring in an offscreen nested layout with an animation Aug 26 21:00:58 HelplessJub yes Aug 26 21:01:10 ive screwed this up bigtime haha spent 2 days creating a java project then realise wait i want anrdoid haha Aug 26 21:01:14 if you know how animation works :) Aug 26 21:01:58 Slymatt: you seem confused. Java is a language. Android apps are generally written in Java. You just need to do the necesssary Android things in Java. Go do the tutorials. Aug 26 21:02:07 Slymatt: as a personal preference i recommend using IntelliJ or, if you are brave, Android Studio Aug 26 21:02:13 +1 Aug 26 21:02:19 StingRay_: ok, will have to search further Aug 26 21:02:24 thanks Aug 26 21:02:27 jfarrell|busy: instead of Eclipse? whys that? Aug 26 21:02:37 Slymatt: for myself, i just like it better Aug 26 21:02:59 jfarrell|busy: Im comfortable with Eclipse =) Aug 26 21:03:06 then by all means stick with it Aug 26 21:03:16 I doubt support for ADT is going anywhere anytime soon Aug 26 21:04:49 just because it's not the official avenue doesn't mean it won't work Aug 26 21:04:57 there's plenty of non-official development environments Aug 26 21:05:06 netbeans, emacs, xamarin, etc. Aug 26 21:05:18 * jfarrell|busy is using xamarin right nwo Aug 26 21:05:51 jfarrell|busy how do you like it? Aug 26 21:05:59 servicable Aug 26 21:06:06 still a ways to go Aug 26 21:06:43 latest is a vast improvement Aug 26 21:08:23 im sorry g00s do you mean the framework or studio? Aug 26 21:08:46 oh i guess both, i haven't used xamarin Aug 26 21:08:56 not too many people here seem to use it Aug 26 21:09:00 honestly, i think its the best option for mobile app development right now Aug 26 21:09:03 i wish more people used it Aug 26 21:09:16 if it was more affordable, i bet people would Aug 26 21:09:34 yeah, they keep raising their prices Aug 26 21:09:54 though really, the development cost savings is pretty substantial Aug 26 21:10:03 but its hard to see that savings versus the upfront Aug 26 21:11:09 and plus, there are lots of tools that purport cross platform development Aug 26 21:11:26 and we all know how well those work to some degree - not very well Aug 26 21:11:31 so it takes a lot of convincing Aug 26 21:12:12 capella http://blogs.wsj.com/digits/2014/08/26/mozilla-unveils-33-intex-cloud-fx-smartphone/ Aug 26 21:13:01 "Hsu: Using HTML5 enables the operating system to be very lean and it requires less memory consumption. " Aug 26 21:13:12 i'm very skeptical of this. but maybe its true Aug 26 21:13:34 g00s: yes, but MOST of those two tell tend to push a one and done approach, Xamarin doesnt Aug 26 21:13:50 Xamarin still respects the fact that your UI layer is going to be different depending on the platform Aug 26 21:18:29 g00s: seen libgdx ? Aug 26 21:18:59 i'm not into gaming Aug 26 21:19:39 it's only 99% for gaming :P Aug 26 21:20:31 g00s: i would suggest downloading the starter and trying it out Aug 26 21:20:47 the two biggest advantages it gives are, you get to use the same language for all of the apps you write Aug 26 21:21:03 and that you can share that backend service code, the code which operates pretty much the same for all of the platforms Aug 26 21:21:39 we have written production apps were we get 65 - 75% code reuse between Android and iPhone Aug 26 21:21:50 jfarrell|busy how well does it do integrating with native c ? Aug 26 21:22:01 you mean Obj-C? Aug 26 21:22:12 like, if i were going to use NDK on android Aug 26 21:22:18 jni, etc Aug 26 21:22:36 g00s: that story I do not know. Havent done any work with the NDK Aug 26 21:22:47 me too, i guess we're both lucky :) Aug 26 21:22:52 Xamarin provides wrappers for all of the standard classes Aug 26 21:22:59 but its often a required headache Aug 26 21:23:15 but you can get a large amount of code-reuse with ndk Aug 26 21:23:21 also, robovm looks really promising Aug 26 21:23:26 and its a pretty easy translation. I do know that Xamarin does download the NDK when you install, so I suspect there is support Aug 26 21:23:32 yes yes robovm++++ Aug 26 21:23:42 would someone go through a bit of code with me and just explain a little Aug 26 21:23:51 not loads i just want a push in the right direction Aug 26 21:23:57 robovm + scala sounds like an easier runtime for scala than android, even Aug 26 21:24:08 Slymatt: your best bet is to ask a question about that which is flustering you Aug 26 21:25:04 pfn: many jobs in scala around? i need a 'reason' to learn it other than it's something different Aug 26 21:25:15 jfarrell|busy: well if you look at my code: http://pastebin.com/NKgXz7jv how do i know from looking at that what needs changing =P Aug 26 21:25:18 bankai_au, there's a pretty reasonable amount of them Aug 26 21:25:33 bankai_au, probably 10-20% of the java market will do scala, too Aug 26 21:25:37 do you guys use ObjectAnimator or ViewPropertyAnimator Aug 26 21:25:40 bankai_au, (java job market) Aug 26 21:25:58 bankai_au, and learning it is pretty trivial Aug 26 21:26:20 import java.awt.* ? Aug 26 21:26:26 haha Aug 26 21:26:27 that doesn't seem like android related :p Aug 26 21:26:34 =L Aug 26 21:26:41 =l you didnt read my question Aug 26 21:26:43 =) Aug 26 21:26:50 Slymatt: I see syntatically accurate Java Aug 26 21:26:52 no, sorry Aug 26 21:27:07 why would we want to explain random java code? Aug 26 21:27:09 and a potential class that could be used in an android application Aug 26 21:27:23 jfarrell|busy: draw? Aug 26 21:27:37 Slymatt: ok, here is my advice. Go to d.androd.com and learn about the activity lifecycle Aug 26 21:27:43 *d.android.com Aug 26 21:27:54 that is as good a starting point as any Aug 26 21:28:49 jfarrell|busy: go throught this you mean? Aug 26 21:28:49 and the next time you ask a question, someone will ask you to explain the lifecycle Aug 26 21:28:55 i haven't seen any updates in my SDK manager since i/o roughly, i wonder if its busted Aug 26 21:29:53 Slymatt: the code you posted is Java. Its a class which could be used in an Android applicatiom. But if you fail to understand the way android apps run and how that differs from Java, you will not make any headway Aug 26 21:31:44 Do you generally prefer to work with a hashmap or a json object for a list of keyvalue pairs that are never nested? Aug 26 21:32:38 iirc JsonOnject provides some nice methods for parsing values out of the hashmap Aug 26 21:32:54 so I tend to prefer that, less I write my own methods for parsing strings to ints, etc Aug 26 21:33:11 ok thanks, anyone else have any input? Aug 26 21:35:49 maps of course, unless maybe if you need the toJson/fromJson stuff Aug 26 21:36:10 lasserix you are asking the same question from 4 hours ago, my input is dont waste anymore time on it, choose whats best for you Aug 26 21:37:10 * g00s hopes lasserix isn't passing jsonobject around as domain objects Aug 26 21:37:13 you can wrap maps to make it thread safe, immutable etc Aug 26 21:37:47 Stingray this is for an sdk Aug 26 21:37:57 its not whats best for me its whats best for you and you and you Aug 26 21:38:13 defintely maps then Aug 26 21:38:31 not json objects? Aug 26 21:38:37 i would change to maps then, less dependencies for your SDK Aug 26 21:38:48 don;t make your users deal with org.json Aug 26 21:38:50 and give the maximum flexibility Aug 26 21:39:00 if i am writing an app though, I use org.json Aug 26 21:40:01 sorry lasserix i thought you were asking in general Aug 26 21:40:15 well the sdk is based on a http server, which spits out stuff in json format Aug 26 21:40:30 so i can either propogate jsob objects to the developer or can parse them into hashmaps Aug 26 21:40:44 not that it really makes much of a difference just wodnering what other devs would prefer Aug 26 21:40:48 (short of going full out orm) Aug 26 21:40:57 * g00s isn't sure what lasserix is really trying to do Aug 26 21:41:06 lasserix: you always get JSON back Aug 26 21:41:07 ?? Aug 26 21:41:12 what if i want XML Aug 26 21:41:17 or my source is only available in XML? Aug 26 21:41:37 you'd have to format it Aug 26 21:41:44 O.o Aug 26 21:41:54 this is something i discussed but i am stuck working with what i am given Aug 26 21:42:05 hold the phone here Aug 26 21:42:16 you said you writing an SDK, a framework, yes? Aug 26 21:42:20 yeah Aug 26 21:42:33 a framework for what :| Aug 26 21:42:41 and your framework would only be useful if I were talking to services return JSON data from an HTTP server? Aug 26 21:42:46 *returning Aug 26 21:42:50 no Aug 26 21:43:12 ok then Aug 26 21:43:21 if I use a ViewPager can I set the fragment that should be in focus? Aug 26 21:43:29 it has to be a map, unless you want to try and covert the XML to JSOn before you hand it off to my code Aug 26 21:43:50 and that is way too much ceremony for a framework Aug 26 21:44:09 its an sdk for implementing local search in your app Aug 26 21:44:48 it uses an http server to dish out the requests, so the api is a wrapper for interacting with the server, it gives search results in the form of json objects (because its based on the http server) Aug 26 21:45:05 lasserix: ahh a full end to end solution Aug 26 21:45:11 yeah Aug 26 21:45:13 that's the idea Aug 26 21:45:31 we have an sqlite connector so you can just pass your database file path and it'll auto index that, Aug 26 21:45:50 but for the rest a developer is stuck passing in stuff as either json object or array of jsob objects representing the records Aug 26 21:45:51 i think you finally answered g00s question :) Aug 26 21:46:15 if this is all local, i wonder if Json is the best way Aug 26 21:46:21 not that i can think of anything off the top of my head Aug 26 21:46:35 the main question is for the callback on search finished, would developers prefer to get the search results as an list of json objects or a list of hashmaps? Aug 26 21:46:54 well ideally we'd go full orm and i could just instiate your record class Aug 26 21:47:07 i dont know if they'll let me implement that anytime soon tho Aug 26 21:47:13 ok i got 45m left in this day, need to push hard for this last feature Aug 26 21:47:16 later all Aug 26 21:49:19 Can I ship /bundle speech synthesizer with my app, just in case the device doesn't have it for a language, I know Ican also take user togoogle play to download it , but shipping it someway would be desired.Many apps seems to do so\ Aug 26 21:50:46 killer sure Aug 26 21:51:37 killer: How? Aug 26 21:52:21 Instead of using asynctasks to perform a background operation, I plan on passing my fragment and calling runOnUiThread to update the UI from a thread. Are there any problems with this approach? Aug 26 21:54:12 Betray1st: Just curious, why would you do that? Aug 26 21:56:45 I think runOnUiThread creates a thread every time it is called, and AsyncTask is able to manage Thread pools and reuse threads when possible Aug 26 21:59:49 How can I bundle an android library with my app ? Aug 26 22:00:45 rburgosnavas: Just thinking about other possibilities Aug 26 22:01:30 ugh i'm still pulling bugs & spiders off me; went on a unmarked trail for running (improvising) but ran through a bunch of yucky stuff Aug 26 22:01:50 Hello, I have an "onActivityResult" and it picked up the keys to be added to a list, but I have two questions: 1) How can I add more than 1 item to the list and 2) Adding these item in a custom list? Aug 26 22:03:32 g00s: i ran into a golden orb web the other day at night, freaked the shit outta me, especially when i felt something 'drop' on me :/ Aug 26 22:10:56 i have written a wrapper library for a library that have no activity (tested on desktop). i want to distribute the wrapper library for desktop wrapper as well utilize the same for android project. couldnt find any guide/how-to. looking for suggestion,pointers. Aug 26 22:11:34 *desktop as well as utilize Aug 26 22:16:15 bankai_au yeah its gross; started running at one point flailing my arms to get the stuff off me Aug 26 22:16:31 very attractive ;) Aug 26 22:16:38 screaming like a girl too? :P Aug 26 22:16:48 heh Aug 26 22:17:11 yeah dumps out on the main trail, gotta look presentable before then Aug 26 22:17:47 i hate when your smooshing mosquittos and the blood they just extracted from you splats on your skin Aug 26 22:19:43 It's just bait to lure more of them to their doom Aug 26 22:21:45 if I use a ViewPager can I set the fragment that should be in focus? Aug 26 22:25:57 you remove the Switch's empty bar by setting a track property to the Switch, you give it a drawable (XML) with any height you want Aug 26 22:25:59 http://stackoverflow.com/questions/10173590/how-to-change-the-size-of-a-switch-widget Aug 26 22:26:06 2nd answer Aug 26 22:26:10 POR Aug 26 22:26:13 PRO* **** BEGIN LOGGING AT Tue Aug 26 22:33:52 2014 Aug 26 22:38:48 What I can I do so that the user doesn't have to download the tts voice data from the googleplay store if it is missing from the device. I mean howcan I ship it with my app Aug 26 22:41:11 ok Aug 26 22:41:33 killer you can't Aug 26 22:43:09 sarbs: So anything that Ican do ,so user doesn't need todownload the tts specifically fromthe store Aug 26 22:44:43 can someone please help me with a ui problem that i am having. There is an example app that I have been working from. I know the problem and I know what i need to do to fix it. but i am having trouble implementing it. Maybe someone can give me a different way of looking at it. Aug 26 22:44:54 I am not good at ui. Aug 26 22:46:15 you still have not mentioned anything about the problem Aug 26 22:46:16 I am working from Whartons u2020 app. All i am trying to accomplish is the same SGV gallery from the u2020 app but with the text below the picture instead of on top of it. Aug 26 22:46:20 killer: not really, sorry. specifically, you can't ship the TTS data because it's managed by play services. you can ship your own TTS data, or similarly-sized blobs of data with your app (up to 2gb i believe) but google TTS won't use your data afaik Aug 26 22:48:44 here is what i was trying http://pastebin.com/sjk2kw8m it does not work. The SGV keeps redrawing the entire view Aug 26 22:50:13 sarbs: Any idea how the apps using the tts do this , without ever installing the required tts on my phone Aug 26 22:51:25 the redraw causes things to jump around. I am assuming that the views are not sized correctly and when they get recycled they move the grid around. I need to find a way to set the height of the view before anything gets loaded into it. it worked with a single image. but i need more than that. Aug 26 22:51:39 killer: they depend on the TTS api and the fact that one TTS is (pretty much always for stock firmwares) installed Aug 26 22:53:35 Yeah, I have a bit of a problem. I have an app with an asynctask that updates a graph and modifies a linearlayout Aug 26 22:54:01 yeah thats a bit of a problem Aug 26 22:54:02 and when I change the layout, the asynctask gets called and crashes due to null pointer arrays passed into it. Aug 26 22:54:12 so how should I fix it? Aug 26 22:54:26 My android 2.3 doesn't have spanish tts installed yet it runs an app with tts well , yet my android 4.0 phone supports the spanish tts Aug 26 22:54:27 ooh, ooh, me. CalledFromWrongThreadException? Aug 26 22:54:37 oh damn, NPE. Aug 26 22:54:44 No, I used runOnUiThread Aug 26 22:55:02 jimbo1qaz if you are going to use asynctask, better do it the way DH says here in #64 http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something Aug 26 22:55:29 well also runOnUiThread defeats the point of AsyncTask, do your ui work in onProgress or onPostExecute Aug 26 22:55:56 I do the work in the asynctask and publish the changes in uithread Aug 26 22:56:10 so I'll try onpostexecute Aug 26 22:56:27 Do I need to move it into a fragment? Aug 26 22:56:33 right, but using runOnUiThread is just extra.. AsyncTask already has facilities to post changes on UI thread is all im gettin at Aug 26 22:56:54 anyway none of that sounds like the *actual* null problem you're having Aug 26 22:57:04 why is it getting passed null arrays? Aug 26 22:57:35 Wait, I need to undo my changes first Aug 26 22:57:47 I can't find android studio diff-with-prev instead of curr Aug 26 22:58:28 When logged into my Developer console > Game Sevices: I notice that for one of my games the PLAYERS value is null, despite there being players. Any one else experience that? Aug 26 22:58:51 My other game shows the accurate number or that game. Aug 26 23:00:00 OK, now back to the real problem: Arrays.asList(ArrayUtils.toObject(array)) is null but not crash Aug 26 23:00:19 I'll get rid of runOnUiThread, but that's not the problem Aug 26 23:01:28 This is based off of bluetoothchat with a heavily modified bluetoothservice. Aug 26 23:02:22 I added a message parsing task and a regraph task. For the first, the ui-editing is 2-functions deep, for the second, the ui-editing is 1-function deep. Aug 26 23:03:20 use BLE for chat, become millionaire Aug 26 23:03:55 No, this is talking to a fiber-optical sensor Aug 26 23:04:59 (messageTask -> update-graph -> peakfinding + linearlayout) (peakfindTask -> peakfinding + linearlayout) How do I move the linearlayout to a post-execute-something? Aug 26 23:06:07 those all look like verbs except linearlayout Aug 26 23:06:18 what about verbs? Aug 26 23:06:31 or at least, nouns representing processes Aug 26 23:06:42 the peakfinding + linearlayout is currently a single function (the linearlayout contains peak information) Aug 26 23:06:44 i can't tell what process "linearlayout" represents Aug 26 23:07:05 gotcha. is peakfinding doing any processing? or is it just setting values in the view? Aug 26 23:07:15 split those two apart, do the view part in onPostExecute Aug 26 23:07:38 anyway, null: what's the code that's crashing? Aug 26 23:07:41 but I have two tasks that need to do the same thing, but one redraws the graph and the peak, the other just redraws the peaks Aug 26 23:07:51 or it's not crashing..and should? or.. Aug 26 23:08:33 Collections.max(list), where list is Arrays.asList(ArrayUtils.toObject(arr)) Aug 26 23:09:05 code-organization-wise you can do whatever you want.. AsyncTask.onPostExecute doesn't have to stay entirely within its own method. you can call out to other methods as well obviously Aug 26 23:09:34 the only important thing to remember is doInBackground vs onPostExecute threading Aug 26 23:10:00 list is null or list contains a null? Aug 26 23:10:10 not sure Aug 26 23:10:23 anybody had this problem where the app icon is not properly aligned in the AccountManager? Aug 26 23:10:25 abstractlist$simplelistiterator.next Aug 26 23:10:30 This class tries to handle null input gracefully. An exception will not be thrown for a null array input. However, an Object array that contains a null element may throw an exception. Each method documents its behaviour. Aug 26 23:10:54 well.. let's start from the beginning. what's arr? Aug 26 23:11:00 can you paste a gist? Aug 26 23:11:06 Not sure Aug 26 23:11:37 It's a bit complicated. When I disable configchanges, it doesn't crash. It only crashes on an android 4.1 device, not 2.3. Aug 26 23:11:56 * sarbs raises eyebrow Aug 26 23:11:57 then fix it Aug 26 23:12:05 if you have big code, use command K on a highlighted word to go to all instances of it in the code Aug 26 23:12:12 If I just disable configchanges and leave the runonuithread as is, will everyone in this channel collectively facepalm? Aug 26 23:12:18 dont be scrolling mad Aug 26 23:12:18 well, but literally, the variable arr.. what type is it? Aug 26 23:12:27 arr is float/double or something Aug 26 23:12:33 OR SOMETHIN! Aug 26 23:12:39 * sarbs scratch head Aug 26 23:12:52 like.. Float[]... float[].. ? Aug 26 23:12:58 Forgot to say, it only crashes when you rotate Aug 26 23:13:05 i'm wondering why you're using ArrayUtils.toObject Aug 26 23:13:18 because I pass in a float[] and I'm using androidplot which requires List Aug 26 23:13:34 oh. ok, i'm willing to bet $$ that the crash has nothing to do with that then Aug 26 23:13:50 Is there any reason why app I have that uses soundpools plays the sound for some users not for others? Aug 26 23:13:55 but it said so in the stacktrace, is that known to be bad? Aug 26 23:13:59 in your asynctask, you are most likely holding on (probably synthetically) to a reference to the Activity and/or your views Aug 26 23:14:15 ok? Aug 26 23:14:16 but those references become invalid when you rotate Aug 26 23:14:27 and so when you try to use them, boom Aug 26 23:14:42 Retrodude, I'd look at the initialization of the Player Aug 26 23:14:57 that's one problem for sure. Is my nullpointer a different manifestation of the same thing? It doesn't look related imdumbo Aug 26 23:15:12 is there sampling or some sort of constant included from class, inside the constructor? Aug 26 23:15:20 what is your configChanges setup that you mentioned? Aug 26 23:15:23 well there wont be sampling of course Aug 26 23:16:08 this function is passed a float[] sampled from a global array which is initialized in setupChat() Aug 26 23:16:26 is the global variable reset when the config is changed? Aug 26 23:17:14 eehhhrrrrr. depends. Aug 26 23:17:22 doesnt sound global Aug 26 23:17:23 global variables in your activity get reset Aug 26 23:17:27 sounds like a whole mess of android poor design practices Aug 26 23:17:27 don't ever use global variables Aug 26 23:17:37 global = instance Aug 26 23:17:41 assuming that's what you mean Aug 26 23:17:46 I know it's very poor design, what can I do to improve? I don't have much time Aug 26 23:17:47 static variables do not get reset, but don't use them Aug 26 23:17:48 at all Aug 26 23:17:53 +1 pfn Aug 26 23:18:16 and I'm not experienced with complex programs beyond simple c++ and python non-async programs Aug 26 23:18:38 read jcip Aug 26 23:19:01 it will change your life Aug 26 23:19:10 I refused first too Aug 26 23:19:18 This needs to be done pretty soon. I'm not a pro programmer, just working on a project Aug 26 23:19:19 jimbo1qaz what i would do if i were you, is simply track, and abandon, all the live AsyncTasks you have in Acitivity.onDestroy Aug 26 23:19:26 When logged into my Developer console > Game Sevices: I notice that for one of my games the PLAYERS value is null, despite there being players. Any one else experience that? My other game shows the players accurately. Aug 26 23:19:29 they all say that! Aug 26 23:19:31 then the crash happens! Aug 26 23:19:33 cancel them and/or set a flag that halts their processing Aug 26 23:20:04 if it's important, it'll get restarted when the activity is recreated, and the most the user will notice is a blip Aug 26 23:20:26 if you wanna do it right... it'll take more work :) Aug 26 23:20:49 definitely man, if you're gonna patch it up you're just adding more things for others to worry about Aug 26 23:21:02 That would be what I did if I do java programming for a living, this is just a minor side project I don't have much time for. I'm more experienced in programming contests than real-world programming Aug 26 23:21:11 not really a minor project, Aug 26 23:21:18 just I'm not experienced at big projects Aug 26 23:21:28 and still the crash is there Aug 26 23:21:41 staring you in the face brah Aug 26 23:21:55 Sicp mean muggin, even Aug 26 23:22:40 cause it sounds like it needs a step back and paper Aug 26 23:22:45 So what do you propose I do if I have like half a week to get this to be reasonably stable? Hopefully in the future I'll have time to make it better, if I'm even working on it. Aug 26 23:23:00 track, and abandon, all the live AsyncTasks you have in Acitivity.onDestroy Aug 26 23:23:35 how? (I'm a complete android noob)_ Aug 26 23:24:30 AsyncTask<...> task = new (); mAsyncTasks.add(task); task.execute(); Aug 26 23:24:42 in onPostExecute: mTasks.remove(this); Aug 26 23:25:00 in onDestroy: for (AsyncTask task : mTasks) { task.cancel(); } Aug 26 23:25:09 so it's an arraylist or something? Aug 26 23:25:16 yeah Aug 26 23:25:25 just keep a list of all live async tasks Aug 26 23:25:50 or better yet, add to the list in onPreExecute, remove in onPost Aug 26 23:26:06 or better yet, move over, let him sit down Aug 26 23:26:24 point is just to be able to cancel any currently-running tasks in onDestroy(). then, inside each task, make sure you actually pay attention to isCancelled() Aug 26 23:26:54 = new ArrayList{}; syntax error Aug 26 23:27:12 * sarbs nods Aug 26 23:27:22 i've gotta get back to work. i'm sure you'll figure it out :) Aug 26 23:27:45 dude, () Aug 26 23:29:51 man, notifyDataSetChanged() is ffffffffffff Aug 26 23:29:53 is asynctask protected or private? Aug 26 23:30:16 you create it, it can be public too Aug 26 23:30:27 Is it good practice for my small-but-already-difficult-to-use-like-most-android-programs program to have most things private> Aug 26 23:30:37 asynctask overrides, not the task itself. Aug 26 23:30:59 * sarbs not sure if srs anymore Aug 26 23:31:06 dude, who cares about private and protected, write 4 of the lines which he told you and you're a God Aug 26 23:32:02 OK I'm a horrible Java/Android programmer, I admit it. How long will it take to learn the better mindset and rewrite the program? Aug 26 23:32:11 gtfo Aug 26 23:32:40 the guy is at his job and trying to help you and thinking about your code WITH you Aug 26 23:32:47 and you're clowning Aug 26 23:35:35 Did I get myself into a program I'm not able to learn faast enough to finish? Aug 26 23:36:24 man you've already went through defeat and back out and still havent written a line Aug 26 23:36:44 its not rocket science Aug 26 23:37:36 just read carefully what he said, try to do it Aug 26 23:37:51 how to declare ArrayList, look it up. How to how to .......... Aug 26 23:40:37 jimbo1qaz: you should probably take a long walk and let your mind defrag a bit Aug 26 23:41:01 if you still have problems with syntax errors that you cant figure out time to go back to school Aug 26 23:41:41 see now I just fixed something with notifyDataSetChanged(), I thought it was notifyDataSetChanged() that was "fffffffffff", but I discovered that I was tampering with my original dataset! Aug 26 23:41:47 this is because Im fucking awesome Aug 26 23:41:50 What should I do that will satisfy the collective consciousness here? Aug 26 23:42:11 no one cares to be satisfied by you, you're the only one suffering here Aug 26 23:42:17 we're fixing things BRAH Aug 26 23:42:19 we happy Aug 26 23:42:30 you just blaming everything else and not getting to the grind Aug 26 23:42:32 lmao Aug 26 23:43:06 what i think Sicp is trying to get at, having put it so eloquently, is that it doesn't sound like you've got enough of a grasp of some pretty basic Java concepts to be able to put what we're telling you, to good use Aug 26 23:43:42 I dont think he bit off more than he could chew Aug 26 23:43:49 everything seems SOOOOOOO hard with tthese thngs Aug 26 23:44:01 but if you refuse to take the first step and get afraid..well yea, youre not gonna do it Aug 26 23:44:36 next, we'll see how a mother of 2 survived divorce and losing a job, stay tuned right here on Maury Aug 26 23:45:12 pfn must be maaaaaaad now Aug 26 23:45:13 haha Aug 26 23:45:27 by default, what happens when you interrupt an asynctask? Aug 26 23:45:40 by calling Thread.interrupt on it? nothing Aug 26 23:46:06 ? Aug 26 23:46:11 interrupt() causes certain synchronization methods to throw InterruptedException. but if you don't use those methods, nothing happens Aug 26 23:46:13 jimbo1qaz: read up on cancel(boolean) Aug 26 23:46:27 jimbo1qaz: http://lmgtfy.com/?q=by+default%2C+what+happens+when+you+interrupt+an+asynctask%3F&l=1 Aug 26 23:46:57 ah you werent following the convo Aug 26 23:48:51 you know what I did once just bcause I dont want to use asynctask? and the task I wanted needed to be right at the finish of oncreate (BUT NOT TO HALT THE UI). I created a thread that started a thread Aug 26 23:49:18 asynctask is so much overdrive for often little things needed by us common folk Aug 26 23:49:21 threadception? Aug 26 23:49:33 and often used "just to get off the UI thread" Aug 26 23:49:39 I think it was meant for bigger things Aug 26 23:50:26 threaption Aug 26 23:52:41 It sounds like running cancel() results in notifying the task, but not actually doing anything. Does it sound right? Aug 26 23:53:12 yes. you'll need to check isCancelled() inside doInBackground, if you want anything to change there Aug 26 23:53:27 it does automatically prevent onPostExecute() from being called Aug 26 23:53:29 jimbo1qaz: did you read the docs? Aug 26 23:53:44 How does onCreateOptionsMenu and onPrepareOptionsMenu interact together? I'm hiding all of my menu items in my activity, but it doesnt seem to be hiding any of the fragments menu items too Aug 26 23:53:44 you call cancel then instead on postexecute you get oncanceled called Aug 26 23:53:58 which is one of the strong reasons to separate the UI work not by runOnUiThread() Aug 26 23:54:06 yes, I'm just confirming that cancel(boolean) doesn't actually kill the thread. Aug 26 23:54:10 since the async task may have finished do in background, it'll pass the results, but because you canceled it, you have to figure out what you want to do with it Aug 26 23:54:11 unintuitive Aug 26 23:54:29 maybe you should be huffing less then paint thinner ? Aug 26 23:54:46 jimbo1qaz AsyncTask is kind of meant to be separated from thread concepts. you shouldn't ever have to use Thread methods Aug 26 23:55:10 AsyncTasks are more akin to Runnables. they are executed by an Executor that manages threads "somehow" - you're not supposed to know or care Aug 26 23:55:10 jimbo1qaz: define killing the thread? Aug 26 23:55:30 ok forget the thread, I misworded it, and the only drugs I have ever took is evaporated ethanol from undiscovered rotting oranges. Aug 26 23:56:10 do oranges ferment into ethanol? i tried that once but didn't get anything boozey. Aug 26 23:56:26 figured the citric acid prevents yeast growth. Aug 26 23:56:38 all fruits booze Aug 26 23:56:55 fuggin lushes. Aug 26 23:57:31 jimbo1qaz to get at the point of your q: no, calling cancel() does not stop anything that's already in-process, unless you're polling it on your own Aug 26 23:57:44 if doInBackground has not *started* executing, then it will not execute Aug 26 23:57:54 likewise for onPostExecute Aug 26 23:58:02 OK I'll write the code to account for that. Aug 26 23:58:12 but if you want to halt something mid-way then you need to check isCancelled Aug 26 23:58:19 and halt it yourself Aug 26 23:59:45 How do I check isCancelled() from a function call within? I can't call the caller's isCancelled(), or can I? Aug 26 23:59:57 no, you can't Aug 27 00:00:00 and shouldn't. Aug 27 00:00:18 g00s: yah, spotted that this am ... "moz is gonna ruin it for samsung" ;) Aug 27 00:00:18 But it's a long function, can I just let it run to completion? Aug 27 00:00:19 methods should be modular and from an outside perspective, they should be atomic Aug 27 00:00:44 jimbo1qaz i would. just make sure it's not referencing the activity or any member variables of it Aug 27 00:01:03 if you need data from the activity, then pass it in as parameters to the method and use the data as local variables Aug 27 00:01:07 those are thread-safe. Aug 27 00:01:22 Does cancel() block? I couldn't find it anywhere. Aug 27 00:01:31 no, it just sets a flag Aug 27 00:01:57 So what if the function runs for a full second, and the activity reloads beforehand, will anything bad (crashes, invalid) happen? Aug 27 00:02:36 depends on the function. if you access stuff that gets erased, yes, bad things will happen Aug 27 00:02:49 http://docs.oracle.com/javase/tutorial/essential/concurrency/ Aug 27 00:03:50 I recommend JCIP Aug 27 00:04:05 1st chapter, like 10 pages through you'll understand evertyhing in the universe Aug 27 00:04:21 (results may vary) Aug 27 00:05:54 Is there any way to get a reference to the action bar menu without storing references from oncreate/onprepare Aug 27 00:06:27 ActionBar myActionBar = getActionBar(); Aug 27 00:06:40 action bar menu Aug 27 00:06:42 nope, you didnt see anything Aug 27 00:06:46 lol Aug 27 00:06:46 Im not here Aug 27 00:07:15 why would you want to do that, what're you trying to do Aug 27 00:07:24 usually onCreateOptionsMenu..thats it Aug 27 00:07:26 temporarily hide all action bar items Aug 27 00:07:40 trying to do that thing Google Newstand and other new apps do? Aug 27 00:07:49 the fade in and fade out thing Aug 27 00:08:23 that's what you should be doing I think, instead of displaying a bar with no items in it Aug 27 00:08:57 would look big and bulky and solid color Aug 27 00:09:19 ah but you'd still have the activity title probably Aug 27 00:09:24 yea Im gonna go Aug 27 00:11:45 no im just trying to hide the action bar menu items temporarily Aug 27 00:12:10 I have an action bar search view which displays a search fragment, but the action bar still shows the menu items from all the fragments in the back stack Aug 27 00:13:43 I tried to do that once, but I ran into null, so dont think of stealing the references in Oncreate and storing them in MenuItem instances Aug 27 00:13:44 it wont work Aug 27 00:13:52 when you come to manipulate them it wont work Aug 27 00:14:58 SearchView's default functionality is to start a new activity which i think is just dumb Aug 27 00:19:48 can you view the variable/thread states when it crashes? Aug 27 00:20:00 android studio Aug 27 00:23:12 I have a problem with asynctask too and have no idea why Aug 27 00:24:09 shmooz: what is the problem Aug 27 00:24:18 Lots of problems, java.lang.Object[] cannot be cast to {whatever my asynctask takes} Aug 27 00:24:18 the app will crash first and second launch but every third launch it will work Aug 27 00:24:39 And it crashes Aug 27 00:24:54 shmooz: what is the error Aug 27 00:25:12 it has to do with context I think throwing an NPE Aug 27 00:25:30 paste some code Aug 27 00:25:45 I moved it to be a inner Asynctask because I thought I was passing context wrong Aug 27 00:25:48 ok I will Aug 27 00:27:04 private class ParseMessageTask extends AsyncTask { protected void onPostExecute(Void asdf){ mTasks.remove(this);} protected Void doInBackground(byte[]... readBufArr) { java.lang.ClassCastException: java.lang.Object[] cannot be cast to byte[][] Aug 27 00:27:34 Byte[]... Aug 27 00:27:39 gotta use object not primitive Aug 27 00:27:47 it worked before I made these changes Aug 27 00:27:50 and maybe just Byte.... Aug 27 00:27:56 I Aug 27 00:28:01 it uses objects Aug 27 00:28:06 and maybe just Byte... Aug 27 00:28:08 I'm passing an array, not multi-args. also an array is an object. Aug 27 00:28:24 you are using primitives, it wants objects Aug 27 00:28:36 just uppercase the b Aug 27 00:28:38 Byte Aug 27 00:28:40 It's a double-array. Aug 27 00:28:45 makes it a byte object Aug 27 00:28:57 here's the code for my crashing Asynctask ... http://pastebin.com/SSeWQjha Aug 27 00:28:59 I'm taking an array... It worked before, an array is an object. Aug 27 00:29:04 you mean 2-dimensional array. double array means array of doubles Aug 27 00:29:28 jimbo1qaz, just uppercase the b and tell me what happens Aug 27 00:29:36 I get the same error when passing a Void,. Aug 27 00:29:48 So it's not an object/nonobject error. Aug 27 00:29:53 the guts of that code work fine when I move it out of Asynctask to onCreate Aug 27 00:31:10 oops I forgot to paste all of it Aug 27 00:31:20 it's missing the postExecute Aug 27 00:31:24 let me do it again Aug 27 00:32:05 In Android Studio, is it physically possible to diff with the previous version, instead of current? Aug 27 00:32:30 ok here is all of it http://pastebin.com/GPxJRVUC Aug 27 00:33:09 I'm suspecting the context MainActivity.this when setting the adapter is crashing it when it's inside of Asynctask Aug 27 00:35:07 I think the problem is that I did "AsyncTask asdf = new SpecialTask()" instead of "SpecialTask asdf = new SpecialTask()". Aug 27 00:35:54 it's just trying to scan for video files and collect info about them and put them into arraylists so it can set the listview with them Aug 27 00:36:56 it works every third time I launch it, and it works everytime if I move that code into onCreate Aug 27 00:38:13 shmooz: you should pass your asyntask a context, and get your content resolver in the constructor of your asynctask Aug 27 00:38:16 hi guys, i am trying to bring an off screen layout on screen using the following code http://pastebin.com/ndduG8cb , but there is an issue with animating an off screen view. Does anyone know how to fix this Aug 27 00:39:28 canvs2321: I tried that before but not while it was inner, the asynctask was in a separate file Aug 27 00:39:44 I'll try it again Aug 27 00:43:14 shmooz: i'll get ya example maybe here in a few minutes, maybe :) Aug 27 00:43:34 canvs2321: thanks :) Aug 27 00:53:20 ? Aug 27 00:54:43 In what cases would setVisible(false) on a menu not actually make it invisible Aug 27 00:56:17 shmooz: http://pastebin.com/tab2frDG here's just an example, i'd change things about it, such as having so many list, i'd create a custom object&change your adapter Aug 27 00:56:34 such as to not have it have so many lists* :) Aug 27 00:58:16 thanks canvs2321 I'll try your alterations Aug 27 00:59:45 How do I determine why an app is being unresponsive? Aug 27 01:00:10 breakpoints, debug Aug 27 01:00:25 If I have no clue whatsoever, can I pause and find which threads/tasks are doing what? Aug 27 01:00:35 shmooz: i'm no expert, but i've recently been messing with asynctask and had to tweak to get stuff right. mainly it's just, pass it your objects that may get changed based on results. do your heavy crunching in background, don't touch any views or any ui elements in doInBackground. then in onPost check your elements and update accordingly Aug 27 01:01:44 or atleast check that elements still exist and not null, if null ignore updating them as they are gone Aug 27 01:03:20 hmmm I was thinking I wouldn't have to pass it so many objects through the constructor if it's an inner asynctask Aug 27 01:03:26 I'm saving my fragments menu reference and doing setVisible(false) on all items, then I call invalidateoptionsmenu, but the menu items remain visibile. Aug 27 01:03:33 since they are visible to it Aug 27 01:08:55 shmooz: that was just an example, you could change the contructor to just accept your Activity, and inside your asynctask can access all public methods&such Aug 27 01:10:16 shooz: whatever is visible you don't need to pass, but i'd still not get the content resolver in background, as it's tied to your context Aug 27 01:11:17 canvs2321: ok I'll see if I can get it working by tonight :) Aug 27 01:11:41 thanks for your help :) Aug 27 01:11:47 yep Aug 27 01:27:59 does anyone have knowledge regarding the animation issue i posted not too long ago Aug 27 01:28:22 Hi is there a way to create a Fake LocationListener that I can force to trigger when I want with the GPS location I want? Aug 27 01:58:19 totic, just call it yourself... Aug 27 01:58:28 not that hard... Aug 27 02:04:26 what a fucking tease Aug 27 02:04:40 auto complete your ebook search but then not actually have it Aug 27 02:45:54 anyone notice market links in play store are causing FC? Aug 27 02:49:00 market links Aug 27 02:49:28 hehe "Amazon has sold no more than 35,000 Fire phones, data suggests" Aug 27 02:49:41 i'm so ... surprised Aug 27 02:50:15 desmin88: links using market:// Aug 27 02:51:55 hmm it appears my fragments are overlapping each other somehow Aug 27 02:52:09 thats interesting Aug 27 02:52:51 desmin88 you mean the views that contain your fragments Aug 27 02:53:04 yeap Aug 27 02:53:17 pastebin layout Aug 27 02:53:30 I like layout sh*t Aug 27 02:53:32 :) Aug 27 02:53:52 http://pastie.org/9505701 Aug 27 02:54:49 http://i.imgur.com/cR6CwBa.png Aug 27 02:55:32 well thats cause the parent is a framelayout right ? Aug 27 02:55:41 rather than something with order Aug 27 02:55:51 like linearLayout vertical Aug 27 02:55:56 these all get placed in a framelayout Aug 27 02:55:57 yes Aug 27 02:56:20 no I mean Aug 27 02:56:28 @+id/fragment_feed_detail_body sits in a frameLayout Aug 27 02:56:38 along with the linearLayout that has the imageViews Aug 27 02:57:00 those are within a linearlayout Aug 27 02:57:06 oh, me missreading Aug 27 02:57:21 I take it the text overlapping is the html stuff ? Aug 27 02:57:53 so you maybe have a measure problem in that custom view Aug 27 02:58:04 odd that it draws outside the bounds of the parent though Aug 27 02:58:31 didn't think android did that by default, unless you do childClip false flag or whatever it is **** ENDING LOGGING AT Wed Aug 27 02:59:58 2014