**** BEGIN LOGGING AT Sun Nov 25 02:59:59 2012 Nov 25 03:10:31 Hi.. i am trying to make a get or post request for an xml file.. but am not able to.. Nov 25 03:10:35 Here is the code Nov 25 03:10:36 http://pastebin.com/8V9B1GJt Nov 25 04:00:06 anyone used orm-droid Nov 25 04:01:59 hey, i'm trying to use ClipboardManager from inside a service but it is not working. What should i do/ Nov 25 04:02:36 probably wrong context? Nov 25 04:03:56 humn let me see Nov 25 04:04:01 that's the message java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Nov 25 04:05:47 ron_frown it's a service that calls a TimeTask. and this timetask calls the clipboard manager Nov 25 04:19:06 snagnever: more or less what it says, you're trying to run it in a naked thread, you need to use a looper thread. The first result of 'looper.prepare' includes examples. Nov 25 04:24:40 dragorn so i created a new Runnable and called inside of that. worked, thanks :D and how can i make the Toast appear? :C Nov 25 04:26:27 ron_frown: screw the orm you pansy Nov 25 04:28:01 Android seems to be ignoring my custom windowAnimationStyle Nov 25 04:28:12 do I need to extend from an existing style for this? Nov 25 04:29:12 yeah i dont think it worked... just instantiating a Runnable doesnt mean he is going to run, right? Nov 25 04:29:13 I would think not since the system animations are just extending from an empty style Nov 25 04:35:48 Is it possible to read EXIF data from byte[] ? Nov 25 04:36:29 it's always possible Nov 25 04:37:43 JakeWharton: Mind telling me how? :) Nov 25 04:37:59 find some EXIF library that reads from a byte[] or write your own from the spec Nov 25 04:40:53 JakeWharton: alright, thanks Nov 25 04:41:21 and then open source it, like a gentleman Nov 25 04:41:54 nice :) Nov 25 04:42:27 http://www.drewnoakes.com/code/exif/javadoc/com/drew/metadata/exif/ExifReader.html Nov 25 04:42:39 yep looking into it Nov 25 04:43:16 http://www.drewnoakes.com/code/exif/ Nov 25 04:43:44 yep the code is here : http://code.google.com/p/metadata-extractor/ Nov 25 04:44:05 Google Code... bleh Nov 25 04:44:10 JakeWharton you are an Intellij guy, I need some help fixing a CallNotFoundException when using abs in Intellij 12. Nov 25 04:44:27 Only force closes when my activity extends something from Sherlock Nov 25 04:45:27 what force closes? your app? intellij? Nov 25 04:45:45 App Nov 25 04:46:36 To add in ABS, I just jump into the Project Structure and import it in + add as module dependency. Nov 25 04:46:41 JoeTheGuest you are doing it wrong. Nov 25 04:46:42 the end. Nov 25 04:46:44 is ABS listed as a compile dependency in the module settings? Nov 25 04:46:57 Yea Nov 25 04:47:15 I use abs and androrid projects in intellij 12 no problems Nov 25 04:47:17 Thanks ron_frown, care to elaborate? Nov 25 04:49:09 Ugh. "Caused by: java.lang.ClassNotFoundException:" on my main activity. Nov 25 04:49:14 I dont remember anything out of the ordinary I had to do Nov 25 04:49:21 If I don't extend SherlockActivity, it works fine. Nov 25 04:49:33 sounds like it snot including the abs lib correctly Nov 25 04:50:25 ^ Nov 25 04:50:32 But i'm not sure what i'm doing wrong at this point. Nov 25 04:50:40 go into module settings Nov 25 04:50:47 make sure abs app is marked library Nov 25 04:51:30 make sure you see it referenced in the regular apps module settings Nov 25 04:51:51 Yes and yes. Nov 25 04:52:35 does it warn you at the bototm of library screen Nov 25 04:52:42 so many errors etc Nov 25 04:52:53 intellij takes a bit of getitng used to Nov 25 04:53:01 things arent always so obvious coming from eclipse Nov 25 04:53:09 No errors, it compiles fine, pushes to phone, runs and then force closes. Nov 25 04:53:12 but generally I've found it to make much more sense Nov 25 04:53:16 I've been using intellij for a while now Nov 25 04:53:39 Tonight was the first time I tried 12. Nov 25 04:53:53 JoeTheGuest that sounds like something trying to use reflection to instantiate classes is failing Nov 25 04:54:01 are you using same deployment targets etc? Nov 25 04:54:07 Yes Nov 25 04:54:20 do you get a full stack trace? Nov 25 04:54:26 Yes Nov 25 04:54:38 RuntimeException + ClassNotFoundException Nov 25 04:54:44 Doesn't reference any of my classes. Nov 25 04:54:47 Just my main activity. Nov 25 04:55:51 look higher up Nov 25 04:55:57 looks for VerifyErrors Nov 25 04:57:35 http://pastebin.com/RrYPyM17 Nov 25 04:58:37 W/dalvikvm( 7999): Link of class 'Ldcm/activity/HomeActivity;' failed Nov 25 04:58:38 look above that Nov 25 05:00:35 can i create a thread so that i can call the ContentManager and then call it? Nov 25 05:00:41 i mean, and then KILL it Nov 25 05:00:46 http://pastebin.com/WXbXXvfF Nov 25 05:00:57 "Unable to resolve superclass" Nov 25 05:01:35 there you go Nov 25 05:01:39 the dependency isn't being included Nov 25 05:03:51 Is there something I need to change to ensure that? Nov 25 05:04:17 just that's is specified as a "compile" dependency Nov 25 05:04:46 And it is Nov 25 05:06:58 * JoeTheGuest rips some hair out. Nov 25 05:18:10 I exported an app and then decompiled it Nov 25 05:18:30 It's showing the com.actionbarsherlock packages but only included the R and BuildConfig classes. Nov 25 05:19:57 Did an apktool on it and it's including all the res stuff. Nov 25 05:20:20 So it's basically neglecting any code inside abs outside of R and Config Nov 25 05:25:54 If i create a thread and it calls Looper.prepare(), it won't really die after completing the run(), right? Nov 25 05:26:35 Use a HandlerThread Nov 25 05:40:02 let me see Nov 25 05:40:36 JakeWharton the thing is that i need to use ClipboardManager, that's why i had to create a thread with a Loper Nov 25 05:41:19 you should just use the main thread Nov 25 05:43:56 JakeWharton the thing is i'm in a service, that service calls a timertask who should use the ClipboardManager Nov 25 05:46:41 https://github.com/pivotal/robolectric/issues/346 Nov 25 05:46:48 anyone know a fix for this? Nov 25 05:47:08 i'm using Robolectric 1.2-SNAPSHOT w/ some minor edits to help w/ ABS testing Nov 25 05:49:39 oh, robolectric Nov 25 05:49:54 the most useful, awful library in existence Nov 25 05:50:17 you're telling me Nov 25 05:50:28 your gist helped me out, making it suck less (barely) Nov 25 05:50:31 still tho.. Nov 25 05:52:02 we have our own fork of Robolectric to prevent them breaking us Nov 25 05:54:29 you should write a failing test case and submit it in a pull request Nov 25 05:54:36 those Pivotal guys love tests Nov 25 05:56:58 can do that Nov 25 05:58:54 so, please, what's the best way to get a Toast and a ClipboardManager working from a Service that calls a TimerTask? **** ENDING LOGGING AT Fri Dec 14 02:59:36 2012