**** BEGIN LOGGING AT Fri Mar 21 02:59:58 2014 Mar 21 03:00:56 &some ppl just use intellij which AS is based off. so there are other options than eclipse. just gotta try em Mar 21 03:28:07 adt bug Mar 21 03:36:49 t0th_- what was the bug? Mar 21 03:48:15 Android studio doesn't have the import module option now. Can someone guide me through an alternate method? Mar 21 03:49:36 napster: what is the module? Mar 21 03:49:58 canvs2321: The facebook SDK is what I'm trying to integrate Mar 21 03:55:22 canvs2321: Any idea? Mar 21 03:56:34 no, just was trying to get you to give alittle more info for others to help :) Mar 21 03:56:52 canvs2321: ok Mar 21 03:56:58 :) Mar 21 03:57:36 what version of AS? Mar 21 03:57:43 i have 0.4.6 and import is there Mar 21 03:58:01 canvs2321: I'm running 0.5.2 Mar 21 03:58:06 under File Mar 21 03:58:08 looks like they removed it Mar 21 03:58:25 canvs2321: no that is different. Mar 21 03:58:41 It should be inside the project structure dialog. Mar 21 03:59:13 http://stackoverflow.com/questions/22404311/android-studio-remove-module-incorrectoperationexception-must-not-change-do Mar 21 03:59:19 napster: it's a bug? Mar 21 03:59:41 canvs2321: From initial search, what I could figure out is that Mar 21 03:59:59 this feature was expected to come back in 0.5.0 Mar 21 04:00:15 There is a bug report already Mar 21 04:00:28 then fall back. AS is still beta?, so go with what works Mar 21 04:00:35 I have a problem with an application that just compiling, the application is not installed in the stacks blue or my phone, just run the emulator in eclipse. What could be the error of this? Mar 21 04:00:45 yeah I think so canvs2321 Mar 21 04:00:52 it says 0.5.2 -> 0.5.3 Mar 21 04:03:17 napster: &maybe follow the bug report for when it get's fixed. til then just rollback Mar 21 04:03:44 not sure if https://code.google.com/p/android/issues/detail?id=67220 is related, but says fixed in 0.5.3 of that issue from that SO post Mar 21 04:04:36 I have a problem with an application that just compiling, the application is not installed in the stacks blue or my phone, just run the emulator in eclipse. What could be the error of this? Mar 21 04:04:44 I was expecting some alternate methods using gradil files. Mar 21 04:08:12 * b0t I have a problem with an application that just compiling, the application is not installed in the stacks blue or my phone, just run the emulator in eclipse. What could be the error of this? Mar 21 04:08:29 canvs2321: ok Mar 21 04:08:34 thanks mate. :) Mar 21 04:27:54 bankai_ http://www.wolframalpha.com/input/?i=apply+dog+vision+to+photo+of+Robert+S.+McNamara Mar 21 04:29:25 someone's bored :S Mar 21 04:29:39 sup g00s Mar 21 04:29:41 bankai_: Mar 21 04:29:44 how u guys doing Mar 21 04:29:56 suffering Mar 21 04:30:03 :D Mar 21 04:30:46 g00s: Mar 21 04:30:56 or anyone. Mar 21 04:31:21 do you know how to prevent the changelistener from executing (changing switch) then manually chaning it later? Mar 21 04:32:59 jareddlc: post code cuz that question is subject to be to open to ur views of what you see or should be happening Mar 21 04:33:46 canvs2321: https://github.com/jareddlc/TurquoiseBicuspid/blob/master/TurquoiseBicuspid/src/com/jareddlc/turquoisebicuspid/SettingsActivity.java#L102 Mar 21 04:33:56 i have an listener there, however enableing bt is aync Mar 21 04:34:04 * b0t I have a problem with an application that just compiling, the application is not installed in the stacks blue or my phone, just run the emulator in eclipse. What could be the error of this? Mar 21 04:34:37 so i have a handler that fires back when it finally enabled, i want to actually update the UI to show as clicked, as i have a preference that is dependant on it Mar 21 04:34:56 b0t you're so awesome at asking truly bizarre yet almost coherent questions -- which is why I really do think you're a b0t Mar 21 04:36:24 How can I handle multi tabel via content provider. If I will create and delete tabels dynamically Mar 21 04:36:30 g00s: seems an obvious case of an ID-ten-T error to me Mar 21 04:40:56 g00s: suck me Mar 21 04:42:28 canvs2321: nothing? Mar 21 04:43:47 jareddlc: i just rememeber previous chats, it was all about setting then listening for broadcast. i can't go much further :/ Mar 21 04:44:04 no no canvas Mar 21 04:44:15 canvs2321: I got bt enabled, and thats fine Mar 21 04:44:26 my question is with the switchPreference listener Mar 21 04:44:34 since the bt takes about 2 secs to enable Mar 21 04:44:49 i want to postpone actually setting it to check until the handler is ran Mar 21 04:46:02 i tried returning false, which doesnt "check: it Mar 21 04:46:11 but when i call setChecked(true) it doesnt set it to true Mar 21 04:46:58 hi, is there a method to check if android device has a mouse? Mar 21 04:47:26 newinandroid: i remeber you from last night Mar 21 04:47:32 :D no idea im new Mar 21 04:47:56 ok jareddlc , i don't resolve this problem :( Mar 21 04:49:46 newinandroid: Android devices *very* rarely have a mouse... unless you're working in a specific context where it's more likely, I'd say it's pretty safe to assume it no mouse Mar 21 04:50:17 Leeds, i'm working on minipc android... Mar 21 04:51:06 when android has mouse there is a pointer... so i think there is some method Mar 21 04:51:29 http://developer.android.com/reference/android/view/InputDevice.html#SOURCE_MOUSE Mar 21 04:52:56 g00s, how can i get InputDevice? Mar 21 04:53:28 i'm not sure, but seems like the first part of your journey Mar 21 04:53:59 oh look Mar 21 04:54:00 http://developer.android.com/reference/android/hardware/input/InputManager.html#getInputDeviceIds%28%29 Mar 21 04:54:05 took 2 seconds Mar 21 04:55:23 lol g00s Mar 21 04:55:40 maybe u can help me now? Mar 21 04:55:41 :) Mar 21 04:55:42 google is hard Mar 21 04:56:56 g00s, 1) get InputManager 2) getInputDeviceIds() all device 3) from id get InputDevice 4) check is mouse or keyboard Mar 21 04:58:02 jareddlc i don't know about the switch Mar 21 04:58:41 i think i know whats going on Mar 21 04:58:43 its that odd bugg Mar 21 04:58:50 that calls the listener twice Mar 21 05:10:15 where can i find settings AOSP source? Mar 21 05:10:21 i wanna see how they did bluetooth button Mar 21 05:10:29 clearly there not using a switchpreference Mar 21 05:10:35 since that thing is buggy Mar 21 05:12:10 jareddlc its in the Settings app Mar 21 05:14:56 g00s: source Mar 21 05:15:01 i want to see how aosp did it Mar 21 05:15:08 becuase switchpreference is buggy Mar 21 05:15:26 and executes both listeners :| which prevents me from enabling the setchecked Mar 21 05:25:47 anyway to hide a preference? Mar 21 05:27:19 man, i just started getting this weird error Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.jar" on path: DexPathList [...] Mar 21 05:41:47 I'm seeing an icon in a black screen when my app starts, until my first activity runs... how do I controll what's shown in that period? Mar 21 05:42:44 awefaw, see http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Mar 21 05:43:06 ugh bt and settings are gross Mar 21 05:43:09 stupd android buggs Mar 21 05:43:14 and how u do settings ugh Mar 21 05:47:02 alex_PP: That's incredible helpful! thanks Mar 21 05:47:09 no worries Mar 21 05:54:40 finally i think i may have bug free ui Mar 21 05:54:43 stupid android Mar 21 05:54:47 i had to do many much h4x Mar 21 06:07:06 that article is great Mar 21 06:19:00 g00s, thanks, thanks, :) all works.. i can detect mouse and keyboard Mar 21 06:51:44 * bluezone 's eclipse exploded again and now he can't re-open it in the same workspace -.- Mar 21 06:52:13 * bluezone says Goodbye cruel world! Mar 21 06:52:48 good riddance Mar 21 06:57:30 strange, my vim has never done that :P Mar 21 07:00:00 you must be using it wrong Mar 21 07:18:03 Leeds, you program Java in vim? O.o Mar 21 07:18:14 why not use nano while your at it bahaha Mar 21 07:19:33 Because vim is good and nano's mostly useless. Mar 21 07:21:09 i couldnt see myself writing Java without auto-complete :S Mar 21 07:21:48 Insert standard you're-not-a-real-programmer-just-a-pathetic-web-dev insult here. Mar 21 07:22:55 bahaha Mar 21 07:23:18 I'm plenty retarded and have a bunch of retard questions Mar 21 07:23:38 Hey look a web dev Mar 21 07:23:47 * bluezone LOLOLOLOL Mar 21 07:24:08 Wait, sorry, just because web devs are retarded doesn't mean people who claim to be retarded are web devs Mar 21 07:24:33 That would be offensive Mar 21 07:24:49 but, honestly, are you actually using vim? Mar 21 07:24:56 I'm a Web developer Mar 21 07:25:02 I'm not very good at web dev insults. Mar 21 07:25:17 -_- Mar 21 07:25:35 I've used vim for projects, I don't really see the problem. Granted, I don't really use autocomplete much to begin with. Mar 21 07:25:59 I am 100% seriously using vim, and have been doing for everything for the past, oh, 15 years now Mar 21 07:26:09 If I'm typing it, I already know what I'm typing, and autocomplete would mean sifting through choices instead of just typing what I know I want to type. Mar 21 07:26:15 I might forget what I wanted between sifting through things and typing. Mar 21 07:26:23 At any rate, vim can have autocompletion. Mar 21 07:26:43 vim can have just about anything. Mar 21 07:26:45 Has anyone embedded emacs in Vim yet? Mar 21 07:26:51 about the only autocompletion I'd want would be auto-importing Mar 21 07:26:53 I know someone embedded vim-like behavior in emacs.. Mar 21 07:27:05 Leeds, that sounds horrible :) Mar 21 07:27:07 No I'm super retarded learning Mar 21 07:27:16 so when you write anonymous inner classes for onClickListeners you already have the whole method memorized? O.o Mar 21 07:27:24 rather than having to go look up if X is a view or a widget each time... Mar 21 07:27:40 I also hate anonymous inner classes Mar 21 07:27:51 Do you have trouble remembering what an OnClickListener has? O_o Mar 21 07:28:30 FYI, it's one method: onClick. Takes a View as an argument. You've probably got this memorized. In fact, while all your childhood memories erode into nothingness over your life, it might be the one thing you end up remembering. Mar 21 07:28:57 Wouldn't that be terrifying, to die thinking about an OnClickListener? Mar 21 07:28:59 lv.setOnItemClickListener(new OnItemClickListener() { Mar 21 07:29:00 public void onItemClick(AdapterView parent, View view, Mar 21 07:29:00 int position, long id) { Mar 21 07:29:01 Oh perfect keep doing that Nilium Mar 21 07:29:03 oops Mar 21 07:29:22 anyway, i rest my case i can't memorize that Mar 21 07:29:24 :D Mar 21 07:29:30 zeLek23: I was making web dev jokes before you joined, nothing's about you. Mar 21 07:30:04 Ah, you meant an adapter's OnClickListener. That's actually still pretty simple. Mar 21 07:30:04 I mean, it's verbose and ugly but it's simple. Mar 21 07:30:36 call me pedantic, but isn't that an onItemClickListener, rather than an onClickListener? Mar 21 07:30:37 My compensation for not using autocomplete is that I always have documentation open in another window, so that helps. Mar 21 07:30:50 Yeah, that word. Mar 21 07:31:09 Nilium: what language? Mar 21 07:31:10 Pedant. Mar 21 07:31:25 What language? Mar 21 07:31:38 Pedantic! Quite Shallow and Pedantic! Mar 21 07:31:39 Nilium I was simply saying to continue to just type random collection of knowledge Mar 21 07:32:20 Leeds is a pedantic slubberdegullion of the lowest order. Mar 21 07:32:28 Quota filled. Mar 21 07:32:32 I'm not a Web developer I was just joking I'm just interested in learning OOP and Java Mar 21 07:32:45 anyway, today I am mostly doing - and enjoying - Django, rather than Android, so you IDE-addicted Java fools can go wallow in your insignificant whitespace Mar 21 07:32:57 Hi. I'm reading an Android book, based on 4.2. But I'm using 4.4. When I create an activity, it creates a fragment along with it. Is this new? Do I have to use the fragment? Mar 21 07:33:05 * bluezone knowledge of Java involves repeated use of project -> clean untill something changes Mar 21 07:33:08 nebby, no Mar 21 07:33:11 Django? Mar 21 07:33:15 nebby, you don't have to use the fragment Mar 21 07:33:17 nebby: congratulations on finding the right channel! Mar 21 07:33:24 I've mostly been dicking around in Go for the past week or two. Mar 21 07:33:24 Fun language. Mar 21 07:33:28 thanks Leeds Mar 21 07:33:29 zeLek23, python-based web-type framework Mar 21 07:34:07 nebby, go ahead and delete it and use the usual layout before venturing into fragments Mar 21 07:34:12 Gotcha Mar 21 07:34:14 okay thanks Mar 21 07:34:36 Any useful tips on getting this stuff to sink in? Mar 21 07:34:44 The video furiously Mar 21 07:35:01 i'm just as bad as learning this stuff as you haha Mar 21 07:35:05 Tutorials* are putting me to sleep Mar 21 07:35:06 Getting what stuff to sink in? Mar 21 07:35:15 Java Mar 21 07:35:19 Use it. Mar 21 07:35:20 __anything__ Mar 21 07:35:24 Hey. I recently started using Fragments in my app (got it working so far) but now my fragments are being auto-detached and I don't know why... can anybody help me figure it out? Mar 21 07:35:40 You want to remember something, make use of it. Mar 21 07:36:16 I think I'll go play some Dark Souls 2. Mar 21 07:36:21 Nilium, that's just it, i don't know how to usefully implement 75% of what i read Mar 21 07:36:23 I have (udemy, thenewboston, coursera, and Lynda tutorials but it's just too boring to watch back to back Mar 21 07:36:25 haha Mar 21 07:36:55 Exactly as bluezone said Mar 21 07:37:20 So try harder? I don't know, I've been coding for something like 11 years at this point, I don't remember what I did when I was starting out. Mar 21 07:37:20 I just know what works for me now. Mar 21 07:37:29 I know exactly what I want to do and how the logic behind it works flowchart flow Mar 21 07:37:35 But after that I'm stuck Mar 21 07:38:03 Hmm that is a long time Mar 21 07:38:38 It is, and yet I'm still not that good at it. Mar 21 07:38:54 I wish I had not procrastinated to this point but it's difficult nonetheless Mar 21 07:38:55 i'm sure you are :P Mar 21 07:39:30 don't fall for the imposter syndrome!! It's all a LIE!!! Mar 21 07:39:42 anybody know enough about fragments to help me? please... Mar 21 07:39:59 Agreed 11 years is plenty of time to know your way around Mar 21 07:39:59 JW301, i don't know enough about those to help Mar 21 07:40:09 Me either Mar 21 07:40:39 ok thanks anyway Mar 21 07:40:40 I know about as much as what things are not exactly what they do Mar 21 07:40:40 ask g00s maybe (sorry for giving u work :P) Mar 21 07:41:10 I wish I could answer your question =/ Mar 21 07:42:14 I was hoping this channel would be a bit more alive Mar 21 07:45:03 well it's pretty late Mar 21 07:50:27 Is there a time when this channel is more active? Mar 21 07:50:45 I usually see this being the case with irc networks Mar 21 08:00:16 How can I force eclipse to enter the jni folder and do "make" rather than "make -f jni/Makefile"? Mar 21 08:04:31 zeLek23, yeah like it should be pretty active in 6-8 hours Mar 21 08:05:23 bluezone thanks man appreciate the info Mar 21 08:09:21 piece of junk wysiwyg xml editor more like whyiDoWhateverIWant Mar 21 08:13:52 ProTip™: learn to love writing XML Mar 21 08:13:58 Hi, I'm having problems with receiving intents. I have posted a question on SO: http://stackoverflow.com/questions/22551957/android-sending-an-sms-before-shutdown/22552608 Mar 21 08:14:40 Need some advices on MediaCodec API, I have problem in decoding 1080p real-time h264 stream. It always crashed. dequeueoutputbuffer returned illegalstate. anyone? Mar 21 08:17:07 rahules, you might need to add a listener for that in java not xml Mar 21 08:17:11 happens with some intents Mar 21 08:18:13 alex_PP: i'm doing it in MainService.java. You mean, registering a receiver right? Mar 21 08:19:22 oh yeah, i only read the intent filter in your manifest Mar 21 08:19:54 you should Add this permission: Some developers says it is needed Mar 21 08:19:55 ... Mar 21 08:20:21 he didnt mention the permission.. Mar 21 08:20:57 i know Mar 21 08:21:02 brilliant huh? Mar 21 08:21:08 anyway, try this Mar 21 08:21:08 https://stackoverflow.com/questions/14133077/android-action-shutdown-broadcast-not-working Mar 21 08:22:45 i was using the same post as my reference Mar 21 08:23:24 DO you think there is any problem with the Smshandler? Because those are the lines referred in the error Mar 21 08:23:35 can you post the whole error to pastebin? Mar 21 08:23:49 sure Mar 21 08:24:08 if you're getting the error on your receiver the intents are working propperly Mar 21 08:25:20 also, i'd get rid of that thread stuff Mar 21 08:26:17 from the docs it looks like acton_shutdown depends on vlocking to delay the actual shutdown until everything is ready Mar 21 08:26:23 *blocking Mar 21 08:28:43 alex_PP: here's the pastebin http://pastebin.com/r0JkcfNE Mar 21 08:29:43 sorry rahules , can i see the full error Mar 21 08:29:49 oh sorry. sure Mar 21 08:30:21 Also, I thought I'd use the thread because I want to receive an Sms sent intent and resend the sms if sending has failed Mar 21 08:31:44 not sure that's going to work Mar 21 08:32:00 binary xml file error inflating class. aargh. Mar 21 08:32:17 alex_PP: So I wont be able to check if the sms has been successfully sent? Mar 21 08:32:51 well, the phone's trying to shut it's self down Mar 21 08:33:08 i would guess you're going to have to be lucky to check & resend Mar 21 08:33:12 if sending even works Mar 21 08:33:25 you'll have to try and see though Mar 21 08:33:45 if it was just send, I could use smsmanager and send it without the thread right? Mar 21 08:34:09 yeah, i think Mar 21 08:34:16 only ever worked with receiveing texts Mar 21 08:35:01 Emulator's taking too long to start up Mar 21 08:36:00 alex_PP is there any kind of affordance one gives to borderless buttons to indicate they can be pressed ? Mar 21 08:37:39 size and positioning usually Mar 21 08:38:23 the bar at the bottom, the action bar & icons on the right edge of a list Mar 21 08:38:29 i tend to assume are clickable Mar 21 08:38:46 then the selectableItemBackground confirms this if i try Mar 21 08:39:00 the new linear layout divider helps too Mar 21 08:39:39 hm, yeah … i have seen in some gapps they adorned the View with essentially the Spinner style Mar 21 08:39:47 i think calendar Mar 21 08:40:40 but that was the only place i recall Mar 21 08:41:33 alex_PP: Here's my error http://pastebin.com/0xBR4uRv Mar 21 08:43:50 there's a null pointer somewhere in sendSMS Mar 21 08:44:05 getApplicationContext fails Mar 21 08:44:31 vecause you're creating an actibity using new Mar 21 08:44:35 *activity Mar 21 08:45:18 delete sms handler and move sendSMS to ShutdownReceiver Mar 21 08:45:29 use the context that comes from onReceive Mar 21 08:45:50 Okay, I'll try Mar 21 08:47:06 g00s, http://i.stack.imgur.com/NLZdh.png Mar 21 08:47:23 see the action bar, the bottom bar, & the delete buttons Mar 21 08:47:32 i'd like to see more apps look like that Mar 21 08:49:28 alex_PP: I cant register a receiver inside another broadcast receiver? If so, is there any way to get sms sent response? Mar 21 08:49:38 alex_PP thanks, where did that slide come from ? Mar 21 08:49:56 i think i have seen it before, either devbytes or i/o Mar 21 08:50:11 add a service that does all the sms stuff and start from the receiver Mar 21 08:50:26 but, that might not as the phone's shutting down Mar 21 08:50:47 g00s, that's from a design in action video Mar 21 08:51:10 yeah … i hate videos for this reason Mar 21 08:51:49 you really need to keep ontop of them Mar 21 08:52:09 gives me somthing to do during my first coffee of the day though Mar 21 08:52:35 i have watched a few, but i can never remember where stuff is in videos Mar 21 08:52:52 maybe instead of filling the first 1/3 of my searches with ads, they should improve that :) Mar 21 08:54:58 i file it all away in my brain Mar 21 08:55:05 then stuggle to show it other people Mar 21 08:55:10 :O Mar 21 09:06:09 yeah, they say go borderless mostly here http://developer.android.com/design/building-blocks/buttons.html Mar 21 09:17:49 Back Mar 21 09:31:02 what is a WebView? Mar 21 09:31:06 a way of displaying web content within an app? Mar 21 09:35:10 i think Mar 21 09:35:57 wow #android-dev is really bad Mar 21 09:36:40 desmin88, you don't need to join it Mar 21 09:36:45 well that seemed uncalled-for Mar 21 09:38:04 is there any way to configure the built in dhcp server? Mar 21 09:40:07 Hi all, a non android question: does somebody know a tool to gerenate 100 random barcodes (for free)? Mar 21 09:44:33 hi2all. can anybody tell me how i can use HashMap with Spinner? i have problem with adapter( Mar 21 09:46:09 is this the correct method to add a library? http://oi61.tinypic.com/sq1tf7.jpg Mar 21 09:50:26 hi, by InputDevice http://developer.android.com/reference/android/view/InputDevice.html i detect mouse, keyboard, every device have unique id but when i use combo accessories have a id number different and it isn't in list Mar 21 09:56:23 Good Morning everyone Mar 21 09:57:58 Good afternoon :P Mar 21 10:00:58 MalekAlrwily: how was your morning Malek? Mar 21 10:01:25 good Mar 21 10:37:47 hi. someone who developed a backend for an android app? Mar 21 10:45:07 We're using one, but I didn't touch it. Maybe I can still help. Mar 21 10:52:13 How does IMEI detection in dual SIM phones work? Can I get both IMEI's of the phone? At one given moment in time, what's the IMEI the API in Android gives? It'll give this IMEI all the time? Mar 21 10:54:11 Who is the Koush guy and how is he popping up in everything android related. Mar 21 10:54:14 TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String IMEI = tm.getDeviceId(); // how do I know its IMEI from SIM1 or from SIM2 ? Mar 21 10:54:47 or its the IMEI of the active/default SIM ? Mar 21 10:55:41 but hold on, why does IMEI depend on SIM ? Mar 21 10:55:47 I thought its based on device Mar 21 11:37:02 JustSighDudes: Koush just a really talented devi with yacht or two Mar 21 11:37:08 *dev Mar 21 11:38:51 Hello, how should I approach theming an application which makes use of Sliding Menu? It has one activity - many fragments architecture and I'm new to theming. Mar 21 11:38:54 ? Mar 21 11:54:29 Does view.onTouchEvent() call the listeners set with view.setOnTouchListener()? Mar 21 11:56:38 creitve: I'm not sure what you mean? You can set the colors and text sizes for things in the styles.xml and themes.xml files Mar 21 11:59:24 Ankhwatcher: I think I got it, I thought that I will have to write everything in one theme definition, and somehow define two backgrounds in it, but turns out a theme isn't any different from style, so I will define one extra style for my menu fragment and apply it manually. Will this be a clean way? Mar 21 12:05:09 I have an activity which has an option at the top, and the contents of this activity are created inside a cellsAdapter. I want to be able to change the shape of this content when that option is clicked Mar 21 12:05:20 how would I do that? Mar 21 12:05:53 I mean cause onCreateOptionsMenu inflates the menu xml belonging to that activity, but on click of that menuItem I need to handle the elements inside the cellsAdapter Mar 21 12:06:03 add an edit button to each of them, for example Mar 21 12:36:24 Question about content providers. I want to make one string value available to several of my apps on a single device if the user has them (basically a way for me to know on the server that it's the same user). It seems like a content provider is the best way to do this. Is there any other way to make data available to other apps? Mar 21 12:37:05 do curent versions of adb not work with 2.1 devices? Mar 21 12:37:16 i havent tried connecting an old deivce in so long Mar 21 12:37:27 It also seems like an SQLite database is a little overkill for just storing a string value - any recommendations for what kind of data structure to use for the content provider? Mar 21 12:38:53 thammond, you can use SharedPreferences Mar 21 12:40:18 Trying to generate random color and set it to TextView on each click.. https://gist.github.com/santosh/380d81dc687ddac911bb#file-main-java-L34-L49 Mar 21 12:40:47 so I click a button and my code adds a new custom control table row dynamically each time its clicked. Each table row added has a text field and its own "MyButton" which is a custom button (MyButton extends Button). Now my Q is (being a noob) what do I need to read up on in order to access the MyButton class fields from within the onClick for that MyButton? Mar 21 12:40:53 But can't comnile Mar 21 12:41:10 onclick gives you a view Mar 21 12:41:14 which is the view that was clicked Mar 21 12:41:16 oh doh Mar 21 12:41:30 brain fart. thanks. of course. Mar 21 12:41:47 EPG I don't know why I hadn't thought of that, brilliant. Mar 21 12:42:34 hi, it's strange. activity with fragmens, device: mini pc android. when i put a wifi receiver to use wifi keyboard.. all crash Mar 21 12:47:39 hello guys, I quick question this code should copy file to sd card right? Mar 21 12:47:44 this http://www.sourcedrop.net/xUxc34ee38e14 Mar 21 12:58:00 Dudi: what are you trying to do? Mar 21 12:58:24 http://stackoverflow.com/a/9293885/1056359 Mar 21 13:04:21 thepoosh I'm trying to copy sqlite db to android DB Mar 21 13:04:44 Android DB is an SQLite db Mar 21 13:05:19 db is 220MB and even if I have ~500mb I still get java.io.IOException: write failed: ENOSPC (No space left on device) Mar 21 13:05:41 thepoosh I know but You can't read directly from file you have to copy data to android DB right? Mar 21 13:05:48 that sounds like you should expect that Mar 21 13:06:06 no, you need to open a connection to it Mar 21 13:06:14 with an SQLiteOpenHelper Mar 21 13:07:14 atm I use this class http://www.sourcedrop.net/Sxdc397852b78 Mar 21 13:07:23 Dudi: if your db is that big, you might be better off using REST API and S3 or something Mar 21 13:07:39 thepoosh not my call :) Mar 21 13:07:52 200 MB files are frowned upon by users Mar 21 13:08:08 and I don't know how you think of managing a cache for this Mar 21 13:09:03 that db will be soon smaller, I think but still how I can handle with it. Mar 21 13:09:47 thepoosh open Connection to DB needs path, and I can't get path direct path to asset file sqlite right? Mar 21 13:11:49 hmmmm Mar 21 13:12:21 http://stackoverflow.com/a/5861108/1056359 Mar 21 13:17:21 One q. If I create web code on android using phonegap and build this code also on iphone and windows mobile, then all the os's will have the same UI and functionallity as android right? Mar 21 13:17:25 What if I use OpenMobster Sync Plugin for the PhoneGap framework. And I write code for android phone for offline synchronization. If I compile this same code on iOS, windows mobile will they also have the same functionality and UI? Mar 21 13:17:59 Hope it's not too offset of android native app question Mar 21 13:19:15 yeah, you'd want to ask that wherever phonegap people congregate Mar 21 13:44:14 github down. Mar 21 13:45:22 github is up for me Mar 21 13:45:42 it's up and down; see https://status.github.com/ Mar 21 13:45:51 weird, i even used that website that checks if it's up for others Mar 21 13:46:05 down Mar 21 13:47:00 apperently there's an ongoing DoS attack on github Mar 21 13:47:10 http://www.downforeveryoneorjustme.com/ Mar 21 13:47:37 jaynewstrom, isup.me Mar 21 13:47:54 yeah, that page said it's down, but doesn't matter, the're under attack right now Mar 21 13:47:57 same site just shortened. interesting Mar 21 13:58:39 Hi. So I change the preview size of my camera preview yet the preview is always filling the video view causing the aspect ratios to be out ( stretched etc ). Mar 21 13:59:39 Is the only way to get the ratios right by setting the preview size and the videoview to the same size ? Mar 21 14:00:51 Or is there a way to get the preview to fit with its correct size within the videoview ? Mar 21 14:02:14 hi, I seem to be having some troubles calling the loop within my game thread, but I'm not sure what the issue may be. I call it just fine and I'm not sure why it wont call the loop. Here is an annotated chunk of code: http://pastie.org/8956525 Mar 21 14:02:21 You can see where my prints have failed Mar 21 14:02:44 er, this probably is better for viewing: http://pastie.org/pastes/8956525/text Mar 21 14:04:55 and here is an annotated version of the view that calls it: Mar 21 14:04:57 http://pastie.org/8956530 Mar 21 14:05:02 http://pastie.org/pastes/8956530/text Mar 21 14:06:24 both failed methods in the latter are what should be called within the loop in the thread. I have attempted to call my thread via "thread = new GameThread(getHolder(), this);" but I'm not sure why that wont work Mar 21 14:14:39 to stack overflow! http://www.youtube.com/watch?v=Yic7IRO9d6I Mar 21 14:32:01 hi, i`m having an issue i dont really understand.....case 1: longclick on button opens another activity. if i press return on the other activity i get back to mainactivity. i can do this again and again....works properly. BUT case 2: long click on button opens alert dialog. if i select an item in the dialog it starts another activity. if i press return i get back to mainactivity. if i do it again (long click on button, starting another ac Mar 21 14:33:37 the issue happens when i want to start the alertdialog again Mar 21 14:34:10 as if the mainactivity was on pause or something Mar 21 14:37:42 I'm been trying to add a custom attribute to contacts that show up in the contacts app which I'd like to be clickable so the user can click it to get to my application Mar 21 14:38:03 could somebody point to some documentation for this please? Mar 21 14:57:46 Hi, who here is an expert in making their own Camera UI? Mar 21 15:06:12 people generally wont own up to being experts. Just ask your questions. Mar 21 15:12:30 hey guys, I have a header view on a list view, I want to get it's top, but mHeaderView.getTop() always returns 0 Mar 21 15:12:35 any ideas? Mar 21 15:14:03 Hi guys, I'm tinkering with a rooted device and adb. I can push/pull/rm a contacts2.db from the com.android.providers.contacts folder however I must reboot the phone in order for apps to get the new contacts2.db is there any command I can run to update the contacts contact provider? prehaps using the adb shell content Mar 21 15:16:07 hey ClockworkAnt, this channel is more for development. did you try #android ? Mar 21 15:16:18 you might find more answers there ;) Mar 21 15:16:35 *App development, I meant Mar 21 15:17:21 ha fmontano I've just come from there and they said I should try here! Mar 21 15:18:01 ClockworkAnt: I see.. hope someone here can help you then :) Mar 21 15:18:14 I sense this may be a question for stack overflow! Mar 21 15:18:22 sounds like it… Mar 21 15:33:57 hey all Mar 21 15:34:42 Does any one where I can find documentation of the duties / responsibilites of the Launcher in Android? Maybe even a "deep dive" of the default launcher Mar 21 15:37:05 the main 'duty' is responding to the appropriate Intent Mar 21 15:38:22 It lets the user launch stuff Mar 21 15:39:23 I'm mainly interested, because I might want to write a launcher from scratch Mar 21 15:40:20 hence the "deep dive" question.. I'm very interested in what else it is doing besides responding to Intents, and Launching apps. Mar 21 15:40:29 Showing widgets Mar 21 15:41:02 that's basically all it's doing. Setting up the wallpaper environment. Showing widgets. Listening to the new app installed intent to update the list. Mar 21 15:41:40 i'm sure somewhere on the web is a deep dive, tho I don't know where since I never honestly cared too much. Come to think of it I think I saw someone post something similar about writing a launcher, in the android development g+ group Mar 21 15:42:00 don't know how easy google makes it to search that Mar 21 15:42:57 could someone please help me out with this issue? What has been explained to me is causing me so much issue in the code: http://stackoverflow.com/questions/22561325/trouble-calling-a-loop-in-my-thread?noredirect=1#comment34339167_22561325 Mar 21 15:43:55 yea.. googling for a deep dive has been tough Mar 21 15:44:43 there's source - what more do you need? Mar 21 15:50:58 Hi all :) Mar 21 15:51:29 Guys, how can I add a share action in my app when some text is selected? Mar 21 15:54:53 Anybody have any luck getting Aviary to compile with gradle? Mar 21 15:55:14 im having trouble getting the resources to merge Mar 21 15:57:29 Anyone else had trouble with Google Play Services location services after a user tries to use your app with location switched off? I've even tried to force close the app after re-enabling location services and nothing works. Even Google Map crashes. Mar 21 15:57:54 (in the Google Map app) Mar 21 15:59:51 Hmmm, this looks related... http://stackoverflow.com/questions/21568270/google-play-services-location-not-available-after-location-restart Mar 21 16:10:46 Hi, I was told on stack overflow that I should implement the Runnable class in my thread. I am having some big issues with it and getting to response over there. Would any brave soul care to take a look at this for me and offer unto me your infinite wisdom of the ages? http://i.imgur.com/9Na2L7N.png Mar 21 16:11:07 no response* Mar 21 16:11:24 it is all the same syntax error Mar 21 16:13:32 Rellac: "implements" should not have a capital "I" :) Mar 21 16:13:38 try implements instead of Implements Mar 21 16:13:49 my hero Mar 21 16:21:08 hi, there's a weird bug. If you /knock #winapi you get a message from chanserv that says "lulz".. what's up with that? Mar 21 16:22:35 Hi, can anyone tell me why my app may be throwing errors like this: 03-21 12:20:41.023 E/SELinux (8163): Function: selinux_android_load_priority [0], There is no sepolicy file Mar 21 16:24:12 qkzoo1978: you could start by telling us what your app does to apparently generate that error Mar 21 16:25:17 I dunno, it does it when the app first starts, I have permissions for internet, fine and coarse location, and write external storage. Mar 21 16:26:35 The app does have an intentservice/broadcastreceiver, but thats about it for capabilities Mar 21 16:29:13 There were 3 othher error messages like that one: Mar 21 16:29:40 03-21 12:20:41.023 E/SELinux (8163): Function: selinux_android_load_priority [1], There is no sepolicy version file Mar 21 16:30:09 03-21 12:20:41.023 E/SELinux (8163): selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts Mar 21 16:30:54 What do they even mean? Mar 21 16:34:51 SE Linux is security enhanced Linux Mar 21 16:35:01 Which you are aparently not really usign to it's potential Mar 21 16:35:09 You need a policy for running applications Mar 21 16:35:19 Otherwise, there is no point having the enhanced security Mar 21 16:35:32 As that is no an Android issue Mar 21 16:35:57 Turn to the net or SELinux channels for assistance on how to create an sepolicy Mar 21 16:40:15 "not using to its potential" until I saw the error log, id never even heard of it. Mar 21 16:41:21 honestly that sounds like an issue with your device firmware Mar 21 16:41:28 I dont think i need an sepolicy, which is just leaving me more confused. Mar 21 16:42:03 It's a Verizon Galaxy S3 Mar 21 16:43:52 The app isn't doing anything security related. Mar 21 16:50:37 Hi Mar 21 16:50:44 Any HTC Dream users here? Mar 21 16:51:28 SiPlus: you're kidding, right? Mar 21 16:51:56 Leeds, I want to know what is the maximum texture size for Adreno 130 Mar 21 16:52:05 SiPlus: you're kidding, right? Mar 21 16:52:08 nope Mar 21 16:52:20 because it's the "absolute minimum" for Android Mar 21 16:52:57 64x64 defined in oes2 spec is too small Mar 21 16:53:26 SiPlus, why are you supporting such an old phone Mar 21 16:53:29 is it safe to assume that all 3.1+ devices have at least 256x256 max texture and renderbuffer size? Mar 21 16:53:48 min renderbuffer size in es2 is even smaller Mar 21 16:53:50 1x1 Mar 21 16:53:59 rymate1234, I'm not Mar 21 16:54:28 hmm Mar 21 16:54:30 well Mar 21 16:54:33 I think it's safe Mar 21 16:54:44 since I don't think Android splits wallpapers into tiles Mar 21 16:54:46 but renderbuffers? Mar 21 16:55:40 and what about cubemaps? Mar 21 16:56:56 SiPlus: you *might* get some more response if you actually give some context... you might not Mar 21 16:57:20 I'm porting a game engine Mar 21 16:57:39 And it uses framebuffers very extensively Mar 21 16:57:49 Cubemaps too, but 16x16 should be ok Mar 21 16:59:34 And I want to know what minimum max renderbuffer size is safe to assume on all HC/ICS/JB/KK devices Mar 21 17:03:05 I have OnItemSelectedListner implemented for my Spinner element. I have onItemSelected method implemented that draws some markers on the map the problem however is that even if user selects nothing from the spinner what is inside onItemSelected method still gets executed. Mar 21 17:03:17 So I end up rendering markers twice Mar 21 17:03:27 which has a nasty performance impact Mar 21 17:05:16 btw in case anyone is interested in that game engine thing I'm doing http://i.imgur.com/4wjzKry.jpg Mar 21 17:11:41 Is there something like this for java https://github.com/joke2k/faker? Mar 21 17:12:18 I'm trying out https://github.com/DiUS/java-faker curious if there are better alternatives too Mar 21 17:14:00 f2prateek: never heard of it Mar 21 17:14:04 but might be nice Mar 21 17:14:14 if you find something Mar 21 17:14:15 let me know Mar 21 17:14:27 might be good for tests Mar 21 17:14:54 but it seems like direct translation from ruby to java Mar 21 17:15:09 yeah it's only in test code Mar 21 17:16:41 What are the modern libraryes for social sharing? Mar 21 17:18:39 *libraries Mar 21 17:24:45 Flank_Y320-U30: unless you're writing a client for specific service, I'd recommend using Share intent Mar 21 17:25:00 p_l, yeah Mar 21 17:25:22 p_l why not other libraries? Mar 21 17:28:32 Flank_Y320-U30: because that's how Android is organized. Instead of supporting specific services directly and having user authorize specific applications, you can use a standardized Share intent to get a list of available services that will take the kind of data you want to share, and send to the chosen one Mar 21 17:37:43 trying to get my debug builds signed with gradle Mar 21 17:38:23 documentation says there is a default "debug" signingConfiguration that will use the debug keystore in ~/.android, sounds good Mar 21 17:38:39 so I add signingConfiguration signingConfigurations.debug to my debug build type Mar 21 17:39:03 but assembleDebug leaves a -unaligned-debug.apk, it doesn't sign Mar 21 17:44:12 I'm having a difficult time with a layout. http://pastebin.com/9SHM0G42 Mar 21 17:44:44 The listview is always going all the way down to the bottom of the screen, and the textview that is supposed to be underneath it never shows. Mar 21 17:45:16 How do I set it so that there is a top and bottom header, with a listview that auto-fills the middle? Mar 21 17:45:48 Everything works except the bottom of the listview goes all the way over the textview. Mar 21 17:47:02 Put them all in a linearlayout, use weight on the listview Mar 21 17:52:00 Use weight on the listview? Mar 21 17:54:10 Alright, everything is in a linearlayout, but the textview is still not visible at the bottom. Mar 21 18:03:54 What references would you recommend regarding decoupling application data and, for example, views. Very tempting to subclass existing views e.g MyButton just to squirrel away app data there on the controls themselves but I would be grateful for any pointers to essential tomes on the subject. Mar 21 18:06:16 A message bus of some sorts, for instance Otto. Mar 21 18:11:01 web sockets Mar 21 18:11:04 suggestions? Mar 21 18:11:28 ? Mar 21 18:11:35 a library to consume them Mar 21 18:12:33 p_l, thank you Mar 21 18:12:43 no personal experience Mar 21 18:12:46 so cannot help Mar 21 18:12:48 http://www.slideshare.net/sergialmar/building-realtime-applications-with-android-and-websockets Mar 21 18:12:54 found this by the way Mar 21 18:31:33 Okay, layout_weight worked, although I have no idea why... The explaination from my coworker, "It's heavier, so it will want to be the center of everything." only made me upset. Mar 21 18:34:31 Leftover pixels are distributed amongst views with a weight.. "Heavier" views get more pixels Mar 21 18:36:05 any of you try retrolambda? Mar 21 18:53:54 Anyone know how to use matcher to not do greedy pattern matching. Such that the substring " _match_ my text _endmatch_ " and " _match_ my other text _endmatch_" will be tokenized from "_match_ my text _endmatch_ some filler text _match_my other text_endmatch_" instead of the whole thing "_match_...._endmatch_" being tokenized? Mar 21 18:54:10 (This is android related, I am using Html.fromHtml to do some formatting ;p Mar 21 19:06:01 lasserix: Generally, append a ? to your pattern to make it non greedy. E.g "abc abc abc". /a.*c/ will give you "abc abc abc", while /a.*?c/ will give you "abc". Mar 21 19:09:06 what is the / on the a? (sorry i am fairly unfamiliar with regex) Mar 21 19:10:39 regex's are usually wrapped with /'s to indicate where they start and stop. it's also the format JavaScript and sed use Mar 21 19:10:53 any of you use rxjava? Mar 21 19:10:54 basically, append a ? to a + or * to make it non-greedy Mar 21 19:11:00 funkbox: yes Mar 21 19:11:37 JakeWharton: any suggestions on how to manage the subscriptions Mar 21 19:11:38 especially on how to map them with the activity lifecycle Mar 21 19:12:11 use a composite subscription in your activity, unsubscribe in onPause Mar 21 19:12:36 JakeWharton: ah, taht's what i was looking for Mar 21 19:12:37 thanks! Mar 21 19:12:52 i'm just getting into it, do you think it's worthwhile pursuing? Mar 21 19:14:39 lasserix: It's just a way of marking it as a regexp expression, typically shows my perl background. It's just the start and end of the expression. Other languages just use a string, e.g. "a.*?c"... Mar 21 19:15:05 i think of all the options for creating a stream of data it's currently the best Mar 21 19:15:06 Duh, now I see JakeWharton explained it already. Mar 21 19:23:23 hi all Mar 21 19:25:02 I want connect my android phone with my PC and read its sms messages programmatically, can someone suggest for an easy to use tool? Mar 21 19:25:19 jasta around? Mar 21 19:30:07 I'm creating a theme... Is it possible to specify a background image, that needs to be centered, instead of streached? Mar 21 19:32:48 g00s: indeed Mar 21 19:32:49 i am Mar 21 19:33:29 so, i'd like to make a simple app that allows you to browse through the photo's on the device, select one or more and i want to upload them to my own server. Mar 21 19:33:41 is there an activity that i can levergage for this? Mar 21 19:35:59 hey jasta how are things. i remember a while back you were talking about using LocalServerSocket for diagnostics. I was looking into it, and came across this https://code.google.com/p/android/issues/detail?id=29939 Mar 21 19:36:08 do you bumped into the same ? Mar 21 19:36:57 g00s: no, this is definitely not happening to me Mar 21 19:37:08 i built this project and its been in practice here at facebook for quite some tmie Mar 21 19:37:34 to be fair though, calling close on the server socket is weird without first closing the accepted client sockets Mar 21 19:37:44 i mean for debug purposes anyway Mar 21 19:38:44 you can work around this easily though (just continue to accept sockets but reject them until the clients are all closed) Mar 21 19:39:01 the workaround i saw a few people use, was to initiate a bogus connect and mark that thread as interrupted, to un-block .accept() -- and then check immediately after if the thread was interrupted, and if so terminate Mar 21 19:39:19 yeah that could work, but kinda kludgey to use interrupt Mar 21 19:39:23 i'd rather use a volatile boolean Mar 21 19:39:23 yeah Mar 21 19:40:06 but i basically dont ever stop my debug server so it deosnt matter :) Mar 21 19:40:12 heh Mar 21 19:40:27 if its running from a service, it keeps the service around :) Mar 21 19:40:29 btw, fwiw, i managed to hack Apache HttpClient to let me use LocalServerSocket with the HttpService/HttpServerConnection system Mar 21 19:40:37 so i can build a proper HttpClient-based server using UNIX sockets Mar 21 19:40:39 nice ! Mar 21 19:42:06 ok thanks, i'll look into closing all the client sockets first and see what happens Mar 21 19:49:35 jasta one last question, do you know if its possible to send an intent to a service which is NOT exported; using run-as ? i couldn't get it to work. Mar 21 19:50:31 so right now, in my manifest, i have exported="bool/is_exported" , and res/values/bools for the 2 buildTypes; debug is true, release is false Mar 21 19:53:40 i believe so, let me confirm Mar 21 19:55:15 any here who ever used adb to read sms messages from android device? Mar 21 19:59:00 I'm trying to have an image "float" over two linearlayouts. The one on top has a dark background. The one on the bottom has a light background. Mar 21 19:59:26 Is there a way to have an imageview over the border of two linearlayouts? Mar 21 20:00:01 Jonathan_Eyre a viewgroup with z-order, like framelayout or relativelayout maybe Mar 21 20:05:46 Would stretching a background image be a smarter thing to do? Mar 21 20:06:58 all viewgroups have z-order, technically Mar 21 20:07:11 Can that be specified in XML? Mar 21 20:08:42 weird Mar 21 20:08:57 In a FrameLayout, the z-index is defined by the order in which the items are added... Mar 21 20:09:07 Interesting. Mar 21 20:09:18 oh wait, I think I know what's going on Mar 21 20:09:31 a runOnUiThread is being called but its runnable is never being run Mar 21 20:09:46 I thought it was because another UI-thread task might have been blocking Mar 21 20:10:00 so I put entering/exiting messages in every UI-thread runnable. It's not that Mar 21 20:10:18 I think it's just the activity is null so it is never actually being added to the queue Mar 21 20:15:05 g00s: adb shell run-as am startservice --user 0 -n ... Mar 21 20:15:20 jasta that worked ? hm, let me try Mar 21 20:15:22 works fine on unexported services (and will also work for activity and broadcast) Mar 21 20:15:34 --user 0 is important. Mar 21 20:15:41 ok, thats what i was missing, thanks Mar 21 20:16:04 I'm creating an input method for android and I'm having a problem where my custom keyboard view appears to be cropped of. I set the view to 80% of the screen height but the lowest 20% of the keyboard view gets cropped of. See the code here: http://pastebin.com/XbERcu2j Mar 21 20:18:07 i have really fallen in love recently with the #dump method Mar 21 20:18:11 this is outrageously cool Mar 21 20:19:05 i should really patch the framework to fix Activity#dump to not print the view hierarchy by default Mar 21 20:19:10 it kind of wrecks Fragment#dump Mar 21 20:23:22 Say I have a layout with two sub layouts. Mar 21 20:23:44 How do I get one of the sub layouts and add a view to it in the "onCreate" method Mar 21 20:23:59 findViewById and addView Mar 21 20:24:36 SimonVT: cheers Mar 21 20:29:37 hello, I would be greatful if anyone here might be willing to take a look at this issue. Too big to post the whole question right here: http://redd.it/210asd Mar 21 20:41:04 is there a way in the Android APIs to say delete the first ancestor view with a class C? as it is I am calling getparent a few times. Mar 21 20:42:08 clear Mar 21 20:50:55 jQuery kind of spoils you for hierarchical view manipulation.. Mar 21 20:51:40 anyone know if webkit browser supports css calc()? Mar 21 20:56:24 folks, on iOS it is very easy to add views, in random sizes on random spaces in the main view, say whenver user presses a button. Couple lines of code. The same thing on android looks like a torture. Could somone provide me with an example on how to do it please ? Mar 21 21:05:36 Is it possible to create a content provider with a data storage system of a shared preference? I just have a string that I want available to multiple apps Mar 21 21:07:11 Hello, I have a question about the code snippet found here for the Manifest: https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-campaigns Mar 21 21:07:23 A couple questions actually. Mar 21 21:07:54 Firstly, if I try com.android.vending.INSTALL_REFERRER in a java file, it tells me it doesn't know what it is. Do I need a library for this? Mar 21 21:08:20 I've had a case (apache http libraries) where things would compile with a missing library, only to have a crash when it tried to run something. Mar 21 21:08:42 So I'm worried. And I can't simply test this, since this is a thing that triggers only after people install my app. (!!! kindof crazy if you think about it) Mar 21 21:10:04 Secondly, I get the warning "Exported receiver does not require permission" and stackoverflow answers for this hasn't helped me yet. Mar 21 21:10:15 Any suggestions? Mar 21 21:12:35 ill_logic: it tells you where com.android.vending.INSTALL_REFERRER goes, in your manifest Mar 21 21:14:29 ill_logic: it's an intent that gets broadcast from playstore when your app is installed. It is all there on that link Mar 21 21:16:33 Any idea how to remove the action bar from the Theme.AppCompat style? Mar 21 21:17:55 anyone know how to specify a custom css for android browser? Mar 21 21:19:45 canvs2321: I'm not asking where to put it Mar 21 21:19:56 I followed the instructions, and it builds. However I'm worried that it will crash. Mar 21 21:20:05 Because I'm not 100% sure I have the necessary libraries. Mar 21 21:20:09 Also, there's a warning. Mar 21 21:21:40 For instance I need the analytics library for another part of that snippet. Mar 21 21:22:40 Which I confirmed by trying to import that same path in a java file. (I wasn't sure about whether the Manifest file will throw errors if I put in a bogus path. actually I could just try that...) Mar 21 21:24:01 yeah, it makes no complaints about bogus paths Mar 21 21:43:09 Guys, someone had problem with charset encoding in Android Studio ? Mar 21 21:43:26 I'm getting this error: "error: unmappable character for encoding UTF-8" Mar 21 21:43:46 I changed my File Encoding for ISO-8859-1 Mar 21 21:43:53 But the problem remains... Mar 21 21:48:47 0.5.x has definitely been problematic for me Mar 21 21:48:59 i think its because its based on EAP 13.1 Mar 21 21:49:58 ironrock maybe load it in vim, do ':set list' to see if there are any weird control characters ? Mar 21 21:50:15 i have mine set to utf-8 and in that regard, its been ok Mar 21 22:25:14 How do I avoid "Error generating final archive: Found duplicate file for APK: LICENSE.txt" with Eclipse + ADT? Mar 21 22:25:20 with gradle I can : Mar 21 22:25:21 android { Mar 21 22:25:21     packagingOptions { Mar 21 22:25:21         exclude 'LICENSE.txt' Mar 21 22:25:21     } Mar 21 22:25:21 } Mar 21 22:31:44 I find it a bit disconcerting not being to monitor the free'ing up of views I remove from my activity (personally I'm not a fan of forced GC done in the systems own time) . is there some sort of android switch/hack to let me know "yup it and all its resources are gone"? Mar 21 22:59:07 hm, so this is weird. unlike my droid-1, attempting to read the inputStream from BT after connect without a small sleep often throws "java.io.IOException: read failed, socket might closed or timeout, read ret: -1" Mar 21 23:00:33 flaky shit Mar 21 23:12:18 Hello, my app was rated by some people, but only 1 rating out of 5 appears, the others are only visible at the chart. How to make the others visible? Mar 21 23:47:22 Does anyone know if you can create a contentprovider with a sharedpreferences as the data source? Then access those sharedpreferences through the content provider? Mar 21 23:47:43 Basically I'm trying to find a way to share a string between two apps Mar 21 23:49:26 arguably easier to just bind to a service Mar 21 23:49:58 pass the string through the IADL stuff Mar 21 23:50:36 if your apps are signed by the same key, you can do other things Mar 21 23:52:46 is it normal that eclipse keeps crashing and then screws up my workspace every 20 minutes? It's quite discouraging :( Mar 21 23:53:01 no, never happened to me Mar 21 23:53:34 someone must be watching over your client :D Mar 21 23:54:03 * bluezone begins prayer Mar 21 23:55:08 i used a clean install of 3.8.2 last; haven't tried 4.x stuff Mar 21 23:55:18 ah Mar 21 23:55:36 yes the source of the crashes seem to be when i open the xml wysiwyg editors for 4.2.2 Mar 21 23:55:42 or whatever the version it :P Mar 21 23:55:57 wouldnt be able to tell you because it's not opening anymore :( Mar 21 23:56:00 maybe its the ADT Mar 21 23:56:15 hard to disentangle the issue; eclipse or ADT Mar 21 23:56:29 to the user, it doesn't matter though.... Mar 21 23:57:29 yeah i can't even reopen... "Workspace at 'sgeggergerg' is in use..." Mar 21 23:57:47 maybe FS lock Mar 21 23:59:16 ok it was a bunch of java.exe still open Mar 22 00:00:27 and now theres all kinds of errors all over the place :( Mar 22 00:00:47 time to quit i think Mar 22 00:07:53 g00s: so essentially in my Service I would define/call my sharedpreference and return the string when it's called by either app? Mar 22 00:08:24 (I've never actually used a service before :)) Mar 22 00:14:28 maybe try http://androiddhamu.blogspot.in/2012/03/share-data-across-application-in.html Mar 22 00:16:25 depends on your security Mar 22 00:24:33 yea, the only problem is that was deprecated in api 17 :/ Mar 22 00:25:16 I think it was due to security concerns, though they elude to at some point adding the functionality to share preferences across apps Mar 22 00:29:53 that's a ridiculous solution Mar 22 00:30:12 Use a ContentProvider to do this properly. Mar 22 00:30:14 Hey does Android studio require maven? Mar 22 00:30:32 Purilla: certainly encourages it, but you don't have to use it Mar 22 00:30:57 I have a custom get my gps location button on my map is there a way I can set its graphics to be the same as the original android maps v2 get my location button ? Mar 22 00:31:20 like is there a maps.drawable option ? Mar 22 00:31:40 jasta: Thank you Mar 22 00:31:49 so I updated the SDK Mar 22 00:32:02 Purilla: Gradle pretty much needs it from what I can gather in that gradle uses maven artifacts to fetch libraries. Mar 22 00:32:03 now i've got a mismatch with the ADT plugin Mar 22 00:32:39 jasta: how would you implement that contentprovider? Mar 22 00:32:57 creating a sqlite database seems overkill when i only need to store/retrieve one string Mar 22 00:33:06 android studio doesn't require maven. i've always had it disabled; although you might not be able to browse repos with the plugin disabled Mar 22 00:33:19 most AS users will be using gradle Mar 22 00:33:45 g00s: so it is required for use of gradle? Mar 22 00:33:49 gradle itself has its own resolvers and doesn't depend on maven or ivy Mar 22 00:34:16 Purilla no Mar 22 00:34:45 there is a bug in AS 0.5.2 though, if you disable the maven plugin the Project Structure dialog won't show up Mar 22 00:34:55 so, just leave the plugin enabled even if you aren't going to use maven Mar 22 00:35:06 g00s: ok thanks. I was getting along fine without it, until I tried adding Google Cloud Backend to my module Mar 22 00:35:18 i never used that Mar 22 00:38:14 thammond: dont create a sqlite database, contentproviders don't require them. Mar 22 00:38:20 just use sharedprefs, but expose it via a contentprovider Mar 22 00:39:03 think matrixcursor. Mar 22 00:39:04 so say in the onCreate method in the contentprovider I create the shared prefs? Mar 22 00:39:50 or you could even use call if you can tolerate API level 11 Mar 22 00:40:04 thammond: sure, whatever. Mar 22 00:40:18 oh yeah forgot about call*( Mar 22 00:41:03 jasta: sorry, I'm new to contentproviders - I'm still struggling how their data storage works/translates to a sharedprefs Mar 22 00:41:19 i do wish ContentProvider.call() got the original Uri passed into ContentResolver.call() though Mar 22 00:41:44 that would be nice, yeah Mar 22 00:42:00 thammond: contentprovider is just an api -- you can implement it however you want. Mar 22 00:42:16 see MatrixCursor for one such alternative kind of implementation. Mar 22 00:42:26 but you can also use call, as i said Mar 22 00:44:57 Hey guys. I have a funny little problem. I am switching between immersive mode landscape and non-immersive mode portrait Mar 22 00:45:30 when I flip back to portrait, a widget of mine is offset by 2x the system bar height Mar 22 00:46:02 so like...activity launches, element is correctly offset Mar 22 00:46:11 switch to landscape it is correctly offset Mar 22 00:46:42 switch back to portrait and its top has a gap above it the exact height of the system bar Mar 22 00:47:25 ProgramMax: are you using DisplayMetrics to get screen size ? Mar 22 00:47:31 no Mar 22 00:47:45 just in the xml I have set the fits system windows to true Mar 22 00:47:56 but I'm not manually offsetting it Mar 22 00:48:25 I also tried calling .setFitsSystemWindows(true) / false to bump it around but that is all gone now. find-in-files for setFitsSystemWindows returns no results Mar 22 00:54:47 ProgramMax: I have the same thing is as you and it doesn't happen to me Mar 22 00:55:29 but I'm using DisplayMetrics and setting resolution and fullscreen programmatically Mar 22 00:56:49 in onConfigurationChanged ... Mar 22 00:57:32 hrmmm hope I can stick with what I have just so I don't have to rework a lot of that stuff Mar 22 00:59:29 you are hiding the notification, titlebar and menubar in fullscreen ? Mar 22 01:01:48 ProgramMax: do you have android:configChanges="orientation" ? Mar 22 01:05:18 yeah Mar 22 01:05:26 I'm handling the orientation changes for other things Mar 22 01:06:15 ProgramMax: looks like similar problem here ... http://stackoverflow.com/questions/6524659/avoid-android-videoview-corruption-when-rotating-back-to-portrait Mar 22 01:06:26 does anyone know what the system default value for button pressed highlight colour is? Mar 22 01:06:31 but not exactly the same Mar 22 01:06:42 or how to find it? Mar 22 01:07:53 I'm not sure I follow Mar 22 01:09:51 when do you ever have two Fragments on the same activity backstack? Mar 22 01:10:38 most of my activities only ever have one fragment Mar 22 01:11:05 and you have to say addToBackStack() explicitly anyway Mar 22 01:26:40 hmm, sorry my last 3 statements were so incoherent. my question is, is addToBackStack() the only way to save fragment state? Mar 22 01:40:39 omg, why are rotation problems such a b*tch Mar 22 01:40:46 excuse my language Mar 22 01:43:08 good question Mar 22 01:44:09 Mango_Man: make that the title of your stackoverflow post Mar 22 01:45:15 Mango_Man you can sometimes use Fragment.setRetainInstance Mar 22 01:46:02 nooo. damn make sat there forever again. Mar 22 01:46:14 g00s: apparently that doesn't work if the fragment is on the back stack Mar 22 01:46:25 Mango_Man_ you are right about that Mar 22 01:47:00 mango_Man save what you need to save yourself ;) Mar 22 01:47:28 is it possible that calling setFitsSystemWindows(true) would be ignored somehow? Mar 22 01:47:31 err false I meant Mar 22 01:47:38 if I set it to true it seems to always be true Mar 22 01:47:41 like I can't unset it Mar 22 01:48:59 dragorn there by any chance ? Mar 22 01:49:05 g00s: hey Mar 22 01:49:06 yeah Mar 22 01:49:14 pretty braindead but i'm around Mar 22 01:50:22 hey dragorn quick question; on my N7 i'm having this weird issue connecting to a BT device /some of the time/ … seems like 50% time its OK, 50% connection fails. in BluetoothSocket.connect(), after the connect they actually read a byte from the input stream … this is what is failing. but is that weird ? why would they read from the inputStream ? Mar 22 01:51:49 basically https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/bluetooth/BluetoothSocket.java Mar 22 01:51:53 g00s: weird - dunno offhand. I haven't seen that problem. It might just be going a read to see if th econnection is open Mar 22 01:52:10 line 320 Mar 22 01:52:31 g00s: oh, or it's reading metadata off the socket Mar 22 01:52:32 ok , thanks - i'll poke around a little more Mar 22 01:52:34 instead of ioctls Mar 22 01:52:49 looks like it's reading the bt channel off the socket Mar 22 01:53:16 having not messed with bluez or whatever they use underneath now, in forever, I dunno offhand Mar 22 01:53:24 looks to me like it's failing to read setup data about the connection Mar 22 01:53:32 hm, weird … yeah that seems to be unpredictable Mar 22 01:53:48 ok cool thanks for the info, something for me to read more about Mar 22 01:55:24 lets all sue google for not giving us what they pretend to and wasting our time Mar 22 02:04:46 note to other developers: don't use asynctask if you value your sanity Mar 22 02:12:00 uh Mar 22 02:12:15 asynctask is a foundational part of multithreading on android Mar 22 02:12:31 can you believe, there are 2 books on it ? Mar 22 02:13:02 two books on asynctask!? ;) Mar 22 02:13:13 heh Mar 22 02:13:26 talk about myopic Mar 22 02:13:41 well, one on asynctask mostly, another on concurrency in android Mar 22 02:13:43 need to shake off this work work and get back to doing android dev Mar 22 02:14:16 monetizing open source software often requires many books ;) Mar 22 02:14:19 thankfully, i have never used asynctask Mar 22 02:14:53 you are asynctaskless Mar 22 02:15:05 :) Mar 22 02:15:15 too bad you hadn't written an asynctask and then deleted it Mar 22 02:15:20 then you could be deasynctasked Mar 22 02:15:38 * Carbonflux hides Mar 22 02:15:40 i just read the source code, its short and simple Mar 22 02:15:47 write and delete another... redeasynctasked! Mar 22 02:17:28 well, just 1 chapter http://www.packtpub.com/concurrent-programming-on-android/book Mar 22 02:19:59 omg asynctask + rotations == one perfect storm Mar 22 02:20:02 asdkfjlaskdjfahljdskf Mar 22 02:26:43 Mango_Man: well if you're writing asynctask you have to properly handle their launching activity being killed off Mar 22 02:26:53 but that's true of any threads Mar 22 02:27:30 not just rotations...the user could do any number of things that kill off the activity that started an asynctask, or any other kind of thread Mar 22 02:28:12 kinda glad i'm going thru this class now Mar 22 02:28:18 everyone said "that's dumb just read the docs!" Mar 22 02:28:39 what class? Mar 22 02:28:46 but all the time i see ppl on here struggling with things because they've been "bits and piecing" it Mar 22 02:28:54 the coursera class? Mar 22 02:28:54 there's a coursera android class that's pretty good Mar 22 02:28:57 yeah Mar 22 02:29:07 for what it's worth i read through the big nerd ranch guide Mar 22 02:29:53 does your asynctask have side effects? Mar 22 02:30:04 if it just does something and returns a result to the main activity then it shouldn't be a problem Mar 22 02:30:07 what's the preferred paste bin here? Mar 22 02:30:08 the results are just discarded Mar 22 02:31:56 Nashenas: hastebin is the best, not sure if it's preferred http://hastebin.com/about.md Mar 22 02:33:09 hastebin lol Mar 22 02:35:36 well, here it is on haste bin http://hastebin.com/qewonajite.sm (definitely NOT my favorite, lack of syntax highlighting and all, but why not) Mar 22 02:35:53 http://hastebin.com/qewonajite.java Mar 22 02:36:13 my issue: clicking on list items does nothing. I'm not sure why. I have a fragment with a list view, and a SimpleCursorAdapter as the adapter for the listView Mar 22 02:36:13 you guys were serious about hastebin, i thought you meant pastebin Mar 22 02:36:29 g00s, I thought the same until I clicked the link Mar 22 02:37:07 Mango_Man: That actually looks nice Mar 22 02:37:32 Nashenas: is the item click listener being called? maybe try placing a Log.d in there Mar 22 02:37:36 i wouldn't fillData in onCreateView Mar 22 02:37:39 Also, the reason I'm using a Fragment, and not a ListFragment, is I have some other UI with the list Mar 22 02:38:02 Mango_Man: I ran through debugger and the breakpoint was never hit Mar 22 02:39:02 g00s: Where would you recommend I move it too? This is my first time working with Android, so I don't have all the best practices in place Mar 22 02:39:52 porbably good to start / stop loaders in onStart and onStop () Mar 22 02:40:15 * pfn still can't find a good reason to use loaders Mar 22 02:40:43 i only use CursorLoader; the rest of the framework is crap Mar 22 02:42:04 Nashenas in principle, its good to start/stop things in balanced onXXX callnbacks Mar 22 02:42:18 onStart / onStop … onCreate, onDestroy, etc Mar 22 02:43:52 Nashenas not sure how safe this is either context = rootView.getContext(); Mar 22 02:44:04 in onCreateView Mar 22 02:44:27 maybe it ok Mar 22 02:45:11 but, it is in onCreateView Mar 22 02:46:32 Getting type error in this function: https://gist.github.com/santosh/6b7f112e2a8f09e028d3#file-foo-java-L5-L11 Mar 22 02:47:02 how do I handle those last 6 chars? Mar 22 02:50:27 anybody around? Mar 22 02:52:15 santosh: what line is the type error on? Mar 22 02:52:56 Nashenas: 8 Mar 22 02:56:00 santosh: Sorry, I was in the middle of debugging something Mar 22 02:56:06 random.nextInt returns an int Mar 22 02:56:12 all you need is a cast Mar 22 02:56:46 char randomChar = (char)(random.nextInt(rand[17] - rand[0]) + rand[0]); Mar 22 02:57:18 also, rand[17] will be out of bounds Mar 22 02:57:28 there are 17 items in the list, so 16 is that last item Mar 22 02:57:40 also, since you're already writing the amount, why calculate it? Mar 22 02:58:04 actually... Mar 22 02:58:10 that won't work at all Mar 22 02:58:20 'f' - '0' is not what you think it is Mar 22 02:58:30 just do Mar 22 02:58:45 Nashenas: actually I wanted to minus the index of 'f' Mar 22 02:58:47 char randomChar = rand[random.nextInt(17)] Mar 22 02:59:06 santosh: I don't understand what you mean by minus the index of f Mar 22 02:59:34 char randomChar = rand[random.nextInt(16)]; // fixed bounds Mar 22 02:59:44 Nashenas: if 'f' is at index 9, then 9 - 0. Mar 22 02:59:49 SpeedEvil use eneloops at all ? **** ENDING LOGGING AT Sat Mar 22 02:59:59 2014