**** BEGIN LOGGING AT Thu Dec 19 02:59:59 2013 Dec 19 03:07:07 AS 0.4.0 is out Dec 19 03:07:13 not sure i'm going to try it Dec 19 03:07:18 probably not ;) Dec 19 03:08:25 http://tools.android.com/recent Dec 19 03:10:08 how would two processes communicate with each other via a MemoryFile ? Dec 19 03:10:27 i do not get it Dec 19 03:11:04 I440r can you use pipes or domain socket ? Dec 19 03:11:12 sounds like a pita Dec 19 03:11:18 might as well must use stdin/stdout Dec 19 03:11:32 and plod along Dec 19 03:12:19 the entire point of using shared memory is SPEED Dec 19 03:12:20 not Dec 19 03:12:25 slow Dec 19 03:12:43 correctness first, then speed. :) Dec 19 03:13:12 it would take me 2 minutes to create a shared memory mapping in my forth Dec 19 03:13:23 all i need to know is how the FUCK do i access it in my java Dec 19 03:13:26 no jni Dec 19 03:13:28 no ndk Dec 19 03:14:26 no jni ? Dec 19 03:14:42 no jni Dec 19 03:14:46 cant use jni Dec 19 03:14:51 anyhow, not my area sorry i can't help. i stick to java land on android Dec 19 03:15:21 because the process i am interfacing to is 100% STRIPPED> no symbols. i.e. it cannot ever be a loadable library Dec 19 03:18:16 i think im fucked here Dec 19 03:18:18 royally Dec 19 03:32:50 Is there an easy way to paint in everything BUT text when drawing a string onto a canvas? Dec 19 03:33:17 The only technique I have gotten to work requires rasterizing the text, then redrawing with PorterDuff.SRC_OUT Dec 19 03:36:42 interesting http://tools.ietf.org/html/rfc7049 (CBOR) Dec 19 04:19:16 blah Dec 19 04:19:28 instead of gettign a youtube embed to work in a webview Dec 19 04:19:35 im just going to show the thumbnail and link the video Dec 19 04:30:36 hi. i have problem with Android stuidio and google play service Dec 19 04:41:42 Does anyone know if the long press override to pass an intent to any activity listening for search on a physial menu button has been deprecated? Dec 19 04:44:17 Having a bit of trouble with Picasso + loading a thumbnail into my imageview. http://pastie.org/8562262 I've verified the image url is correct (http://img.youtube.com/vi/dlQuYXtkx0g/hqdefault.jpg) and when I use this code, I get no loaded imageview at all Dec 19 04:47:54 The full class for those interested: http://pastie.org/8562271 Dec 19 04:54:56 do you get an empty view (with no image) or no view at all? Dec 19 04:55:24 hmm Dec 19 04:55:26 let me check Dec 19 04:55:29 i shouldve Dec 19 04:57:38 ok it is an empty view Dec 19 04:58:47 and you have the internet permission? Dec 19 04:58:54 indeed. Dec 19 05:02:05 I am implementing a Service, it says onDestroy, and onStart are deprecated? What should I use instead? Dec 19 05:02:44 GEEGEEGEE: http://developer.android.com/reference/android/app/Service.html Dec 19 05:02:51 the javadoc has relevant info Dec 19 05:05:03 yeah i checked that, so its just onStartCommand? Dec 19 05:05:15 yes Dec 19 05:06:14 GEEGEEGEEGEE, baby baby baby ♫ Dec 19 05:09:34 f2prateek: I thought it might matter when the imageview is added, so i loaded it before and after it was added but it didnt make a difference Dec 19 05:14:05 I would set a listener to see what's going on Dec 19 05:14:19 a picasso one? Dec 19 05:15:57 desmin88: yeah, https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Picasso.java#L49 Dec 19 05:16:11 gotcha Dec 19 05:19:27 f2prateek: the onfail listener wasn't called... Dec 19 05:20:44 well there you have it Dec 19 05:20:47 removing .fit() fixes it Dec 19 05:22:54 must be something from AspectRatioImageView, fit will delay the request until the view has been measured (and then resizes the image to fit into the view) Dec 19 05:24:15 yeah its from the arimageview Dec 19 05:37:42 is anyone doing GCM? the "APIs & auth > Registered apps" option appears to have vanished from the console... Dec 19 06:03:18 ah, gradle examples were updated too Dec 19 06:09:30 Can the package manager be used to get other applications version info as well? Dec 19 06:11:05 scratch that Dec 19 06:11:06 im dumb Dec 19 06:28:04 Anybody familiar with the youtube player api? Getting an error when tryin to use a youtubeplayer(fragment) Dec 19 06:28:04 status=[400] msg=[Bad Request, GData error(s): Dec 19 06:28:04 [{domain:GData,code:InvalidRequestUriException,location:null,internalReason:Invalid id}]] Dec 19 06:28:19 The docs kinda suck for this and i cant find anything online Dec 19 06:33:29 I'm using the correct api key etc. Dec 19 06:41:40 hi all Dec 19 06:42:10 is it possible to send a message from wifi to all connected android phone Dec 19 06:42:37 what does "from wifi" mean? Dec 19 06:42:56 device Dec 19 06:43:12 you want to send a message from a phone over wifi to other phones? Dec 19 06:43:19 yes Dec 19 06:43:39 are they all running an app? Dec 19 06:44:13 one min Dec 19 06:44:20 i ll tell the scenario Dec 19 06:44:52 from pc to android phone over wifi Dec 19 06:45:53 like automated messages. Dec 19 06:46:38 cooldharma06 what is the topology; 1:1, 1:n, n:m ? Dec 19 06:46:38 one app is running in android it have to recieve a msg which send from pc over wifi Dec 19 06:46:45 1:n Dec 19 06:46:57 1 pc n phones ? Dec 19 06:46:59 LEELOO MULTICAST Dec 19 06:47:07 yes Dec 19 06:47:35 you could look at running a small mqtt broker on the pc; it will give you 1:n, security, pub/sub, etc Dec 19 06:48:06 atm i'm using mosquitto Dec 19 06:48:56 so if its 1:n and event streams, you may want to check it out Dec 19 06:50:09 do you use usb gadget on your android development? was kindda spaghetti cable i have now Dec 19 06:50:10 there are also a shitton of libraries , some listed here http://www.eclipse.org/paho/ Dec 19 06:51:00 so you could run mosquitto, or embed mosquitto on the pc app, and the android devices would use the paho java library Dec 19 06:52:01 JakeWharton using gradle 0.7.0 + AS 0.4.0 ? seem stable? Dec 19 06:53:03 i'm on some random SHA from AOSP Dec 19 06:53:14 haha Dec 19 06:53:15 g00s thanks for your valuable information i ll go through these things.. and then i ll tell you Dec 19 06:53:22 i haven't had any issue since 0.1 Dec 19 06:53:36 JakeWharton: latest version fixes the offline issue you had Dec 19 06:53:47 yeah i follow the Gerrit changes Dec 19 06:53:57 i'm not flying for months though Dec 19 06:54:21 oh, well. i'm sure somebody is bound to fly before me to try it out Dec 19 06:54:26 yeah they added offline mode in 0.4.0 Dec 19 06:54:50 yeah i follow the Gerrit changes Dec 19 06:55:26 Anyone know if newer phones built-in search button no longer listens for SEARCH LONG PRESS but only triggers on VOICE SEARCH or something? Dec 19 06:57:25 error: request for member 'GetDirectBufferAddress' in something not a structure or union Dec 19 06:57:30 this is why i FUCKING HATE C Dec 19 06:58:01 I440r: use Java instead :P Dec 19 06:58:18 i have to use the fucking JNI bullshit Dec 19 06:58:39 q = env->GetDirectBufferAddress(env, buff); Dec 19 06:58:49 its saying env-> is not a structure blah blah Dec 19 07:00:12 why does my get direct buffer address fail? Dec 19 07:00:37 JNIEXPORT void JNICALL blah(JNIEnv *env, jobject buff, jint length) Dec 19 07:01:01 JNIEnv *env is not working right Dec 19 07:01:22 (*env)->Get... Dec 19 07:01:32 the JNI api is black pointer magic Dec 19 07:01:56 if i need those () why do NONE of the fucking examples including google examples show taht shit Dec 19 07:02:21 because they use JNI with C++, most likely Dec 19 07:02:34 ugh Dec 19 07:02:45 there are different defines for the JNIEnv type on C/C++ Dec 19 07:03:04 I feel your pain, I struggled with this too a while back Dec 19 07:03:20 i hope i never have to deal with that shit Dec 19 07:03:36 i'll use c/c++ any time, but fucking jni... Dec 19 07:03:40 i HATE having to resort to this fucking C bullshit. C needs to die a horrible death Dec 19 07:03:43 PERMANANLTY Dec 19 07:03:47 as does c++ Dec 19 07:03:55 not really Dec 19 07:03:55 you know java is built on c/c++ right .... Dec 19 07:04:04 so is the OS im running it in Dec 19 07:04:30 everyone should be forced to use forth and assembler. just to keep me happy Dec 19 07:04:41 I440r i dont thin you;re ever happy :) Dec 19 07:04:49 we sure as fuck wouldnt need any "Fni" bullshit Dec 19 07:04:58 g00s i dont think i am any more Dec 19 07:05:20 i hate having to fight the development tools i HAVE to use, just to create the development tools i WANT to use Dec 19 07:06:35 I440r if google went with forth instead of java, what do you think would have happened to android ? Dec 19 07:06:35 how do i make my ndk-build create an armeabi-v7 lib Dec 19 07:06:47 it would become sane Dec 19 07:06:52 hehe Dec 19 07:06:56 g00s: nobody would have ever heard of it after the initial announcement Dec 19 07:06:57 you'd be the only dev Dec 19 07:07:09 and i would be happy. nuff sed Dec 19 07:07:19 and Apple would probably have bought Microsoft by now Dec 19 07:07:27 lol Dec 19 07:07:43 i dont think they would want it Dec 19 07:07:51 I440r i think you should make a Forth phone :D Dec 19 07:07:52 how do i make my ndk-build create an armeabi-v7 lib <-- Dec 19 07:08:00 forthOs Dec 19 07:08:19 no need for forthos Dec 19 07:08:27 but c sucks man ! Dec 19 07:08:37 just treat linux as if it were the bios, forth is the operating system Dec 19 07:08:56 sounds... emacsish Dec 19 07:10:07 heh buddy Dec 19 07:10:16 lay off emacs :) Dec 19 07:10:59 but it's such an easy target! Dec 19 07:11:01 yea or it might fall on you and crush you Dec 19 07:11:10 under its bloatwait Dec 19 07:11:14 bloatweight Dec 19 07:11:18 blah i cant spell OR typ! Dec 19 07:11:34 I440r also, there is this thing called the carriage return Dec 19 07:11:51 since when? Dec 19 07:11:58 it's when your typewriter goes BING! Dec 19 07:12:25 enter key is optional, like red lights Dec 19 07:15:42 I440r every time i think of forth, i remember this book http://ramp.ie/wp-content/uploads/2013/04/a688df75df338f85e43c921a11b84d21_width_600x.jpg Dec 19 07:16:01 i think as a kid, i was wondering if forth had something to do with S&M in space Dec 19 07:17:36 yea/ i remember that one Dec 19 07:17:50 does look kinda ghey eh Dec 19 07:41:13 Leeds: my registered apps vanished too.. Dec 19 08:05:54 http://stackoverflow.com/questions/20675554/webview-rendering-issue-in-android-kitkat Dec 19 08:25:42 hey everyone Dec 19 08:25:44 got a question Dec 19 08:25:54 I have this file, VideoAdsReceiver.java Dec 19 08:26:03 and I'm getting some strack traces of a crash in google play dev console Dec 19 08:26:17 but the track trace has something like this: Dec 19 08:26:31 (I'm going to do it backwords...an upside-down stack) Dec 19 08:26:44 at android.os.Handler.dispatchMessage(Handler.java:95) Dec 19 08:26:47 ... some others ... Dec 19 08:26:59 at my.thing.here.VideoAdsReceiver.c(Unknown Source) Dec 19 08:27:10 at my.thing.here.VideoAdsReceiver.a(Unknow Source) Dec 19 08:27:21 what's with the .c and .a and the unknown source? Dec 19 08:27:36 Is that because proguard is changing the method names to .c and .a Dec 19 08:32:34 Hi all, is somebody here developing for the Google Glass? Dec 19 08:35:11 FrancescoV: mikedg would be the glassholexpert Dec 19 08:37:11 Leeds, looks like he isn't in the channel, is he a lot on this channel? Dec 19 08:37:52 looks like he hasn't been in for a couple of weeks, actually Dec 19 08:40:19 ProgramMax: yes Dec 19 08:44:28 kk thx Dec 19 08:46:34 Leeds whats the attitude to something like Glass where you are ? Dec 19 08:46:50 about the same as the attitude to unicorns Dec 19 08:47:06 so everybody thinks its awesome Dec 19 08:47:42 more like "when I see one, I'll believe they exist" Dec 19 08:49:16 but NK has unicorns ... Dec 19 08:49:46 what's the attitude to the recent high court ruling about welfare access for non-permanent residents where you are? Dec 19 08:49:55 g00s u there Dec 19 08:50:02 PRNK ;) Dec 19 08:50:06 cooldharma06 yes Dec 19 08:50:14 it's not a thing that has any relevance to anyone here Dec 19 08:50:40 instead of broker can i use web services ah for sending msg from pc to android Dec 19 08:50:55 sure Dec 19 08:51:05 i just brought up mqtt, it may not be right for you Dec 19 08:52:58 which one is better i want to move with that one Dec 19 08:53:09 from your view Dec 19 08:54:33 cooldharma06 you'll have to give the channel more details. i have to run though Dec 19 08:57:13 just small suggestion only.. Dec 19 09:27:17 for broadcast, just use multicast Dec 19 09:27:31 no need for a silly mq Dec 19 09:30:27 anyone know what theme is used for the system settings activity in android 4.4? Dec 19 09:31:30 I'd like to use that one, but the only one I can seem to find is appcompat, but it differs slightly (uses more of that cyan blue, and the blacks are darker/less soft) Dec 19 09:35:54 i am in DDMS and file explorer in Eclipse in all tutorials said send data from DDMS/File Explorer to emulator but my question is how can i send file to File Explorer ? how can i send file from my host to DDMS/File Explorer or on emulator ? Dec 19 09:46:48 Does somebody know how you can put your app in the home menu on google glass? Dec 19 09:47:38 zzxx: Theme.Holo + an action bar background Dec 19 09:49:05 Hi guys, I'm trying to build an Android project generated by Worklight, but when I try to run the generated project I simply get the error "Could not find projectname.apk!" Dec 19 09:49:22 I installed all the tools needed AFAIK Dec 19 09:50:27 JakeWharton: in my android manifest in an activity element--> android:theme="@style/Theme.Holo" -- Theme.Holo is not recognized. Am I doing something wrong? Dec 19 09:50:36 and when I try to create a new Android project (for both 2.2 and 4.4) the project gets created but in MainActivity.java the R isn't imported. If I import it, it says that main can not be resolved or is not a field Dec 19 09:50:38 @android:style/Theme.Holo Dec 19 09:50:43 ok and thanks pfn Dec 19 09:51:02 I'm doing all of this on an Eclipse with a Worklight plugin on a mac mini with OSX Maverick Dec 19 09:51:21 (Doing it on a mac mini because I want to be able to use this machine to build both the ios and Android projects) Dec 19 09:51:31 Does anyone know what I could be missing/doing wrong? Dec 19 10:10:08 Does anybody know if ART (Android RunTime) is/is going to be FOSS? Dec 19 10:11:48 it already is? Dec 19 10:11:53 checkout the 4.4 source Dec 19 10:12:15 Mavrik, cool, thanks. Dec 19 10:14:27 hello everybody. Dec 19 10:19:51 I have an activity A and B. There is a broadcastreceiver registered in android A . I start an activity B from a view class and then from activity B i send a broacast which is received by activity A. but i am facing a leaked IntentReceiver issue if android kills my activity A. Dec 19 10:19:57 what can i do in this case ? Dec 19 10:20:56 since if android kills my activity , after onStop(), onCreate() is called Dec 19 10:21:06 I am starting to like android system Dec 19 10:21:12 Really Dec 19 10:21:21 so my broadcastreceiver doesn't get unregistered and leask Dec 19 10:21:23 *leaks Dec 19 10:21:51 when android kills your activity, onDestroy will get called Dec 19 10:21:58 unregister it in there Dec 19 10:22:04 and if it doesn't, the process died Dec 19 10:22:10 in which cares, who cares! Dec 19 10:22:14 \o/ Dec 19 10:22:16 *case Dec 19 10:22:18 whatever I do I see Unfortunately this Unfortunately that. It's so polite, much more then on rude windows or mac. Android is more like bioshock 'would you kindly' ... Dec 19 10:22:40 it so great Dec 19 10:26:46 CallumTaylor: if activity gets killed by android then onDestroy doesn't get called Dec 19 10:27:09 from onStop() it straight away goes to onCreate Dec 19 10:34:47 but the process also died Dec 19 10:35:17 switching to AS 0.4.0 was a mistake Dec 19 10:37:36 haven't we bashed all the IDEs enough already storkme :-P Dec 19 10:38:03 what's broken on 0.4? Dec 19 10:39:10 JakeWharton: what if my activity gets destroyed . not process. Only this single activity gets destroyed and recreated Dec 19 10:39:13 ?? Dec 19 10:39:22 then onDestroy would be called Dec 19 10:41:30 Anyone know if it's possible to communicate with WifiP2p (wifi-direct) without going through the 'pairing' process? Dec 19 10:41:43 by 'pairing' i'm referring to WPS Dec 19 10:44:19 anyone able to help me with a (hopefully simple) themeing question? http://codepad.org/3jSsRf1C Dec 19 10:44:24 JakeWharton: yup it does. Thanks Dec 19 10:44:35 ^^ just trying to set a gradient as a background for the action bar :) Dec 19 10:45:13 guys, is there any file manager for looking into app's folder? Dec 19 10:45:35 Of course I can list it programmatically, but I want something like file manager Dec 19 10:45:44 (on real device) Dec 19 10:45:50 not on emulator Dec 19 10:46:49 I'm unable to get line number information in ndk-gdb for statically linked libraries. 'info sharedlibraries' says that debug symbols are loaded however. Why is this? They are compiled with -g Dec 19 10:48:05 eckesicle: absolutely no idea if this would help - total no idea what i am talking about stab-in-the-dark - but would it help if you compiled with -ggdb instead of plain -g ? Dec 19 10:49:23 i'll give it a try Dec 19 10:50:30 cool. hope it works. but not likely :P Dec 19 10:52:43 I think I know what it is Dec 19 10:52:44 sigh Dec 19 10:53:08 CC=${TOOLCHAIN_PREFIX}gcc Dec 19 10:53:16 and Dec 19 10:53:31 NDK_TOOLCHAIN_VERSION := clang Dec 19 10:55:07 Hey can anyone suggest a way to make listview items draggable? Dec 19 10:55:43 re my request for gradient help above - pretty sure Ive figgured that out now. no need for help :) Dec 19 10:56:11 hmmm, anyone got any idea why using "setImageBitmap" in custom Target class in Picasso wouldn't work? Dec 19 10:58:54 ah, WeakReference. Dec 19 11:06:17 so anyone re-ordering lists by dragging and dropping? I'd also like to be able to swipe away item ala gmail. Dec 19 11:06:29 zzxx: nope didn't work. Same error Dec 19 11:06:57 nm says the .a file has line number information available Dec 19 11:17:09 hi, I have a newb question regarding resources. What is the diffrence between using "@android:[path]" and "android:[path]" when referencing resources? Dec 19 11:30:15 god damn it Dec 19 11:30:29 i have to jump on to a project which means i have to go back on to eclipse ;_; Dec 19 11:30:48 Upgrade the project and annoy anyone else working on it? Dec 19 11:30:55 i'd love to Dec 19 11:31:05 but the app is like over a year old and its nasty Dec 19 11:31:10 i doubt it'd even coup Dec 19 11:53:15 how to find out is my emulator really works with kvm? It's hard to measure. Dec 19 11:54:25 dalvik-kvm is always visible in logs if I just launch atom image. Dec 19 11:54:37 so how to find out is kvm really turned on? Dec 19 11:54:53 I mean not in system but is it used by emulator Dec 19 12:12:17 Hi folks. Do any of you have an AppAnnie account and know if shared access includes IAP unit data? Or would be willing to help us find out? Dec 19 12:12:46 Quick question. I have a class that extends SQLiteOpenHelper and in it I have an asyncTask. On PreExecute I want to show a DialogFragment Dec 19 12:13:11 but I cant figure how to do that since SQLiteOpenHelper wont let me do getFragmentManager Dec 19 12:16:26 anyone? Dec 19 12:30:16 I guess there are only zombies on the channel ;) Dec 19 12:38:16 byyyyyyyytes….. byyyytes… Dec 19 12:38:50 uh oh Dec 19 12:38:53 https://code.google.com/p/android/issues/detail?id=61573#c14 Dec 19 12:41:05 hi, I have a newb question regarding resources. What is the diffrence between using "@android:[path]" and "android:[path]" when referencing resources? Dec 19 12:46:55 hi to all, this is my question: i have some number of asyncTask that execute serialized. i call this just with execute, this works. parallel with that i need to call another asyncTask. just call with THREAD_POOL_EXECUTOR ? Dec 19 12:47:49 if i want to create 2 thread that execute asynks in serials? Dec 19 12:50:11 hey guys, could someone, please, explain this behaviour in Java? http://pastebin.com/VPQ2p1jM Dec 19 12:51:47 osmij_, isnt Integer an object where as int is the type? Dec 19 12:51:53 maybe something to do with that Dec 19 12:52:11 also you might be better asking in ##java Dec 19 12:52:33 how do I connect to that channel? Dec 19 12:53:16 osmij_, the problem is that the integer object cache only goes from -128 to 127 Dec 19 12:53:26 there are objects pre-allocated for those values Dec 19 12:53:35 osmij_, /join ##java Dec 19 12:53:40 128 is not pre allocated, so creating two integer objects with the value 128 create two separate objects Dec 19 12:53:43 i.e. you are comparing object references, not values. Dec 19 12:53:51 yes. Dec 19 12:54:08 for values -127 emaz are you referring to java vs xml? Dec 19 12:54:24 osmij_, try Hexchat http://hexchat.github.io/downloads.html it is far better than the web chat clients Dec 19 12:54:41 but after that, the objects arent't the same references, so == tells you that you that the two are not the same object Dec 19 12:54:50 because as far as I know, the @ is always used for the xml, emaz Dec 19 12:55:11 leslie: parent="android:style/Theme.Holo.Light.DarkActionBar" vs parent="@android:style/Theme.Holo.Light.DarkActionBar" Dec 19 12:55:23 the latter even requires api-14 Dec 19 12:55:25 as minsdk Dec 19 12:56:02 emaz: I always use "@android:...", I think missing the "@" doesn't work. You'll have an error because the resource won't be find. Dec 19 12:56:30 emaz Theme.Holo.Light.DarkActionBar was added in API level 14 Dec 19 12:56:37 both mentioned ways work for me, the other one just requires api 14 Dec 19 12:56:45 Can someone tell me where I can find this General tab in IntelliJ? http://www.jetbrains.com/idea/webhelp/run-debug-configuration-android-application.html Dec 19 12:56:51 ah ok Dec 19 12:57:08 I want to set a Target Device Dec 19 12:57:34 leslie: ok, but why does "android:.." work with minSdk set to 11 then? Dec 19 12:58:10 I have no idea. what I'm saying is, if you set the theme to Theme.Holo.Light.DarkActionBar, it will only work in 4.0 and later Dec 19 12:58:36 i get that, I'm just trying to understand why one way works while the other don't :P Dec 19 12:59:31 Is there a specific channel for android development tools ? Dec 19 12:59:39 Like gradle plugin and android studio :-) Dec 19 13:00:12 I think here would be fine, jellenagels. I'm not aware of a specific channel Dec 19 13:00:41 and the bascis documentation sometimes use "android:" and sometimes "@android:" which is also confusing :P Dec 19 13:00:57 Anyone already using Android Studio 0.4.0 and gradle plugin 0.7.0 with gradle 1.9? I'm having this issue: https://code.google.com/p/android/issues/detail?id=61573 Dec 19 13:01:34 Hey guys, anyone got any idea why canvas.drawPoints ignores the Paint.Cap.Round attribute? Dec 19 13:01:37 It keeps drawing squares for me. Dec 19 13:02:48 Duplicate files copied in APK META-INF/DEPENDENCIES Dec 19 13:03:11 it's an annoying bug and I can't build right now. Anyone else having this as well ? Dec 19 13:06:08 maybe you could downgrade to 0.6 and gradle 1.8 for now? Dec 19 13:06:17 I dunno how well that'd work with Android Studio Dec 19 13:19:07 leslie, I was hoping i didn't have to because those variant-specific sourcefolders are awesome. And the new BuildConfig DSL is also very welcome. Dec 19 13:22:54 im trying to get google analytics to work using intellij and gradle, i add "compile files('libs/libGoogleAnalyticsServices.jar')" to dependencies in build.gradle, but the build does not find the classes like com.google.analytics.tracking.android.Tracker what could be wrong? Dec 19 13:23:29 intellij itself does seem to be able to fubd evertthing Dec 19 13:24:07 you might have to manually refresh the gradle project after changing the dependencies, osxorgate Dec 19 13:24:26 ew Dec 19 13:24:29 ok ill try Dec 19 13:26:09 i have a src/main/java/ and a src/main/libs dir, is this correct? Dec 19 13:26:25 no, libs goes in the project root Dec 19 13:26:38 or it won't find the reference Dec 19 13:26:58 it's relative to the build.gradle file Dec 19 13:27:38 the build.gradle is in /src Dec 19 13:28:03 I don't see why that would be the case Dec 19 13:28:26 intellij new project does that Dec 19 13:28:34 but, it all seems to work Dec 19 13:28:39 actually there are 2 build.gradles Dec 19 13:28:40 huh, weird Dec 19 13:28:59 1 is empty Dec 19 13:29:07 right Dec 19 13:29:16 that one is for multi-project builds Dec 19 13:29:19 i'm making a custom button that's just a square background (color will change at times) and a border... am i better off drawing, or using shapelayers? what's more efficient? Dec 19 13:30:28 leslie i think it works now, thanks Dec 19 13:30:35 cool Dec 19 13:30:55 ultra-: use a drawable of some sort, 9patch or xml Dec 19 13:31:16 ok, thanks Dec 19 13:31:40 so using canvas.drawRect isn't the way to go Dec 19 13:31:44 in onDraw Dec 19 13:32:32 no you dont want that Dec 19 13:38:18 Fuck this Windows PC, downloading clean ISO for reinstall. Dec 19 13:44:45 i have only one main activity which does not extend listview because i put button , textedit and listview in one main activity. i have string array that i want to use to fill up listview. but examples i found on google all extend listview. is it not possible to use list the way im trying to use? Dec 19 13:45:35 you can still supply a custom layout if you extend listactivity, jaami-win Dec 19 13:47:05 ohh, ic.. thank you so much for solving that puzzle. leslie Dec 19 13:47:55 that means my main activity should extend listview Dec 19 13:48:07 no, listactivity Dec 19 13:48:22 oh okay, yes, Dec 19 13:51:10 Does someone know that when I reinstall Windows 8 using a DVD, do I keep my D drive when that contains data and the main drive is C? Dec 19 13:51:34 Better make a backup first. Dec 19 13:53:56 Dreeass: Is it a recovery DVD or a laptop or a retail install? Dec 19 13:55:05 *of a laptop Dec 19 13:55:08 bobek, it's an ISO from Windows 8 Upgrade Assistent. Dec 19 13:55:15 Burned on a DVD Dec 19 13:57:48 sounds like a recovery disc to me Dec 19 13:57:50 Dreeass: Can't help then. Never used that. I thought thats just diagnostics software? Dec 19 13:58:22 bobek, it's the basic stuff you use when upgrading from W7 to W8. Dec 19 14:00:29 Hi all, can you create a custom device in eclipse for layout? (width x height) Dec 19 14:00:35 I'm currently downloading every single EXE I need after the installation and getting the product keys. Dec 19 14:00:45 FrancescoV, I think you can. Dec 19 14:01:06 Dreeass: and do you know how? Dec 19 14:01:55 FrancescoV, this is about a custom skin but also shows how to change the size: http://stackoverflow.com/questions/13419984/is-adding-custom-android-skins-to-virtual-device-missing-in-adt-eclipsejuno Dec 19 14:02:03 I haven't tried it myself though. Dec 19 14:14:51 Anyone here who used adb + eclipse on a mac? Dec 19 14:22:12 I've finished creating a custom analog clock view that allows one to specify a range of time to highlight. Dec 19 14:22:37 I must admit it was easier than I thought it'd be Dec 19 14:27:52 any idea why sqlite does not enforce the unique constraint there? https://gist.github.com/rndstr/2d399bf0cf7f4939db48 Dec 19 14:29:24 it works when only having UNIQUE(actor_id,movie_id), the SQLiteDatabase does not insert it a second time then Dec 19 14:33:53 Windows better not delete my D partition or I'm totally fucked Dec 19 14:35:10 Why would Windows delete your D partition? Dec 19 14:35:20 because windows Dec 19 14:35:47 :P Dec 19 14:40:58 how difficult it is to make barcode scanner app? Dec 19 14:41:54 any ideas? Dec 19 14:43:54 jaami-win: not too hard: barcode are in general well standardized and documented. There's some mathematical complexity in the algorithms to process the signal (or image), but nothing too hard: you can mostly just use the needed filter algorithms without understanding precisely the mathematical theory. Dec 19 14:45:09 Don't most existing apps just wrap zxing? Dec 19 14:46:51 ogamita, plz give me link easy to understand. i want to use sample code and detail to learn this Dec 19 14:47:54 i think i should make small app for barcode scanning in a 3, 4 days Dec 19 14:48:47 jaami-win: if you want sample code, just look through https://code.google.com/p/zxing/ Dec 19 14:49:58 ok, yes, need sample code and some detail to understand the code so i can mix that sample code with my app i am already working on Dec 19 14:52:02 More of a barcode scanner tutorial? Dec 19 14:54:09 oh, sorry i did not see your msg, i was readin from the link you gave. Dec 19 14:55:34 yes, i took long time to show a simple list. i need more details because android coding is new for me Dec 19 14:56:35 tutorial is best thing for me Dec 19 14:57:40 Somebody experience with Google Glass? Dec 19 14:58:49 emulator on my system run very slow. can you also tell me how to speed up emulator? Dec 19 14:59:42 10 minutes passed and emulator still showing android but not the main screen Dec 19 15:00:23 This is odd. I installed the Android SDK Build Tools using the SDK manager (literally every single one of them) but when I try to build an applicaiton in Eclipse it says "No build tools package available" Dec 19 15:00:34 and "Could not find apkname.apk!" Dec 19 15:01:47 you downloaded bundle? vanseverk Dec 19 15:03:20 bundle need no extra efforts to setup environment for androi. otherwise i know i had to install adt plugin for eclipse Dec 19 15:05:22 Estel, i see other links for details to read about barcoding from the same link you gave. i think i should follow the same link you gave. Dec 19 15:06:59 jaami-win: Yes, I have Dec 19 15:07:12 jaami-win: Everything should be installed through the installation manager Dec 19 15:07:30 i also installed the adt plugin on top of my Worklight eclipse Dec 19 15:11:17 just a guess, if you renamed folder ? Dec 19 15:11:26 I haven't.. Dec 19 15:11:29 Bah :) Dec 19 15:13:41 Estel might give you better idea. :) Dec 19 15:16:42 Can somebody help me with this? http://stackoverflow.com/questions/20685180/google-glass-view-captures-gesture-swipe-down Dec 19 15:17:09 jaami-win: Estel? Dec 19 15:19:41 Is there a way to get battery level like this ? String level = (BatteryManager.EXTRA_LEVEL); Dec 19 15:19:48 i am calling the function from unity Dec 19 15:19:51 yes, Estel was helping me also Dec 19 15:21:28 anybody ? Dec 19 15:24:15 markpp, unity a game engine? Dec 19 15:26:46 year making a plgin Dec 19 15:27:02 just need to get to the battery manager data Dec 19 15:28:15 markpp, so what's trouble? use jni in it Dec 19 15:28:43 hey guys, I'm struggling with an issue with webviews Dec 19 15:29:05 when the soft keyboard comes up, the webview is not resized, and therefore the keyboard obscures the input box that triggered the keyboard in the first place Dec 19 15:29:12 it makes for a very ugly user experience Dec 19 15:29:18 http://stackoverflow.com/questions/2729932/html-textfield-in-webview-in-an-android-application-is-hidden-by-the-soft-keyboa Dec 19 15:29:33 this seems to be a related issue but no solutions mentioned in there seem to work Dec 19 15:29:41 would android:windowSoftInputMode="adjustPan" on your activity help Dec 19 15:29:49 I tried that Dec 19 15:29:52 and adjustResize as well Dec 19 15:29:57 but neither seem to do anything at all Dec 19 15:30:00 I don't see a difference Dec 19 15:30:03 ah. Dec 19 15:30:12 I do this though: Dec 19 15:30:34 this.appView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT, 1.0F)); Dec 19 15:30:46 to make the webview fill up the entire screen Dec 19 15:31:01 and the stack overflow post there seems to indicate that this overrules (and breaks) the adjustResize/adjustPan Dec 19 15:35:18 What's up guys? I am having a problem keeping cookies using http client after I close the app and open again, can someone help me? Dec 19 15:37:52 unfortunately myApp has stoped. is there an further detail to see why app stoped on emulator? Dec 19 15:38:32 standard debugging tools will work - adb logcat being the primary one for finding the stack trace of why you crashed Dec 19 15:38:54 ok, thanks dragorn Dec 19 15:42:03 oles__: ? Dec 19 15:44:15 markpp, so you need to get a java class field from native code? Dec 19 15:45:18 i want to get to BatteryManager class Dec 19 15:46:00 string number = pluginTutorialActivityJavaClass.CallStatic<string>("GetBatteryLevel"); Dec 19 15:46:29 http://pastebin.com/mSyfKaQ1 Dec 19 15:46:34 i can't use this Dec 19 15:47:50 markpp: look at the JNI reflection API to build/reference java instances from native Dec 19 15:48:07 dragorn, his problem is that Android doesn't have current battery level API ;) Dec 19 15:48:45 Mavrik: ah. Dec 19 15:51:28 eh? Dec 19 15:53:23 where's the 'native' fit in here? Dec 19 15:56:31 pfn: I don't know :P Dec 19 15:56:34 does this look right ? IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); Dec 19 15:56:35 Intent batteryStatus = registerReceiver(null,ifilter); Dec 19 15:56:36 string status = batteryStatus.getStringExtra(BatteryManager.EXTRA_LEVEL); Dec 19 15:56:52 not even close. Dec 19 15:57:18 according to this it is http://www.tutorialspoint.com/android/android_best_practices.htm Dec 19 15:57:43 looks fine to me... Dec 19 15:57:52 got error Dec 19 15:57:57 then fix error Dec 19 15:58:05 that sounds simple... Dec 19 15:58:38 Intent batteryStatus = registerReceiver(null,ifilter); Dec 19 15:58:50 it doesn't like registerReciever Dec 19 15:59:11 do i have to have an import for that Dec 19 15:59:26 https://developer.android.com/index.html#q=registerreceiver Dec 19 15:59:52 none static Dec 19 16:00:05 my function is static Dec 19 16:00:05 why don't you use a context Dec 19 16:00:11 so if it's static, you can't use it Dec 19 16:00:18 pass a context to your static fn Dec 19 16:00:27 You might also want to actually register a broadcastreceiver, instead of passing null Dec 19 16:00:36 I'd imagine Dec 19 16:00:36 SimonVT, battery level is sticky, so null is good Dec 19 16:00:40 Ah Dec 19 16:02:19 i wish i had more time i have to go Dec 19 16:02:22 thanks guys Dec 19 16:04:12 is it reason of crash of my app at start ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=loc.jaami/.MainFCodeActivity } Dec 19 16:04:41 no Dec 19 16:04:46 read stack trace and fix Dec 19 16:05:07 hmm, ok thanks. i have to find stack trace first Dec 19 16:05:18 to be fair, yes, that is a cause of the crash - if your app hadn't been launched, it probably wouldn't have crashed Dec 19 16:06:06 i have to lauch because google launched android Dec 19 16:06:31 I wonder if the aosp email apps can be installed on devices that have skinned email apps, like the sgs phones Dec 19 16:06:32 you're quite right, that is one of the ultimate causes of the crash... if only arubin had never been born, there'd be no crashes! Dec 19 16:07:28 thanks, and if you can tell me wher to find stack? Dec 19 16:07:55 logcat Dec 19 16:08:03 ic, thanks Dec 19 16:08:16 or lolcat if you want to be very slightly and very briefly amused Dec 19 16:08:48 hmm, i would rather look for lovct Dec 19 16:08:54 lovcat*** Dec 19 16:11:14 I'm not sure whether lov has a cat or not Dec 19 16:12:02 you got it wrong, its cat that has lov and she is what i am looking for :) Dec 19 16:12:45 does this solves crash issue? Dec 19 16:21:39 would android:windowSoftInputMode="adjustPan" on your activity help Dec 19 16:21:45 I managed to get it working Dec 19 16:21:48 oh? Dec 19 16:21:51 the webview is resized now Dec 19 16:21:56 only one issue remaining Dec 19 16:22:05 when the keyboard disappears again, the webview is resized back to its original size correctly Dec 19 16:22:15 but it's also pulled down halfway down the screen Dec 19 16:22:26 and it only reverts to the correct position when I tap the webview or interact with it Dec 19 16:23:10 Leeds: wah, I just found out that adb lolcat is the same as logcat Dec 19 16:23:11 nice Dec 19 16:23:22 yuvipanda: also, adb hell :) Dec 19 16:23:32 hahah! ;D Dec 19 16:23:35 nice touch Dec 19 16:24:19 in one go logcat shows hundreds of errors http://pastebin.com/6CcWi44F Dec 19 16:25:32 consol shows 0 error 0 warnings Dec 19 16:26:08 trying to factor as much stuff out of my projects main java file (it is getting crufty) so created a new "button handler" java file, Dec 19 16:26:42 problem is, i cant seem to tell my layout.xml that the buttonHandler is now in a different java file Dec 19 16:27:05 jaami-win: and with a little bit of initiative, you'll find the error which is actually in your code Dec 19 16:27:12 so i click a button now and my app goes bewm Dec 19 16:28:25 does the button handler i specify in my layout.xml have to be within my apps main java file? Dec 19 16:28:46 android:onClick="buttonHandler" <-- except buttonHandler cannot be found now Dec 19 16:28:49 code compiled without error, only build is filling up logcat. how i can find error if compiler did not bother to ? Leeds :) Dec 19 16:29:08 jaami-win: do you know how to search for text? Dec 19 16:29:19 yes Dec 19 16:29:32 Leeds, what text? Dec 19 16:29:53 well, that's the question, what text might you imagine you should look for to find the error in *your* code? Dec 19 16:29:55 sorry for many questions, really i hate to be newb Dec 19 16:29:57 onClick has to be a method in your Activity that takes a View as a parameter Dec 19 16:30:14 don't use android:onClick though Dec 19 16:30:18 it never ends well Dec 19 16:30:32 and rarely even starts well Dec 19 16:30:41 how do i specify that my onClickListner is in buttons.java not main.java (within my layout i mean not programatically) Dec 19 16:30:52 you don't Dec 19 16:30:55 evanc: you think? Dec 19 16:30:58 And if you do, read the documentation for onClick.. it explains it Dec 19 16:31:19 evanc it was working just fine till i factored my code better lol Dec 19 16:31:36 I440r: you're agreeing with me, then? Dec 19 16:31:44 so you say i need to write code to programatically set the listener for every button? Dec 19 16:31:53 evanc im not disagreeing with you. im asking lol Dec 19 16:31:55 yes, making an app involved writing code Dec 19 16:31:57 If it crashes it would seem you factored it worse Dec 19 16:32:21 I440r: android:onClick is a shortcut which works in only the very simplest of situations Dec 19 16:32:24 simonvt no. factoring things out to simplify is not making them worse. maybe it makes them work differently Dec 19 16:32:38 evanc k ty Dec 19 16:32:57 TIL crashing is better than working Dec 19 16:33:17 I440r: He's saying to write out the click handler instead of just using a shortcut in the layout file. Dec 19 16:33:42 ColinTheShots, i got that.. im already working on that :) Dec 19 16:35:37 jaami-win: found it? Dec 19 16:35:38 there is a possibility to detect state of activity without a local variable? Dec 19 16:40:34 Leeds, yes i guess found the reason, trying to export that single line of error from logcat. Dec 19 16:40:49 jaami-win: why not just fix the problem? Dec 19 16:41:17 ok why can it not resolve findViewById() ? Dec 19 16:41:27 I440r: because Google hates you Dec 19 16:41:32 obviously Dec 19 16:41:34 lol, cant understand it :) have to ask you Leeds Dec 19 16:41:39 google only loves money Dec 19 16:41:41 because they're fscking idiots Dec 19 16:41:46 all sorts of reasons Dec 19 16:42:01 or, just maybe, because you're calling it on an object which doesn't have that method Dec 19 16:42:03 nope, google loves zombies Dec 19 16:42:17 jaami-win: well, what is the error? Dec 19 16:42:29 tap multiple times on version on your mobile and see that Dec 19 16:42:39 oh, just a second plz Dec 19 16:43:06 srsly though. why cant it resolve findViewById() ? Dec 19 16:43:18 I440r: from where are you calling it? Dec 19 16:43:30 or, just maybe, because you're calling it on an object which doesn't have that method Dec 19 16:43:57 estel i have a buttons.java - im doing the findView within its constructor so i can set the handler on all my buttons Dec 19 16:44:17 Button button = (Button) findViewById(R.id.button_send); Dec 19 16:44:17 Dec 19 16:44:21 im basicaly doing THAT Dec 19 16:44:29 yes, but what are you calling it *on*? Dec 19 16:44:32 OOP, darling Dec 19 16:44:33 except findViewById(int) isnt working Dec 19 16:44:35 Can someone help me get started designing an app that will send a UDP packet every second and get a response and display that response in the UI? I know how to send packets but I am having trouble knowing to use a service or handler Dec 19 16:44:42 found error but really build show success in the problem tab but here is the text from logcat Your content must have a ListView whose id attribute is 'android.R.id.list' Dec 19 16:44:50 jaami-win: bingo! Dec 19 16:44:53 I440r: what is the buttons class a subclass of? Dec 19 16:45:13 Basically need advice on high level design Dec 19 16:45:44 estel erm yea it isnt a sub class of anything. what am i supposed to extend it with? Dec 19 16:45:53 Leeds, who is bingo?:) i need to fix android. plz tell me where to add what? Dec 19 16:45:59 View didnt work Dec 19 16:46:15 jaami-win: you have found the error... now, what don't you understand about it? Dec 19 16:46:28 jaami-win: also, I need to go shower and sleep *very* soon, so be quick Dec 19 16:46:49 i dont have no r.id.list in my app Dec 19 16:47:18 the listview in my xml file is foodcode something Dec 19 16:47:40 I440r: findViewById works within an Activity because the activity has a method called findById. Similarly, in a fragment you can do that method on a View object. Dec 19 16:47:49 jaami-win: are you using a ListActivity? Dec 19 16:47:52 ok yea. extends View does work i had it in the wrong place Dec 19 16:48:01 this is what i want fill up android:id="@+id/foodCodesList" Leeds Dec 19 16:48:15 I440r: yeah, fuck Google man, all their fault! Dec 19 16:48:39 Leeds, yes extending ListActivity, lol Dec 19 16:48:56 jaami-win: read the docs for ListActivity... carefully. Dec 19 16:49:10 yeh, if i learn how,to fuk google i would love to do that on TV Dec 19 16:49:30 wut Dec 19 16:49:37 sarcasm, so hard to spot on IRC... Dec 19 16:49:39 * Leeds -> shower Dec 19 17:00:27 What's up guys? I am having a problem keeping cookies using http client after I close the app and open again, can someone help me? Dec 19 17:00:37 i am a beginner in android development. can sbd recomend me a nice resource with tutorial to get data from a mysql table Dec 19 17:01:24 A mysql table? Is this a table in a database on a web server? Dec 19 17:01:54 Estel, yes... bt for now it is localhost apache server Dec 19 17:03:24 hawa: you'll probably want to define some restful interface that the app can interact with Dec 19 17:04:28 Estel, i just want to connect my android app with mysql table for user login... what's a "restful interface"??? Dec 19 17:06:36 hawa: well, Android isn't aware of your server, or mysql, or what mysql even is. What your website can do is load a URL (http://10.0.0.2/api/login, or whatever) and receive a response to indicate whether login was successful or not. Dec 19 17:07:11 jaami-win: all working now? Dec 19 17:07:49 oh thanks for asking Leeds Dec 19 17:08:09 Estel, tnx... Dec 19 17:08:26 hawa: but it's a bit of a rabbit hole. What are you trying to build? Dec 19 17:08:37 i don know how my listview in xml will be filled from main java file. Dec 19 17:09:26 the R.layout. does not bring up my listview id from xml file Dec 19 17:09:41 neither does R.id. Dec 19 17:10:13 jaami-win: did you go re-read the ListActivity docs? Dec 19 17:10:18 this is the confusing point. if you can help me to understand that Dec 19 17:11:35 no , i cant understand from docs. i think someone should help me. that will be great favor Dec 19 17:12:08 let's try again... Dec 19 17:12:12 what is the error message? Dec 19 17:12:33 Your content must have a ListView whose id attribute is 'android.R.id.list' Dec 19 17:13:03 Estel, I am building a bank account management app... there's a table for a/c name and password... now i made the interface for login and inserted it in variable... i need a way to connect to the db so i can verify the login... Dec 19 17:13:05 right, and do you see anything in the docs which says anything similar? Dec 19 17:14:35 ok, but that will take time to read. i amafraid you will leave by then. can you wait plz Dec 19 17:15:00 how long does it take to read 3 paragraphs? Dec 19 17:15:08 lol, Dec 19 17:15:30 that wasn't a joke... Dec 19 17:15:51 someone told me not to follow guide at dev android because i need very basic things to understand so thats not good starting point Dec 19 17:15:55 yes, Dec 19 17:16:01 that person was dumb Dec 19 17:16:03 just a minute, im serious Dec 19 17:16:22 hmm, he is here reading our chat :) Dec 19 17:16:48 i mean in this channel, anyway, just a second im reading Dec 19 17:16:49 hawa: building a whole backend is a non-trivial bit of work. If you want to make an app, have you considered looking at a BaaS such as Parse? Dec 19 17:17:43 Estel, wat's a Baas(Parse)??? can you recommend a resource??? Dec 19 17:18:17 Parse.com Dec 19 17:18:44 basically it's a service that saves you the hassle of making your own secure backend server thing Dec 19 17:19:08 Estel, tnx a lot... i'll look into it... Dec 19 17:19:09 Estel: and it's owned by Facebook... Dec 19 17:19:27 Yeah sure. Dec 19 17:19:52 erm, was that a sarcastic "yeah sure"? Dec 19 17:19:59 I just can't tell anymore Dec 19 17:20:12 Not that time. Dec 19 17:20:52 is there a shortcut in IDEA to create a new file in a specific folder or package or whatever? ctrl+alt+inseert is cool if you're already in the package but.. Dec 19 17:21:07 hawa: if you don't like Facebook controlling your backend, Google will show you multiple alternatives (but most of them aren't as good). Dec 19 17:21:44 I'd rather create my own backend than use parse. Dec 19 17:21:55 jaami-win: that's 5 minutes Dec 19 17:22:04 http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews Dec 19 17:22:10 O_O Dec 19 17:22:31 building layouts with adapter, i followed the example and the code did not work for me Dec 19 17:22:33 Ahmad96: I guess it's about weighing up resources and business decisions. Particularly for prototyping, I find Parse really really good. Dec 19 17:22:41 and what the *FUCK* does that have to do with the docs for ListActivity? Dec 19 17:22:50 oops Dec 19 17:22:54 * Leeds done Dec 19 17:23:00 wait plz Dec 19 17:23:16 just 5 minutes Dec 19 17:23:40 hey all X) Dec 19 17:24:02 Leeds: I'm unsure if you're determined to only teach correctly rather than spoonfeed, or just plain bloody-minded. Dec 19 17:24:15 Estel: bit of both Dec 19 17:24:21 any way to get the play store/services on an emulator without transferring rooted apk's?? Dec 19 17:24:21 particularly at 1:30am Dec 19 17:25:13 Estel, well... i'd just want to learn... nth commercial thing... i hav the backend ready... i just need a means to access it from my app... Dec 19 17:25:24 Estel: to be honest, by this point it's usually the case that either I've given up, or someone else has got bored and just given the answer Dec 19 17:26:33 hawa: you don't have a backend if you don't have an interface for the app to communicate with. If you want to build it yourself, search for a tutorial on building a restful api for php (which I assume you're using) Dec 19 17:26:46 hi room Dec 19 17:27:16 http://developer.android.com/training/basics/actionbar/styling.html doesn't work for me, i have to use AppCompat ALWAYS.. is this how it should work?? Dec 19 17:27:26 Leeds: the latter depends on how amusing it is. Dec 19 17:27:43 Estel: gone far past amusing Dec 19 17:27:59 jaami-win: have you even found the right docs yet? Dec 19 17:28:04 j4hr0m, if you're using appcompat and actionbaractivity, then you have to use AppCompat Dec 19 17:28:05 period Dec 19 17:28:20 http://developer.android.com/reference/android/app/ListActivity.html Dec 19 17:28:26 Estel, i'd be grateful if you recommend one... Dec 19 17:28:53 Leeds, that took 5 minutes but i think thats right place Dec 19 17:29:01 hawa: none I have experience with, sorry. http://coreymaynard.com/blog/creating-a-restful-api-with-php/ is the first result and looks sane Dec 19 17:29:15 jaami-win: it took 5 minutes to put "ListActivity" into the search box? Dec 19 17:29:20 argh... really, done now Dec 19 17:29:24 pfn: i am using it only, if the device needs it, means i test for TargetApi, but even on API 19 devices i have to use AppCompat, otherwise it crashes Dec 19 17:29:27 Estel, dhanyabaad... tnx... Dec 19 17:29:51 if you're using ActionBarActivity, you /have/ to use AppCompat themes Dec 19 17:30:01 how are you testing for target api Dec 19 17:30:04 actually, i had to turn on javascript and bing did not return actual link unless i put dev before android Dec 19 17:30:07 do you have 2 activities and launch one or the other? Dec 19 17:30:30 listactivity? people use that? Dec 19 17:30:41 pfn: i have a base activity, that extends ActionBarActivity Dec 19 17:30:54 then the answer remains unchanged Dec 19 17:30:58 you /must/ use AppCompat themex Dec 19 17:31:00 right, I need to go read some comments on crackberry to cheer me up before bed Dec 19 17:31:16 Sounds riveting. Dec 19 17:31:30 pfn is there no other way to add an ActionBar? Dec 19 17:31:44 what do you mean is there no other way Dec 19 17:31:48 if you don't use appcompat Dec 19 17:31:48 j4hr0m: What do you want to do that you can't? Dec 19 17:31:50 Estel: they're hilarious sometimes :) Dec 19 17:31:52 then you have an actionbar on 3.0+ Dec 19 17:32:24 why even bother supporting 2.0-2.3 these days Dec 19 17:32:27 for a new app Dec 19 17:32:28 i want to use AppCompat only for the deivces for API 7 and the regular Holo for API >11 Dec 19 17:32:50 if you use appcompat, you must use appcompat completely Dec 19 17:33:03 unless you want to have 2 separate activity trees, one with appcompat and one without Dec 19 17:33:20 i dont think if layout for row has to be defined. i think default layout should work if there is any. btw, i did not define any row layout Dec 19 17:33:29 API >11 uses ActionBarActivity as well, doesn't it? Dec 19 17:33:51 Yes, if that's the activity it's running Dec 19 17:34:17 means, i then have to use AppCompat as well? even if this should be supporting API 7+ Dec 19 17:34:54 it seems, if i would support API >11 i still need to use appcompat Dec 19 17:35:07 j4hr0m, no, api11 does not use actionbaractivity Dec 19 17:35:19 ahh ok Dec 19 17:35:24 jaami-win: how did you get onto rows? Your error message said that the listview in your xml file needs to have the id @android:id/list if you're using a ListActivity Dec 19 17:35:24 why would it... Dec 19 17:35:30 Did you change the listview's ID yet? Dec 19 17:35:30 thats what i wanted to know Dec 19 17:35:34 thanks a lot pfn Dec 19 17:35:39 and for that matter, there's like no usage of api 11 or 12 anymore really Dec 19 17:35:57 either those tablets got thrown away, or people managed to update to ics or later Dec 19 17:36:22 yes, so i should copy paste that in xml? Leeds Dec 19 17:36:29 I think I have a 3.1 tablet sitting around in a drawer somewhere Dec 19 17:36:49 Estel, yes, no usage thereof :p Dec 19 17:36:51 jaami-win: all you need to do is make sure your XML contains a listview with that ID. Dec 19 17:36:52 then why all the values-vXX folders in res, if the styles and themes all look the same? Dec 19 17:37:03 Does Android Developer Tools IDE include a GUI designer somewhere? Dec 19 17:37:09 j4hr0m, look at them and see Dec 19 17:37:13 Estel: ha ha, you lose the game :) Dec 19 17:37:20 i see, thanks Dec 19 17:37:26 Leeds: :'( Dec 19 17:37:41 no problem, teachers always win, and im not teacher.. lol Dec 19 17:37:52 they are all the same, except from using android:background and only background Dec 19 17:37:59 somehow crappy Dec 19 17:38:51 i will investigate further, thanks for thy help Dec 19 17:39:06 gingerbread and froyo are down to ~25% market share Dec 19 17:39:11 can practically ignore them now Dec 19 17:39:26 yeah, that's only like 300 million devices Dec 19 17:39:46 pfn: depends if the pie is getting bigger faster than the share is shrinking. Dec 19 17:40:25 pfn what did you mean by the 2 activity trees? Dec 19 17:40:32 how would you implement this? Dec 19 17:40:57 one tree inheriting from actionbaractivity Dec 19 17:40:57 one not Dec 19 17:41:34 hmm interesting... Dec 19 17:41:34 j4hr0m: if (API > 11) { startActivity( JELLYListActivity ) } else { startActivity ( OLDListActivity ) } Dec 19 17:41:37 don't do it >_> Dec 19 17:42:17 Estel: why not? Dec 19 17:42:50 why can i only run a debug session on my app 2 or 3 times using the same emulator before it stops working? Dec 19 17:43:12 i mean the emulator is working but the new debug doesnt seem to install the updated apk and connect to the debugger after 2 or 3 goes Dec 19 17:47:15 Estel, is there no design pattern to get this handeled? Dec 19 17:47:30 so that i don't need to have duplicate code Dec 19 17:48:21 I have modified my kernel, how can I rebuild it. When I tell make to rebuild the 'kernel' target, my changes do not get recompiled. The file I modified should be recompiled, instead I get 'make: Nothing to be done for `kernel' Dec 19 17:48:46 j4hr0m: not that I know of. The Android guys would just say to use AppCompat everywhere. Dec 19 17:49:08 enferex: try #android-root Dec 19 17:49:32 Estel: thx Dec 19 17:49:34 Estel: ok thanks Dec 19 17:49:37 :) Dec 19 17:50:58 is there some source about possible YouTube video URL Dec 19 17:51:16 eg youtube.com/watch?v={id} Dec 19 17:51:33 youtube.com/embed/v/{id} Dec 19 17:51:55 dont know why i am not getting listview id in my java file when i type R.id. what i should inject in place of ?????? http://pastebin.com/mQ4CJNiZ Dec 19 17:52:18 I wanted to know about all possible ways to access/view a YouTube video Dec 19 17:53:22 Hey guys, my onActivityResult() method doesn't get called if I press the 'up' button in my app, any way to fix this? Dec 19 17:53:30 It does get called if I press back or call finish() though Dec 19 17:53:30 the id from xml file s not recognized in java file. plz help me here now Dec 19 17:53:49 jaami-win: can you send me your xml? Dec 19 17:53:55 via pastebin Dec 19 17:54:05 yes its there i the link i gave http://pastebin.com/mQ4CJNiZ Dec 19 17:54:16 just scrolldown Dec 19 17:54:18 jaami-win: the second argument should be the xml of a layout file. Use android.R.layout.simple_list_item_1, perhaps? Dec 19 17:54:20 I only just joined the channel, appologies Dec 19 17:54:42 jaami-win: also, your ListView doesn't have the correct id. Dec 19 17:54:57 Estel, that i guess did not work i do it again, just a second Dec 19 17:55:01 oh ok? Dec 19 17:55:02 jaami-win: Dec 19 17:55:12 You can't use id="@+id/foodCodesList" with a ListActivity Dec 19 17:55:14 you don't even have your listview defined Dec 19 17:55:25 you're doing 'adapter.setAdapter(adapter);' Dec 19 17:55:30 ..You realize what that does right? Dec 19 17:55:36 soryr rahter Dec 19 17:55:42 oh wait I'm dumb Dec 19 17:55:46 Misread that line Dec 19 17:55:55 adpter links to data and then adapter is set ti listview Dec 19 17:56:06 yeah I didn't realize this was a listactivity Dec 19 17:56:08 hang on Dec 19 17:56:15 im totally confused Dec 19 17:56:18 ok, Dec 19 17:57:24 Do me a favor and tell me what happens if you set your lists id to @android:id/list Dec 19 17:57:31 Estel, what id should work then, plz also give me easy guide/tutorial link Dec 19 17:57:47 http://developer.android.com/reference/android/app/ListActivity.html Dec 19 17:57:59 Reading documentation is usually a good place to start Dec 19 17:58:05 hmm, i did not set that in xml ollienx , should i do that now Dec 19 17:58:11 * Leeds fails to avoid rofling Dec 19 17:58:11 yes Dec 19 17:58:20 ok, just a minute plz Dec 19 17:58:38 Leeds: go crackberry xD Dec 19 17:58:46 change android:id="@+id/foodCodesList" to android:id="@android:id/list" Dec 19 17:58:50 Estel: that too :) Dec 19 17:59:49 jaami-win: you should consider getting a Treehouse subscription and doing the app tutorial there, it might be easier to follow. Dec 19 17:59:50 shmooz Dec 19 18:00:20 any way to get the play store/services on an emulator without transferring rooted apk's?? Dec 19 18:00:33 lacx: bluestacks? Dec 19 18:00:52 never heard of it ollienx ? Dec 19 18:01:08 whats tht? X) Dec 19 18:01:21 http://www.bluestacks.com/ Dec 19 18:01:32 specifically AppPlayer Dec 19 18:01:44 Estel, i wont ignore that either, :) Dec 19 18:01:55 jaami-win: did that work? Dec 19 18:01:57 for Linux ollienx? Dec 19 18:02:28 i changed the xml, but what i should type in java after R.id ? ollienx Dec 19 18:02:44 you should change to to android.R.id.simple_list_item_1 Dec 19 18:03:08 ollienx: android.R.layout.simple_list_item_1 Dec 19 18:03:23 yeah, was reciting from memory, my ide usually corrects me on that Dec 19 18:04:03 lacx: no idea, let me take a look Dec 19 18:06:09 Could someone help me with this? my onActivityResult is called when I press the back button or type finish() but not if I press my activities up button Dec 19 18:06:33 still need some more fixing because of error on this line ArrayAdapter adapter = new ArrayAdapter(this, android.R.id.simple_list_item_1, ecodes); Dec 19 18:06:47 it should be android.R.layout Dec 19 18:06:49 I made a mistake Dec 19 18:07:02 ok, i change it np Dec 19 18:09:14 ollienx, Estel and Leeds now you see google is not easy to understand? Dec 19 18:09:27 your magic worked !!!!! Dec 19 18:09:32 it's easy to understand if you read documentation Dec 19 18:09:38 wondefull Dec 19 18:09:45 rtfm Dec 19 18:09:51 jaami-win: excuse me, but may I ask, is english your first language? Dec 19 18:10:23 punjabi Dec 19 18:10:31 then urdu Dec 19 18:10:43 and on 3rd level is English Dec 19 18:10:50 ah ok Dec 19 18:11:00 lol, what ok? Dec 19 18:11:30 Ah shoes understanding Dec 19 18:11:31 like Dec 19 18:11:32 *shows Dec 19 18:11:41 oh great ollienx Dec 19 18:11:55 you are good man among zombies Dec 19 18:12:04 ..what? Dec 19 18:12:22 * sonOfRa braaaaaaaaains Dec 19 18:12:30 you did not tap on andriod version in your mobile? Dec 19 18:12:34 * ollienx demands more brains Dec 19 18:12:46 jaami-win: it changes per android version Dec 19 18:12:57 oh, i c, Dec 19 18:13:01 which version are you referring to? Dec 19 18:13:08 4.0 Dec 19 18:13:17 also 2.3 Dec 19 18:13:22 Ah yeah, I wouldn't exactly call those ... zombies Dec 19 18:13:31 they're the android logo which is a robot, flying Dec 19 18:13:36 ollienx, its Win/OSX only Dec 19 18:13:51 lacx: Yeah, I can't seem to find a linux alternative Dec 19 18:13:59 You could try Wine? Dec 19 18:14:34 robot flying? no, no... the pic is robot talking on mobile and srounded by many zombies Dec 19 18:15:07 id rather not, but thanks anyway ollienx X) Dec 19 18:15:18 not in 4.0 Dec 19 18:15:27 I haven't seen the one on 2.3, one moment Dec 19 18:16:01 Oh I see Dec 19 18:16:21 I've never owned an android phone before version 4.0, so I hadn't seen the 2.3 easter egg Dec 19 18:17:11 my android app is almost about to hit 2000 current installs :D Dec 19 18:17:17 sometime there is timeout error when build and deploy, there must be way to wake up emulator. i forgot the command. can you tell me the command Dec 19 18:17:18 penguinmeisie: nice! Dec 19 18:17:20 can I see it? Dec 19 18:17:34 jaami-win: click inside the emulator? Dec 19 18:17:44 ok, thanks Dec 19 18:17:47 ollienx, it's not much, really Dec 19 18:17:53 hey, an app is an app! Dec 19 18:18:04 yes, i clicked but it did not work, i try again Dec 19 18:18:55 yes, same timeout error Dec 19 18:18:59 no idea Dec 19 18:19:47 np, i check my bing Dec 19 18:19:56 :) Dec 19 18:20:32 ollienx: https://play.google.com/store/apps/details?id=net.lobant.coolfarenheit.listenlive Dec 19 18:20:57 ollienx, it's for a thai radio station, so I don't know how useful it will be for you Dec 19 18:21:01 aaah ok Dec 19 18:21:07 Yeah I don't speak thai :P Dec 19 18:21:16 there are other radio stations too Dec 19 18:21:34 but that's the most downloaded one Dec 19 18:22:04 if you make a request, I'll release one for whatever station you want :) Dec 19 18:24:33 hey all Dec 19 18:25:55 stackoverflow answer the timeout error Window -> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms) Dec 19 18:25:56 I am trying jetBrains Idea IDE and I see error like: "Ambiguous method call. Both" in one line but I am still able to run app Dec 19 18:26:11 why can I run app if IDE is highlighting an error?? Dec 19 18:28:22 I have a main activity that is a FragmentActivity. I have a pager with fragments and listeners in all the fragments that are updating properly. My question is, what FragmentActivity method do I implement to initialize the first tab that shows, before the user touches the screen? Dec 19 18:29:29 ok, youtube video url could be Dec 19 18:29:44 youtube.com/watch?v={id} Dec 19 18:29:53 youtube.com/v/{id} Dec 19 18:29:59 Anyone here that's using IntelliJ IDEA 13.0?.. Dec 19 18:30:23 osmij_, sure Dec 19 18:30:37 youtube.com/embed/{id} Dec 19 18:31:07 youtube.com/apiplayer?video_id={id} Dec 19 18:31:26 any variant I may have missed ? ? Dec 19 18:31:52 Eclipse does not highlight this line of code as error. IntelliJ IDEA does highlight this line as error but still makes app and uploads it to device and runs app. The error is: https://db.tt/Df7lM7vK My question is: Is that normal? Dec 19 18:33:43 *just switched to IntelliJ IDEA from Eclipse, because of a ... for no reason all my projects stoppped showing in Eclipse... again... Dec 19 18:34:14 everything feels really weird in IntelliJ IDEA O_O Dec 19 18:39:59 seems like some kind of intellij bug Dec 19 18:40:28 hello Dec 19 18:40:29 anyone here Dec 19 18:41:34 nope Dec 19 18:42:09 hmm, Dec 19 18:42:10 how to launch avd manger if its icon is gone from toolbar? Dec 19 18:42:23 I just have a pretty quick question Dec 19 18:45:48 questio? Dec 19 18:46:01 question? Dec 19 18:46:05 osmij_, you have 2 core libraries included in your project Dec 19 18:46:09 is why you get said error Dec 19 18:46:28 like java rt.jar and android.jar, or 2 versions of android.jar Dec 19 18:47:06 pfn: I don't Dec 19 18:47:49 pfn: or wait, perhaps I do... Where do I check that?? Dec 19 18:47:57 under external libraries Dec 19 18:49:09 there are: android.jar; annotations.jar and res Dec 19 18:49:41 only that? Dec 19 18:50:37 * pfn shrugs Dec 19 18:50:54 pfn: yep, https://db.tt/BV90wrD3 Dec 19 18:51:35 maybe internal libraries then, in project structure/modules Dec 19 18:52:00 in any case, the error is because you have platform libraries included in duplicate Dec 19 18:52:30 pfn: where do I find structure/modules ? Dec 19 18:52:42 in the menu... Dec 19 18:54:19 oh found it. I have my project there that has "Android" and a library-project that I use in my project and it also has "Android facet" Dec 19 18:56:35 What's a "facet"? Dec 19 18:56:52 just means the project builds with android Dec 19 18:58:03 It's just intellij being dumb Dec 19 18:58:11 There's the same issue with e.g. getClass Dec 19 18:59:07 Anyone know how to call an ADB command from an app? Dec 19 18:59:13 exec adb Dec 19 18:59:17 Thanks. Dec 19 18:59:21 same as you would anything else on the command line... Dec 19 18:59:42 So if I want to run, for example, the screen recorder command, I would run "exec adb screenrecord --options"? Dec 19 18:59:57 no Dec 19 19:00:05 you would exec it in the appropriate manner from java Dec 19 19:00:08 Okay. Dec 19 19:00:12 Thanks for the help. Dec 19 19:00:14 I have to go now. Dec 19 19:00:15 Bye. Dec 19 19:00:29 what happened Dec 19 19:07:21 why is it that the only R.java i have is the stubb produced by intellij idea? Dec 19 19:07:25 i have no R.java Dec 19 19:08:57 thanks , listview was big problem you guys solved. thanks and good night Dec 19 19:11:19 why do i not have an R.java? Dec 19 19:11:42 i mean... my code references R.java.blah and its working but there is NO R.java file in gen/ Dec 19 19:11:50 other than the empty stubb made by intellij idea Dec 19 19:13:57 IntelliJ IDEA is too smart for me, I guess... Well gonna re-import around 100 projects into Ecplipse, that's fun! Dec 19 19:15:17 i would seriously hate to have to do that lol Dec 19 19:19:00 well, if you can't make it work - go to sleep. Nighty night! ^_^ Dec 19 19:19:45 To support old Android versions or not... Dec 19 19:23:32 I440r: Are you using eclipse or android studio? Dec 19 19:27:11 intellij idea Dec 19 19:27:17 community Dec 19 19:33:10 Unable to resume activity {com.reality.retrorpg/com.reality.retrorpg.retrorpg}: java.lang.ClassCastException: com.blah.blah.blah cannot be cast to android.widget.ImageView Dec 19 19:33:33 i have a custom tag in my main.xml Dec 19 19:33:44 well i have two of them actually, one works but the other one throws a fit Dec 19 19:47:32 autrilla: depends on your market Dec 19 20:06:21 why is it so hard to find a junior android role in london? Dec 19 20:07:21 CocoStorm: where ae you looking Dec 19 20:07:46 I kind of doubt that its hard. Dec 19 20:08:04 cwjobs, reed.co.uk, monster, workinstartups.com, silicon milkroundabout, milkround Dec 19 20:08:28 linkedin has some mailinhg lists / forums for UK / EU etc Dec 19 20:08:29 also Dec 19 20:08:39 I see a lot of ads Dec 19 20:09:08 I bet they're mainly for android developers with some experience Dec 19 20:09:16 well yeah... Dec 19 20:09:18 <_< Dec 19 20:09:23 get some experience! Dec 19 20:09:25 How much experience can you demonstrate? Dec 19 20:09:33 most of thats like Do you have apps in teh store etc Dec 19 20:09:38 nobody wants to babysit juniors Dec 19 20:09:42 I do Dec 19 20:09:45 its fun Dec 19 20:09:48 I have apps in the store Dec 19 20:09:58 but they always ask for previous work experience Dec 19 20:10:05 Have you applied anyway? Dec 19 20:10:05 ( ok so I like teaching… anyhow ) Dec 19 20:10:29 Well show your apps in the store.. I see many many ads asking for just that and not just at start ups. Dec 19 20:10:39 I'd love to babysit a junior if it means I get away with not having to do as uch work :P Dec 19 20:10:58 teaching is fun and all, but when you have deadline you need people that know their stuff Dec 19 20:11:14 mostly when you babysit someone with deadlines you end up doing more work, not less... Dec 19 20:11:32 ha Dec 19 20:11:36 yeh i guess Dec 19 20:13:27 CocoStorm: have you trawled lists of london agencies? Dec 19 20:14:05 Estel, ya sort of Dec 19 20:14:09 I think Dec 19 20:14:27 Sending a prospective application to the huger ones like Mubaloo is always worthwhile. Dec 19 20:14:50 Given they seem to have huge staff turnover. Dec 19 20:14:57 I'll give it a shot :) Dec 19 20:15:44 thanks Estel Dec 19 20:15:45 Huger can't be a word, it looks wrong in every way. Dec 19 20:18:19 It seems the line "Intent intent = new Intent(this, DisplayMessageActivity.class);" from first part of Android App Development documentation doesn't compile. Dec 19 20:18:35 jubale: what's the error? Dec 19 20:18:39 How can you tell how large a UDP response is without have to casting the size initially Dec 19 20:19:00 DisplayMessageActivity cannot be resolved to a type Dec 19 20:19:33 ... do you have a class called DisplayMessageActivity? Dec 19 20:21:02 Yes, but I had it named wrong. Dec 19 20:21:12 Now "Intent intent = getIntent();" doesn't work. Dec 19 20:22:07 CocoStorm: oh, make sure you job search on twitter, too. Most jobs ever get posted on twitter now. Dec 19 20:23:36 really? haha Dec 19 20:23:38 that's crazy :P Dec 19 20:23:51 Yeah, I'm confused. Dec 19 20:24:02 Yeah, agencies post there, recruiters spam there Dec 19 20:24:04 I really want to learn to develop for Android. Dec 19 20:24:20 The main problem is varying and choosing the keywords Dec 19 20:32:14 jubale, what are you confused about? Dec 19 20:32:50 Estel, Yeah I've found a couple. I think the main problem is understanding where they are located :) Dec 19 20:43:54 Why the code isn't working, since it's provided by documentation. Dec 19 20:54:24 Can I initialize an Array of pairs inline, like: Pair[] prWeights = new Pair({1 ,"lbs"},{2 ,"kg"}); Dec 19 20:54:48 if so, how? I'v etried every way I know Dec 19 20:55:19 the only way the work is a loop, but I'm trying ti initialize it inline in the constructor of another object Dec 19 20:59:55 new Pair[] { new Pair(..), new Pair(..) }; Dec 19 20:59:58 does libart.so (the new ART runtime) have a proper bugzilla? Dec 19 21:00:09 or should i use https://code.google.com/p/android/issues/list Dec 19 21:02:02 Hi. I have a ListView which data is controlled by a BaseAdapter. Now when someone clicks on a actionbar button, I want to hide some elements in the list. Dec 19 21:02:18 I figured out that I can modify the getCount() and getItem() methods of the BaseAdapter to do this Dec 19 21:02:37 But how can I set e.g. a boolean variable in my BaseAdapter? Dec 19 21:03:57 Brilliant, thank you SimonVT Dec 19 21:06:19 ahh, screw cooking. takeaway o'clockl Dec 19 21:15:47 Can anyone help with Error Code: -1073741819 ? Dec 19 21:22:48 can anyone tell me why every so often ^c ^v ^x stop working in intellij idea community edition? Dec 19 21:23:44 I haven't encountered that (although I mostly use ultimate) Dec 19 21:25:53 The only reason I use intelliJ is because it looks pretty cool. Otherwise it sucks dick, but only because I don't undrestand it Dec 19 21:25:57 the explorer on the left confuses me Dec 19 21:26:03 lol Dec 19 21:26:10 intellij isnt that hard to pick up Dec 19 21:26:21 I'm having dejavu Dec 19 21:26:30 didn't you say the exact same thing to me before :S Dec 19 21:26:36 prety sure Dec 19 21:26:39 lol Dec 19 21:26:55 I don't understand why I just can't see my packages on the left Dec 19 21:26:57 guys, isn't it correct to combine flags with the "|" OR operator ? Dec 19 21:27:05 I see the only project I'm working on Dec 19 21:27:42 darken: how else would you combine them? Dec 19 21:28:05 i wouldn't know, but I'm getting some weird results when using getInstalledPackages" Dec 19 21:28:15 I guess you could add, but that would have unintended consequences if there are ever duplicate bits set on multiple flag values. Dec 19 21:28:50 I can't reproduce it, but ive got some logs from a user Dec 19 21:29:18 getInstalledPackages( Dec 19 21:29:18 PackageManager.GET_UNINSTALLED_PACKAGES | PackageManager.GET_META_DATA | PackageManager.GET_RECEIVERS) doesn't correctly return the ENABLED state of the apps Dec 19 21:29:40 is there a combination of flags that is incompatible that I'm unaware of? Dec 19 21:31:15 darken, http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledPackages%28int%29 Dec 19 21:31:57 EPG, i know that, or are you saying, that the data is not added, but the flags reduce returned data? Dec 19 21:31:59 there's no PackageManager.GET_META_DATA mentioned Dec 19 21:32:08 ohwhat? Dec 19 21:32:09 might that be an issue?> Dec 19 21:33:50 EPG, possible, didn't notice that, thanks, though that this extra flag causes a field of the returned data to be incorrect, that would be weird, wouldn't it? Dec 19 21:33:59 darken, can you elaborate on "weird results"? Dec 19 21:34:14 applicationInfo.enabled is incorrect Dec 19 21:34:19 it says enabled, when it isnt Dec 19 21:35:56 yeah, it would be weird and I don't see any other (valid) flag with the same value so I'd guess it is simply ignored Dec 19 21:36:31 the user tells me a previous version of my code works correctly Dec 19 21:36:52 the previous version has an error though, it uses getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKAGES & PackageManager.GET_META_DATA) Dec 19 21:37:26 which results to flags=0, but how does that cause the "enabled" state to be incorrect Dec 19 21:37:38 where do we file bugs for ART? Dec 19 21:38:26 EPG, weird thing is it doesn't happen on my devices, so it's ROM related,!? Dec 19 21:39:45 so that flag "128" is used on his ROM for some wtf reason Dec 19 21:41:01 I have no experience with ApplicationInfo but I think it might also be related to the (un)installed apps in general Dec 19 21:43:29 doesn't explain the wrong return value though Dec 19 21:43:40 as the system in general recognizes the enabled state correctly Dec 19 21:43:58 when should applicationInfo.enabled be false? if the app was uninstalled? Dec 19 21:44:44 EPG: you can "disable" an application in the application info screen in settings Dec 19 21:45:18 it's basically a "soft uninstall". The apk (and I think the data) is still there, but the apk can't actually do anything, and no icons are shown, etc. Dec 19 21:46:47 JesusFreke, thanks, I remember. But I've only seen this for pre-installed apps (google apps etc.), is there no option for user-installed apps? Dec 19 21:47:44 oh, hmm. Dec 19 21:47:48 that I'm not sure about Dec 19 21:48:12 If it's not possible via the settings UI, it still might be possible to manually disable them, using the pm command directly. I'm not sure Dec 19 21:48:15 hwrd|work: i'm assuming the normal Android issue tracker for ART bugs, as i have no other ideas Dec 19 21:48:41 jonp: Yeah, that seems to be the case Dec 19 21:48:42 any estimate on how long it'll take to fix JNI weak references under ART? https://code.google.com/p/android/issues/detail?id=63929 Dec 19 21:50:53 JesusFreke, yes, it works via pm. However, the (user) app then disappears from Settings->Apps Dec 19 21:51:05 Ah Dec 19 21:58:11 this is probably a stupid question, but if I've got a list of times in timzone X, and I want to read & display them into whatever timezone is local to the phone, what's the most sensible way of doing that? Dec 19 22:07:31 "Free Software Foundation (FSF) today awarded Respects Your Freedom (RYF) certification to Gluglug X60 laptops" i think thats a pretty cool certification. I wonder if there are any smartphones that qould qualify (i'm guessing not). but one can hope someday Dec 19 22:11:06 How can I integrate this: http://android-holo-colors.com/ into Android Studio? Dec 19 22:12:04 JesusFreke do you know how to order the items in the "Structure" pane /as they are defined/ ? according to the docs, if i don't have any order specified it should be that way Dec 19 22:12:45 nope :) Dec 19 22:12:51 i dont have "sort by visability" or "sort alphabetically" on, in other words . Dec 19 22:12:52 ugh ! Dec 19 22:13:01 whats the behavior you see ? Dec 19 22:13:14 its like some fucking random order, just to piss me off Dec 19 22:14:19 g00s: hmm. it seems like it's in the "as-defined" order for me Dec 19 22:14:32 except that all methods are before all fields Dec 19 22:14:52 JesusFreke you use plain intellij though, right ? Dec 19 22:14:57 yep Dec 19 22:15:08 still on 12 too, here at work at least Dec 19 22:16:36 I pretty much never use the structure view anyway Dec 19 22:17:27 hm, i use it a lot for longer files, since when you click on it your editor should go there Dec 19 22:17:58 well, i would use it a lot. i did in eclipse, worked nicely there Dec 19 22:18:17 I usually just enable the members in the project view, if I need that Dec 19 22:18:46 o, let me find that Dec 19 22:19:16 damn it, the order is wrong there too (same as structure) Dec 19 22:19:23 heh Dec 19 22:33:51 are there any good twitter apis for android Dec 19 22:38:33 API 2.0? Dec 19 22:38:54 storkme, http://lmgtfy.com/?q=android+twitter+api Dec 19 22:38:54 not that I know of, but the new api came out a week or two ago, there might not be anything available yet Dec 19 22:39:17 thanks autrilla that's really helpful, got anything to add Dec 19 22:39:37 storkme, no, nothing else Dec 19 22:39:46 You are welcome Dec 19 22:39:56 maybe you should just keep quiet in future if you've got nothing useful to say. Dec 19 22:40:09 storkme, what I said is pretty useful Dec 19 22:40:17 whatever. Dec 19 22:40:49 storkme, https://temboo.com/library/Library/Twitter/ https://github.com/twitter/hbc http://twitter4j.org/ Dec 19 22:41:05 That answers "are there any good twitter apis for android" Dec 19 22:41:35 not really, it just gives me some avenues to research into, which isn't what I asked for Dec 19 22:42:12 storkme, do you want me to spoonfeed it? Dec 19 22:42:28 Because twitter4j is a good twitter api for Android Dec 19 22:42:41 what I really wanted was for somebody here who's used one or more of these APIs to recount their experiences with using any of these APIs and hopefully save me having to do many many hours of research. Dec 19 22:43:19 storkme, then you phrased your question wrong. twitter4j works fine Dec 19 22:44:56 this was fun let's do this again some time. Dec 19 22:49:14 might just go with scribe & roll my own, I only need basic features (reading a twitter stream) Dec 19 23:01:39 I have an AutoCompleteTextView field that I want to populate with an ArrayAdapter of Pairs, vs strings or some other more primitive type. When the user types, then ultimately chhose an item in the list, I'd like to return pair.second, which is a code, not the text, which is pair.first Dec 19 23:02:39 does that make sense? Ive got the ArrayAdapter of Pairs loaded fine, but when i type in the editview that the autocomplete is bound to, nothing happens Dec 19 23:03:20 so essentially the textview ends up acting more like a spinner, but allowing the user to type and enter an item that may not be in the list Dec 19 23:05:37 storkme, to answer your original question: I have used twitter4j and it works fine Dec 19 23:05:43 does that help? Dec 19 23:06:06 i appreciate your input thanks Dec 19 23:12:25 interesting. I wonder whether AutoCompleteTextView effectively constraints the text entered to be prefixes of the available completions Dec 19 23:14:12 I suppose you could always go "after the fact" and replace the text with something else; but in both cases doesn't it seem as though the UI behaviour would get a bit odd? eg: I type in part of a state - it shows me expansions - I select something - and the text suddenly turns into a two-letter code Dec 19 23:18:24 kbs, if you are referring to my question, I'm stepping through right now to see what's happening, but when I type in the field, I'm not getting errors, but I'm also not getting any matches Dec 19 23:18:55 I believe I'm going to have to add code that tries to match against the proper element in the pair, which in my case is PAir.first Dec 19 23:19:10 Does someone know more about the note in the API, http://developer.android.com/reference/android/content/pm/PackageManager.html#GET_UNINSTALLED_PACKAGES , Using this flag may return less information ? It seems to cause getInstalledPackages to return WRONG information. Dec 19 23:19:21 and then return pair.second to actually set the value I need Dec 19 23:20:21 regreddit: I see, okay. I have a feeling I'm missing something subtle you're doing; but maybe someone wiser here might wake up later with ideas if you paste some code somewhere Dec 19 23:20:35 but i don't know exactly what i'm doing Dec 19 23:21:20 thanks - what I have a is a list of name value pairs, and when the user types a name, I want to match against and return the value to my app, not the name Dec 19 23:21:31 and I'm using android.util.Pair to do it Dec 19 23:21:51 to provide the n/v pair structure Dec 19 23:21:59 Oh - so it's a code you want to return to the app; rather than actually fill it into the editable area itself? Dec 19 23:22:04 right Dec 19 23:22:45 If the user picks "Albuterol" from the autocomplete suggestions, I want to set that in the EditView, but I need "123.65" Dec 19 23:22:52 to set in my data model Dec 19 23:23:32 so I load the ArrayAdapter with pairs of "Albuterol",123.65, etc Dec 19 23:24:21 a spinner will dork, but on LARGE lists, it's better UX to let them key in a few characters and autocomplete Dec 19 23:24:29 vs making them scroll forever Dec 19 23:24:41 s/dork/work/ Dec 19 23:25:28 gotcha. So - ArrayAdapter is merely a convenient way to wrap [essentially] a list of strings into a ListAdapter - and in all likelihood, if you're using an ArrayAdapter and hoping that it "works" - probably it just returns toString() on that Pair for the autocomplete suggestions Dec 19 23:25:43 therefore not doing anything interesting or useful :-) Dec 19 23:26:19 I wonder if the least problematic approach might simply be to map the values to the codes outside the AutoCompleteTextView, rather than try to subsume it all within that widget Dec 19 23:26:44 gradle plugin 0.7.1 is out Dec 19 23:26:49 exactly Dec 19 23:26:54 bout fucking time :o Dec 19 23:27:01 did they fix that thing Dec 19 23:27:04 [One thing to note of course, is that AutoCompleteTextView by itself also won't constrain the allowable values, unlike a spinner.] Dec 19 23:27:06 storkme were you having a problem ? Dec 19 23:27:41 kbs, if a spinner would allow you to key in a match, i'd rather use it, but it forces you to scroll Dec 19 23:27:59 and with a list of hundreds of items, that is crappy user experience Dec 19 23:28:09 regreddit: *nod* I understand the constraints I think - just pointing out potential things to address Dec 19 23:28:18 https://code.google.com/p/android/issues/detail?id=61573#c14 this cost me an hour or so at a really bad time (fully accept that it's my own dumb-ass fault for changing my workspace setup ~3 hours before a deadline but it's still irritating :p) Dec 19 23:28:53 even though ultimately the user MUST use one of the suggested items, i'm trying to make my UI a little better Dec 19 23:29:12 storkme also, there are a few updates in the sdk manager for various bits Dec 19 23:29:22 by letting them just key in a few characters to filter the list Dec 19 23:29:23 hope that fixes it :) Dec 19 23:29:38 they mentioned 0.7.1 was going to have a fix, I have faith that it will Dec 19 23:30:10 yeah, but a DSL to exclude files? wtf is this Dec 19 23:41:06 How can I integrate this: http://android-holo-colors.com/ into Android Studio? Dec 19 23:43:52 what do you mean integrate? Dec 19 23:44:31 He wants to find the area underneath it, of course :) Dec 19 23:46:46 Does the VDM bundled with Eclipse allow network dependent apps to be tested or do I need to run on a real device for network connectivity? Dec 19 23:47:25 It has a network connection Dec 19 23:47:40 Ta Dec 19 23:48:04 desmin88, well, get the theme working Dec 19 23:48:11 JesusFreke, not exactly :) Dec 20 00:03:44 Yo yo yo yo Dec 20 00:03:47 What it is Dec 20 00:03:49 how it do Dec 20 00:03:53 #android-dev 4lyfe Dec 20 00:04:12 ————— What version of the java SDK is Dalvik currently built on top of Dec 20 00:04:38 If that is even a valid question.. Dec 20 00:06:43 how do I "control" my nexus 7 from a pc program? Whats the main idea to do that? Dec 20 00:06:56 what do you mean "control"? Dec 20 00:07:13 like restarting it Dec 20 00:07:21 like with ADB? Dec 20 00:07:21 or opening an app Dec 20 00:07:28 oh nevermind Dec 20 00:08:04 ....um, restart = power button. Open an app = press with finger. We clearly need more data on your situation or else you are seriously outmatched by your tablet Dec 20 00:08:07 I don't know anything about it. I'm trying to learn it Dec 20 00:08:16 hahah Dec 20 00:08:32 nullFxn: I want to do those things through a pc program Dec 20 00:08:40 do you mean Dec 20 00:08:47 You want to WRITE a PC PROGRAM to control your android? Dec 20 00:09:02 and perhaps a paired ANDROID PROGRAM that communicates with your PC PROGRAM? Dec 20 00:09:15 nullFxn: I want to write code to do that and I have no idea how it works. I don't know if I have to write an app to do that and than deploy it or if the tablet gives me an interface to do that already Dec 20 00:09:37 f30xp0in0x Dec 20 00:10:02 Wow...um, may I suggest getting the book "Head First for Android Development" I think that may be your best overall solution at the moment. Dec 20 00:10:13 whelp Dec 20 00:10:40 nullFxn: perfect. I was really just looking for some help on where to start. Thanks man Dec 20 00:10:43 explodes, depends on Android Version (Java version= Dec 20 00:10:50 No prob. Best of luck. Dec 20 00:10:58 thanks Dec 20 00:17:55 anyone know which android version caused the 'always use this app' setting to persist across app updates? Dec 20 00:18:11 i know back in gingerbread, that setting used to be cleared when you updated an app that you previously set as the default Dec 20 00:18:16 but in jelly bean it no longer seems to be the case Dec 20 00:28:03 ugh, why did they remove pdf upload from Google Play Books Dec 20 00:33:34 I extend Application and use globals from a service and an activity. Changing the value of a global from activity doesn't affect the global in the service. When I print the app instance from each, I get different values: Activity App@4052ad10, Service App@4052aa80 Dec 20 00:34:15 same values for getApplicationContext. How can the app context be different on a service and an activity? isn't it the same app? Dec 20 00:40:23 damn it. ever since the Kindle update last week, its been slaughtering my battery. first Play Services, now this, seems never ending. apps for android suck ass ! Dec 20 00:42:49 PorterDuff is being a little bitch Dec 20 00:43:04 i'd like android to have a mode where - when you turn it off, the cpu stays the fuck off until you turn it on again Dec 20 00:43:15 I sez to do, quite plainly: Da * (1 - Sa) , Da * Sc Dec 20 00:43:30 what i seem to get is 0, 0 Dec 20 00:43:49 well, 0xff << 24, 0xff << 24 Dec 20 00:44:28 canvas.drawColor(color & 0x00ffffff, PorterDuff.Mode.DST_OUT); Dec 20 00:44:33 I get a nice black box Dec 20 00:45:10 (sorry, without the bitwise operation, i get a nice black box) Dec 20 00:58:41 My Application isn't a singleton and its onCreate is called twice, how is that possible? I'm not using android:process for the service. Dec 20 00:59:54 With porterduff, is INPUT the SOURCE or the DESTINATION? Dec 20 01:06:25 OK guys the problem was that I was using android:process for a receiver, which caused the application to be created twice. Dec 20 01:21:21 Man, I've played with PorterDuffXferMode, PorterDuffColorFilter, drawColor(color, PorterDuff.Mode), drawing color first, then my crop, DST_SRC, DST_IN, SRC_IN, SRC_OUT, I just can't seem to find the right combo for what I want to do. Dec 20 01:23:32 per pixel? Dec 20 01:23:46 can get int[] array then edit it, then put it back Dec 20 01:24:03 per-pixel is not nearly quick enough Dec 20 01:24:17 yeah guess not then Dec 20 01:24:32 I use it to change 1,000 pixel per frame, its quick enough Dec 20 01:24:40 but if you need entire array its slow grind Dec 20 01:26:04 that seems arduous Dec 20 01:26:52 tried 10,000 Dec 20 01:26:55 still very fast Dec 20 01:27:18 actually its bit slow Dec 20 01:28:06 theres huge speed boost between perpixel and pixels Dec 20 01:28:41 is there a DST_SRC? [not that I know much here; but just curious - what's the desired effect, and paste current code?] Dec 20 01:31:23 kbs: no dst_src Dec 20 01:31:49 Here's the modes: http://pastie.org/8564509 Dec 20 01:32:09 heh youre second person to want weird graphics effect Dec 20 01:32:13 first is myself Dec 20 01:32:13 explodes: I know - I was referring to your earlier comment. Dec 20 01:32:19 oh Dec 20 01:32:28 "...crop, DST_SRC, DST_IN, SRC_IN, SRC_OUT, I just..." Dec 20 01:32:48 Well, what i want is to draw everything BUT where text would normally go, effectively punching out the area. Dec 20 01:32:52 Da * (1 - Sa) , Da * Sc Dec 20 01:33:04 is it da * inverted sa? Dec 20 01:33:11 if so, can you invert image first? Dec 20 01:33:12 Da = Destination alpha Dec 20 01:33:27 yea you can set the dest color to color & 0x00ffffff Dec 20 01:33:35 dunnof if alpha is invertable Dec 20 01:33:38 to change (1-Da) to Da Dec 20 01:34:30 oh wait Dec 20 01:34:34 you can! Dec 20 01:34:39 use transform matrix Dec 20 01:34:48 ColorMatrix Dec 20 01:34:52 I think Dec 20 01:34:57 there is a PorterDuffColorMatrix Dec 20 01:35:03 er, PorterDuffColorFilter* Dec 20 01:35:23 Duhhh I didn't try this Dec 20 01:35:30 1) draw text Dec 20 01:35:35 yeah it was one of million stuff I tried Dec 20 01:35:41 2) draw text DST_OUT Dec 20 01:35:45 or is it src_out Dec 20 01:36:37 DST_OUT.... Dec 20 01:36:49 This SHOULD work in theory my god why didn't I try this already Dec 20 01:36:57 dunno Dec 20 01:37:03 thats why even idiots can help sometimes Dec 20 01:37:09 bitcoins for everyone if it works Dec 20 01:37:16 yay lol Dec 20 01:37:32 I wonder why simply CLEAR doesn't do the trick Dec 20 01:37:57 bitcoin sucks, so huge. Dec 20 01:38:07 not everyone have such space Dec 20 01:39:00 Doesn't work Dec 20 01:39:47 paste code, + see above for more random ideas from the peanut gallery :) Dec 20 01:40:31 I need f(Sa, Da) = Da * (1 - Sa) Dec 20 01:40:32 http://pastie.org/8564523 Dec 20 01:40:46 Fa(Sa, Da) = Da * (1 - Sa) Dec 20 01:40:47 from what I see, best seems to be invert alpha then do regular Dec 20 01:40:53 yea Dec 20 01:40:54 exactly Dec 20 01:41:09 matrix is still slow but not as bad as perpixels Dec 20 01:41:14 Fc(Sa, Dc) = Dc * (1 - Sa) Dec 20 01:41:20 oh, so it's not just "punching out the area", I see Dec 20 01:41:28 Oh it SHOULD be yes Dec 20 01:41:37 why is that *not* punching out the area? Dec 20 01:41:50 er wait maybe we're saying the same thing Dec 20 01:41:55 then CLEAR seems like the least complicated thing - why is there even a formula there :-) Dec 20 01:42:09 I'd assumeed you simply wanted alpha=0 Dec 20 01:42:18 oh shit maybe you're right Dec 20 01:42:30 canvas.drawColor(color); Dec 20 01:42:39 then draw string with paint set to clear Dec 20 01:42:44 YOU"RE ONTO SOMETHING Dec 20 01:43:06 omg Dec 20 01:43:14 Its gonna work I can feel it Dec 20 01:43:48 The "punched out" area is black Dec 20 01:44:31 well yes - it's probably transparent all the way till it hits the black turtle :-) Dec 20 01:44:35 lets try it with a color filter instead of an xfer mode Dec 20 01:44:43 kbs, na the background is white Dec 20 01:45:02 wait, maybe not. Dec 20 01:47:13 nope Dec 20 01:47:27 still black even when I draw the background Dec 20 01:48:39 interesting. ah well. Dec 20 01:49:42 why wouldn't Dec 20 01:50:15 hmmmmmmmmm indeed http://pastie.org/8564533 Dec 20 01:51:38 dhulke: http://www.helloandroid.com/tutorials/remote-control-your-android if you don't want to code your own Dec 20 01:57:04 explodes: that's interesting. One thought - to cross-check, might also try SRC with 0x00ff0000 as the src color. In theory, if you still see a black region, then I might double-check whether in fact there's a white background. I guess ou could also use 0x80ff0000 to ensure that the SRC is doing the expected thing. Dec 20 01:58:12 I wonder if it's just some unexpected layer [perhaps missing] in your stack of canvases Dec 20 01:58:44 [I'm assuming you have a second canvas below the canvas in your pastes...] Dec 20 02:00:16 kbs kk Dec 20 02:00:25 Does anyone have any experience with using symlinks and ndk-build when dealing with Android.mk files? Dec 20 02:02:28 explodes: (I assume http://pastie.org/8564533 is not the way you ensure the's a white background :-) Dec 20 02:02:35 s/the's/there's Dec 20 02:03:18 I've got an error on build: http://hastebin.com/fawociqeka.pl Dec 20 02:03:35 I'm not sure wha tthe problem actually is, but this is what the gradle console says Dec 20 02:03:41 I'm on the AS 0.4.0 Dec 20 02:05:09 Apropos of nothing, used to be a fair number of google engineers here; is it just me, or has it gone rather silent from that quarter. Dec 20 02:06:23 kbs: right, I do "canvas.drawColor(0xffffffff)" Dec 20 02:06:35 I guess I'll ask anyway: I'm trying to use a symlinked jni folder in my android project which has a bunch of shell cp commands, as well as some library building stuff. The library builds correctly and is placed correctly in ../libs relative to the symlink location, however the cp commands which should copy to LOCAL_PATH instead point to the symlink origin Dec 20 02:06:52 explodes: oh. You'll need a secondary view underneath this one to "reveal" the background Dec 20 02:07:30 maybe you can place your custom view on a FrameLayout or somesuch as a quick test. Dec 20 02:07:43 o.O Dec 20 02:07:53 draw some random color for background? Dec 20 02:08:01 so you will see color when it works properly Dec 20 02:08:48 yes - but unless I'm missing something, it sounds like this view is not actually sitting on any other canvas Dec 20 02:09:07 right it is not Dec 20 02:09:09 can add another I guess Dec 20 02:09:14 the first pass clears the canvas as white Dec 20 02:09:20 *pass* being function Dec 20 02:09:28 er 1 sec Dec 20 02:10:30 explodes: see above note on placing your custom view on a FrameLayout, which you can set with some random color as XXCoder suggests. Otherwise, chances are you don't actually have a non-transparent window underneath your custom view Dec 20 02:10:55 There's probably a way to set this without needing to use a framelayout; but that's a simple test to ensure that this isn't the issue Dec 20 02:11:39 yeah I remember one times I thought my code was failing but well default "nothing" was black so it was black on black. Dec 20 02:11:45 right Dec 20 02:12:38 I seem to vaguely remember you can directly set some color for the window itself; but using a FrameLayout is less taxing to my brain anyway :-) Dec 20 02:17:32 eff Dec 20 02:17:37 so the issue is with the apache libs, again Dec 20 02:17:39 aaaaauuuuggghhhhh Dec 20 02:18:19 I've got org.apache.httpcomponents:httpmime:4.3.1 and org.apache.httpcomponents:httpcore:4.3.1 included in my build.gradle Dec 20 02:18:22 and it's still complaining Dec 20 02:18:28 I excude httpclient from both Dec 20 02:18:29 * kbs chuckles Dec 20 02:19:33 why is it so hard to include the apache libs in an android project? Dec 20 02:20:14 [sorry. I have my own biases against overly complex frameworks; schadenfreude isn't very attractive] Dec 20 02:20:43 Ok, my view is in a relativelayout with a drawable background Dec 20 02:20:56 I know you could have sounded more arrogant, kbs, but I don't think it's worth exploring how you would do so Dec 20 02:21:34 rager: :-) apologies Dec 20 02:21:35 rager i think without jarjar you would have package / class conflicts Dec 20 02:22:01 since apache stuff is already bundled (that sucks) Dec 20 02:22:08 blern Dec 20 02:22:23 what I'm running into now is that if I try to include both httpmime and httpcore, I get a dupe on httpcore Dec 20 02:22:37 but my project requires httpcore and httpmime, at the moment Dec 20 02:23:00 this wasn't the case with earlier gradle tools - could just revert, probably Dec 20 02:23:52 trying the following: exclude module: "httpcore" Dec 20 02:24:06 (in the exclusion block for httpmime) didn't work Dec 20 02:27:37 afaik, only apache's httpclient is included Dec 20 02:27:40 and that's a pretty old version Dec 20 02:27:49 but that is what makes other apache libraries usually have issues Dec 20 02:28:07 the way around that is to exclude it when pulling in the apache libs (and not use httpcore-touching parts) Dec 20 02:34:17 So there are no android instant messaging tutorials out there? Dec 20 02:34:21 in particular video tutorials? Dec 20 02:46:41 if i do a Runtime.getRuntime().exec(...) and the do a getInputStream() on the resulting process... Dec 20 02:46:56 will the getInputStream fail if the process failed to execute? Dec 20 02:49:26 what do you mean "fail" Dec 20 02:49:30 how does an input stream fail? Dec 20 02:49:57 im looking at the process returned by getruntime Dec 20 02:50:02 do try{}catch(IOException ex){} finally {stream.close(); } Dec 20 02:50:03 and it has an exit status = 9 Dec 20 02:50:14 i see its PID and ps -x in adb shell does not show that pid Dec 20 02:50:20 therefore something failed Dec 20 02:50:32 i SUCCEED at getting the input and output streams Dec 20 02:50:38 i can write to the output stream Dec 20 02:50:43 but i get nothing back from the input stream Dec 20 02:52:07 i think the .exec() failed Dec 20 02:52:11 but it did not throw Dec 20 02:54:00 forthProc = Runtime.getRuntime().exec(FORTH_PATH); Dec 20 02:54:38 where FORTH_PATH is defined as context.getFilesDir().getPath() + "/" + "a4" Dec 20 02:55:03 i think a4 is executing. doing some init, crapping out and falling over Dec 20 02:55:21 but i dont know that that is what is happening Dec 20 02:57:27 oo, nice. forth on android sounds interesting. Dec 20 02:57:37 the forth runs just fine Dec 20 02:57:46 i can ./a4 and code forth to my hearts content Dec 20 02:58:03 im trying to execute it from within my android app and talk to it over stdin/out Dec 20 02:58:24 when stdin/out are working i can code the forth side of the shared memory and have a way to test that Dec 20 02:58:29 interactivly from java Dec 20 02:58:33 kbs codes forth? **** ENDING LOGGING AT Fri Dec 20 03:00:00 2013