**** BEGIN LOGGING AT Fri May 30 03:00:00 2014 May 30 03:00:08 could be an optical illusion or some anti aliasing artifacts May 30 03:00:51 alex_PP: Thanks, So there's definitely a little shadow on the lines know how to get rid of them? May 30 03:05:28 alex_PP: I tried to turn off anti aliasing but it's still there but the lines are just jagged and un-anti-aliased May 30 03:06:37 is there a way to make my app stay on its screen/activity when someone calls? May 30 03:07:10 sounds like bad citizenship. May 30 03:58:27 wonder if theres google app promomation of some kind May 30 04:00:34 promotion? :) May 30 04:43:50 does anyone has experience with uiautomator ? May 30 04:47:41 "However, upgrading from a read lock to the write lock is not possible." ... well that makes sense May 30 04:55:36 Hey, is there any example how you manage DatabaseHelper with ORMLite when you have multiple classes? May 30 05:17:57 any good tutorials on how to get accurate readings from magnetometer? I loaded the compass app and is fairly stable / accurate but when I use TYPE_ORIENTATION (i know its deprecated), my readings are all over the board. May 30 05:31:55 The reason most of the early api features are depciated for GPS and Compass are the software was shit when the phones started embedding them. May 30 05:33:02 There's a lot of finess when it comes to tracking and monitoring data. The systems need to build statisical norms of their current locations to propurly get it right. May 30 05:33:18 I'd recommend using the latest if you can May 30 05:34:48 ok will do some research May 30 05:35:05 i know I need accelerometer and magnetometer readings for the 'new way' to do things May 30 06:27:25 How should i query with ORMLite for user_id which is String in my table which will only have 1 row? May 30 06:32:18 Anyone? May 30 07:02:54 enough Facebook and get to work May 30 07:03:01 goading it May 30 07:03:11 god dang it* May 30 07:06:39 http://pastebin.com/tdWyHhjP May 30 07:06:42 why do i get this? May 30 07:10:31 is there some way to force a fragment to save its state when adding it to the backstack with replace? May 30 07:11:13 im using MapFragment as a nested fragment and when pushing the fragment containing it on the stack and returning to it the state isnt saved and MapFragment is reset :/ May 30 07:17:26 Someone? My app crashes without provide a stacktrace May 30 07:17:42 Hi there. I don't know why but I get silly java null pointer exception when I switch to a fragment that has editText.setOnCLickListener(new View.OnClickListener() { ... } I've checked that findViewById has the right id http://pastie.org/private/ldjcdf14looje2shk9u0ia Any ideas why it woul throw a null pointer exception for line 23? May 30 07:29:12 ah May 30 07:29:33 getActivity() was the issue May 30 07:31:45 Hello I am writing a list adapter for showing movies and music albums, does anyone know a public api for retrieving thumbnails of those two types? May 30 07:33:05 rhcake i believe the fragment is supposed to save its state, how are you instatiating it and adding it? can you post the code? May 30 07:33:51 frojnd: EditText datumNakupa = (EditText) getActivity().findViewById(R.id.editTextDate); -> EditText datumNakupa = (EditText) rootView.findViewById(R.id.editTextDate); May 30 07:34:22 yovast what are you trying to do? May 30 07:39:10 lasserix, the nickname you want to refer to, begin typing it and then press tab May 30 07:39:41 yoavst, I ran into the same exception you saw yesterday, 5 minutes after you asked it May 30 07:39:58 there is something horribly wrong that you've done somewhere, like a typo that has been confused May 30 07:40:03 not actual wrong logic May 30 07:40:13 show your code if you like May 30 07:44:45 Sicp what? May 30 07:45:06 thank you but two lines above i demonstrated that i know that already? ;p May 30 07:46:16 Scip is he writing an input method? May 30 07:46:49 but you wrote yovast May 30 07:47:03 so I was there writing yov and tabbing and finding nothing May 30 07:47:03 lol May 30 07:47:13 anyway what? May 30 07:47:45 I don't know what he's trying to do, but he's been complaining about that since yesterday and still no code paste, I ran into that same error minutes after he first mentioned it May 30 07:48:08 that null pointer with no reference to your code. usually the stack trace is above it and it does reference his code, no idea what he did after May 30 07:48:17 anyway, life moves on May 30 07:50:10 Sicp: hi May 30 07:50:16 sup BRO! May 30 07:50:17 lol May 30 07:50:25 it isn't my code May 30 07:50:37 there are a lot of class involved on the start of the app May 30 07:50:43 so I can't know which crash it May 30 07:50:54 Sicp: just haven't used shells long enough for tab auto-completion to be natural yet :! May 30 07:51:07 yoavst: what are you trying to do? May 30 07:51:22 I mean, contextualize what causes this npe since the code says nothing in particular May 30 07:51:28 lasserix: Init an app (a lot of internet requests) May 30 07:51:41 there's a lot of room for error bro May 30 07:51:45 I know May 30 07:51:53 you have to break it down, stop everything and just make it work 1 thing at a time May 30 07:51:53 but it worked :P May 30 07:52:17 Is it belong to ClassLoader.findClass that all the time throws classNotFound? May 30 07:52:20 or it is normal :P? May 30 07:52:33 http://stackoverflow.com/questions/20933155/android-program-using-asynktask-and-interfaces-crash May 30 07:53:18 input method means it has something to do with text May 30 07:53:28 i dont know if that's what's causing the problem, i mean the link May 30 07:53:52 but remote service exception / binder stuff means something you're doing is using a remote service (probably one that runs integral to the os) May 30 07:53:53 ClassLoader.findClass ? May 30 07:54:04 yeah May 30 07:54:11 why do you need that ? May 30 07:54:23 he is initializing classes from a server? May 30 07:55:12 gordon_: I don't need that May 30 07:55:27 I told AS to stop on each Exception May 30 07:55:28 oh May 30 07:55:31 so the thing is May 30 07:55:43 he throw NotFound on every class May 30 07:55:50 lasserix: what? :D May 30 07:55:52 A remote exception is the exception thrown locally whenever any kind of exception causes on the remote end May 30 07:56:03 because exceptions can't be propogated through the processes May 30 07:56:20 confirm that by seeing if you have a try in the suspect code May 30 07:56:26 if there's a catch, then lass is right May 30 07:56:29 like remote controlling phone May 30 07:56:36 no May 30 07:56:40 damn it May 30 07:56:55 Android -> activity, service, braodcast receiver, content provider May 30 07:56:56 hi does admob only pay for clicks? if so is there a alternative that pays for per impression? May 30 07:57:04 IThe problem isn't with the crash, the problem is with the no stacktrace May 30 07:57:05 a service can be made to run in a different process May 30 07:57:06 so I can't fix it May 30 07:57:12 yes i am telling you why May 30 07:57:20 a service can be made to run in another process May 30 07:57:35 and you can bind locally, ie in your own process to that process through AIDL or a handler May 30 07:57:51 Input Method Manager is a remote service, in fact a lot of the background functions of android are May 30 07:57:57 (including content providers, by the way) May 30 07:58:15 and when an exception is thrown in another process, that exception can't be propogated (or its stack trace) May 30 07:58:32 and instead the client / reciever / your app gets what is called a "Remote Exception" May 30 07:59:06 So I have nothing to do? May 30 07:59:09 the problem here is an native android os remote service is telling you this so you are kind of fucked May 30 07:59:20 did you look at that link I sent you? May 30 07:59:55 someone was getting same error from a toast being shown before an sync task finished, where the text of the toast was laoded from a hashmap populated by the async task May 30 08:00:34 hence it was a null pointer locally, but thrown remotely May 30 08:00:40 can we see the full stack trace? May 30 08:03:15 lasserix: So you say that the exception is on one of my servers/receivers? May 30 08:03:49 i am not sure, but it looks like something you are doing is causing one of androids remote services to crash May 30 08:04:35 ie trying to show a toast with a text that hasn't been initialized yet because a network get hasn't completed before the toast shown is called May 30 08:04:53 did this just start happening? May 30 08:05:03 *to crash -> throw an exception May 30 08:05:22 05-30 11:04:53.179 755-990/system_process E/InputDispatcher﹕ channel '42735bf8 com.zanderisrael.pazam/com.zanderisrael.pazam.ui.activities.CommercialActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 05-30 11:04:53.179 755-990/system_process E/InputDispatcher﹕ channel '427734b8 com.zanderisrael.pazam/com.zanderisrael.pazam.ui.activities.CommercialActivity (server)' ~ Channel is unrecoverably b May 30 08:05:39 http://pastebin.com/Cz89yv5y -> logcat (level Error) May 30 08:06:29 look in those classes for wherver you might be trying to access a string before it was initialized May 30 08:07:10 specifically initialized by the network stuff that is done when the app starts May 30 08:07:51 oh the clas snot found thing is happening because the debugger or whatever is trying to access a class that does not exist locally but exists remotly May 30 08:07:58 hence it can't initialize it May 30 08:08:26 I searched the "Channel is unrecoverably broken and will be disposed!" on google and it says there is a memory leak May 30 08:09:03 yeah probably because you a showing a toast or dialog but it crashes hence the reference is lost May 30 08:13:44 lasserix: the nullpointer is in the line mCaller.executeOrSendMessage(mCaller.obtainMessageIO( DO_SET_SESSION_ENABLED, enabled ? 1 : 0, ls)); May 30 08:14:03 mcaller not set? May 30 08:14:28 or something in obtainmessageIO? May 30 08:14:43 ls can't be null May 30 08:14:48 because it check it before May 30 08:15:00 and the error is on 287, so it is: DO_SET_SESSION_ENABLED, enabled ? 1 : 0, ls)); May 30 08:15:10 enabled is a boolean -> can't be null May 30 08:15:18 so its gota be ls May 30 08:15:27 try forcing ls to be not null by setting it before that line May 30 08:15:30 and see if it crashes May 30 08:15:33 3 lines before: May 30 08:15:34 if (ls == null) { Log.w(TAG, "Session is already finished: " + session); return; } May 30 08:15:41 its android code,not mine :D May 30 08:15:47 ohh May 30 08:15:49 hehe May 30 08:15:54 oh May 30 08:15:56 again May 30 08:16:03 this is an error caused by an error on your end May 30 08:16:18 this inside an async task by chance? May 30 08:16:35 android code or mine? May 30 08:16:48 android May 30 08:16:52 this code you just showed May 30 08:16:55 what is it part of? May 30 08:17:25 setSessionEnabled May 30 08:17:40 yeah that's a method whose the method belong to? May 30 08:18:03 how can I pass a native opencv Mat back to java? May 30 08:18:19 hi guys, i need to parse a website with JSOUP. I want use a Service for run this action. My app crash when i run the parse. Is possible use AsyncTask into a Service? May 30 08:18:35 yes you must May 30 08:18:39 lasserix: IInputMethodWrapper extends IInputMethod.Stub implements HandlerCaller.Callback May 30 08:18:46 service runs in same thread as whoever starts it May 30 08:18:55 roxdragon intentService would be fine ;) May 30 08:18:57 ie on the UI thread, network operations must be done on a seperate thread May 30 08:19:03 ^^g00s++ May 30 08:21:08 lasserix: I use Ion May 30 08:21:10 yoavst oh, well. i have no idea, except for it looks like something involving a string since input method processes strings i mean May 30 08:21:45 05-30 11:10:07.515 755-2565/? W/ImageView﹕ Unable to find resource: 2130838928 May 30 08:21:49 I think you right May 30 08:21:55 why didn't i saw this before :P May 30 08:22:09 g00s: http://paste.ubuntu.com/7549836/ May 30 08:22:12 cause it is totally obtuse May 30 08:22:25 i have this but when execute parse my app crash May 30 08:22:30 i need toAsynCtask? May 30 08:22:35 No occurrences of '0x7f020590' found in Project May 30 08:22:37 :( May 30 08:23:02 roxdragon: i told you, you have to put it in a background thread. the service runs on UI thread May 30 08:23:16 g00s said use intent service because it is naturally off the UI thread May 30 08:23:54 so lasserix : http://pastebin.com/kNUPKf4E May 30 08:23:58 compizaah ok Thank you :) May 30 08:24:41 lasserix: maybe it because xposed? May 30 08:24:55 yoavst at de.defim.apk.notifyclean.bm.beforeHookedMethod(Unknown Source) May 30 08:24:55 at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:611) May 30 08:25:02 are those yours? May 30 08:25:06 that would be my guess May 30 08:25:09 It is xposed framework May 30 08:25:13 oh May 30 08:25:22 what about de.defim? May 30 08:25:32 NofityClean. I'll disable that and check May 30 08:25:53 But I don't think it is the reason May 30 08:26:11 well May 30 08:26:12 its saying May 30 08:26:20 "Unknown source" because it's the client to this remote crash May 30 08:26:27 meaning it can't read the class files May 30 08:26:36 (i am guessing) May 30 08:26:43 (i am guessing it's the client in this case) May 30 08:26:52 Maybe, It had an update with "fix crash" on changellog May 30 08:27:01 I wish it is the problem, and my code is perfect :D May 30 08:27:05 hehe May 30 08:27:10 yeah that's always fun May 30 08:27:11 Anyone using Dagger with Proguard? I don't really wanna obfuscate my own app, I just want to reduce the app size because I only use very little of libraries like Guava, so I need the rules to apply Proguard to everything but my own app. May 30 08:27:26 best part about deving anything with a front end is everything is your fault ;p May 30 08:28:22 lasserix: still crash :( May 30 08:29:16 kakazza: you can specify proguard "don't" to everything and then add rules to not "don't" specific things. I.e., to specify explicitly what to proguard. May 30 08:29:41 05-30 11:29:21.946 16354-16354/com.amazon.venezia W/CodeLoaderInitializer﹕ Nothing to see here. May 30 08:29:44 lol amazon May 30 08:29:59 yoavst if you can post notifyclean May 30 08:30:17 ohyou disabled the whole thing May 30 08:30:18 lasserix: I disabled all xposed models May 30 08:30:22 how can I create a java array of longs from jni? there is no NewLongArray May 30 08:30:39 go deeper: what classes call on that method (use view call hierarchy or whatever) May 30 08:30:54 JakeWharton: That sounds useful, I didn't come across the "not" part, though. May 30 08:30:56 erisco read them out of a buffer? May 30 08:30:59 Or "don't" May 30 08:31:11 lasserix, what do you mean? May 30 08:31:37 can't you pass nio buffers? May 30 08:31:54 JakeWharton: I have to look at the provided android-proguard.txt that comes with the SDK, I wondered why that causes me problems with Dagger, it shouldn't obfuscate AFAIK. May 30 08:32:16 kakazza: exclamation is not May 30 08:32:19 lasserix, what is that exactly? May 30 08:32:30 just a buffer May 30 08:32:41 an allocation of some memory May 30 08:32:45 you can stuff primitives in it May 30 08:32:51 and read them out using a bufferwrapper May 30 08:32:54 how do I read it on the java side? May 30 08:32:58 bytebuffer May 30 08:33:04 getFloat while hasFloats May 30 08:33:05 -dontfoo ** -dontfoo !com.whatever.** == foo only that package May 30 08:33:09 lasserix: Damn, it was crashing while i was debuging :P May 30 08:33:21 cool! May 30 08:33:22 JakeWharton: d'uh May 30 08:33:48 Or something like that... I haven't done it in a while. I can look at our config that does it tomorrow. May 30 08:33:56 lasserix, hrm I can certainly try that May 30 08:34:12 not sure how I'd free the memory afterwards though May 30 08:34:35 just use one buffer and free it when the app pauses or whatever May 30 08:34:36 JakeWharton: That would be great! Would that be an option for u2020? Maintained Proguard config that works with pretty much everything square and you released. May 30 08:34:45 one buffer->pool May 30 08:35:22 kakazza: yeah I'd consider it. We don't proguard at all for 3/4ths of our apps. So much simpler. May 30 08:36:15 It is. It's just that my app used to be 800KB, with Guava it's 1.5MB (I know, still not very much, guess I'm better off not wasting hours on ProGuard and just leave it at it) May 30 08:36:22 But I'd love to see your proguard config. May 30 08:39:57 Why don't you just pull the classes out of Guava that you need? May 30 08:40:09 lasserix, I found this to know how to get the buffer address.. what do I do once I have the jbyte* though? http://stackoverflow.com/questions/2673839/jni-native-method-with-bytebuffer-parameter May 30 08:40:51 sorry i dont really know May 30 08:41:40 JakeWharton: I considered that, I already do with Apache Commons. But I thought having to manually maintain it is more work than using a gradle dependency and then automatically stripping everything else using ProGuard May 30 08:42:43 Anyway, thanks for your reply. I'm outtie May 30 08:43:11 guys i want run asynctask every 10 minutes. Is possible with a Service? May 30 08:43:31 what's the best solution? May 30 08:44:16 timertask in a service May 30 08:44:44 AlarmManager and IntentService May 30 08:44:48 hello May 30 08:45:49 I have some weird behavior with a global variable in the NDK May 30 08:46:23 I allocate a small buffer (a few bytes) and it doesn't seem to be modifiable May 30 08:48:12 i.e. I assign to it (e.g. buffer[0] = 0xFF) and then when I print the value it's something else (random garbage by the looks of it) May 30 08:49:08 lasserix: or^ May 30 08:49:09 ? May 30 08:49:46 no or May 30 08:50:32 do you know if there is a limitation to malloc'ing in the NDK ? May 30 08:50:37 for global variables or otherwise May 30 08:52:27 i don't understand how use a timertask into a service May 30 08:54:18 lasserix: http://paste.ubuntu.com/7550038/ May 30 08:54:35 http://bit.ly/1kbdxzN May 30 08:54:45 lasserix, any idea how to pass the ByteBuffer back to Java correctly? May 30 08:54:56 no sorry May 30 08:55:12 roxdragon use an intent service like g00s said and put the timer task in your activity May 30 08:55:36 but the scope of your quetion is too large to answer definitively, you need to read up on services May 30 08:56:34 Intent intent = new intent(this, AsyncTaskclass)? May 30 08:56:59 but the scope of your quetion is too large to answer definitively, you need to read up on services May 30 08:57:00 lasserix: asynctask run a parse and obtain strings May 30 08:57:05 but the scope of your quetion is too large to answer definitively, you need to read up on services May 30 08:57:12 and async tasks May 30 08:57:31 okokok May 30 08:57:37 you are asking how to code all this, i will be happy to do it if you want to pay me :) May 30 09:00:18 sigh I am deadd00d May 30 09:14:06 lasserix: found it!! May 30 09:14:15 do tell! May 30 09:14:20 i wrote string.equals("") instead string.equals(" "); May 30 09:14:27 heheheh May 30 09:14:43 2 hours... KILLMYSELF May 30 09:14:43 cool, May 30 09:15:08 new rule, don't return null - ever :D May 30 09:15:39 I feel like a new man now :D May 30 09:17:39 * yoavst kill himself because he is too stupid May 30 09:40:57 are C++'s long and Java's long going to be the same size? May 30 09:43:28 I gave your line to google and google answered: A Java long is not the same as in C++ May 30 09:44:39 erisco, depends on architecture May 30 09:44:49 java is always 64 bits May 30 09:44:52 I presume jlong is the same May 30 09:45:14 that would make sense May 30 09:45:56 "The C++ standard does not specify the size of integral types in bytes, but it specifies minimum ranges they must be able to hold" May 30 09:46:27 https://www.google.com/search?q=size+of+jlong May 30 09:46:30 so the minimum for signed log is "signed long: -2147483647 to 2147483647" May 30 09:47:46 I cannot seem to figure out how to get a bytebuffer back to java-land properly May 30 09:48:00 when I try and read from it I seem to be getting random memory, and often crashes May 30 10:09:12 recordAddrs.push_back((jlong)&(recordFrames[i])); this sometimes gives me a valid address and sometimes gives me 0 or 1 May 30 10:09:15 any idea why that happens? May 30 10:09:29 I am looping through recordFrames using index i May 30 10:09:40 recordFrames is std::vector May 30 10:11:42 hm weird maybe it was a glitch with the printing... I changed the debug print and it looks okay now May 30 10:26:52 oh wow the default byte ordering was wrong May 30 10:26:58 herp derp May 30 10:29:58 don't use byte buffer May 30 10:30:08 srsly May 30 10:30:21 what do you want to do? byteArray to float? float to byteArray? May 30 10:30:26 signed? unsigned? May 30 10:49:19 In an IntentService, or in general, should super.onDestroy be called in the beginning of the end of onDestroy()? At the end right, after one is done with cleaning up the local mess May 30 11:09:57 Hi guys May 30 11:11:23 are PSD files that you keep for convenience in the drawable folders included in the apk or they are removed? May 30 11:11:43 you can do like you want May 30 11:12:19 ktwo, just to make sure they don't add up in the apk size May 30 11:12:21 I'm developing an app (API 10+), which has a NavigationDrawer. Once Drawer is loaded, I perform a fragment transaction of the containter with a Fragment that has a MapFragment object. The issue is that since my app shows this map on startup, it takes too long to show this map, and show actionbar aswell (with its buttons), so it feels like a frozen for some seconds. Any idea to avoid this issue? Thanks in advance May 30 11:12:37 danieleB, well sure if you keep them they will be copied in your apk May 30 11:12:58 ktwo, really? I thought they would be stripped May 30 11:12:58 (at least with eclipse i think so, but maybe you can exclude them) May 30 11:13:11 you can open the apk with 7zip or winrar and check May 30 11:13:12 I am using Android Studio May 30 11:13:23 ktwo, good idea :-) May 30 11:13:24 thanks May 30 11:17:30 ktwo, you are right, actually they are included May 30 11:32:21 Do fragments act kind of like activities in that they can be used to display a separate "screen" of content? May 30 11:52:43 Bacta: Have You read googles fragment tutorial? May 30 11:54:10 Yep. Looks like I'm incorrect May 30 11:54:21 I'm having issues with something loaded using an AsyncTask. May 30 11:54:53 (currently I have Activity A which launches Activity B - that's why I asked about fragments) May 30 11:55:16 If I go on to Activity B and then hit back the data loaded in Activity A is gone and needs to be loaded again. Which is time consuming... May 30 11:58:05 You can use fragments for this May 30 11:58:50 How would that work? May 30 12:00:52 Bacta i imagine when you rotate the display Activty A reloads as well... May 30 12:01:02 which is also far from ideal May 30 12:02:02 move your two activities into twofragments and one activity and fix your state May 30 12:03:24 So I would effectively be hiding one fragment and showing another? May 30 12:04:14 Sort of yeah May 30 12:19:00 I need a compatility matrix for Android <2.3 SSL/TLS implementations and SSL/TLS protocol versions; does anyone of you know where to find that kind of information? May 30 12:26:06 when I play back an mp4 video it immediately ends (using MediaPlayer) May 30 12:26:29 the video also immediately ends if I play it on windows media player, but does not end immediately on smplayer May 30 12:26:33 the video is 8 seconds long May 30 12:53:54 hello guys May 30 12:54:05 im novice programmer and i stuck at this http://pastebin.com/DCefS0AR May 30 12:54:24 i want my image gets first position onAnimationEnd May 30 12:54:47 i tried setY setposition set all the things but never get it done May 30 12:56:32 hey guys May 30 12:56:42 i'm trying to implement an onclick listener inside my dialog class May 30 12:56:48 and it's not listening to any clicks May 30 12:56:49 lol May 30 12:57:15 alertdialog ? May 30 12:57:19 no May 30 12:57:21 dialog May 30 12:57:25 Dialog May 30 12:57:37 i implmented Dialog.OnClickListener May 30 12:57:39 hmmm May 30 12:57:43 that's probably my mistake May 30 12:57:56 maybe the onclick method should be in the class i call the dialog from May 30 12:58:19 but i really want the dialog class to handle the clicking May 30 13:01:17 jvrodrigues pastebin please May 30 13:16:43 jvrodrigues: something like this? http://stackoverflow.com/a/12073651/3488870 May 30 13:16:51 ya May 30 13:16:59 i forgot to add i fixed it May 30 13:17:04 but thank you very much May 30 13:17:15 i was setting my listeners wrong May 30 13:21:36 Hi fellows, is it possible to stream video with android volley, and if yes where can I find an example ? May 30 13:33:45 Do you think it is reasonable to keep an intent service alive after the onHandleIntent? May 30 13:34:39 Hey guys, I'm having a few issues trying to get an sqlite database working nicely with a listactivity I have. May 30 13:35:19 One suggestions was to run Looper.myLooper().loop() at the end of onHandleIntent, which indeed keeps it alive, but it's quite dogdy when it comes to shutting it down agian. I get native segvfault errors. May 30 13:35:24 Namely, I'm currently just iterating over them using their position in the list. This is an issue because the first items ID may not be 1, it could be anything as they can be deleted. May 30 13:36:23 I'm trying to implement a custom CursorAdapter now, but I'd like to set up the view using the object the view is representing rather than using cursor.getwhatever. May 30 13:36:37 Because then I'm getting database lingo and putting it in my adapter classes. May 30 13:38:11 So I guess what I am asking is, what is the cleanest way to list rows in an sqlite database on a list activity? :P May 30 13:45:51 Hi, what's the best book for android programming? (alternative of google documentation) May 30 13:50:30 m8: none, because they are all oudated after 6-12 months May 30 13:54:56 I am calling an activity from a Settings item http://developer.android.com/guide/topics/ui/settings.html#Intents How can I "putExtra" in this intent? May 30 14:05:57 this xml is calling a grey_border square that covers the entire layouthttp://pastebin.com/2w0G8uXn May 30 14:06:09 instead of being only 1dp from the top May 30 14:06:12 why is this happening? May 30 14:18:05 Can someone explain this behavior? I am browsing the Android source code locally, of MediaPlayer, where it shows me public methods on the class, but I cannot access them from my code, the same is true for a public class, residing in android.media namely SubtitleController May 30 14:18:15 why is it not accessible? May 30 14:18:30 has this to do with the API I am targeting wit my project? May 30 14:18:50 fun question: why doesn't preferencemanager handle saving an ENUM for you? May 30 14:25:23 Hello Androids. I have a ListView that retrieves data from the net. I have an emptyView (using ListView.setEmptyView()) for when the ListView contains no items. However, I want to set another empty view for when the network request fails. How can I do this? Here is the layouts for the empty, error, and ListViews, as well as their usage in a Fragment: https://gist.github.com/MarkyC/fbed72b4cab28a08 May 30 14:25:25 4a51 May 30 14:25:51 Whoops, got cut off there: Here is the layouts for the empty, error, and ListViews, as well as their usage in a Fragment: https://gist.github.com/MarkyC/fbed72b4cab28a084a51 May 30 14:26:24 Hello! I want to be able to kill one activity in the stack from the current foreground activity. The only way I’ve found to do this is http://stackoverflow.com/a/14356774 Is that a correct approach? Should I do something else? May 30 14:31:36 oscarvarto: That is one way, assuming ActivityA is static. I usually call finish() or user CLEAR_TOP to push new Activities over old ones, but my use cases could be much different than yours May 30 14:32:02 That pattern essentially makes your ActivityA a singleton May 30 14:33:08 MarkyC: By “singleton” you mean only one instance of ActivityA? May 30 14:33:40 oscarvarto: yes, that code is the singleton pattern applied to ActivityA May 30 14:35:15 Because I essentially need that every Activity in the stack is a singleton too. May 30 14:35:29 So that will be useful. Thanks a lot. May 30 14:39:59 oscarvarto: Just keep in mind that singletons/factory patterns /are/ good(!), but overuse of a good thing can lead to smelly code. May 30 14:41:24 MarkyC: Thanks for the advice. My boss is the one asking for a lot of weird stuff... May 30 14:52:54 platzhirsch, google documentation it's still better? May 30 14:53:04 sure May 30 15:06:00 MarkyC: Let’s say I have A1 -> A2 -> A3 -> A4 (last one is at the top of the stack “now”). Suppose I avoid the singleton pattern for activities. Can I use a broadcast intent and a receiver in each activity to selectively kill the activity corresponding to a certain class? May 30 15:06:34 Let’s say I send a broadcast intent with the information Class[A2] to kill that one only. May 30 15:06:58 Is that a feasible (and correct) idea? May 30 15:13:53 oscarvarto: It's hard to say what pattern you should be following because I don't know what your activities are doing. A1 -> A2 -> A3 -> A4 seems to me to be some sort of flow, which would suggest the use of Fragments. But your way works as well. I imagine having a unique name for each Activity (maybe even getClass().getSimpleName()) and then onReceive you make sure the correct activities finish() May 30 15:16:45 MarkyC: The Android app I am working on is “controlled” by a “Hierarchichal” Finite State Machine. Every activity corresponds to a FSM that was created by a “parentFSM”. So yes, I need to respect the specific “flow”. My boss wants to be able to kill one activity on the stack. May 30 15:19:26 oscarvarto: That sounds hairy. But you can most certainly use a Broadcast Receiver to finish() these Activities May 30 15:19:46 MarkyC: *very May 30 15:20:09 oscarvarto: If using Fragments, you could have simply named each Fragment on the back stack, and removed them, by name. Much simpler that way, but probably not feasible for you May 30 15:20:43 MarkyC: *very* hairy. I am using Scala to develop the Android. I must use Akka on Android too. All sort of weird and non-conventional android development… May 30 15:22:08 MarkyC: I am just an employee following weird requirements… May 30 15:22:40 though I believe over engeneering is a problem here May 30 15:22:49 engineering* May 30 15:23:45 How do I listen for mute/unmute of the AudioManager.STREAM_MUSIC stream? If I listen to AudioManager.RINGER_MODE_CHANGED_ACTION, it gives me mute/unmute messages for the phone ringtone stream, which isn't what I want. May 30 15:26:38 Cyp_: Listen to android.media.VOLUME_CHANGED_ACTION I believe May 30 15:27:35 Will that work on all devices? From stackoverflow: »However, there is an undocumented action called "android.media.VOLUME_CHANGED_ACTION" which you could use, but it probably won't work on all devices/versions so it is not recommended.« May 30 15:31:02 Cyp_: okay, attempt 2: Since you have an AudioManager, use audioManager.getStreamVolume(STREAM_MUSIC) and compare to 0 May 30 15:31:31 oh shoot, you want to listen to changes, that won't work May 30 15:34:00 Cyp_: I hate to say use a Service that does that check in the background, but you might have to... May 30 15:34:13 * Cyp_ considering listening actively with getStreamVolume every second. May 30 15:35:41 Cyp_: Yeah, that's what I was getting at. It's ugly, but it will work on every device. May 30 15:36:50 Would it break anything on devices without it, to listen to android.media.VOLUME_CHANGED_ACTION as well as checking every second? May 30 15:41:08 MarkyC: Anyway, thanks. May 30 15:42:11 Cyp_: I would see if there's a way to determine if a device supports VOLUME_CHANGED_ACTION, and then run that loop in the background if it doesn't. However, I can't see a clean way of doing that May 30 16:00:42 i have a question regarding fields & their reference life cycle. which one will have a weaker reference thus faster GC? global variable or local variable? May 30 16:11:05 omid8bimo: Once a variable goes out of scope it may be marked for GC, so I'm inclined to say a local variable May 30 17:02:53 besides enabling the gradle daemon, are there any other ways to speed up gradle builds? May 30 17:03:56 it really sucks that seeing the results of html/css/js is way faster seeing android layouts on a device May 30 17:07:32 org.gradle.parallel is pretty good May 30 17:08:45 hey. im tired of the official firmware that came with my phone, if i change to some other countries official firmware May 30 17:08:48 i wont lose functionality will i? May 30 17:08:53 its all the same shit right? May 30 17:09:52 screwsss: just get cyanogenmod or something May 30 17:10:13 screwsss, join #android-root for those question, this is application development channel May 30 17:13:09 im not rooted May 30 17:13:11 :P May 30 17:13:12 lol May 30 17:13:16 and i dont plan on rooting May 30 17:13:21 and i dont have to for what i want to do May 30 17:13:27 its just swapping over OFFICIAL firmware May 30 17:13:58 screwsss: we still dont know how to use devices.. we code apps for them May 30 17:14:24 screwsss: i dont even know if you need to root your device to swap any kind of firmware but i'd think so.. May 30 17:16:46 you dont May 30 17:16:48 i know that much May 30 17:20:38 see? --> #android-root May 30 17:21:07 im in there and EVERYONE IS IDLE May 30 17:21:58 "woops no cop at the policestation, lemme try the fire department"?? May 30 17:23:15 thats basically what ur telling me to do May 30 17:23:41 uhm no, because this channel is not about installing custom firmware May 30 17:24:00 where May 30 17:24:02 #android-root is May 30 17:30:24 ANy users of ViewPagerIndicator here? May 30 17:36:26 ask a more intelligent question May 30 17:37:08 pragma-: :) May 30 17:37:12 Hi. May 30 17:37:40 Hello May 30 17:37:49 I am Japanese May 30 17:37:55 I live in Japan May 30 17:38:25 I am Android applications developer May 30 17:39:24 licksjp: Nice to meet you. May 30 17:39:31 is it a good idea to add items to an arrayadapter from a background thread? May 30 17:39:36 askhader: hello May 30 17:39:40 askhader: ohatu May 30 17:39:42 i'm doing this to avoid animation jank May 30 17:40:25 using rxjava, if I call subscribe(new Action1() ...) the action1 contains a hard reference to my activity. calling unsubscribe on the returned subscription "cancels" the subscription, but doesn't release my activity. is there any way to fix this? May 30 17:40:35 askhader: where do u live in ur country? May 30 17:46:25 argh, sometimes it takes a good 20 seconds to see the results of a code change May 30 17:46:37 compared to seeing something instantly in a web browser May 30 17:49:31 frankdoyle: are you sure it doesn't release the reference? May 30 17:53:39 JakeWharton: it doesn't appear to. http://pastebin.com/4ep5tZCQ here's the code. after a handful of rotations, even with "destroy activities" off in dev settings, my activity reference count just keeps going up May 30 17:55:10 with 0.18.4? May 30 17:55:51 JakeWharton: dependencies are copied from an older project so maybe not, let me check. I assume then that it should release the reference? May 30 17:55:58 yes May 30 17:56:07 was on 17.something May 30 17:56:10 that could be it May 30 17:56:17 and would make me so much happier May 30 17:58:05 me too May 30 17:58:08 otherwise file a bug ASAP May 30 17:59:39 0// May 30 18:00:52 Could anyone explain to me, or give a good link about the layout of an app using Fragments? I had the frontend of my app done in activities when I learned about Fragments *doh*. Do I just create one main activity and do all the rest with fragments? May 30 18:01:16 well, no May 30 18:01:24 you use whatever makes sense for your app May 30 18:01:54 What's the tipping point for making something an activity or a fragment? May 30 18:03:08 Say it's an ebay app, i've got the main screen which is an activity, would the screen containing the current listings be a fragment in the main screen or an activity or an activity with its own fragment/ May 30 18:03:13 *? May 30 18:10:01 JakeWharton: updated to 0.18.4, http://pastebin.com/VUZ5aApe activity ref count keeps going up with rotations. ill post it as an issue May 30 18:11:38 frankdoyle: link me when you do? May 30 18:11:45 will do May 30 18:14:51 rom is synonymous with firmware May 30 18:17:35 omg, even adding items to a list on the UI thread causes jank May 30 18:18:42 JakeWharton: heres the ticket https://github.com/Netflix/RxJava/issues/1292 May 30 18:19:12 thanks. subscribed to it for updates. May 30 18:22:28 frankdoyle: are you doing heap dumps and MAT? May 30 18:22:52 jjnye: nothing that crazy, just adb shell dumpsys meminfo May 30 18:23:44 given there's only one activity in the whole app, the overall activity count did the job May 30 18:23:55 is it possible to use http://freebiesbug.com/psd-freebies/android-4-ui-design-kit-psd/ to create android apps? May 30 18:24:03 Is it really like PSD slicing into HTML? May 30 18:24:37 frankdoyle: but the desired effect is that your infinite loop functions get created and spin forever while the activities get nicely cleaned up? May 30 18:24:58 yeah May 30 18:25:12 pro tip: use SystemClock.sleep to avoid the try/catch nonsense May 30 18:25:39 yeah, i always remember there's one that doesn't need that, but i can never remember what it is May 30 18:26:02 and AS is just like "i got you" and puts the trycatch in May 30 18:26:08 haha. true May 30 18:28:30 can somebody help? May 30 18:28:36 really hope they get that straightened out. I'd been using it knowing that might be the case, but assuming it probably wasnt May 30 19:01:03 Can you use ViewPagers with PagerAdapters anymore? There's the support.v4 way, but doesn't seem to work with the new versions May 30 19:03:50 I didn't hear about that being deprecated :/ May 30 19:04:00 shekibobo interesting, I dunno I am still on v4 May 30 19:04:35 mattblang: pageradapters are only in the support library anyway, I think May 30 19:05:03 Estel ahh May 30 19:05:05 of course you can use ViewPager with PagerAdapter. In fact, that's the only way May 30 19:05:46 Seems as though all PagerAdapters are part of support May 30 19:05:53 as is ViewPager May 30 19:06:33 so there's no modern way of doing ViewPagers without support? May 30 19:06:40 or that pattern May 30 19:06:55 shekibobo: you shouldn't think of support as being only for bringing Android 2 APIs up to date May 30 19:07:02 ok May 30 19:07:14 support-v4 is a normalization library May 30 19:07:15 It's just a general hodge-podge of new APIs and patterns May 30 19:08:01 despite an absolutely atrocious name, it normalizes behaviors and widgets across APIs May 30 19:08:24 but if I want to use ViewPager with FragmentPagerAdapter, I need to make sure all my fragments that would be in it need to be the support.v4.Fragment? May 30 19:08:43 no. the support-v13 superset library provides a PagerAdapter for native fragments May 30 19:08:49 or you could just write your own PagerAdapter implementation May 30 19:09:49 ok, thanks May 30 19:10:06 looks like I didn't have v13 in my gradle : May 30 19:49:55 seems like many apps have a janky nav drawer when the selected layout is loading items into an adapter May 30 19:51:25 is linux preferred when dev for android apps? like coding/testing/etc. May 30 19:51:41 i use linux May 30 19:52:00 windows would be good too, but you don't have bash on windows May 30 19:52:01 I use OS X May 30 19:52:27 osx ftw May 30 19:53:20 if you don't have the phone you are developing does it make it hard to detect live errors in real time? May 30 19:54:02 ... May 30 19:54:23 wonder if it is common to dev apps without even owning the phone May 30 19:54:43 get a phone May 30 19:54:50 dont have time to buy 3 didn't phones either May 30 19:54:56 i only have 1 May 30 19:54:58 you need to have at least 1 phone May 30 19:54:58 different* May 30 19:55:16 depending on what you are doing different phones shouldn't be that big of a difference May 30 19:57:06 argh, seems like the only way to avoid having the user see nav drawer jank is to disable the nav drawer while something is loading May 30 19:59:17 has anyone else run into nav drawer jank issues? maybe i'm being pedantic here May 30 20:15:34 if using a view pager, do you think it is worth the trouble to do master / detail as well? May 30 20:16:08 Hello everyone! Need some help with nsd manager. May 30 20:16:29 My App is unable to find services on other devices on the same network. May 30 20:16:35 Any idea ? May 30 20:20:58 What are the permissions required for nsd ? May 30 20:22:16 will google buy java from oracle? May 30 20:24:15 Mango_Man what do you mean by jank? May 30 20:24:38 mattblang: like, when something stutters May 30 20:24:57 Mango_Man I thought so, and yup, I got a bit OCD about it. finally said screw it, not that big of a deal May 30 20:25:25 mattblang: nonsense, most of the tools in the android sdk are there to fight jank May 30 20:25:27 :D May 30 20:25:47 disabling the nav drawer actually works pretty well May 30 20:26:06 Mango_Man at one point I altered the default implementation to not start loading the new activity until the drawer was fully closed. seemed silly though to make the user wait longer (for the drawer to close) just to stop the jerk. May 30 20:26:16 Mango_Man what happens when you disable it May 30 20:27:14 mattblang: yep that's sorta what i did, though i have the user wait until my progressbar fades May 30 20:27:46 Mango_Man yeah, guess I just finally decided that Id rather it jerk a little bit and load faster May 30 20:27:53 mattblang: for me, the primary thing that's causing jank is adding ~25 objects to an adapter May 30 20:28:23 so i have all these synchronization variables in place to work around those few milliseconds May 30 20:30:16 mattblang: there's an answer on stackoverflow that recommends loading the new activity in onDrawerClosed May 30 20:30:36 probably the same approach as you did May 30 20:30:50 Mango_Man yup. it also seems like the gmail app does that too May 30 20:32:22 you could also set a bool and save it in your activity state May 30 20:32:31 so that when you get recreated you manage the state of the drawer yourself May 30 21:28:02 after running gradlew assembleRelease with signing configuration it generates a -unsigned.apk file May 30 21:33:57 You likely set it up wrong then May 30 21:35:53 My nsd app is not able to find services on other devices, but that of the same device are found readily. What can be the issue ? May 30 21:41:28 not every apk has an icon in the launcher, what decides what goes on the launchers list? May 30 21:43:09 why does new ArrayAdapter(this, R.layout.spinner_style, subSpinnerValuesArray); work if subSpinnerValuesArray is an array of strings but if I make it an arraylist of strings then I need to use ArrayAdapter May 30 21:43:19 pie_: The manifest entries for its activities May 30 21:43:21 See http://developer.android.com/guide/topics/manifest/manifest-intro.html#iconlabel May 30 21:47:12 SimonVT: thanks May 30 21:49:20 Heya May 30 21:49:41 Is it tpossible to have a simple res/drawable directory to keep images? May 30 21:49:52 Rather than needing to scale each image for each display density bucket? May 30 21:50:05 I thoughtt here was a way to make a 'Default' drawable asset May 30 21:50:23 isnt drawable folder what that is for? May 30 21:50:23 njcomsec: Strings are CharSequences but not all charseqs are strings. can't assign a charseq into string var without cast May 30 21:50:27 Sure, you can do that May 30 21:50:44 Will probably look pretty bad, but you can do it May 30 21:50:52 njcomsec: The way I read the article was that you had to have drawable-*xpi May 30 21:51:08 I just put them in drawable and it works for me May 30 21:51:08 njcomsec: But I found another guide that explains how the resources work out. May 30 21:51:11 Yeah May 30 21:51:12 drawable/ is the same as drawable-mdpi/ May 30 21:51:20 SimonVT: Ah May 30 21:51:51 SimonVT: is there any reason to use one folder over the other? May 30 21:52:09 jasonmog, what I dont understand is why Would accept an array of Strings but not an arraylist of Strings, the Strings are the same, just the collection is diffeerent May 30 21:53:02 Other than separation of xml files and pngs, no May 30 21:54:38 arrays of a type that are a subclass conform to a type declaration for the base class. arrays are special whereas an arraylist is its own collection class May 30 21:55:42 despite the relation of the type arguments, java will only consider that they are two different types of arraylists May 30 21:56:42 just accept it as how java works May 30 21:57:49 hmmmm ok May 30 21:58:38 a EditText in my activity always gets focus whatever I do. I have removed requestfocus, tried android:windowSoftInputMode but not working. Is there a normal way or would have to try the hacks given here? - http://stackoverflow.com/q/1555109/3488870 May 30 21:59:22 have you tried putting the focus on another view? May 30 21:59:43 tried putting it on a textview May 30 21:59:46 didnt work May 30 22:00:03 I did it the other day but forgot how May 30 22:00:19 I found it on Stackoverflow though May 30 22:00:30 arrays are primitive enough types that java knows its safe to assign strings into charseqs. a class with a type argument won't necessarily cast into a class with a base type argument May 30 22:01:01 there are manyyy ways given, I dont want to ruin things up later on just due to this... :\ May 30 22:01:10 but an arraylist of strings can only contain strings right May 30 22:01:38 or subclasses of string May 30 22:01:54 ah ok May 30 22:02:31 Hey guys, I'm having an issue with NotificationCompat.Builder - I set a contentIntent on it but one of my users is saying that whenever they get notifications and they click on the notification, it doesn't go anywhere, doesn't open the app ore anything - Does anyone know what this could be? I tested it on a few of my devices and they all clicked through fine May 30 22:06:35 njcomsec: a little breakthrough, saving android:windowSoftInputMode="stateHidden" keeps the keyboard down on start but the edit text gets in focus with the blinking cursor. May 30 22:07:24 ahhh cool May 30 22:56:59 can a dialog preference appropriately interpret html data? IE to load up an apps TOS? May 30 23:03:13 I'm developing a library for other developers. The instantiation/startup, and sleep/resume/destroy functions all take a considerable amount of time. Is it advisable to (on the library side) wrap some of that functionality in a second thread? I'm already locking for sleep/resume/destroy stuff May 30 23:44:33 hi May 30 23:45:40 hi guys. I'm trying to build a project here and I'm getting an error message says that "local path: [...]/app/build/apk/app-debug-unaligned.apk" doesn't exist May 30 23:46:14 I'm very new to this, but my understanding is that this app-debug-unaligned should be generated everytime I run on Android Studio. May 30 23:46:30 How do I begin solving this? May 30 23:46:43 (googling the error didn't help very much) May 30 23:46:51 Hi all May 30 23:47:56 Is there a way to retrieve text from apps that do not use custom widgets, like games? May 30 23:49:54 I need it to develop an automation tool May 30 23:52:14 Or is there a better channel to talk about android hacking modding? May 31 00:08:09 is it true that you can't set an onclick listener for an activity, but only views inside of then> May 31 00:08:11 ? May 31 01:03:25 is it possible to say "if you click anywhere in this activity, X happens" ? May 31 01:03:51 I tried doing a clicklistener for the layout encompassing everything in the activity, but it isn't activating when I hit buttons, only when I hit outer stuff May 31 01:21:13 I've a very specific question about android's ClusterManager May 31 01:21:39 Is there a way to detect if an item has been clustered/has been taken out of a cluster? May 31 01:37:50 ping? May 31 01:53:20 nobody? :/ May 31 02:01:16 So no experience with map overlays/markers/clusters? May 31 02:05:50 no idea what a cluster is May 31 02:05:55 map overlays are simple tho May 31 02:09:27 polaris has a commercial library for clustering May 31 02:10:39 conor http://googlemaps.github.io/android-maps-utils/javadoc/com/google/maps/android/clustering/view/DefaultClusterRenderer.html#onClustersChanged(java.util.Set) May 31 02:11:02 oops http://googlemaps.github.io/android-maps-utils/javadoc/com/google/maps/android/clustering/view/DefaultClusterRenderer.html#onClustersChanged(java.util.Set) May 31 02:11:43 but how can I use that version in my app if I edit that? May 31 02:11:50 ? May 31 02:12:14 edit which what is that? May 31 02:12:37 If I edit that function, how can I include that edited class in my app? May 31 02:12:52 why would you edit it? May 31 02:13:40 lasserix: I presumed I would have to? May 31 02:13:42 just override and make a call to super? May 31 02:14:33 Sorry, I've never edited something this complex before May 31 02:14:51 conor can you post some of your code where you use cluster manager? May 31 02:15:25 so in my code, I'd implement DefaultClusterRenderer, then @Override onClustersChanged ?? May 31 02:15:40 uh yeah something like that May 31 02:15:55 just make a class that extends defautlclusterrenderer, assuming it can be set somehow inthe clustermanger obj May 31 02:16:06 and in this class all you have is one method the override May 31 02:16:12 call super and then dow hatever else May 31 02:16:23 althought this is probably more complicated than it needs to be May 31 02:16:29 since you can set a listener May 31 02:16:36 i just haven't ever used maps utils May 31 02:16:43 so if you post some code i can give you a more specific answer May 31 02:16:53 Oh, well thank you very much for looking anyways :D May 31 02:17:23 it's not that difficult May 31 02:17:32 I would post code, but I'm only beginning to update this part of the app and I haven't made much of a start May 31 02:17:38 like i said if you can post some code, it should be farily simple May 31 02:17:52 hmmm, kk May 31 02:17:58 do it anyways, i am just too lazy to open my ide now May 31 02:31:38 Hey all, I have a preference that I want to load up as a dialogbox containing the html text of a url, preferably formatted with the html tags. Can I load html into a dialogpreference without building a parser? May 31 02:32:17 (Its a TOS) May 31 02:34:32 you can make an activity with a webview, a checkbox, and jsut use a SharedPreference.Editor to write it to the prefs file May 31 02:35:18 well i was kind of hoping i didnt have to load a new activity. Just set the url on app launch and have it load the html in a dialogpreference May 31 02:54:27 I'm trying to unlock the bootloader for my HTC EVO 4G, and I'm in fastboot, obtained the oem identifier token, put it in, and now I'm trying to flash the unlocktoken in PowerShell (as admin.). I get it to detect the device and it says "sending 'unlocktoken" (0 KB)... " but it just never completes, and stays at 0KB, anyone have any suggs? May 31 02:54:44 mcurran: reading channel topic please to be helping May 31 02:55:03 sorry, but there is no HTC channel? May 31 02:55:21 was just hoping someone had a suggestion... May 31 02:55:36 yes, I suggest you read and comprehend the topic of this channel May 31 02:56:07 I can comprehend it fine thank you. I'll go elsewhere May 31 02:56:37 you're welcome **** ENDING LOGGING AT Sat May 31 03:00:00 2014