**** BEGIN LOGGING AT Fri Aug 31 03:00:00 2012 Aug 31 03:12:06 Anyone know how to make Eclipse use http://www.appmobi.com/documentation/jsAPI/index.html for auto-completion? Microsoft calls it Intellisense, but I don't recall the Java name for it. Aug 31 03:12:49 Is it possible to have an app on the playstore but sort of "unpublished"? I'm wondering if I could let a handful of people try something I distribute through play store without it being visible to searches. Aug 31 03:12:57 kc102: "Code Completion"? Aug 31 03:13:13 Yeah, but iirc there's some fancy sounding name for it. Aug 31 03:13:16 http://www.eclipse.org/recommenders/features/completion/ Aug 31 03:13:21 > haven't registered a developer account on play yet - haven't seen the abilities. Aug 31 03:13:53 tallest_red: there's better ways to distribute it to testers Aug 31 03:13:54 tallest if it's unpublished (it can be) i don't beleive anyone can download it Aug 31 03:14:01 you can send them an apk file Aug 31 03:14:23 http://launchpadapp.com/ is supposed to be decent Aug 31 03:14:25 i haven't tried it Aug 31 03:14:37 Or upload the apk file somewhere and the post with a url and a QR code in the post so ppl can DL it Aug 31 03:14:43 yea that's the backup idea. Was hoping to avoid it because the friends i'd have try something won't know what to do without guiding them -.- Aug 31 03:14:45 we use testflightapp.com for iOS (everyone does), so if you google 'testflight android' Aug 31 03:15:01 yeah, i figured, which is why i'm advising this approach Aug 31 03:15:11 they install one of these apps, then they can install your app from within it Aug 31 03:15:45 Get a skype group call going. Aug 31 03:15:48 huh, that seems pretty cool. Will look into it. Aug 31 03:15:48 Send to all. Aug 31 03:15:56 http://hockeykit.net/ Aug 31 03:15:57 url or qr code or something Aug 31 03:15:58 check this out, too Aug 31 03:16:01 and talk to all at once Aug 31 03:16:22 'hockeykit' is opensource.. then there's a hosted, commercial version of that called 'hockeyapp' Aug 31 03:16:26 kc102: that's impractical, not everyone even pays attention to their skypes much less are they on at once Aug 31 03:16:28 which is actually cross platform for ios, osx, android Aug 31 03:16:32 and again i haven't tried that Aug 31 03:16:38 tallest_red: for us the most important feature is being able to push updates Aug 31 03:16:39 as people report bugs Aug 31 03:16:46 emailing apks doesn't scale Aug 31 03:16:49 I was saying get everyone into a group call, assuming everyone has answered. Just suggesting things bro. Aug 31 03:16:52 once you have more than even a few people, that's annoying Aug 31 03:17:20 sideloading is so easy just send a mass email with instructions and don't tell them it's anything special Aug 31 03:17:25 heh, yea. Definately wouldn't do the email one. If I was that far out of options I'd of gone with a url + tell them to check install unknown sources idea. Aug 31 03:17:25 use psychology Aug 31 03:17:30 I normally run 4 to 5 people calls, not really that hard. Aug 31 03:17:48 I didn't say hard, i said impractical Aug 31 03:17:49 As in Aug 31 03:17:52 people don't answer their shit Aug 31 03:17:53 ever Aug 31 03:18:09 hehe Aug 31 03:18:11 i feel ur pain Aug 31 03:18:35 thanks for the ideas mh - that was what I was looking for. :) Aug 31 03:19:02 Well, rope em in! I dunno, imo recommended distrabution method is dl link to them when you and they have time. Aug 31 03:19:22 yea but the DL link method won't get updates pushed to them Aug 31 03:19:55 which is again, bad. No one I know is going to have the care or patience to install more than once. it is actually too much to ask of most friends to keep manually installing apks Aug 31 03:20:18 Release on Play, make opening require a password. Aug 31 03:20:29 Push updates w/. new pass each time possibly. Aug 31 03:20:37 I guess that's an idea. Eventually just undo the password Aug 31 03:20:44 ^^^ Aug 31 03:21:09 :) Aug 31 03:21:12 in the description put "this is for tersting purposes, requires a password" and just don't promote it Aug 31 03:21:17 heh, well ty for that one then. Aug 31 03:21:50 and i'll be decompilnig ur code for the password Aug 31 03:22:24 muhahahaha! Aug 31 03:22:31 yea but that's like if a handful of people cared to do that. if they're that interested that's fine. more like I just want to try stuff out without lots of complaints. Aug 31 03:22:41 What are you making? Aug 31 03:22:48 Nothing special Aug 31 03:22:55 :) Aug 31 03:22:59 T.T Aug 31 03:23:03 That's no answer at all. Aug 31 03:23:05 he's making pr0n Aug 31 03:23:08 I'm aware Aug 31 03:23:10 yea porn, it's porn Aug 31 03:23:12 we'll go with that Aug 31 03:23:23 it's a fart soundboard Aug 31 03:23:29 Lots and lots of porn. For all your high school buddies. Aug 31 03:23:31 ROFL Aug 31 03:23:36 That's good scode. Aug 31 03:23:43 scode. i like Aug 31 03:23:49 porn-farts soundbord. All the farts are specifically from clips on xhamster Aug 31 03:24:09 ok i'm done with that, that's horrible. Aug 31 03:24:13 anal farts, vaginal farts, oral farts, fart orgies, black on black farts... Aug 31 03:24:29 i digress Aug 31 03:24:42 Too much... overload.... Aug 31 03:24:47 scode, you use chrome? Aug 31 03:25:02 chromium & firefox Aug 31 03:25:11 Chromium? Aug 31 03:26:14 open source version of chrome Aug 31 03:26:30 Not sure if this'll work cause it didn't work on Iron. sec, leme get link Aug 31 03:26:38 ugh, the new paypal app uses a lot of skeuomorphic ui elements; leave that crap on iOS :/ Aug 31 03:26:57 scode: http://www.appmobi.com/ Aug 31 03:27:18 I currently have minimal idea of what the hell I'm doing, but this looks promissing. Aug 31 03:27:44 g00s: the single most pretentious word in UI design Aug 31 03:28:28 android and wp have been trending in the minimalism / away from that stuff - less ui chrome and textures and crap Aug 31 03:34:00 join #love Aug 31 03:34:15 it stole my cursor! Aug 31 03:34:30 kc102 this is your site? Aug 31 03:34:49 scode: no lol, I just found it and am currently playing with it Aug 31 03:36:28 what does this offer over, say , phonegap or appcelerator? Aug 31 03:37:47 I have no idea what those are, but afaik this allows you to make a HTML5 Browser game and release it on Android and iOS giving you access to 100% of the market. Aug 31 03:38:13 that's what phonegap and appcelerator do Aug 31 03:38:25 I'll go look those up then. Aug 31 03:38:37 I'm just looking for something to start app dev in. Aug 31 03:38:46 phonegap is open source, recently acquired by adobe but now under apache license Aug 31 03:38:48 And really hoping to find something with a C# base. T.T Aug 31 03:38:56 kc102: then go buy monodroid Aug 31 03:39:08 c#? your only hope is probably windows8 metro Aug 31 03:39:17 I have Java and Jscrpt experience as well. Aug 31 03:39:23 Just done the most in C#. Aug 31 03:39:25 or monodroid Aug 31 03:40:11 I found AndEngine at one point but just found it overly complex and a bit confusing. Aug 31 03:40:29 well it's up to yuo. if you want to learn, you can learn the android sdk, and you'll get access to rich awesome features. if you just want to build n reach various platforms, an html5 solution may be the way to go Aug 31 03:40:59 I really don't know what I fully want. I'm good at programming, I learn fast, I just don't know what to use. Aug 31 03:41:02 not to say html5 cross platform solutions don't have good features, but not the level of richness provided by native sdk Aug 31 03:41:28 kc102: you want Java Aug 31 03:41:35 hehe Aug 31 03:41:51 its a matter of business decision, desires, preferences... Aug 31 03:41:53 PhoneGap doesn't mention windows OS, just windows mobile. Aug 31 03:42:06 The highest level JAva I've done is a minecraft plugin. Aug 31 03:42:30 kc102 yeah but you can easily extract your app out of the phonegap framework and into desktop/web environment Aug 31 03:42:40 assuming your not using mobile device features Aug 31 03:43:09 Well, touch screen for actual movement and such, but easily replaced by arrow keys. Aug 31 03:43:26 kc102: units is supposed to support wp8 Aug 31 03:43:26 basically hponegap is just a container for a browser engine to run web apps, with some ability to hook out into native sdk features Aug 31 03:43:30 *unity Aug 31 03:43:49 Unity is what my degree program is gonna be teaching me. Aug 31 03:43:49 yeah i don't do games development but i hear good things about unity 3d Aug 31 03:43:55 what's wp8? Windows 8? Aug 31 03:44:04 windows phone 8 Aug 31 03:44:07 yeah, you mentioned c# Aug 31 03:45:10 Only meintioned C# cause the closer a language is to it, the easier I'll be able to get by, but tbh I found java hella close to C# anyway so I figure it'll all be fine once I figure out what code base I wanna use. Aug 31 03:45:48 :) Aug 31 03:47:14 c# is java more or less Aug 31 03:47:18 syntactically speaking Aug 31 03:47:35 Looks like Unity can create games in a common place and then publish to a myraid of platforms. Aug 31 03:47:40 hell more than syntactically Aug 31 03:48:50 kc102 this is not to discourage but it sounds like yuo may be somewhat new to java. nothing wrong with that, but be prepared to do a lto of reading n learning and shedding hair. android is not a beginner framework, even soem basic things make use of some advanced java constructs Aug 31 03:49:06 I am somewhat new. Aug 31 03:49:23 but, it can be done Aug 31 03:49:41 I taught myself the basics in 3 days, had a working plugin by the end of that day, then spent the rest of the week improving it. But then Bukkit updated and my code broke so I lost interest. Aug 31 03:49:56 After that, the only Java I've done is getting confused and annoyed w/ AndEngine. Aug 31 03:50:06 a lot of people think "oh mobile apps, those must be easy to make" cause of their simplicity. but simplistic user experience is typically the result of complex design patterns n code Aug 31 03:50:31 I want to make a top-down rpg that can be played on iOS, Android, and the Desktop. Graphics don't have to be anything absolutely amazing, hell sprites are fine. What do you recommend I use? Like, something I can go download and setup tonight. Aug 31 03:51:10 kc102: Unity? Cocos2dx? Aug 31 03:51:13 if cross platform is a deciding factor, unity (or another engine) or html5 may be the way to go Aug 31 03:51:34 speakingcode: html5 is possible, but a bit more difficult than just using Unity Aug 31 03:51:50 Unity has an extensive assets store if i remember correctly Aug 31 03:52:56 I'm thinking Unity since that's what I'm gonna be learning in a few semesters and if I'm like "Bam, here's a game with Unity." it'll be awesome. Aug 31 03:53:01 tyvm guys! Aug 31 03:54:15 Would Unity allow me to make the game and then require logging in VIA an account possible? Aug 31 03:55:49 i personall like what the Unreal guys are doing... can't wait til they release for mobile platforms Aug 31 03:56:15 kc102: you can integrate anything you like for logging in... Aug 31 03:56:30 kk, cool, ty Aug 31 03:56:37 Downloading Unity atm :D Aug 31 03:57:30 does a constructor have to be the first method in a class in java??? Aug 31 03:57:40 or well, before method bodies Aug 31 03:57:48 speakingcode: i don't think so Aug 31 03:57:57 i don't either. but eclipse is bitching about it Aug 31 03:58:00 you can have the constructor physically anywhere Aug 31 03:58:04 gotta be a bug in eclipse Aug 31 03:58:05 but you need one Aug 31 03:58:15 well Aug 31 03:58:20 that's not strictly true either Aug 31 03:58:28 but just put it in the right place to shut eclipse up Aug 31 03:58:37 or it's just freakign out n need to restart it Aug 31 03:59:19 i just pasted a method onto a file right above the constructor (temporarily) and eclipse started highlighting red like a mofo Aug 31 04:02:20 manm somethin aint right Aug 31 04:02:30 public void doNothing() { } is NOT a syntax error Aug 31 04:04:01 wtf. i highlight the whole file, cut it, paste it, and the error goes away... what is this Aug 31 04:07:22 see: eclipse Aug 31 04:09:25 hehe Aug 31 04:09:30 try intellij Aug 31 04:09:34 dnt like it Aug 31 04:09:44 then live with eclipse's failings :) Aug 31 04:10:31 or be like some barbarians and don't even use an IDE for java :) Aug 31 04:12:05 hell about the main feature i take advantage of is building and jumping to declarations Aug 31 04:16:59 back in my day it was all 'ed' Aug 31 04:39:44 is there a way to get the source files for resources in the android sdk. like the layouts used in widgets like DatePicker Aug 31 04:41:26 f2prateek, thats in aosp Aug 31 04:41:57 saik0: which folder should i look in? I have the source synced Aug 31 04:42:27 find -name DatePicker.java ? Aug 31 04:43:15 Once i have some of sqlite database, i'ts entirley possible for a user to get that off the phone, and onto the computer, in such a way that i'ts compatible with normal sqlite reading dbs? Aug 31 04:43:53 Jak_o_Shadows: it's pretty much standard sqlite3 db Aug 31 04:43:56 Jak_o_Shadows, there is nothin special about anroid sqlite Aug 31 04:44:22 Jak_o_Shadows: only a rooted user, but yeah Aug 31 04:44:27 You would need root on the device to get at it though Aug 31 04:44:48 http://gigaom.com/europe/app-store-infested-with-zombie-software-claims-analytics-startup-adeven/ Aug 31 04:44:48 Right, that answers my question. That means that to be nice, i should somehow upload the db Aug 31 04:46:50 saik0: thanks Aug 31 04:46:58 Leeds: discoverability is really hard on the ios app store Aug 31 04:47:19 that gold rush has past Aug 31 04:47:35 * saik0 was hoping it meant software titles about zombies Aug 31 04:47:55 but, but... Angry Birds has made 253 trillion yen this week... so I can make millions by writing a fart app, right? Aug 31 04:48:08 i can't wait until they do the android equivalent Aug 31 04:49:44 I think there are 400,000 tip calculators with no downloads alone Aug 31 04:49:58 is this supposed to be a revelation? Aug 31 04:50:51 i mean lets face it. do you have even 1000 or more apps on your phone that you use? and of the apps you have, how many of them are ones yuo even use? Aug 31 04:51:00 err Aug 31 04:51:32 how many are ones that only you know about? none. most of them are ones everyone knows about. thus -> most peoples apps are from the same subset Aug 31 04:52:41 i was reading that people are spending less time using their mobile phones; so the amount of 'user time' your app is likely to see has gone down Aug 31 04:56:14 along these lines http://www.cbc.ca/news/technology/story/2012/08/20/sci-tech-mobile-usage-in-canada.html Aug 31 04:56:22 maybe cow can explain Aug 31 04:57:57 well in the winter time canuks burrow themselves n the ground Aug 31 04:58:06 hehe Aug 31 04:59:18 the fads pass and in the end people revert back to stanard uses - call text n share pics. they all just wanna get laid. that's the primortial social drive Aug 31 05:00:57 ... what about world domination? Aug 31 05:01:06 they use pc's for that Aug 31 05:01:40 speakingcode: mobility of CnC is very important! Aug 31 05:01:50 what if you just want to check the status of how your world domination plan is going while driving? Aug 31 05:01:51 (and yes, android wins majorly there) Aug 31 05:02:46 if apps do their job right you should use them les Aug 31 05:14:24 http://stackoverflow.com/questions/2150656/how-to-set-focus-on-a-view-when-a-layout-is-created-and-displayed Aug 31 05:14:31 anyone have insights on that SO question? Aug 31 05:15:03 more specifically, someone says to call requestFocus() on a different view object, but to make sure to setFocusableInTouchMode(true) on it Aug 31 05:15:22 but then, someone says not to do that since it causes weird interactions and behaviours Aug 31 05:15:38 and that someone is romainguy_ ... which lends some weight to it Aug 31 05:15:56 so..... what should I do to prevent an EditText from stealing focus by default when a view starts? Aug 31 05:16:45 Working through the Android documentation! I have this: http://pastie.org/4623828 When I run "ant debug", I get "main.xml:2: error: Error parsing XML: unbound prefix" Why Aug 31 05:16:46 ? Aug 31 05:18:04 Synthead: you may have mispelled android: Aug 31 05:18:20 maybe andriod: or left out entirely Aug 31 05:19:00 g00s, the spelling looks fine Aug 31 05:19:08 how about "mlns" Aug 31 05:19:51 Leeds, there it is! Aug 31 05:19:59 Leeds, haah. thanks :) Aug 31 05:20:34 I would say I'm not just a pretty face but... no Aug 31 05:20:39 now I get "main.xml:20: error: Error parsing XML: mismatched tag" Aug 31 05:20:46 what editor are you using, by the way? Aug 31 05:20:59 Leeds, vim Aug 31 05:21:09 Leeds, ooh, /> != > Aug 31 05:21:16 wouldn't the syntax highlighting have shown the mlns up? Aug 31 05:21:41 oh, no, apparently not Aug 31 05:21:48 Leeds, it just highlights it as xml. I might want to find an android-specific highlighting schema Aug 31 05:23:03 anyone have any insight into my problem? Aug 31 05:25:29 whhat weird interactions and behaviours does it cause? Aug 31 05:26:55 HorizonXP, are you asking because you don't want the virtual keyboard to open right away? Aug 31 05:31:47 speakingcode: i have no clue. Aug 31 05:32:00 he's had like 2 years to give a reason Aug 31 05:32:14 Zharf: i don't want the keyboard to open right away AND I don't want the caret cursor to show there Aug 31 05:32:37 Zharf: keyboard can be disabled using a Manfiest keyword option, but it's not sufficient for the caret cursor Aug 31 05:33:01 try stackoverflow.com/questions/7009096/disable-software-keyboard-in-android-until-edittext-is-chosen/7009155#7009155 Aug 31 05:33:18 i'm out, gnight Aug 31 05:50:48 "A Japan court on Friday ruled against Apple's claim that Samsung infringed on one of its utility patents, handing the Korean company a small victory after its punishing loss in a similar U.S. case." Aug 31 06:00:08 "samsung to sue apple over future lte infringement" Aug 31 06:00:44 if i have this kind of path: /mnt/sdcard/DCIM/camera/test.jpg how do i get a proper uri out of it, as in something like this file://mnt/sdcard etc Aug 31 06:05:00 which one is better tf300 or tf700t Aug 31 06:15:33 linuxuz3r: thats easy, 700 > 300 Aug 31 06:41:48 hi Aug 31 06:42:00 :) Aug 31 06:43:25 does anyone know much about surfaceflinger? Aug 31 06:45:07 nope :( Aug 31 06:45:35 romain might, maybe ask a question. who knows if he will see Aug 31 06:47:26 i'm just curious about its history, and when it runs - i have a jelly-bean device, and surfaceflinger is running on it, but on my gingerbread device, it's not Aug 31 06:48:52 I think it probably is running on your GB device... possibly under a different name Aug 31 06:49:28 hmm, i see Aug 31 06:49:35 i do see /system/bin/surfaceflinger on it Aug 31 06:51:46 doing drag and drop is a major pain in the ass if you are supporting pre-HC Aug 31 06:52:49 windows 95 had dnd, and its 2012 - pretty crazy it took so long to get into the apis Aug 31 06:55:04 is it possible to expose a WebView with a JavaScript object that is an API to Java code? Aug 31 06:55:28 ie, have foo.bar() call a JavaClass.bar() etc Aug 31 06:56:06 xertoz: yes, I believe so Aug 31 06:57:18 I'm not quite sure how though :) Aug 31 06:58:21 ah, there we go, this seems to be it: http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String) Aug 31 07:00:29 Hello, what is the proper way to get photo from gallery. I found there are many resources about this problem, but they use managedQuery. However, I found that this is deprecated, should I use this method? Aug 31 07:01:37 pick intent edwinkcw Aug 31 07:02:23 Ivru: yep, but I need to retrieve the result using managedQuery? Aug 31 07:02:59 edwinkcw: nope. wait Aug 31 07:03:13 lvru: ok Aug 31 07:03:26 edwinkcw: http://yetanotherandroidblog.blogspot.ch/2010/03/accessing-pictures-on-sd-card.html Aug 31 07:03:52 Hello guys, I want to resize a view as the virtual keyboard shows up and it works perfectly with android:windowSoftInputMode="adjustResize" parameter (http://goo.gl/USqD4) But I have seen a more useful flow in the everyme app. See this screenshot. If I press the back button, the keyboard becomes hidden, but the shrink-ed view stays shrink-ed. That is what I'm trying to achieve. Can someone help me to find out how it can be don Aug 31 07:05:39 Leeds: aye, that'll do nicely. this means it's probably possible for me to develop a core interface for my app in HTML5 for both iphone and android, just providing the proper API support behind it for each platform (possibly including web browsers, as well) Aug 31 07:06:06 enjoy :) Aug 31 07:08:16 well, just got the macbook yesterday so I suppose I'll stop beating around the bush and implement for ios as well >_> Aug 31 07:08:27 damn apple Aug 31 07:08:54 fuckandroidfuckandroidfuckandroid any tips for trying to get dialog theming working on ~v8? Aug 31 07:14:23 Hello guys, I want to resize a view as the virtual keyboard shows up and it works perfectly with android:windowSoftInputMode="adjustResize" parameter (http://goo.gl/USqD4) But I have seen a more useful flow in the everyme app. See this screenshot. If I press the back button, the keyboard becomes hidden, but the shrink-ed view stays shrink-ed. That is what I'm trying to achieve. Can someone help me to find out how it can be don Aug 31 07:29:04 Hello guys, I want to resize a view as the virtual keyboard shows up and it works perfectly with android:windowSoftInputMode="adjustResize" parameter (http://goo.gl/USqD4) But I have seen a more useful flow in the everyme app. See this screenshot. If I press the back button, the keyboard becomes hidden, but the shrink-ed view stays shrink-ed. That is what I'm trying to achieve. Can someone help me to find out how it can be don Aug 31 07:36:07 napster: we saw your first post Aug 31 07:36:32 i wonder how well the emulator would work full screen on a windows 8 tablet Aug 31 07:36:59 vavirta: Around 25 people joined the channel after my last iteration Aug 31 07:37:48 i have channel joins/parts ignored here Aug 31 07:37:57 me too Aug 31 07:38:00 so you just looked like an impatient wanker :3 Aug 31 07:39:40 no, I just work like a bot. I increase the delay between post in every iteration. like, 5, 10, 15 minutes and so. I don't want to spam the channel either, and I follow : http://www.catb.org/esr/faqs/smart-questions.html Aug 31 07:45:01 goodmorning Aug 31 07:47:23 hi Aug 31 07:53:59 hmm, so the newer kindle fire is going to have Nokia maps O.o Aug 31 07:54:45 which is a weird combo Aug 31 07:55:08 should it have google maps? Aug 31 07:55:18 also will it have gps? Aug 31 07:55:30 it will have location services, no idea if wifi or real gps Aug 31 07:55:48 presumably that means someone is building a native Android client Aug 31 07:55:56 will it have a tegra cpu Aug 31 07:57:29 i like google maps, but the google map apis blows hard Aug 31 07:57:38 ^ Aug 31 07:57:46 they blow serious cock Aug 31 07:58:08 i dont like the updated google maps it freaking messes up with my gps location Aug 31 07:58:28 im stuck with the old google maps for my phone Aug 31 08:00:53 how the fuck do you theme a dialogfragment o.O Aug 31 08:01:12 you can do it without the fuck Aug 31 08:01:15 i think Aug 31 08:01:22 but its up to you Aug 31 08:01:35 i can't figure it out Aug 31 08:01:42 hi. how can I make this a for loop ? http://pastebin.com/MmVuQS1C . I want something similar to the R.id.ImageView[N]. Aug 31 08:01:51 setStyle() does nothing, contextThemeWrapper does nothing, Aug 31 08:02:01 stork, what os u use to program in android Aug 31 08:02:09 uhh windows Aug 31 08:02:13 ok Aug 31 08:06:15 maybe nokia will make their map apis available for other android developers :) Aug 31 08:07:46 stage a coup Aug 31 08:08:15 that would be funny if you wanted to write a good map based app, and the kindle fire had the best map apis Aug 31 08:08:31 oh google, wtf are you doing Aug 31 08:31:20 help: on android v8, dialogs are dark, on android >=v11, dialogs are light. how the hell can i set my foreground items to reflect this? Aug 31 08:32:47 http://developer.android.com/guide/webapps/webview.html describes how to create android web-app which will load resources from web-server. Is it possible to load all html/css/js from local app resources so this web-app can be used without internet connection? Aug 31 08:41:38 fuck it, i'm just gonna write some hacky code Aug 31 08:41:48 change text colour if version >=11 Aug 31 08:42:13 stork: theme the dialog Aug 31 08:42:19 doesn't work Aug 31 08:43:13 stork: how did you theme the dialog? are you using a dialog fragment? the information you provided does not help me to help you Aug 31 08:43:16 :) Aug 31 08:43:47 i am using a dialog fragment, i've tried calling setStyle() but it does nothing Aug 31 08:47:22 calling setStyle(STYLE_NORMAL, R.style.Theme_Sherlock_Light_Dialog) in onCreate Aug 31 08:50:26 Obligatory "what are you trying to do" Aug 31 08:50:44 * stork set the theme of a dialog Aug 31 08:50:56 Why Aug 31 08:51:03 or rather a dialog fragment Aug 31 08:54:01 atm on api11 it uses the light holo dialog, on earlier versions it defaults to the dark one. my primary text colour is set to white, so you cant see the text on api 11+ Aug 31 08:54:30 So you hardcoded a white text color Aug 31 08:54:55 Why not use the textColorPrimary attribute Aug 31 08:55:10 Create your views using the dialogs context Aug 31 08:55:13 Success Aug 31 08:58:16 i did use the textcolorPrimary attribute Aug 31 08:58:36 but the dialog backgrounds are totally different (black on api8, white on api11) Aug 31 08:58:40 If I don't want android 4.1 devices download my app, where can I set it? Aug 31 08:58:48 How are you creating the views Aug 31 08:59:52 xml file, loaded using my activities layout inflater and set as the view of an alertdialog in the onCreateDialog of a dialogfragment Aug 31 08:59:54 edwinkcw: i guess you could use maxSdk or something in your manifest Aug 31 09:00:20 usually frowned upon Aug 31 09:00:26 To make it short, you need to use your Dialogs Context to inflate your views Aug 31 09:00:32 Not your Activity Aug 31 09:00:43 but if something is really borked, you might use it before it can be fixed Aug 31 09:00:50 Dialog uses ContextThemeWrapper to ensure the right theme is passed to views Aug 31 09:03:08 what's my dialogs context? Aug 31 09:03:16 yourDialog.getContext Aug 31 09:03:40 it's a dialog fragment Aug 31 09:04:17 Also, how is textColorPrimary white? Since you're getting a light dialog, I'm assuming you're using a light theme.. That would make it black Aug 31 09:04:55 DialogFragment uses a Dialog Aug 31 09:05:02 Also, 10:59 xml file, loaded using my activities layout inflater and set as the view of an alertdialog in the onCreateDialog of a dialogfragment Aug 31 09:05:06 AlertDialog right there Aug 31 09:05:21 AlertDialog.Builder has a getContext as well Aug 31 09:05:51 what do i pass into the builder as the context object Aug 31 09:05:56 Your Activity Aug 31 09:06:15 Which is then wrapped in a ContextThemeWrapper with the right Theme Aug 31 09:06:19 thats what im already doing Aug 31 09:09:48 You're doing something wrong somewhere Aug 31 09:13:59 Is there a way for me to use HTC Desire's radio receiver to send a signal to my cell? Im looking to have some small device, let's say the size of a ring, that could send a radio signal and have that radio signal received by an android app like an ordinary keyboard click or screen touch... Aug 31 09:14:12 In order to vibratePatter.add(), I've to use ArrayList. How can I use this ArrayList as argument to vibrator.vbirate which takes long[] as argument Aug 31 09:16:41 hello guys, new day new problem. I'm getting "No content provider for permission revoke .." and "Force stopping package" when I try to install and run my app on the Android Emulator with Eclipse ... any hint? I read about fixing /data/local permissions, tried it but with no luck Aug 31 09:18:03 SimonVT: think i found the problem - i was using the wrong layout inflater Aug 31 09:18:20 you were right Aug 31 09:19:47 Apparently AlertDialog.Builder.getContext() is API11.. But can just create() and use the context then.. And yeah, the LayoutInflater needs to be from the same context Aug 31 09:20:35 before i was doing: new AlertDialog.Builder(getActivity())....setView(getActivity().getLayoutInflater().inflate(...)).create Aug 31 09:21:10 which was bad and wrong and now i see the error of my ways Aug 31 09:21:37 You probably need to do AlertDialog dialog = new AlertDialog.Builder().create(); LayoutInflater inflater = LayoutInflater.from(dialog.getContext()); ... Aug 31 09:22:49 yeah Aug 31 09:23:08 At least you only spent two days complaining about it :p Aug 31 09:23:25 si Aug 31 09:23:27 could be worse Aug 31 09:23:39 at least i was getting paid to complain about it Aug 31 09:23:54 i hope you earn more than i do Aug 31 09:24:09 I earn nothing Aug 31 09:24:15 haha, just realise the logcat symbol is the android thing sideways with nyan cat colours going behind it Aug 31 09:24:20 oh :< Aug 31 09:24:32 hey guys i m getting an error in my app running in android2.2 i.e. Not trusted server certificate , i used the code i got from googling to make it work for android2.2 ( i know we need to provide certificate for android2.2 ).But a weird behaviour is when i run the app multiple times few times only i get this error( No trusted cerificate ). iam not getting why only few times it is throwing this error.is this an issue related t Aug 31 09:24:44 Jak_o_Shadows: http://code.google.com/p/android/issues/detail?id=20386 Aug 31 09:25:11 Fastest "fix" in Android history Aug 31 09:35:25 I have a question: I'm working on a music player app and don't know what to use to store playlists. Should I use a SQLite database where a new table would be created for each new playlist (let's call them "playlist tables") and have one "main" table which would hold all the information for other "playlist" tables, or is there a more efficient/simpler solution? Aug 31 09:36:28 BluePegasus: you don't have to create a new table per playlist, just use a PlaylistID column so you can separate entries per playlist, and have for example 'playlist_entries' and 'playlists' tables Aug 31 09:36:57 yes; never design a system to create tables. Aug 31 09:37:09 encode information in precreated tables instead. Aug 31 09:37:20 hi. how can I make this a for loop ? http://pastebin.com/MmVuQS1C . I want something similar to the R.id.ImageView[N]. Aug 31 09:38:08 You can't Aug 31 09:38:25 you can Aug 31 09:38:28 Frigolit: Thank you so much! Aug 31 09:39:32 alankila: I'll keep that in mind next time I'm working with databases Aug 31 09:39:38 superlinux-hp: if you have a repeating structure, consider a listview. Aug 31 09:39:50 ok Aug 31 09:39:50 superlinux-hp: alternatively walk the parent commont to all of imageviews looking for imageview kids Aug 31 09:40:09 superlinux-hp: if these better alternatives fail, use reflection to construct the field lookup from string Aug 31 09:40:49 Ah right, there's that looking up an identifier from a string Aug 31 09:41:01 alankila, thanks Aug 31 09:42:10 BluePegasus: npnp :) Aug 31 09:42:28 hello guys, new day new problem. I'm getting "No content provider for permission revoke .." and "Force stopping package" when I try to install and run my app on the Android Emulator with Eclipse ... any hint? I read about fixing /data/local permissions, tried it but with no luck Aug 31 09:42:33 superlinux-hp: http://pastebin.com/wi5w34Kq Aug 31 09:43:18 sam, i'll see Aug 31 09:44:12 the other suggestions are better though; you should refactor before you reach that code Aug 31 09:44:26 sam, this is not exactly what i want. Aug 31 09:45:17 i want ti have the names of ImageView have some kind of number replacement in the name similar to php Aug 31 09:45:43 then what alankila says Aug 31 09:47:23 hey guys i m getting an error in my app running in android2.2 i.e. Not trusted server certificate , i used the code i got from googling to make it work for android2.2 ( i know we need to provide certificate for android2.2 ).But a weird behaviour is when i run the app multiple times few times only i get this error( No trusted cerificate ). but only few times it is working correct and few times throwing err( No trusted server Aug 31 09:48:08 can anyone tell me if this error is from the server i m hitting or my side i need to add somthing else Aug 31 09:48:09 ? Aug 31 09:48:37 argh... Camera.Parameters kills me :-/ Aug 31 09:49:10 How would I dynamically build a PreferenceActivity without having the camera object? Aug 31 09:49:51 I could save the flattened parameter string using SharedPreferences and build it from that, but then I have to sync that Aug 31 09:50:06 does anyone have a good hint? Aug 31 09:50:35 chrome update fixes a bunch of high risk security holes :) Aug 31 09:51:52 the problem is that I not only need to save current parameters but also all the available options... i'll bloat the SharedPreferences unnecessarily Aug 31 09:52:19 I guess that's the reason why almost all camera apps don't support all the available parameters :-/ Aug 31 10:00:03 hey guys is it possible seeing as the android source doc's build with slightly older versions of ubuntu is it posisble to use the latest 12.04 Aug 31 10:00:12 nm answered my own question Aug 31 10:00:57 have another question is usb access essential as I have a monster dedicated server in a data center but no access to the usb etc all i have is remote access over ssh Aug 31 10:03:01 eagle0513875_: this is for android application development Aug 31 10:03:09 ok where should i go and ask Aug 31 10:03:26 but no, I suppose you don't need usb to build the actual android itself, except if you need to siphon some closed-source bits from your phone Aug 31 10:04:00 is there anywa to get freaking GPS to lock-on quicker/better? This huawei of mine is way to freaking slow Aug 31 10:04:54 alankila: thanks :) Aug 31 10:05:07 It's probably just it being a huawei isn't it :{ Aug 31 10:11:15 looks like the iPad mini could be an iPad 2 just smaller Aug 31 10:12:07 is anyone here using osm ? i'm kinda confused about all the different libraries :/ Aug 31 10:12:28 i think i found at least 4 Aug 31 10:13:22 hello guys, new day new problem. I'm getting "No content provider for permission revoke .." and "Force stopping package" when I try to install and run my app on the Android Emulator with Eclipse ... any hint? I read about fixing /data/local permissions, tried it but with no luck Aug 31 10:14:39 ertl: weird. recreate your avd maybe Aug 31 10:15:02 g00s: tried it, still the same, I'm confused Aug 31 10:16:37 14 minutes, no gps lock. Aug 31 10:16:39 * Jak_o_Shadows sighs Aug 31 10:18:21 I have fling gesture switching screens. However the fling doesn't work if it's started on top of buttons or edittexts. How to get it work even if it's started on top of those? Aug 31 10:20:44 guys, im trying to use TouchImageView https://github.com/MikeOrtiz/TouchImageView , with this fragment http://www.fpaste.org/wkJC/ , however im not sure how to remove the current image viewed which choosing from the spinner to allow memory for the new image Aug 31 10:20:58 should recycle() do it? Aug 31 10:21:10 hello guys! I making widget Aug 31 10:21:48 and I create some simple additional class in project ... and trying to use it, but I've got error when I call it's method :((( Aug 31 10:21:53 from widget main class Aug 31 10:22:12 can I use custom classes in AppWidget? (when making widget) Aug 31 10:22:35 Nope Aug 31 10:23:04 (I assume you mean custom views) Aug 31 10:23:37 SimonVT: no.. I mean custom classes (for example my CustomClass() has only one method, which returns String "example string") Aug 31 10:23:54 but when I call it, i've got exception Aug 31 10:24:49 What kind of error Aug 31 10:24:55 You can use custom classes Aug 31 10:26:25 http://pastie.org/4630291 Aug 31 10:26:58 So you're passing null to println Aug 31 10:27:06 Don't do that Aug 31 10:27:50 Or log.i rather Aug 31 10:32:52 I figure out which problem is: Aug 31 10:33:06 in widget class (which creates widget) Aug 31 10:33:42 I have created private testClass _testClass; variable, and trying to define it in onUpdate() method Aug 31 10:33:49 like: _testClass = new testClass(); Aug 31 10:33:58 but it doesn't work Aug 31 10:37:08 i guess osmdroid is the most popular osm mapview thing Aug 31 10:39:59 i am having the same issue http://stackoverflow.com/questions/5491216/android-ssl-error-certificate-not-trusted-sometimes can anyone have the solution for this ...please look into that Aug 31 10:44:10 hmm, where the hell is osmdroid pulling its data from Aug 31 10:44:47 if i made some avds with command line, do i have to delete them from the command line or can i just delete the names in ~/.android? Aug 31 10:45:16 You can just delete them from .android Aug 31 10:45:24 ok thanks Aug 31 10:46:00 g00s: I'd imagine it gets its data from open street maps :p Aug 31 10:46:32 SimonVT: actually, the osm servers are not for regular usage from what i understand Aug 31 10:46:58 i thought you were supposed to host your own, or … use somebody that cached it Aug 31 10:47:23 maybe things have changed Aug 31 10:48:04 I once took the train from Oxford to London with the guy who (later) founded OSM Aug 31 10:48:16 :) Aug 31 10:48:40 after knocking the bottom off my car's engine hitting a speed bump :( Aug 31 10:48:47 holy shit Aug 31 10:48:59 hah Aug 31 10:49:37 I only went there to talk to a Linux group about Linux on ARM PDAs... Aug 31 10:50:53 never got the car fixed - got it towed back to London, got an insurance assessment, they claimed it was wear and tear, so refused to cover it... repair estimate wasn't much less than the value of the car, so I abandoned it and bought a new one Aug 31 10:52:00 i've had my pos 97 dodge dakota - for a long time :) luckily no problems really. amazing. Aug 31 10:54:57 best way store lat long sqlite Aug 31 10:55:01 oops :) Aug 31 10:55:31 probably reals Aug 31 10:57:18 thought maybe shifted ints would be better, probably not Aug 31 11:08:38 hello, any idea about how to create a custom camera filter in android ? like what are the approaches ? Aug 31 11:11:17 guys, I have a question for the experienced ones... Aug 31 11:12:04 I want to get into game development on android and I don;t know which game framework to use.... AndEngine? Cocos2d? or something different? what do you recommend? Aug 31 11:13:36 Blender :P Aug 31 11:15:05 and Gimp Aug 31 11:19:17 I want to get into game development on android and I don;t know which game framework to use.... AndEngine? Cocos2d? or something different? what do you recommend? Aug 31 11:25:25 are you in infinite loop? Aug 31 11:27:45 Android development is strictly forbidden in Infinite Loop Aug 31 11:28:12 infinite loop doesn't exist or is not acceptable for the game Aug 31 11:38:01 hello guys, new day new problem. I'm getting "No content provider for permission revoke .." and "Force stopping package" when I try to install and run my app on the Android Emulator with Eclipse ... any hint? I read about fixing /data/local permissions, tried it but with no luck Aug 31 11:41:38 lumia 920, yum Aug 31 11:48:55 In my custom DialogPreference if I try to get an attribute for android:text using getAttributeValue(namespace, "text") it returns the resource id (e.g. @1234...) if I then use getAttributeResourceValue(namespace, "text") it won't get hard coded text! Any solution to be able to get both? Aug 31 11:49:34 hi. i want to backup, using the adb tool, SMSs to my local Linux laptop. when trying to simply './adb pull /data/data/com.android.providers.telephony/databases/mmssms.db' from a device and getting Permission Denied. more so if i try to ./adb shell and then 'su' i get a similar error. Aug 31 11:49:59 (this doesn't occur with another Android device) Aug 31 11:57:23 julianoliver: su is only available on rooted devices.. Aug 31 11:57:35 julianoliver: what's the other device? Aug 31 11:57:50 julianoliver: also there's programs available to rot many many devices with the click of two buttons or so Aug 31 11:59:16 tapas: yes i tried with this device but it didn't work. i tried with several tools. Aug 31 12:00:22 julianoliver: then you're out of luck i guess.. which is the device that resists your rooting attempts? Aug 31 12:06:56 hi. i have my application can run on the emulator. but when i tried to install the package on a real device it does not install. so what should i do? Aug 31 12:08:09 superlinux-hp: you should give us more information so that we might actually be able to help you Aug 31 12:08:25 wongk, how? and what information? Aug 31 12:08:42 or which info? Aug 31 12:08:45 how did you try to install it? what device? what was the error? Aug 31 12:10:53 i just created an unsigned apk. and I have linux by the way as development platform. and i copy paste the apk on the phone, and then install it from withing the phone. and It tries installing it, i wait and then it tells me Application not installed Aug 31 12:11:00 wongk, Aug 31 12:11:42 try adb install foo.apk Aug 31 12:12:44 wongk, i have not setup linux to install directly on the real phone. Aug 31 12:13:01 set it up? plug in the phone and type the command Aug 31 12:13:14 hello guys, new day new problem. I'm getting "No content provider for permission revoke .." and "Force stopping package" when I try to install and run my app on the Android Emulator with Eclipse ... any hint? I read about fixing /data/local permissions, tried it but with no luck Aug 31 12:13:33 wongk, this is linux not windows Aug 31 12:13:38 so Aug 31 12:13:52 i need to add things to my debian distro Aug 31 12:13:56 anyways.. Aug 31 12:14:03 that's not the issue here Aug 31 12:14:08 i didn't need to add anything on my gentoo machine... Aug 31 12:14:20 how did you create an unsigned apk, anyway? Aug 31 12:14:26 you can't install an unsigned apk Aug 31 12:14:48 right click on the project then android tools then save the packge some where Aug 31 12:15:10 i have a signature key, and same thing! Aug 31 12:15:11 sign it, or use a debug build Aug 31 12:17:30 wongk, how to use the debug build? Aug 31 12:17:51 you don't know how to create a debug build? Aug 31 12:18:03 are you using eclipse? Aug 31 12:18:43 wongk, yes i am Aug 31 12:18:47 superlinux-hp: If you're running it in the emulator you must already be using a debug build. Aug 31 12:18:51 then build your project Aug 31 12:19:03 code1, isn't the one in the bin folder? Aug 31 12:19:10 code1, isn't the one in the bin folder of the project? Aug 31 12:19:21 yes Aug 31 12:19:31 i have just installed it, and did not get installed too Aug 31 12:20:10 If I store my Android apk files in a public repository, should I protect the API key? Aug 31 12:20:19 you have enabled "Unknown source" on the device, right? Aug 31 12:20:39 superlinux-hp: why don't you plug your device in and run the project from Eclipse. It will ask you if you want to deploy to device or emulator. Aug 31 12:21:00 "Unknown sources" Aug 31 12:21:16 yes it's on. just check it Aug 31 12:21:36 well, i can't assist any further w/o and error message Aug 31 12:25:47 regarding sync adapters: am I better off putting the actual sync code in its own service, or should I let it run in the Sync thread? Aug 31 12:28:27 hmm, interesting. i set the src of an imageview in the xml layout of my activity. then in onWindowFocusChanged i try to get hold of the drawable of that ImageView and i get null Aug 31 12:28:32 which surprises me to no end.. Aug 31 12:47:03 wongk, it looks like i had to uninstall it Aug 31 12:47:26 you had installed it successfully before> Aug 31 12:47:28 ? Aug 31 12:47:28 now it worked , and I fixed my debian squeeze to use the samsung device Aug 31 12:47:47 wongk, yes I have had it working Aug 31 12:47:59 that would have been valuable information :P Aug 31 12:48:08 wongk, juts thanks for your support Aug 31 12:53:10 aaah, ok, it might be that the src png is too big. several thousand pixels.. Aug 31 13:03:45 yep, that was it.. Aug 31 13:03:58 why oh why does android fail silently in that case :D Aug 31 13:06:30 hello Aug 31 13:07:07 recently i adopted a quite crappy android-app. i suspect there is a bunch of dead code in it Aug 31 13:07:42 but most of the layout stuff is handled via xml files. is there any strategy to find out which activities are actually used throughout the app? Aug 31 13:13:31 how can I change screen orientation i emulator? Ctrl + F11 or 12 will change the emulator to landscape/portrait, but the android does not register it and is still rendering in portrait mode. Aug 31 13:19:28 thana: use sed and a smart regular expression to add some logging to all the activity;s onCreate methods Aug 31 13:19:34 thana: then just grep though logcat.. Aug 31 13:19:43 through.. Aug 31 13:19:54 tapas: yep thats what i wanted to avoid ;-) Aug 31 13:19:55 well, this is weird. I bring up a camera preview, and the user can trigger taking a photo from this (which does its own thing in a separate activity) and it can bring up the preview again just fine after that, but the resolution is visibly reduces. This only happens if that second activity is the reason for the preview being turned off and then on again. Aug 31 13:20:05 thana: keep in mind though that this way you only get runtime information, so to find out what's really used you will have to cover all code paths.. Aug 31 13:20:19 so it seems to be memory-related, but no matter how many times I take a picture, an OutOfMemoryError is never thrown Aug 31 13:20:30 Hodapp: don't expect the camera api to make any sense at all Aug 31 13:20:46 tapas: why not? Aug 31 13:21:12 Pitel_IPEX: It's somewhat broken on gingerbread, works fine everywhere else Aug 31 13:21:14 Hodapp: i spent a week testing the camera preview api on several devices and EVERY single one behaved slightly different Aug 31 13:21:19 ...I was also having issues yesterday with my onFocus callback simply never being called in certain predictable but not understood circumstances Aug 31 13:21:24 especially picky with the set preview size.. Aug 31 13:21:49 i guess it's because it's the device vendor's responsbility to implement the camera api Aug 31 13:21:56 SimonVT: thx, gingerbread is exactly what I'm testing... so meh, hope it works in GB, when it works in JB and ICS :] Aug 31 13:21:56 and basically it comes down to this: Aug 31 13:22:21 a] use the built in camera app whenever possible because this is handtailored by the device vendor to actually mostly work.. Aug 31 13:22:39 yeah, I was noticing that even when I'm stopped in the debugger the preview surface still updates Aug 31 13:22:40 b] have a frigging park of testmachines and testers and sprinkle your code with device specific workarounds.. Aug 31 13:22:48 (a) is not an option Aug 31 13:23:31 Hodapp: do you set the preview and image sizes manually? or do you let the device handle it itself? Aug 31 13:23:54 i wish they had just used gstreamer and java bindings around it :( Aug 31 13:24:03 tapas: I ask the camera what preview sizes it can do and I pick the largest that'll fit within the SurfaceView I have Aug 31 13:24:42 setting the preview size is a bad idea.. especially if you count on a] the device using it and b] the device reporting the preview size it uses correctly lateron Aug 31 13:25:01 Hodapp: on htc desire for example you set the preview size.. the device will use something different depening on the chosen preview size Aug 31 13:25:11 and still report the one you set as the used one.. Aug 31 13:25:33 which will then lead to all kinds of funky failures if you then try to decode the preview bytes you get in the preview frame callback Aug 31 13:25:49 I'm just passing it a Surface to use Aug 31 13:26:02 a fair bit of this code is right out of the API examples Aug 31 13:26:17 yeah, i tried the code in the API examples on several devices.. Aug 31 13:26:25 on many devices it was screwed up :D Aug 31 13:28:03 i would recommend to simply forget about writing a camera app on android for the time being unless you have lots of resources, and patience to test and debug the damn vendor implementations of the camera apis.. Aug 31 13:28:36 anyways, what did work for us, was to just let the camera chose the preview size itself by just not setting it.. Aug 31 13:28:54 in that case all devices seemed to report the correct preview size when asked lateron.. Aug 31 13:29:19 we then rescale the surface view to fit into our layout such that it keeps the aspect ratio of the preview.. Aug 31 13:29:43 this leads to OK results on all of our devices.. albeit sometimes the preview size chosen by the device is rather small.. Aug 31 13:29:51 but that's ok for our application Aug 31 13:30:02 'Don't write a camera app for Android' is not really an option here. Aug 31 13:30:26 any more than 'Don't come into work because you're tired' Aug 31 13:30:37 Hodapp: well, then have fun :D Aug 31 13:30:53 and get many many test devices.. Aug 31 13:31:57 We won't bother. I never said this app was going to be intended for a wider audience or even available to them. Aug 31 13:33:14 Most likely, it'll be targeted to - and delivered with - a single model of tablet/phone/device. Aug 31 13:35:02 Hodapp: oh ok, true. i was making assumptions here.. Aug 31 13:35:24 Hodapp: what happens on that device if you don't set a preview size from the available preview sizes at all? Aug 31 13:35:39 Hodapp: but just let the device choose it? does the same effect with the lower resolution lateron occur? Aug 31 13:38:11 tapas: Yes. Aug 31 13:38:32 tapas: It looks like with how it was written it was failing to set the preview size in the case of the lower-resolution preview. Aug 31 13:53:05 my guest Ubuntu VM is 3X faster than my OS X host Aug 31 13:53:08 for various operations Aug 31 14:07:12 how, jcromartie? Aug 31 14:07:45 bjorkintosh: things like starting up Java or Python, or silly benchmarks like: "while true; do date; done | uniq -c" Aug 31 14:08:19 what makes the date thing a benchmark? Aug 31 14:08:52 bjorkintosh: counts how many times per second the system runs "date" Aug 31 14:09:03 try it on Windows under Cygwin sometime :) Aug 31 14:09:09 heheh. Aug 31 14:09:21 what kinda numbers do you get? Aug 31 14:09:23 I think it's probably just the cost of forking Aug 31 14:10:02 i get like 50 :D Aug 31 14:10:26 impossible. it redisplays every second. Aug 31 14:10:34 i get a large number. my system must be slow. Aug 31 14:10:50 i thought large number was good Aug 31 14:10:59 oh. nevermind then :) Aug 31 14:11:14 i get a large number. my system must kick ass! Aug 31 14:11:31 \o/ Aug 31 14:13:05 aha. i get 35 on cygwin. interesting. Aug 31 14:17:17 bjorkintosh: cygwin does horrible tricks to do a fork() in win32 environment, since win32 implodes when you fork() Aug 31 14:18:10 getting around that would require thunking winapi calls through a separate process (and of course, forking a GUI app... won't really work, I think Aug 31 14:18:13 ) Aug 31 14:19:03 hello Aug 31 14:19:28 anyone knows what the permission READ_PHONE_STATE allows exactly ??? Aug 31 14:21:44 Pinas, guessing it determines if the phone is in use or not :) Aug 31 14:22:21 phone number, signal strength etc. iirc Aug 31 14:22:29 Pinas: check the docs Aug 31 14:22:47 p_1: unfortunately the docs are not really extensive Aug 31 14:23:05 the "best" official description i could find was: Allows the app to access the phone features of the device. An app with this permission can determine the phone number and serial number of this phone, whether a call is active, the number that call is connected to and the like Aug 31 14:23:19 i am interested ALL information that are accessible with this permission Aug 31 14:23:24 +in Aug 31 14:25:34 you'll need to check apis in telephony tree then Aug 31 14:26:42 p_l yea thats what I want to avoid :) ... Aug 31 14:59:07 holy shit Aug 31 14:59:11 no one uses the amazon appstore Aug 31 14:59:12 lol Aug 31 14:59:52 pretty much only kindle fire users :P Aug 31 14:59:55 yea Aug 31 15:00:21 People just use it for the free paid app :p Aug 31 15:00:22 they might be the highest selling tbalet, but tablet sales are nothing compared to phone sales Aug 31 15:01:37 are they the highest selling? Aug 31 15:01:49 last i heard Aug 31 15:01:50 I'm practicing how to use httpcomponents to login to a website. Can someone take a look at my code and tell me if I'm doing this right. I'm trying to figure out how to get the redirection url from the response, so I can place that url in my post. Aug 31 15:02:01 http://pastebin.com/PA2ut30T Aug 31 15:03:38 tave: you need to disable redirects Aug 31 15:04:08 ok, will do, can you explain to me why? Aug 31 15:04:33 because they're handle dby deault Aug 31 15:04:45 HttpClientParams.setRedirecting(httpClient.getParams(), false); Aug 31 15:04:45 oh, ok Aug 31 15:05:21 ridiculous apache API Aug 31 15:05:37 actually you are doing exactly the opposite Aug 31 15:05:43 httpget.getParams().setParameter("http.protocol.handle-redirects",true); Aug 31 15:06:20 confused, lol - should I disable or enable it? Aug 31 15:06:25 disable Aug 31 15:06:35 setting to false Aug 31 15:06:41 correct Aug 31 15:07:00 in this pastebin ,you are setting it to true Aug 31 15:07:24 (which happens to be the default) Aug 31 15:08:01 omg there's the Location!!!! Aug 31 15:08:07 thanks sooo much =) Aug 31 15:10:07 is it possible for a user to access /data/anr/traces.txt on a non-rooted phone ? Aug 31 15:11:21 Hello? Aug 31 15:11:28 Alright cool, it works! Aug 31 15:13:55 wongk , I did the same thing to my post method but I get no location from the response header. I inserted this line in the post section httpost.getParams().setParameter("http.protocol.handle-redirects",false); Aug 31 15:14:22 bubbleguuum: Yep Aug 31 15:14:28 how ? Aug 31 15:14:45 without installing adb Aug 31 15:14:59 Dunno Aug 31 15:15:05 An app that lets them type in a path? Aug 31 15:16:28 tave: and if you simulate the same post with CURL, do you get a 302? Aug 31 15:17:01 never used CURL, I'll check up on google on how to do it Aug 31 15:17:37 if you want to be messing around with pretending to be a web browser, you need a way to send raw http requests and view the raw responses Aug 31 15:18:05 curl is one way to do so, definitely not the only way Aug 31 15:21:09 ok, cool checking it out. Just to clarify, I'm just downloading the command line tool and not the libcurl. Aug 31 15:21:31 not unless you want to develop against libcurl :P Aug 31 15:21:50 lol, I'm getting enough practice with this alrady =) Aug 31 15:21:54 *already Aug 31 15:27:47 JakeWharton stole my hamsters Aug 31 15:28:00 oh shi Aug 31 15:29:00 your hamsters were a manifestation of the hatred you buried deep down in your heart for your father. I merely liberated you from this burden so that you could live a full and meaningful life. Aug 31 15:29:26 mikedg: write HamsterSherlock to search for them Aug 31 15:29:39 HamsterBarSherlock? Aug 31 15:29:53 actionbarhamster Aug 31 15:29:54 HamsterBarWatson Aug 31 15:29:56 SearchHamsterCompat Aug 31 15:30:03 in the support library Aug 31 15:30:07 HamsterSearchCompat Aug 31 15:31:59 ActionHamsterCompat Aug 31 15:32:17 actually, that would be kind of neat. Aug 31 15:32:33 Make a version of ActionBarSherlock called HamsterBarSherlock that animates a hamster running up and down the action bar Aug 31 15:33:27 action: search hamster in a bar Aug 31 15:39:24 tave: http://web-sniffer.net/ seems pretty interesting, if command line isn't your thing Aug 31 15:40:48 hey guys, I'm attempting to install an akp file from an apache server via a URL. I can download the file if I visit the URL directly, but if I link to it, it always displays "undefined" on the screen -- however if I refresh the page it begins the download. Any ideas? Aug 31 15:42:13 I got the command line working, but I'm a little confused. Looking through the source for https://workforceportal.elabor.com/ezLaborManagerNetRedirect/clientlogin.aspx and the input box is labeled txtClientName, but I think javascript pulls that information at sets the cn hideen variable. Aug 31 15:42:30 *hidden Aug 31 15:43:04 very possible Aug 31 15:43:36 tplaner_: nope! Aug 31 15:43:47 lov++ Aug 31 15:43:56 I receive a cookie with the cn variable, but I cannot see the location of the next rediect Aug 31 15:44:03 *redirect Aug 31 15:44:09 lov: there is no solution? Aug 31 15:44:36 tplaner_: check the mime type or something, I guess. Aug 31 16:14:32 anyone else finding the vibrate api doesnt work on the galaxy s3? Aug 31 16:15:30 freedomcaller: did you enable vibration from settings? Aug 31 16:15:55 yeah i think so? Aug 31 16:15:56 "tactile feedback" is disabled on s3 by default I noticed Aug 31 16:16:09 tactile feedback disabels the vibrate api? Aug 31 16:16:27 i thought that was for having every button press vibrate Aug 31 16:16:49 I don't know, I'm not familiar with the topic, just something I noticed when I got my S3 Aug 31 16:18:19 it should be unrelated Aug 31 16:18:43 ok that was it Aug 31 16:19:05 in vibration intensity you gotta turn up haptic feedback, but thats unrelated to the haptic feedback checkbox that makes the soft keys vibrate Aug 31 16:19:24 you should be able to call the vibrator API Aug 31 16:19:24 but, you might want to check and see if samsung goofed Aug 31 16:19:48 freedomcaller: good, there i fixed it :) Aug 31 16:19:54 i did call the vibrator api, btu it oesnt work if haptic feedback vibration intensity is all the way down Aug 31 16:20:15 then dont worry about it Aug 31 16:20:26 yeah not worried now that i know :D Aug 31 16:21:08 freedomcaller: of course, your users won't know this, and they'll blame you Aug 31 16:22:07 well they will blame anyone that calls the vibrate api :D Aug 31 16:23:21 yes. Including you. Aug 31 16:31:42 everybody clap yo hamsters Aug 31 16:33:06 \o/ /o\ Aug 31 16:42:24 how to make a call intercepter like some apps that use special dialed numbers to start an interface such as call blocker elite and this code but it is buggy and doesnt work correctly https://code.google.com/p/gbandroid/source/browse/trunk/MobileSpy/src/org/ddth/android/spy/ConfiguratingWatcher.java Aug 31 16:42:50 any tutorials in regard to this ? Aug 31 17:07:06 I am trying to use the MediaPlayer object to read streaming audio. but I keep getting error (1, -2147483648) Aug 31 17:07:11 what does it even mean? Aug 31 17:07:21 and how do I take care of it? Aug 31 17:11:16 error (1, -2147483648) Aug 31 17:20:01 I can't believe you _can't_ set search view hint text color Aug 31 17:37:01 is there a way to wait until a certaing value of uptimeMilis? Aug 31 17:38:49 fresh install of android SDK 20 on ubuntu 12.04, on launch it shows me this error: https://gist.github.com/4c672a9a08096e8b169e Aug 31 17:38:52 and doesn't populate any packages Aug 31 17:39:09 this is with force https:// to http on Aug 31 17:40:19 so no platforms are showing up... Aug 31 17:41:44 hm Aug 31 17:41:50 there appear to be NO add-on sites Aug 31 17:42:06 checking vs. another dev's and he has quite a list Aug 31 17:42:44 I have a samsung infuse and my CWM screen is gray and unreadable, can someone help me? Aug 31 17:43:05 I just used heimdall to get me to a rooted ICS state.. Aug 31 17:43:08 Try #android-root Aug 31 17:43:22 thanks Aug 31 17:43:26 dokma: Handler.postAtTime(...) Aug 31 17:44:40 anyone has any ideas how something like this can be created? http://i.imgur.com/xjBO4.jpg Aug 31 17:47:18 Hi, I have heard of lots of ways to make buttons , image , and text autoscale depending on screen resolution. Is there a "best" way to do it? Aug 31 17:48:04 calvinchan: presumably you've read http://developer.android.com/guide/practices/screens_support.html and http://developer.android.com/guide/practices/tablets-and-handsets.html Aug 31 17:49:04 yes I have. so if I position my components based on a 1024x600 screen resolution, is there a way to keep the aspect ratio on a 800x480 device without going through scaling each type of element? Aug 31 17:51:18 Leeds: without using / building alternative layout, I just want to use one layout that can fit all screen resolutions Aug 31 17:51:56 how to make a dialer watcher to intercept dialed numbers that starts an activity Aug 31 17:52:00 https://code.google.com/p/gbandroid/source/browse/trunk/MobileSpy/src/org/ddth/android/spy/ConfiguratingWatcher.java Aug 31 17:52:03 Usually you make part of your layout stretch to fill out available space, after any fixed size components have been placed Aug 31 17:52:03 like that one Aug 31 17:52:49 hello Aug 31 17:53:16 im trying to make my tablet stylus only input control Aug 31 17:53:42 so far, I have gathered that an app wont be able to stop the touch events Aug 31 17:53:58 and I must somehow directly intercept the touch inputs Aug 31 17:54:14 is there any way to do this? Aug 31 17:54:15 SimonVT: fixed size components such as a button? Aug 31 17:54:58 Maybe Aug 31 17:55:07 The actionbar is a good example Aug 31 17:55:12 Or if you have tabs at the top Aug 31 17:55:20 You usually want those to be a specific size Aug 31 17:55:28 Then make the actual content fill the rest Aug 31 17:55:50 sorry if this sounds foolish, if I have a button that has wrap content width and height, setting margins based on dp/dip instead of px, why wouldn't this button be scaled down and position properly at a lower screen resolution? Aug 31 17:57:03 Quill does a good job of separating stylus input (N-trig) by checking for event.getTouchMajor() == 0.0f; Is there a way for me to intercept that before it reaches any other application, and ignore it if it fails to be 0.0f Aug 31 18:00:48 What do you mean by scaled down Aug 31 18:00:56 It'd most likely be the same physical size Aug 31 18:01:56 does anybody have a tutorial about a outbound call interceptor that starts an activity some apps with hidden icons such as call blocker elite and others use a specific dialed number to open an activity here is an example but it is very buggy https://code.google.com/p/gbandroid/source/browse/trunk/MobileSpy/src/org/ddth/android/spy/ConfiguratingWatcher.java Aug 31 18:03:16 I'm having a little bit of trouble with an NPE related to an app I'm making to send a text. Just a stupid little mess around app. here is the line i keep getting NPE on: sms.sendTextMessage(constants.num, null, "Sawp Dawg", null, null); (I know its likely the "constants.num" thing even though I save the number) Aug 31 18:03:25 dominicdinada: you don't need to ask every 10 minutes Aug 31 18:03:48 well the room is going by quickly and who knows who has seen it Aug 31 18:03:56 dominicdinada: I sorta feel like if you can't figure out something like that on your own, you shouldn't really be doing it. But that's just me. Aug 31 18:04:19 SimonVT: I have a button that's 200 px x 200 px Aug 31 18:04:44 position it at the cneter of the screen on a 1024x600 resolution Aug 31 18:05:11 wouldn't the button stay at the centre of the screen regardless of screen size as well as keeping the aspect ratio? Aug 31 18:05:52 It'd stay at the center, sure Aug 31 18:06:22 Not every device has the same pixel density Aug 31 18:06:39 Say your 200x200px button is just the right size on a 1024x600px device Aug 31 18:06:51 It'd be half the size on a 2048x1200px device with the same screensize Aug 31 18:07:01 but if the width and height I set in xml is 200dip x 200 dip, would it be different? Aug 31 18:07:12 since I am not hardcoding px Aug 31 18:07:17 Yes, then it would be the same physical size on all devices Aug 31 18:08:14 200dp is roughly 1.33 inches Aug 31 18:08:31 If your device is 2 inches wide, that's kind of a large button Aug 31 18:08:50 If the device is 8 inches wide, it's still a large button, but relatively speaking it'd be "smaller" in the overall layout Aug 31 18:09:46 OIC, so what exectly is the best approach to handle a button in this case? Aug 31 18:11:21 I don't know, I have no idea what you're trying to achieve Aug 31 18:11:38 You wouldn't usually just have a screen with a single button in the middle Aug 31 18:11:57 From the link Leeds posted: http://developer.android.com/images/practices/actionbar-phone-splitaction.png Aug 31 18:12:09 The top and bottom bars are a fixed height Aug 31 18:12:17 The content area in the middle stretches to fill the rest Aug 31 18:14:04 Buttons would usually have a fixed dp size Aug 31 18:14:55 what's the smallest font sizes i should use for my apps? Aug 31 18:16:50 1pt Aug 31 18:16:52 1px Aug 31 18:17:09 textAppearanceSmall Aug 31 18:17:10 sp* Aug 31 18:17:12 write your strings in the form of morse code, just in case. Aug 31 18:20:50 SimonVT: thanks, this topic seems to be a standalone one that doesn't just get implemented with a few clicks and few lines of code, haha Aug 31 18:25:24 It's not that difficult Aug 31 18:34:54 so someone's telling me that needs to be at the top of .classpath Aug 31 18:34:56 does that make sense? Aug 31 18:35:10 he also says that his tools are automatically reordering .classpath Aug 31 18:35:14 but i cant repro that Aug 31 18:38:09 http://hackertyper.com/ best site ever Aug 31 18:39:55 that's... unusual Aug 31 18:40:00 LOL Aug 31 18:41:03 it's bossmode for the web Aug 31 18:41:04 :P Aug 31 18:41:43 does adt have a built in sql database viewer? Aug 31 18:42:53 android has sqlite3 Aug 31 18:43:16 root explorer also has sqlite support Aug 31 18:43:49 root explorer doesnt seem to be working for me Aug 31 18:44:04 getting an error with every db Aug 31 18:44:43 sqlite3 seems to do the trick, thanks :) Aug 31 18:44:45 f2prateek1: no, pretty amazing huh. totodevstudio does though Aug 31 18:44:51 *motodevstudio Aug 31 18:45:09 you will still need to have the db in a public space for it to get it though, like external storage Aug 31 18:47:04 g00s: ill look into that, thanks Aug 31 18:47:23 i didn't think motodevstudio was worth installing just for that though Aug 31 18:47:41 if it was able to magically get into your app's provate space to view the db, it would have been great Aug 31 18:48:35 this is all assuming a stock device. on the emu it may be able to get into the app's private space Aug 31 18:48:58 we have a stock n7 that is spitting out crash stack traces as warning Aug 31 18:48:59 instead of error Aug 31 18:49:02 On the subject of things you used to was able to do, I miss being able to force-stop the application in the debugger :( Aug 31 18:49:35 canadiancow: eclipse reordering .classpath, etc is stuff that happens way too often for me. Aug 31 18:49:41 hmm....i gues ill just use sqlite3 maybe. does the file explorer in adt serve as anything other than a file directory viewer? i can see my database there but can't do anything with it Aug 31 18:49:46 You can definitely trust that he's telling the truth on that. Aug 31 18:49:52 ok Aug 31 18:49:56 but he keeps submitting pull requests Aug 31 18:49:59 for like every project Aug 31 18:49:59 :P Aug 31 18:50:07 and he says "its supposed to be that way" Aug 31 18:50:16 even though its not the way ADT creates it in the first place Aug 31 18:50:27 I have no idea what the internal formatting is supposed to be Aug 31 18:50:29 post to the ADT list Aug 31 18:50:40 be all like "is my dev whiggidy whiggidy whack?" Aug 31 18:50:46 wait aren't you almost done work anyway? Aug 31 18:50:48 Tried setting spinner text size but holy shit it doesn't work. Aug 31 18:50:58 lov: yea Aug 31 18:50:59 one more weke Aug 31 18:51:01 :) Aug 31 18:51:05 Oh. Aug 31 18:51:07 Why are you caring? Aug 31 18:51:26 what do you mean? Aug 31 18:51:38 canadiancow is the dev who cares (tm) Aug 31 18:54:07 the cow that cares, eh? Aug 31 19:09:32 omg Aug 31 19:09:38 spinners are too hard to implement... Aug 31 19:09:50 After everything being easy so far, it's the only thing being too hard. Aug 31 19:10:18 they spinnin! Aug 31 19:10:25 they are called spinners because they make your head spin Aug 31 19:14:52 im having a really strange issue with a relativelayout Aug 31 19:14:57 layout_alignLeft doesnt seem to be working :S Aug 31 19:15:32 Yeah, I am an idiot Aug 31 19:15:35 i get results i expect 50% of the time with RelativeLayout Aug 31 19:15:47 even careful not to have cycles :/ Aug 31 19:15:48 yea but this is like Aug 31 19:15:48 My spinner variable was not global Aug 31 19:15:50 i dont even Aug 31 19:16:21 its got layout_alightLeft set to another view Aug 31 19:16:27 and its sitting all the way at the left edge of the screen Aug 31 19:16:37 but it should have its left aligned to the other one :S Aug 31 19:18:32 kinda obvious i guess http://www.fiercedeveloper.com/story/report-consumers-wont-pay-useless-apps/2012-08-30 Aug 31 19:35:28 i'm wondering if someone could help out a beginner… trying to do some bug testing for an app and i keep getting nullpointerexception error but i'm not sure where in my code the issue is Aug 31 19:35:56 pastebin the stack treace Aug 31 19:36:49 http://pastebin.com/qsSecNk7 Aug 31 19:37:36 spinner.java:828 keeps coming up but i'm not sure what that means necessarily Aug 31 19:38:21 next probably pastebin the code where you are setting up/populating the spinner Aug 31 19:39:44 ok, i added it to the bottom - http://pastebin.com/EtEH1mUZ Aug 31 19:41:13 there are no null Strings in PROVIDERS, right? Aug 31 19:42:13 hmm, i'm not sure, let me check Aug 31 19:42:52 no, all the options have valid strings Aug 31 19:44:08 i don't see anything wrong here Aug 31 19:44:12 the full fill is here https://github.com/rackspace/android-rackspacecloud/blob/master/src/com/rackspacecloud/android/AddAccountActivity.java Aug 31 19:44:17 *file even Aug 31 19:44:25 anyone use androidscreencast, has it been updated Aug 31 20:03:33 in the developer console can I edit the "Product details" for a new version of my app without changing the existing listing in the store? Aug 31 20:03:46 I've got the draft APK uploaded Aug 31 20:06:45 anybody know about that process? Aug 31 20:06:55 I'm not asking to ask, since I already asked :) Aug 31 20:07:24 holiday weekend, huh... Aug 31 20:09:22 EddieRingle|MBP: I KNOW YOU ARE HERE Aug 31 20:09:45 jcromartie: guess the jig is up Aug 31 20:10:04 so it's just a race between activating the draft version and editing the details Aug 31 20:10:06 ? Aug 31 20:10:15 have the edited details ready Aug 31 20:10:18 yeah Aug 31 20:10:20 and paste them in when you publish Aug 31 20:16:08 has anybody ever used this script before? Aug 31 20:16:09 http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds/ Aug 31 20:16:22 if so could you teach me how to use it in my class? Aug 31 20:18:24 Guys, any idea how to add bouncycastle to my android project? Aug 31 20:18:35 I thought Android had a bouncycastle version, but it's not finding it. Aug 31 20:20:45 diki: you probably need to add the jar file to your project path Aug 31 20:21:13 ftc:how would I go about doing that? Aug 31 20:21:23 eclipse? Aug 31 20:21:29 no, command line Aug 31 20:21:30 with ant Aug 31 20:21:39 ah, never done that, recommend using eclipse :-P Aug 31 20:21:50 calvinchan: seriously? Aug 31 20:21:57 My IDE is Notepad++, wouldn't replace it ever. Aug 31 20:22:03 ? Aug 31 20:22:11 calvinchan: just add the class to your project, right? Aug 31 20:22:22 no I mean how can I use it for my textviews Aug 31 20:22:40 yeah I do all my C++ coding in vim/make/gdb but java is freaking impossible without an ide imo Aug 31 20:22:57 calvinchan: it's a subclass of TextView, so use AutoResizeTextView wherever you use TextView Aug 31 20:23:06 If I use PreferenceActivity and addPreferencesFromResource(), do I need to manually save any changes or are they automatically saved on-the-fly? Aug 31 20:23:17 if you are already subclassing TextView then maybe subclass AutoResizeTextView instead Aug 31 20:24:00 Well, the interesting thing is that they say BC is included in android Aug 31 20:24:06 but so far, no import statement has worked Aug 31 20:25:13 don't see it in there when I look Aug 31 20:25:23 jcromartie: that means I need to change both xml and java? Aug 31 20:25:34 cuz the layout I used in xml is textview Aug 31 20:26:06 (just browsing through the android jar Aug 31 20:26:26 calvinchan: yes Aug 31 20:27:05 diki: you use notepad++ for java development? Aug 31 20:27:07 diki: you probably want to do a google search for something like "include jar in build path ant" Aug 31 20:27:37 ftc:been searching on google for the last hour, can't find anything and all references are for Eclipse. Aug 31 20:27:49 sorry one stupid question, I don't need to import com.myapp.app.AutoResizeTextView? Aug 31 20:27:51 eclipse is awesome :0) Aug 31 20:29:37 Anyone here able to help a bash newbie? Aug 31 20:30:09 I want to get the find command output into a text file, but it puts everything in one line. :/ Aug 31 20:30:17 find . -type d > txt.txt Aug 31 20:30:22 I lost all my respect for android Aug 31 20:30:28 One huge line. Aug 31 20:31:46 AKK9: you probably just fail at examining the file. The find command is supposed to emit newlines. Aug 31 20:32:20 calvinchan: you do need to add the com.myapp.app.AutoResizeTextView file Aug 31 20:32:43 Oh, I just opened it in Notepad. Aug 31 20:32:55 And Wordpad. Aug 31 20:32:58 No new lines. :/ Aug 31 20:33:23 if this is on windows, the find command's newline sequence is not same as the windows's newline sequence. Maybe that is the cause. Aug 31 20:33:54 Oh, yeah that would make sense. :/ Aug 31 20:33:59 Bad times. Aug 31 20:34:29 Does windows have a good find command with -mindepth feature? Aug 31 20:34:31 do you guys use a database on android? Aug 31 20:34:37 like sqlite or some such? Aug 31 20:34:56 bjorkintosh: when necessary Aug 31 20:34:59 AKK9: only mingw does (or cygwin) Aug 31 20:35:01 bjorkintosh: what kind of question is that? android contains sqlite to begin with Aug 31 20:35:02 which do you choose? Aug 31 20:35:08 oh never mind. Aug 31 20:35:23 bjorkintosh: if you are only storing a relatively small object, you can serialize it Aug 31 20:35:27 I'm using cygwin. But it doesn't put new lines in text files. :( Aug 31 20:35:55 alankila, i did not know that. Aug 31 20:36:17 AKK9: that's a cygwin install option Aug 31 20:36:24 oic, let me try! Aug 31 20:36:28 Wait wat. Aug 31 20:36:34 Which option? Aug 31 20:36:44 anyone have any experience re-theming ActionBarSherlock? Aug 31 20:38:08 in iosched app i think they changed the theme Aug 31 20:38:09 AKK9: you can just pipe find's option through u2d and you'll get DOS line endings Aug 31 20:38:18 find's output I mean Aug 31 20:38:19 u2d? Aug 31 20:38:29 u2d is a command line tool Aug 31 20:38:31 unix2dos Aug 31 20:38:34 sometimes available as unix2dos Aug 31 20:38:50 AKK9, why are you using cygwin? Aug 31 20:38:56 sed :) Aug 31 20:39:16 I'm not sure, I don't know another way. Aug 31 20:39:16 ixc: sed handles foreign line endings poorly Aug 31 20:39:30 AKK9, you can run ubuntu from a thumb drive. Aug 31 20:39:40 just be sure to save your work somewhere... Aug 31 20:39:53 it is a much better environment than whatever it is you're doing with cygwin. Aug 31 20:40:05 I'm accessing a network drive, I dunno how to go to it in Ubuntu. Aug 31 20:40:06 wordpad handles unix newlines, as does every text editor but notepad Aug 31 20:40:09 With Terminal. Aug 31 20:40:37 same way you do with cygwin. Aug 31 20:40:39 no difference. Aug 31 20:40:57 In Linux, the drive is not mapped with a letter. Aug 31 20:41:03 assuming you are using *nix commands, ie. Aug 31 20:41:08 hah. i see. Aug 31 20:41:53 linux uses mount points Aug 31 20:42:03 Yeah I don't understand anything. :/ Aug 31 20:42:03 you have to mount the network drive to access it Aug 31 20:42:26 anyway, what's the problem with the unix newlines, anyway? Aug 31 20:42:30 I went to it by clicking on the network name and stuff, but right clicking it, "mount" was greyed out. Aug 31 20:42:38 In Ubuntu. Aug 31 20:42:40 I couldn't moutn it. Aug 31 20:42:53 it was likely already mounted then. Aug 31 20:43:13 Nah, it didn't show up on dekstop or on the side of the explorer. Aug 31 20:43:13 but it is not hard. learn how to do it, and you won't have to learn it again :) Aug 31 20:43:15 heh, GUI for mounting Aug 31 20:43:33 GUi for everything, I made it pretty clear I know nothing. Aug 31 20:43:57 AKK9, the commandline interface is actually very powerful. it has a learning curve, but it is worth learning. Aug 31 20:44:25 Yeah, I don't really use Linux for anything though. But yeah, I see how powerful it is compared to windows. Aug 31 20:44:49 I have only used find and it's a dream. :) Aug 31 20:44:51 So useful. Aug 31 20:45:03 jcromartie: have you every used this class yourself? Aug 31 20:45:33 I have music liek this in folders: Artist Folder > Album Folders > song mp3s Aug 31 20:45:38 For lots of artists and albums. Aug 31 20:45:45 ANd I need a list of all the album folders. Aug 31 20:45:51 So I use -mindepth. Aug 31 20:46:42 Well, I added spongy castle Aug 31 20:46:49 but damn does it make the app huge. Aug 31 20:55:29 Anyone here have the compiled surfaceview ? I really don't want to download all the code and try to compile everything Aug 31 20:55:59 I would like to use the default surfaceview, and not the buggy ones the manufactures made. Aug 31 21:19:10 is there any way to change the package name for an Android app registered in Urban Airship Aug 31 21:31:46 stupid question… of course it's easy Aug 31 21:55:28 jcromartie: you here? Aug 31 21:55:53 yes Aug 31 21:58:03 is there a way to force monkey to only use one specific activity? Aug 31 22:04:59 How would I go about to create a custom button and implement it in my custom theme so that all buttons per default use that style? Aug 31 22:18:35 Hello Hello. I've got an (older Android 2.2) rooted to ICS and activating it is not working on the website. settings>sbout phone>stuatus is showing a wrong MEID number, in fact a wrong TYPE of MEID number. The dial sequence to get the MEID number does not work ##MEID# should autodial and it just sits. Aug 31 22:19:40 so does the final sequence I got working with the rep - then the phone call cut off. -- the previous owner who put ICS on it told me if they tell me to wipe it, don't. Aug 31 22:19:44 ahoy Aug 31 22:19:56 ahoy rigid. Aug 31 22:20:18 Optimus V Virgin LG is the phone model. Aug 31 22:20:31 is there a "standard" way to do pull-request-like-communication via network in android? Aug 31 22:20:40 tripelb: #android-root Aug 31 22:21:07 no one answers me there:( Aug 31 22:21:13 like, is there some high-level-java-magic to have a web server in android that serves requests to some browser-javascript magic? :) Aug 31 22:21:20 today, day before yesterday... Aug 31 22:21:34 but thanks maraz. Aug 31 22:21:50 tripelb: wipe your phone? Aug 31 22:21:52 why not? Aug 31 22:21:53 I thought a dev might have some clue about the subsitute MEID ... Aug 31 22:22:15 I dunno. I sure like ICS though. compared to froyo. It's FASTER, to my surprise. Aug 31 22:22:35 (I had the same phone and it got strayed from me.) Aug 31 22:22:43 * rigid wants ICS for low ram devices :( Aug 31 22:23:24 so I guess there's no standard class in android to serve XML over the network or something ;) Aug 31 22:24:18 maybe i should rephrase the question: i want to receive data from an android device via network. I don't care how this is done, yet. I wonder what "standard" ways there are in the OS. Aug 31 22:24:21 rigid: ... punt it over a socket? Aug 31 22:24:25 Any suggestions? :) Aug 31 22:24:34 simplest and very efficient way Aug 31 22:24:44 p_l: yeah, but do I have to re-implement all that? is there no high-level way? Aug 31 22:25:35 rigid: you can also do a POST http request to some web server Aug 31 22:25:50 but frankly speaking, you might be overengineering Aug 31 22:26:15 if you want some advanced message patterns, consider ZeroMQ (should work with NDK) Aug 31 22:26:16 p_l: hm... Aug 31 22:26:37 p_l: well, java & android is _a lot_ about overengineering :-P Aug 31 22:27:01 i just wanted to safe some coding time... when I have to use java after all Aug 31 22:27:16 Hey all, I have a server running on an Android device and it works perfectly over wifi, but when the 3g connection is active, the server doesn't seem to get the connection. Any idea why this might be? I'm able to send data with DefaultHttpClient in both situations (over wifi and over 3g). Aug 31 22:27:33 so I guess there is some android.network.XMLServer or so :) Aug 31 22:27:37 rigid: just take into account that mobile networks can be assholish and block a lot of useful stuff Aug 31 22:27:42 rigid: nope Aug 31 22:27:47 no built-in server classes Aug 31 22:27:58 also, why the fuck would there be a "XMLServer"? Aug 31 22:30:07 rigid: Was that directed at me? Aug 31 22:31:06 p_l: yeah... i thought about that, but my application will use wifi 99% of the times anyway, i guess Aug 31 22:31:26 p_l: but something that's hard to filter (xml via port 80) would be prefered Aug 31 22:32:02 p_l: light http server came into my mind... Aug 31 22:32:07 rigid: just set up receiving server to run on port 80 Aug 31 22:32:14 unless you really need the server to be on android side Aug 31 22:32:27 but I could imagine a lot of ways... http+xml would be the bloaty-old-way (tm) Aug 31 22:32:33 MontyCarleau: routing changes, and 3g network might be blocking you Aug 31 22:32:57 p_l: really? don't I need root to listen on 80? Aug 31 22:33:01 rigid: also, if you go with HTTP... consider actually learning HTTP instead of typical shit Aug 31 22:33:15 rigid: server-side config... Aug 31 22:33:24 on android you'd probably need root, yes Aug 31 22:33:37 implementing a HTTP server is hillarious... i'd rather crosscompile one or do a dirty hack Aug 31 22:33:59 "probably"? Aug 31 22:35:49 rigid: but do you really need a server on the phone side? Aug 31 22:37:29 I have a list view with two lines in it (one right above the other like normal) is there a reason why when I get the drawing cache the bitmap only has the first line of the view? Aug 31 22:39:43 hey doing a replace() transaction on a fragment, shouldn't the replaced fragment then report TRUE for isDetached()? Aug 31 22:40:03 No Aug 31 22:40:09 ah Aug 31 22:40:12 You didn't detach it, you removed it Aug 31 22:40:24 isAdded() will return false Aug 31 22:40:25 would seem to me that remove would imply detatch Aug 31 22:40:28 but guess not Aug 31 22:40:32 whats the difference? Aug 31 22:40:58 Added fragments are managed by the FragmentManager Aug 31 22:41:20 This means for example means that their state is saved on configuration changes Aug 31 22:41:33 detach detaches its ui Aug 31 22:41:48 So it's still managed by the fragmentmanager, but its ui doesn't show up Aug 31 22:42:48 ok Aug 31 22:43:03 detach referes to whether its currently being managed Aug 31 22:43:07 got ya Aug 31 22:43:21 No Aug 31 22:43:43 You add/remove the fragment from the fragmentmanager.. You attach/detach the ui Aug 31 22:44:08 An add transaction automatically attaches the ui, if you supply it with a viewgroup id Aug 31 22:44:46 hhmmm Aug 31 22:45:15 that would seem to imply that reaplce (which detatches the UI, but does not remove from the Manager) should then make isDetached() return true Aug 31 22:45:31 what am i missing> Aug 31 22:46:11 replace removes the old fragment, and adds the new Aug 31 22:46:26 It doesn't detach Aug 31 22:46:34 where as, isAdded() should return true, even if the UI is not attached Aug 31 22:46:36 The previous fragment is no longer managed by the fragmentmanager Aug 31 22:46:39 but thats not the behavior im seeing Aug 31 22:47:14 It should be Aug 31 22:47:39 What are you seeing Aug 31 22:47:57 rigid: Have you managed to get a server to accept connections over a non-wifi network interface? Aug 31 22:48:22 calling replace on a Fragment, the one that was replaced, returns FALSE for isDetached(), but TRUE for isAdded() Aug 31 22:48:51 Where are you checking isAdded Aug 31 22:49:06 Right after you commit() ? Aug 31 22:49:28 no, at an arbitrary time in the future( on a button press) Aug 31 22:49:32 h/o let me confirm this Aug 31 22:49:56 Call FragmentManager.executePendingTransactions() Aug 31 22:50:02 Then try isAdded Aug 31 22:51:05 ok h/o executing a test to confirm what im saying Aug 31 22:51:20 I'm very sleep deprived so... lets make sure lol Aug 31 22:56:58 SimonVT, ok Aug 31 22:57:02 so here is the setup Aug 31 22:57:11 Hi, when I change a button to an image button, I see that the is a little extra edges sticking out form the border Aug 31 22:57:31 Frag A is Add()ed, then Frag B is inserted using a replace() transaction Aug 31 22:57:32 it doesn't fit well wight he background resource I use for the button Aug 31 22:58:03 AFTER the replace, Frag A reports isDetached() == false Aug 31 22:58:27 also, isAdded() == false, so that one is correct Aug 31 22:58:37 so i guess thats the one ill use for my logic Aug 31 22:59:14 Just remember your fragment is no longer managed.. So you don't get callbacks like onSaveInstanceState, etc Aug 31 22:59:32 right, thats fine for this Aug 31 22:59:40 I re-add it using replace() later on Aug 31 23:00:00 just strange isDetached() doesn't seem to report the corect thing... wounder if its a bug. Aug 31 23:00:24 But it does report the right thing Aug 31 23:00:34 You never FragmentTransaction.detach(..)'ed it Aug 31 23:00:49 I noticed my application does not work when a user navigates away from it(by pressing home button for instance or from the dropdown bar). How do I make it continue to do what it is doing untill the user terminates the application,presses a 'Stop' button or presses the back button on his phone? Aug 31 23:02:00 SimonVT, oookkkk.... i get it. So in my case my Frag WILL still receive events, it IS still managed Aug 31 23:02:07 i think u miss-spoke earlier Aug 31 23:02:11 im reading the docs now Aug 31 23:02:11 .. no Aug 31 23:02:23 attach/detach is wether or not it is Managed Aug 31 23:02:31 no Aug 31 23:02:32 add/remove is if it is part of the displayed UI Aug 31 23:02:47 http://developer.android.com/reference/android/app/FragmentTransaction.html#detach%28android.app.Fragment%29 Aug 31 23:03:19 ah k. Aug 31 23:03:21 nvm. Aug 31 23:04:19 If it's added, its state is managed. If it's attached, its ui is displayed. An add transaction also attaches it, if a container id is provided Aug 31 23:04:44 ok, well the thing i find strange then Aug 31 23:04:52 if i call remove Aug 31 23:04:57 that removes it from the manager Aug 31 23:05:03 AND it definately dissapears from the UI Aug 31 23:05:12 which would imply that it is detached correct? Aug 31 23:05:26 but isDetached still reports false Aug 31 23:05:35 Read the docs for isDetached Aug 31 23:05:41 You have to explicitly detach it Aug 31 23:05:50 :/ Aug 31 23:05:53 ya ur correct Aug 31 23:06:07 very counter-intuitive, since add() does both positive operations Aug 31 23:06:14 remove() should do both negative operations Aug 31 23:06:15 ya know? Aug 31 23:09:08 add might do both Aug 31 23:09:11 It's not always the case Aug 31 23:10:28 Anyway, I don't see the issue Aug 31 23:10:39 Often you have to check both anyway Aug 31 23:15:37 :/ Aug 31 23:17:03 has anyone heard of a rooted phone (mine is opttimus V virgin usa) that does not react to the ##numbers3 sequence. In this case to activate the phone. ARG! Aug 31 23:17:20 rooted to ICS, much better than froyo. Aug 31 23:17:34 no one is lively in Android root Aug 31 23:31:13 tripelb, cant say i have :/ Sep 01 00:07:01 hackkitten :) Sep 01 00:24:59 I've been on the phone with Virgin and they are nonplussed. ie they have nothing to say. It's a rooted phone tho so that's to be expected. I need to learn. Sep 01 00:25:01 I need help. this phone will not activate. Virgin Optimus V -- specifically when one types ##MEID# it should show me the MEID and it doesnt -- when one goes ##VIRGIN# it should give the activation dialog and it doesnt. == and it is rooted to ICS (lovely it is) and the original owner who sold it to me said it worked before. -- What can I do? ... thanks. Sep 01 00:25:37 thats more an android-root questoin Sep 01 00:25:57 sounds to me like iether the bands the phone supports is not hte same as your carrier, or the radios may have been overwritten Sep 01 01:28:04 is osmdroid the most mature android library for OSM ? there are lots of android apps which use OSM, not sure what they are using api-wise though Sep 01 01:32:48 if i put some of my own scirpts in my android project directory it wont mess up the ant build will it? Sep 01 01:34:49 nope Sep 01 01:34:54 cool Sep 01 01:38:59 if you compile against API level X you automatically get Hardware Acceleration for your app. Find X. Sep 01 01:40:10 Trick question Sep 01 01:40:27 Whether hardware acceleration is enabled by default doesn't depend on build target, but on targetsdk Sep 01 01:40:34 And it's 14 Sep 01 01:40:57 And it's only enabled on 14+ Sep 01 02:00:20 ah ok cool Sep 01 02:00:22 thanks Sep 01 02:01:09 SimonVT, so I should probably still put the thing in my manifest to force it? Sep 01 02:02:09 It'd get you hw accel on HC Sep 01 02:02:11 So sure Sep 01 02:02:52 If you're using custom views, make sure your app works Sep 01 02:03:47 SimonVT, I am, but not very custom, just doing a little onDraw() stuff to the canvas i get Sep 01 02:04:19 and I guess there just was no HWA prior to HC? Sep 01 02:05:32 btw, SimonVT, if I ever meet you or canadiancow IRL, definately buying u guys a beer lol :P Thx for all the help Sep 01 02:05:55 Not all methods are supported with HW accel, that's why you gotta test.. You'll probably be fine tho Sep 01 02:06:39 I may actually just re-implement the view as a viewgroup w\ some children, and let them all handle their drawing in the default fasion so... Sep 01 02:06:41 Not sure as to the extent of HW accel before HC Sep 01 02:08:21 Heh, I'm not like to go to the US any time soon :p Sep 01 02:09:49 hehe Sep 01 02:12:10 anyone using rome and the rome modules to parse rss/atom/etc feeds? Sep 01 02:12:46 Caused by: java.lang.VerifyError: com/sun/syndication/feed/module/base/io/GoogleBaseParser Sep 01 02:13:08 but the rome modules--0.3.2.jar file is on the classpath Sep 01 02:39:05 SimonVT where does wavesonics live Sep 01 02:39:20 I don't know Sep 01 02:39:26 i want my beer :( Sep 01 02:39:36 Send him your paypal Sep 01 02:39:37 :p **** ENDING LOGGING AT Sat Sep 01 03:00:01 2012