**** BEGIN LOGGING AT Thu Nov 15 02:59:59 2012 Nov 15 03:02:12 I see. thanks guys. well this would just be small messages Nov 15 03:02:23 nothing that is too sensitive Nov 15 03:03:09 how about if I create a linux system service on the device? Nov 15 03:03:14 I am guessing that will be safer Nov 15 03:03:51 erm... Nov 15 03:04:05 if they're small messages and not that sensitive, why are you wasting your time with this? Nov 15 03:05:02 heh Nov 15 03:05:38 so the architecture is that I have a system service that logs activity in the package manager.. this service then relays information to a system app which then relays the information to other non-system apps via intents Nov 15 03:05:52 my concern is that if someone "hi-jacks" that channel and gives them fake events Nov 15 03:05:58 it can really screw things up Nov 15 03:06:19 Where is AKeyEvent_getUnichar ? Nov 15 03:06:53 as a research project, I am adding a protection mechanism that prevents apps from being installed Nov 15 03:09:35 sleepster thats super easy to tap into... but I would suggest not doing it Nov 15 03:10:14 ron_frown, why is that? Nov 15 03:10:33 guys? Nov 15 03:10:42 WHat is up with this NDK that doesn't have half the actual functionality ? S Nov 15 03:11:07 I'm trying to apply a background selector for a RelativeLayout which is a child of a ExpandListView.. my selector has a shape drawable for its default state.. and an layer-list with 2 shapes for its active state Nov 15 03:11:29 well being a software developer, I'm adamantly against DRM as to me it seems like a violation of our rights Nov 15 03:11:29 when the view is created I get android.view.InflateException: Binary XML file line #3: Error inflating class android.widget.RelativeLayout .. removing the drawable fixes the problem Nov 15 03:11:46 anyone ran into this problem before? Nov 15 03:11:59 I'd honestly rather have piracy of my apps, than to go to those extents Nov 15 03:12:47 the reality is, anyone will get around whatever copy protection you implement, so the correct thought should be to do whatever will discourage/thwart people that wouldnt hack stuff anyway Nov 15 03:13:15 here is my layout code http://pastebin.com/XD6jBUsT Nov 15 03:13:56 hi, all Nov 15 03:14:16 how to build a have no navigation bar android rom? Nov 15 03:14:29 what Nov 15 03:14:44 an avd? Nov 15 03:14:55 or a rom Nov 15 03:15:02 yeah, a rom Nov 15 03:15:05 ron_frown, I see your point.. I do agree but assuming my research can cut all but the most experienced, genius piracy hackers, I would be fine with that Nov 15 03:15:15 roms will need to have appropriate dpi and or features enabled/disabled Nov 15 03:15:22 where can I find the source code for chrome on Android? Nov 15 03:15:25 is this freely available? Nov 15 03:15:40 theoretically googles encryption in the app store should easily do this Nov 15 03:16:00 sleepster chromium is, but I dont beleive crhome source is Nov 15 03:16:20 how to disable navigation bar ? Nov 15 03:16:21 ron_frown, is chromium what is on the android? Nov 15 03:16:40 ron_frown, well I've been doing some research into the app encryption and there are still ways to get the apps off the device Nov 15 03:16:43 chromium is the core rendering/js engines from chrome Nov 15 03:17:14 sleepster, I guarentee there are much muhc muhc brighter minds than you or I working on that very problem Nov 15 03:17:31 major corps etc Nov 15 03:18:00 ron_frown, I agree. Nov 15 03:18:17 ron_frown, but this is just a learning project to put on my resume Nov 15 03:18:17 dont get me wrong Nov 15 03:18:29 I am all for solving a project for research and learning Nov 15 03:18:37 and if you come up with a better product even the better Nov 15 03:20:43 the problem is packagemanager needs to verify authenticity of a package before it installs. I believe for the play store, apps are signed for a particular device Nov 15 03:21:16 therefore installing it on the next device with the same signature would fail Nov 15 03:21:32 that being said, I think they have had problems with encryption and may or may not have it enabled Nov 15 03:21:46 and if packagemanager doesnt know shit about it, (eg older versions) not a hell of a lto you can do Nov 15 03:34:38 you know your tool needs optimizing hwen it runs on your app in 5 seconds and a bigger app in 45 minutes Nov 15 03:35:01 can someone look at this drawable.. it keeps crashing my app http://pastebin.com/ggbxkfrA Nov 15 03:35:19 crashing.... wiht a stack trace? Nov 15 03:35:23 sec Nov 15 03:35:31 canadiancow what are you referring to? Nov 15 03:35:41 http://pastebin.com/XD6jBUsT full layout ron_frown Nov 15 03:35:41 my unused resource detector Nov 15 03:35:45 let me get stacktrace Nov 15 03:35:47 i ran it on an app at work and it took 45 minutes :( Nov 15 03:35:56 :| Nov 15 03:36:08 iknorite Nov 15 03:36:10 http://pastebin.com/rSErVwag stacktrace ron_frown Nov 15 03:36:18 I tracked my error down to this one drawable Nov 15 03:36:45 if I remove it everythign works fine.. but once added I get an inflation exception Nov 15 03:36:59 that doesnt SOUND like a problem with the drawable Nov 15 03:37:55 then what else could it be.. once I remove the drawable from my background selector all is well Nov 15 03:37:57 uhh Nov 15 03:38:05 I dont see the parent layout Nov 15 03:38:10 did you check out the paste with my layout Nov 15 03:38:17 I didn tthink you could set a selector on a relative layout Nov 15 03:38:38 parent layout is an ExpandableListView Nov 15 03:38:43 although its been a while since I messed with that crapola Nov 15 03:39:30 ok can I do it on a linear layout? Nov 15 03:39:42 http://stackoverflow.com/questions/8018435/android-how-to-change-a-layer-list-drawable Nov 15 03:39:46 does that sound related at all Nov 15 03:39:52 checking Nov 15 03:40:39 damnit i hate when i accidentally go into #android and get pissed at the stuff people are asking Nov 15 03:41:05 thats EXACTLY how I feel about android-root Nov 15 03:41:23 ron_frown somewhat.. layout code wise yes Nov 15 03:41:25 at least that android-root was supposed to be for porting like discussions Nov 15 03:41:44 lol Nov 15 03:41:45 someone was asking about "toilet games" Nov 15 03:42:11 i was like wtf go download some games and try them you lazy #@$! Nov 15 03:42:39 but then it was MY bad cause i was in the wrong channel. grrrr Nov 15 03:43:09 in Android, is it possible to conditionally load activities based on the platform? Nov 15 03:43:27 what does that mean Nov 15 03:43:30 svm_invictvs: probably, but tht sounds like its probably bad practice Nov 15 03:43:40 you can load whatever activity you want, but like speakingcode says Nov 15 03:43:45 probably not what you want to od Nov 15 03:43:56 because your project is compiled as one unit, so if you're using features not available in a supported platform, it won't compile Nov 15 03:44:36 There is a way to have runtime version checks. Nov 15 03:44:47 damnitetter approach would be to use support libraries, or use different apks for different platforms Nov 15 03:44:55 give us an idea of what you might be thinking Nov 15 03:45:01 better approach* Nov 15 03:45:50 unless you're trying to do something way different than what i think you're trying to do Nov 15 03:47:18 Typing Unicode in an NDK/NativeActivity application -- is it possible at all? Nov 15 03:47:29 speakingcode what do you want to bet this is a top secret app idea that he cant disclose any details on Nov 15 03:47:47 I have two activities. ONe extends the Native Activity, one extends just plain Activity. The NativeActivity performs better, but that was introduced in 2.3, iirc I still have a requirement to support 2.2 devices (why, I don't nkow) Nov 15 03:47:57 So I wanted to conditionally load the native versus non-native Nov 15 03:48:16 why? maybe cause 2.2 is like half the market.. just a guess tho Nov 15 03:48:21 Both activities do the same thing, which mostly defers to native code Nov 15 03:48:26 ah Nov 15 03:48:27 heh Nov 15 03:48:48 The non-native approach has some performance issues. Nov 15 03:48:53 2.2 is tin Nov 15 03:48:58 2.3 is half the market Nov 15 03:48:59 tiny Nov 15 03:49:07 and it has concurrent gc Nov 15 03:49:07 2.3 is huge Nov 15 03:49:14 http://developer.android.com/reference/android/os/Build.VERSION.html Nov 15 03:49:21 there ya go svm_invictvs Nov 15 03:49:43 oh, yeah, 2.3.. shrug Nov 15 03:49:44 The requirements were not dictated by me Nov 15 03:50:04 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { ... Nov 15 03:50:25 svm_invictvs I think the key is to target the highest version, minsdk the lowest Nov 15 03:50:29 im not convinced a nativeactivity would perform better for much Nov 15 03:50:38 and then do checking as canadiancow specified above Nov 15 03:52:48 man I need to stop coding Nov 15 03:52:52 damn user error Nov 15 03:55:22 are people finding the new sdk/adt to be generally behaving :) Nov 15 03:55:50 ron_frown: stfu about intellij :) … preemptive notice Nov 15 03:57:04 thats fine Nov 15 03:57:13 :D Nov 15 03:57:24 I am busy geting one of my new dev boards going =) Nov 15 03:57:32 which one ? Nov 15 03:57:36 odroidx Nov 15 03:57:51 canadiancow: According to the docs it does. Nov 15 03:57:59 wat Nov 15 03:58:02 what docs Nov 15 03:58:16 The vendor's docs\ Nov 15 03:58:42 what vendor Nov 15 03:59:12 Actually, screw it. I'll l just use the non-native activity Nov 15 03:59:48 +1 Nov 15 04:09:11 wouldnt it fucking figure Nov 15 04:09:20 no fastboot binaries to flash Nov 15 04:09:31 just a sd image and I dont have a sd reader =( Nov 15 04:10:09 guess I'll ahve to knock this out at the office Nov 15 04:10:38 ron_frown: That makes you frown? Nov 15 04:11:48 yes Nov 15 04:12:21 Previously I had used maven for Android. Has support been improved for it in the last year or so? Nov 15 04:12:46 WOrked okay, but I recall I couldn't use the Android dev tools in Eclipse, I had to deploy to the device using maven, which wasn't a huge deal. Nov 15 04:13:13 But it didn't create an eclipse project that jibed well with the ADT plugin Nov 15 04:14:49 is there some simple way to force the OS to "swap out" my activities, so i can test that the state saving and restore works properly? Nov 15 04:15:51 finish() will cause it to call onPause() and onStop() Nov 15 04:16:26 so you could just startActivity(intent); finish(); Nov 15 04:16:33 then do the same back from the other activity Nov 15 04:16:43 that won't cause onSiS to be called Nov 15 04:16:48 ron_frown: no i mean during debugging, i.e. i want to simulate memory pressure, not actually finish the activity Nov 15 04:16:50 sis? Nov 15 04:17:00 spifff: you can start the web browser and open a few tabs :) Nov 15 04:17:33 that was the trick on my froyo phone, maybe you can do it through the cli now Nov 15 04:17:53 g00s: hehe, just running google earth, lets see if that does th etrick ;) Nov 15 04:19:35 testing onSiS()/onRiS() is a pita Nov 15 04:19:47 or maybe i'm doing it wrong Nov 15 04:20:06 does chromium have a plugin framework to allow me to harden the security of the browser for android? Nov 15 04:20:39 >.> Nov 15 04:20:56 ah, there's a setting in developer tools "immediately destroy activities" Nov 15 04:21:03 svm_invictvs, it's better, still not perfect Nov 15 04:21:12 spifff: ah, on the emu yeah Nov 15 04:21:52 since the emu still doesn't support BT, most of my work is on hw which is PITA x 10 Nov 15 04:23:23 g00s: i seem to have that on my device as well (I'm running cyanogen though, i guess its probably not in stock builds) Nov 15 04:26:51 is it easy to build apps without the ADT Nov 15 04:26:55 hm odd… I would have thought that after I have called super.onResume() in my support-lib FragmentActivity, any fragments that had been persisted should have been resumed as well… but apparently that's not the case Nov 15 04:27:18 sleepster: you mean without the eclipse tooling? Nov 15 04:28:00 yup sorry. I have the AOSP source sync'd down and I was hoping to avoid having to install the same thing in eclipse Nov 15 04:28:09 so I can build it with eclipse Nov 15 04:28:24 good luck Nov 15 04:28:35 uhm, you don't need the ASOP source to build apps... Nov 15 04:28:46 oh I know, but I was already doing work with it Nov 15 04:28:51 aosp source IS possible to setup in eclipse Nov 15 04:28:51 you just need the SDK Nov 15 04:28:54 but seriously good luck Nov 15 04:29:20 i use Maven for my actual app builds (still using eclipse/adt during dev anyway though) Nov 15 04:30:29 hm, onPostResume() seems to be the way to go Nov 15 04:31:02 haha I still dont get maven Nov 15 04:31:14 I get what it does, I've just never found myself with that particular problem/need Nov 15 04:34:01 ron_frown: hm, i always find it a huge pain if I can't use maven in a project Nov 15 04:35:39 i guess it depends on how you structure separate components in an overall system. maven makes it really easy to keep components small, self-contained, and versioned, and have explicitly declared dependencies Nov 15 04:36:17 t Nov 15 04:36:32 tools->export signed apk has been pretty simple for me Nov 15 04:36:54 th Nov 15 04:37:57 though i admit i haven't had the luxury of bringing multiple libs together in one project really. all my projects have been largely self contained Nov 15 04:38:23 putting release code out into the world from an incremental compile done in an IDE from an arbitrary, maybe untagged, maybe even unclean working copy makes the hairs on my back stand up ;) Nov 15 04:38:39 I am wondering if my CI setup would be easier with maven vs ant Nov 15 04:39:08 that's one thing i really like about maven. It makes sure that a release happens off a clean checkout of a tag, with only code that's either in that tag, or a declared dependency with a known version Nov 15 04:39:52 ah. so it ties into versioning Nov 15 04:40:34 i've little experience with build systems Nov 15 04:40:40 speakingcode: maven is all about versioning and dependency management. it also happens to suggest a consistent project structure thats the same between projects, but that's really just a convenience Nov 15 04:42:01 i've probably a lot to learn Nov 15 04:42:03 for an android app the benefits aren't as big as they are for managing server-side code though I find… my android app has maybe 3-4 dependencies, but the server-side stuff is 20-30 separate components Nov 15 04:42:11 Hey Guys when is it safe to call getActivity() in my fragment Nov 15 04:42:23 should I only call it after onActivityCreated() ? Nov 15 04:42:23 I woudnt choose to use java for server side shit Nov 15 04:42:27 and sadly its not because of java Nov 15 04:42:47 ron_frown: what do you use? ruby? python? Nov 15 04:42:54 yeah i know the backend guys at work use a lot of it, just never been in a situation where i needed that Nov 15 04:42:55 .net Nov 15 04:42:59 c# Nov 15 04:43:00 urgh Nov 15 04:43:04 ron frown uses .net for his backend, his opinions don't count Nov 15 04:43:10 i would never run anything on a windows server Nov 15 04:43:11 c# is fucking beautiful Nov 15 04:43:22 c# is pretty nice Nov 15 04:43:24 i just like to hate Nov 15 04:43:29 mono is faster than .net +) Nov 15 04:43:36 not as complete, but every bit as performant Nov 15 04:44:04 is mono the .net on linux project? Nov 15 04:44:10 yep Nov 15 04:44:18 java has a huge ecosystem of really mature libraries Nov 15 04:44:26 i guess you could say like wine, but .net instead of win32? Nov 15 04:44:32 I dont like how java folks build java apps =) Nov 15 04:44:39 typically way way overengineered Nov 15 04:44:51 that's...good Nov 15 04:44:54 hm… probably depends on who you talk to Nov 15 04:45:00 sometimes anyway Nov 15 04:45:09 personally i stay away from e.g. J2EE, jboss and so on Nov 15 04:45:24 just like hibernate Nov 15 04:45:29 honestly what a pile of shit Nov 15 04:45:41 yeah and then people go and port it to .net and call it nhibernate ;) Nov 15 04:45:41 slow, convoluted, builds rediculous queries Nov 15 04:45:51 I'd rather just write straihgt sql statements manually Nov 15 04:45:52 I dont Nov 15 04:45:56 yeah i agree there is a tendency to throw some really large solutions to small problems in the java world Nov 15 04:46:13 i see that a lot in other places too, tho Nov 15 04:46:17 you have to solve problems at the right level of abstraction Nov 15 04:46:21 php guys love to throw a framework at something Nov 15 04:46:21 I built my own .net orm prior to entity framework being available Nov 15 04:46:37 right being neither too high nor too low Nov 15 04:46:46 speakingcode I find that funny they need to throw more attention into their language/platform Nov 15 04:47:02 ms has plenty of htos elibraries Nov 15 04:47:05 like WCF Nov 15 04:47:11 really cool idea conceptually Nov 15 04:47:16 maybe php has come a long way nowadays, but in my mind it's still done by a bunch of HTML "coders" who taught themselves basic programming Nov 15 04:47:19 TERRIBLE TERRIBLE TERRIBLE implementaiton Nov 15 04:47:31 terrible enough where if it were my employees, I'd fire them in a heartbeat Nov 15 04:47:46 spifff: there's still tons of that, but php HAS matured a lot Nov 15 04:48:19 magic quotes anyone? ;-) Nov 15 04:48:24 c# I like because its very mature, lots of elegant stuff in it Nov 15 04:48:49 I do wish ms would just support .net on linux etc, because windows os, I dislike Nov 15 04:49:09 it's their blessing and their curse Nov 15 04:49:33 it makes their economic model viable, but it also keeps them out of a large market Nov 15 04:49:50 I think they are in plenty big markets Nov 15 04:50:04 obviously Nov 15 04:50:17 I've had at least 3 job offers from diff companies for at least 140k a year to do just .net architecture and such Nov 15 04:50:21 we just took over the iOS version of our app from an external contractor… it seems the objective C crowd is a bit like the php crows in the sense that a "dependency" means you do an export of an arbitrary revision of somebody else's git repository, throw it into a subdirectory of your project, and then hack around in it Nov 15 04:50:22 in the last 6mo Nov 15 04:50:44 hahah Nov 15 04:50:54 but their products are completely overlooked by a lot of people like me Nov 15 04:50:57 spifff indeed Nov 15 04:51:22 ron_frown: that's why i wish everybody would be forced to use a tool like maven or ivy to at least understand how it _can_ be done ;) Nov 15 04:51:33 at some point in their career i mean Nov 15 04:51:35 uhh Nov 15 04:51:55 the problem is more likely that a jar or a dll in c# is nothing like linking dynamic libs Nov 15 04:51:58 in ios Nov 15 04:52:11 Nexus device stock monitor feed: http://goo.gl/VmCA5 :-) Nov 15 04:52:29 Just a little spreadsheet hack Nov 15 04:52:42 no clue if/when it refreshes yet Nov 15 04:52:46 ron_frown: i've actually wrapped maven around the ios project now and manage a few deps via it. the artifact managed via maven is just a zip with some headers and a static library it in Nov 15 04:52:52 (sorry for OT!) Nov 15 04:53:14 spifff - I have encountered thes ame thing Nov 15 04:53:31 the main point is that it's conceptually a separate thing that has it's own version number and lives in a separate source control project. it's not about how it's "linked" in the build process Nov 15 04:53:37 what is it that stops TelephoneManger.getLine1Number() from working on some devices? Nov 15 04:55:03 even if you take maven out of the equation 100% Nov 15 04:55:13 ios/c/c++ apps are very much like what you see in iOS Nov 15 04:55:27 I am not saying shit about maven, or how it fits in to ios Nov 15 04:56:03 spifff you done any linux kernel dev? Nov 15 04:56:04 ron_frown: of course maven is just a tool and you can follow the same concepts manually. it just don't see tidy dependency management done that often without tool support Nov 15 04:56:21 a bit of hackng around, but nothing serious Nov 15 05:02:30 oh its because the carrier decides whether to put the phone number on the sim card. what are bunch of crap. can we force them to please? Nov 15 05:19:28 what use is a sim card with no phone number? Nov 15 05:19:37 data? Nov 15 05:20:40 muhoo, 3G, 4G, contacts storage Nov 15 05:20:43 lol Nov 15 05:22:41 i thought every cell device has a phone number Nov 15 05:23:02 my old sprint usb edge dongle had a phone number even Nov 15 05:23:53 and my data usage showed up on a phone number on the bill. couldn't have made or taken a call on it if i tried Nov 15 05:24:44 so, now idc and gartner are saying android has 72-75% smartphone market … is this a good thing really? Nov 15 05:26:21 Partially depends on if you think rare updates are a good thing or not. Nov 15 05:27:08 so Nexus 7 3G won't support T-Mobile? wtf Nov 15 05:28:12 why? Nov 15 05:28:15 g00s: is that mean to be in the US or globally? Nov 15 05:28:22 hmm Nov 15 05:28:41 yo Nov 15 05:28:45 gsm should be gsm :-/ Nov 15 05:29:11 skyred: locked maybe to one carrier? Nov 15 05:29:25 skyred it will Nov 15 05:29:29 muhoo you dont know what you're talking about :P Nov 15 05:29:34 spifff: http://phandroid.com/2012/11/14/gartner-android-market-share/ Nov 15 05:29:37 worldwide Nov 15 05:29:43 muhoo, google play says it support AT&T https://play.google.com/store/devices/details?id=nexus_7_32gb_hspa_att Nov 15 05:29:56 canadiancow, ^^ Nov 15 05:29:58 skyred, it says it's unlocked and works on 1700MHz for UMTS Nov 15 05:30:05 i.e. it supports t-mo Nov 15 05:30:32 just because we partnered with at&t doesn't mean it only supports at&t Nov 15 05:31:00 3G (850, 900, 1700, 1900, 2100 MHz) Nov 15 05:31:01 canadiancow, ah! it was a google play UX problem, Nov 15 05:31:03 that's the important part Nov 15 05:31:06 canadiancow, you are right Nov 15 05:31:08 tmo is 1700 Nov 15 05:31:12 att is 850/1900 Nov 15 05:31:20 most european providers are 2100 Nov 15 05:31:24 not sure who's 900 Nov 15 05:36:38 doesn't tmo do this weird duplexig where tx is on one freq and rx on another? Nov 15 05:44:13 muhoo no Nov 15 05:44:15 well Nov 15 05:44:19 tx is ALWAYS different than rx Nov 15 05:44:26 so yes? Nov 15 05:44:57 all nexus devices since the galaxy nexus have supported all north american umts carriers Nov 15 05:49:30 "Pentaband" Nov 15 06:05:22 pentaband doesnt mean it will work unless your network uses one of the 5 :P Nov 15 06:05:34 and north america only uses 3 as far as i know Nov 15 06:06:29 i want to develope app for video caliig,i need help Nov 15 06:09:39 video caliig is very difficult think to do Nov 15 06:10:24 what is your app going to do that gtalk, g+, skype, etc, dont do Nov 15 06:10:49 well, if it can do it securely thats a plus :) Nov 15 06:10:58 like , no eavesdropping Nov 15 06:11:05 cia, black helicopters Nov 15 06:13:47 is it OK to modify the arguments bundle of a fragment during its lifetime? Nov 15 06:14:39 i'm using an argument to pass in a one-off action i want the fragment to perform, so a simple way to handle that would be to just clear that argument once its handled Nov 15 06:14:42 yes spifff Nov 15 06:14:52 cheers Nov 15 06:14:56 you'e supposed to manipulate it Nov 15 06:15:02 becuase if you rotate and it's recreated, it uses those arguments Nov 15 06:15:41 greets Nov 15 06:17:09 i guess the other option would be to see if savedInstanceState is null and only apply the one-off action then in onCreateView Nov 15 06:17:18 canadiancow: i dunno; smells funny. you cant change the arguments an activity receives by intent; doing it with fragments seems weird Nov 15 06:17:22 (i'm doing it in onResume currently) Nov 15 06:17:49 g00s, i do it all the time Nov 15 06:17:54 hmm Nov 15 06:17:54 at zynga and google :P Nov 15 06:18:11 in my case the fragment is a search form, and I optionally pass in an argument to pre-populate the search box and fire off the search Nov 15 06:18:16 and my code gets reviewed here, so i KNOW it's correct :) Nov 15 06:18:42 currect, maybe. but does it smell ? Nov 15 06:18:45 :D Nov 15 06:19:26 changing the args seems to work neatly :) Nov 15 06:22:32 g00s, it smells like cow? Nov 15 06:52:04 canadiancow: so do you getArguments() … change bundle() and then setArguments() then ? Nov 15 06:52:13 yes Nov 15 06:52:53 If I have an LinearLayout horizontal .. if I change the visibility of a child to View.GONE does the child still retain its width.. leaving the layout unchanged Nov 15 06:53:25 kind of like if you do css visibility:hidden; it keeps the size.. but doing display:none; in css doesn't.. does android have something similar Nov 15 06:55:14 no Nov 15 06:55:17 that would be View.INVISIBLE Nov 15 06:55:23 err yes Nov 15 06:55:39 no it doesn't retain it's width if it's GONE, yes there is something similar: INVISIBLE Nov 15 06:55:50 cool.. thanks Nov 15 07:15:42 anybody here ever had the problem in android+maven+proguard that it says it can't find classes.jar? Nov 15 07:28:36 Hello, what is the best approach to make this kind of controle in android? http://goo.gl/q2XfZ Nov 15 07:34:44 when I run android avd from the command line, is there a way for it detach main window process away from console, so that I could close the terminal window? Nov 15 07:35:32 for example, ./android avd & Nov 15 07:37:50 Warting: have a look at LevelListDrawable Nov 15 07:51:38 any idea about video calling Nov 15 07:53:15 squ, *command* & disown Nov 15 07:55:14 hi all. when building aosp 4.2 for N7, get tgis error. Don't know why, as it is not my first build and my environment is correctly set up . build/core/package.mk:61: *** frameworks/base/core/tests/coretests/apks/install_bad_dex: Package modules may not set LOCAL_JAVA_RESOURCE_FILES. Stop. Nov 15 07:55:20 #android Nov 15 07:55:23 can anyone help? Nov 15 07:55:46 inhies: came from here, and got #android-dev as an answer !!! Nov 15 07:55:52 funny andeoir IRC Nov 15 07:56:09 android* Nov 15 07:56:40 is there a channel for ndk devs? Nov 15 07:57:42 gabx: i know i saw :p just messing with you Nov 15 07:57:58 i want to develop video calling app,i need help Nov 15 08:02:15 I want to use hw acceleration with sdk 4.2 but sdk manager does not have x86 system image for it. only 4.1 Nov 15 08:16:46 squ: wait for a 4.2 image Nov 15 08:16:53 karthee: what kind of help do you need Nov 15 08:16:55 mango-: this is it Nov 15 08:33:36 what api i can use for my video calling app Nov 15 08:35:22 karthee: Be more precise Nov 15 08:49:39 karthee: I don't know any ready-made "video call" api Nov 15 09:01:27 http://www.techinasia.com/android-market-share-china-2012/ Nov 15 09:02:01 Sad to see AOSP support dropped for the Nexus S and Nexus S 4G Nov 15 09:02:07 in 4.2 and beyond Nov 15 09:02:18 yeah, lamesauce for sure Nov 15 09:02:36 Wonder why it was dropped? Nov 15 09:03:02 becuase nexus 4 Nov 15 09:03:31 oh ib ought a galaxy nexus for a good deal Nov 15 09:03:42 i'm on a CDMA carrier so i need a CDMA phone Nov 15 09:03:46 its exactly 2 years old today Nov 15 09:03:50 (nexus s) Nov 15 09:04:01 yeah Nov 15 09:04:05 expect the other varantes Nov 15 09:04:10 such as the Nexus s 4G Nov 15 09:04:17 well Nov 15 09:04:21 the only varant actually lol Nov 15 09:04:48 i guess being ona CDMA carrier has it's limitations? Nov 15 09:04:52 is there a 'best' way to communicate with a (remote) database? Nov 15 09:04:57 actually it became available on dec 16, so less than 2 years old Nov 15 09:04:59 even lamer Nov 15 09:05:07 eg json, xml via REST/SOAP... Nov 15 09:05:34 CM will likley be there for you Nov 15 09:05:50 wonder if there will be unoffical AOSP? Nov 15 09:05:59 There will be Nov 15 09:06:20 they going to drop the galaxy nexus next year? lol Nov 15 09:06:50 I think the NS was a bit slow on 4.1 so I doubt they were goignt to keep it going Nov 15 09:07:01 i do agree on being a bit slow Nov 15 09:07:11 How long do you think the nexus 7 will last? Nov 15 09:07:12 'ello Nov 15 09:07:18 A while Nov 15 09:07:31 About 1 more year i think Nov 15 09:07:38 huh? lol Nov 15 09:07:44 it hasn't been out a year Nov 15 09:07:51 To hard to see because of the release requirements Nov 15 09:07:58 and newer android requirements Nov 15 09:08:04 yeah Nov 15 09:08:15 google now is the only thing that is slow Nov 15 09:08:18 on the nexus s Nov 15 09:08:46 in general ui Nov 15 09:08:54 i cant see a diff betwene my galaxy nexus and nexus 7 in speed Nov 15 09:08:59 this is general stuff not games Nov 15 09:09:02 i wonder why? Nov 15 09:09:40 Depends Nov 15 09:09:54 Have you ever compiled CM Nov 15 09:09:58 and messed around Nov 15 09:10:07 i use AOSP roms Nov 15 09:10:20 if I can Nov 15 09:10:24 Google aim to put the Gnexus and NS speed at the same 60FPS Nov 15 09:10:37 because then theres consistency Nov 15 09:10:47 and screen refresh rate Nov 15 09:10:50 http://www.gsmarena.com/samsung_dart_t499-4055.php this was my first android. Nov 15 09:11:02 it was a pile of CRAP lol Nov 15 09:11:05 G1 Nov 15 09:11:22 240 x 320 pixels Nov 15 09:11:35 nice high rez isn't it? Nov 15 09:12:06 hah ;) Nov 15 09:12:22 pclov3r: hey, at least you got Froyo officially! :P Nov 15 09:12:57 i went to a nexus s 4g and now a galaxy nexus Nov 15 09:13:03 cdma Nov 15 09:13:12 The reason the NS and Gnexus is like the same is because of optimistations in 4.1 Nov 15 09:14:02 http://www.phonearena.com/news/PhoneArena-Awards-2011-Worst-phone_id24697 Nov 15 09:14:07 the dart is in ther Nov 15 09:14:24 as I said, at least you had Froyo officially :> Nov 15 09:14:40 yeah lol Nov 15 09:14:42 The Motorola Cliq XT was pretty bad Nov 15 09:15:15 http://www.gsmarena.com/lg_optimus_s-3583.php i bought my mom this Nov 15 09:15:24 It blows away that dart for a small phone Nov 15 09:16:15 but i gave my mom the nexus s 4g Nov 15 09:16:20 so what should I do with this? Nov 15 09:16:43 it has an offical GB update. Nov 15 09:16:52 Do any of you code or just come here to talk Nov 15 09:17:12 i shuld take this to android :) Nov 15 09:17:49 You should Nov 15 09:18:13 And leave the people who code use the channel ;) Nov 15 09:22:02 p_l: did you see mocl ? Nov 15 09:22:17 mocl? Nov 15 09:22:22 don't recall Nov 15 09:22:43 http://wukix.com/mocl Nov 15 09:23:39 is there no simple (single line) method of comparing an int to enum ? Nov 15 09:23:56 g00s: sounds interesting... and I strongly suspect it's an ECL fork :) Nov 15 09:24:27 if i did anything lispish in the future i would probably just end up using clojure Nov 15 09:24:35 but … Nov 15 09:24:49 clojure is too steeped in Java for me Nov 15 09:25:13 man i hated cl ffi with all the hate i could muster Nov 15 09:25:30 why> Nov 15 09:25:30 ? Nov 15 09:25:50 my experience with FFI was rather positive. Except for C++, but C++ is never positive in FFI :> Nov 15 09:25:56 heh Nov 15 09:25:57 C is my personal favourite but I'm quite good at Java Nov 15 09:25:59 i used mostly c++ Nov 15 09:26:00 Hi guys, I would like to know when are called the methods onCreate and onStart precisely in a Service ? Nov 15 09:26:48 p_l: you'll be sad to know that, c++ seems to be gaining in popularity again or something Nov 15 09:26:58 or so i hear Nov 15 09:27:11 i'm sure hackkitten will be happy Nov 15 09:27:48 * hackkitten dances on the ceiling~ (o/ Nov 15 09:28:10 evil hackitten :P Nov 15 09:28:15 ;) Nov 15 09:28:20 * hackkitten dances on the grave of Java~ Nov 15 09:28:53 well, I don't have much against disliking java. But C++ isn't roses either (and FFI with C++ is... crap. Also, you can put only so much lipstick on the pig) Nov 15 09:29:20 you can't put any lipstick on a pig pig will eat the lipstick Nov 15 09:29:58 C++ - the pig that had *too* much lipstick to eat it (also, it barfs it all the time) Nov 15 09:30:08 thats like throwing an exception from your destructor Nov 15 09:30:12 I like the free rope that comes with C++ :D Nov 15 09:30:37 hackkitten: you mean half-assembled gun pointing towards the person holding it? Nov 15 09:30:49 no, its a nuclear bazooka Nov 15 09:30:53 p_l > works too Nov 15 09:31:37 I still like C++, though :o Nov 15 09:31:51 * hackkitten stabs all other languages except for Ada Nov 15 09:31:51 anyway, C++ is IMO just as bad (if not worse) than Java, in terms of poisoning programming environment) Nov 15 09:32:00 meh, at least C++ gives you choice Nov 15 09:32:06 *SNRK* Nov 15 09:32:09 Java is like a USSR work camp Nov 15 09:32:12 :P Nov 15 09:32:24 hackkitten: you haven't seen USSR work camp, believe me ;P Nov 15 09:32:29 Go! Nov 15 09:32:33 * mrenouf|work ducks Nov 15 09:32:36 LOL Nov 15 09:33:08 c++ seems like it would be like russian DMV Nov 15 09:33:19 g00s: yeah, more like it Nov 15 09:33:26 at least no one here is trying to defend PHP Nov 15 09:33:33 haha Nov 15 09:33:33 lol Nov 15 09:33:40 well, PHP beats CF Nov 15 09:33:43 * hackkitten smirks Nov 15 09:33:46 while Java is a bit of overgrown bureaucracy but which actually tries to follow quality Nov 15 09:34:01 p_l > seriously, no unsigned integers? Nov 15 09:34:32 they're whatever you want them to be... it's just presenting them as signed :-) Nov 15 09:34:32 hackkitten: given the purpose of Java... yes, why not Nov 15 09:34:44 what _is_ the purpose of Java? Nov 15 09:34:51 or use 32 bits of a long Nov 15 09:34:54 not binary formats or protocols, that's for sure Nov 15 09:34:58 hackkitten: *not* low-level systems programming Nov 15 09:35:06 binary formats isn't low-level Nov 15 09:35:10 O.o Nov 15 09:35:11 also, you can use byte arrays for that, iirc Nov 15 09:35:18 yeah, looked at it Nov 15 09:35:25 I'd rather use C 89 Nov 15 09:35:29 :) Nov 15 09:35:37 how can you claim that Java can't do binary formats or protocols? sure it's not C, but it's perfectly capabily Nov 15 09:35:40 How would I log the port of a DefaultHttpClient? Nov 15 09:35:41 *capable Nov 15 09:35:41 hackkitten: the only place that truly needs unsigned integers is low-level programming - other places allow to use better approach Nov 15 09:35:51 which port its connecting to Nov 15 09:35:56 erm, reading binary formats? Nov 15 09:36:01 it has < > << >>> & ! ~ ^ operators... so? Nov 15 09:36:05 anyway, if you want to work with binaries... Common Lisp and Erlang have C beaten Nov 15 09:36:08 yeah? Nov 15 09:36:21 C is pretty crappy at binary, actuallyu Nov 15 09:36:23 *actually Nov 15 09:36:27 its been in the language since day one. InputStream Nov 15 09:38:48 the only binary formats C is good at is stuff that actually is a dump of memory from C program ;) Nov 15 09:39:49 hello every one Nov 15 09:40:22 some one help me plz Nov 15 09:40:55 I only use Java for android apps :) but I like C way better Nov 15 09:41:04 Anyone have a recomendation on how to let a user pick a custom color for font (this is a heavy text based app) Nov 15 09:41:36 lasserix: out of... endless amounts of colors, or just a few presets? Nov 15 09:41:50 zeeya_786: http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() Nov 15 09:41:52 zeeya_786 : What do you ned help with? Nov 15 09:42:04 I've seen 3-slider RGB controls, they seem to work reasonably. Nov 15 09:42:06 hello plz help me in making of custome rom for htc desire Nov 15 09:42:10 zeeya_786: please read the topic; try #android-root Nov 15 09:42:18 i typed that even before you asked your question Nov 15 09:42:29 somehow i knew you were going to ask something stupid Nov 15 09:42:46 zeeya_786: stick around, make some friends Nov 15 09:43:01 i have htc desire and i checked all custome roms Nov 15 09:43:07 HDroid: not really sure what to do tbh, Nov 15 09:43:20 but oxygen 2.3.2 Nov 15 09:43:26 lasserix: see the color chooser in gmail web app ? Nov 15 09:43:28 is good Nov 15 09:43:38 problem is that Nov 15 09:43:41 also, i think cwac has a color chooser widget Nov 15 09:44:03 oxygen 2.3.2 is not support for 720p video playback Nov 15 09:44:09 That's a simple gridview-like thingy, it's pretty userfriendly if you only need a limited amount of colors. Nov 15 09:44:21 plz give me suggestion Nov 15 09:44:26 HDroid: are users smart enough or patient enough for 3 RGB sliders? Nov 15 09:44:31 goos: do you mean this? http://code.google.com/p/android-color-picker/ Nov 15 09:44:33 yeah, different hues along the top … lightness going down Nov 15 09:44:46 to add 720p HW playback support Nov 15 09:44:57 zeeya_786: #android-root Nov 15 09:45:07 lasserix: depends on your target audience. Nov 15 09:45:13 https://github.com/commonsguy/cwac-colormixer Nov 15 09:45:25 If it's just farm animal name colors, just have a few popular colors :) Nov 15 09:46:49 its for customizing an app widget for an app that is pretty much exclusively text-centered Nov 15 09:47:20 Hey Guys, I couldn't update the actionbar from fragment Nov 15 09:47:37 getSherlockActivity().getSupportActionBar().setSubtitle(subTitle); Nov 15 09:47:44 this doesn't work Nov 15 09:48:46 lasserix: something like this should be easy & sufficient http://gilsmethod.wpengine.netdna-cdn.com/wp-content/uploads/2011/04/custom-gmail-background-colors-570x569.png Nov 15 09:48:58 reminds me of windows 95 , awww Nov 15 09:52:32 all of this is nice but makes me think of app developer suggestion "do the heavy lifting for the user" Nov 15 09:52:52 i just don't expect people to spend the required energy to mix RGB ;p Nov 15 09:52:53 heavy lifting? Nov 15 09:53:12 yeah it says somewhere on the android dev / design "do the heavy lifting" for the user Nov 15 09:53:18 lasserix: did you see the last link of gmail color chooser ? Nov 15 09:53:39 this one? Nov 15 09:53:40 http://gilsmethod.wpengine.netdna-cdn.com/wp-content/uploads/2011/04/custom-gmail-background-colors-570x569.png Nov 15 09:53:52 yeah Nov 15 09:53:57 that should be easy, right ? Nov 15 09:54:13 seems like good usability Nov 15 09:54:20 just a few choices Nov 15 09:54:42 each square should be 48dp , i guess 9mm touch target Nov 15 09:55:21 yeah that was what I was leaning towards, dump a set of standard html colors into a gridview Nov 15 09:55:33 thanks Nov 15 09:55:38 :) Nov 15 10:01:36 Leeds: i guess wiley will now be handled by oreilly for ebooks Nov 15 10:01:43 but you get safari, right ? Nov 15 10:02:07 nah, I canceled my safari a few years ago Nov 15 10:02:20 hm Nov 15 10:02:47 I just found I didn't use it anything like enough to justify a monthly payment Nov 15 10:03:00 yeah, i dont like subscription stuff Nov 15 10:03:11 *if* you use it, it's great Nov 15 10:03:16 and the dl tokens, etc Nov 15 10:04:05 I had a grandfathered plan which was cheaper than the current plans, but with no downloads - which was fine for me... I've had a few "we miss you" emails offering me a discount if I rejoin, where the discounted rate would still be higher than what I was paying when I canceled Nov 15 10:33:26 hey guys Nov 15 10:33:36 i'm trying to run an instrumentation test on android Nov 15 10:34:02 my app has a webview, and the assert statements are inside the onLoadFinished callbacks Nov 15 10:34:23 the problem is, the instrumentation test doesn't wait for the callback to finish Nov 15 10:35:05 does anybody know how to make the instrumentation test thread wait for the callback before it finishes? Nov 15 10:35:15 i can call Thread.sleep() Nov 15 10:35:25 but i'm looking for a cleaner solution than that Nov 15 10:42:04 o/ Nov 15 10:44:23 I need to keep an app in background, I mean I'm looking for a way to tell android not to kill my app ? I have tried the services stuff but I lost the UI and everything inside.. Nov 15 10:44:48 Anyone know where this is a simply formatted list of common color codes online somewhere? Nov 15 10:45:38 lasserix: you need a list of all color codes possible ? Nov 15 10:45:55 nah just like 40 that cover the range, i didn't want to parse wikipedia but i can Nov 15 10:47:59 lasserix: 6 colors with 7 nuance + 6 white-to-black color is ok for you? Nov 15 10:48:20 maybe? not sure Nov 15 10:48:52 lasserix: the problem is that you won't have orange or stuff like that Nov 15 10:48:57 mmh Nov 15 10:49:21 ah nm thanks tho Nov 15 10:50:41 doing a small script is easy just tell me how long the list may be Nov 15 10:51:09 not sure ~ 100 Nov 15 10:51:23 its for users to be able to pick a text/background color Nov 15 10:51:30 was going to dump into a gridview Nov 15 10:52:13 baptistem: there is no way to preserve your activity with certainty. You can save and reload it's state, though. Nov 15 10:52:19 ok I see, why you didn't make a slider between 0 and FFFFFF ? this will allow all color? Nov 15 10:52:33 ahh that's not a bad idea hmm Nov 15 10:53:11 well the only thing is I am trying to follow developer advice of "doing heavy lifting for user" ie, will user's really want to find their perfect color using sliders and such? or just pick something "close enough" from a preset list Nov 15 10:53:12 be fancy, make hsv sliders :P Nov 15 10:53:26 yeah cause all of like 2% of users will have any idea Nov 15 10:53:36 ;p Nov 15 10:53:47 other way in sdk sample you have a color picke r:) Nov 15 10:54:04 ? Nov 15 10:54:44 /samples/android-/ Nov 15 10:54:59 err I must go, I found answer here : http://stackoverflow.com/questions/2442407/android-color-picker Nov 15 10:55:04 \o Nov 15 10:55:31 ahh thanks for the help Nov 15 10:55:41 like i said you can't garuntee your activity won't be killed Nov 15 10:55:50 so it's better to structure it so that its state is preserved in a way Nov 15 10:56:01 so I should let a service run Nov 15 10:56:20 depends on the state but i don't think you need a service to do that Nov 15 10:56:33 I need to keep a connection with a server so.. :) Nov 15 10:56:39 oh yeah probably then Nov 15 10:57:26 but my app is a little bit... unusual, I'm using webframework (using websocket) with home maid android plugins Nov 15 10:58:19 I will run a service in background for the connection, thx for help :) Nov 15 10:58:43 hello guys I need help! Nov 15 10:59:14 wear sunscreen - that's my advice Nov 15 10:59:23 Does anyone know how I can force change apn setup on my android 4.1.1? Nov 15 11:04:14 webgen try android-root Nov 15 11:04:28 or youtube Nov 15 11:05:39 lasserix thanks dude Nov 15 11:07:47 "Burger King Japan Does All-You-Can-Eat Burgers & Fries" Nov 15 11:07:55 i wonder if these come with bacon Nov 15 11:08:51 is there a way to update the content of an activity while a dialog fragment is showing (without closing the dialog fragment)? Nov 15 11:08:52 hi, I am having a tiny problem, I have a so file that I wish to extract somewhere, I have it in my apk but having troubles with the step that extracts it and puts in some folder for the apk to load later on at runtime :P Nov 15 11:19:40 "Android OS" is eating my battery.. I grabbed some log while the device was sleeping and I'm getting many RPC noise on the logs. http://pastebin.com/s2gyqb3C. How can I track that down ? Nov 15 11:29:12 XORi: call your carrier's customer support Nov 15 11:29:46 g00s: no chance it's a rooted phone. why do you think so ? Nov 15 11:29:58 hello ! Nov 15 11:30:07 Hi Nov 15 11:30:07 XORi: please read the topic Nov 15 11:31:15 I'm looking the way to replace phone number (inside SMS message) by name from contacts Nov 15 11:31:17 well i'm a developer and all I'm asking is how to track down that RPC noise. i'm not asking about rooting/flashing. Nov 15 11:31:31 I would like to populate a layout with multiple TextViews. is there a way to inflate ONCE, duplicate and attach multiple times ? Nov 15 11:31:32 hi.. i have exported android rfs via nfs and mounted by my device. here you see rfs structure: http://pastebin.com/raw.php?i=mdxVuaAQ i changed zygote line in init.rc like: http://pastebin.com/raw.php?i=Vh6z0x9s Nov 15 11:31:44 but i get: http://pastebin.com/raw.php?i=BX5tiXSa Nov 15 11:33:27 Anyone know how/if it's possible to pull drawables out of the Android SDK? I need a particular drawable that's not backwards compatible with my new minapi version. Nov 15 11:33:55 tdignan_: Ohi. Nov 15 11:34:12 aoclown: yes, use apktool. Nov 15 11:34:50 XORi: Is that a 3rd party deal or something that comes with/can be downloaded with SDK Manager? Nov 15 11:35:07 aoclown: not 3rd party. google.. Nov 15 11:35:15 Ok. Ty. Nov 15 11:37:16 bz2. Nov 15 11:37:27 Being a windows dev is hard. Nov 15 11:38:28 this is what logcat says: http://pastebin.com/raw.php?i=Tm1prBhr Nov 15 11:38:33 aoclown: hello Nov 15 11:38:53 lucky I was here.. i had left irc on and it was just autorejoining Nov 15 11:38:59 is there a way to duplicate views ? Nov 15 11:39:31 aoclown: you can either just copy the thing manually out of the platforms/ dir on your hdd, or if you're lucky it's still in the sdk and you can reference it like android.R.drawable.foo Nov 15 11:40:14 tdignan_: Oh, that's handy. I'll try that first. Nov 15 11:40:33 try here first http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Nov 15 11:40:38 it's easiest Nov 15 11:41:25 Well, it's a good idea. But I think my drawable is like a 2px wide nothing. Nov 15 11:41:36 Unlikely to be anywhere useful like that. Nov 15 11:42:51 tdignan_: I feel like I've turned to the darkside. I deleted my github repo and am working on putting ads in my app and supporting lower apis. Nov 15 11:42:55 :( Nov 15 11:43:14 It's just such an interesting experience, I've never sold anything personal before so it's kind of fun. Nov 15 11:44:05 Are there any tools for managing translations for android and iphone? Nov 15 11:44:15 what do you mean, manage ? Nov 15 11:44:46 guys.. which is the correct channel for porting android? Nov 15 11:44:51 i myself have build a small application integrated with google drive that pulls down the documents and formatt them to both platforms. Does anyting like that already exists? Nov 15 11:45:13 IntelliJ IDEA, which is the development tool you should use, has that built-in Nov 15 11:45:42 ok last i tried (like 1-2 years ago) i thought intellij sucked with the android integration. Has that improved? Nov 15 11:45:44 ... nexus 4 has non-removable batter??? Nov 15 11:45:49 lapdis: it's pretty good Nov 15 11:45:52 What ? Intellij > Eclipse Nov 15 11:45:54 lapdis: It's very good Nov 15 11:46:08 ok nice, I'll guess it might be time to give it another try then :) Nov 15 11:47:09 where can I read about this translation support in intellij? Nov 15 11:47:35 What you mean with translation support, just make the values folder for each language. Nov 15 11:47:38 this is related to development as far as a messy harddrive is unconducive to working, but is there a _good_ and original gui for barkmark app somewhere? Nov 15 11:52:30 Hi guys, can you tell me what problem ? i send you my logcat log Nov 15 11:53:04 pastebin it instead Nov 15 11:53:46 here :) http://pastebin.com/VPkkPWjj Nov 15 11:55:03 on line 27 Nov 15 11:55:11 you are calling a function on an object that is null Nov 15 11:55:23 in your activity class Nov 15 11:55:25 in the oncreate Nov 15 11:55:35 aahaa Nov 15 11:55:39 set some breakpoints and check why its null Nov 15 11:55:54 looks like it might be line 24 actually Nov 15 11:56:00 durp: Technically, he's calling a method on a _reference_ that is null. An object can't be null. Nov 15 11:56:02 because that log looks like it's from several runs? Nov 15 11:56:11 (looking at timestamps) Nov 15 11:56:18 loke: indeed, right you are Nov 15 11:56:22 hmm, strange, wait guys, a rebuild and send a new one Nov 15 11:56:58 inc the oncreate source Nov 15 11:58:19 http://pastebin.com/AiKfXmBj Nov 15 11:58:54 Was Schrödinger's cat static? Nov 15 11:59:05 If not, objects can indeed be null. Nov 15 11:59:36 guys, you know i updatet the SDK, and everything crashes, abut okay, my problem is, iam trying android to connect on mysql database, but every single time it fails :/ Nov 15 11:59:52 and i tried maybe 8 tutorials, can someone send me a reliable link to tutorial ? Nov 15 12:00:35 can't you use the default java jdbc tutorials ? Nov 15 12:00:35 DOSP http://android10.org/index.php/articlesdatastorage/235-creating-and-using-databases-in-android-one Nov 15 12:00:56 durp, iam using the odbc, but it fails, in standalone java app it works fine, in android it crashes Nov 15 12:02:36 DOSP: maybe because you're using ODBC? There's a chance to use JDBC, but you need to include the JDBC libs as well Nov 15 12:03:19 hmm, how do i include it ? i mean, just include from java lib. or download jdbc and inclu Nov 15 12:03:30 include it separately from file somewhere on disk ? Nov 15 12:06:51 I found multiple ways of printing text strings to console, like Log or println what are preferred ways and how they differ? Nov 15 12:08:20 you'll have to add jdbc jars Nov 15 12:08:29 not only drivers, but also jdbc framework itself Nov 15 12:17:22 squ, go to #java , this has nothing to do with Android Nov 15 12:17:29 ok Nov 15 12:17:53 anyone knows android boot and zygote? Nov 15 12:25:12 What's the recommended pattern for EditText + Button in terms of layouts, flexible width edittext for orientation changes etc. Nov 15 12:25:26 why buttons? Nov 15 12:25:52 That's... a damned good question. Nov 15 12:25:56 Why do I need a button?! Nov 15 12:26:06 Thanks, that's a great solution. Nov 15 12:26:35 inputtext + button reminds me on windows style dialogs Nov 15 12:26:47 Yea it does, and this is for a search list.. Nov 15 12:26:50 So it should be auto updating anyways. Nov 15 12:26:55 Hi, I can use android.SystemProperties.getBoolean("mykey", true), but how to set "mykey"? Nov 15 12:26:58 foo text [,,,] Nov 15 12:27:38 Also, question... Is wrap_content or 0dp in EditText the better way to achieve wrapping? Nov 15 12:27:51 I use android.os.SystemProperties.set("mykey", "false") to set "mykey" Nov 15 12:28:26 But it doesn't work, does any one know how? Nov 15 12:29:12 yay Nov 15 12:29:26 updated from master GIT, build fails. Typical. Nov 15 12:38:16 how to control silent mode? Nov 15 12:40:13 hi Nov 15 12:48:12 hi, can I make an HTML5 web/app available offline? Is it possible without having to install anything on the phone (only create a shortcut to the web site)? Nov 15 12:49:53 theoretically should work if the app is appropriately done Nov 15 12:50:04 reality loves to disagree, though Nov 15 12:51:54 like the browser losing the cached version of the main index.html may happen? Nov 15 12:52:10 dunno Nov 15 12:52:15 I avoid using HTML5 for mobile Nov 15 12:52:59 If there was an app that allowed to create a shortcut to a certain calendar... (preferably no resource hungry widgets) Nov 15 12:53:53 SuD: dunno if this works for phones but, https://en.wikipedia.org/wiki/Cache_manifest_in_HTML5 Nov 15 12:54:22 I could make the app in a single HTML, then download, then access through the content:// (or like that trick), but updates wouldn't happen automatically Nov 15 12:54:41 Or embed in a WebView Nov 15 12:56:17 mmm... supposedly android 2.0+ supports cache manifest Nov 15 12:56:33 hi, how can i control the silent mode? Nov 15 12:58:03 i want to write an app Nov 15 12:58:06 dataS: I'm not sure if you can as non-root Nov 15 12:58:18 Hi, does any one know what program code is equivalent to "adb shell setprop mykey value"? Nov 15 12:58:19 and I'd be very pissed if an app tried to change my audio settings Nov 15 13:00:26 http://html5demos.com/offlineapp I created a shortcut to this demo, then killed Browser, then still accesible again (yet with only a warning) Nov 15 13:00:38 i am a student and i need it for my project Nov 15 13:01:26 can't apps change volume? isn't that set volume to 0? maybe with some "change system settings" permission and some api? Nov 15 13:02:02 ha ha just figured out title of memoir "In The Sane" Nov 15 13:03:19 SuD: well, that's not the same as enabling silent mode Nov 15 13:03:28 ahh it's a real thing "Hallucinations in the sane" Nov 15 13:03:42 SuD: ie, other apps won't react to it Nov 15 13:04:55 oh, you actually can: Nov 15 13:05:01 http://stackoverflow.com/questions/2048427/how-can-i-detect-whether-the-android-phone-in-silent-mode-programatically Nov 15 13:05:04 my bad Nov 15 13:05:34 still, I'd be pretty annoyed if an app started playing with my settings without asking :) Nov 15 13:06:36 how to fix noclassdef error Nov 15 13:06:46 i've put the jar file in libs folder Nov 15 13:07:17 i want to make app that the user will give her times when the android will be on silent mode Nov 15 13:09:59 davidleon, what IDE are you using? Nov 15 13:11:41 Why does my widget configure activity get confused with my main activity by the android os? Nov 15 13:12:14 yo question, where does cyanogenmods native radio app come from? the nexus? Nov 15 13:15:20 Hi, i need quick small tutorial on how to create connection between mysql hosted on website and android.. I dont want anything with tables, queries and so on, just want ot know how to establish connection to host , please, i tried several tutorials, every one of them was with error Nov 15 13:15:30 the library (so) I use needs libicule.so but where could I find that library? :( found one by googling but it's x86 >.< Nov 15 13:15:40 DOSP: check out what happened to super meat boy Nov 15 13:15:50 you do not want a direct connection from Android to MySQL Nov 15 13:16:03 use JSON in between, and a server to generate it Nov 15 13:16:18 Maurits_ thank you for the link. is it written on java? and how can i use the AudioManager function? Nov 15 13:16:26 well okay, any reliable tutorial source ? Nov 15 13:17:05 DOSP: http://nl.reddit.com/r/androiddev/comments/12vi3u/beginning_android_dev_how_do_i_connect_to_a_mysql/ Nov 15 13:17:27 it lists some items Nov 15 13:18:06 I've read "Why does midgets..." Nov 15 13:18:17 how to trigger event when I click on overlay inside google map? Nov 15 13:19:27 belgianguy what happened to super meat boy? Nov 15 13:19:45 lasserix: his MySQL Connection got extracted from his binary Nov 15 13:20:04 and someone edited his database fields to all say "Problem?" Nov 15 13:20:19 heh Nov 15 13:20:25 :/ Nov 15 13:20:54 story in pictures: http://img820.imageshack.us/img820/1641/itsfinetrustme.png Nov 15 13:21:07 (about Super Meat Boy) Nov 15 13:21:24 yea i see it Nov 15 13:21:54 well i was thinking about it today, that if it is not too dangerous with connecting to remote Nov 15 13:22:19 belgianguy, but tell me about this JSON. do i need Php programming somwhere ? Nov 15 13:22:59 JSON can be generated by a lot of languages, but PHP is a popular choice wrt MySQL Nov 15 13:23:36 I mean, i need, to retrieve data from website, which have some databases .. such as Users ,..and i want to list the USERS .. so should i get it through this JSON anyway ? Nov 15 13:24:06 also the website is not mine ..i cant change or add any codes to the websites indexes e.t.c. Nov 15 13:24:34 DOSP: but you do have direct access to the dbN Nov 15 13:24:38 -N Nov 15 13:24:42 ? Nov 15 13:25:17 i have username and password if you are asking this Nov 15 13:25:57 well, then I'd explain to the person that tasked you with this the inherent dangers that come with it Nov 15 13:27:06 DOSP: if you store the MySQL connection in the Android binary, it's decompilable, opening the whole site db to malicious activity Nov 15 13:27:16 Hi! Do i need to use wakeLock in BroadcastReceiver onReceive if i what to create notification to user? Nov 15 13:27:43 well yea, i thought of tha. so basically i need to do it through JSON .. Nov 15 13:28:08 or XML, Nov 15 13:28:33 I've got a viewpager of listfragment, and the resistance on the left-right swiping of the viewpager is a tad too sensitive Nov 15 13:28:44 anyone know how to increase the threshold? Nov 15 13:28:49 hm, what is shorter to study ? Nov 15 13:29:05 JSON Nov 15 13:29:05 DOSP: http://mobile.dzone.com/news/android-tutorial-series-sqlphp Nov 15 13:29:09 i need to open connection , everything else i can hande..i think :D Nov 15 13:29:29 take a gander there, and see what fits your problem best Nov 15 13:29:41 mdkess: eclipse Nov 15 13:29:50 okay, thanks blegianguy :) Nov 15 13:29:52 tried all methods online Nov 15 13:30:06 none of them helped Nov 15 13:30:30 davidleon: IntelliJ IDEA is a blessing after having getting used to Eclipse Nov 15 13:30:46 probably a classpath thing Nov 15 13:30:56 DOSP: you should assume that anything clientside is compromised. Nov 15 13:30:59 always. Nov 15 13:31:02 those cause the classDefnotfound error Nov 15 13:31:10 what lov said ^ Nov 15 13:31:36 belgianguy: can't use intelliJ Nov 15 13:31:37 Having your app connect directly to a mysql server is Seriously Bad News Nov 15 13:31:40 yea :/ Nov 15 13:31:50 unless it's something that you're developing for yourself just for fun and you're not distributing Nov 15 13:31:54 davidleon, so it sounds like your jar isn't added to the project. Nov 15 13:32:05 mdkess: yep Nov 15 13:32:19 yea, i was thinking about that, but maybe an hour ago i started to think , that basically i store every info directly in app,... too dangerous Nov 15 13:32:21 belgianguy: intellij has some bugs of unicode path Nov 15 13:32:32 belgianguy: and my path gets some unicode chars Nov 15 13:32:46 belgianguy: i mean on windows, my documents folder Nov 15 13:32:50 davidleon, try right clicking on the jar in eclipse, and clicking add to build path. Nov 15 13:32:58 mdkess: tried Nov 15 13:33:06 davidleon, does it appear under referenced libraries? Nov 15 13:33:23 mdkess: yep Nov 15 13:33:32 davidleon, and you've cleaned the project? Nov 15 13:33:51 no Nov 15 13:34:04 now cleaning Nov 15 13:34:05 lov: well, he might be working on MySQL tool :> Nov 15 13:34:33 though seriously, while on other databases I can imagine direct connections if certain care is done for the design, not so with MySQL Nov 15 13:35:03 mdkess: exactly same classdefnotfound error Nov 15 13:35:13 davidleon, what is the full error? Nov 15 13:35:15 so freaking disappointing Nov 15 13:35:15 davidleon: pastebin of said errors? Nov 15 13:35:25 logcat erros? Nov 15 13:35:35 davidleon, build path errors. And when does the error occur? Nov 15 13:35:47 mdkess: when run the app Nov 15 13:36:00 basically, after I swipe the viewpager if I try to scroll the list right away, the viewpager still thinks it's being flung and it moves the view left and right instead of letting the listview scroll Nov 15 13:36:10 anyone? Nov 15 13:36:22 davidleon, one thing to try - right click on the project, properties, and then go to Android, and I think there's some check box next to the jar that says to export it with the project. Nov 15 13:36:26 mdkess: no building errors Nov 15 13:37:57 mdkess: same Nov 15 13:39:22 mdkess: exactly same errors Nov 15 13:39:41 sorry, I don't know :( Nov 15 13:39:47 mdkess: i believe you are referring the java build path export thing Nov 15 13:39:57 which language android apps are written? Nov 15 13:40:05 mostly Java Nov 15 13:40:15 at least that's the native platform Nov 15 13:40:15 how odd Nov 15 13:40:45 i found one said he found solution of adding referenced project under project properties -> android -> add library Nov 15 13:40:51 but the solution is only for android library Nov 15 13:41:05 the library i'm using is a pure java library Nov 15 13:41:22 i really dislike to copy the library source code into my project source tree Nov 15 13:41:24 so freaking stupid Nov 15 13:42:55 davidleon: I've used different pure Java libs, and they don't give a peep Nov 15 13:43:01 (in Android projects) Nov 15 13:43:19 could you get a pastebin of the exact place of the error Nov 15 13:43:22 the text in red Nov 15 13:43:26 exceptions etc Nov 15 13:43:43 eclipse is sometimes a bit buggy when it comes to using external libraries Nov 15 13:43:51 but I've always gotten it to work after a few tries Nov 15 13:44:00 belgianguy: ok Nov 15 13:44:55 Maurits_: I started using IntelliJ after a few tries and lots of hairpulling :p Nov 15 13:45:02 java should realy fix its building system Nov 15 13:45:09 everyone trying to reinvent a new wheel Nov 15 13:45:10 maven Nov 15 13:45:11 ant Nov 15 13:45:17 eclipse own integrated Nov 15 13:45:17 davidleon: this has nothing to do with java Nov 15 13:45:21 intellij Nov 15 13:45:48 anyway, this SO post contains a number of possible solutions: Nov 15 13:45:50 http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android Nov 15 13:45:55 whatsoever, you can claim it's not realted Nov 15 13:46:11 also, as you told earlier, I'd just say do'nt use Unicode in filenames/paths Nov 15 13:46:20 it's a recipe for disaster in the long run Nov 15 13:46:47 it's just that I haven't seen a build system that actually works well yet Nov 15 13:46:58 not for java, not for C(++), not for objective C Nov 15 13:47:01 they all suck Nov 15 13:47:13 wot on earth is the asset folder? Nov 15 13:47:17 The problem is the operating systems Nov 15 13:47:22 Java itself has no problem with it Nov 15 13:47:35 the IDE is doing something stupid in this case, yeah Nov 15 13:47:51 In particular, Windows is the worst offender. Anything bust pure ASCII in filenames is truly the recipie for disaster that belgianguy was talking about Nov 15 13:47:57 loke: does java allow fully free symbols? i.e. full spectrum of UTF-16? Nov 15 13:48:10 p_l: in general, yes Nov 15 13:48:24 p_l: it works on character class Nov 15 13:48:26 loke: not windows, but crap windows apps (which happens with every single other OS as well, with probable exception of Plan9) Nov 15 13:48:39 p_l: no, WIndows itself is broken Nov 15 13:49:03 p_l: the language of the OS version affects the encoding of the file names Nov 15 13:49:04 loke: Windows paths are all unicode unless you're using old compatibility routines Nov 15 13:49:17 So, if you have a Swedish version of windows, you'll end up with CP850 file names Nov 15 13:49:21 like, wtf Nov 15 13:49:34 loke: if you don't use FAT filesystem, the names are actually in unicode Nov 15 13:49:53 surely you mean win850? Nov 15 13:49:55 * Maurits_ runs Nov 15 13:50:02 but if your program uses old pre-NT APIs, the paths are translated Nov 15 13:50:07 Which is why the pathname separator on Japanese windows is ¥ Nov 15 13:50:33 It's really C:¥foo¥bar.txt Nov 15 13:50:35 for Win9x, yes Nov 15 13:50:46 p_l: You get the same in any Japanese windows Nov 15 13:51:14 loke: on NT it's only for consistency for end users - the system will happily accept \ if you use Unicode APIs Nov 15 13:51:23 that's why I just use alphanumeric, even though I'm on Ubuntu Nov 15 13:51:34 and I pretty much have to :p Nov 15 13:51:38 p_l: well, the API's also accept / Nov 15 13:51:41 http://pastebin.com/3mvExCAv Nov 15 13:51:44 p_l: how's that for consistency Nov 15 13:51:46 this's the error message i get Nov 15 13:51:54 the real problem with stuff outside ASCII is how you'll type them somewhere else ;) Nov 15 13:51:58 i've tried the methods in that link Nov 15 13:52:01 none of them helped Nov 15 13:52:05 loke: / is accepted since DOS 2.0 Nov 15 13:52:13 p_l: exactly Nov 15 13:52:17 i.e. the same version that introduced \ Nov 15 13:52:23 and \ is mapped to / Nov 15 13:52:44 because CP/M-derived applications used / for options Nov 15 13:53:04 damn Nov 15 13:53:20 Maurits_: your link doesn't work Nov 15 13:53:34 still, the only *required* path namespace on NTFS is case-insensitive either UTF-8 or UCS2/UTF-16 Nov 15 13:53:53 that link describes multiple resolutions, including one that involves recompiling the library with JDK 6 :p Nov 15 13:54:18 Hey guys, quick question. I have an image in my drawable folder that is 2048 x 849, but when I try to run the app on my Nexus 7 I get .. "Bitmap too large to be uploaded into a texture (2726x1130, max=2048x2048)" Any idea whats going on here? Nov 15 13:54:18 Maurits_: err? Nov 15 13:54:22 pastebin the exact error Nov 15 13:54:22 Maurits_: how to solve it Nov 15 13:54:41 Maurits_: pastebin what error? Nov 15 13:54:52 the runtime error you get Nov 15 13:54:57 the noclasdeffound exception Nov 15 13:55:06 all of the them are runtime errors Nov 15 13:55:14 I noticed 2048 x 849 and 2726 x 1130 are really close in ratio (~2.412) , just don't know where it's getting the size from, I don't have the issue on my HTC Amaze Nov 15 13:55:35 Maurits_: the first line is the first runtime error i get Nov 15 13:55:37 11-15 21:35:32.428: E/dalvikvm(18601): Could not find class 'com.fainvcheck.ViewfinderResultPointCallback', referenced from method com.fainvcheck.CaptureActivityHandler. Nov 15 13:57:05 seems like you have more missing classes than just the zxing stuff you're trying to import Nov 15 13:57:37 *the zxing jar you're trying to include Nov 15 13:59:33 anwyay, rather hard to debug over IRC, this issue Nov 15 13:59:42 especially since you've already tried everything Nov 15 13:59:48 good luck Nov 15 14:00:43 davidleon: what lib are you using? Nov 15 14:00:55 the one that throws errors Nov 15 14:01:14 belgianguy: zxing Nov 15 14:01:22 link? Nov 15 14:01:50 holdon Nov 15 14:02:30 mornin' Nov 15 14:02:51 noclassdeffound , i've had that issue with libraries before Nov 15 14:02:56 proguard was the cause Nov 15 14:03:17 proguard? Nov 15 14:03:26 i had to add some weird param to the progaurd config file but i'm hard pressed to tell you what it was Nov 15 14:03:31 well, either that or JDK mismatch, or build path issues Nov 15 14:03:37 what's Proguard? Nov 15 14:03:38 speakingcode: umm Nov 15 14:03:40 i write in eclipse: import android.media.AudioManager but the compailer dont know android , what to do? Nov 15 14:03:52 speakingcode: sounds very promising Nov 15 14:04:02 speakingcode: i also doubt proguard Nov 15 14:04:12 speakingcode: but not familiar how to deal with it Nov 15 14:04:42 i'm not anywhere near that code right now or i would just look n tell you the param to add to progaurd.cfg to try Nov 15 14:05:01 you can always try running in debug mode Nov 15 14:05:06 but i tried all kinds of stuff, build path, even tried to decompile and recompile, etc etc. it was progaurd in the end Nov 15 14:05:07 and see if the problem still appears Nov 15 14:05:12 debug mode disabled proguard Nov 15 14:05:15 *disables Nov 15 14:05:19 nod Nov 15 14:06:09 how Nov 15 14:06:16 i was using my phone to debug Nov 15 14:06:28 i was able to launch the app in my phone Nov 15 14:06:34 yeah Nov 15 14:06:35 click the small insect icon in the eclipse toolbar Nov 15 14:06:36 just can't function correclty Nov 15 14:06:39 instead of the play button Nov 15 14:06:51 Maurits_: that's exactly what i did Nov 15 14:06:57 then it's not proguard Nov 15 14:07:01 oh, ZXing is a an app where you pass intents to (to read barcodes) Nov 15 14:07:08 is there anyway to fix a galaxy tab to work after the phone!computer icon shows up? Nov 15 14:07:10 also a library Nov 15 14:07:11 I thought it was just a JAR Nov 15 14:07:12 belgianguy: yep Nov 15 14:07:14 ir is Nov 15 14:07:16 *it is Nov 15 14:07:23 belgianguy: i'm using its core jar Nov 15 14:08:03 dbeas1: try #android or #android-root if no one here can help you Nov 15 14:08:06 Maurits_: how can i check jdk mismatch or build path issues manually Nov 15 14:08:17 ok thanks Nov 15 14:08:44 davidleon: I don't know, I usually just try a few of these solutions until it works Nov 15 14:08:54 davidleon: right click on your project folder and go to properties Nov 15 14:09:00 and it doesn't happen to me that often Nov 15 14:09:00 then go to the build path section Nov 15 14:09:18 i would try moving that jar file to the top of list on the export section Nov 15 14:09:57 i don't know why but that has worked for me too before.. i guess it is a dependency chain thing? shrug Nov 15 14:12:15 http://proguard.sourceforge.net/index.html#manual/troubleshooting.html Nov 15 14:13:31 speakingcode i've tried all ordinary methods Nov 15 14:14:11 http://stackoverflow.com/questions/5163819/android-signed-app-classnotfoundexception theres a few different solutions here if you haven't tried them Nov 15 14:14:38 mornin ron_frown Nov 15 14:14:54 yeah Nov 15 14:14:55 how's that bike treating ya Nov 15 14:14:59 hahah Nov 15 14:15:12 I rode yesterday in 32f weather, surprisingly my hands were the only thing that bothered me Nov 15 14:15:14 davidleon: dude your jar probably depends on a jar that you need to add to your build path Nov 15 14:15:30 if your jar references some symbols that arent there you won't know until runtime Nov 15 14:15:33 tdignan: it depends on JRE Nov 15 14:15:35 ah yeah. i hate cold ride, hands are the hardest part to secure it seems like Nov 15 14:15:58 davidleon: oh? it only happens on certain jres? why aren't you just running it on dalvik..? Nov 15 14:16:00 plus my bike is full naked Nov 15 14:16:05 what do you ride speakingcode Nov 15 14:16:28 I don't think what you have here is a class version mismatch because of different versions of jdk. That would throw a classversionexception, probably. Nov 15 14:16:34 i did ride a ninja 6 last, but not anymore Nov 15 14:16:46 had two accidents a month apart, kinda hung it up. need to sell the bike Nov 15 14:16:47 tdignan: i meant the jar you were talking about is JRE only, the lib i relies on only depending on JRE Nov 15 14:16:57 Oh, I see. Nov 15 14:17:12 ahh I dumped my first bike big time, and it made me want to ride more for some reason Nov 15 14:17:17 so you have a jar that depends on a jar that depends on the jre. Nov 15 14:17:53 and buying this duc was probably a bad idea, because now I jsut want more of them (ducs). they arent perfect bikes, they arent the best bikes, but they are the perfect bikes for me Nov 15 14:18:00 i miss it. i wanna get either a sport touring or a chopper or somethin eventually, but not while i live in my city... drivers are anti bike there Nov 15 14:18:01 what was the original goal that led to these unfortunate circumstances Nov 15 14:18:11 oh yeah totally Nov 15 14:18:39 has anyone else problems with signed apk export via eclipse since newest ADT Update? Always get a ClassNotFoundException. Installing via Eclipse works however.. Nov 15 14:18:50 say... anyone know if android can do real JAR libraries with resources embedded yet? Nov 15 14:18:54 umm jdk is really mismatch Nov 15 14:18:56 i rode that ninja from memphis, tn to los angeles in under 48 hours - 18,000 miles, with a buddy once... that story keeps me fulfilled for a while :-) Nov 15 14:19:05 i'll try to compile against same jdk Nov 15 14:19:35 umm not jdk Nov 15 14:19:45 it's compiler compliance level Nov 15 14:19:46 ansgarm: i think that's the same issue davidleon iis having Nov 15 14:19:51 i think it's not jdk related? Nov 15 14:21:06 speakingcode: what were the suggestions? Nov 15 14:21:15 just joined Nov 15 14:21:18 http://stackoverflow.com/questions/5163819/android-signed-app-classnotfoundexception there's some here Nov 15 14:21:42 thanks Nov 15 14:22:09 proguard.sourceforge.net/manual/troubleshooting.html also this; in the past i had this issue and it was progaurd that caused it Nov 15 14:22:14 proguard is the culprit in MANY of those cases Nov 15 14:22:20 ansgarm: are you using a library in your project? Nov 15 14:22:47 speakingcode: yes, multiple Nov 15 14:23:09 so probably proguard? Nov 15 14:23:24 but why now and not before? Nov 15 14:23:49 oh my godness Nov 15 14:23:50 it worked Nov 15 14:23:53 it works Nov 15 14:23:57 \o/ Nov 15 14:24:03 it drives me so crazy Nov 15 14:24:09 i meant it drove Nov 15 14:24:47 what fixed ya davidleon Nov 15 14:24:48 cool Nov 15 14:25:23 hm, it crashes at my Application class, so probably no library stuff involved in this error Nov 15 14:25:33 davidleon: yeah, compiler compliance and jdk are different. if you use two different jdks, you'll be able to see a difference in the class version when you run javap --verbose Foo.class Nov 15 14:28:11 i recompiled the core lib Nov 15 14:28:17 ? Nov 15 14:28:21 against different compliance level Nov 15 14:28:23 and it worked Nov 15 14:28:25 so odd Nov 15 14:28:27 ah Nov 15 14:28:29 yeah Nov 15 14:28:52 compliance level could be one cause Nov 15 14:31:00 works now Nov 15 14:31:17 my compliance level was at 1.5 Nov 15 14:32:08 thank you! Nov 15 14:37:37 great Nov 15 14:39:20 Evenin' folks Nov 15 14:39:43 I ran into a pesky keystore related exception - java.io.IOException: Wrong version of key store. Nov 15 14:40:02 I've been trying different versions of bcprov for the past 30-ish minutes Nov 15 14:40:50 Trying to install an 135MB api (don't ask) to my phone, and it's saying INSTALL_FAILED_INSUFFICIENT_STORAGE even thought my phone says it has 461MB of space, any help? Nov 15 14:41:54 how to trigger back button event Nov 15 14:42:09 button which is on the phone Nov 15 14:45:31 Tee_Pee: yeah, when I used bouncy castle I had to hunt it down Nov 15 14:45:34 I have it in a repo, 1 sec Nov 15 14:46:21 squ: this.dispatchKeyEvent(new Keyevent(ACTION_DOWN, KEYCODE_BACK)); Nov 15 14:46:25 uh oh! Nov 15 14:46:33 hmm, where the hell is it Nov 15 14:47:24 Tee_Pee: use this exact one http://polydistortion.net/bc/download/bcprov-jdk16-145.jar Nov 15 14:47:34 here's a script I wrote to sign it https://github.com/tom-dignan/android-opencnam-library/blob/master/makekey.sh Nov 15 14:47:59 squ: Just call the Activity.onBackPress(), if I remember correctly Nov 15 14:48:03 how do i get a +r to get on the android channel? Nov 15 14:48:41 tdingan - I have a feeling that my certificate might be causing the issue here... I was under the impression that I can just take the big certificate string (starting with -----BEGIN CERTIFICATE-----) and save it as cert.pem via notepad Nov 15 14:49:03 uh, you might be putting '\r' in it Nov 15 14:49:04 also, which jre keytool version were you using to generate the bks file? Nov 15 14:49:12 i don't know if '\r' is permitted Nov 15 14:49:16 i'm sure it would be 1.6 Nov 15 14:49:29 don't use windows notepad for anything. use a real editor Nov 15 14:49:38 and don't put '\r' in any sort of file Nov 15 14:49:52 just for future safety Nov 15 14:50:30 shmoooz, thank you Nov 15 14:50:35 loke, let me try:) Nov 15 14:51:27 alright, here goes nothing Nov 15 14:51:44 no such Nov 15 14:52:17 see the other code in my project. i tried several approaches and ended up having to opt for one that forced acceptance of the certificate, due to a poor cert being used on the server at the time and weird config Nov 15 14:52:28 every approach to self-signed ssl is present in there Nov 15 14:53:04 if I was being paid to do that, it would have been so much cheaper to buy a top of the line cert from verisign, heh Nov 15 14:53:50 different android devices have different certs and stuff. it's nightmarish Nov 15 14:54:48 shmoooz, is this a proper way if I'm going back from a MapView ? Nov 15 14:56:21 Hey Guys, is there any merit of using ActionBar tabs over just PagerTitleStrip Nov 15 14:56:38 squ: no idea, did Activity.onBackpressed() work ? Nov 15 14:56:57 dbeas1: You need to register your nick. Nov 15 14:57:02 Oh heck, did I take that out of this channel? Nov 15 14:57:10 brickhead: if you have more then two "tabs" and want to give fast access to them Nov 15 14:57:27 so that you dont want your user, to swipe through all the tabs, to get their target Nov 15 14:57:29 tdignan - this makekey.sh file you've sent me... this might be a moronic question but... is this unix only? Nov 15 14:57:31 squ: why do you want to do this? Nov 15 14:57:33 I'm on a Windows machine Nov 15 14:57:33 shmoooz, none works Nov 15 14:57:49 if you want to close an activity to return to the previous one Nov 15 14:57:49 timroes: can you use actionbar tabs with viewpager though? Nov 15 14:57:54 use finish() Nov 15 14:58:04 timroes: hmm... yeap that's a valid point Nov 15 14:58:06 the way i'm doing tabs is with a tabwidget, because I found a nice solution in the abs samples that works with a viewpager Nov 15 14:58:07 tdignan: yes you can Nov 15 14:58:07 this might be especially usefull, if there is no possibility for the user to guesswhat other tabs might be there in the list Nov 15 14:58:19 Maurits_, I'm displaying a dialog after click on mapview point, in that dialog I want a choice to go back Nov 15 14:58:29 just close the dialog Nov 15 14:58:39 tdignan: yeah ofc, but I thought his question was about tabs vs. pagertitlestrip :) Nov 15 14:58:46 ie, you don't have to simulate a back press to close a dialog Nov 15 14:58:54 Tee_Pee: uh, you can install cygwin or msys. make sure you fix the bcprov.jar reference to use the one in the CLASSPATH jar if you do. Nov 15 14:59:10 hmm. Nov 15 14:59:12 tdignan: I don't like tabwidget, also they don't fit well with viewpager Nov 15 14:59:26 squ: you can simply call dismiss() on the dialog to get rid of it I think Nov 15 14:59:27 eh? I've got it working perfectly with viewpager Nov 15 15:00:07 tdignan: you've ? hmm. good for you Nov 15 15:00:17 brickhead: well it's in the abs samples Nov 15 15:00:22 it's easy to adapt that to your needs Nov 15 15:00:26 that's why I used it Nov 15 15:00:37 to each his own I gues Nov 15 15:00:53 also iosched uses it Nov 15 15:01:01 brickhead: I would mainly decide for tabs or stripe taking in account, the amount of tabs and how much related they are, e.g. in google play users can guess esaily after one swipe that there will be other top lists of app Nov 15 15:01:16 09:59:03 -!- mode/#android-dev [+ri] by lov Nov 15 15:01:19 argh Nov 15 15:04:03 Official docs at | Can't talk? Register your nick (try "/msg Nov 15 15:04:08 God damnit. Nov 15 15:04:10 :p Nov 15 15:04:16 timroes: got it, can the width for actionbarsherlock tabs be changed ? Nov 15 15:04:24 lov: having fun? Nov 15 15:04:41 The dangers of switching between PuTTY and gterm Nov 15 15:04:43 only thing I've against tabs is they are too darn wide Nov 15 15:04:49 maybe right click opens a context menu Nov 15 15:04:51 maybe it pastes! Nov 15 15:04:56 one way to find out. Nov 15 15:05:46 tdingan - I create the key, and keytool tells me that the version is 3 Nov 15 15:05:51 apparently it needs to be version 1 for it to work Nov 15 15:06:13 brickhead: sorry you cannot change the size of the tabs Nov 15 15:06:24 here is the reasno: https://groups.google.com/forum/?fromgroups=#!topic/actionbarsherlock/Hk-7Lc-0NGs Nov 15 15:07:07 what's the best way to approach a custom 2D UI? Nov 15 15:07:13 eg a card game of some sort Nov 15 15:07:35 play it cool. Nov 15 15:07:41 Buy it a drink, maybe, from across the room Nov 15 15:07:42 timroes: thanks Nov 15 15:07:43 lock eyes Nov 15 15:07:44 lol, new error Nov 15 15:07:45 Caused by: java.io.IOException: KeyStore integrity check failed. Nov 15 15:07:52 if the UI looks intrigued, sidle over Nov 15 15:07:52 lov: :p Nov 15 15:08:20 buy it jewelry !!! that always works for me Nov 15 15:08:52 capella: well I'd be broke then :p Nov 15 15:09:14 i guess if its 2D you'd have to buy a ring Nov 15 15:09:29 (flatland? :P ) Nov 15 15:10:15 urgh, I guess UI will have to wait some more Nov 15 15:10:32 capella: zing Nov 15 15:10:48 belgianguy: are you going to be using a graphics engine, or are you going to be using Android layouts, or what? Nov 15 15:11:03 lov: that's the question Nov 15 15:11:03 if you're using a graphics engine, you either use the layout system that the engine uses, or you roll your own. Nov 15 15:11:08 Hi! Do I need use WakeLock in onReceive of BroadcastReceiver to create Notification? Nov 15 15:11:19 lov: I want it to be pretty Nov 15 15:11:22 so I'd say engine Nov 15 15:11:26 Udmurt: no. Your onReceive will hold a wakelock until it returns. Nov 15 15:11:43 belgianguy: so you either use what the engine uses or you roll your own. Nov 15 15:11:49 but hooking up Unity of some sort looks like overkill for some playing cards Nov 15 15:11:52 Thanks, lov! Nov 15 15:11:56 https://gist.github.com/4079081 how to tell from inside positiveButton to parent mapView object that I want to go back or call finish() ? Nov 15 15:12:05 anyone know a way to ignore INSTALL_FAILED_VERSION_DOWNGRADE Nov 15 15:12:07 Maurits_, ? Nov 15 15:13:31 lov: perhaps a Canvas suffices? I'll have to investigate Nov 15 15:14:02 squ: first of all, you're not telling the mapview, you're telling the mapactivity managing the mapview Nov 15 15:14:04 squ: call finish()? Nov 15 15:14:24 squ: secondly, what precisely do you want to accomplish? Nov 15 15:14:31 belgianguy: well, ok. Nov 15 15:14:33 do you want to close the dialog, or close the entire activity? Nov 15 15:14:35 When I say "graphics engine" Nov 15 15:14:47 I mean "a module that handles drawing for you" Nov 15 15:15:01 i.e. it handles drawing to the canvas for you, while you give it higher level information Nov 15 15:15:03 Maurits_, I want to close map view activity from that dialog Nov 15 15:15:23 lov: ah, those exist? Nov 15 15:15:27 call finish() on the activity Nov 15 15:15:34 tdignan - using jre6 instead of 7 did the trick, thanks a lot. Nov 15 15:15:36 i.e. you tell it "draw this model" instead of "drawTriangle, drawTriangle, drawTriangle, drawTriangle, etc" Nov 15 15:15:44 I knew Unity for the 3D stuff; or OpenGL as well Nov 15 15:15:47 Too bad adding the certificate as trusted didn't solve the SSLException... talk about a wasted hour. Nov 15 15:15:49 er, yeah. Nov 15 15:16:00 belgianguy: you might want to look up existing game engines for Android Nov 15 15:16:14 belgianguy I'm working on a toolkit :P Nov 15 15:16:37 ESphynx: what's it called? Nov 15 15:16:43 belgianguy it's called the Ecere SDK Nov 15 15:16:47 thanks lov btw Nov 15 15:16:52 Maurits_, to do that how could I refer to that activity? Nov 15 15:16:56 Tee_Pee: jre 7 yikes :) Nov 15 15:17:04 squ: ActivityName.this.finish() Nov 15 15:17:17 ah Nov 15 15:17:17 squ: you don't have to do anything in this case, since it's a private inner class Nov 15 15:17:18 anyone here use guava Cache & CacheBuilder? Nov 15 15:17:21 if yuou want to call somethionf on the outer class object Nov 15 15:17:22 it can access the activity state Nov 15 15:17:32 I thought about instantiating dialog object with parent parameter :) Nov 15 15:17:41 or if the inner class doesnt jhave any finish method, just call finish(), it will take the outer class ones Nov 15 15:17:42 if so, is Cache.asMap() going to be much different performance wise as if I had a regular ConcurrentMap? Nov 15 15:17:44 so yeah, back to javax.net.ssl.SSLPeerUnverifiedException: No peer certificate Nov 15 15:17:45 squ: what timroes says is the nicest to do Nov 15 15:17:55 day 3 Nov 15 15:17:58 but this.finish() or just plain finish() will also work in this case Nov 15 15:18:04 I would like to build linux binaries so I can push them over to the android emulator... which distro should I use for this so I do not run into any issues with dependencies Nov 15 15:18:09 I've heard debian Nov 15 15:18:11 but not sure Nov 15 15:18:29 ESphynx: I'll check it out! I'm pretty novice on the engine front Nov 15 15:18:31 timroes, if 'finish()' is not highlighted by eclipse, it will be called by what is upper in stack? Nov 15 15:18:36 I'm used to raw OpenGL Nov 15 15:18:39 and C++ Nov 15 15:19:16 squ: sorry I don't use eclipse, can't tell you that :/ Nov 15 15:19:25 squ: well, in java if an inner class is private, it has access to the enclosing class' private state Nov 15 15:19:26 timroes, what do use? Nov 15 15:19:30 belgianguy: you realize you can use the NDK to write a C++ based app, right? Nov 15 15:19:32 such as 'this' Nov 15 15:19:33 and you have GLES access Nov 15 15:19:35 I dont like eclipse much too :) Nov 15 15:19:38 does anyone here have any experience making a dockingstation for their phone using an arduino+usb host shield? Info is too sporadic and vague, so i can't get anything working Nov 15 15:19:39 so you could really just write your own engine. Nov 15 15:19:48 yes love, I do Nov 15 15:19:50 actually, it looks like android uses its own custom standard c library and kernel Nov 15 15:19:53 lov* Nov 15 15:19:54 Maurits_, thank you! Nov 15 15:20:09 belgianguy with my SDK all the hairy stuff is out of the way :P Nov 15 15:20:21 squ: NetBeans, but ofc its android support is way behind eclipse, but using eclipse several years as a system administrator AND developer, I get along with the limited NetBeans Android support, just to NOT use eclipse anymore :) Nov 15 15:20:28 lov: but I just know I'll overcomplicate things Nov 15 15:20:57 IntelliJ IDEA > * Nov 15 15:21:17 * Zharf agrees Nov 15 15:22:01 * capella hates eclipse ... eclipse ... BAD Nov 15 15:22:11 capella: so don't use that garbage then? Nov 15 15:22:17 Like belgianguysays. IDEA is the one Nov 15 15:22:24 I also gave IntelliJ IDEA a shot, but the main problem I had with it: you open it and get the same feeling like in eclipse, its absoluteely overloaded. Just try to have a look at the project settings... a) where are they, i dont think File->Settings is intuitive to find :) b) looks even worse then eclispe settings imho. But my main problem was that IntelliJ IDE couldnt handle project groups well enough, so I could switch easyi Nov 15 15:22:26 loves @ intelliJ :P Nov 15 15:23:08 I have two activities in my app, the main launcher activity and the widget configuration activity. Sometimes after the widget config activity has been started and navigated away from, and I start the main launcher activity the widget configuration activity shows up. Why could this be? Nov 15 15:23:13 I'm on the 12 EAP edition, find it more clean and intuitive than Eclipse, but YMMV Nov 15 15:23:33 timroes, I can't do MyMapActivity.this.finish(); or just finish() inside positiveButton Nov 15 15:23:39 timroes: I jag understand your frustration. I've used IDEA since version 3, so I have grown up with it. I can see how getting into it now, could be somewhat more time-consuming Nov 15 15:24:12 My hair fell out because of Eclipse's huge Java and Debug Views Nov 15 15:24:32 wishes I could turn off intelliJ auto code styling ... but thats the only issue I've found Nov 15 15:24:38 loke, but its mainly advantage over eclipse: it runs smooth and fast, its not as eclipse like riding a drunken elephant through a glass factory Nov 15 15:25:00 belgianguy: read up on the internet about graphics engines and game engines. If you're familiar with OpenGL you've probably already written a graphics engine without realizing it. Nov 15 15:25:21 Maurits_, it errors and do not call finish(); Nov 15 15:25:24 timroes: Of course. I'm the biggest IDEA fan ou tthere :-) Nov 15 15:25:28 lov: for uni, we had to write a tennis game, 2 skeletons playing each other :) Nov 15 15:25:33 squ: you get compile errors? Nov 15 15:25:54 anyone know of a good build system to use for android? Nov 15 15:26:00 and I don't know in what ways ES is different from the vanilla Nov 15 15:26:01 automated build system I mean Nov 15 15:26:03 timroes: I also have had the misfortune of having to write modules for Eclipse, and let me tell you, the garbage is even worse designed on the inside than the outside Nov 15 15:26:04 ES 2.0 Nov 15 15:26:05 loke: I like at NetBeans that it is so not overfilled and pretty fast, but its android support really sucks. Nov 15 15:26:08 that runs unit tests, BA's everyone Nov 15 15:26:09 timroes, yes it is compile error Nov 15 15:26:27 squ, what exactly does the error say? Nov 15 15:27:15 The method finish() is undefined for the type new DialogInterface.OnClickListener(){} Nov 15 15:27:24 hm Nov 15 15:27:31 do as timroes said then Nov 15 15:27:34 should I pass reference to parent? Nov 15 15:27:37 ActivityName.this.finish() Nov 15 15:27:55 than at least you should get another compile error :D Nov 15 15:27:57 the enclosing class is your activity right? Nov 15 15:28:20 idk Nov 15 15:28:33 where do I get activity name? where is it defined? Nov 15 15:28:33 don't you think you should follow a java tutorial first? :\ Nov 15 15:28:36 R.java? Nov 15 15:28:39 belgianguy: GLES is somewhat different from OpenGL. There's a heavy emphasis on arrays, instead of being able to perform single steps. Nov 15 15:28:47 squ the activities class name Nov 15 15:28:55 Maurits_, this is what I'm doing. going thru tutorial Nov 15 15:28:59 in what class is that method? Nov 15 15:29:00 squ: I think you should start with http://developer.android.com/training/index.html Nov 15 15:29:06 https://developers.google.com/maps/documentation/android/hello-mapview Nov 15 15:29:06 squ: this is an android tutorial, not a java tutorial Nov 15 15:29:19 squ: yeah, no. Nov 15 15:29:19 ok Nov 15 15:29:28 squ: you should start with the regular android tutorials before worrying about mapviews. Nov 15 15:29:46 squ: anyway, at the top of your java file is something like: Nov 15 15:29:48 the mapview tutorial explains how to use the mapping api, and assumes that you already know how to develop for android. Nov 15 15:29:58 public class MyMapActivity extends MapActivity Nov 15 15:29:59 ok Nov 15 15:30:03 what does it say exactly? Nov 15 15:30:04 When I have tabs enabled in the actionbar and at the same time links on a webview, I can't click the webview links Nov 15 15:30:07 they just don't responde Nov 15 15:30:30 public class HelloItemizedOverlay extends ItemizedOverlay Nov 15 15:30:48 dude guava's CacheBuilder is so sweet Nov 15 15:30:53 instant LRU cache, no effort required. Nov 15 15:32:30 public class MyMapActivity extends MapActivity Nov 15 15:33:17 squ: if your method is inside your MyMapActivity, you can call MyMapActivity.this.finish(); inside your positiveButton listener Nov 15 15:33:27 tdignan, there's an LruCache in the support lib Nov 15 15:33:55 No enclosing instance of the type MapActivity is accessible in scope HelloItemizedOverlay.java Nov 15 15:34:20 funny that my caliper registers touch events Nov 15 15:34:25 No enclosing instance of the type MyMapActivity is accessible in scope HelloItemizedOverlay.java Nov 15 15:35:00 squ: please do the android tutorial. If you don't know java, please learn java before you do even that. Nov 15 15:35:07 If you don't know java, we're not going to answer questions like this. Nov 15 15:35:29 I have two activities in my app, the main launcher activity and the widget configuration activity. Sometimes after the widget config activity has been started and navigated away from, and I start the main launcher activity the widget configuration activity shows up. Why could this be? Nov 15 15:35:46 ok Nov 15 15:35:54 Is there a way to pull the contents from a URL without grabbing the HTML? In this case I have a url that has a list on it of items and I want to get the items returned as an array of strings but NOT the HTML code Nov 15 15:36:15 canadiancow: yeah I've seen that in the docs as well. I've got my own little setup -- I ripped the classes related to RemoteImageView out of the ignition library which already used guava. I just upgraded their usage of guava to the latest guava using CacheBuilder instead of the deprecated methods in MapMaker... If this doesn't pan out I'll try to replace it with that LruCache you mention Nov 15 15:36:17 lasserix: probably because it's part of the same task, and you didn't do NEW_TASK or something. Nov 15 15:36:43 canadiancow: it's pretty nice, it asynchronously loads and caches the image pretty much automatically Nov 15 15:37:39 lov: thanks for the pointer Nov 15 15:48:03 Hey, i've got a dialog fragment. when it's open and the user choose to rotate the screen, the app crashes. any simple solution for that? Nov 15 15:49:18 sure; don't rotate the screen. Nov 15 15:49:27 docmur: return JSON response for the request and parse it at client Nov 15 15:49:34 alternately, handle your activity / fragment state correctly. Nov 15 15:50:02 lov: what's not being handled? Nov 15 15:50:30 I've tried that, the data is remote requested so the JSON request is empty, the data is built into the webpage Nov 15 15:51:08 where can i find out why my htc evo phone is not connecting to my computer,... driver issues or some such,.. i need to root it Nov 15 15:51:14 socket: I have no idea. You've told us "My app crashes, halp" Nov 15 15:51:23 A stacktrace or something would be nice. Nov 15 15:51:55 aah didn't read your question correctly, why didn't you try parsing the interesting part of html using Javascript Nov 15 15:52:31 if you don't control the server, then that's the options you have Nov 15 15:53:33 ya I was thinking about that but it could get messy any not do any real value add to the app, it's just something some one wanted, for me grab the URL data and make a listview instead of showing the list in the webview Nov 15 15:54:42 docmur: you're going to have to pull down the HTML file and then parse it somehow, that's your only option. Nov 15 15:56:09 I have a dialog fragment with some text I want the user to be able to change the size of the text, however when I call setTextSizereflect the changed size the dialog fragment grows vertically and off the screen. I tried wrapping the text inside a scrollview but that doesn't work. Any ideas on what I can do to keep the dialog fragment size fixed, without closing and opening again? Nov 15 15:59:27 How is it possible that my httpclient (or alternatively, httpurlconnection) ignores me forcing it to trust every SSL certificate Nov 15 15:59:35 nothing, NOTHING can get it to talk to my server Nov 15 15:59:45 only on Gingerbread Nov 15 15:59:50 lov: does this help? http://pastebin.com/sBQBhaBh Nov 15 16:00:05 Tee_Pee: how do you try to force it? Nov 15 16:00:24 never try to force insecure ssl. it will end up in academic papers regarding android insecurity Nov 15 16:00:45 lov: line 37 is where it starts to go bad Nov 15 16:01:09 I tried several dozen methods... Nov 15 16:01:15 http://stackoverflow.com/questions/995514/https-connection-android second answer here being the most recent attempt Nov 15 16:02:12 Tee_Pee: looks pretty much the way, I did it, and it worked :) Nov 15 16:02:31 hello, i am trying to apply a style to a button but it doesnt take over my style. what can it be Nov 15 16:02:40 is it invalid because it cannot be verified against a root certificate? Nov 15 16:02:46 or might it be invalid, because the host doesnt match Nov 15 16:03:56 timroes, talking to me? Nov 15 16:04:02 no to Tee_Pee :) Nov 15 16:04:23 Tee_Pee: thats the way i did it: https://github.com/timroes/aXMLRPC/blob/master/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java#L609 and as far as i tested it worked also on gingerbread Nov 15 16:06:08 hey! is there any possibility to install Google Voice Search in emulator? Nov 15 16:07:05 ya I just gave up on that, to much effort for nothing addded, my last issue is this annoying searchbar issue, I call onSearchRequested() in an activity XXX and it loads activity YYY with the results but in YYY If I click the search button again it wont call the searchbar Nov 15 16:07:12 the logs don't seem to have info in them as to why Nov 15 16:11:28 Is there a picker widget like the alarm clock time picker from ics floating around online? Nov 15 16:12:47 How can it be that my button does not take over the style in my drawable Nov 15 16:13:17 You gota sweet talk it Nov 15 16:16:45 ugh, the Droid DNA will have the xx-hdpi Nov 15 16:20:48 hey guys, where can I post a code? Nov 15 16:21:31 belgianguy: what's the point of 440dpi anyway? Nov 15 16:22:05 what is this exotic phenomena i observe; launching an app (that's already running) is not the same as switching to it from the running-apps-stack ?? where can I read more about this Nov 15 16:22:13 Just got bit by a fun discovery. ContentProviders are initialized before ApplicationContext. Nov 15 16:22:17 defuera: try here: http://pastebin.com/ Nov 15 16:22:54 or rather onCreate() is. Nov 15 16:22:55 aaaanyone's here? Nov 15 16:23:21 mrenouf: wait, what? Nov 15 16:23:26 attachInfo gets called after Nov 15 16:23:30 evancharlton, yep! Nov 15 16:23:39 mrenouf: what do you mean by initialized? Nov 15 16:23:46 constructor or onCreate() ? Nov 15 16:23:51 onCreate() Nov 15 16:23:58 forehead for best performance Nov 15 16:24:00 it's true! Nov 15 16:24:16 defuera: forehead for best performance or pastebin.com Nov 15 16:24:25 then, attachInfo() after Nov 15 16:25:11 lost a whole day scratching my head cause I started depending on injection there, and well, it was not loading Nov 15 16:26:35 In fact the docs say don't do much of anything in onCreate because it's called on the main thread Nov 15 16:27:22 why is launching an already-running app any different than switching to it from the app-switching-stack ? Nov 15 16:30:31 So the deal with xxhdpi is that you wont really need to create more resources. Nov 15 16:31:34 320dpi scaled to 440dpi is not going to be visible except with a magnifying glass, but fonts and prodedural graphics (openGL, lines, arcs, curves, gradients, etc) will automatically benefit(*) Nov 15 16:31:49 (*): that is, if you consider 440dpi any improvement Nov 15 16:35:54 i see no reason why onCreate() should be called every time my already-running app is launched again (versus it being switched back to from the open-apps stack) Nov 15 16:37:22 defeats the whole purpose of onCreate() vs. onStart() / onResume() Nov 15 16:37:48 regedit, you can control that with Intent flags Nov 15 16:38:12 set the Activity to SINGLE_TOP Nov 15 16:38:45 the Activity will get onRestart() called, followed by onStart() and the rest, but not onCreate() (the instance will be reused) Nov 15 16:39:26 I know I asked this like 1/2 hour ago but I still can't figure this out Nov 15 16:39:27 Sorry, I meant onNewIntent Nov 15 16:39:28 ya I just gave up on that, to much effort for nothing addded, my last issue is this annoying searchbar issue, I call onSearchRequested() in an activity XXX and it loads activity YYY with the results but in YYY If I click the search button again it wont call the searchbar Nov 15 16:40:01 mrenouf: hmmmmmmmmm.... thanks. shouldn't this be the default behaviour? wtvr... Nov 15 16:40:52 regedit: no, not necessarily. Nov 15 16:41:04 ohai lov Nov 15 16:41:06 You might be making an application that has generic behavior meant for sharing Nov 15 16:41:07 Maurits_: sorry, was afk, xxhdpi is very high resolution I presume, but at what point does the eye stop noticing? Nov 15 16:41:13 for example, lets say that you're making a file explorer application Nov 15 16:41:22 yes Nov 15 16:41:27 you might actually want to have several instances of your activity open in different task stacks Nov 15 16:41:36 hm.. Nov 15 16:41:36 because the user can hop between tasks Nov 15 16:42:00 this is also why you should shy away from static variables for your activities, etc Nov 15 16:42:05 unless they're meant to be static final Nov 15 16:42:17 right, i do remember multiple instances of Settings being open Nov 15 16:42:20 "static cling" Nov 15 16:42:44 oh yeah there's also a flag "SINGLE_INSTANCE" which is even more strict Nov 15 16:42:49 oh, I didn't even know that Nov 15 16:42:59 (not that I'm any reference :/) Nov 15 16:43:10 the docs say about singleTop: "If an instance of the activity already exists at the top of the target task, ..." what does this mean "top of the target task" ? Nov 15 16:43:17 belgianguy: it's high density, not high resolution. Nov 15 16:43:22 belgianguy: dpi != screen size Nov 15 16:43:26 A "task stack visualizer" would be useful (akin the HierarchyViewer) Nov 15 16:43:32 regedit: read about task stacks Nov 15 16:43:37 lov: correct, that was from the hip and it was wrong Nov 15 16:43:51 lov, technically speaking "resolution" is dpi... the term is used improperly Nov 15 16:43:52 it's hip to be square Nov 15 16:44:21 it comes from being able to "resolve" details Nov 15 16:44:32 such as analog TV days Nov 15 16:44:53 lov: do you know Blackadder? Nov 15 16:44:53 but just nitpicking, ignore me ;-) Nov 15 16:45:22 belgianguy: the mr. bean vehicle? yes. Nov 15 16:45:42 there's this running gag where there's a Cpt. Darling Nov 15 16:46:08 and they all say Yes, Darling, no, Darling etc Nov 15 16:46:28 I read the chat, and I keep getting that effect with your nick Nov 15 16:48:22 Mr Bean vehicle? ye gods... Nov 15 16:48:55 Hey there! Nov 15 16:49:07 Is there a way to get a snapshot of the live wall paper currently running somehow? Nov 15 16:49:12 *from an activity Nov 15 16:49:38 At some places in my app, a new activity gets started without user intervention. Unfortunately, this brings my app to the foreground. Is there a way to launch a new activity but keep the app in background? Nov 15 16:50:13 evancharlton, it's worse! ContentProvider onCreate() and attachInfo() are both called before Application.onCreate(). WTF? Nov 15 16:51:01 any good books/famous bloggers on Android Game UIs? Nov 15 16:51:05 (I googled) Nov 15 16:51:28 ...or any good books about android games in general? Nov 15 16:51:46 hey guys, is there any reason why Z buffering is messed up in the emulator? :S Nov 15 16:52:03 Wild guess: Have you turned on hardware acceleration? Nov 15 16:52:18 UnbertKant: about the bg activity, why not use a Service? Nov 15 16:52:37 I think an Activity will always get the focus Nov 15 16:52:53 while a Service won't (by default at least) Nov 15 16:53:59 Well, the situation is like this: The service is downloading stuff from a server, then the user changes his password in the browser on his computer. The server tells the app "you are not authenticated!" and the app decides to lock down and present the user with a "your password changed, please enter your new one"-activity. Nov 15 16:54:18 ...which jumps to the foreground... Nov 15 16:54:36 UnbertKant, use a notification for that Nov 15 16:55:02 from the service Nov 15 16:55:14 Yes, maybe I should do it like this: if the app is in foreground, start the activity, if it's in background start a notification that then starts the new activity... Nov 15 16:55:54 Other thing: First, there's a splash screen activity, then you go to the main activity. So if the user presses home during the splash screen, the main activity will still pop to foreground. What should I do? Nov 15 16:56:06 Remove the splash screen. Nov 15 16:56:21 I agree, but the customer doesn't. Nov 15 16:56:26 :-( Nov 15 16:56:30 UnbertKant: remove the callback in onPause() Nov 15 16:56:42 UnbertKant: presumably you're doing this with Handler#postDelayed(Runnable,long) Nov 15 16:56:58 in that case, remove the callback with Handler#removeCallbacks(Runnable) Nov 15 16:58:08 No, it's like that: first activity is a bootstrap activity, which decides whether to show a splash screen, or a login activity, or the main activity or a update enforcement activblablablablablabla. It then starts the splash screen, which does some updates. The splashscreen then finishes itself and the bootstrap activity then starts the main activity. Nov 15 16:58:53 This really seems like a bug to me... attachInfo(Context, ProviderInfo) of a ContentProvider passes the ApplicationContext BEFORE it's onCreate has been called. I wonder if it's a dependency chain issue (ApplicationContext needs a published ContentProvider before it can be created??). Ugh. Nov 15 16:59:42 Why is 3D so slow in the emulator? :S isn't it supposed to be using my GPU? Nov 15 16:59:46 normally I wouldn't care but I have a very tricky situation which needs a tiny static init, and not I have to duplicate it into the content provider :-( Nov 15 17:00:02 ESphynx, did you check the box to enable it? Nov 15 17:00:12 mrenouf I sure did!! Nov 15 17:00:15 holy balls I updated all the sdk stuff and eclipse didn't totally crap itself Nov 15 17:00:17 that's a first Nov 15 17:00:17 Oh. Nov 15 17:00:24 dragorn, lol Nov 15 17:00:34 dragorn that's very hard to believe. Nov 15 17:00:36 dragorn: you just doomed yourself Nov 15 17:00:45 dragorn, don't worry, it will later... for no good reason. Nov 15 17:01:11 Well, it OOMed checking for sw updates. With 8 gig of ram. So that's fun. But the SDK components worked. :p Nov 15 17:01:20 And it seems to still think it can compile android code, which it usually can't Nov 15 17:01:29 dragorn: give it time Nov 15 17:01:40 I wonder if aapt performance increase was integrated Nov 15 17:01:41 ron_frown: well, giving it time is more like 'normal eclipse behavior' :P Nov 15 17:02:02 ron_frown: the fact that it managed toupdate, start, and still compile, is fancy enough :P Nov 15 17:02:20 see this boggles my mind Nov 15 17:02:25 everyone acts like eclipse is ok Nov 15 17:02:28 clearly its not =) Nov 15 17:03:15 What is the best method for data persistency in Android? Apart from SQLite database I mean? Any help? Nov 15 17:03:25 sharedpreference Nov 15 17:03:29 (for simple stuff) Nov 15 17:04:00 for big stuff, there's the sdcard Nov 15 17:04:02 yeah what are you saving Nov 15 17:04:08 it its tabular data Nov 15 17:04:16 obviously sqlite makes the most sense Nov 15 17:04:24 if its a couple objects that dont map to records in a table Nov 15 17:04:29 ...and isn't there some new online cloud storage api thingy? Nov 15 17:04:46 maybe you just serialize (though be aware what problems you may encounter with versioning) Nov 15 17:04:56 There's also ORMLite for Android, but it's EXTREMELY lite. Nov 15 17:05:14 I was amazed at how bad the sqlite stuff was in android Nov 15 17:05:27 I wanna take large amount of text from user and save it.. basically a Day-Diary application Nov 15 17:05:32 eg, it seemed worse to use androids little helpers than to just use the regular java consumer Nov 15 17:05:34 orm lite is sweet Nov 15 17:05:36 (for example, you can't put hierachies in the same table and there's no m to n mapping) Nov 15 17:06:02 orm lite is frustrating in many places. Nov 15 17:06:13 ...but the alternatives seem even worse... Nov 15 17:06:19 can I give images radiobutton functionality? Nov 15 17:06:28 UnbertKant: to be fair, I think type inheritance discrimination is a bit overkill for a mobile storage mechanism anyway Nov 15 17:06:46 why? Nov 15 17:06:52 oh I misread =) Nov 15 17:07:01 UnbertKant: they want to port hybernate to android Nov 15 17:07:07 but it's still not that stable Nov 15 17:07:15 sounds like you want something like mongo for mobile Nov 15 17:07:21 oh god monsti Nov 15 17:07:25 please no please no Nov 15 17:07:37 Ah, hybernate would be nice :) Nov 15 17:07:37 hibernate is terribly bloated, and overengineered for SERVER infrastructure Nov 15 17:07:44 why the FUCK would you want to port that to mobile Nov 15 17:07:53 or is hybernate actually different than hibernate Nov 15 17:08:16 it's that java version of nhibernate Nov 15 17:08:33 yeah Nov 15 17:08:34 ron_frown: oh, eclipse is awful. but it does get the job done and it's what all the examples use Nov 15 17:08:45 Anyway, it seems like there is no simple way to start an activity without bringing the task to foreground, right? Nov 15 17:08:50 the new idea 12 is super sexy Nov 15 17:09:05 UnbertKant: does that even make sense Nov 15 17:09:23 is it functionality that can be put into a service? Nov 15 17:09:25 ron_frown: no it doesnt :) Nov 15 17:09:27 Yes, if you want to block the app but don't want to annoy the user with it. Nov 15 17:09:28 because thats kinda the point Nov 15 17:09:34 No, this has nothing to do with services. Nov 15 17:09:49 I could start the activity delayed, but that would introduce more, well, delay. Nov 15 17:09:51 start an activity in the bg? Nov 15 17:10:05 I cant think of a legitimate case where that would be desired Nov 15 17:10:10 not to say there isnt one Nov 15 17:10:11 Yes, like, you show a splash screen, the user presses home, the splash finishes and the main activity starts. Nov 15 17:10:23 When the user goes back to the app, the main activity finished loading already. Nov 15 17:10:25 you could do that with a regular activity Nov 15 17:10:33 currently. the main activity jumps to the foreground, which is annoying. Nov 15 17:10:34 UnbertKant: start the spash activity - e.g. with a transparent theme Nov 15 17:10:42 UnbertKant: then do your loading stuff in an asynctask Nov 15 17:10:51 so what would you want to jump to foreground isntead? Nov 15 17:10:53 UnbertKant: eat the backkey event Nov 15 17:11:14 UnbertKant: then start the application main activity when the task finished Nov 15 17:11:42 ...but when I start the main activity, it jumps to the foreground? I'm not sure I understand your idea. Nov 15 17:11:51 yeah you don't understand Nov 15 17:12:03 ah no i get in the first place, what he tries to do :) Nov 15 17:12:35 activity != mainwindow in windows :) Nov 15 17:13:07 I don't use windows so I don't understand. What's a "mainwindow" in windows? Nov 15 17:14:31 UnbertKant: http://stackoverflow.com/questions/5486789/how-do-i-make-a-splash-screen-in-android Nov 15 17:14:41 UnbertKant: try the loading via asynctask Nov 15 17:15:06 UnbertKant: also eat backkeys events Nov 15 17:15:50 I don't see how that relates to my problem. And that's happening already anyway, when the user presses back in the splash screen, I just switch to the launcher. Nov 15 17:16:03 i understand Nov 15 17:16:06 And why did you recommend a transparent theme? Nov 15 17:16:55 well i have work to do, i wish you luck Nov 15 17:17:09 yeah you could have splash screen just be a view, and asynctask swap it out Nov 15 17:17:21 then you shouldnt have activities starting Nov 15 17:17:36 but I sstill think its probably more effort than its worth Nov 15 17:17:49 how many people start an app then IMMEDIATELY go and open something else up Nov 15 17:18:09 Well, the problem arose at the other place where an activity jumps to the front. Nov 15 17:18:43 if you initiated an app to load, wouldnt you EXPECT the "activity to jump to front" ? Nov 15 17:18:44 When the app detects that the user changed his password externally (e.g. in a browser on his computer), the app shuts down and shows a "please enter your new password" activity. Nov 15 17:18:47 I sure would Nov 15 17:19:12 ...this can happen any time while the app is doing something in background. Nov 15 17:19:23 a splash screen? Nov 15 17:19:26 no. Nov 15 17:19:37 The other activity that pops to the top at the moment... Nov 15 17:19:43 dude just have some check in onResume? Nov 15 17:20:01 I dont know Nov 15 17:20:02 seems like a rabbit hole Nov 15 17:20:07 I'll quit Nov 15 17:21:11 Guess I'll add a notification for that and have every activity check in its onResume whether the password became invalid to then show the "password invalid" activity. Nov 15 17:21:29 Thanks everyone, it's much clearer to me now. Nov 15 17:21:35 UnbertKant: one thin I know that is the suggested action Nov 15 17:21:41 would be to spawn notification with a pending intent Nov 15 17:21:56 thats googles practice Nov 15 17:22:17 Sounds good! Nov 15 17:30:04 hello, i am trying to apply a style to a button but it doesnt take over my style. what can it be Nov 15 17:31:15 Maybe your style has the wrong elements in it and the elements used by the button are missing. Nov 15 17:31:23 Hello all! Nov 15 17:31:34 I just released https://github.com/aliHafizji/Cheddar-Android feedback appreciated :p Nov 15 17:31:36 Hello swex! Nov 15 17:31:50 Is anybody know to ho implement triangle button, like in first run wizard!? Nov 15 17:32:02 Well, the name sounds like it has something to do with some example app ;) Nov 15 17:33:11 argh this http://developer.android.com/guide/components/tasks-and-back-stack.html contains confusing/ambiguous/overlapping terminology, needs clarification Nov 15 17:34:02 UnbertKant, its a drawable Nov 15 17:34:13 I know there's findViewById, but how do I access strings from R? Nov 15 17:34:23 there's no findStringById Nov 15 17:34:41 there's getRessources().getString(R.string.mystring) Nov 15 17:34:48 thanks Nov 15 17:35:37 jigal do you set it as background drawable? Does it have all the states in it (not sure if you really need all of them though) Nov 15 17:36:00 hey anyone know if theres a way to target a specific activity with adb monkey? Nov 15 17:36:11 like, I'd need to navigate to it, then not back out Nov 15 17:36:13 UnbertKant, i am trying to use these buttons over here http://www.dibbus.com/2011/02/gradient-buttons-for-android/ i put it in a seperate file which is defined as a drawable Nov 15 17:36:16 then fuzz the hell out of just that one Nov 15 17:37:04 actually, is there a simpler way to check if the content of a EditText has been changed than checking it against the string? Nov 15 17:37:38 Hey, my app behaves different on the device than on the emulator. it crashes when the emulator does not. is there a way to debug that? Nov 15 17:37:39 ali__ does it work with the GTD principle? Nov 15 17:37:47 I can't watch the video since I'm at work Nov 15 17:38:05 And I'm currently a bit unhappy with my web based GTD todo list thingy (tracks). Nov 15 17:38:16 socket, you can debug on a device Nov 15 17:38:18 UnbertKant: GTD? Nov 15 17:38:28 "Getting things done" Nov 15 17:38:47 Basically, you sort your todos in contexts. So you see todos that can be done at the same time. Nov 15 17:39:02 For example a "at home" context or a "online" context. Nov 15 17:39:04 productivity enhancement Nov 15 17:39:21 That way you don't have to see tasks that you can't work on at the moment anyways. Nov 15 17:39:39 socket: what IDE are you using? Nov 15 17:40:03 So when you leave the house, you check your "in the city" context to see all the things that you can complete in the city... Nov 15 17:40:22 belgianguy: eclipse Nov 15 17:40:23 I can set up my debug configuration in IntelliJ to ask whether to use an Emulator or a real device when debugging, Logcat will always appear in the editor Nov 15 17:40:29 Does "Cheddar" keep everything in one list? Nov 15 17:41:05 UnbertKant: cheddarapp.com nope it doesn't Nov 15 17:41:24 socket: http://stackoverflow.com/questions/2714400/how-to-debug-on-a-real-device-using-eclipse-adt Nov 15 17:41:44 belgianguy: thanks, im trying that right now Nov 15 17:43:10 Great, looks like my todo list webserver crashed. Will check out cheddar! :) Nov 15 17:45:40 lov: if i understood back-stack correctly, it is perfectly feasible that a user will launch some Music app from home screen - and the user will find themself in an Email app instead (since the top of the Music's task stack is an Email activity) Nov 15 17:45:44 lov: sounds about right? Nov 15 17:46:11 UnbertKant, where should i place that selector? I created a file and put the code in it for a green button. and called it green_button.xml and then in the style of my button I did style="@drawable/green_button" but it doesn't take the style. Nov 15 17:48:02 UnbertKant: That would be great! You should check it out. The android app aint done yet! But its getting there Nov 15 17:48:15 jigal I have no idea, I once used these colored buttons and they just worked. Nov 15 17:49:39 UnbertKant, but where did you place the code ? Nov 15 17:50:06 I think in drawable? Nov 15 17:50:07 btw anyone know a good way to promote open source projects? Nov 15 17:50:18 ali__: make it good Nov 15 17:50:24 ali__ maybe slashdot? Nov 15 17:50:47 Hey gang, what is the proper way to load a video into the video view from your assets dir? I can get the video to play from a web url, from my sdcard, but not from assets folder? Nov 15 17:52:18 fakingfantastic: your video sucks, don't force users to watch it Nov 15 17:52:23 * regedit hides Nov 15 17:52:32 regedit: lol tell me about it Nov 15 17:52:55 It's a rebuild of an iOS app, where the client stores all the mp4's locally…. you guessed it … 135MB app Nov 15 17:53:05 whoa Nov 15 17:53:39 wtf is turning your periods into ellipses Nov 15 17:53:50 fakingfantastic: you know you can't put that on Play, right? Nov 15 17:53:51 Didn't google add a way for downloading assets separately from Google servers? Like, getting a small app from the market, which then downloads all these videos to SD? Nov 15 17:53:55 are you IRCing with Microsoft Office or somethin'?? Nov 15 17:54:04 UnbertKant: yes, expansion files Nov 15 17:54:18 evancharlton: i didn't but i guess i do now, file size issues? Nov 15 17:54:35 evancharlton: (first android app, learning the ropes as i go) Nov 15 17:54:48 fakingfantastic: yes, IIRC the current max size is 50mb for an APK Nov 15 17:54:52 Do expansion files work on the lower api levels (I have no clue how to handle them, never used them) Nov 15 17:55:09 evancharlton: terrific! Nov 15 17:55:15 UnbertKant: back to froyo, I believe. Read the docs on it for more details Nov 15 17:55:26 fakingfantastic: are you the guy working for a training company that's selling apps that are just videos? Nov 15 17:55:40 lov: no Nov 15 17:55:54 that must be someone else Nov 15 17:56:03 so why are you embedding 100MB of videos? Nov 15 17:56:35 splash :))) Nov 15 17:56:36 actually, nevermind :< just use the .obb files like evancharlton suggests Nov 15 17:56:39 hahaha ugh Nov 15 17:56:42 I seriously hope not Nov 15 17:56:52 lov: this is how the iOS was done, and they don't want to host the videos in the cloud -- so that people can always see the videos regardless of network Nov 15 17:57:07 What videos? Nov 15 17:57:23 fakingfantastic: you could just download the videos to the external storage.... Nov 15 17:57:53 lov: yeah, i guess that might be the option… any way to do that on installation? Nov 15 17:57:58 Are Google Play downloads resumable? Or would I have to download that app all at once? Nov 15 17:58:23 people, I was seeing the AsyncTask page on http://developer.android.com/reference/android/os/AsyncTask.html, I think that the usage depicted on the pageis for similar task (reference new DownloadFilesTask().execute(url1, url2, url3);) Nov 15 17:59:13 so, question is that I only have to two tasks, rather three, get xml + get png + display the xml as listview Nov 15 17:59:13 fakingfantastic: yes? in your app's startup routine, check whether the videos exist on external storage. If they don't, kick off a downloader. Nov 15 17:59:35 so, does this AsyncTask recommended thing for me ? ? Nov 15 17:59:55 *is this Nov 15 18:00:10 lov: just to push my newb luck, what mechanism would I use to prompt those downloads Nov 15 18:02:17 perhaps I can make a runnable of png download and then use AsyncTask.execute Nov 15 18:02:42 fakingfantastic you start a service that downloads them in background and does a local broadcast when it's finished. If the activity is still running when that happens, you react to the broadcast. Otherwise you notice that the download finished in onResume. Nov 15 18:03:13 fakingfantastic: *shrug* Nov 15 18:03:21 fakingfantastic: you can probably use the built in DownloadManager stuff Nov 15 18:03:25 The important difference is that you don't have the "gets killed after 10 minutes in background" limitation that you have on iOS. Nov 15 18:03:34 how you ask the user "do you want to download this content" is really up to you Nov 15 18:03:39 The DownloadManager is not available on lower api levels. Nov 15 18:03:42 you could do a check for content in onCreate, etc Nov 15 18:03:44 Depends on what market share you want. Nov 15 18:03:56 UnbertKant: yeah, that's another thing. It's only available on 2.3? and above Nov 15 18:05:01 if anyone knows, Does the droid x store contacts differently than other phones? Nov 15 18:05:23 adb kill-server Nov 15 18:06:41 is sw a language? Nov 15 18:06:59 man thats confusing Nov 15 18:07:05 values-sw-sw600dp Nov 15 18:07:12 swedish? Nov 15 18:08:26 That's sv Nov 15 18:08:43 lov: this looks like an options too, http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=2481797 Nov 15 18:09:08 swahili Nov 15 18:09:48 hi guys :). i want to call a method AFTER the menu was created in onCreateOptionsMenu(Menu menu);. Is there any way to do this? Nov 15 18:09:54 lov: or maybe not Nov 15 18:10:09 i've already checked. onResume() is being called BEFORE onCreateOptionsMenu(Menu menu); Nov 15 18:10:45 is there anything like onPostCreateOptionsMenu(); or something ? Nov 15 18:39:12 Has anyone used Intellij and had everything go red when they open the program, everything was fine like 12 and then the comptuer rebooted but now Intellij thinks everything is invalid Nov 15 18:39:18 I can't even build the app any more Nov 15 18:44:50 anyone know of good ux resources that are free to use?.. Nov 15 18:46:13 I have two separate asynctasks that occur at activity onStart(). I have a progress bar that appears at activity onStart() that needs to be dismissed when both asynctasks are finished. What's a good way to check that both have completed? Nov 15 18:46:48 semaphores and a handler Nov 15 18:47:28 ok thanks Nov 15 18:54:09 hip2p we use a counter and each async task decrements it by one. When it reaches 0, we're done. Nov 15 18:55:22 which is what I said. Nov 15 18:55:53 thanks UnbertKant Nov 15 18:57:19 would you recommend consolidating 2 asynctasks that populate an activity at start into 1 asynctask? Will this significantly reduce processing time? Nov 15 18:57:46 I can do it, but I'm wondering if it will make enough of a difference. Nov 15 18:58:17 I think that Google changed how async tasks work. Now they no longer run in parallel, so it doesn't matter. (Not sure about this) Nov 15 18:58:35 ok Nov 15 18:59:45 hi guys :). i want to call a method AFTER the menu was created in onCreateOptionsMenu(Menu menu);. Is there any way to do this? I've already checked: onResume() is being called BEFORE onCreateOptionsMenu(Menu menu); Is there anything like onPostCreateOptionsMenu(); or something ? Nov 15 19:00:19 lov: thanks for the help, btw Nov 15 19:00:24 Alright, I need help. I'm trying to push an OBB file to my 4.2 nexus 7. What directory do I do the ./adb push to? Nov 15 19:00:58 anyone out there know how I can get a phone to show up in adb if the drivers dont seem to exist? Nov 15 19:01:23 I've tried storage/emulated/legacy mnt/shell/emulated/0 and none of them are adding to the apps size… any other ideas? Nov 15 19:07:37 Hello. Does anybody have a clue why my code is giving me a String object instead of well, a String? https://gist.github.com/a85fdcff53330dc20df3 (/* snip */ lines is removed code.) Nov 15 19:07:56 huh Nov 15 19:08:02 a String is an object Nov 15 19:08:27 so what are you saying? Nov 15 19:08:44 Well, yeah. but when I do formula = formula.replace() I expect "10+2", not "[Ljava.lang.String;@40de06d0*2" Nov 15 19:09:04 10*2 even. Nov 15 19:09:54 toString doesn't really need to be called on a string you realize that right Nov 15 19:10:05 you know, because it's already a string Nov 15 19:10:48 there is no definition of stub, what is it? Nov 15 19:10:50 fakingfantastic: you're welcome Nov 15 19:11:21 Snuffel: stub is the result of StringUtils.findstub, which returns the first part between () without another () in it. Nov 15 19:11:32 forgot to put that function in. I'll add it, sec. Nov 15 19:11:37 note: I didn't write StringUtils. Nov 15 19:11:39 I think StringUtils is doing this Nov 15 19:12:05 what is the purpose of the StringUtils line in your code. what does it do Nov 15 19:12:15 i am trying to find the javadoc for StringUtils but I can't find findSub Nov 15 19:12:23 Snuffel: Custom class. Nov 15 19:12:32 updated the code. Nov 15 19:12:39 so how are we supposed to know what is going on Nov 15 19:12:49 Snuffel: I forgot to include it, if you refresh it's there. Nov 15 19:14:35 Tyrope: i have no idea whats going on, but here's how you should fix it: write test cases for your StringUtils class, findSub method. In the test cases, you'll pass in strings like the ones your program is making and then check the output of findSub relative to its inputs to ensure they are correct. Nov 15 19:15:10 Alrighty. let's see if that works. Nov 15 19:15:22 Has anyone used Intellij and had everything go red when they open the program, everything was fine like 12 and then the comptuer rebooted but now Intellij thinks everything is invalid Nov 15 19:15:26 can't you debug it and see what happens per line Nov 15 19:15:50 Well, it wasn't written by me, and it worked before. Nov 15 19:16:33 Looking at it, I think it's the newStub = parseFormula(stub)[0]; call that's returning the strange thing, because that's what i'm messing with. Nov 15 19:18:43 11-15 20:17:57.531: D/diceRoller(11809): stub = 5+5, newStub = [Ljava.lang.String;@40ddef88 <- Yup. Thx guys. Nov 15 19:19:11 ok so it was in code we did not see Nov 15 19:19:12 :) Nov 15 19:19:16 Yeah Nov 15 19:19:32 Apparently converting a String[] using foo.toString() doesn't work. Nov 15 19:19:39 HTML5 canvas is really slow in android's webkit :( Nov 15 19:19:49 That sucks, HTML5 is awesome. Nov 15 19:20:04 14:19:42 < Tyrope> Apparently converting a String[] using foo.toString() doesn't work. Nov 15 19:20:08 Tyrope: who would know Nov 15 19:20:08 yeah. Nov 15 19:20:10 lol Nov 15 19:20:15 that's kind of correct. Nov 15 19:20:23 it is visibly choppy just when spinning a square and clearing the background. Nov 15 19:20:27 How can I get a variable from my ViewPager to its PagerAdapter's getView? Nov 15 19:20:28 on a tegra 3 (nexus 7) Nov 15 19:21:40 I guess I need the opposite of StringUtils.separate() Nov 15 19:21:53 to do what? Nov 15 19:22:03 Turn the String[] back into a String. Nov 15 19:22:07 oh Nov 15 19:22:19 I want to glue the pieces back together so I can put it in a textbox. Nov 15 19:22:20 i wouldn't even consider StringUtils but I am old school Nov 15 19:22:37 it takes like 4 seconds to write a loop to put them together Nov 15 19:22:42 argh, doesn't help that android webkit can't use requestAnimationFrame Nov 15 19:22:44 It's code a friend gave me. It's not a java package. Nov 15 19:22:44 using StringBuilder Nov 15 19:23:56 something like StringBuilder sb = new StringBuilder; for(String part: input) { sb.append(part) } Nov 15 19:24:10 return sb.toString(); Nov 15 19:24:19 done Nov 15 19:24:25 Easy enough. Nov 15 19:24:28 hi guys :). i want to call a method AFTER the menu was created in onCreateOptionsMenu(Menu menu);. Is there any way to do this? I've already checked: onResume() is being called BEFORE onCreateOptionsMenu(Menu menu); Is there anything like onPostCreateOptionsMenu(); or something ? Nov 15 19:24:35 :) Nov 15 19:26:10 mrmaffen: why not call it at the end of onCreateOptionsMenu? Nov 15 19:28:01 Snuffel: StringBuilder cannot be resolved to a variable. Hitting Ctrl+Shift+O to get missing imports doesn't work either. Nov 15 19:28:13 what java version are you using? Nov 15 19:28:15 Tyrope: because i need to work with the created optionsmenu's menu items. and the menu items don't seem to be initialized completely when onCreateOptionsMenu hasn't returned true Nov 15 19:29:04 should be java7.. what's the command to print it again? Nov 15 19:29:09 What does "initialized completely" mean? Nov 15 19:29:16 6 and 7 are both installed.. I hope it's using 7. Nov 15 19:29:19 System.out.println Nov 15 19:29:40 missing () after StringBuilder, you need "new StringBuilder();" not "new StringBuilder;" Nov 15 19:29:49 hehe Nov 15 19:29:56 i said "something like" Nov 15 19:29:59 i am not a compiler Nov 15 19:30:12 Whoops. Nov 15 19:30:28 i use autocomplete all the time Nov 15 19:30:31 We're all humans here, right? well... mostly. Nov 15 19:30:34 I am a lazy coder Nov 15 19:30:47 you should try haskell Nov 15 19:31:18 my recovery images are being seriously shitty... dont automatically reboot when they are done Nov 15 19:31:41 some lady at my work came up to me during a company outing yesterday and asks me... Nov 15 19:31:53 "...are you the guy on the otherside of the wall who is always swearing..." Nov 15 19:32:34 oh, nice. in chrome canvas works much better.that's a pain for trying to use an embedded webview, but it's something. Nov 15 19:32:53 SimonVT: well .. i'm setting some settings on a MenuItem. when i do this at the end of onCreateOptionsMenu, the new settings will not show/apply. when i'm manually setting these settings later, the settings do apply/show Nov 15 19:33:04 could be that i'm testing this the wrong way though Nov 15 19:33:36 You're doing something wrong then Nov 15 19:34:01 You're supposed to be able to change your menuitems in onCreateOptionsMenu Nov 15 19:35:11 Is it possible to modify the space between childs in a vertical linearlayout? Nov 15 19:35:55 well, you can insert padding between the elements of course Nov 15 19:36:04 SimonVT: hmm yea. mine is kind of a special case. i wanted to continue my testing with the onPostCreateOptionsMenu (or similar) method, to figure out was i'm doing wrong Nov 15 19:36:38 Maurits_: actually I want to decrease the padding Nov 15 19:37:37 any googlers able to hook us up with some Ingress invites?? :) Nov 15 19:46:06 SimonVT: thanks nevertheless :) Nov 15 19:55:51 ctate: ping Nov 15 19:57:04 I am trying to understand what the best libraries for REST network calls. I have looked into android-async-http, robospice, and dinote opens library Nov 15 19:57:10 does anyone have any ideas? Nov 15 19:58:03 jpottsalot: I dunno, what are you looking for in addition to the basic HTTP stuff? Nov 15 19:58:28 ie, why do you want a special REST library? isn't the entire point of REST to map naturally to HTTP? Nov 15 19:59:08 jpottsalot: android-async-http doesn't fit the bill for you? Nov 15 19:59:12 I'm using it and I like it :) Nov 15 19:59:23 what did you not like about it Nov 15 20:00:01 Maurits_: he's looking for a facade type library, like requests for python is. Something that makes it not a total PITA to do HTTP. Nov 15 20:00:15 tdignan: I am sure this is probably be a noob mistake but I am having problems returning values back through the OnSuccess method Nov 15 20:00:25 jpottsalot: you've gotta use a handler man Nov 15 20:00:28 brb Nov 15 20:00:51 yeah it has a AsyncHttpHandler Nov 15 20:00:53 * kbs is a contended user of URLConnection for rest :-) Nov 15 20:00:54 and i use that Nov 15 20:01:02 jpottsalot: nah you need a Handler() too Nov 15 20:01:06 on your UI thread Nov 15 20:01:08 ohhh Nov 15 20:01:14 then in onSuccess or onFailure, you post a runnable to it Nov 15 20:01:15 :) Nov 15 20:01:25 does audio recording work for anyone with latest emulator (JB 4.2 / API 17) Nov 15 20:01:41 at first I thought I didn't need one either because of the deceptive name AsyncHttp*Handler* Nov 15 20:01:45 then I ran the debugger :) Nov 15 20:02:11 is android-http-async the most popular library? Nov 15 20:02:22 have you heard of robospice tdignan ? Nov 15 20:03:51 havent tried robospice Nov 15 20:03:55 i'll check it out though Nov 15 20:04:35 https://github.com/octo-online/robospice Nov 15 20:05:01 thanks Nov 15 20:05:29 I am just trying to find out which one of these libraries are the best because I want to build from something that is solid Nov 15 20:05:55 eh, this ones working good so far, but i have only used it for a few api calls Nov 15 20:06:06 in the past I just wrote my own wrappers around httpclient Nov 15 20:06:15 yeah that is what I did Nov 15 20:06:17 and this is just an httpclient wrapper, so in that sense it's built on some prety solid tech Nov 15 20:06:45 what about database frameworks? Nov 15 20:07:35 "The line of code you never had to depend on, is the line of code you never use" -- as Steve jobs nearly said :-) Nov 15 20:08:43 has anyone used DroidPersistence? Nov 15 20:13:42 looks fairly recent. i've tried ormlite only Nov 15 20:14:00 okay Nov 15 20:15:12 Has anyone seen an issue with Intellij where all of a sudden everything gets high lighted red and it can't resolve any symbols. Even when I do something like com.actionbarsherlock.view.MenuInflater it will still tell me it can't resolve MenuInflater Nov 15 20:15:27 This happened about 1pm, before that it was fine Nov 15 20:17:29 did you ensure that abs is a module dependency of your project Nov 15 20:18:03 yes, it's also happening with constructs right from Java, for instance if I do java.lang.Integer it will tell me Integer is unresolved Nov 15 20:18:39 what's Module SDK: say Nov 15 20:20:00 I have 1.7, Android 2.1, 3.0 and 4.0 available Nov 15 20:22:36 it's all your fault evancharlton!!!! Nov 15 20:23:08 wtf cretin45 Nov 15 20:23:48 i'm blaming evancharlton for my N4 backorder Nov 15 20:24:46 docmur: make sure you dont have an unbalanced { } … that can really fuck things up Nov 15 20:24:54 good look finding it though :| Nov 15 20:25:07 also unbalanced { } of inner classes causes fits too Nov 15 20:25:07 ya, it's something with the SDK Nov 15 20:25:12 docmur: do you have at least one android sdk added? Nov 15 20:25:17 Somehow it switched Nov 15 20:25:21 there should be one in the box underneath module sdk Nov 15 20:25:27 if I play with it the results change Nov 15 20:25:48 I switched my style to curly brace on next line Nov 15 20:25:50 instead of same line Nov 15 20:25:57 I dunno why so many people rushed to buy the nexus 4 since it has overheating/thermal throttling issues such that games/video playback becomes choppy after 15 or 20 minutes of use Nov 15 20:26:08 my eyes hurt less that way Nov 15 20:26:58 you are aptly nicked cretin45 Nov 15 20:26:58 then again, it sounds like google only had about 200 to 500 in stock. Nov 15 20:27:24 regedit: as are you Nov 15 20:27:35 hopefully they work out the overheating issues for the 2nd generation of builds Nov 15 20:29:46 I have a few SDK's that are selectable. I can get it to ignore some of the errors but not all of them :S Nov 15 20:33:26 pragma-: I see the anand tech report at http://www.anandtech.com/show/6440/google-nexus-4-review/3 -- do you have a link to video specific playback heating issues, or is the info in that article directly applicable to this? Nov 15 20:34:35 * g00s laughs at early adopters Nov 15 20:34:51 even apple has their fair share of issues Nov 15 20:36:21 i'm just about ready to buy a n7; seems by now all the issues are known - eventhough google will probably only support it 12 months from now if they treat it like the nexus s Nov 15 20:37:11 a great book on how to buy your next tech gadget http://www.amazon.com/Wait-Frank-Partnoy/dp/184668594X Nov 15 20:39:47 a book? Nov 15 20:40:06 why do you need a book to do that task? Sounds like a scam to me ;p Nov 15 20:40:41 heh, some of us are expert procrastinators - the rest of you need that book :D Nov 15 20:40:47 Has anyone used DroidPersistence, RoboSpice, RoboGuice before? any recommendations? Nov 15 20:41:01 fuckall that shit Nov 15 20:41:14 just use the provided apis; whats wrong with them Nov 15 20:41:40 g00s: I am just trying to find out if people are really using them Nov 15 20:42:06 I dont really see the point of RoboGuice Nov 15 20:43:13 ^ Nov 15 20:43:17 roboguice doesn't help Nov 15 20:43:35 what about and ORM? Nov 15 20:43:40 it makes things worse by encouraging people to make everything instance scope when they don't have to Nov 15 20:44:09 didnt the guys at square also have a DI framework ? Nov 15 20:44:14 dagger Nov 15 20:44:54 i ditched roboguice for androidannotations Nov 15 20:44:56 pretty handy Nov 15 20:45:00 and been messing around w/ dagger a bit Nov 15 20:45:17 roboguice can add a lot of startup time Nov 15 20:45:31 whereas androidannotations uses code generation Nov 15 20:46:41 that looks nice, although I still have the same principal objection to it that I did with roboguice Nov 15 20:46:48 i might be disingenous and try it anyway Nov 15 20:46:53 wow doogan that is pretty sweet Nov 15 20:46:58 any problems with it so far? Nov 15 20:47:10 since you kind of need things to be instance scope if you want to write tests that check for their presence Nov 15 20:47:29 anyone using robolectric for tests? Nov 15 20:47:38 no jpottsalot Nov 15 20:47:47 2.7 just released with a bunch of new stuff Nov 15 20:47:47 i've got i working here, with ant and no maven Nov 15 20:48:14 a bit tdignan Nov 15 20:49:01 have been trying some stuff out w/ robolectric + mockito Nov 15 20:49:25 so you probably use maven then, huh Nov 15 20:49:29 :P Nov 15 20:49:45 i'm compiling something with maven right now, because I want to contribute some changes back to it Nov 15 20:49:48 but other than that meh Nov 15 20:50:38 for my live projects i'm still using ant Nov 15 20:50:42 but considering switching Nov 15 20:52:50 hi Nov 15 20:52:58 cretin45: yeah I told them to put yours at the bottom of the stack Nov 15 20:53:31 so doogan ant compiles your android annotations into normal android code. so it is a preprocessor kind of? Nov 15 20:53:32 evancharlton: :p apparently they aren't using stacks Nov 15 20:53:57 I need some help detecting wether a drawable is clicked on Nov 15 20:54:00 evancharlton: i think they have a giant bingo wheel Nov 15 20:54:08 when i export an unsigned copy of my app and give the apk file to a friend do they have to do something extra to install it etc? Nov 15 20:54:13 for testing.. Nov 15 20:54:15 oh@ Nov 15 20:54:18 right jpottsalot Nov 15 20:54:26 man that's slick! Nov 15 20:54:37 I didn't realize at first what you meant when you said it used code generation Nov 15 20:54:54 you have to configure your IDE to compile with an annotation processor Nov 15 20:54:54 EVS, just make sure they enable installing apps from outside the google play store Nov 15 20:55:13 doogan: how does it work in intellij, solid? Nov 15 20:55:22 yup that's what i use Nov 15 20:55:29 sweet Nov 15 20:55:30 http://www.jayway.com/2012/08/31/making-androidannotations-work-with-intellij-idea/ Nov 15 20:56:02 I have drawn a drawable on a canvas and rotated the canvas Nov 15 20:56:14 I want to know wether a user has clicked on the drawable Nov 15 20:56:57 since the rotation is only visible on screen i need to calculate where the drawable is at the moment a click event occurs Nov 15 20:57:02 whats the best way to do that? Nov 15 20:57:39 that sounds kind of hackish. maybe rotating the canvas is a bad idea. Nov 15 20:57:46 you should consider rotating its contents, instead Nov 15 20:57:47 dunno Nov 15 20:58:01 I used the AnalogClock code from google Nov 15 20:58:03 seems like timing issues will be inherent in your approach Nov 15 20:58:13 thats how they do it, doesn't mean thats the best way ofcourse Nov 15 20:58:26 do they detect clicks, too? Nov 15 20:58:27 hm, I remember using a matrix on an android game i made Nov 15 20:58:32 nope :) Nov 15 20:58:41 my opinion will stand I guess :) Nov 15 20:58:55 yea, i'd look into the matrix idea Nov 15 20:59:05 I think the Matrix class will do the trick Nov 15 20:59:36 do you think I should also use that in onDraw? Nov 15 20:59:47 what are you going to use in onDraw? Nov 15 21:00:09 I have a view that displays an analog clock Nov 15 21:00:18 in onDraw I draw the hour and minute hand Nov 15 21:00:23 mhmm Nov 15 21:00:39 I want the user to be able to set the clock with his finger Nov 15 21:00:45 ah Nov 15 21:00:55 so I need to detect which hand is clicked on Nov 15 21:01:02 mhmm Nov 15 21:01:50 do you know the trig formulas you'll need? Nov 15 21:02:17 rob_uknow: when friends try to install the app it says app was not installed humm Nov 15 21:02:23 anyone know what can be wrong? Nov 15 21:02:36 yeah Nov 15 21:02:47 I've set up a network connection check before running an asynctask. Within that asynctask in the post execute, I run a second asynctask. I started my app without internet, and while the connection dialog appeared, the app locked. Eclipse gave an error saying that there was no connection required to run the 2nd asynctask... why would it 1. give a connection error and 2. give an error Nov 15 21:02:47 regarding the 2nd asynctask and not the first? I checked my code, and I'm definitely not running the 2nd asynctask anywhere else. Nov 15 21:02:57 rob_uknow: so... you're good then right? Nov 15 21:03:08 I guess so Nov 15 21:03:12 rob_uknow u know what is wrong? Nov 15 21:03:16 well, what's the question? Nov 15 21:03:23 EVS, thats odd Nov 15 21:03:24 how to detect the click? Nov 15 21:03:38 yes tdignan, but I guess I know how to do it know Nov 15 21:03:48 rob_uknow: when you draw your minute hand and hour hand, do you have two triangles, or just two lines? Nov 15 21:04:01 lines Nov 15 21:04:05 triangles would be ideal, because then you could test the clck for intersection Nov 15 21:04:20 EVX: maybe compatibility issue? Nov 15 21:04:34 rob_uknow: so you've got a center point, right?, that you sweep the hands around? Nov 15 21:04:43 yes tdignan Nov 15 21:04:54 i have 14 to 17 setup in manifest Nov 15 21:04:58 ok so you need two more points to get a triangle, then you can detect the finger within boundaries Nov 15 21:05:02 i can calculate the angle Nov 15 21:05:03 so what you do Nov 15 21:05:15 yeah but you cant detect a finger on a thin line Nov 15 21:05:23 you need like a bounding box, or a triangle or something Nov 15 21:05:39 ah Nov 15 21:05:40 here's what id do Nov 15 21:05:46 i'd make two additional points Nov 15 21:05:47 the hands are box shaped Nov 15 21:05:53 that move with the hour hand and minute hand respectively Nov 15 21:06:25 does anyone have experience with the 8tracks api? Nov 15 21:06:30 then draw a triangle with those Nov 15 21:06:58 what if the hour and minute hand are overlapping ?? Nov 15 21:07:06 who cares? Nov 15 21:07:08 evx, whats the minSdkVersion? Nov 15 21:07:14 true, you'll need to keep a z-index Nov 15 21:07:21 14 Nov 15 21:07:30 oh ok the minute hand will be longer so you can select the outer circle for minute Nov 15 21:07:51 even then in the click detect he will need a line of code like you mentioned Nov 15 21:08:27 one of the hands is shorter then the other Nov 15 21:08:39 thats how the ios version of the app works now Nov 15 21:08:47 yep, but they share the same bounding box :) Nov 15 21:08:52 rob_uknow: 14. Nov 15 21:09:10 EVS, 14 is android 4.0 Nov 15 21:09:13 you don't have a notion of on top/bottom until you code it Nov 15 21:09:19 are you use your friends have that android version? Nov 15 21:09:47 tdignan, I will just have a go at writing the code tomorrow Nov 15 21:09:51 well I got the issues cut down by 75% but no matter what I do I can't get rid of the other 25% Nov 15 21:09:55 my collegue is mathematician Nov 15 21:10:01 she can help me out Nov 15 21:10:26 rob_uknow yes and i tried it on my nexus 7 Nov 15 21:10:39 rob_uknow: you've got me a bit curious, i might code my own Nov 15 21:10:46 :) Nov 15 21:10:50 I wrote a clock in sdl once Nov 15 21:11:11 I'm writing an app for kids, to learn how to tell the time Nov 15 21:11:19 rob_uknow and i got it working at debug mode on my nexus 7 Nov 15 21:11:38 rob_uknow: you're teaching kids to use analog clocks? are you a luddite?' Nov 15 21:12:00 tdignan, the ios version of the app sells 75 times a day Nov 15 21:12:14 there is a market for it Nov 15 21:13:00 i was just kidding Nov 15 21:13:01 EVX: i don't know why it doesn't work Nov 15 21:13:13 but, way to encourage competition :) Nov 15 21:13:14 i know Nov 15 21:13:19 u have to sign the app Nov 15 21:13:26 if they enabled loading app from outside the market Nov 15 21:13:29 it should work Nov 15 21:14:08 All applications must be signed in order to install on emulator or real device, check out the official dev guide signing your application: Nov 15 21:14:20 so guess not anymore Nov 15 21:14:21 :P Nov 15 21:14:37 all apps you write are signed, unless you are using 'ant release' Nov 15 21:14:52 it's being signed with a local debug key Nov 15 21:14:55 so that wouldn't be the reason Nov 15 21:14:57 everything is signed, it just might be signed w a junk debug key.... . Nov 15 21:14:59 yeah, that Nov 15 21:15:12 i made 60 cents today with my app Nov 15 21:15:13 nice Nov 15 21:15:35 rob_uknow: what apps have you made ? Nov 15 21:15:48 I've made an app to check the lottery Nov 15 21:16:07 nice Nov 15 21:16:22 a made a game where you need to use the accelerometer to catch stuff Nov 15 21:16:34 and i'm now working on a telling time app Nov 15 21:16:37 taking advantage of addicts always pays off Nov 15 21:16:47 true Nov 15 21:16:59 addiction apps actually rank pretty high and there are only inferior ones published Nov 15 21:17:04 maybe i'll make one Nov 15 21:17:12 you need to click on a button to see the lottery results Nov 15 21:17:16 i could have shown it directly Nov 15 21:17:17 I've set up a network connection check before running an asynctask. Within that asynctask in the post execute, I run a second asynctask. I started my app without internet, and while the connection dialog appeared, the app locked. Eclipse gave an error saying that there was no connection required to run the 2nd asynctask... why would it 1. give a connection error and 2. give an error Nov 15 21:17:17 regarding the 2nd asynctask and not the first? I checked my code, and I'm definitely not running the 2nd asynctask anywhere else. Nov 15 21:17:24 'methadone clinic locator' Nov 15 21:17:32 ah i see what the fuss is now; google oversold the devices so people are getting status change notices Nov 15 21:17:39 but thats now what an addict wants Nov 15 21:18:50 tdignan: addiction apps ? Nov 15 21:19:03 g00s, you are talking about the nexus 4? Nov 15 21:19:07 yeah Nov 15 21:19:08 g00s: yeah Nov 15 21:19:16 i just got myself a galaxy s3 Nov 15 21:19:26 rob_uknow: cool; i hope you like it Nov 15 21:19:31 i don't get it :( Nov 15 21:19:41 yeah I do, got my boss to pay for it Nov 15 21:19:49 :) Nov 15 21:19:53 i bet a 'days sober' widget for 12 steppers would sell Nov 15 21:19:59 told him I could also use it for work Nov 15 21:20:05 I wouldn't want to write one though, because then people would think I'm a recovering alcoholic Nov 15 21:20:35 which is probably better than most android developers Nov 15 21:20:37 tdignan: "0 starz; it couldn't keep me sobbber' Nov 15 21:20:46 who have not yet reached the recovery phase Nov 15 21:20:50 i got a review like that the other day Nov 15 21:21:03 "Uh, i obviously don't understand the app but it made my bum itchy" 0 stars Nov 15 21:21:25 sounds like an std Nov 15 21:21:45 '0 starz; yur app gave me herpez' Nov 15 21:21:57 std clinic locator Nov 15 21:22:07 stds near me (for std4std dating) Nov 15 21:22:10 any other ideas Nov 15 21:22:45 i made my app that downloads and caches tons of images completely immune to OOM Nov 15 21:22:48 :) Nov 15 21:23:06 and the code is re-useable!! tada Nov 15 21:23:24 usable, even Nov 15 21:24:05 anyone haven't heard of ARDrone project ? Nov 15 21:24:33 it works while doing it debug mode Nov 15 21:24:41 but not when it's installed with apk file Nov 15 21:24:45 don't get it :/ Nov 15 21:25:24 now i got it working Nov 15 21:25:25 :P Nov 15 21:26:04 worked when i did export signed package Nov 15 21:26:08 and not unsigned Nov 15 21:26:55 cool Nov 15 21:27:35 I have an asyncTask running, it updates my view, but the activity is already finished at that time Nov 15 21:28:03 asynctask keep running even if the activity is finished? Nov 15 21:29:01 tdignan: Did you tell me about annotations! Nov 15 21:29:04 holy crap Nov 15 21:29:08 that is awesome! Nov 15 21:29:29 i would like to know why tho it did not work with unsigned app package export strange stuff :P Nov 15 21:29:32 will look into that Nov 15 21:32:04 i think it depends on the android version you run evx, wether you can run unsigned apk's Nov 15 21:32:22 my samsung spica has no problems installing and running unsigned apk's Nov 15 21:32:33 it runs android 2.2 Nov 15 21:32:54 no Nov 15 21:32:57 you cannot run unsigned apks Nov 15 21:33:15 ever. period. guaranteed. Nov 15 21:33:23 *unless the oem really screwed up Nov 15 21:35:59 I don't have to sign them Nov 15 21:36:12 i can copy the apk in the eclipse bin directory and run it on my phone Nov 15 21:37:45 So maybe your OEM really screwed up. Nov 15 21:39:32 would checking activity.isFinishing() be enough to prevent ui changes to happen when activity.finish() has been called? Nov 15 21:50:30 rob_uknow, that is signed Nov 15 21:50:34 it's signed with your development key Nov 15 21:53:10 oke Nov 15 21:56:25 rob_uknow do u have some good resources to share when it comes to making nice ui stuff for apps? Nov 15 21:58:33 GIMP is surprisingly good for creating minor icons. Nov 15 22:00:07 you mean websites? Nov 15 22:00:44 I like http://www.wiseandroid.com/category/Programming.aspx Nov 15 22:02:14 I use paint.net for graphics Nov 15 22:05:26 gtg Nov 15 22:05:42 does a Service always have only 1 and only instance, in contrast to activities which can have specifications in their manifest whether to have single or multiple instances ? Nov 15 22:10:35 yes Nov 15 22:12:34 how far down should u support ur app to 10 up to 17 is that good ? Nov 15 22:18:56 I'm having trouble checking for internet connection. On my main thread, I have an (if checkConnection == true). checkConnection is a boolean that brings up a dialog box if there's no connection. The problem is that I don't know how to make the boolean return AFTER something has happened with the dialog. Nov 15 22:19:28 regedit: almost. you might have zero instances. :) Nov 15 22:19:47 regedit: you will never have *more than one* instance of a given Service Nov 15 22:20:00 does anyone know if its possible to embed a vimeo movie in an app? Nov 15 22:21:51 man, that's finally it. my app is really oom proof now. Nov 15 22:22:13 i fuzzed it faster just now by hand than monkey could Nov 15 22:22:18 my arm is pretty tired Nov 15 22:23:23 anyone a recommendation on a cover flow widget? Nov 15 22:23:33 karakuri: anything is possible. I dont think vimeo have made any sdks for you though. otoh, companies like brightcove have. Nov 15 22:25:40 ctate: ok thanks Nov 15 22:30:33 man, I just got an idea for a new design pattern Nov 15 22:30:44 oh wait, we already use it Nov 15 22:30:55 from now on i'm calling my helper classes, zero-tons Nov 15 22:38:58 zero! Nov 15 22:45:43 this is going to be the most stable social app ever written :) Nov 15 22:45:57 why is it called a *-ton anyway? is it because it becomes heavy and bloated? Nov 15 22:53:53 huh, good question. allegedly "singleton" was coined in the context of whist, which quite surprises me. Nov 15 22:54:32 tdignan: are you using androidannotations? Nov 15 22:54:37 gah, using ViewPager on 2.3 and < is causing me lots of headaches Nov 15 22:57:08 jpottsalot: nah, i'm still beating the hell out of a multi-threaded image cache and making sure it doesn't OOM or lock up ever Nov 15 22:57:16 i will give it a shot soon though Nov 15 22:57:44 if there's a layout, and a layout-large, will an xlarge device use the large? Nov 15 22:57:55 or will it fall back all the way to the stock layout Nov 15 22:59:20 tdignan: thanks I am trying to figure how to configure it for REST exchanges. It is using Spring REST Nov 15 22:59:58 hm Nov 15 23:00:05 i was curious about that Nov 15 23:00:15 Hi, what would be the best option to expose data from a simple REST API in a widget ? coding it myself ? native ? html/phonegap-kind-of-framework ? An already existing app ? Nov 15 23:00:17 looking at the real-world photospheres done by the regular user, there's a LOT of quirky stitching issues and smearing Nov 15 23:01:49 hey guys, no multisampling in the emulator? Nov 15 23:02:06 dragorn: it should use -large, the closest match to the actual runtime environment Nov 15 23:02:07 thibauts: man I'd make an app that was just a widget, and you could specify what fields from the json to display in the settings, but then 1000 morons would download it and 1 star it because they'd be too moronic to realize it isn't for them Nov 15 23:02:07 i would think Nov 15 23:02:24 but also remember that -large etc are sort of deprecated; -sw600 and friends are the new hawtness Nov 15 23:02:40 ctate: cool thanks. I'd hoped as much Nov 15 23:02:58 tdignan: Do i have to publish it on google play ? Nov 15 23:03:08 dont :) Nov 15 23:03:18 http://www.ecere.com/tmp/activeStipple.png --> it would look better with antialiasing :P Nov 15 23:03:52 My problem is i only coded a small android app for the sake of trying, like 3 years ago, and i'm looking for a quick solution to monitor some server vital parameters from my phone home Nov 15 23:04:03 worrying about how things look *in the emulator* is not likely to be among your top priorities as an app developer, ESphynx :) Nov 15 23:04:40 ctate: It is until my Nexus 10 arrives =( Nov 15 23:05:37 ctate I'm going to be switching to iOS development for now until the N10 arrives :P eC/Ecere support for Android is otherwise done :P Nov 15 23:05:47 a simple app with 1 rest call and a widget should be easy enough Nov 15 23:07:11 tdignan: Do you know where i can find a simple skeleton app that i could modify ? And some directions for packaging the thing / easy testing Nov 15 23:07:46 android samples for the widget, anyway Nov 15 23:07:58 * SpeedEvil imagines a preconfigured ssh terminal, and a nice ncurses GUI. Nov 15 23:08:21 might want to try android-async-http for your network call Nov 15 23:09:19 SpeedEvil: I'm dreaming about it too ... Nov 15 23:10:13 test Nov 15 23:10:14 If i succeed i might release a simple widget that nicely formats key/values from a rest/json call, i guess may people would have use of it Nov 15 23:11:42 indeed Nov 15 23:12:43 any pointer to a basic widget skeleton ? Nov 15 23:12:54 api samples Nov 15 23:13:42 this new per-process mount isolation is kinda cool Nov 15 23:14:17 ok.. Debug.getNativeHeapFreeSize() vs Debug.getNativeHeapAllocatedSize() Nov 15 23:14:22 in 4.2... creates issues for my usage, but I like the idea. Having a hell of a time trying to get a mount to persist cross-process tough :/ Nov 15 23:14:33 is the "allocated size" inclusive of memory that can be re-allocated to me? Nov 15 23:14:49 oh wait, I see what i'm derping about Nov 15 23:14:51 never mind Nov 15 23:21:49 i'm not sure you can actually get useful heap-size / heap-usage information from within your own app Nov 15 23:28:30 who is the guy using AndroidAnnotations? Nov 15 23:29:49 me! Nov 15 23:29:54 Anybody have experience with AndroidAnnotations or Spring Andriod? Nov 15 23:29:57 but I am not the guy you are looking for Nov 15 23:30:02 I have an sql schema dump file I want to use in code, is there any preference of making it an asset instead of a raw resource? Nov 15 23:30:08 I use Annotations Nov 15 23:30:37 I am really excited to get into it Nov 15 23:30:51 I am having some problems with configuration Nov 15 23:31:02 I used it... it's nice but a bit scary. Nov 15 23:31:20 I have the simple demo app now I am trying to do a rest api Nov 15 23:31:28 what was scary about it TheTrash ? Nov 15 23:31:36 I have boolean x = getValue(); getValue() brings up a dialog box asking if I want to make x true or false. When I click true, getValue() returns true. However, I'm having trouble making getValue() wait until one of the buttons is pressed before a return value is sent. How do I make it wait? Nov 15 23:32:39 hip2p: Did you set an onclicklistener? Nov 15 23:33:19 TheTrash: were you able to get REST interactions working? Nov 15 23:33:19 I'm having a problem using a DatePicker DialogFragment on pre-4.0 devices. Whenever I try to use the support libraries I get the error that the method show(FragmentManger, String) is not applicable Nov 15 23:33:42 I've used getSupportedFragmentManager() and getFragmentManager() Nov 15 23:33:43 jpottsalot yes I did Nov 15 23:33:57 hip2p: send me a pastebin Nov 15 23:34:14 and made sure that I'm only using the support libraries Nov 15 23:34:18 fireshaper, you can't use android.app.Fragment or its subclasses on pre-3.0 Nov 15 23:34:37 jpottsalot: I didn't get to that yet. Nov 15 23:34:43 I'm using android.supported.v4.app Nov 15 23:34:52 support* Nov 15 23:34:56 It just does so much stuff in the background that it's hard to keep track. Nov 15 23:35:22 which lets you use it on pre-3.0 Nov 15 23:35:22 yeah Nov 15 23:36:06 It seems like if you know it really well it could really help but it isn't the answer to everything Nov 15 23:36:25 I got confused with ClassName vs ClassName_ a few times too. Nov 15 23:37:05 have you done any apps with REST interactions? Nov 15 23:37:12 what Libraries do you use? Nov 15 23:37:14 The view injection alone makes it worth it. Nov 15 23:37:20 hahaha Nov 15 23:37:38 Yeah and I think @Click is pretty cool too Nov 15 23:37:45 Yeah that too Nov 15 23:37:54 http://developer.android.com/reference/android/support/v4/app/package-summary.html Nov 15 23:38:29 It contains backward-compatible versions of FragmentManager Nov 15 23:39:14 As for REST, I mostly have 1 class doing the http to stream / string stuff, then 1 that does stream / string to object, then 1 that builds the urls according to the service's dsl. Nov 15 23:39:27 It's mostly so compact, I haven't needed a real framework. Nov 15 23:39:53 http://code.google.com/p/resting/ this one caught my eye, though. Nov 15 23:40:30 But AndroidAnnotation's implementation seems nice as well. Nov 15 23:41:51 does anyone understand how dalvik's native heap works? Nov 15 23:42:19 or, at least how these getNativeHeapSize() functions relate to the amount of memory left over for native bitmap allocation Nov 15 23:42:39 there's an answer on SO that hints at the concept, but the math in it is just plain wrong Nov 15 23:43:27 I've been experimenting and find that the getNativeHeapFreeSize() tends to return a number of bytes that is much smaller than a few megs at any given time, so it can't be my full amount of memory left. I see tons of bitmaps in my code decompress fine even when free is very low Nov 15 23:43:32 the example uses allocated Nov 15 23:43:53 but since the native heap is shared across apps, you can't just use the total allocated the way the example does.. you'd have to watch for a change in the number, I think. Nov 15 23:44:20 I'm having a problem using a DatePicker DialogFragment on pre-4.0 devices. Whenever I try to use the support libraries I get the error that the method show(FragmentManger, String) is not applicable. I'm using android.support.v4.app.* and it still gives me the error when I try to use show(getFragmentManager(), string) Nov 15 23:44:21 I'm not sure the native heap actually does belong to dalvik, but -- in any event, it certainly is where my OOMs come from. Nov 15 23:45:05 probably because it's not applicable. either use simonvt's backports or check Build.VERSION.SDK_INT and act accordingly Nov 15 23:45:40 was that to me, tdignan ? Nov 15 23:45:52 there is sharing of both native & dalvik (VM) heaps. Nov 15 23:46:07 thanks theTrash Nov 15 23:46:09 it's complicated, and like i said i suspect you cannot get a reasonable view of mem usage strictly from within your app Nov 15 23:46:19 fireshaper: yup Nov 15 23:46:27 I have used two that are very nice. loopj's android-async-http Nov 15 23:46:36 starting in ... honeycomb? Bitmap native backing allocations are tracked by Dalvik Nov 15 23:46:41 ctate: yeah, i'm just trying to use a heuristic to avoid hitting OOM exception Nov 15 23:46:45 and also i used dinote's opens -- both from git hub Nov 15 23:46:47 they work really great Nov 15 23:46:49 because catching the exception is slow Nov 15 23:46:50 tdignan: "use less ram" :) Nov 15 23:46:58 tdignan, it is applicable, on the dev pages it shows it http://developer.android.com/reference/android/support/v4/app/DialogFragment.html Nov 15 23:47:01 there's also the onLowMemory() callback, fwiw Nov 15 23:47:10 ctate: I only even get there by fuzzing the brains out of my app Nov 15 23:47:16 is this a game or something? Nov 15 23:47:18 it's using like no mem, probably Nov 15 23:47:26 nah, just me taking it too seriously Nov 15 23:47:30 heh Nov 15 23:48:00 TheTrash: Do you know anyone who has used REST in AndroidAnnotations Nov 15 23:49:09 fireshaper: do you have a stack trace? Nov 15 23:49:35 Nope, sorry Nov 15 23:50:39 http://pastebin.com/vZF6y8vs Nov 15 23:51:25 can I put raw resources in sub directories? Nov 15 23:51:44 it reads it and complains about the name but wont put it in R.java Nov 15 23:51:45 you can put raw resources in res/assets Nov 15 23:51:59 and res/raw Nov 15 23:52:06 tdignan, wait, that was an old star trace Nov 15 23:52:09 stack* Nov 15 23:52:12 is there are reason of one over the other? Nov 15 23:52:19 fireshaper: "java.lang.ClassNotFoundException: com.tml.expirationspy.AndroidDatePickerActivity" Nov 15 23:52:21 I don't have one because the app won't run Nov 15 23:52:46 so, the class name is misspelled, or the isn't declared in your manifest, or it isn't exported, or someting like that? Nov 15 23:53:24 this is the code and the error I get: http://pastebin.com/2fpFcveG Nov 15 23:53:51 o_O Nov 15 23:54:12 ctate, that was an old error Nov 15 23:54:17 aha Nov 15 23:55:11 I think I know Nov 15 23:55:12 so that is the support lib's DialogFragment? Nov 15 23:55:21 your getFragmentManager should be getSupportFragmentManager() Nov 15 23:55:21 if so, you want getSupportFragmentManager() Nov 15 23:55:33 I get the error when I use that too Nov 15 23:55:33 great minds think like cows Nov 15 23:55:44 no you don't. silence! Nov 15 23:55:46 :P Nov 15 23:55:54 anyone know why this came about, or what the practical implication of it is? doesn't make much sense to me http://developers.slashdot.org/story/12/11/15/2218230/google-targets-android-fragmentation-with-updated-terms-for-sdk Nov 15 23:56:43 when I use getSupportFragmentMananger() I get that the method is undefined Nov 15 23:57:03 probably because you need to extend FragmentActivity Nov 15 23:57:36 really? all night trying to figure that out and that was it? *facepalm* Nov 15 23:57:42 hehe, thanks :) Nov 16 00:02:38 hmm? if I extend FragmentActivity I can't use OnCreate, right? Nov 16 00:03:28 no Nov 16 00:03:33 err, of course you can? Nov 16 00:03:40 just be sure to call the super method as well Nov 16 00:04:08 I keep getting the unable to instantiate method error when I do Nov 16 00:04:15 wat Nov 16 00:04:18 method=activity Nov 16 00:04:19 wrgh, what? Nov 16 00:04:30 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tml.expirationspy/com.tml.expirationspy.ExpirationSpyActivity}: java.lang.ClassNotFoundException: com.tml.expirationspy.ExpirationSpyActivity Nov 16 00:04:44 that's my main activity Nov 16 00:04:55 and it is listed in my manifest Nov 16 00:04:57 but if you comment out its onCreate() method, it works? Nov 16 00:05:17 errr.. I don't think so Nov 16 00:05:28 okay okay; we're talking about different things then Nov 16 00:05:32 oh.. that should have been can use* Nov 16 00:05:33 not can't Nov 16 00:07:36 how do you update a notification Nov 16 00:07:41 like if i want to change the icon or something Nov 16 00:13:10 argh Nov 16 00:13:14 at a glance, it looks like you're stuck with recreating a new notification object and passing it back to the notification manager with the same id Nov 16 00:13:23 using notificationcompat.builder, anyway Nov 16 00:13:40 one of my code files keeps adding import android.R to the top of my file so I can;t use my own R Nov 16 00:13:41 last time I really used them I think we could call setLatestEventInfo, but that's gone Nov 16 00:13:49 any idea how I get it to stop? Nov 16 00:20:11 sorted, It was in a different package so I needed an import with the main package name Nov 16 00:23:57 canadiancow: yeah i think that might be it; post a new notification with the existing id Nov 16 00:24:11 wont that have the nasty flicker refresh Nov 16 00:24:15 this is not something you should do in time-critical ways, etc. Nov 16 00:24:16 like how the download meter flashes every second Nov 16 00:24:21 err, it does? Nov 16 00:24:28 i thought that was fixed ages ago Nov 16 00:24:38 oh really? Nov 16 00:24:50 i just remember it Nov 16 00:25:02 but if i clear and post a new one, will it show up in the same place? Nov 16 00:25:09 still expanded (or not)? Nov 16 00:25:13 don't clear it Nov 16 00:25:17 just repost with the same id Nov 16 00:25:28 and yeah i dunno about expanded state etc; good question Nov 16 00:42:07 ctate, canadiancow: ah, but! Nov 16 00:42:12 I discovered something delightful Nov 16 00:42:20 ? Nov 16 00:42:25 if you don't use the same notification you used in the first place, the notification animation occurs Nov 16 00:42:36 so, have fun with that Nov 16 00:42:38 ffs Nov 16 00:42:51 yeah exactly Nov 16 00:42:58 it's the worst Nov 16 00:43:09 screw it. i'll wait until K Nov 16 00:44:00 Is it possible to animate the viewpager when calling setCurrentItem()? Nov 16 00:44:18 I'd rather have a smooth transition between the pages than a quick flash Nov 16 00:44:36 lov: hm. so you have to cache your own copy of the Notification and tweak it and repost, or something? Nov 16 00:45:48 oh yes. Nov 16 00:45:49 But! Nov 16 00:45:59 You must make sure that if you use a remoteview, that you create a brand new one Nov 16 00:46:05 lest you eventually CRASH THE DEVICE. Nov 16 00:46:35 tdignan: haven't used it, but there is a smoothScroll overloaded method for setCurrentItem() Nov 16 00:47:00 kbs: what's it called? Nov 16 00:47:08 oh, it's overloaded Nov 16 00:47:09 duh Nov 16 00:47:17 er, I mean -- it's setCurrentItem(int, boolean) Nov 16 00:47:32 nice Nov 16 00:47:38 ok giving this a try! Nov 16 00:48:44 im not sure i like the idea of caching this notification Nov 16 00:48:54 well suck it up buttercup. Nov 16 00:48:55 and how do you even Nov 16 00:49:43 but a builder will return a new Notification object, will it not? Nov 16 00:50:25 sure it will. Nov 16 00:52:11 looks a tad better but eh Nov 16 00:52:15 i will settle Nov 16 00:58:09 is it scrolling more than the um, buffered pagelimit by any chance? Nov 16 00:58:38 lov im not sure how to update the notif if the builder gives me a new one :S Nov 16 00:58:54 when scrolling one page over, it looks good, but only if the two pages aren't identical, or they are positioned at different heights Nov 16 00:59:10 doesn't it just go by notification id ? Nov 16 00:59:14 when scrolling more than one page over i guess it looks OK, but it skips all the pages in the middle Nov 16 00:59:22 canadiancow: the builder is just a convenience class? Nov 16 00:59:29 canadiancow: you just cache the notification, and update at your leisure Nov 16 00:59:42 this isn't a problem with my app though. it's just viewpager. Nov 16 00:59:43 and frankly, when I say animation I mean when the shade is pulled down. Nov 16 00:59:45 tdignan: ah, interesting. The second phenomenon makes sense (at least, vis-a-vis the implementation.) the first is weird. Nov 16 00:59:47 i am a picky guy Nov 16 00:59:56 it's not that big of a deal Nov 16 01:00:07 it was kind of a big deal for gps notification since that updated every second Nov 16 01:00:58 how do you set the actions on a Notification :S Nov 16 01:02:22 Heck if I know, but I'm betting it just devolves into updating a remoteview via remoteview methods. Nov 16 01:02:44 * canadiancow opens the source Nov 16 01:02:46 http://developer.android.com/reference/android/widget/RemoteViews.html#setOnClickPendingIntent(int, android.app.PendingIntent) Nov 16 01:02:52 I bet in fact that it just straight up calls through to that. Nov 16 01:03:53 but, again, just don't forget to create an entirely new remoteview :> Nov 16 01:04:57 protip: RemoteViews is a terrible API Nov 16 01:05:08 set your expectations low. Like, really really low. Lower than that. Nov 16 01:06:05 lov, it is RemoteViews :( Nov 16 01:06:09 * canadiancow quits Nov 16 01:06:33 yeah Nov 16 01:06:40 Oh, I know it's remoteviews Nov 16 01:06:44 but I'm super lazzy Nov 16 01:08:46 in my activity, I run a function that's in a library class. In the library class function, I get the activity's context and activity object. Is it possible for me to return back to the activity, calling one of the activity's functions to run? Nov 16 01:09:56 So in theory, I would have activity1 run library.myFunction(context, myactivity). in myfunction(context, myactivity), I want to do something like myactivity.anotherFunction(); Nov 16 01:12:37 hip2p: so what's stopping you? Nov 16 01:13:42 when I do myactivity.anotherFunction(), it says "the method anotherFunction() is undefined for type activity" Nov 16 01:14:08 it suggests that I add a cast to myactivity, but that seems wrong Nov 16 01:14:13 so make myfunction take in a MyActivity type Nov 16 01:14:16 or cast myactivity Nov 16 01:19:09 all I really want to do is have a dialog box come up when there's no internet connection, asking the user to retry or to exit. Nov 16 01:19:18 This is proving to be extremely difficult. Nov 16 01:20:57 I get the feeling that's because you don't understand what you're doing Nov 16 01:21:24 hip2p: google for "android dialog" Nov 16 01:21:33 I have the dialog working Nov 16 01:21:40 I understand how all of that works Nov 16 01:21:41 great then we're done :D Nov 16 01:21:48 evancharlton, let's go grab a beer Nov 16 01:22:02 my issue is with sending back information to the activity Nov 16 01:22:08 after the dialog has been clicked Nov 16 01:23:13 I guess I'll have to do this the dumb way and paste the dialog into every activity. It's a simple solution, even if it duplicates code. Nov 16 01:24:33 thanks for the help Nov 16 01:24:45 heh Nov 16 01:25:43 voltaire was clearly a coder at heart. "If I had more time, i would have writter a shorter program", to paraphrase him Nov 16 01:33:36 anyone else having connection problem to google play? Nov 16 01:34:54 nvm Nov 16 01:34:54 :d Nov 16 01:36:46 Apparently I had updates and tat was causing sue of my problems Nov 16 01:36:50 some* Nov 16 01:37:04 that* Nov 16 01:39:26 Hi all, related to my app but unrelated to android par sa, does anyone know any good resources for programming a second order regression analysis to my data? Nov 16 01:39:28 when I call a DatePickerFragment does my main activity pause? Nov 16 01:40:49 Belacan: congrats … you are working on something more interesting than the average fart app :) Nov 16 01:42:42 haha im flattered.. its an app that will try to estimate the drag characteristics of your car based on the way it 'coasts down' from speed, so you could, in theory see the effect of changing your tyres on your rolling resistance or see the effect of changing your aerodynamics on drag Nov 16 01:42:55 Belacan: with JIT you should see sane performance from java native Nov 16 01:43:08 Belacan: but you can link a C lib in JNI if you wanted Nov 16 01:44:20 so Java has an in-built regression tool? Nov 16 01:45:06 ctate/lov if i just repost a ntoification with the same id, it doesnt necessarily maintain its position or expanded state. i swear to god if i have to reflect into the remoteview methods... Nov 16 01:45:09 time to crack the numerical methods book :) Nov 16 01:46:01 canadiancow: sigh. Nov 16 01:46:07 g00s: Runga-Kutta! Nov 16 01:46:15 *Runge Nov 16 01:48:13 thanks guys, ima try n do it in excel first Nov 16 01:48:40 Belacan: no, but you can implement one. Or probably find a java lib. Nov 16 02:11:57 Whats the difference between a regular app running and a daydream when the phone is plugged in? Nov 16 02:17:04 what? Nov 16 02:17:07 daydreams aren't activities; they're essentially services that are given a controlled window to draw in Nov 16 02:17:34 when you say "what's the difference" what is it you actually want to know / accomplish? Nov 16 02:20:53 should saving things to disk,like a Bitmap for example, be done in an AsyncTask? Nov 16 02:21:32 you should never do significant I/O from the main thread. Nov 16 02:21:34 period. Nov 16 02:22:00 whether you use an AsyncTask or a Service or whatever to offload the I/O is a matter of taste and what works best for your app Nov 16 02:22:12 maybe just a HandlerThread; go nuts :) Nov 16 02:23:04 I mean from a user's point of view, why a daydream instead of some app, I mean if the device is plugged in what's the difference from their point of view? Nov 16 02:24:38 Not to say I don't like the idea, just a friend of mine I brainstorm with from time to time raised this issue and I had no real answer Nov 16 02:26:16 ctate: thanks Nov 16 02:26:31 lasserix: it's still locked. Nov 16 02:26:55 it's like asking "why screensavers?" Nov 16 02:27:02 when you could just run some photo slideshow app Nov 16 02:27:06 answer: Because. Nov 16 02:28:50 Ahh okay thought so. Well in any case sure sounds like a great in-app purchase incentive Nov 16 02:39:57 ctate: if I'm going to write a file to the disk, does it have to be external storage? Nov 16 02:40:22 Hi there Nov 16 02:40:31 I got a strange Problem... Nov 16 02:41:03 I updated my ADT Plugin to v21 and now SDK Manager wont start anymore... Nov 16 02:42:48 The system cannot find the path Nov 16 02:51:46 yay my lenovo it works **** ENDING LOGGING AT Fri Nov 16 02:59:58 2012