**** BEGIN LOGGING AT Sun Jan 06 02:59:59 2013 Jan 06 03:05:13 If I pass a context instance into a static method in a utility class that returns a string array, in order to do some measuring operations with a paint and a dummy textview, assuming all variables/objects in that method are local to the method, there's no way I'll get a context leak correct? Jan 06 03:05:35 Correcto! Jan 06 03:05:54 Local variables aren't long-lived Jan 06 03:07:42 Thanks Jan 06 03:09:08 That's all you gotta ask yourself.. How long is this reference valid Jan 06 03:09:29 If it's longer than the lifetime of your context, you're doing it wrong Jan 06 03:10:25 I'm recieving an intent via an intent-filter. the action of the it seems right, but it's not working anymore. I swaer it used to Jan 06 03:22:59 is there a way a textview inside a linear layout to be stretched verticaly when linearlayout orientation is horizontal? Jan 06 03:24:17 linearlayout within a linearlayout Jan 06 03:24:36 Parhs what are you trying to achieve? Jan 06 03:26:11 id recommend relative layout though much more moveable Jan 06 03:28:21 can't you just simply set layout_height- match parent? Jan 06 03:36:07 http://i.imgur.com/0qXp6.png this Jan 06 03:36:37 last rows with button arent aligned verticaly Jan 06 03:37:33 http://pastebin.com/VvgNP5ND Jan 06 03:38:12 change android:layout_height="wrap_content" to match parent and add layout_gravity="center_vertical" Jan 06 03:38:32 at which items ? Jan 06 03:38:53 both i believe Jan 06 03:38:57 hi guys, I set my view to wrap content, why doesn't it match parent? Jan 06 03:40:19 you must be operating in hyperdimensional cube space! Jan 06 03:40:44 not again :| Jan 06 03:41:35 lasserix worked only for textview:S Jan 06 03:41:38 lasserix: there's no such thing Jan 06 03:41:56 of course theres such a thing, think euclid only kid on the block? Jan 06 03:42:01 you can have hyperdimensional space or hypercubes or cubes in hyperdimensional space but not hyperdimensional cube space Jan 06 03:42:34 extra dimensional potato, extra dimensional tomato Jan 06 03:42:52 Easy now Jan 06 03:45:34 protip, when it's cold, close your balcony door Jan 06 03:45:44 SimonVT: pfft Jan 06 03:45:58 * AmandaC sleeps with her window open, huddled under a bunch of blankets. :3 Jan 06 03:46:21 I'm not sleeping tho Jan 06 03:46:22 yet Jan 06 03:46:33 me either, my window remains open Jan 06 03:46:54 android development eh Jan 06 03:47:00 :P Jan 06 03:47:25 that button cant be vertically centerned Jan 06 03:47:27 It's about 5c outside Jan 06 03:47:33 SimonVT: -1 Jan 06 03:47:42 3c in NYC Jan 06 03:48:18 Still, no .. blanket? I don't know.. comforter? Jan 06 03:48:31 Thing you sleep under Jan 06 03:48:43 SimonVT: pile of swedish supermodels ? Jan 06 03:48:45 Not right now, no Jan 06 03:48:47 that's what i sleep under Jan 06 03:49:05 funkbox: blowup dolls aren't supermodels, they're blowup dolls Jan 06 03:49:06 swedish superblankets Jan 06 03:49:13 AmandaC: don't ruin this for me Jan 06 03:49:22 do you have to assemble them yourself? Jan 06 03:49:24 7c here Jan 06 03:51:37 I sleep here: https://dl.dropbox.com/u/100261/2013-01-06%2004.50.12.jpg Jan 06 03:53:56 nice floors Jan 06 03:54:05 Thanks ^_^ Jan 06 03:54:23 Just moved in a month ago Jan 06 03:54:29 Haven't had a chance to fuck them up yet Jan 06 03:54:29 i just bought my first place Jan 06 03:54:32 let me find a fancy photo Jan 06 03:54:37 SimonVT: that looks like some kind of ame rendering Jan 06 03:54:46 game Jan 06 03:55:22 the top X pixels, at least, it was loading very slow for me Jan 06 03:55:27 oO Jan 06 03:55:47 * AmandaC shrugs, goes to do hygine stuff and sleep Jan 06 03:56:06 http://i.imgur.com/HdkAQ.jpg Jan 06 03:56:07 took forever Jan 06 03:56:11 I should drink some more Jan 06 03:56:17 Wtd dude Jan 06 03:56:20 wtf* Jan 06 03:56:28 Where are SQLite databases stored? I heard under /data/appName/database/dbname, but it's not there. Am i possibly doing something wrong Jan 06 03:56:33 You don't live there Jan 06 03:56:44 s/app/data/ Jan 06 03:56:58 fuck Jan 06 03:57:04 Jak o shadows u rooted? Jan 06 03:57:13 Nope, just looking in DDMS Jan 06 03:57:13 SimonVT: happened to have a very rich uncle with an apt in UWS Jan 06 03:57:22 * SimonVT /data/data/package/database/dbname Jan 06 03:57:30 they may not be visible without rooting? Jan 06 03:57:55 How am i to upload a sqlite database without knowing where it is? Jan 06 03:58:20 Also,, i'm testing on a real device, 2.33 Jan 06 03:58:50 You trying to copy from assessts? Jan 06 03:58:56 funkbox: Is that even a real bed ;/ Jan 06 03:58:58 I hate you Jan 06 03:59:07 SimonVT: it's aspirational Jan 06 03:59:09 Why the oversized letters? Jan 06 03:59:34 had to look that up Jan 06 03:59:37 I created a SQLite database, put some data in it, now i want to upload it to a remote server so the user can do further stuff on it Jan 06 03:59:53 I sleep here: http://i.imgur.com/sHCVU.jpg Jan 06 04:00:33 Jak, you mean the database lives on a server or with the client? Jan 06 04:00:50 The database is on the phone, a client Jan 06 04:01:06 Your mom sleeps there Jan 06 04:01:09 because if its a server, you can just serialize your data and build the database off the main thread through normal insert methods Jan 06 04:01:32 are you copying the db file from raw or asessts? Jan 06 04:01:50 or are you trying to build a database from a remote source (ie server)? Jan 06 04:02:22 funkbox: took forever to load from that russian site, huh? Jan 06 04:02:24 The phone makes some data (GPS coordinates + extra), then i want to hit a button and upload this data to the remote server. I would prefer not to serialize the data, as it's a lot of data Jan 06 04:02:51 stolened from barabash-design Jan 06 04:03:10 Why do you need the database on the phone then? Jan 06 04:03:46 How else am i to store lots of data that has suits a database? Jan 06 04:04:30 Jak: well if you use the databasehelper api it'll auto place the database file data and you don't have to worry where it is specifically just access/create/update through the helper api Jan 06 04:04:42 Hi I am using my HTC sensation and starting out to dev on the android. D/L the Eclipse with the latest SDK and all the platform tools. But lesson 101 where i can install a sample app is not working. Eclipse and adb cant recognize the device. Here is what the lsusb looks like http://pastebin.com/kncGex5e Jan 06 04:05:10 adb says:" error: device not found Jan 06 04:05:10 - waiting for device -" Jan 06 04:05:21 So you want each client to have its own database, and also an accumulate all client info on a remote database from what i understand Jan 06 04:05:33 but anyways, to do a local database, just use the sqlitehelper api Jan 06 04:06:00 Yes, i am using the sqlitehelper api. The database is working. When the phone has finished gathering data, i want to be able to work on that data on a computer Jan 06 04:07:54 oh sorry was overcomplicating it Jan 06 04:09:04 DDMS does not have permission to browse through /data. Jan 06 04:09:12 you have to use adb or a rooted device Jan 06 04:09:24 http://stackoverflow.com/questions/1105219/android-where-are-database-files-stored Jan 06 04:10:41 Test it on an emulator.. You'll have all the permissions you want Jan 06 04:11:49 Righto. I can still upload stuff from within the application yeah? Jan 06 04:12:28 Fun fact.. While you can't ls /data/app/ on a production device, you can still pull files from there.. They're called your.package-1.apk, your.package-2.apk, etc.. Jan 06 04:22:24 That fact barely seems worth of the merit of fun. Jan 06 04:22:57 A real fun fact is the fact that the word nice comes from latin meaning idiot. Jan 06 04:23:03 fuck you :| Jan 06 04:23:04 :) Jan 06 04:24:35 No more help for you! Jan 06 04:25:45 Any takers for my issue? HTC Sensation and Macosx and I cant get it into Debugging mode Here is my mac's usb dump for my device http://pastebin.com/kncGex5e. Jan 06 04:25:51 And http://stackoverflow.com/questions/7135999/adb-not-finding-my-device-phone-macos-x/7136003#7136003 did not work for me.. Jan 06 04:26:14 Wasn't inferring you were nice, although in the non-latin connotation you are :! Jan 06 04:27:14 t.t Jan 06 04:29:41 Ok, back to the database thing, how can i programmatic ally get the location of the database? Jan 06 04:31:06 File dbFile = getDatabasePath(MY_DB_NAME); Jan 06 04:31:14 dbFile.getAbsolutePath() Jan 06 04:31:19 or whichever Jan 06 04:31:38 thank you Jan 06 04:31:40 err sorry you can also use getDatabasePath in the helper Jan 06 04:33:47 Does anyone know if remoteview setint method does indeed work for visibility? Jan 06 04:34:07 it indeed is broken for a lot of methods Jan 06 04:34:44 @RemotableViewMethod Jan 06 04:34:44 public void setVisibility(int visibility) { Jan 06 04:34:48 Should work Jan 06 04:35:13 cool thanks Jan 06 04:35:17 (Methods that have that annotation works) Jan 06 04:35:27 (Check the source) Jan 06 04:35:36 Any suggestions for a class or lib to parse nexted XML and dump it into DB Jan 06 04:36:16 which has relational data Jan 06 04:45:00 I'm using the Support Library, and "Fragment fragment = mActivity.getFragmentManager().findFragmentByTag(mTag);" is not compiling. Jan 06 04:45:17 Fragment is a support Fragment, but findFragmentByTag is returning a standard Fragment. Jan 06 04:45:36 getSupportFragmentManager you mean Jan 06 04:45:39 you're not supposed to use getFragmentManager() with the support library Jan 06 04:45:50 y u no read documentation? Jan 06 04:45:53 Oh, thanks. Jan 06 04:48:09 It says "The method getSupportFragmentManager() is undefined for the type Activity". Jan 06 04:48:39 FragmentActivity Jan 06 04:54:43 Okay. Jan 06 05:00:36 must a background image be a special format? i've a got a 480x800 png file and it's causing an exception Jan 06 05:00:55 saw resource is not drawable. Jan 06 05:00:55 no Jan 06 05:02:34 Can I use the word 'class' as a variable name in Java? Jan 06 05:02:42 not on its own Jan 06 05:02:43 In C#, I could escape it with '@class'. Jan 06 05:02:56 Why would you do that Jan 06 05:03:06 I need to remember a class reference. Jan 06 05:03:10 For whatever reason. Jan 06 05:03:11 it's the same as being able to type "class" with parenthesese Jan 06 05:03:15 'class' is the ideal name. Jan 06 05:03:25 it's best you prefix "class" with something Jan 06 05:03:39 such as "actualclass_class" Jan 06 05:03:42 or something similar Jan 06 05:04:06 Okay. Jan 06 05:04:09 Unless you're doing reflection, you probably don't need a Class reference Jan 06 05:04:13 using class on it's own, if possible which i don't think it is, is seriously not recommended. one should leave the reserved words alone Jan 06 05:04:18 By the way, is there a naming convention for parameters? Jan 06 05:04:27 Oh, I'm using Fragment.instantiate. Jan 06 05:04:43 paramter names follow the same convention as variable names Jan 06 05:04:48 You rarely need to use that Jan 06 05:04:49 Anyway Jan 06 05:04:55 clazz is the convention, I guess Jan 06 05:05:03 SimonVT: any idea why my drawable resource ins;t playing nice ? Jan 06 05:05:05 I'm creating a tabbed app that has two Fragments. Jan 06 05:05:11 The code sample I'm looking at uses instantiate. Jan 06 05:05:15 i simply have android:background="@drawable/background_main" Jan 06 05:05:24 And yeah, parameters use the same convention as local variables Jan 06 05:05:31 yourVariable Jan 06 05:05:59 I have no idea why that doesn't work Jan 06 05:06:06 Looks fine to me Jan 06 05:06:46 i created a drawable_my directory under res, that shouldn't be it, either, should it ? Jan 06 05:06:58 Wut? Jan 06 05:07:21 o.O Jan 06 05:07:25 i create my own directory under res and put the background in it Jan 06 05:07:30 you want something like res/drawable-xhdpi Jan 06 05:07:33 Yeah Jan 06 05:07:35 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Jan 06 05:07:43 It's very well defined which qualifiers are supported Jan 06 05:07:51 drawable-cow Jan 06 05:07:52 i'm just wondering if that's causing an error, but i doubt that Jan 06 05:07:53 Hi canadiancow ! Jan 06 05:07:58 hi SimonVT Jan 06 05:08:03 JakeWharton, you around? Jan 06 05:08:10 i have a beer with your name on it Jan 06 05:08:29 You should totally buy me a ticket to the us Jan 06 05:08:36 how about Jan 06 05:08:37 you come here Jan 06 05:08:42 and i buy you a beer Jan 06 05:08:43 deal? Jan 06 05:08:53 How about Jan 06 05:08:54 canadiancow: sf? Jan 06 05:08:59 yea Jan 06 05:09:09 is there a way to dynamically add a button to a single row of a listview Jan 06 05:09:16 code wise i think Jan 06 05:09:17 I pay back my depths Jan 06 05:09:20 do it in getview Jan 06 05:09:23 And when I worry about your beers Jan 06 05:09:39 do youpth have a lispth? Jan 06 05:09:41 debts* sorry couldn't help myself Jan 06 05:09:49 i lol'd at that Jan 06 05:10:19 You suck Jan 06 05:10:26 Make fun of the non-english speaker Jan 06 05:10:27 Sure Jan 06 05:10:38 productivity: 1000% when listening to an album by TSFH Jan 06 05:10:54 atleast you didn't spend a night refering to coca cola as cock because you thought that's how coke is written Jan 06 05:11:00 anyone in here in SF and want to grab a drink? Jan 06 05:11:08 :| Jan 06 05:11:17 The fuck Jan 06 05:11:18 being a non native aint easy yo :| Jan 06 05:11:39 that said, are the images supposed to be a specific format ? Jan 06 05:11:47 adnauseam: did you really? Jan 06 05:11:47 png :p Jan 06 05:12:13 canadiancow: maybe when i go to stanford :) Jan 06 05:12:16 get* Jan 06 05:12:19 Trinity: yeap. spent the night saying i love cock :| Jan 06 05:12:30 and no one corrected you? Jan 06 05:12:32 i was 15 though. Jan 06 05:12:42 i'm assuming you're no longer friends with them. Jan 06 05:12:44 ;P Jan 06 05:12:49 stanford isn't exactly "ok i'll meet you in 5 minutes" from SF Jan 06 05:12:54 #android-root if you love cock Jan 06 05:13:02 aight guys, enough about cocks Jan 06 05:13:04 Trinity: hah, yeah that's another story though ;P Jan 06 05:13:06 #ilovecocks Jan 06 05:13:15 simonVT :P Jan 06 05:13:40 jake lives close to you? Jan 06 05:13:45 scarily Jan 06 05:13:47 * Trinity creepin Jan 06 05:13:53 Me? Jan 06 05:13:54 :D Jan 06 05:14:42 btw, for ninepatch png theres gotta be an easier way to do it right? Jan 06 05:14:47 ? Jan 06 05:14:53 draw9patch... Jan 06 05:14:58 or that less precise web tool Jan 06 05:15:02 It's pretty easy Jan 06 05:15:04 im pretty sure there is but for my last project 2 years ago where i used 9patch Jan 06 05:15:05 sigh. why the exception. Jan 06 05:15:11 i drew dots for each 900x900 Jan 06 05:15:17 WHAT IS THE EXCEPTION?!?! Jan 06 05:15:17 90x90* Jan 06 05:15:29 stack trace or gtfo Jan 06 05:15:43 http://imgur.com/jacoj Jan 06 05:15:53 wait no srs guys, how do you ninepatch lets say a 100x50 image Jan 06 05:16:04 do you actually do each pixel for the two sides? Jan 06 05:16:18 or is there like a line tool Lol Jan 06 05:16:31 It takes half a minute to do a 9patch of that size Jan 06 05:16:45 Max Jan 06 05:16:52 If you know what each side represents Jan 06 05:16:53 500x100 Jan 06 05:16:59 Same Jan 06 05:17:14 probably am using ninepatch tool incorrectly then Jan 06 05:17:17 time for google Jan 06 05:17:48 i usually just draw the nine patches in photoshop, but then use draw9patch to check my work if needed Jan 06 05:21:11 so when i visit stanford youre going to buy me a beer right canadian? even though you'll be breaking a couple of laws? ;P Jan 06 05:22:00 I'm trying to add a button to a listview. this is my code http://pastebin.com/MPdSfaq6 it causes the app to crash Jan 06 05:22:39 cause your viewid isnt a listview Jan 06 05:22:41 its an androidlayout Jan 06 05:22:59 Oh my god. Jan 06 05:22:59 and you need an adapter i think Jan 06 05:23:03 I've been trying to do this for hours. Jan 06 05:23:05 And it doesn't work. Jan 06 05:23:15 how do i fix it Jan 06 05:23:25 Is there not example code of an ActionBarSherlock that uses Fragments? Jan 06 05:23:28 Is the drinking age in CA really 21? Jan 06 05:23:33 spoon ready. http://img2.etsystatic.com/000/0/6452996/il_fullxfull.286416990.jpg Jan 06 05:23:35 yea Jan 06 05:23:37 This is ridiculous! Jan 06 05:23:54 simonvt: though i have to say most highschoolers are trying to be older than they are rofl Jan 06 05:24:01 simonvt: i know freshmans who drink heavily now Jan 06 05:24:48 I can't even comprehend that Jan 06 05:24:49 but i guess ima hypocrit for drinking as a highschooler rofl Jan 06 05:24:58 I've been able to buy beers since I was 13 Jan 06 05:25:02 ok, noob questions incoming :D Jan 06 05:25:05 It was legal at 15 Jan 06 05:25:22 or not... Jan 06 05:25:25 shoot Jan 06 05:25:25 Think it's 16 now Jan 06 05:25:30 I don't even know what I want to ask :P Jan 06 05:25:39 SimonVT: I'm passing this (a SherlockActivity subclass) to my method that needs a FragmentActivity. Jan 06 05:25:40 holster, reload and shoot Jan 06 05:25:46 It won't compile. Jan 06 05:25:50 How do I get around that? Jan 06 05:26:02 SherlockACtivity isn' a FramgnentACtivity Jan 06 05:26:07 SherlockFragmentActivity is Jan 06 05:26:24 yeah... Jan 06 05:26:31 problem solved! Jan 06 05:26:33 gee, who named it that Jan 06 05:27:04 frankdrey: whats your problem? Jan 06 05:27:06 kaikai: How old is freshman? Jan 06 05:27:17 14 Jan 06 05:27:18 i think Jan 06 05:27:44 Oh, wow. Jan 06 05:27:47 That's pretty normal here Jan 06 05:27:50 But it feels weird adding 'Fragment' everywhere. Jan 06 05:28:22 I don't even know what's gonna happen when I run this app. Jan 06 05:28:22 kaikai, not a problem :P trying to start :P Jan 06 05:28:26 The world might end. Jan 06 05:29:10 I'm working on a DayDream and considered striking out on my own... Jan 06 05:29:14 I almost died Jan 06 05:29:18 went back to the examples :P Jan 06 05:29:31 so tacticaljoke, i was visiting the dorm of a friend of mine in college and he would wash his dishes 3 times because of his ocd symptoms. i have a tendancy to wash things twice. how about you? Jan 06 05:29:49 You're weird Jan 06 05:30:04 =[ Jan 06 05:30:29 +1 Jan 06 05:30:29 but Jan 06 05:30:35 ive had a bowl in my dishwasher since i moved in Jan 06 05:30:37 in...october Jan 06 05:30:45 becuase it has this streak of stuff on it Jan 06 05:30:48 I wish I had a dishwasher Jan 06 05:30:48 and i just cnat get it off Jan 06 05:30:51 yeah Jan 06 05:30:55 wanna compare rent? Jan 06 05:30:55 :P Jan 06 05:31:03 Sure Jan 06 05:31:38 What do you pay Jan 06 05:32:45 http://code.google.com/p/android-daydream-samples/source/browse/bouncer/src/com/android/daydream/bouncer/Bouncer.java Jan 06 05:32:53 lines 36-48 i'm not entirely sure what's going on Jan 06 05:33:12 is it just a way of being able to accept a variable number of arguments? Jan 06 05:33:51 yes Jan 06 05:34:15 The 2 param constructor is necessary if you use your view in xml Jan 06 05:34:19 So I need some help to encrypt my strings and also a way to encrypt my outputstream. Async or symm would both work. Any help? Jan 06 05:34:24 ok cool thank you Jan 06 05:34:42 The 1 constructor one is what you'd usually use in code Jan 06 05:34:49 The last one, no idea Jan 06 05:34:51 out of interest is it easy to expose attributes from your custom view to xml ui editor ? Jan 06 05:37:42 i think incorrest positioning of a native window after orientation change is occurring, for glsurfaceview Jan 06 05:37:57 is there some way for me to change the placement of a native window ? Jan 06 05:38:17 actually i dont even know if views have windows like that, maybe for gl views they do Jan 06 05:41:23 kaikai: I don't wash dishes twice. Jan 06 05:41:35 I wash my hands a lot sometimes. Jan 06 05:41:39 hrm Jan 06 05:41:47 I sometimes have problems with buying things from the supermarket. Jan 06 05:42:15 my god Jan 06 05:42:15 If there are 10 yoghurts on display, and they're all the same, and I need one of them, I get stuck for 10 minutes trying to pick up the 'right one' sometimes. Jan 06 05:42:35 lawl Jan 06 05:42:59 if i load the icons provided by andriod, they load just fine. but if i try to load some png, it throws a not found exception and specifies "resource is not drawable" (a wierd exception, it's either not there, or there but not drawabla), what is going on Jan 06 05:43:04 ? Jan 06 05:43:24 hi guys, i have a small problem with an app I am developing. For some reason, when I hit the home button, it is calling onPaused but then calling onDestroy, which resulting to destroy my IntentServices which I need to run in the background Jan 06 05:43:24 Adnauseam: paste code Jan 06 05:45:26 I'm just guessing you're using qualifiers that don't exist Jan 06 05:46:41 SimonVT: Don't laugh. Jan 06 05:47:54 Don't put your yoghurt on display Jan 06 05:47:58 devslash did it work? Jan 06 05:47:59 oo-er Jan 06 05:48:06 no Jan 06 05:48:06 Adnauseam: ? Jan 06 05:48:13 does Math.random() give only positive values? Jan 06 05:48:16 I've given up on that for now Jan 06 05:48:23 http://postimage.org/image/svu0ico3p/ Jan 06 05:48:24 why? its simple Jan 06 05:48:41 rather, http://postimage.org/image/svu0ico3p/full/ Jan 06 05:48:48 public static synchronized double random () Jan 06 05:48:48 Returns a pseudo-random double n, where n >= 0.0 && n < 1.0 Jan 06 05:48:53 Adnauseam: dear god no - paste *code*, not a screenshot of code! Jan 06 05:49:33 i wanted to show that the image is indeed there and is png Jan 06 05:49:34 Adnauseam although you do seem to be missing a "_" <--- Jan 06 05:49:37 How is background_main_ the same as background_main Jan 06 05:49:49 kaikai: no it isn't so simple Jan 06 05:49:58 oh wait, that's a recent change Jan 06 05:50:22 devslash: http://vinayguntaka.blogspot.com/2010/11/android-dynamic-list-with-buttons-and.html Jan 06 05:50:31 don't forget android:focusable Jan 06 05:50:37 ill look at that later Jan 06 05:50:40 I'm fixing another bug Jan 06 05:50:50 StingRay_: yep.. that did it. damnit Jan 06 05:51:22 thanks =p Jan 06 06:03:01 is it possible to somehow...dynamically load strings? Jan 06 06:03:07 as in let's say i have a bunch of strings Jan 06 06:03:13 text_1, text_2, etc. Jan 06 06:03:19 can i load one at random? Jan 06 06:04:29 or am i better off using some other form of storing the strings? Jan 06 06:04:37 like a database Jan 06 06:04:42 or a raw xml that i load into an array Jan 06 06:05:27 Resources#getIdentifier Jan 06 06:05:28 resource bundle? just a guess from knowing Java I'm new to android dev :) Jan 06 06:05:31 Often a sign of bad design Jan 06 06:05:34 there is arrays Jan 06 06:05:41 resource arrays Jan 06 06:05:46 but again... I'd question whats going on Jan 06 06:06:24 ron motherfucking frown knows his shit Jan 06 06:06:45 heh Jan 06 06:06:58 hh Jan 06 06:07:14 well i need strings to float accross the screen at random Jan 06 06:07:17 :P Jan 06 06:08:39 depends on the size of the pool of the random strings Jan 06 06:09:14 i'd say 200 or so if i can manage Jan 06 06:09:25 (don't bash, it's a screensaver with inspirational bible verses) Jan 06 06:09:27 why not just make a sqlitedatabase Jan 06 06:09:33 that way you can expand it Jan 06 06:09:35 t.t Jan 06 06:09:39 that would be one more thing to learn :3 Jan 06 06:09:50 problem with string resource arrays > 100 in size is crashes sometimes Jan 06 06:09:54 ah Jan 06 06:10:04 its well worth it since you can make it "arbitrarily" larger Jan 06 06:10:11 for in-app purchases, etc Jan 06 06:10:13 oO Jan 06 06:10:15 It does? Jan 06 06:10:23 arbitrarily Jan 06 06:10:26 "" Jan 06 06:10:31 wut Jan 06 06:10:32 as in the mathematical sense Jan 06 06:10:37 thre are limits to the number of keys/values in resources Jan 06 06:10:47 its a pretty decent limitation without trying to cram a ton of shit into it Jan 06 06:10:48 yeah, I'm not following you Jan 06 06:10:50 our app is HUGE Jan 06 06:10:52 as large as you'd like it to be up to some limit of reasonability Jan 06 06:11:00 and we've run into the limitations Jan 06 06:11:09 alright, now to figure out sql ._. Jan 06 06:11:16 i tried to put like 500 strings in resources and had problems Jan 06 06:11:23 i knew it would come down to it and i had been shying away from sql :P Jan 06 06:11:24 doing something very very similar frankdrey Jan 06 06:11:36 In a ? Jan 06 06:11:39 yeah Jan 06 06:11:48 *if i remember correctly Jan 06 06:12:53 the convient thing about sqlite is you can have columns that contain better meta information, like verse number or which book its from what edition you referenced etc Jan 06 06:13:09 yeah :| Jan 06 06:13:11 ok Jan 06 06:13:21 i want to change the name of my apps package. how do i let existing users know about the change Jan 06 06:13:43 and if you really want to add more for in app purchase incentive you can add a rating column and then use a primitive algorithm to show only relevant excertps Jan 06 06:13:55 things like that Jan 06 06:14:17 one more question, a dream service class...when does it run the stuff outside, say, onDreamingStarted? Jan 06 06:14:20 Make your app nothing but a single textview that says "Yo dawg, I changed package.. download ze new app" Jan 06 06:14:25 lasserix, don't think i'll be selling anything Jan 06 06:14:57 oh okay, well i just mean sqlite makes it easy to expand the usability of your data Jan 06 06:15:20 i'd like to load up like 30 strings as the daydream starts, because apparently it would be inefficient to read from the database when a new verse is needed Jan 06 06:15:28 no its not Jan 06 06:15:31 hmmm ok Jan 06 06:16:24 i want to change the name of my apps package. how do i let existing users know about the change since a change in package name means that google treats the app as an entirely new app Jan 06 06:17:03 frankdrey: you should add in-app purchase of orated tts :P Jan 06 06:17:22 it'll also mean that i can have them simply download new databases instead of upgrading entire app Jan 06 06:17:30 no, i want this completely free Jan 06 06:17:35 err not in-app Jan 06 06:17:56 i mean you can ask some people in your assembly with good oration skills to read it and then let the user have the option of quietly playing the verse Jan 06 06:17:58 anyone? Jan 06 06:18:35 frank: there's many ways to do that but if you have a server running you can just send basic text information, then use the sqlite api insert method to add to the database instead of updating it Jan 06 06:18:49 *updating it by redownloading the whole thing i mean Jan 06 06:18:56 ah ok Jan 06 06:19:03 i don't have a server yet :P Jan 06 06:19:08 i'll see about the reading :D Jan 06 06:19:14 that would be pretty cool Jan 06 06:19:28 little things that really make the app shine ;p Jan 06 06:21:12 put `ORDER BY RANDOM() LIMIT 1` in your query make the database work for you :) Jan 06 06:27:22 hmm, TSA VIPR teams popping up at gootball games in the US … there's an app idea in here somewhere Jan 06 06:27:28 *football Jan 06 06:28:13 i'm sure they would pat down ron_frown in a heartbeat Jan 06 06:28:56 why is that Jan 06 06:29:05 just a theory Jan 06 06:29:10 :D Jan 06 06:29:18 ok, where do i put the database? Jan 06 06:29:43 frankdrey: there aren't too many places Jan 06 06:29:51 hmm, i think i'll have it download the entire database while i don't have a server Jan 06 06:30:17 man I got terrible gas Jan 06 06:30:52 tmi Jan 06 06:30:59 Becuz u cray, ron_frown Jan 06 06:31:23 I am assuming hes saying that because Jan 06 06:31:24 http://sphotos-b.xx.fbcdn.net/hphotos-ash3/14606_10200206740230740_2025413294_n.jpg Jan 06 06:31:32 ron_cray_motherfucking_frown Jan 06 06:31:42 I cant help if someone bought be a badass knife for christmas Jan 06 06:31:46 badass = huge Jan 06 06:31:51 hehe, yeah, go to the VIPR checkpoint like that Jan 06 06:31:52 not necessarily super high quality =) Jan 06 06:32:49 looks equally good at chopping or sawing off body parts Jan 06 06:33:13 i like the little lanyard hole on the blade; thats adorable Jan 06 06:33:29 haha Jan 06 06:33:31 thats the point Jan 06 06:33:48 somone breaks into my house they may know somethings up Jan 06 06:33:57 ron_frown: so with that hole, you can use it as a neck knife Jan 06 06:34:05 somone who whips something like that out on a person just has to have something not wired right Jan 06 06:34:10 and if that doesnt faze em Jan 06 06:34:16 I'll be ready for combat Jan 06 06:34:29 take those motherfuckers out Jan 06 06:34:56 http://youtu.be/01NHcTM5IA4?t=15s Jan 06 06:35:06 heh Jan 06 06:35:28 ok, how are points calculated on android Jan 06 06:35:35 for views? Jan 06 06:35:41 where is 0,0 ? Jan 06 06:35:48 top left Jan 06 06:36:14 ok, thank yeh Jan 06 06:39:28 bleh i don't want to do a whole sql setup... Jan 06 06:39:35 http://en.wikipedia.org/wiki/Rodney_Ansell Jan 06 06:39:49 how can i just grab one value? Jan 06 06:39:50 frankdrey its easy just take it step by step Jan 06 06:40:30 with a query Jan 06 06:40:42 you'll want to make an sqlite database of your verses Jan 06 06:40:59 frankdrey: how many strings did you have ? Jan 06 06:41:42 ok, i'm looking into opening the db, and it wants a cursor? :P dafuq is a cursor? i am completely new to sql Jan 06 06:41:52 g00s, none yet :P Jan 06 06:42:03 >.> Jan 06 06:42:03 but i expect at least 200 Jan 06 06:42:15 i'm trying with 1 for now Jan 06 06:42:19 or 2 :p Jan 06 06:42:21 if you really want Jan 06 06:42:38 i made the database using sqlite browser Jan 06 06:42:49 and max? and what else beside the strings? Jan 06 06:43:01 just a bag of strings, dragging in sqlite for this ? Jan 06 06:43:26 max is however many inspirational bible verses there are :P Jan 06 06:43:30 nothing else but strings Jan 06 06:43:36 any other suggestions? Jan 06 06:43:47 are they k/v pairs or just random strings ? Jan 06 06:45:02 k/v pairs? Jan 06 06:45:06 excuse my ignorance Jan 06 06:45:12 key / value Jan 06 06:45:21 i haven't done anything with them Jan 06 06:45:58 i don't even have them typed up yet Jan 06 06:47:00 since service's lifecycle is on UI could I use service's context to create an Asynctask? Jan 06 06:47:27 yes..? Jan 06 06:47:39 frankdrey: don't you have citation information involved too? Jan 06 06:47:41 AsyncTask doesn't need a COntext Jan 06 06:48:03 frankdrey: so you probably want to record whether you grabbed that quote already without exhausting the other ones too Jan 06 06:48:10 right, nvmd just needed to pass context through a constructor thanks though simon Jan 06 06:48:31 Service is a Context Jan 06 06:49:19 yea pass the service context to asynctask since my asynctask is not on an activity Jan 06 06:49:59 not in* Jan 06 06:50:13 thats alright too right? for an asynctask to not be in an activity. just makin sure Jan 06 06:50:24 Of course Jan 06 06:50:30 It all depends on what you're doing Jan 06 06:52:23 well jsut to be safe. i'm implementing remote server checking for androidbilling. altering the billingservice so it verifies through my server instead of client. its being sent through https with asynctask. Jan 06 06:54:23 the way googlebilling works is the google servers keep requesting for a response and since asynctask takes some time I used a boolean so a signeddata and signature check doesnt get called again and flood cpu. any better options? Jan 06 06:54:52 boolean is used as a gate for the flood of requests Jan 06 06:55:12 it works but something tells me its not the best way to synchronize everything Jan 06 06:57:25 lasserix, i think i'll stick to KJV Jan 06 06:57:46 g00s, so make sure i don't repeat them too much? Jan 06 06:57:58 that sounds like more work :P Jan 06 07:03:32 ehh Jan 06 07:03:40 i think i might do my old idea Jan 06 07:03:56 parse my own xml file, loading 30 random verses and use those for the daydream session Jan 06 07:04:47 oh , i don't know ._. Jan 06 07:10:37 database Jan 06 07:12:50 do you know of a good place for me to learn sqlite? Jan 06 07:13:24 http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/ Jan 06 07:14:49 first get basic io working with a test database Jan 06 07:14:55 then you have to actually make a database Jan 06 07:14:58 and copy it Jan 06 07:15:06 bookmark this for doing that later http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Jan 06 07:15:58 ok thank you Jan 06 07:16:05 it probably doesn't help that i'm a java noob too :| Jan 06 07:16:19 my current code is already messy enough :P Jan 06 07:16:23 for those who neded clarification for billing heres my diagram :) Jan 06 07:16:24 http://tinypic.com/r/20a8hm8/6 Jan 06 07:16:32 i need to learn OOP more indepth Jan 06 07:16:38 http://oi48.tinypic.com/20a8hm8.jpg Jan 06 07:17:33 now to get ant working... Jan 06 07:17:59 C:\Program Files\Android\android-sdk\tools\ant\build.xml:1102: org.xml.sax.SAXPa Jan 06 07:17:59 rseException; lineNumber: 21; columnNumber: 1; XML document structures must star Jan 06 07:18:00 t and end within the same entity. Jan 06 07:18:04 fu windoze Jan 06 07:18:16 why the hell does command prompt not copy correctly? Jan 06 07:18:17 frankdrey erhaps thats true... but honestly... thats the same with jsut about every engineer I've encountered Jan 06 07:21:01 ok, I'm tired of this :| Jan 06 07:21:08 I'm done until monday :P Jan 06 07:21:16 and on Monday I'll install Arch Jan 06 07:21:23 solve a million Windoze problems Jan 06 07:21:40 stupid windows won't build anything Jan 06 07:22:17 simonvt: you there? Jan 06 07:23:17 good night or whatever it is in your timezone Jan 06 07:23:17 nvmd Jan 06 07:23:25 ron_frown: any resolutions to learn new things this year? Jan 06 07:23:39 any specific things you are thinking about looking at ? Jan 06 07:25:27 yea, fuck inner class asynctawsk Jan 06 07:29:13 g00s - my resolution is to get this: http://www.ausmotive.com/images/Ferrari-458-Italia-01.jpg Jan 06 07:29:20 last year I set my resolution and beat it pretty good Jan 06 07:31:33 part of that involves me diving into ee side of android embedded hardware Jan 06 07:31:38 part of that depends on my .net company Jan 06 07:34:54 I am going to def do some work in wp8 and bb10 Jan 06 07:35:04 and if ubuntu looks reaosnable Jan 06 07:35:05 there too Jan 06 07:38:58 ron_frown: wow Jan 06 07:39:42 i'd like to do some with wp8; i guess i will wait and see with bb10 Jan 06 07:39:59 well one of my products is gonna benefit the most hitting as many platforms as it can Jan 06 07:40:02 yeah, ubuntu also - not sure who would mfg anything with it though Jan 06 07:41:22 yeah right now we know nothing about it and have seen videos that may or may not be true to real life Jan 06 07:49:29 why must method doInBackground(Type...){} of AsyncTask return the same value type as its params? Jan 06 07:52:38 uhh Jan 06 07:52:42 thats how generics work? Jan 06 07:58:35 hello all Jan 06 08:17:40 if I have text views with same ids in different linearlayouts, and am setting visibility to gone on the linear layouts i am not using--only setting one to visible, if i reference those ids it'll point to the visible textviews without problems? Jan 06 08:18:44 huh? Jan 06 08:18:56 can you rephrase that? Jan 06 08:19:10 if you have two on screen elements with the same id at the same time (same layout Jan 06 08:19:14 so i have linearlayout A and linearlayout B each has a textview with id textview Jan 06 08:19:14 you are doing something wrong Jan 06 08:19:26 ron: thanks but you are jumping the gun Jan 06 08:19:31 no I am not =) Jan 06 08:19:37 by default A and B are visibility gone Jan 06 08:19:48 depending on a user choice A OR B is set to visibble Jan 06 08:20:06 does gone actually make it gone? I thought it was just hidden with no space reserved Jan 06 08:20:08 my question is if i reference the textview id it'll point to the visible one Jan 06 08:20:11 lasserix: ya that is wrong, you should not have the same ID usage if you plan on showing/hiding it Jan 06 08:20:16 no Jan 06 08:20:20 i am doing this for an appwidget Jan 06 08:20:24 in a remoteview Jan 06 08:20:39 since I can't use the normal methods and have 27 different combinations of text layouts Jan 06 08:20:44 this was the easiest way to do it Jan 06 08:20:47 dont matter, you need to keep the ID's separate (differently named) Jan 06 08:20:53 rather than have 27 different xml layouts Jan 06 08:20:56 otherwise how are you getting the reference to the right one? Jan 06 08:21:04 only one will be visibile ever Jan 06 08:21:11 since by default they are gone Jan 06 08:21:26 here's the situation: remoteviews do not support justification or typeface Jan 06 08:21:40 still, the ID's are stored in the R.java... you need to have uniquely named ID's Jan 06 08:21:51 QubeZ YOU ARE JUMPING THE GUN Jan 06 08:21:58 that's not the case either Jan 06 08:22:24 I'm just gonna assume lasserix is more knowlegeable than I Jan 06 08:22:29 here, how would you do this? I have an app widget with text, the text can have three font sizes, the three standard font styles, and the three justifications Jan 06 08:22:50 do i do a seperate xml layout for each combination? Jan 06 08:23:18 since it is a remoteview i can't dynamically change the font style, or justification Jan 06 08:23:26 and textsize on older devices seems to be buggy Jan 06 08:23:34 hence hardcoding the xml Jan 06 08:24:19 my idea was depending on the user preference, show the visibility of the linearlayout holding the user-choice styles, then do the setting of text etc Jan 06 08:24:56 maybe Stubs are the way to go for you Jan 06 08:25:00 dunno Jan 06 08:25:05 this is a remoteview in an appwidget Jan 06 08:25:11 i wanted them to be the same id Jan 06 08:25:30 qubez you shouldnt jump the gun Jan 06 08:25:33 because i have 5 3 or 4 textviews for each combination of user choice Jan 06 08:25:40 ron_frown: lol Jan 06 08:25:56 sorry ron_frown I know what you mean, but this is a non standard case when normal conventions don't work to begin with Jan 06 08:26:33 i dont really want to make 27 * 4 distinct xml files that are all identical except font style and text justification Jan 06 08:26:53 what determines the font size / text etc..? Jan 06 08:26:58 user choice Jan 06 08:27:03 I am 99% sure remoteviews force you into the inability to change sizes etc Jan 06 08:27:04 in the app widget configuration activity Jan 06 08:27:10 ron_frown☞ thx Jan 06 08:27:11 I though tyou could communicate through the AIDL means Jan 06 08:27:12 yeah Jan 06 08:27:29 dont force you Jan 06 08:27:56 its broken for textsize and justification and you can't dynamically change text style type face Jan 06 08:28:58 setint works for setVisibility hence my scheme Jan 06 08:30:26 that's why i was hoping i could leave the ids the same so i didn't have to write bajillion lines of code that do all the same thing Jan 06 08:34:09 lasserix: you cannot use setTextSize and setTypeface etc... in your remoteview based on what the user selected? Jan 06 08:34:17 that is correct Jan 06 08:34:24 wtf Jan 06 08:34:29 for sure you cannot settypeface Jan 06 08:34:40 setTextSize i believe is buggy or broken Jan 06 08:34:57 not to be an ass, but maybe its operator error... what is broke about it Jan 06 08:35:26 what method should i use to do that? Jan 06 08:36:23 setint for remoteviews doesn't work with all methods ie setgravity Jan 06 08:36:31 it will work with setvisibility Jan 06 08:36:42 should the sensor values of TYPE_LINEAR_ACCELERATION be as (0,0,9.8) or (0,0,0)? Jan 06 08:36:57 http://stackoverflow.com/questions/7707578/android-widget-set-typeface-programmatically Jan 06 08:37:36 QubeZ read the 4th comment in the answer Jan 06 08:38:34 sadness Jan 06 08:39:12 your telling me this is so tedious Jan 06 08:39:16 ! Jan 06 08:39:43 I think you're giving too many options to users for widget... create the normal 4x1, 4x2 etc.. type widgets and be done with it Jan 06 08:39:52 why change font, size etc... thats dumb... imho Jan 06 08:39:56 haha Jan 06 08:40:07 i agree with you but this is a purely text based app Jan 06 08:40:10 and the widget is the main thing Jan 06 08:40:20 reading through the hundreds of comments on other app widgets like it Jan 06 08:40:32 it seems users really care about customizing their app widget Jan 06 08:40:46 not really, they say they do but then they dont really do shit with it Jan 06 08:41:06 that may be true but i'm already balls deep might as well finish the job ! Jan 06 08:41:29 lasserix: balls deep in a bad design/decision means you need to get out and save your balls Jan 06 08:41:46 why? Jan 06 08:41:59 i might as well go through with it because I want to be able to totally trick out the app widget Jan 06 08:42:02 hmm, would using a 1 small png set to fill use less battery than using 1 pg the size of the screen? Jan 06 08:42:06 could you imagine if pioneers were like "well, this is really bad way to do this but since im 90% in it, let me finish this piece of shit" Jan 06 08:42:13 HAHAHA Jan 06 08:42:16 its not a bad way to do it its just time consuming Jan 06 08:42:21 it' Jan 06 08:42:24 I'm all for people attempting diff stuff Jan 06 08:42:26 it's not a piece of shit Jan 06 08:42:44 it is just taking more time to implement than most of the actual logic of the rest of the app Jan 06 08:42:47 lasserix: I wasn't implying yours was Jan 06 08:43:03 I'm thinking its a bad design Jan 06 08:43:05 i know what you mean and my friend says the same thing but the reality this is a very text based app Jan 06 08:43:38 and little things bother me like the fact ellipiszation is broken for <3.0 Jan 06 08:43:48 so i had to write a parser/formater to handle that and etc etc Jan 06 08:43:50 :) Jan 06 08:45:20 http://stackoverflow.com/questions/6721616/how-to-change-textsize-in-remoteviews Jan 06 08:46:11 IN THE MOTHERFUCKING FACE! Jan 06 08:46:16 I dont know if that actually works Jan 06 08:46:21 but 6 people seem to think so Jan 06 08:46:51 ron_frown i can't use that unfortunatly Jan 06 08:47:01 because ellipsization is broken Jan 06 08:47:04 oh well too bad, so sad Jan 06 08:47:06 Hey Jan 06 08:47:26 yeah it is this is very tedious i wish they had fixed the ellipiszation problem Jan 06 08:47:28 earlier Jan 06 08:47:33 I can't seem to get a webview to load without opening a browser Jan 06 08:47:39 sounds like you have 85 million diff problems and you get to pick 2 things you can have Jan 06 08:47:59 I've tried setting a newly created WebView as the content view Jan 06 08:48:00 and the other 84mil 999k 998 items you have to just deal with Jan 06 08:48:02 that being said Jan 06 08:48:05 And this http://pastebin.com/Byz8Laxz Jan 06 08:48:12 maybe you should just give u Jan 06 08:48:13 up Jan 06 08:48:14 that's what i am doing, hence my original question about identical textview ids Jan 06 08:48:16 hehe Jan 06 08:48:28 i did for three weeks hoping something better would transpire Jan 06 08:48:31 Manipulating the WebView within a Layout itself. Still wants a browser Jan 06 08:48:37 original textview id's *IF* it works, is just by chance Jan 06 08:48:44 using explicit duplicate id's is bad bad Jan 06 08:48:49 i agree Jan 06 08:49:26 but since it is a remoteviews, if they are all set to GONE initially, then when i only setvisibility to a set of them (ie no duplicate ids among visible ones) Jan 06 08:49:38 does that really matter Jan 06 08:49:47 no i guess not Jan 06 08:50:04 well i was hoping it wouldnt crash Jan 06 08:50:06 its kinda like fragments inside of fragments... everone including google said dont do it (until last support lib) Jan 06 08:50:23 I ignore and do it anyway... fragment lifecycle gets thrown right down the shitter and stuff grenades down the road Jan 06 08:50:37 its crossing the streams dude Jan 06 08:50:39 haha Jan 06 08:52:39 Anyone got any suggestions for loading a simple URL within a webview? it keeps trying to open a browser app. Jan 06 08:55:05 http://stackoverflow.com/questions/2378800/android-webview-click-opens-default-browser Jan 06 08:55:24 second answer? Jan 06 08:55:43 What is how to google for 1000 alex? Jan 06 08:56:35 DID I WIN!? Jan 06 08:56:56 sometimes this chatroom breeds such codependency ;p Jan 06 08:57:29 I am most definitely incompetent Jan 06 09:00:32 man toy story 2 is no1 of all time according to rotten tomatos Jan 06 09:11:20 I'm viewing the source of a project; is there of a good way of determining which file starts everything running? (e.g., the main method running everything) Jan 06 09:11:27 LOL Jan 06 09:11:37 karl___: Yes, AndroidManifest.xml Jan 06 09:11:47 It gives you the different intents and l;aunch activities Jan 06 09:12:03 lighthazard: much appreciated Jan 06 09:13:00 karl___: I laughed because I was thinking I was in another channel and that kind of question was too hilarious. Jan 06 09:13:07 Different channel, I apologize if I seemed like an ass. Jan 06 09:13:47 lighthazard: not a problem; I have no experience in android development, just trying to RE a program real quick so I can write a ruby client Jan 06 09:45:48 I just noticed that getEdgeFlags just does not work. Is there a list of functions which are known to be broken? Jan 06 09:50:46 it would at least have been nice if functions would return something like TOO_LAZY_TO_IMPLEMENT_THIS_PROPERLY :S Jan 06 09:59:10 maybe you could implement it and send a patch to AOSP Jan 06 10:22:20 Hi, I have a memory leak in my project. When I "dump HPROF" file in Eclipse, I see only 3.1 MB of objects in Memory Analyzer. If I go to Settings - Applications - Manage Applications - Running: The size of my application in memory seems to be 18 MB. Could it be that HPROF does not show all types of objects? Jan 06 10:51:58 I have an custom adapter on a gridview, in the onClickListener can i ask the AdapterView argument for the adapter and then ask the adapter for item at the clicked position? I've tried this but i get nullpointer Jan 06 10:53:46 post your code Jan 06 10:59:33 do i need to override the getItem() method if i extend a BaseAdapter? Jan 06 10:59:50 i feel like it always returns null for me Jan 06 11:00:26 wow sorry nvm Jan 06 11:00:41 i actually had it overrided and it returned null :D Jan 06 11:00:59 that's what you get for copy-pasting example code Jan 06 11:01:20 Do I need do something special to garbage collect ByteBuffer? Jan 06 11:12:02 want to make sure i am reading this right (google android docs), android:hint is a constant ? Jan 06 11:12:25 or a default string i set for the empty text field Jan 06 11:12:26 ? Jan 06 11:12:47 that second one Jan 06 11:13:30 oh i see, i can see how that is useful, user\password etc Jan 06 11:13:49 yep Jan 06 11:33:07 anyone had problems with onActivityResult now being called? Jan 06 11:42:17 Hi. I got picture that I open as Bitmap, scale, and stream over socket as byte[] to a python server which then just writes it to a file on disk. Servercode is mine. I have done this same procedure from a python client before, where I sent an image over and it was readable, but these bytes from android are not readable. They are if I store them locally on my device, then I can see the pic but not if I send them over net for server Jan 06 11:42:18 to store. I guess this has to do with android socket. I have tried "write" and "writeBytes" methods. I am adding it to the end of an existing string with other data. Did same from the python client. Any sugestion on how to send it over socket without changing it? Jan 06 11:43:21 *without changing the bytes Jan 06 11:43:45 are you sending raw pixels or the png/jpg data? Jan 06 11:43:56 http://pastebin.com/uuQSn5xW Jan 06 11:44:01 I then send the byreArray Jan 06 11:44:58 so whats going on at the server Jan 06 11:45:17 Hi guys, looking for a good souce examplle for managing HTTP connections throughout the app Jan 06 11:45:20 any thoughts? Jan 06 11:45:52 +- Jan 06 11:45:56 *,,,,,,,,,,,,, Jan 06 11:46:26 ??? Jan 06 11:46:43 xorgate: well, python reads everything as string. And this is a string with some other values, and at end I put a "image=" + byteArray on android before sending. So python finds that and reads from the first byte after the "=" sign to the end of file, opens a file and writes the bytes to disk, closes filehandle. Jan 06 11:50:05 sounds like that could go wrong Jan 06 11:50:19 is this app engine? Jan 06 11:50:25 xorgate: and it does, I just got no idea where. Jan 06 11:50:32 - ***************** *************************** Jan 06 11:50:45 xorgate: what do you mean? Jan 06 11:51:04 Kleggas if it's app engine you should use blob-whatever Jan 06 11:51:36 maybe you can base64 encode it for transport Jan 06 11:51:47 and at the server decode it Jan 06 11:52:10 xorgate: ah, its not app engine. Jan 06 11:53:53 xorgate: I guess I could. It does go very fast to upload the images now too, so do not think it would increase that much if the size doubles for base64 Jan 06 11:54:18 xorgate: think I will do that actually and measure time and readability etc :) Jan 06 11:55:48 i guess what matters first is that it works Jan 06 12:00:17 xorgate: indeed. speed without readability of the pic is useless, kinda ;) Jan 06 12:27:48 hello everyone Jan 06 12:28:08 need an urgent help implementing LIstfragment in my app Jan 06 12:28:15 please help me Jan 06 12:28:37 Am using HoloEveryWhere library Jan 06 12:29:13 i am getting NullPointer Exception while updating the Baseadapter used for list fragment Jan 06 12:41:24 hello Jan 06 12:41:44 http://pastebin.com/4486zE0f Jan 06 12:41:55 how can i align the button verticaly at center? Jan 06 12:42:08 yakubMobileDev at which line is the error Jan 06 12:45:09 yakubMobileDev more specific? Jan 06 12:52:24 I am confused how to use ListFragment to load data from Custom BaseAdapter Jan 06 12:52:38 ListFragment of HoloEveryWhere library Jan 06 12:52:54 what is the error Jan 06 12:52:57 trying from past 4 hrs Jan 06 12:53:04 Null Pointer error Jan 06 12:53:21 what does logcat say Jan 06 12:54:53 give me 2 min i will post th error Jan 06 13:06:41 Parhs: Your button is inside a LinearLayout, which has setting android:orientation="horizontal". Also, even if it did have setting vertical, I think (also a bit new to android xml guis) that LinearLayout will add the button after the previous item you add to, not letting you to move it further to the middle or anywhere else but right next to the previous item. You can of course add margins so it gets a bit further from it but tha Jan 06 13:06:41 t wont center it on every resolution/screen. Jan 06 13:07:37 Parhs: assuming I understood you correctly, you want to center your button in screen where the layout is? Jan 06 13:09:41 <_yakubMobileDev> unable to update the content of the listfragment of HoloEveryWhere library here is the code...http://pastebin.com/wYM4MKQG Jan 06 13:33:39 what would you tell to someone who says that android sucks ? Jan 06 13:34:51 Parhs: "OK. Don't use it. Fine by me" Jan 06 13:35:26 "your loss" :P Jan 06 13:35:50 heh Jan 06 13:38:10 bulktransfer won't work Jan 06 13:38:44 but it is bussiness . I mean we are making an app for our restaurant pos .I make the android one and my partner hired someone to make the ipod one (he found one with less than 20$ hour) . I doupt if he can make it within 1 week.Also i doupt if apple accept our application. I told him that clients might not have internet connection and he said that (they'll find) .Because in iphone/ipod Jan 06 13:38:44 you cant install what you want without store Jan 06 13:39:30 also you cant switch batteries etc. But i am not sure if ipod is better there Jan 06 13:52:16 is android 4.0 the first version to track data usage ? Jan 06 13:52:45 Parhs: That's not what your client should care about. Show him market share numbers. Jan 06 13:55:47 maslen: do you know ? Jan 06 13:57:22 hey Cromulent Jan 06 13:57:26 devslash: Highlighting random people isn't a good approach. Jan 06 14:25:47 Hi guys, looking for a good souce examplle for managing HTTP connections throughout the app Jan 06 14:25:54 any thoughts? Jan 06 14:35:55 I have an imageview which fills the screen horizontally. I need to fit an image bitmap into it without losing the aspect ratio. How can I do that? I have already tries using Scaletype.FIT_XY Jan 06 14:36:33 thepoosh: please clarify: "managing HTTP connections". Do you mean pooling? Jan 06 14:36:36 when i do call TrafficStats.getTotalRxBytes() it doesn't return the same value (475MB) as in settings->data usage (530MB) Jan 06 14:36:56 has anyone here used this class to get the same value store in the settings app ? Jan 06 14:38:01 is UTC the same as GMT ? Jan 06 14:38:43 hi guys, for over three days now i have been getting "An unexpected error occurred. Please try again later." when trying to upload a new apk to google play, anybody got any idea of whats wrong? I have tried different computers and different browsers to no avail Jan 06 14:39:30 are you updating an existing app ? Jan 06 14:39:43 or uploading a new one Jan 06 14:40:19 devslash, you could try some of the other getRxBytes methods and see if maybe the settings->data usage displays some of that? Jan 06 14:40:29 theres a lot Jan 06 14:40:42 copy paste some code, look for a match Jan 06 14:40:45 napster: I have done that. let me find the code snippet Jan 06 14:40:55 ok Jan 06 14:42:13 dirkjaeckel: I'm talking about having a good singleton http client to manage all requests throughout the app life Jan 06 14:42:14 napster, in xml you have android:adjustViewBounds="true" for ImageView (assuming you use android:src) Jan 06 14:42:28 napster: I used this: http://stackoverflow.com/a/4688335/199972 Jan 06 14:42:33 adq: Already tries that as well Jan 06 14:42:37 to handle the session in this, and next app use Jan 06 14:42:50 handeling login and connection to a server Jan 06 14:43:00 dirkjaeckel: Let me try that. thank you. Jan 06 14:44:04 Hi, i can read android library sources? I'm trying to read simple_list_item_1.xml content but it's unreadable Jan 06 14:44:08 napster: I think you need to extend ImageView and override onMeasure() Jan 06 14:44:16 dirkjaeckel: am I clear? should I try and re-frase myself? Jan 06 14:44:30 yep, looks like it. No hope with xml so far. Jan 06 14:44:40 im stuck... Jan 06 14:45:37 devslash: updating Jan 06 14:45:38 thepoosh: I think I understand your question. Jan 06 14:46:03 dirkjaeckel: Thanks a lot, it worked like a charm! :) Jan 06 14:46:20 thepoosh: usually you get a token that you send in every request. Jan 06 14:46:21 I think my implementation is bad Jan 06 14:46:32 ? Jan 06 14:46:34 asperon: ? Jan 06 14:46:35 I have a cookie I need to send Jan 06 14:46:35 napster: IIRC there is a null pointer lurking in that code Jan 06 14:46:47 I see Jan 06 14:46:48 but I think my manager is flawed Jan 06 14:46:48 napster: let me check how I modified it Jan 06 14:46:52 devslash: i am trying to update an existing app when i get the error message Jan 06 14:47:00 I get all sorts of login required from my server Jan 06 14:47:01 probably I can, if you are busy Jan 06 14:47:10 meaning I have a bad implementation Jan 06 14:47:13 oh. did you deactivate the previous apk ? Jan 06 14:47:19 of using DefaultHttpClient Jan 06 14:47:32 devslash: no, i tried to unpublish the app but that didn't help Jan 06 14:47:49 thing is i am adding in app payment and i need to upload it to test that it works before releasing it Jan 06 14:48:18 napster: sometime getDrawable() is null. Jan 06 14:48:50 ok Jan 06 14:49:04 napster: This is my modified version: https://github.com/biafra23/AmDroid/blob/master/AmDroid/src/main/java/com/jaeckel/amenoid/util/AspectRatioImageView.java Jan 06 14:49:16 may be its when we don't set a source before loading it? Jan 06 14:49:50 napster: although you do not need to extend RemoteImageView Jan 06 14:50:14 ok, just using the onMeasure for now Jan 06 14:50:18 that should work Jan 06 14:51:17 thepoosh: did you try setting the session cookie by hand? As in adding the http-header Jan 06 14:52:18 thepoosh: What API-Versions do you need to support? Google recommends using URLConnection on newer Android versions. Maybe that is an option for you Jan 06 14:53:16 thepoosh: httpclient in android is known to be buggy. You could also use a newer httpclient version. I do that in one of my projects. Jan 06 14:53:55 i tried to deactive the old one, still same error Jan 06 14:54:04 can't upload using the old or the new interface Jan 06 14:54:13 thepoosh: I use this: https://code.google.com/p/httpclientandroidlib/ Jan 06 14:54:17 this is what I use now Jan 06 14:54:18 http://pastie.org/private/l73ws5zqwsbvkyxyvta5da Jan 06 14:54:21 partial Jan 06 14:56:08 afaik HttpClient 4.0beta2 isn't only broken, it's also API incompatible with the final 4.0 version Jan 06 14:56:26 thepoosh: can you take a look at what you really send to the server? Either log it or have a proxy in between? Jan 06 14:56:33 consisting of an API that's half-3.x, half-4.x Jan 06 14:56:43 Maurits_: yeah. it is a mess Jan 06 14:57:05 dirkjaeckel: I use API-ver 8-17 Jan 06 14:57:17 *support Jan 06 14:57:31 now i managed to get it to upload in the old interface, but that doesn't allow me to activet in app payment stuff, if i remove it i still can't upload in the new gui Jan 06 14:58:33 and now the new interface says "upload failed" instead of the old message Jan 06 14:58:41 dirkjaeckel: I guess they could solve it by including both versions of the library and selecting one based on targetApi Jan 06 14:59:09 I mean, they should keep this as an exception, but it wouldn't be too bad Jan 06 14:59:28 or wait, that won't work on older versions of course Jan 06 14:59:36 Maurits_: httpclientandroidlib is repackaged version. I nay use that. I do not use the httpclient that comes with android Jan 06 14:59:43 ups Jan 06 14:59:56 yeah, how big is that though? Jan 06 15:00:20 dirkjaeckel: do you think using this as a singleton will not cause problems? Jan 06 15:00:58 thepoosh: you can try that. But try looking at what is going over the "wire" anyway Jan 06 15:01:24 is there a way android:inputType="numberPassword" to work ? Jan 06 15:01:27 is there a way to intercept the outgoing requests on an Android device?!?! Jan 06 15:02:10 URLConnection is also a mess since it doesn't support much beyond doing basic http requests Jan 06 15:02:59 thepoosh: on Android < 4.0 you can only set a proxy for APNs. On Android >= 4.0 you can set a proxy for wifi connections also. I don't know about cdma-data. Do they use APNs? Jan 06 15:03:15 hmmm Jan 06 15:03:18 idk Jan 06 15:04:45 dirkjaeckel: the jar you gave here uses the same client I use Jan 06 15:04:54 **DefaultHttpClient** Jan 06 15:05:49 thepoosh: yes. but it is a newer version. With different bugs Jan 06 15:06:00 :-) Jan 06 15:06:03 and a different API Jan 06 15:06:16 Java should have made classes versioned ;) Jan 06 15:06:20 Maurits_: slightly. not as different as URLConnection Jan 06 15:06:41 Maurits_: for me it was a drop in IIRC Jan 06 15:06:43 well, it depends, the cookie manager stuff is completely different Jan 06 15:07:13 3.x vs 4.x API Jan 06 15:08:15 that's kind of a problem google faces though, once they include some external library they're pretty much stuck with it Jan 06 15:08:37 imo they should've just fixed their version of httpclient by backporting fixes Jan 06 15:08:40 thepoosh: you need to find out, what you are really sending to the server _before_ you change anything Jan 06 15:09:37 Maurits_: same problem with bouncycastle. They left out the pgp-stuff so I had to use a repackaged version. Jan 06 15:10:12 thepoosh: I think it is possible to turn on "wire"-debugging in httpclient Jan 06 15:10:36 thepoosh: with that you can see what is send and what is received. Jan 06 15:11:14 thepoosh: this will be useful later on. trust me Jan 06 15:11:35 dirkjaeckel: this is a problem they will have to tackle some day though Jan 06 15:11:56 dirkjaeckel: since it also applies to java itself Jan 06 15:12:16 I mean, you can tie yourself to the java libraries, but eventually people will start wanting java 8 Jan 06 15:12:26 and the standard library improvements it brings Jan 06 15:12:27 dirkjaeckel: I think I'll try using HttpUrlConnection Jan 06 15:13:31 you need some mechanism by which you have versioned stuff and have it select either based on minSdk, which is the easy solution Jan 06 15:14:01 or targetSdk, but then you need to provide the targetSdk versions of libraries in the apk for older versions Jan 06 15:15:27 I think it should be bound to targetSDKVersion. Since that is the already used mechanism to disable backwards compatibility Jan 06 15:15:56 OTOH: Maybe Google should not bundle that much. Jan 06 15:17:05 Maybe thy could modularize classes.dex and have certain libs only once for ever apt that brings them Jan 06 15:18:32 when gradle is the build tool maybe Google will be hosting a gradle (aka maven-)repository Jan 06 15:19:35 s/apt/apk/ Jan 06 15:35:07 how can I open a xml file with the default app of the device in my app? Jan 06 15:37:08 zhangxaochen look at ACTION_VIEW Jan 06 15:37:19 and 'choosers' Jan 06 15:39:35 Is there an easier way to specify a specific style for API level >= 11 instead of created a "values-vxx" folder and a styles.xml for each api level >= 11? Jan 06 15:40:04 only make it for 11, higher api levels will take the 11 Jan 06 15:40:33 xorgate: ahh Jan 06 15:40:40 xorgate: i did not know that Jan 06 15:41:01 like how if layout-land is not there, it will just use layout Jan 06 15:41:46 xorgate☞ i tried like this: http://codepad.org/EutLm0r4, but got E/AndroidRuntime(2843): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///data/data/com.zhangxaochen.huaweiproj/huawei.xml typ=application/xml } Jan 06 15:42:39 zhangxaochen: looks like you didn't specify an Activity to receive the intent... Jan 06 15:43:54 zhangxaochen also try context.startActivity(Intent.createChooser Jan 06 15:44:29 alexfu, yes but i don't know how to fix it, since there is no activity i want to jump to Jan 06 15:45:40 could be your device does not have an app installed that wants xml files Jan 06 15:47:03 I got a byte[] of size 640093. When I create "new String(byteArray)" it gets very short. I used streaming as seen on http://pastebin.com/JHeHgkiY and the size is now 615179. I am still missing bytes. Where do they go? :) Jan 06 15:47:16 I know I didn't eat them my self..... Jan 06 15:48:06 ok this is a classic question http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android Jan 06 15:48:21 where should i put a singleton like a webservice class for example? Jan 06 15:48:31 or cache? Jan 06 15:48:36 zhangxaochen: ah I see.. I thought the Context.sendBroadcast() was used for that. Jan 06 15:48:51 hello I have created a base activity class to handle my menu. I have one dialog box which creates a dialog with two buttons. But when I press one of the buttons it doesn't react in my onclick listener. Any idea's? Jan 06 15:49:01 zhangxaochen: do you have an XML viewer? Jan 06 15:49:02 I would like to test the behavior of onRestoreInstanceState() on my application, can I just tell Android to kill the application in Settings or this there a more convenient way? Jan 06 15:49:34 Kleggas probably it thinks you are using some unicode where chars can be >1 byte Jan 06 15:49:39 alexfu, i'm not sure, i usually view it with R.E.explorer Jan 06 15:50:17 (forgot to add the source) hello I have created a base activity class to handle my menu. I have one dialog box which creates a dialog with two buttons. But when I press one of the buttons it doesn't react in my onclick listener. Any idea's? here is the source: http://pastebin.com/snfm9vtc Jan 06 15:51:46 zhangxaochen: I would install an XML reader/viewer Jan 06 15:52:00 xorgate: I guessed so.... its still the image array. I found out it cuts it whenever I make a string out of it, from 640093 to 102 length when string... So my problem was not the socket but how strings are handling (or not handling) new String/byte[]).... Jan 06 15:52:31 xorgate: and base64 had same problem :) Jan 06 15:52:33 Kleggas i am not surprised Jan 06 15:52:42 why use strings at all? Jan 06 15:52:46 jigal: which button doesnt work Jan 06 15:52:48 it's not string data Jan 06 15:53:00 xorgate: it is, for my server. Its written in python :( Jan 06 15:53:05 alexfu, both not Jan 06 15:53:07 xorgate: I need it as a string :D Jan 06 15:53:34 alexfu, the buttons of the dialogbox Jan 06 15:53:55 Kleggas it's not like python only has string datatype Jan 06 15:54:01 xorgate, the createChooser works, but i got leaked IntentReceiver http://codepad.org/0pdlpwv6 , how to fix that? Jan 06 15:55:18 zhangxaochen this sounds like a new problem? http://stackoverflow.com/questions/9781769/activity-has-leaked-intentreceiver Jan 06 15:56:20 i'll read that, thx. Jan 06 15:56:51 alexfu, how to use that sendBroadcast u mentioned? i tried sendBroadcast(intent); and nothing happened Jan 06 15:56:54 xorgate: true though. "data = self.client.recv(self.size)" does however treat it as a string written, but I could force it reading it as bytes. Will try such a solution Jan 06 15:58:06 alexfu forget it I found out what the prob. is Jan 06 15:58:22 otherwise maybe write a string->binarystring method "01101011010101" etc Jan 06 15:58:27 jigal: what was thr problem. Jan 06 16:00:01 alexfu the problem was on line 34. after the alertdialog has been launched it started immediateley a new activity. So the onClicklistener wasn't listening anymore to these activities. Have to find out now how i can get which buttons is pressed. Jan 06 16:00:47 jigal: ah, i didnt see that Jan 06 16:01:59 i just undid my last change which was the addition of the new intent. But do you know how i can find out which button was pressed? Jan 06 16:10:05 alexfu ^^ Jan 06 16:14:16 jigal: what do mean? Jan 06 16:15:06 jigal: you have a listener for both positive and negative buttons. so by that means you should know which one you clicked Jan 06 16:15:31 alexfu I want to start a new intent when the ok button is pressed, but the system doesn't let me start a new intent Jan 06 16:16:22 jigal: put your startIntent() code inside the positive onclicklistener Jan 06 16:18:15 alexfu, when i use this code: startIntent(new Intent(this, MainActitivy.class)); it gives my a Lint errors The constructor Intent(new DialogInterface.OnClickListener(){}, Class) is undefined Jan 06 16:18:16 - The method startIntent(Intent) is undefined for the type new DialogInterface.OnClickListener(){} Jan 06 16:19:00 jigal: notice that you use "this" keyword. Jan 06 16:19:14 jigal: inside the context of DialogInterface Jan 06 16:19:38 Anyone have a U23GT Tablet with rk3066 chip And can help me root it? Jan 06 16:19:53 you want the activity, not the DialogInterface Jan 06 16:22:53 alexfu, so how would i get the activity in stead of the dialog ? Jan 06 16:23:48 alexfu, this also doesn't work startIntent(new Intent(BaseActivity.class, MainActitivy.class)); Jan 06 16:24:49 use BaseActivity.this Jan 06 16:27:45 fixed it startActivity(new Intent(BaseActivity.this, MainActivity.class)); Jan 06 16:46:11 Hi, can someone tell me if there is a way how to create a background gradient in XML ? Jan 06 16:47:39 gradientdrawable Jan 06 16:49:42 what happens if you try to sens sms on a tablet without phone capabilities ? Jan 06 16:49:55 it won't work Jan 06 16:50:10 i guessed that lol Jan 06 16:50:27 but how ? Jan 06 16:50:57 and would it be possible to intercept those calls to forward to a phone connected to bluetooth ? Jan 06 16:52:01 http://developer.android.com/reference/android/telephony/SmsManager.html#sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent) Jan 06 16:52:19 or rather 2 down Jan 06 16:52:23 sentIntent Jan 06 16:52:57 Hi guys! Has anyone tried this online course or recommend it? http://www.udemy.com/mastering-android-programming/ Jan 06 16:53:28 GreenTuxer i'm watching that vid.. audio already sucks Jan 06 16:54:39 i think i need to really understand all those intents Jan 06 16:54:58 that's bad... and the course itself, is it good enough to pay for it? Jan 06 16:56:27 It seems unprofessional to be honest Jan 06 16:56:33 a screencast of a powerpoint presentation Jan 06 16:56:39 That is not even in presentation mode Jan 06 16:57:45 sonOfRa: and it is not uptodate Jan 06 16:59:18 there is enough documentation on internet, i doubt you need to pay for courses Jan 06 16:59:33 unless you are really in hurry to learn Jan 06 16:59:46 the wasiest way is using the ADT bundled eclipse version that Google offers here: http://developer.android.com/sdk/index.html Jan 06 17:00:04 easiest way even Jan 06 17:00:30 i really don't live how android is tied to google services :( Jan 06 17:00:31 GreenTuxer, definitely can't recommend that course. The Hello World class already has factual errors Jan 06 17:00:44 :s Jan 06 17:00:46 thanks Jan 06 17:01:26 edcba: you can use Android devices without a google account. what do you mean by tied? Jan 06 17:01:38 yes you "can" Jan 06 17:02:00 but the UI doesn't help you Jan 06 17:03:00 google play is almost forced Jan 06 17:03:15 edcba: you could run a " Jan 06 17:03:31 edcba: you could run an AOSP rom without google apps, throw the amazon app store on or something Jan 06 17:04:03 Cyanogenmod comes also without the google apps Jan 06 17:04:08 yeah using another store is ok Jan 06 17:04:34 but i mean the stock rom is really too much unsusable without google account Jan 06 17:04:42 If you do not enter a valid google account you cannot use the play store accidentally. Jan 06 17:05:13 edcba: what is unusable, exactly? Jan 06 17:05:27 can't you make phone calls? Jan 06 17:05:30 but as soon as you use a google account you easily can send a lot of data to google accidentally Jan 06 17:05:50 dirkjaeckel: no i have a tablet lol Jan 06 17:06:26 a lot of apps are only on google play Jan 06 17:06:35 edcba: that is indeed a problem. So you are missing control what google does when you log in? Jan 06 17:06:57 not really google's fault but that sucks a bit Jan 06 17:07:28 yes what really is missing is control on what apps do Jan 06 17:07:36 edcba: sou could create an account that you only use for the play store. Jan 06 17:07:45 you even Jan 06 17:07:48 what i did Jan 06 17:08:04 but as soon as you create that it seems all apps can access it Jan 06 17:08:13 at least google ones Jan 06 17:08:22 even if they didn't require it before Jan 06 17:08:34 what do you mean by "all apps can access it" Jan 06 17:08:35 ? Jan 06 17:08:50 maps would sync to it Jan 06 17:08:51 there are sync services and permissions to prevent that Jan 06 17:09:01 even if i wanted the account only for play Jan 06 17:09:13 ok. I see your problem Jan 06 17:10:50 edcba: have a look at the permissions that Maps requests Jan 06 17:11:13 If you do not like them, you have to unintsall or deactivate it Jan 06 17:11:35 yes indeed Jan 06 17:12:11 it looks like it's a lost cause anyway Jan 06 17:12:38 edcba: thetas how android works. You are in control via the permissions system. Jan 06 17:12:57 permissions are not fine grained enough Jan 06 17:13:29 !!! edcba ici !!! Jan 06 17:13:40 i know you ? Jan 06 17:13:52 even physically ;-) Jan 06 17:14:05 damn lol Jan 06 17:14:33 I think it comes down to "if you're going to use google apps and services, things on android are going to interface with google". Jan 06 17:14:39 <- hal ;-) Jan 06 17:14:45 ok Jan 06 17:15:34 adq got a asus tf700t at xmas so i'm trying to learn android dev :) Jan 06 17:15:49 if you don't hate java so much, you might have great fun :) Jan 06 17:16:21 i'm more used to c# Jan 06 17:20:00 hey Jan 06 17:20:17 in the android xml file, when you have something like is this referencing a java package/activity named authorwjf.GameBoard? Jan 06 17:28:28 I;m working with gestures. Is there a built-in library of gestures I can use for my app, or do I need to use raw gestures that I create? Jan 06 17:29:24 google GestureDetector Jan 06 17:29:32 and ScaleGestureDetector Jan 06 17:30:58 Thanks Pfhoenix Jan 06 17:35:15 My emulator takes forever to launch... Jan 06 17:35:37 have you tried connecting a real device? it takes like 5 seconds... Jan 06 17:38:06 launch is once Jan 06 17:40:05 just installed adt v21.0.1 on osx 10.7.4 and I'm trying to click the "Build your first app" link from the Welcome screen only nothing happens … what have I missed? Jan 06 17:41:02 I also installed the "Documentation for Android SDK" in the Android SDK Manager in case that had something to do with it … still nothing Jan 06 17:43:46 you missed the part where it said "don't use OSX" Jan 06 17:44:32 valgrind: did you ask me? i dont have an android påhone. this is just for a school exercise so i only need the emulato Jan 06 17:44:34 r Jan 06 17:45:48 hey, why do I get different behaviour by using new HttpPost("192.168.1.67") and String sName = "192.168.1.67"; new HttpPost(sName); ? Jan 06 17:47:12 Pfhoenix: how would i implement drag based panning and pinch zoom using GestureDetector?, i cant think of how the code would know which mode to use Jan 06 17:49:18 Pfhoenix: hmmm, i think scroll is within GestureDetector, i'll have to try that Jan 06 17:50:21 qasd, Jan 06 17:50:29 i use intel haxm Jan 06 17:50:34 and intel cpu's for the emulator Jan 06 17:50:37 shit is fast \ Jan 06 17:51:49 is there some way for a dialogfragment to call methods in the fragment that called it? in cases where a dialogfragment is created from a fragment, not an activity? Jan 06 17:51:49 http://hpaste.org/80380 <- ok so there were some issues. im using win8 btw Jan 06 17:52:42 i can getActivity() to get the activity that the dialogfragment was created by, but what if a dialogfragment is created from a fragment? Jan 06 17:54:27 in the android xml file, when you have something like is this referencing a java package/activity named authorwjf.GameBoard? Jan 06 17:55:13 dohh, just forgot the http:// in front of the number string Jan 06 17:55:35 qasd Jan 06 17:55:40 in your androidmanifest file Jan 06 17:55:56 make sure you don't have like hardware accel and stuff turned on Jan 06 17:58:17 doh, getParentFragment . sorry for the noise Jan 06 18:04:59 What's the difference between GestureDetector and GestureOverlayView? I was trying to use them both, but it wouldn't work right. Jan 06 18:14:49 in the android xml file, when you have something like is this referencing a java package/activity named authorwjf.GameBoard? Jan 06 18:15:13 the last one is the classname Jan 06 18:15:30 the package is com.authorwjf Jan 06 18:15:47 you define a custom view GameBoard Jan 06 18:16:13 i am trying to use someone elses code with my code just to practice the use of canvas Jan 06 18:16:24 and my java file I put it in is Tab2.java Jan 06 18:16:34 in edu.rypri4418.lab5 Jan 06 18:16:48 so my package is edu.rypri4418.lab5 i believe Jan 06 18:31:46 Hi guys. I have a ListActivity with dynamic items, which only has text and a checkbox in each one. How can I do to, when I check/uncheck a checkbox, the textview on that item adds/removes line-through on the text? I need to dynamically get the view, right? But how? Sorry guys, I'm still a rookie... Thanks :) Jan 06 18:33:16 Failed to create Context 0x3005 Jan 06 18:40:47 does the adb service really have to run as root? I created the appropriate rules file, but unless I start the adb server as root, I get the ???? no permission result when running adb devices. Jan 06 18:42:49 gnac: I had the same issue yesterday. I was thinking I could get around it by fiddling the udev rules Jan 06 18:43:05 But i eventually ended up doing wverything as root Jan 06 18:43:17 Which works for the problem you are having Jan 06 18:44:48 http://hpaste.org/80382 <- Can someone help me? Im have googled the errors but no suggestions ehlp. Jan 06 18:46:03 itissid: Yeah, I foud this link that said the same thing: http://stackoverflow.com/questions/3127539/ubuntu-android-device-debug/3129903#3129903 Jan 06 18:46:15 but I cant remember ever having to start adb server as root before. Jan 06 18:46:38 I'm compiling different branches other than master and continuously run into problems that have already been fixed in the master branch. Is it possible to pull these patches into a specific branch, such that I don't have to manually fix the problems? What is the best practice others here have for this problem? Jan 06 18:46:55 Perhaps on this particular install, I didn't install the debug tools as root to begin with so the service never got installed. Jan 06 18:50:41 itissid: Also, I'm sure you don't have/want to run all of your adb commands as root. But it appears on this setup that at least the adb server has to start as root. Jan 06 18:53:47 gnac: I think adb needs to have root permission to access the usb device set up in udev precisely because udev needs that. you can use sudo.. Jan 06 18:54:28 But i think there must be a way to say. Hey give this user X/group Y permision to access this device. I tried it yesterday.. Didnt work.. Jan 06 18:57:37 Hey, I am a complete noob with android. I am trying to compile an open source app, here is what I get after "ant release": "/usr/bin/android-sdk-linux/tools/ant/build.xml:647: The following error occurred while executing this line: /usr/bin/android-sdk-linux/tools/ant/build.xml:688: null returned: 1". Help needed! Jan 06 19:00:00 itissid: yeah, thats the reason for the udev rules. It works on all of my other dev computers, I just cant get it working on this latest one. Jan 06 19:00:33 I noticed that the phone in question, running cyanogenmod, now reports itself as a different device. I'm heading over there to see if they have any advice. Jan 06 19:05:18 itissid: I think I fixed it. I added three lines, one modified from http://developer.android.com/tools/device.html and the other two I had in other system udev rules. Not sure which one works, or if its all three. Note the importance of the correct vendor ID. Jan 06 19:06:17 http://paste.opensuse.org/59877968 even though I'm using a samsung, the CM mod reports itself as a google device. Jan 06 19:10:25 Axio: what program are you trying to compile? I'm not familiar with that error specifically, but it may be something specific to that app. Jan 06 19:12:07 itissid: turns out this is the important line: SUBSYSTEM=="usb",ATTR{idVendor}=="18d1",MODE="0666" Jan 06 19:12:36 If you want to restrict adb on this device to a specific group, you can use add the GROUP="users" Jan 06 19:12:48 Of course your vendor ID will have to be correct. Jan 06 19:18:38 Newbie Question. I'm creating an AVD for a DroidX, which is listed as a 4.3" FWVGA. The device options in the Create AVD Dialog only lists 3.7" FWVGA and 5.4' FWVGA as options. Should I choose the smaller screen, or is there a way to install more options in the AVD Manager dialog? Jan 06 19:23:27 you can create definitions under the Device Definitions tabs (have to create one first, then create an AVD to use it) Jan 06 19:24:13 however 3.7" FWVGA is HDPI, which the Droid X also is considered. so aside from physical size, everything will be the same Jan 06 19:27:34 Thanks Kevinb Jan 06 19:50:38 gnac: I am using "ant", I don't know if I correctly answer you. Here is the complete log: http://pastebin.com/PQz7TzBf Jan 06 19:52:58 Axio: it looks like the null returned is just a pointer to the higher error. On line 48 of the past, you can see that there was an error tryng to find the Theme.Shelock.light. This is followed by numerouse other resource isses. Jan 06 19:53:25 I would suspect that there is an incorrect path setup in the build file. This likely isn't an android issue. Jan 06 19:54:14 I would start by finding out where the missing resources are, and then ensure that the themes.xml file is referencing them correctly. Jan 06 19:55:04 gnac: thanks, I will dig into it Jan 06 19:58:57 your welcome, good luck Jan 06 20:12:07 Hi guys. I have a ListActivity with dynamic items, which only has text and a checkbox in each one. How can I do to, when I check/uncheck a checkbox, the textview on that item adds/removes line-through on the text? I need to dynamically get the view, right? But how? Sorry guys, I'm still a rookie... Thanks a lot :) Jan 06 20:12:56 a custom adapter Jan 06 20:13:07 derived from baseadapter Jan 06 20:17:26 is there a way to notify users that my app has changed package names? Jan 06 20:21:05 there's Android dev on Sublime :D Jan 06 20:21:07 yay Jan 06 20:22:17 gnac: I didn't correctly referenced a library. I don't fully understand what I did, but it worked. Thanks! It builds with "ant debug", now I need to figure how to sign the app, but it seems there is a lot of doc about that Jan 06 20:41:00 hello Jan 06 20:41:22 any idea how to prevent android bulk transfer data drops? http://codepad.org/P0JJ9x0m Jan 06 20:53:17 Guys working on app which works with calendar data. I need to know if certain day is weekend, public holiday is something built in sqllite or android it self? Jan 06 21:01:20 I would doubt it, because public holidays differ a LOT from country to country Jan 06 21:01:55 Sometimes even from state to state in a certain country Jan 06 21:02:02 it's not even built into google calendar - holidays are usually an alternate calendar you can add Jan 06 21:04:18 yeah so how would you do it? should I create database table for this info? Jan 06 21:04:51 because not only i need holidays but also few city specifi day. for example on one day , there is marathon in our town and my app need to be aware of that Jan 06 21:06:59 Then you will manually have to put that into your database. Jan 06 22:21:09 i have the same problem http://stackoverflow.com/questions/9108548/android-usb-host-bulktransfer-is-losing-data Jan 06 22:21:13 no solutions so far Jan 06 22:21:15 any ideas? Jan 06 22:24:20 quit Jan 06 22:28:22 i get 99.7% good data Jan 06 22:30:24 I'm trying to make models backed by a rest api and I'm trying to use an IntentService, but its not very clean to pass all responses to the activity through onReceiveResult Jan 06 22:31:05 id like to call a method and maybe pass in a specific method to run when the response is retrieved Jan 06 22:32:01 any ideas? Jan 06 23:32:59 Hello guys Jan 06 23:33:25 Its possible to replace canvas while onDraw(canvas) is called in view? Jan 06 23:33:33 sexist comment Jan 06 23:33:42 what is there are gals here too? ;-) Jan 06 23:34:02 Hello guys and gals!* Jan 06 23:34:11 Sorry Jan 06 23:34:30 Maybe there is any gal (anyway I doubt it :x) Jan 06 23:34:31 So Jan 06 23:34:39 I need to do something like Jan 06 23:35:09 protected void onDraw(Canvas canvas) { canv2 = new Canvas(); canvas = canv2; } Jan 06 23:35:14 But it doesnt seems to work Jan 06 23:35:44 I mean drawed canvas still sems to look like old canvas instead new one... Jan 06 23:36:30 Why I want to make something like that? Because I want to have like 10 different canvases and replace them if theres need of it Jan 06 23:36:51 Lets say I have a lot of procedurally painted Da Vinci paitings on them Jan 06 23:36:53 :) Jan 06 23:37:04 Maybe there is another way to achieve that Jan 06 23:43:46 umm Jan 06 23:43:55 its sunday not many devs are active Jan 06 23:44:03 and your code is a complete mess Jan 06 23:44:14 read a java book first Jan 06 23:44:49 you're changing your arguments into a canvas -.- /facepalm Jan 06 23:47:53 hi Jan 06 23:47:56 what do i need to update a widget after setting a new image to an imagebutton using a remoteview? the image doesnt get updated... Jan 06 23:48:20 i tried setting a pending intent and calling updateAppWidget: http://nopaste.info/cb11a2eace.html Jan 06 23:48:42 (i am not sure whether i even set the image correctly) Jan 06 23:49:25 (currently coding on android version 2.3.6) Jan 06 23:55:01 kaikai: its not exactly my arguments, thats arguments forced by SurfaceView for that method Jan 06 23:55:08 ;) Jan 06 23:58:45 yes, thats surfaceviews arguments which you're trying to change.... Jan 06 23:59:10 it's still facepalm worthy even more so that you don't know what you're doing Jan 07 00:01:34 hint: that canvas argument is all you need Jan 07 00:02:31 If I understood correctly how it works then all I need is to replace that canvas with my own then do SurfaceView.postInvalidate() ;) Jan 07 00:02:48 and im telling you that you dont understand how it works Jan 07 00:04:03 kaikai: Is it me or is he changing the value of a parameter passed into the method and expecting that to do something? Jan 07 00:04:11 trying to change*** Jan 07 00:04:30 2 crucial things are necessary to accomplish what you need, 1. surfaceview's canvas and not your own created canvas. 2. your own thread Jan 07 00:04:45 anthaas: hes trying to create 10 different canvases so he can show different pictures Jan 07 00:05:42 he doesn't know what surfaceview's canvas is for and believes that by changing the argument surfaceview gives him in his innermethod he is also changing the surfaceview's member canvas Jan 07 00:06:03 but basically what you said Jan 07 00:06:25 kkszysiu needs a java book ;p Jan 07 00:07:24 kkszysiu: for what you're trying to accomplish though, referring to the da vinci painting, you can simply use xml and an activity if surfaceview is too advanced for you right now Jan 07 00:08:18 No, I need SurfaceView in that case Jan 07 00:08:46 kaikai: Hahaha, evidently. Jan 07 00:09:27 whatever floats your boat man, just trying to help Jan 07 00:21:20 amandac: did you figure out seek roulette by yourself? Jan 07 00:21:32 start it* Jan 07 00:22:29 kaikai: read it on the internet sometime Jan 07 00:22:38 or maybe someone in IRC, I forget Jan 07 00:25:18 hi. Is there any change of changing the code and rebuild the built-in applications like stagefright on android? Jan 07 00:27:08 any idea? Jan 07 00:27:25 this has really been bugging me :-/ Jan 07 00:28:09 if you have the code, you can change it, but it's not 'easy' and not really a topic for discussion in this channel Jan 07 00:29:27 bankai_, Having the code is the problem. I thought that I could build all the operating system in my ubuntu (I would be building stagefright as well since it is OS build int) Jan 07 00:29:32 build in* Jan 07 00:29:38 built* in Jan 07 00:30:09 might be best asking in #android-root Jan 07 00:30:22 bankai_, ok Jan 07 00:32:49 bankai_, and thanks :) Jan 07 00:41:58 I have a webview and when links are clicked there is a slight flicker to white between pages, is there a way to either prevent this flicker or change the color of it? Jan 07 00:44:41 also, setting the background color of the web view doesn't seem to do anything Jan 07 00:50:54 Is this racking up memory by doing this? myBitmap = BitmapFactory.decodeResource(......); with several lines doing the same thing? Or should I initiate one BitmapFactory, use it for all "myBitmap"'s and then release the BitmapFactory? Jan 07 00:58:11 Guys working on app which works with calendar data. I need to know if certain day is weekend, public holiday is something built in sqllite or android it self? Jan 07 01:03:39 Trudko, joda time Jan 07 01:03:46 pierpark: i'm pretty sure it doesnt but you can always use a memory checker to check Jan 07 01:03:53 its a librry i think it will do some of that, holiday probably not Jan 07 01:04:05 for holiday you might need some kind of web service, or other database Jan 07 01:04:22 but in tersm of weekdays, etc, it shoudl be great for that. calnedrical claculations Jan 07 01:04:41 you can suck that kinda information down from google ( holidays etc. ). probably in the calendar API or though the ical feeds Jan 07 01:05:50 pierpark: http://stackoverflow.com/questions/3170691/how-to-get-current-memory-usage-in-android Jan 07 01:13:34 does anyone know in the android (4) settings, the wifi and bluetooth "on/off" button, how can you toggle it using a keyboard? Jan 07 01:15:28 enter doesn't work, left and right navigates to other items Jan 07 01:20:32 kaikai: thanks! Jan 07 01:23:23 k0nichiwa: thx will check for that knowing about weekends would be nice Jan 07 01:32:01 pigeon try space bar Jan 07 01:33:08 space bar behaves like page down Jan 07 01:36:49 i want to change the package name for one of my apps but before I do that i want to let existing users know about the change since Google treats the app as a new app when the package name changes. whats the best way to let my apps' users know about the change ? Jan 07 01:41:01 devslash do you really need to do that? you could push a new update pointing them to the new app in playstore Jan 07 01:41:28 do i need to do what Jan 07 01:43:25 devslash: do you really need to change the package name Jan 07 01:43:36 yes Jan 07 01:47:28 devslash: would you mind explaining why? Jan 07 01:47:41 not really... Jan 07 01:48:10 lol k, either ways what xorgate said is correct Jan 07 01:48:21 its best to direct your users to your new app Jan 07 01:48:41 and allow them to continue using the current app as they wish, just notify them that itll no longer be updated or something Jan 07 02:25:31 yay Jan 07 02:25:37 progress on this fscking bug.... Jan 07 02:28:38 i hate fscking bugs Jan 07 02:32:43 stop writing them Jan 07 02:33:44 fscking bugs are part of the fun Jan 07 02:39:08 hey guys. i just finished writing some javascript code that will hide all unpublished apps from appearing when you are logged into the console. Jan 07 02:39:26 i dunno about you guys but it bugged me to see all those unpublished apps with no way to hide them Jan 07 02:48:45 I am having an odd issue, I want to use a webclient to handle a pdf, but webviewclient does not handle pdfs. I am getting the document from a secure connection on a website so I can not send to google docs. Any ideas? Jan 07 02:48:47 my god, fragments seem like they make everything 10 times more complicated Jan 07 02:49:57 i love how if u kill an actiivty anroid relaunches the one below so the user may not realize u crashed Jan 07 02:50:02 i mean crash an activity Jan 07 02:50:27 i've actually been trying to wrap my brain around fragments for about 4 months now. stil failing. Jan 07 02:51:24 wordToDaBird: you can check if the device has a pdf reader, and if it does open it in that reader Jan 07 02:51:49 yea, that's the problem... Client doesn't want the document locally stored. Jan 07 02:51:51 bah.... Jan 07 02:52:10 I am going to be really pissed if I have to write a fucking pdf viewer. Jan 07 02:52:31 tplaner_: ty though Jan 07 02:52:35 so if i create a dialogfragment from another fragment, does that dialog fragment have the fragment that created it as its parent? Jan 07 02:53:03 wordToDaBird: thats difficult, because no matter what it will be downloaded to view, even if you delete it after Jan 07 02:53:11 in other words, from inside a diaogfragment, say, its onclick handler, how can i get the fragment that CREATED it? Jan 07 02:53:22 so that i can call back to it. Jan 07 02:53:40 tplaner_: yea but if it's in the view I control what happens to it. If I let it go to another application I lose all control. Jan 07 02:53:49 true Jan 07 02:53:57 without doing crazy stuff like creating custom interfaces with listeners Jan 07 02:55:08 I am going to have to run the use another application idea by the client. Because I really don't want to have to try and hackout a pdf viewer in a week or two. Would really kill the cool buzz I have had since working with this client. Jan 07 02:55:42 though then again, I could put that I've written a pdf viewer on my resume, which would be kind of cool Jan 07 02:56:48 pdf viewers are non-trivial Jan 07 02:57:10 muhoo, that's why I don't want to even begin to try to move towards it. Jan 07 02:57:11 there's some open source stuff like vudroid, libraries you could slap together tho Jan 07 02:57:37 I was looking up pdf-renderer and some other app, hadn't heard of vudroid Jan 07 02:58:04 wordToDaBird: http://code.google.com/p/apv/ Jan 07 02:58:19 http://code.google.com/p/apdfviewer/ too Jan 07 02:58:30 does it need to be PDF? Jan 07 02:58:52 speedevil it is coming across as a pdf, no choice but to view as. Jan 07 02:59:41 the library is http://www.mupdf.com/ . it's gpl. Jan 07 02:59:48 so your client would have to be ok with that. **** ENDING LOGGING AT Mon Jan 07 02:59:58 2013