**** BEGIN LOGGING AT Mon Jun 25 02:59:58 2012 Jun 25 03:06:55 how can i tell when my phone changes orientation without trapping onConfigurationChanged() ? Jun 25 03:07:18 your activity gets recreated Jun 25 03:07:20 why do you care? Jun 25 03:07:50 because i dont want my player to get reset to the starting position after a reload of the map just because they changed orientation Jun 25 03:08:12 set a flag in onSaveInstanceState Jun 25 03:08:26 err Jun 25 03:08:39 that might work Jun 25 03:10:25 ya that worked Jun 25 03:17:21 is code that is licensed with apache 2 free to use? Jun 25 03:18:30 if my app saves its instance state and is then killed outright that instance state is invalidated right? Jun 25 03:30:53 is it possible to control the look and location of a toast? Jun 25 03:33:16 kidna want the NPC's in this game to speak via a toast and it should be positioned over their head Jun 25 03:33:29 not gravity top/bottom etc but "specific location" Jun 25 03:33:41 don't use a toast Jun 25 03:33:46 that's not what they're for Jun 25 03:33:48 k use what? Jun 25 03:33:51 PopupWindow Jun 25 03:33:55 or even better Jun 25 03:33:59 draw something inside the game Jun 25 03:34:06 hmm yea Jun 25 03:34:38 why is drawing it myself better - that means i also have to undraw it instead of letting android do the work for me... Jun 25 03:34:45 android would probably do it better Jun 25 03:35:02 creating window is costly Jun 25 03:35:11 and there's no "undraw" Jun 25 03:35:14 you just stop drawing it :) Jun 25 03:35:20 heh Jun 25 03:35:39 well the "hey blah blah blah" bubble over the NPC has to go away after a second or 2 Jun 25 03:37:19 popup window also looks like its going to be a MAJOR pita to use Jun 25 03:37:36 will need to create layout info for each one at run time :/ Jun 25 03:37:39 blargh Jun 25 03:37:47 I think you are very very very lazy :) Jun 25 03:37:52 lol Jun 25 03:38:07 I can't imagine what the rest of the game must be like for you to write ^^ Jun 25 03:38:18 no i think it will just be easier to create my own popup class and display it as i see fit Jun 25 03:38:26 want to take a look? Jun 25 03:40:09 tho.. theoretically im not supposed to "distribute" this apk yet been as its debug signed :/ Jun 25 03:40:23 yea thats a point actually Jun 25 03:40:49 lets say this game was more advanced than it is and i want to have a closed beta. would google still get pissy if i "distribute" a debug apk? Jun 25 03:44:42 are you confusing google with apple? Jun 25 03:45:11 google says you should not distribute apk's that are signed with a debug key Jun 25 03:45:14 im sure i read that somewhere Jun 25 03:45:26 bad idea Jun 25 03:45:30 google doesn't care Jun 25 03:45:37 it's something you wouldn't do for release, but I don't think they'd actually care Jun 25 03:45:41 but market won't let you distribute a debug-key signed apk Jun 25 03:45:47 it's for you mostly Jun 25 03:45:49 aha Jun 25 03:45:49 you can do whatever you want Jun 25 03:46:02 because once users install the app with the debug certificate, they cannot install the release apk Jun 25 03:46:34 yea well this is not a game yet, just a tile engine with a nice line of sight algorithm and ONE town defined... no people, no mobs. no magic. nuttin but the world map and one town :) Jun 25 03:46:52 even if they uninstall the debug? wtf? Jun 25 03:47:41 if they uninstall the debug apk it's fine Jun 25 03:47:47 k phew Jun 25 04:23:14 Hey dudes. I'm trying to install adb, I installed the latest JDK, but in the adb installer doesnt detect it being installed Jun 25 04:23:35 Ive reinstalled the JDK and still stops me during adb installer. Jun 25 04:25:15 which OS ? Jun 25 04:25:24 hi, does anyone has the experience of using notebook as a hotspot ? i attempted to use wifi on my phone through my pc, but that doesn't work Jun 25 04:26:21 zhangxaochen: this is a dev channel, ask #android-root or #android-os or #android .... Jun 25 04:26:40 win7 x64 Jun 25 04:26:48 on winXP Jun 25 04:27:44 Atom[138]: erm, when you say "adb installer" do you mean "sdk installer"? Jun 25 04:27:52 or are you using some third-party repackaged adb? Jun 25 04:28:02 bankai_, i thought this has something to do with development, though when i use ddms to see the debug info , most of them i don't understand Jun 25 04:28:11 No i have the official sdk. My bad. Jun 25 04:28:37 zhangxaochen: what does ddms have to do with your laptop being a hotspot? Jun 25 04:29:47 i've set my pc following the tutorial on the network, and the phone could find the hotspot there. Jun 25 04:30:32 but when connecting, the phone always say disabled->obtaining ip address->remembered->disabled->... Jun 25 04:31:07 again, that's not a dev issue - #android for you Jun 25 04:31:27 o(╯□╰)o Jun 25 04:31:37 Atom[138]: this may be a *dumb* question... but you didn't install the JRE did you? :) Jun 25 04:31:56 i thought most of you has more experience with debugging Jun 25 04:32:23 not debugging windows networking Jun 25 04:46:29 ok well should I point java_home to java.exe in C:\Windows\System32? It recommends doing this and its still not working Jun 25 04:53:43 can i ask a question? - j/k :P Jun 25 04:54:55 hello Jun 25 04:55:16 yea! 2 days to register my nick! Jun 25 04:57:01 how long after an app is published does it take to show up in the market? i read only a few minutes but going directly to my app's page still brings a not found Jun 25 04:57:11 so Leeds your debugging? Jun 25 04:57:58 I updated a screenshot on my app today and it took about an hour to update Jun 25 04:58:07 l1quid: a few seconds/minutes, but it can take time for it to filter out to the public server Jun 25 04:58:11 cythes: er, what? Jun 25 04:58:40 you also might want to kill the market task and clear its cache Jun 25 04:58:53 ok thanks Jun 25 04:59:10 l1quid: what's the app? :) Jun 25 04:59:12 i was checking in my browser on the webstore, does that take longer to get updated? Jun 25 04:59:23 Leeds: You said "not debugging windows networking" to which I said "Oh so your debugging" joke being windows networking is full of bugz. Jun 25 04:59:44 l1quid: do you look for it using a specific device's browser? Jun 25 04:59:45 cythes: I wouldn't know... I haven't used Windows for anything except a bit of compatibility testing since 1998 Jun 25 04:59:56 Good man! :D Jun 25 04:59:59 I think O.o Jun 25 05:00:01 l1quid: it might turn out that some setting in the manifest prevents it from being seen... Jun 25 05:00:02 i was looking using my pc Jun 25 05:00:13 ok, then my comment does not apply Jun 25 05:00:23 l1quid: app name? Jun 25 05:00:38 it should be at https://play.google.com/store/apps/details?id=com.ftpowered.android.d3gold&hl=en Jun 25 05:00:42 "Diablo 3 Gold Farming Guide" Jun 25 05:00:50 oh, lord Jun 25 05:01:40 l1quid: did you activate the apk? Jun 25 05:01:45 and not only upload it? Jun 25 05:01:49 yup Jun 25 05:01:54 it shows published in the developer console Jun 25 05:03:28 ok, then just wait a little longer :D Jun 25 05:05:21 cool :) Jun 25 05:05:41 Why does android.test.mock.MockApplication Jun 25 05:05:42 exist? Jun 25 05:06:30 like.. is it useful for anything? Jun 25 05:19:22 After publishing my first app, it took like 20 hours before I was able to download it Jun 25 05:20:05 Before that it was on the google play, but play told me that I couldn't download it Jun 25 05:20:45 hmm Jun 25 05:23:49 l1quid: what is your developer name? Jun 25 05:24:02 and it might take about 10mins to show up on play Jun 25 05:25:15 Mintoris sent in pm Jun 25 05:25:30 thx Jun 25 05:25:31 sec Jun 25 05:27:25 ya cant find it Jun 25 05:27:49 hmm Jun 25 05:38:28 l1quid, I have that app already. It's nice. Don't know why others are having issue. Jun 25 05:38:47 what app? Jun 25 05:45:27 so the app shows in searches now but the direct link is still "not found" o_O Jun 25 05:45:47 Just wait :) Jun 25 05:47:55 i'm excited :P) Jun 25 05:58:36 Someone from my school wants to work on apps with me Jun 25 05:58:37 Cool Jun 25 05:58:48 However, this has kind of fallen apart with two other people before... Jun 25 05:58:50 was there a devoloper/android/google.com website thing that made android a slaptogether 5min programing project? Jun 25 05:59:41 jerry_l, not sure what you mean Jun 25 06:08:57 i bought a book for android game writing and the other book that i did not buy mentioned a www.google.com thing that looked like a user interface for building apps.. Jun 25 06:09:39 app inventor? Jun 25 06:09:49 jerry: ...you talking about the layout editor? Jun 25 06:14:22 i think it may be app invertor.. but having trouble finding it. Jun 25 06:15:18 app invertor? Jun 25 06:15:35 App Inventor, perhaps? http://www.appinventor.mit.edu/ Jun 25 06:16:17 thanks Sei Jun 25 06:18:25 looks like the GOOGLE " http://appinventor.googlelabs.com/about/ " is the one i was looking for that does not seem to work. Jun 25 06:23:42 Okay, so I'm dealing with a fun issue… evidently, epoch in CoreData on iOS means something different than epoch in java.util.Date. Jun 25 06:24:31 manchicken: the Java epoch is the Unix epoch, I would say Jun 25 06:24:59 I would have thought that SQLite would have been consistent. Jun 25 06:39:03 Jan 21, 2012 – Last year Google discontinued another intriguing, but not widely used product: App Inventor for Android. Jun 25 06:40:52 actually, they open sourced it and handed it (back) to MIT Jun 25 06:41:37 i haven't heard about it since Jun 25 06:41:47 sussman was the one who worked on it Jun 25 06:42:19 barely heard about it before - mainly in the context of people thinking they could make full apps with it, and discovering they were wrong Jun 25 06:43:56 oh, i guess it was abelson. Jun 25 06:48:42 if i wanted to use my 7" touch android 2.3.4 for database stuff should i use sql or tinydb? i am not to sure about what i have been reading. Jun 25 06:49:25 sqlite is the 'native' database on Android Jun 25 06:49:36 if you've got a 7" gingerbread tablet, presumably it's a craplet?? Jun 25 06:49:57 could be a nook tablet or something Jun 25 06:50:14 I have a nook tablet, it's actually very decent Jun 25 06:50:15 sqlite sounds like what i should start with? Jun 25 06:50:54 its a levano 7' tablet android 2.3.4 for 119.00 Jun 25 06:51:06 16gb interal storage Jun 25 06:51:21 nook 199.00 and fir 199.00 Jun 25 06:51:44 hehe it's pretty hard to search for "levano", google keeps correcting it to lenovo Jun 25 06:51:53 mine is called an "ideadpad A1" Jun 25 06:52:03 lol Jun 25 06:52:29 ahh heres the box "lenovo" Jun 25 06:52:54 a1-07 model name 2228 Jun 25 06:53:12 semi-craplet then Jun 25 06:53:46 ideopad tablet a1-07 black, model name 2228, made in china. Jun 25 06:54:07 -ideapad missed the "A" Jun 25 06:55:25 meh, everything is made in China Jun 25 06:55:29 Howdy. Anybody able to help with an eclipse-android problem? http://www.pasteall.org/33229 Jun 25 06:56:19 a lenovo 2.3.4 tablet might be pretty decent for dev if its stock Jun 25 06:56:24 easy question...I have a long file delimited with a comma, what's the easiest way to parse it? Jun 25 06:56:26 i have eclipse running and emulated the HELLO WORLD sample but have not sent it to my tablet yet. Jun 25 06:56:26 from what i've seen, dealing with databases is almost always an exercise in frustration and an exceedingly increasing investment in engineering time that nowhere justifies the very limited benefits Jun 25 06:56:27 for $119 Jun 25 06:56:46 serialize JSON to and from disk, skip all the shit APIs Jun 25 06:56:48 http://www.gizmodo.com.au/2012/06/this-is-googles-new-nexus-tablet-the-nexus-7/ Jun 25 06:56:55 I had everything working fine. Then today I opened up my workspace. My java files are fine in the browser, but the android manifest gives an error "NO editor descriptor for id..." Jun 25 06:56:56 I'd take the 4.1 tablet for $199 myself :) Jun 25 06:57:06 well to use yeah, but i don't have any GB devices Jun 25 06:57:12 i thought 119 was a good proce, i needed it now couldnt wait for shipping. Jun 25 06:57:14 for $119, a stock GB device would be nice Jun 25 06:57:43 GB? 16gigbyte. internal storage. Jun 25 06:57:54 gingerbread :P Jun 25 06:58:04 people still use gingerbread? really? :) Jun 25 06:58:13 its the new froyo Jun 25 06:58:23 funny cause it shows up as a internal SD card..... and has an external SD card slot.. Jun 25 06:58:24 froyo Jun 25 06:58:24 l Jun 25 06:58:26 lol Jun 25 06:58:35 at least the new gingerbread will be ICS and not HC Jun 25 06:58:44 it's amazing that even up to android 4.0, every version before the latest seems like such shity :) Jun 25 06:58:46 heh, fucking HC Jun 25 06:58:47 shit* Jun 25 06:59:03 how can that possibly be Jun 25 06:59:05 anybody can help me find a kind of listview that shows up kinda like a test. Like a multiple choice test, with a, b, c, d order... Jun 25 06:59:19 jasta: hopefully we can keep doing it :) Jun 25 06:59:22 ?? do i have gingerbread? checking google. Jun 25 06:59:25 yeah, i wish ics was all there was :D Jun 25 06:59:37 What is the correct way of simulating orientation changes when writing tests? Robotium? Or is it possible to rely on Activity.setRequestedOrientation()? Jun 25 06:59:40 anybody can help me find a kind of listview that shows up kinda like a test. Like a multiple choice test, with a, b, c, d order... Jun 25 06:59:41 romainguy_: i'm expecting it :) Jun 25 06:59:42 I've got 1 F device, 1 H device and 4 I devices here... Jun 25 06:59:45 romainguy_ up late doing notes? ;) Jun 25 06:59:52 wabz: maybe :) Jun 25 07:00:04 romainguy Jun 25 07:00:07 you guys better enjoy those slides! Jun 25 07:00:08 romainguy_ Jun 25 07:00:11 heheh Jun 25 07:00:23 romainguy_: Jun 25 07:00:26 romainguy_: we'll be the judges of that... Jun 25 07:00:57 if the emu gets bluetooth i may just use the emu from here on out :) Jun 25 07:01:21 actually, i hope they announce support for that at i/o Jun 25 07:01:27 I need a "abcd order" kind of list view; do I need to describe it more or can you guys help? Jun 25 07:02:29 II need the list view too look like a test Jun 25 07:02:33 any advise? Jun 25 07:02:34 shiz did you want RADIO buttons abcde or check only one box or just display in this order? Jun 25 07:02:35 romainguy_: if i don't see you again, good luck and have fun at the conference :) Jun 25 07:02:42 are you going to be there? Jun 25 07:03:12 no, unfortunately. originally i was supposed to be Jun 25 07:03:45 I was thinking about showing the possible answers, and have the letters infront of them Jun 25 07:04:00 then i can make a animation to circle them when the person clicks the answer choice Jun 25 07:04:05 i've actually kind of fallen off the planet lately it seems like. would've been nice to sync up with you and some of the other android team members Jun 25 07:04:33 Like.... Jun 25 07:04:39 A: Monkeys Jun 25 07:04:40 jasta: too busy? Jun 25 07:04:43 B: Dogs Jun 25 07:04:47 C: Horses Jun 25 07:04:52 D: Rats Jun 25 07:04:55 like that Jun 25 07:05:06 romainguy_: yeah, it turns out working for a start-up that's successfully generating business is hard work. Jun 25 07:05:27 except the answer choice arre larger than the the letters on the side and there will be 50 questions Jun 25 07:05:45 jasta: it's a good problem to have :) Jun 25 07:05:50 jerry_l: would that be possible? Jun 25 07:05:52 look for android radio BUTTONS,, they can be grouped > example: Jun 25 07:06:19 yeah, especially after the scare 6 months ago or so when google entered the fray :) Jun 25 07:06:20 group buttons 1 , question one,, Jun 25 07:06:36 buttons a,b,c,d,e Jun 25 07:06:47 select one and click next to continue. Jun 25 07:07:22 ok Jun 25 07:07:27 i'll look into it Jun 25 07:07:37 http://en.wikipedia.org/wiki/Radio_button Jun 25 07:07:52 i wanted to make animation for on click the remember which answer was click Jun 25 07:07:58 cross that over to java for android.... Jun 25 07:08:23 do you know of strings?\ Jun 25 07:08:23 radio buttons compatible with 1.5? Jun 25 07:08:29 yes i do Jun 25 07:09:07 so to get what i described before I would have to mainly java? Jun 25 07:09:43 android is java to what i understand, i am new to android but know VB Jun 25 07:10:12 romainguy_: you cant help?.... Jun 25 07:10:19 have you started programing android yet? Jun 25 07:10:24 you are a admin around here... Jun 25 07:10:34 i understand it yes.... Jun 25 07:10:43 but kinda new though Jun 25 07:11:48 Shiz: it's polite not to bug the admins... Jun 25 07:11:56 lol Jun 25 07:12:20 he has to write the next version of Android before Google I/O on Wednesday so he's probably busy Jun 25 07:12:29 admins are normally supposed to help, but I know some of them are busy Jun 25 07:12:57 erm... no, admins are supposed to administer, not help Jun 25 07:13:19 :) leeds :) agreed Jun 25 07:13:25 seriously, don't bug people just because they happen to be an admin Jun 25 07:13:49 shiz have you created hello world? Jun 25 07:16:20 http://developer.android.com/reference/android/widget/RadioGroup.html for radio group. Jun 25 07:17:41 SpiderMonkey!!! Jun 25 07:18:20 http://developer.android.com/reference/android/widget/RadioGroup.html for radio group Jun 25 07:18:27 in the market, i should be able to click on a person leaving a review to see all the other reviews they have written Jun 25 07:19:00 indeed Jun 25 07:19:08 hmmm Jun 25 07:19:24 http://developer.android.com/reference/android/widget/RadioButton.html radio button only Jun 25 07:19:51 i have not been to the market yet i just started android this week. Jun 25 07:22:11 would anyone here still buy a nexus one gsm unlocked for GB testing ? Jun 25 07:22:36 obviously not looking to actually use the thing Jun 25 07:23:18 what is GB? :) Jun 25 07:23:29 gingerbread Jun 25 07:23:39 or something Jun 25 07:23:56 ahh. i have gingerbread 2.3.4 on my tablet. Jun 25 07:25:51 sears has some for $224 .. huh, not bad Jun 25 07:25:57 aye jerry_l Jun 25 07:26:15 is there any way to decouple wifi adb from usb debugging? i've bee trying to debug an app that communicates with usb connected hardware, and this is really slowing me down. I've been resorting to local adb logs, but i can't debug the app from the pc because of this (breakpoints, watches, etc) Jun 25 07:26:18 :) Jun 25 07:26:24 you know the theme holo that you can add to you ics app Jun 25 07:26:29 ? Jun 25 07:27:31 sorry i just got a tblet this afternoon. and my phone has no data plan. Jun 25 07:27:46 Holo is the default theme of Android 3.0 and up Jun 25 07:28:12 by targeting API 11 in your manifest it will automatically be used, or you can declare it explicitly Jun 25 07:28:17 oh ic' Jun 25 07:28:22 i noticed that the foursquare app looks holo on my froyo phone; i guess they used HoloEverywhere ? Jun 25 07:28:53 um, hell no Jun 25 07:29:02 JakeWharton: I wanted to use a cool theme like holo, for the android versions 2.2 and below Jun 25 07:29:16 2.2 and below is ugly... Jun 25 07:29:24 4.0 and below is ugly :) Jun 25 07:29:25 really ugly.... Jun 25 07:29:39 you can grab the styles and resources from the Android source code Jun 25 07:29:46 has anyone used this https://github.com/johannilsson/android-actionbar/tree/mimic-native-api Jun 25 07:29:47 there's nothing platform specific about them (usually) Jun 25 07:29:51 4.0 apps look beautiful, just check out ics youtube Jun 25 07:29:53 eSatsu: i have Jun 25 07:29:57 4.1, now that's where shit gets *beautiful* :) Jun 25 07:29:59 actually I wrote that branch Jun 25 07:30:11 JakeWharton: are you saying they did not use HolyEverywhere ? i did not understand your reply Jun 25 07:30:19 no, they most definitely did not Jun 25 07:30:24 hmm Jun 25 07:30:29 oh hey, the example isnt working for me for some reason. it compiles, but crashes upon run. Jun 25 07:30:36 i thought holo was only usable by 4.0 Jun 25 07:30:46 pretty sure the only thing they have in common with anything Holo is using blue for their selector which is a single asset Jun 25 07:30:58 i copied the newest lib+example manually because the newest one didnt seem to be on the zip file (?) Jun 25 07:30:59 no, the input boxes were all holo Jun 25 07:31:05 actually, everything seemed holo Jun 25 07:31:07 oh, two assets Jun 25 07:31:10 11 Jun 25 07:31:26 because things are square and flat? they just have good designers Jun 25 07:32:21 JakeWharton: any idea what could cause this http://pastebin.com/egmNvbfx Jun 25 07:32:46 i probably just set something wrong when creating the projects or something, dont know Jun 25 07:33:25 your R file is probably just out of date Jun 25 07:33:28 try cleaning the project Jun 25 07:33:52 either that or you changed the internal layouts of the library and messed up the IDs Jun 25 07:34:36 jakewharton: somebody said they used abs in their app, what do that mean? Jun 25 07:34:55 it means they used ActionBarSherlock. See: http://actionbarsherlock.com Jun 25 07:34:55 i think they said it stands for actionbarsherlock Jun 25 07:35:16 JakeWharton: do you know anything about this actionbarsherlock thing? Jun 25 07:35:29 I'm MySpace friends with the guy who wrote it Jun 25 07:35:39 oh, Tom? Jun 25 07:35:49 yes, he's my only friend at the moment though... Jun 25 07:38:16 JakeWharton: your awesome... Jun 25 07:38:25 uh, is there a way to download the whole project from github, the newest example isnt included in the zipfile Jun 25 07:38:41 click the ".ZIP" button Jun 25 07:38:56 oh it has a pretty cloud now Jun 25 07:39:09 ah Jun 25 07:39:12 got it Jun 25 07:39:51 just be warned, that project hasn't been worked on for months Jun 25 07:40:08 especially that branch since that was pretty much just me Jun 25 07:40:33 im not gonna lie but google chrome is the fastest browser on windows i've tested Jun 25 07:40:50 well, anything else I should use to implement actionbar? Jun 25 07:40:53 between IE, firefox, and chrome Jun 25 07:40:58 chrome wins Jun 25 07:41:20 eSatsu: you might want to try http://abs.io/ Jun 25 07:41:24 chrome even make a computer with 256MB of ram fast Jun 25 07:41:32 i tried the newest ff yesterday, it looks like its still from the 90s or something Jun 25 07:41:44 opera was just bizarre Jun 25 07:42:06 will give it a tr Jun 25 07:42:07 try Jun 25 07:43:00 JakeWharton: would I find how to implement 4.0 look into 2.x in the themes section Jun 25 07:43:23 no, ActionBarSherlock makes no effort to back port the Holo look Jun 25 07:43:42 that sounds really cool Jun 25 07:43:43 and nerdy Jun 25 07:43:51 i mean good morning Jun 25 07:43:51 i was talking about d.android.com Jun 25 07:44:00 oh, yes and no Jun 25 07:44:12 you said i could implement the 4.0 look into lower versions of android Jun 25 07:44:14 the resources and styles for the Holo looks are within the Android source Jun 25 07:44:18 why doesnt eclipse recognize the folders as projects Jun 25 07:44:30 usually I just go in and pluck out what I need Jun 25 07:44:31 cant import them, have the create new projects and use them as sources Jun 25 07:45:00 I know how to make 3.x+ use the holo theme, but I wanted 2.x too have a cool theme too Jun 25 07:45:02 because the git repository is not IDE-specific and IDE files shouldn't be contained in the repo Jun 25 07:45:10 and I don't use Eclipse Jun 25 07:45:12 ah makes sense Jun 25 07:45:14 but mostly the first two Jun 25 07:45:31 JakeWharton: I know how to make 3.x+ use the holo theme, but I wanted 2.x too have a cool theme too Jun 25 07:45:48 Shiz_: so you go into the Android source and take what you need Jun 25 07:45:54 guys, I guess if dominator tree shows me like 5 instances of the same activity - it's not a good sign ? Jun 25 07:46:02 or, better yet, you take the images for Android 4.0 and modify it to provide unique styles for your app Jun 25 07:46:27 midnight: correct, you should look into singleTop and the clear top intent flag Jun 25 07:47:11 Hi Jun 25 07:47:12 Could anyone give me some hints on how to consume such a webservice (http://www.direktinfo.no/service/interopt/SearchService.svc.wsdl) on an Android app. ? Jun 25 07:47:16 JakeWharton, thanks for suggestion Jun 25 07:49:35 JakeWharton: So i would take the images from 4.0 design source and put it in my apps, no modification of the images needed except for ldpi/mdpi/hdpi, correct? :) Jun 25 07:49:52 mdpi/hdpi/xhdpi, yes Jun 25 07:50:02 ldpi assets are no longer provided Jun 25 07:50:19 lol i see you guys show no love for 1.5 Jun 25 07:50:31 not even close Jun 25 07:50:39 ad about 2.5% of android users still use it Jun 25 07:50:40 minSdkVersion=8 or 9 Jun 25 07:50:44 *and Jun 25 07:50:47 wow Jun 25 07:50:51 i have 1.5 on my phone it nothing on it works :( Jun 25 07:50:52 thats just mean Jun 25 07:51:08 s/mean/practical/ Jun 25 07:51:11 jerry_l: have you ever tried upgrading? LOL Jun 25 07:51:35 cant/dont know how. or do you mean new phone? Jun 25 07:51:38 the amount of time that would be required to support older (inferior) platforms far outweighs the potential benefits Jun 25 07:51:49 JakeWharton, when I inspect GC ROOTS without weak references it says mContext, activity which point on windowmanager. I guess it's not a particular code failure so I'd like to consider your solution - do you think it's a good way to implement most of activity changes ? Jun 25 07:52:11 i'm not sure what you're asking Jun 25 07:52:13 yes but i got the phone for the SD card /music Jun 25 07:52:22 jerry_l: both Jun 25 07:52:49 then almost 2years later found out that it is android and i am liking it... kinda late, Jun 25 07:53:22 updates to 1.8 no longer avail for phone. Jun 25 07:53:54 stuck with OS 1.5 on samsung bheold 1 phone Jun 25 07:54:03 when will android ever use red and black?.... Jun 25 07:54:16 jerry_l: why do you have suck a crappy phone Jun 25 07:54:31 *such Jun 25 07:54:51 i mean it's been like 8 years since 1.5.... Jun 25 07:54:54 JakeWharton: I mean is it ok to apply this flag to startIntent in most of my activities. My problem is that on most of activities I represent a bitmaps however they dont get collected Jun 25 07:55:24 you would LOVE a newer phone Jun 25 07:55:28 im telling you Jun 25 07:55:33 JakeWharton: I think that it might be caused by those activity references Jun 25 07:55:34 thats probably why tmobile gave me the phone for free with a 2 year no data contract. Jun 25 07:55:50 no data Jun 25 07:55:52 wow man Jun 25 07:55:58 you got rpped off Jun 25 07:56:08 smartphones thrive on data Jun 25 07:56:12 *ripped Jun 25 07:56:49 *I would burn down every last store of TMobile if they did that too me Jun 25 07:57:00 the screen is beautifull but bigger would be better. my contract is up in 2 months and i think i will try with att no data(cant afford) for a smart phone Jun 25 07:57:19 try virgin mobile dude Jun 25 07:57:21 way cheaper Jun 25 07:57:28 or straight talk Jun 25 07:57:34 or boost mobile Jun 25 07:57:42 check the prepaid section Jun 25 07:57:46 you need data dude... Jun 25 07:57:48 i have been pissed ever since angry birds came out and could not install it on my phone and could not have it upgraded. Jun 25 07:58:26 a loong time ago angrybirds. Jun 25 07:58:32 lol 1.5 Jun 25 07:58:39 thats hardly a smartphone anymore! Jun 25 07:58:42 I swear if TMbile did that to me, next day I would come with a machine gun and say 'Where my money?!' Jun 25 07:58:49 lol Jun 25 07:58:58 eSatsu: true that Jun 25 07:59:09 symbian s60 used to count as a smartphone too Jun 25 07:59:23 eSatsu: I mean it still is, but it's extremely outdated Jun 25 07:59:28 eSatsu: Android is filling in where s60 left off :) Jun 25 07:59:48 i dont think i can afford phone data plan and timewanrer internet at the same time. Jun 25 07:59:50 i cant fit s60 and smart in the same phrase Jun 25 08:00:49 i know a lot of people that still use dumb phones Jun 25 08:01:06 i am paying about 50.00 a month for $0.35 text messages and 1000mins. Jun 25 08:01:09 basically, just for emergency phone calls Jun 25 08:01:44 1000min for emergency calls? are you accident prone? Jun 25 08:01:53 :) Jun 25 08:02:23 well i upgraded from nokia e71 to samsung galaxy s3 recently Jun 25 08:02:45 say 1 em call takes 10min, that's 100 emergencies / month, or about 3 / day. you're def ready. Jun 25 08:03:47 holy shit, i finally fixed my d.android.com font woes. i can't believe i had to do what i did Jun 25 08:03:49 yeah i take stuff aprt and sometimes it blows up.. :> Jun 25 08:04:02 apart :) Jun 25 08:07:14 is there any api for programming external screen for tablet? Jun 25 08:07:44 JakeWharton: what is the greatest android version that manufactures still made ldpi device for Jun 25 08:07:57 does your tablet have hdmi out? Jun 25 08:08:01 i have no idea Jun 25 08:08:12 Android will automatically scale down MDPI Jun 25 08:08:21 so I never include ldpi anything Jun 25 08:08:54 Shiz_: there is a bunch of ldpi devices running 2.x; maybe there will be some low-end 4.x devices as well? Jun 25 08:08:57 JakeWharton: I was trying to figure out how low the sdk version im gonna support Jun 25 08:09:01 mini hdmi is the only hardware for tablets that i can think of. Jun 25 08:09:31 I'd say API 7 is the absolute lowest I'd ever go Jun 25 08:09:41 but i usually do 8 or 9 Jun 25 08:09:42 2.0 for world compatibiltity, 4.0 for hardcore gamers Jun 25 08:09:42 * Zharf agrees Jun 25 08:09:49 http://phandroid.com/2012/06/25/nexus-7-leak-reveals-details-ahead-of-an-android-heavy-google-io/ Jun 25 08:10:03 well games are a different story Jun 25 08:10:07 JakeWharton: I wanted to support 2.0 and higher, but i know 2.2 is where a lot renaming changes appeared... Jun 25 08:10:13 since APIs don't really matter, only OpenGL Jun 25 08:10:31 2.2 gets you fun stuff like C2DM, the JIT, and View#onConfigurationChanged Jun 25 08:10:33 Hi everyone, just registered! Jun 25 08:10:38 hi Jun 25 08:10:39 g00s: keep up - I linkied over an hour ago! :) Jun 25 08:10:44 Leeds: wat ! Jun 25 08:10:54 JakeWharton: So you'll support down to 1.5 if possible for games? Jun 25 08:11:01 i go on and offline a lot, so i miss a bunch Jun 25 08:11:07 i don't write games, and i'll never ever support 1.5 ever Jun 25 08:11:09 and to the original story, no less! Jun 25 08:11:11 Guys,,,is there a way to get rid of the lock screen in Android 2.3 ? Jun 25 08:11:24 mrAlmond: turn it off in settings Jun 25 08:11:34 congrates mralmond. Jun 25 08:11:40 mrAlmond: go to settings and disable it :) Jun 25 08:11:44 Let me check Jun 25 08:11:48 JakeWharton: Wow, even if you can support, you still won't. That's just crule Jun 25 08:11:51 *cruel Jun 25 08:12:02 s/cruel/practical/ Jun 25 08:12:07 there's no point Jun 25 08:12:15 what are the caveats for using singleInstance attribute for an activity ? Jun 25 08:12:22 g00s: and looks like it's going to ship globally, fast - which hopefully means I won't have to bugger around with remailing from the US :) Jun 25 08:12:26 even 2.2 should die out Jun 25 08:12:29 JakeWharton: I also need the link to june 1 trackings android version usage Jun 25 08:12:37 it's on d.android.com Jun 25 08:12:39 Zharf: Ima stab you Jun 25 08:12:47 2.2 should definitely die out Jun 25 08:12:52 JakeWharton: I wanted direct link :P Jun 25 08:12:56 nooooo ! froyo ftw ! Jun 25 08:12:56 Shiz_: http://developer.android.com/about/dashboards/index.html Jun 25 08:12:57 http://google.com Jun 25 08:12:59 That's just mean Jun 25 08:13:00 yeah what about my 1st gene OS1.5 smort phone? Jun 25 08:13:04 Shiz_: now pay up Jun 25 08:13:29 JakeWharton : I've disabled it but I still see the slider when it boots up Jun 25 08:13:30 * Shiz_ hugs Leeds* Happy? Jun 25 08:13:41 no, I do not take payment in non-sexual favours Jun 25 08:13:42 mrAlmond: these types of questions are better suited for #android Jun 25 08:13:51 we discuss app development here Jun 25 08:13:55 lol Jun 25 08:14:09 Leeds you'll have to take a IOU Jun 25 08:14:28 fortunately, I *do* accept payment in vowels, so we're good Jun 25 08:14:31 JakeWharton : ok, excuse me Jun 25 08:14:31 JakeWharton: more people use 2.1 than 2.3.2 Jun 25 08:14:50 Leeds that's a double meaning Jun 25 08:15:03 I don't want to marry you Jun 25 08:15:11 because OEMs upgraded <2.3.3 to 2.3.3+ Jun 25 08:15:17 but with that came an API bump Jun 25 08:15:21 but still thugh Jun 25 08:15:24 that's almost an Apple statistic Jun 25 08:15:34 *though Jun 25 08:15:42 it proves a point Jun 25 08:15:43 2.3.4 here Jun 25 08:15:48 2.1 support ftw Jun 25 08:15:49 no it doesn't Jun 25 08:15:52 2.3.x is gingerbread Jun 25 08:16:22 im talking the specific version not the name Jun 25 08:16:34 that's irrelevant from a programming perspective Jun 25 08:16:51 the differentiation between API 9 and 10 is very, very small Jun 25 08:16:56 2.3.3 - 2.3.7 is mostly popular because of custom roms Jun 25 08:17:05 that is completely false Jun 25 08:17:28 JakeWharton: I think I'm gonna take you to court soon... Jun 25 08:17:32 i can't remember what GB had beside new concurrent GC and NFC Jun 25 08:17:45 for what? overabundance of logic? Jun 25 08:17:50 clear reason? Jun 25 08:17:55 barrage of facts? Jun 25 08:17:59 i shit trains Jun 25 08:18:02 and i'm going to bed Jun 25 08:18:03 night Jun 25 08:18:26 JakeWharton: jesus, you are being a prick Jun 25 08:18:26 w8 Jun 25 08:18:37 JakeWharton: http://developer.android.com/sdk/api_diff/9/changes.html Jun 25 08:18:37 more people use eclair than honeycomb Jun 25 08:18:39 beat that Jun 25 08:18:42 er Jun 25 08:18:43 sorry Jun 25 08:18:47 g00s: http://developer.android.com/sdk/api_diff/9/changes.html Jun 25 08:19:05 Shiz_: honeycomb didn't run on phones Jun 25 08:19:19 i know but still Jun 25 08:19:21 it also has a clear upgrade path to the newer API levels Jun 25 08:19:26 android version vs android version Jun 25 08:19:28 whereas 2.x to 4.x is a giant leap Jun 25 08:19:48 and if you write an app for honeycomb it runs on ics devices too Jun 25 08:19:57 giant leap for droidkind... Jun 25 08:20:41 romainguy_: to be fair, if you write an app for Donut it'll run on ICS :) Jun 25 08:20:48 indeed :) Jun 25 08:20:56 it's just a weird argument Jun 25 08:21:00 I have an app on the Play Store compiled against SDK 1 that works great on my Galaxy Nexus Jun 25 08:21:04 EAT IT... 12billion down loads from the android market. just apps. thats more thatn the population of earth. Jun 25 08:21:29 it was broken in API 14, but 15 gave it new life Jun 25 08:21:44 JakeWharton: a bug? I don't believe you Jun 25 08:22:07 it rendered all text at 4px tall and only occupied the bottom right hand corner of the screen Jun 25 08:22:13 oh that Jun 25 08:22:16 with hw acceleration on? Jun 25 08:22:18 or off? Jun 25 08:22:24 i probably had it forced on Jun 25 08:22:29 yeah Jun 25 08:22:51 hw acceleration pretty much ignore[s/d] pre 1.5 apps Jun 25 08:22:58 they run in that weird compatibility mode Jun 25 08:23:47 i always forget about that and the kill activities setting. useful for finding bugs in our apps but can play tricks on you. Jun 25 08:24:16 JakeWharton: i want too play tricks on you... Jun 25 08:24:28 Halloween is a ways off Jun 25 08:24:45 writing code is hard Jun 25 08:24:47 let's go on vacation Jun 25 08:25:04 writing text is harder than writing code Jun 25 08:25:18 hmm, how do i theme an alert dialog using the AlertDialog.Builder in API level 8? Jun 25 08:25:25 ,oO( but the hardest is writing nfc card emulation on android ) Jun 25 08:25:56 tapas: personal question is that a java file? Jun 25 08:26:01 tapas: dialog styles are specified in the theme Jun 25 08:26:10 you can override some of them, but customizability is limited Jun 25 08:26:23 tapas: what file format is AlertDialog.Builder Jun 25 08:26:24 if you need a serious visual overhaul you'll have to just make your own Dialog Jun 25 08:26:33 just want too know Jun 25 08:26:36 Shiz_: it's a type Jun 25 08:26:39 not a file Jun 25 08:26:50 http://developer.android.com/reference/android/app/AlertDialog.Builder.html Jun 25 08:27:02 JakeWharton: ok that makes sense.. Jun 25 08:27:11 thanks.. Jun 25 08:27:29 I don't think there's any explicit list of the styles used. I would just poke around the layout.xml from the platform to see what it uses. Jun 25 08:27:47 here: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/alert_dialog.xml Jun 25 08:28:12 that'll be ICS though, you may want to step back to older versions if you're specifically thinking of older versions of Android Jun 25 08:55:35 JakeWharton: newbie question but can you explain a little how the view in the abs example is created? Jun 25 09:03:43 hey Jun 25 09:06:55 hello Jun 25 09:06:57 need help Jun 25 09:07:01 hello i'm trying to use expansion file but i don't know how make zip file Jun 25 09:07:08 just take all my mp4 files and zip them or there is a configuration? Jun 25 09:07:59 sorry i dont know expansion. Jun 25 09:08:27 romainguy_: do you know if the content under Develop / Android Training was re-authored for the new website? i thought i was through this before, but much seems unfamiliar. wondering if i should just go reread it all Jun 25 09:09:42 does someone already use expansion file? Jun 25 09:11:36 g00s: there's a bunch of new content Jun 25 09:11:46 excellent Jun 25 09:12:36 i thought the new website was mostly a redesign, with things being moved around + visual facelift Jun 25 09:16:53 does someone already use expansion file? Jun 25 09:23:18 does someone already use expansion file? Jun 25 09:34:19 does someone already use expansion file? Jun 25 09:35:28 anyone aware of a SearchView implementation that works pre honeycomb? Jun 25 09:41:21 i have a problem with slow rendering of my scrolly view Jun 25 09:41:35 Is it possible to get sources from APK? Jun 25 09:41:35 works decently well on non-ICS devices Jun 25 09:41:57 heoa: no Jun 25 09:43:22 heoa: you can decompile the stuff in the apk, so yes Jun 25 09:43:44 siyb: that's iffy though Jun 25 09:43:51 heoa: http://stackoverflow.com/questions/1249973/decompiling-dex-into-java-sourcecode Jun 25 09:43:57 funktronic: yes, but it is possible Jun 25 09:44:40 if it's obfuscated you won't get much out of it though :) Jun 25 09:46:08 does someone already use expansion file? Jun 25 09:46:17 going back to hardware acceleration, i've simplified the view as much as i can. profiler looks clean, with lots of time in GLES20Canvas.nDrawDisplayList Jun 25 09:55:12 anolther question, any good book suggestions? Jun 25 09:56:01 funktronic: for android in general ? Jun 25 09:56:44 g00s: something that's fairly encyclopedic Jun 25 09:56:48 this looks okay: http://www.amazon.com/Professional-Android-Application-Development-Guides/dp/1118102274 Jun 25 09:57:06 yeah, i was going to recommend that Jun 25 09:57:14 just started android/java and working on a codebase written by a contractor Jun 25 09:57:41 i have gotten it to be *a lot* faster but still have some issues, like this hardware accelerated stuff Jun 25 09:57:41 i don't like the format much, they interleave a sentence with a line of code (for what goes on to be pages of this) but its more or less the most authoritative book you will find Jun 25 09:58:11 does someone already use expansion file? Jun 25 09:58:41 that should be fine, i care more about the idoms. things like "use this package and this class" instead of "this is the code to open a tcp stream" Jun 25 09:59:11 oh, well - Android in Practice was good for idioms / patterns, but it could be a little out of date Jun 25 09:59:24 i'll get this one first Jun 25 09:59:37 g00s: so any idea on how to battle this hardware acclerated views thing? Jun 25 09:59:48 funktronic: no, sorry. maybe romain Jun 25 09:59:58 oh i read his article Jun 25 10:00:05 he's in here? Jun 25 10:00:23 :) Jun 25 10:00:30 * funktronic is impressed Jun 25 10:00:54 romainguy: ping Jun 25 10:01:32 i just want to get the perf to be the same as our iphone app Jun 25 10:01:54 you mean the ui responsiveness ? Jun 25 10:01:58 yes Jun 25 10:02:53 if i disable hardware acceleration it's not bad.. but i don't see a reason why i couldn't get iphone-like smoothens Jun 25 10:03:01 get a moto droid-1 running stock froyo, make your app sing on this device, and it will be very responsive on all other phones :) Jun 25 10:03:11 hi guys anyone able to help me out with this error, unpackbootimg not found. Is your android build environment set up and have the host tools been built? Jun 25 10:03:12 i've done ake -j4 out/host/linux-x86/bin/unpackbootimg to try and resolve it but still nothing.... Jun 25 10:03:14 Writing a test that forces an orientation change to verify that the correct fragments are displayed : pastebin.com/qPwy3meB - This test only passes if the device is in landscape mode before testing begins. If in portrait mode, mListFragment and mDetailFragment are null (Delay not long enough?) Jun 25 10:03:55 g00s: the base phone i'm using is that second google phone forget what it's called. also have a htc one x (the slow hardware one) and a samsung galaxy s2. Jun 25 10:04:18 the htc one x has me debating ditching my iphone Jun 25 10:04:45 i heard thats a very nice phone Jun 25 10:05:21 yeah it's pricey though. we bought an unlocked one on the amazons for $600 i think Jun 25 10:06:30 is it possible to have a listview row that can be clickable, and can include preferences/spinner with other options for that row? Jun 25 10:16:30 Im also getting a bizarre bug where my application is getting NPE, when I add a new layout.xml and add things into it.. Even though no part of the code is calling that file :S Jun 25 10:16:35 Any ideas? :( Jun 25 10:17:04 Timmaah1201: what's the stack? Jun 25 10:17:24 have you cleaned your project? Jun 25 10:18:09 funktronic: its in the onCreateOptionsMenu, where I'm making a filtertext Jun 25 10:18:12 Leeds: i havent no Jun 25 10:18:26 clean, look at the stack, debugger Jun 25 10:18:34 npe's are trivial to fix Jun 25 10:18:50 and this is ocming from someone with barely 2 weeks of java experience Jun 25 10:19:14 i realize that.. but theres no reason for the npe, as the thing is there Jun 25 10:19:25 http://imgur.com/jacoj Jun 25 10:19:37 and source :) Jun 25 10:19:40 and it only throws an npe when i add a new layout xml (that isnt called), when i delete it, no npes occur Jun 25 10:21:36 not sure what you want us to do without source or stacktrace Jun 25 10:21:37 Timmaah1201: there's always a reason for a NPE Jun 25 10:21:42 agree with you that it's a strange issue? Jun 25 10:21:43 sometimes the reason is corrupt memory Jun 25 10:22:11 (on paper, assuming you're not overlooking something, etc etc) Jun 25 10:23:18 Why would an unused layout file cause an NPE with a FilterText :/ Jun 25 10:23:19 http://pastebin.com/ZeBYCkZy Jun 25 10:23:38 Timmaah1201: what's line 69> Jun 25 10:25:07 its line 3 in the pastebin Jun 25 10:25:45 well one of those things is null Jun 25 10:26:01 i'm guessing that the menu doesn't point to what yo uthink it points Jun 25 10:26:50 Hi, I'm having some issues with managing Activities Jun 25 10:27:15 ive been using the code for over a week, ran the program hundreds of times.. and then today when i make a new xml file it breaks.. delete the xml file.. it works Jun 25 10:27:18 it just seems very odd to me.. Jun 25 10:27:29 Timmaah1201: what's in the layout file which breaks stuff? Jun 25 10:27:47 so if its an empty layout file, just it works Jun 25 10:27:55 the minute i add a textview, or button.. i get the npe Jun 25 10:28:11 but im not even calling the new xml file anywhere in the code, and the id isnt menu_search or a duplicate id Jun 25 10:28:48 I have an app with a 'flow' through several activities, and I have the 'up'/'home' button going backwards in the flow where I want them to be able to go back, but it seems all my activities are in the background because the 'back' button closes the front activity and shows the next oldest Jun 25 10:29:03 I'm just saying that you're not getting any closer to solving the issue this way Jun 25 10:29:08 heres a sample: http://pastebin.com/Ei71edKF Jun 25 10:29:09 even if the android framework is acting up Jun 25 10:29:13 Is there a way to close the activity when you start a new one, so you only have one running for your app? Jun 25 10:29:26 Timmaah1201: I'm assuming findItem returns null Jun 25 10:29:34 I understand MDijkstra, just rather not chase ghosts if you get me Jun 25 10:29:38 but it could just as well be the inflater Jun 25 10:29:46 ok i'll do some experimenting with that now Jun 25 10:30:00 what I'm guessing is what happens Jun 25 10:30:08 is that somehow the R file gets corrupted Jun 25 10:30:14 when you add a new layout Jun 25 10:30:22 making menu_search not point to the right object Jun 25 10:30:26 I've actually had that once Jun 25 10:30:51 eclipse clean, uninstall on phone, eclipse restart fixed that for me Jun 25 10:35:27 that fixed it MDijkstra, thank you very much! Jun 25 10:36:17 in other words, clean the project - which is what I said immediately Jun 25 10:36:33 i did that Leeds, but it didnt fix it Jun 25 10:43:13 does someone already use expansion file? Jun 25 10:45:02 Is there a specific mode or way to do startActivity that closes the calling Activity or makes it inaccessible with the Back button? Jun 25 10:46:44 I want the back button to exit the app rather than going back to the previous Activity, since I manage the flow using the up/home button Jun 25 10:48:15 no you don't Jun 25 10:48:18 finish the current activity after calling startActivity? Jun 25 10:49:14 or use android:noHistory in manifest Jun 25 10:49:45 or use the appropriate flags to the intent you pass to startActivity Jun 25 11:00:30 where do i find information about associating an app with a connected usb accessory. I keep getting a "No installed apps work with this USB accessory" Error. I can't seem too google up a direct answer. Jun 25 11:04:31 i get a reference to UsbAccessoryUriActivity in logcat, but i can't even find that on developer.android.com Jun 25 11:21:19 Is there a way to reference the ic_input_delete icon for the current theme? like the ?android... reference Jun 25 11:21:25 JakeWharton: r u there? :) Jun 25 11:21:42 dsample: you may have to copy it yourself Jun 25 11:21:59 I'm using Holo.light but @android:drawable/ic_input_delete is the white version and I want the grey version Jun 25 11:22:13 ah Jun 25 11:22:27 g00s: I can't even find the icon in the downloadable icon pack from the Android Design site Jun 25 11:22:47 its probably in your sdk install under platforms/x/data Jun 25 11:25:13 or any1 who use abs, indeterminated progress start animation on orientation change :) Jun 25 11:25:16 hi android-dev'ers! Jun 25 11:25:19 hi folks, NDK question here: how can i get the current packabge name from within the JNI? I want to do findClass(), but I can't hard-code the package path name - I need to know it at runtime so I can find $PACKAGE_NAME/MyActivity.java .. is there some smart way to do this within the JNI context? Jun 25 11:25:21 its feature or bug? :) Jun 25 11:25:24 i.e. generic findClass() using currently defined activity. Jun 25 11:31:13 does someone already use expansion file? Jun 25 11:39:09 does someone already use expansion file? Jun 25 11:39:42 plazi91: I think you can call that a 'no' Jun 25 11:40:43 hmmm, the ic_input_delete images in the SDK directories are all the white version, do I really have to edit all the versions myself to make the dark versions? Jun 25 11:41:55 any of you using scala? Jun 25 11:42:31 funktronic: I think pfn did Jun 25 11:44:31 yay, my first maven generated project produces an .apk that runs Jun 25 11:46:58 is there really no way to get the Class ID from within the JNI so that I can 'generify' my findClass calls? Jun 25 11:50:42 does anyone know if I can do findClass("MyActivity") instead of findClass("com/mydomain/someapp/MyActivity") for example? Jun 25 11:53:47 I am trying to implement a file download manager. At the moment I am using intent service. The problem with this is it sues the files to download one after the other. Would it make sense to fire different threads to download multiple files on the onHandleIntent()? Jun 25 11:53:53 hello Jun 25 11:54:01 heh. google wallet fails to start if you have a tag in proximity. Jun 25 11:57:36 can I wrap text in the XML? Jun 25 11:57:45 nevermind Jun 25 12:06:51 I've got the right stuff in the intent filters from what i can tell, and have tried with them empty as well. it throws the same error even if the app is open Jun 25 12:11:00 hi, is it ok to implement GLSurfaceView and GLSurfaceView.Renderer in the same class? Jun 25 12:11:28 hello Jun 25 12:12:02 hi Jun 25 12:12:13 !msg Jun 25 12:13:07 I am using window manager to keep the screen on with the FLAG_KEEP_SCREEN_ON, but how do i turn it off? Jun 25 12:14:02 I've looked through the options and didnt see anything that looks like it an be used to disable keeping the screen on.. Jun 25 12:14:28 is there a generic cache class in the sdk anywhere? Jun 25 12:14:29 you want to turn the screen off? Jun 25 12:15:20 Snuffel, no- i want to simply disable keeping the screen,not turn the screen off Jun 25 12:16:34 Im using a togglebutton, the ON state is to keep the screen on and prevent it from dimming/turning off, the OFF state is to allow the screen to dim/sleep Jun 25 12:16:53 funktronic: what would be the point of that? Jun 25 12:17:32 wongk: so i don't have to reimplement a LRU cache for example Jun 25 12:17:43 Snuffel, I understand how the window manager works, but i can see no way to turn the FLAG_KEEP_SCREEN_ON off or disable it. Jun 25 12:18:21 http://stackoverflow.com/questions/4620983/android-windowmanager-layoutparams-flag-keep-screen-on-question Jun 25 12:18:34 funktronic: see anything relevant when you google "android lru cache" Jun 25 12:18:59 wongk: yes that retunerd something. i'm an idiot. thanks! Jun 25 12:20:12 Snuffel, yes- thats how to set the screen to stay on -i need to do the opposite,allow the screen to dim again- i'll explore that link you gave - thanks Jun 25 12:20:36 this.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Jun 25 12:20:43 that's what it says Jun 25 12:21:44 Snuffel, thanks - yes i see that now- i need coffee ...... i missed the .clearFlags part Jun 25 12:21:58 heh Jun 25 12:22:01 good luck Jun 25 12:23:04 * Guest42968 goes to make coffee Jun 25 12:26:43 does anyone know how to get the current package name from within the NDK? so that I can make my findClass() calls something like "findClass(CURR_PKG_NAME + "/MyActivity")" and so on .. Jun 25 12:48:52 Why when I want to change my default launcher with mine the Android stuck on installing applications message. I am changing the apk and the odx files as well. Do I have to change something else or not? Jun 25 12:56:32 F1rstAid: see topic Jun 25 13:18:07 hi. what's the pom's dependency for android 4.0.3? can't find it.. Jun 25 13:18:45 maven fails to find com.google.androidandroid4.0.3provided Jun 25 13:21:01 where can i find android-4.0.3.jar ? Jun 25 13:21:01 holaaa Jun 25 13:21:16 hiii Jun 25 13:30:53 krad: in the SDK files Jun 25 13:49:47 anyone got any tips for doing decent youtube-like streaming video playback on android? using a mediaplayer/videoview doesn't do *any* caching at all, so it's not possible to seek backwards for instance Jun 25 13:50:58 stream to storage, have your media player play from that location. Jun 25 13:54:15 would mediaplayer be okay with playing an incomplete file? Jun 25 13:56:18 probably; just tell it to stream from file::/ instead of http:// Jun 25 13:56:37 idk do your own research? Jun 25 13:58:46 thanks for your advice captain useless Jun 25 13:59:16 [this is the part where everybody jumps in and said HURR DURR WE ARE NOT HERE TO DO YOUR WORK FOR YOU] Jun 25 13:59:41 HURR DURR WE ARE NOT HERE TO DO YOUR WORK FOR YOU Jun 25 13:59:45 :< Jun 25 14:00:32 my plan was to write an http proxy that internally caches downloaded data in a file, which I'm pretty sure would work but it does seem like an awful lot of effort; I was wondering if anyone knew of a simpler way before I get started. More specifically, I'm wondering how the youtube player does it because that certainly has some sort of on-device caching Jun 25 14:02:26 I downloaded the Android Design download, but all the these files are in weird formats. How do I utilize them? Jun 25 14:02:38 which formats? Jun 25 14:02:47 *extensions Jun 25 14:03:41 like holo_widgets.psd Jun 25 14:03:53 and the colors folder too Jun 25 14:04:03 android-ics.aco Jun 25 14:04:06 android-ics.ase Jun 25 14:04:08 psd==photoshop Jun 25 14:04:09 android-ics.gpl Jun 25 14:04:13 meh. adb backup proves worthless, once again. "BackupManagerService: Cannot restore package org.aprsdroid.app without the matching .apk" Jun 25 14:04:14 ah Jun 25 14:05:00 what abot using it in my app in the form it's already in Jun 25 14:05:29 Ginger: that's not what these files are for Jun 25 14:06:12 Ginger: at least, the stencil pack Jun 25 14:06:14 stork: perform the actual download yourself, with your own code. Stream it to a file on disk. Have the player stream from that file. Jun 25 14:06:16 the actionbar icons are Jun 25 14:06:28 alternately, ignore my advice and just do whatever. Jun 25 14:07:14 anyone familiar with google analytics for android? Jun 25 14:07:45 how should I tie the GA session lifecycle to the activity lifecycles? Jun 25 14:07:58 MDijkstra: I wanted the my whole app too look ics? Any advise? Jun 25 14:08:35 Ginger: yes, don't make your app look like ICS on a non-ICS device Jun 25 14:08:47 it'll feel out of place and it's a lot of work for nothing Jun 25 14:08:59 as you'll have to style every widget yourself Jun 25 14:13:24 MDijkstra: why?! Jun 25 14:13:44 lov: i could try that, but i've noticed when the mediaplayer plays a video from an url it requests different bits of it before playing it back (notably stuff at the end) so i'm not sure that approach would work, but I'll have a go Jun 25 14:13:55 MDijkstra: I want the blue && white theme!!! Jun 25 14:14:10 <_The_Fred> blue and white themes rule Jun 25 14:14:12 Ginger: and I want a pony Jun 25 14:14:26 <_The_Fred> no not the only thing facebook Jun 25 14:14:55 <_The_Fred> sorry - wrong channel Jun 25 14:15:23 does anyone have a solid 3d picking method? i'm trying to create one but failing. Jun 25 14:17:38 i wish mediaplayer was better documented/implemented Jun 25 14:24:13 it does some weird shit Jun 25 14:33:37 Hi there. I'm learning accelerometer stuff so I've downloaded Pedometer from git but when I run the app with eclipse It gives me: Application Pedometer (in process name.bagi.levente.pedometer) is not responding. I'm thinking it might has to do with sdk version or smth.. How can I figure out why I can't run this app? Jun 25 14:51:19 look at the stack trace ? Jun 25 15:02:17 <_The_Fred> Just a question about widgets: Can a widget open the speech recogniser intent? Jun 25 15:03:03 Hello all - I have a question about Android and microsoft's playready DRM. Is that DRM included in the "release" ? And if so will I be able to include it myself if I were to compile my own Android post porting it to some hardware I'm using ? Jun 25 15:03:07 I a new xml in values folder, called border.xml for the border of textviews in my app Jun 25 15:03:29 im getting invalid start tag 'shape' Jun 25 15:06:07 I've read somewhere that google includes their "special sauce" to the released binaries which include microsoft's playready DRM (and thus the ability of most newer Android releases to play Netflix movies, etc) - is that true and is that "sauce" available (even in binary format) for those that are porting Android to various platforms ? Jun 25 15:07:16 <_The_Fred> nadim, i for one have no idea, perhaps the best thing to do is to code it up and test it out as an experiment.... Jun 25 15:07:39 <_The_Fred> Ginger, is 'shape' declared in you xml? Jun 25 15:09:14 Jun 25 15:09:16 _The_Fred: noted, but I'd rather spend the effort on something else (very limited resouces) and this info should certainly be available somewhere since, as noted, there are lots of phones and pads out there that play Netflix - the question is how (and later how can this be ported to more devices) Jun 25 15:09:24 win 3 Jun 25 15:10:11 <_The_Fred> Ginger, and you have 'shape' correctly addressed in your Java? Jun 25 15:10:30 ... Jun 25 15:10:41 this is a border Jun 25 15:10:43 <_The_Fred> nadim, well, it seems you have 2 options: searh around on google, or try it Jun 25 15:10:49 for a textview Jun 25 15:11:01 nadim: I'm sure the info is available - if you're a handset maker who is licensing stuff from Google, or otherwise involved in the OHA Jun 25 15:11:05 * _The_Fred has to answer the door Jun 25 15:11:17 _The_Fred: if there a google-sanctioned forum to ask this question (a channel, forum, email address, etc) ? Jun 25 15:11:22 hah, is that the first mention of the OHA anywhere in the world this year? :) Jun 25 15:11:36 _The_Fred: i dont need java for it Jun 25 15:12:25 hm.. is there a magic trick to getting a TextView to respect Visibility.GONE ? Jun 25 15:13:07 Leeds: but I'm guessing that the OHA is getting their android in binary format - which kinda answers my question (ie. the "secret sauce" is already included) - I think someone involved within google would be able to answer that rather quickly Jun 25 15:13:34 nadim: I'm sure there are people who could answer it... I'm equally sure they aren't interested in answering it to random people online Jun 25 15:14:11 funktronic XML or code? Jun 25 15:14:21 zeeZ: code, it's not hiding it Jun 25 15:14:30 funktronic: then you're doing something else wrong Jun 25 15:14:30 shows the empty text label with the padding/bg Jun 25 15:14:52 either setting it on the wrong view, or something else is resetting it, or your code is simply not being executed Jun 25 15:17:08 isn't it View.GONE? Jun 25 15:17:25 zeeZ: sorry yes Jun 25 15:17:36 the code is definitely executed Jun 25 15:20:16 I'd give it a default text, and replace the setVisibility with a setText, just to make sure I'm not assuming the wrong things again :P Jun 25 15:20:29 i do have a drawableleft which i think is what is getting drawan Jun 25 15:20:35 I'm having trouble uploading images for my app's home page. For example, my screenshots are all blurry, as if the quality is extremely low. It looks like its in JPEG format, even though I uploaded it in PNG format, and it makes the app look absolutely hideous. Jun 25 15:20:42 This is a Google Play issue. Jun 25 15:21:31 The only image that seems fine is the 512x512 HD icon image, it looks flawless. Jun 25 15:22:12 Notevision: are you uploading them at the correct resolution? Jun 25 15:22:50 https://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=1078870 Jun 25 15:26:11 Leeds: :-) Jun 25 15:26:32 Leeds: so how do I become non-random people and get an answer ? ;-) Jun 25 15:26:49 are you making a device for retail? Jun 25 15:27:27 Hi, I am considering getting an Atrix Jun 25 15:27:37 does anyone have any bad things to say about it? Jun 25 15:27:42 Dimed: I suspect you're looking for #android Jun 25 15:28:02 they aren't very active at the moment :\ Jun 25 15:28:11 that's unfortunate Jun 25 15:28:28 story of my life:D Jun 25 15:28:46 Anyone know if dis/connecting a device causes a wake from sleep? Jun 25 15:29:00 Leeds: no, I'm making a device I can use and enjoy myself. Jun 25 15:29:11 nadim: then no, nobody cares about you Jun 25 15:29:18 Leeds: I'm tyring to hack myself into something I can use Jun 25 15:29:27 good luck with that Jun 25 15:29:36 All the images are at the exact correct resolution. Jun 25 15:29:47 By dis/connecting I mean usb/power cable Jun 25 15:29:47 Leeds: and what if I were to commercialize it later - then people will care ? Jun 25 15:29:54 possibly, yes Jun 25 15:30:31 However, I have my ppi set at 72. Was I supposed to set it at something else? I've looked over the "Graphic Assets for your Application" several times before I uploaded, and I fit all specifications. Jun 25 15:30:45 fair enough - any other forum/channel where I can get some info on this topic ? Jun 25 15:31:03 no obviously appropriate ones come to mind, no... Jun 25 15:31:06 android-porting on google groups, maybe Jun 25 15:31:14 Leeds: thanks for your time. Jun 25 15:31:15 maybe android-building or android-platform Jun 25 15:31:25 look at the descriptions of each and pick the one that makes sense Jun 25 15:32:40 For example, my screenshots are all: 320x480 px in size, all .png format, yet the quality looks absolutely horrible, blurry and all compressed. Jun 25 15:33:44 Notevision: take your screenshots on a higher-res device Jun 25 15:34:14 The screenshots were taken from my computer. Jun 25 15:34:30 from the emulator? Jun 25 15:34:39 I've personally edited them in photoshop, and they look crystal clear. Jun 25 15:34:42 evancharlton: android-building or android-platform are channels on freenode ? Jun 25 15:35:08 So this is strange why Google Play is compressing them. Jun 25 15:35:48 If you're curious to see how it looks, I can PM you the link to my app page. Jun 25 15:36:26 nadim: no, all three are groups on groups.google.com Jun 25 15:36:38 evancharlton: cool - thanks, will try 'em Jun 25 15:36:54 Notevision: "take your screenshots on a higher-res device" (or AVD) Jun 25 15:37:13 Hi, Short story, my phone got stolen, and cops asked me if I had noted the IMEI. I don't, but I got an backup of the /efs folder using this : http://forum.xda-developers.com/showthread.php?t=1138873 My first tough would be to try to push back the file to an emulator, but it gave me an read-only error. Could I have help on finding back what's my IMEI? Jun 25 15:37:38 Well let's say I do that, and the screenshots magically appear crystal clear on google play now, what about my "featured" page? Jun 25 15:37:59 That had to be done specifically in photoshop. That too is also compressed and blurry on the app homepage. Jun 25 15:40:47 Also, I've reuploaded a few images, but the new versions are not showing up on the google play app homepage. How long does it usually take to update? Jun 25 15:41:10 matmat07: ask your carrier - they should be able to tell you Jun 25 15:47:03 If an app can mock locations, why does it overflow into google maps? Jun 25 15:47:37 Google maps doesn't have this mock location permission. Jun 25 15:48:52 matmat07: go to #android-root Jun 25 15:49:03 My carier had these info thanks Jun 25 15:49:06 matmat07: alternately, ask your carrier what the IMEI of the phones most recently using your sim are Jun 25 15:49:06 hmm, has anyone figured out how to show maps in a fragment yet? Jun 25 15:51:13 if I have drawable-hdpi/mdpi/ldpi should I put a default sized image in drawable? Jun 25 15:52:17 http://stackoverflow.com/questions/6261867/question-about-3d-picking-in-android-with-opengl-es-2 can someone explain that first answer to me, specifically the line with Matrix44.invert() in it? Jun 25 15:55:48 3z/part Jun 25 15:55:49 derp Jun 25 15:56:18 code1: no Jun 25 15:56:28 code1: if you only have an mdpi image, it will get upscaled automatically Jun 25 15:56:43 only use drawable w/o modifiers for things like xml resources Jun 25 15:56:54 Does anyone know why my google play screenshots/feature image for my app are blurry, when they should be crystal clear PNG images? They fit the resolution that google play asks for...so I don't know why it looks all compressed and blurry.... Jun 25 15:57:23 I also don't know how long Google Play takes to update the app homepage images each time you reupload, it's been the same one for about an hour or so. Jun 25 15:57:28 lol: so putting any images in drawable is redundent Jun 25 15:57:41 lol sorry lov :) Jun 25 15:57:57 code1: ... that's not what I said. Jun 25 15:58:14 If you place your mdpi resources into drawable, it will get very cluttered Jun 25 15:58:17 and there's no point to it Jun 25 15:58:21 lov: I mean if it's also in xhdi etc Jun 25 15:58:27 just place your actual graphical resources in -mdpi, -hdpi, etc Jun 25 15:58:41 any graphics you place in drawable are effectively considered drawable-mdpi Jun 25 15:58:50 they'll be upscaled automatically if no more relevant resource exists Jun 25 16:00:04 lov: I see, I've also noticed if I just put a higher res image in drawable it get's upscaled / downscaled automatically is that correct? Jun 25 16:03:01 help Jun 25 16:03:18 I have 2 textviews... Jun 25 16:03:56 one saying "This app -" and the second saying "is lisceaned" Jun 25 16:04:09 but i want to stack them on top of each other Jun 25 16:04:14 at the the bottom Jun 25 16:04:40 with the first text slightly more left than the second Jun 25 16:04:40 help Jun 25 16:05:18 code1: it doesn't matter what the resolution of the image is; it'll be considered -mdpi by android and scaled accordingly for the device. Jun 25 16:05:24 Ginger: and? Jun 25 16:05:40 Ginger: Learn how to use RelativeLayout or LinearLayout Jun 25 16:05:56 also, you'll want to learn how to write "licensed" Jun 25 16:06:10 also, you can really just have a multi-line text field instead of using multiple textviews Jun 25 16:07:06 ooooh Jun 25 16:07:16 forgot about relativelayout Jun 25 16:07:58 lov: so what drawback is there to just using drawable with high-res images and have the system scale accordingly? Jun 25 16:08:20 if I have something that is basically keeping time since a button was pressed - like I click a button and it sets the start time to "now" and then I come back every day and it shows me how many days are remaining until the end time, would I want to use a Date and/or Calendar classes for that? Currently i'm doing it all in milliseconds using longs and the code seems to be a little overly complex for something this simple Jun 25 16:08:29 code1: ok, so. Jun 25 16:08:43 do you understand what mdpi, hdpi, xhdpi MEAN? Jun 25 16:08:53 yes Jun 25 16:08:57 tnzr: use longs. Jun 25 16:09:13 tnzr: Store the start time in shared prefs or something, do a conversion when you do your layout. Jun 25 16:09:18 code1: what are they? Jun 25 16:09:50 lov: they refer to different screen density/resolutions Jun 25 16:09:54 right. Jun 25 16:10:05 So if you have an image which the device thinks is mdpi, and it's an hdpi device Jun 25 16:10:08 what happens to the image? Jun 25 16:10:36 it'll look smaller? Jun 25 16:11:05 effectively, but do you know why? Jun 25 16:11:14 actually, not even. Jun 25 16:11:20 do you know what happens behind the scenes? Jun 25 16:11:27 do you know what upscaling and downscaling is? Jun 25 16:12:25 Yes but I think we are talking about slightly different things, I should have been more specific - I'm refering to icons - such as launcher, status etc - which I believe are a fixed sized Jun 25 16:12:37 ok, I'm going to just tell you. Jun 25 16:12:45 If you have an image which the device thinks is mdpi, and it's an hpdi device Jun 25 16:12:50 it's going to take that image and scale it up by 1.5x Jun 25 16:12:57 so it's going to take your 60x60 icon, and put it into a 90x90 space Jun 25 16:13:05 it's going to do that because the display density is higher Jun 25 16:13:14 so even though it's more pixels, it looks exactly as wide as on an mdpi device Jun 25 16:13:26 so, if you take an xhdpi image, and put it into drawable Jun 25 16:13:30 and look at it on an hdpi device Jun 25 16:13:36 it's going to take that image and make it 1.5x as large, then display it Jun 25 16:13:46 not only will it look bad, but it's probably not what you wanted either. Jun 25 16:14:10 this is why you should put your icons into -mdpi, -hdpi, -xhdpi, etc yourself Jun 25 16:14:25 for xhdpi instead of hdpi, replace 1.5 with 2.0 Jun 25 16:14:32 lov: that's not what happens in my experience. I've put a 64x64 pixel status icon in drawable and it has downscaled it correctly Jun 25 16:14:48 unless you're using an ldpi phone it's not downscaling. Jun 25 16:14:54 it's upscaling Jun 25 16:15:02 and that's what it's supposed to do Jun 25 16:15:06 it takes that 64x64 image Jun 25 16:15:09 doesn't find one in -hdpi Jun 25 16:15:16 and just takes that image and resizes it and uses it. Jun 25 16:15:19 it looks shitty, but it works. Jun 25 16:15:29 it's a fallback for the case of the lazy dev (you) not having an appropriately sized icon Jun 25 16:16:09 Can you do this? Yes. Should you? Generally no. Jun 25 16:16:17 If you only have like 10 images total in your app, it doesn't matter. Jun 25 16:16:22 If you have 500 images, things get very confusing Jun 25 16:16:31 then if you have a lot of xml resources, it gets troublesome trying to find the right one Jun 25 16:16:57 xml drawable resources in drawable, mdpi images in drawable-mdpi, hdpi images in drawable-hdpi, xhdpi images in drawable-xhdpi (ldpi if you have them in -ldpi) Jun 25 16:17:02 if you do that, you won't go wrong. Jun 25 16:17:40 funktronic, what about scala Jun 25 16:18:48 lov: what do you mean by it doesn't mater if you have 10 but confusing if you have like 500? Jun 25 16:19:23 hi all, is there a way to change color of setError in EditText .. it is that pink color.. i would like to change it to some blue.. to match my app Jun 25 16:20:50 pfn: wondering if anyone is using it and how sucessfully Jun 25 16:21:32 code1: I mean if you have 500 images, and a bunch of xml drawable resources, it's obnoxious to have them intermingled because it's tough to find what you're looking for sometimes. Jun 25 16:21:44 funktronic, not lots of people, but there are Jun 25 16:22:43 lov: you mean images mixed in with the xml, whereas they wouldn't normally be in the same directory if properly seperated? Jun 25 16:23:16 lov: do you have any idea on my question? Jun 25 16:23:35 correct. Since xml based drawable resources generally don't depend on density, they should probably live in drawable. Jun 25 16:23:48 mbarisa: probably, but I honestly don't care. just call setColor or setPaint or whatever Jun 25 16:24:06 Quick question: How do I write Intents with out using an listener. Like if I just want to run it as part of my main program? Or should I just work on importing the code from the class I want to run into the current class? Jun 25 16:24:38 cythes: Intent i = new Intent(); Jun 25 16:24:54 That will make it run lov ? Jun 25 16:24:54 your question is horribly vague Jun 25 16:24:59 no, that will make an intent Jun 25 16:25:03 I literally have no idea what you're asking Jun 25 16:25:13 it's the android version of "How do I computer?" Jun 25 16:25:16 got a bit of a design question.. I'm currently using all of the android stock drawables and need an icon to represent an action where users can suggest to move an item elsewhere. Don't suppose anyone has any ideas? Had a check to see how dropbox do it but their app doesn't have a move option Jun 25 16:25:18 Hmm code coming up just a moment. Jun 25 16:25:38 Timmaah1201: two burly men moving the bugdroid Jun 25 16:25:40 bbl Jun 25 16:26:48 http://pastebin.stonekeep.com/12172 <--- What is wrong here. Other then unused imports. Jun 25 16:27:02 certainly an option! Jun 25 16:27:16 cythes: what is this i dont even Jun 25 16:27:39 I am guessing that I am going it all wrong. Jun 25 16:27:55 are you trying to open a new activity on click? Jun 25 16:28:08 cythes: you certainly are Jun 25 16:28:16 No I am trying to make it run with out using an onclick. Jun 25 16:28:24 this suggests that you don't know java Jun 25 16:28:33 :/ Jun 25 16:28:50 I have a drawable resource that contains a set of tiles; what would be the most elegant way to create individual drawables of the respective rectangles? Jun 25 16:29:20 lov: what you said makes a lot of sense except the scaling part. I think if you put an icon in drawable it scales it up or down to match the device. For example I put a 64x64 icon and tested it on a hdpi device which uses 48x48 icon size and it looked perfect on the device. Jun 25 16:29:55 wongk: I know enough.... I guess its to the android tutorials again. Jun 25 16:30:02 cythes: you want an intent to start when the user DOES not click on the button? Jun 25 16:31:17 No I want to run the code from inside that code with out the need for a button at all. Jun 25 16:31:34 code1: Icons are 48x48dp, not px Jun 25 16:31:49 The scaling is done when the drawable is loaded, it's not necessarily drawn at that size Jun 25 16:32:13 cythes: you have the basic idea, but your code is misplaced/not in the correct scope Jun 25 16:32:28 So your 64x64px icon is upscaled to 96x96px when it's loaded, then downscaled back to 64x64px when it's drawn Jun 25 16:32:35 Alright... so a bit of reordering should help out a bit. Jun 25 16:32:44 and then fixing the syntax Jun 25 16:32:58 which i assume you adjusted in trying to fix compile errors Jun 25 16:33:05 Depending on the size and detail of the drawable, it can be both expensive to do, but also look like crap Jun 25 16:33:48 SimonVT: ah yes it is dp. Why is it upscaled to 96 then downscaled to 64? Jun 25 16:33:56 wongk: Yeah so everything will run smoothly. Jun 25 16:34:26 Cus you put the icon in drawable/, which is basically -mdpi Jun 25 16:35:05 And the scaling is done when the drawable is loaded Jun 25 16:35:39 Ok that makes sense, why is it then downscaled? Jun 25 16:35:58 Cus you're trying to draw a 96x96px image on a 64x64px canvas Jun 25 16:37:46 Alright I got it down to one error now. Apparenly its with in the name of the intent ie:a.kollar.webb.TTSACTIVITY part. Jun 25 16:38:17 my guess is I need to say what I want the intent to do. Jun 25 16:42:16 SimonVT: Thanks, I understand now. Jun 25 16:42:36 lov: thanks for the help. Jun 25 16:43:04 marissa mayer's kinda cute don't you agree Jun 25 16:44:06 One other thing, android doesn't recommend coloured notification icons, is that a rule or guideline? Jun 25 16:44:14 guideline Jun 25 16:44:23 many apps do it anyway Jun 25 16:44:37 xorgate: yeah that's what I noticed. Jun 25 16:45:19 noone's gonna stop you Jun 25 16:45:28 There are no rules on how your app must look Jun 25 16:48:03 excellent, red flashing / marquee / blinking text, here we come.... ;) Jun 25 16:49:25 of course, colored icons look really ugly next to monochrome default ones ;) Jun 25 16:50:49 Mavrik: for the most part I agree, but I like the coloured sms icons Jun 25 16:53:09 Hi all, I have a custom widget that contains a TabWidget. I'm trying to override the onDraw function to draw something over top of the tab widget but it's being drawn behind it Jun 25 16:53:20 is there a way for me to explicitly draw on a certain z-layer Jun 25 16:53:24 i.e. always on top Jun 25 16:54:09 hey guys first time android dev here longtime java guy, how much of this stuff do I actually need to check? http://i.imgur.com/ScBNN.png Jun 25 16:54:22 Just gotta find the right method to draw in Jun 25 16:54:39 SimonVT: I'm not sure what you mean Jun 25 16:54:44 One of them is called after onLayout, or whatever method child views are being laid out in Jun 25 16:54:58 I don't think it's a parent/child relationship Jun 25 16:55:02 this class just contains a TabWidget Jun 25 16:55:17 it's not my code and I'm new to Android :/ Jun 25 16:55:18 Lord_Zero: you need the sdk for each platform you intend to support/test on Jun 25 16:55:27 It's not a viewgroup? Jun 25 16:55:30 at least in the emulator Jun 25 16:55:34 wongk: whats the generally accepted platfor to dev on? Jun 25 16:55:41 the latest Jun 25 16:55:42 platform* Jun 25 16:55:45 Okay Jun 25 16:55:55 It's a subclass of something that is a subclass of FrameLayout Jun 25 16:55:56 Ill just leave everything as is and click next then Jun 25 16:56:54 Yeah, so you have draw(..), onDraw(..) and dispatchDraw(..) to draw in Jun 25 16:57:01 If you want to draw on top of your tabwidget Jun 25 16:57:11 You gotta find out which one is called after onLayout, and do your drawing there Jun 25 16:57:29 I see Jun 25 16:57:48 which is the base class for all of these draw functions if I want to read more? Jun 25 16:57:52 ViewGroup? Jun 25 16:58:20 Either view or viewgroup Jun 25 16:58:28 great, thanks Jun 25 17:00:51 is it possible to suppress warnings in eclipse inside a layout XML? Jun 25 17:01:31 yep Jun 25 17:02:15 oh I have to go into the lint tool eh Jun 25 17:02:28 Window -> Preferences -> Android -> Lint Erroe Checking -> Right Side Scroll Down Until Accessibility -> Content Description -> Severity -> Select Ignore -> Apply Jun 25 17:02:55 Thylith: ahh dang Jun 25 17:03:10 I was hoping I could suppress them from within the code to possibly fool FindBugs into thinking there were less warnings Jun 25 17:03:57 hmm Jun 25 17:05:45 tnzr, have you looked into the warning? :P Jun 25 17:05:54 it might be something that is good for a "todo".. Jun 25 17:06:07 Why does android.test.mock.MockApplication actually exist? insofar as I can tell, all it does is throw exceptions. Jun 25 17:06:25 for JUnit mocking Jun 25 17:06:32 Thylith: yeah it's just a "[Accessibility] Missing contentDescription attribute on Jun 25 17:06:41 image" warning (sorry for rogue paste) Jun 25 17:08:09 i have a splash screen that runs an asyntask to download an xml file and then parse it.. but its opening the activity too soon. I've tried creating handlers that wait but that hasn't helped. Whats the best way to fix it? Can pastebin if needed but its across 3 classes so might be a lot! Jun 25 17:08:40 the splashscreen itself is an activity Jun 25 17:09:11 hey guys i made a picking ray for my android app but i need to figure out at what point exactly my picking ray intersects with an object. does anyone know how to do this? Jun 25 17:09:30 what do you mean "It's opening the activity too soon" Jun 25 17:09:38 bakis: probably with math, gl w/ that. Jun 25 17:09:43 tnzr, you can use @SuppressWarnings("value") Jun 25 17:09:51 hahaha thanks. Jun 25 17:10:03 Thylith: in an XML? Jun 25 17:10:19 oh right sry Jun 25 17:10:20 :P Jun 25 17:10:36 :) You briefly gave me hope Jun 25 17:10:44 Timmaah1201: show us some source Jun 25 17:11:01 bakis: what sort of objects Jun 25 17:11:14 meshes, or quads? Jun 25 17:11:36 quads Jun 25 17:11:44 and you're using opengl to draw them? Jun 25 17:11:47 yeah Jun 25 17:12:07 http://pastebin.com/D9ccN7ze Jun 25 17:12:08 you can do a simple bounding sphere collision check against hte ray to determine which object is likely to be hit Jun 25 17:12:20 then transform the ray into the quad's space using the inverse of its model matrix Jun 25 17:12:25 and then check it against the 0..1 bounds Jun 25 17:12:32 you'll have an exact %x %y point on the quad Jun 25 17:12:33 that the ray hit Jun 25 17:12:51 yes but you'll need to provide source code that he can copy/paste verbatim Jun 25 17:12:59 this is all well and good but you're not solving his problem Jun 25 17:13:10 <3 Jun 25 17:13:28 haha i mean that sounds like a great idea, but i have no idea how to do a bounding sphere collision check Jun 25 17:13:39 point to line distance Jun 25 17:13:42 check it against the sphere's radius Jun 25 17:13:58 sorry its missing the private myRunnable class that just calls parseFile() when its run Jun 25 17:14:26 okay...... Jun 25 17:14:45 if that's not making sense to you you might want to invest in an existing solution Jun 25 17:15:14 there's nothing wrong with not knowing sphere collision, but it implies that the steps following that to get a specific collision point are going to be a lot tougher for you Jun 25 17:15:21 if you're doing this to learn, google away Jun 25 17:15:52 haha alright.. i'll try to learn it. Jun 25 17:16:03 hey guys, can anybody tell me about convention in naming variables, beginning them with lowercase "m" (e.g. mServiceHandler, mServiceLooper etc.), what does it mean? Jun 25 17:16:04 if you have access to the depth buffer an easier way to do this with "good enough" precision is to get the depth value at mouse (x,y) and then transform that window(x,y,z) into world(x,y,z) Jun 25 17:16:22 konradyx: m means it's a member variable Jun 25 17:16:30 konradyx: it belongs to the class you're in Jun 25 17:16:46 haha i'm using so much more multivariable calculus than i ever thought i would haha Jun 25 17:17:12 on to my own question: Jun 25 17:17:33 I have a class that contains a tabwidget, in the class's onDraw function I draw a line onto the canvas and it is appropriately on top of the tab widget Jun 25 17:17:39 however if I draw a bitmap, it's behind Jun 25 17:17:43 what do Jun 25 17:17:47 thanks InanTop Jun 25 17:17:49 konradyx: it's called Hungarian Notation Jun 25 17:18:05 InanTop: the problem is that you're using tabs :( Jun 25 17:18:13 thx lov, i'll google it :) Jun 25 17:18:14 InanTop: tabs are old and broken, fragments are the new hotness Jun 25 17:18:24 lov: unfortunately I'm just a bug fix / featur improve guy right now Jun 25 17:18:28 lov: I don't make the call Jun 25 17:18:52 InanTop: unfortunately, there are a lot of questions that have "oh and it's in a tabwidget" that can be answered by "known issue, will never be fixed" :( Jun 25 17:19:22 can I force something to be drawn at the lowest depth Jun 25 17:19:26 a hacked solution is fine too Jun 25 17:19:35 wongk: Thanks for the tip that helped out quite a bit! Jun 25 17:19:57 InanTop: I'm not sure what to suggest, unfortunately Jun 25 17:20:10 stackoverflow is the best thing I can say Jun 25 17:20:20 I'll ask around the office first, I'm not an Android guy Jun 25 17:20:22 thanks though Jun 25 17:23:33 InanTop: override dispatchDraw I think Jun 25 17:23:56 InanTop: and don't call through to super until after you've done your drawing Jun 25 17:24:03 evancharlton: I'll give that a shot, thanks. would that explain the difference in behaviour between drawLine and drawBitmap? Jun 25 17:24:12 probably not Jun 25 17:28:35 dawnLine you draw a line, drawBitmap you are drawing a bitmap... Jun 25 17:29:54 <_The_Fred> hello Jun 25 17:29:59 <_The_Fred> why would a global boolean change its state in one method, but not in another? Jun 25 17:30:08 <_The_Fred> this makes no sense Jun 25 17:30:27 <_The_Fred> its declared before onCreate Jun 25 17:30:27 either you found a bug in java or you have to be more specific Jun 25 17:30:40 your question makes no sense. Jun 25 17:30:50 being declared before onCreate doesn't make it "global" Jun 25 17:30:53 is it "static" ? Jun 25 17:30:59 if it's not static, it's a member instance variable Jun 25 17:31:07 <_The_Fred> no, its not static Jun 25 17:31:18 which means that when your activity (I'm assumuing your class here is an activity) is destroyed (say, the phone is rotated), it will be destroyed and recreated Jun 25 17:31:26 which means that your boolean gets its initial value back Jun 25 17:31:29 because it's not "global" Jun 25 17:31:33 <_The_Fred> right Jun 25 17:31:47 <_The_Fred> first off ive forced the app into portrait only Jun 25 17:32:01 <_The_Fred> second, i added toasts to show the state of the boolean Jun 25 17:32:11 <_The_Fred> it changes as it should with a toggle button Jun 25 17:32:28 <_The_Fred> but then into another method its state is always true Jun 25 17:33:17 <_The_Fred> lov, so making it a public instance would be what i need? Jun 25 17:34:12 evancharlton: dispatchDraw didn't fix the issue but thanks for the suggestion Jun 25 17:35:36 jesus theres a lot to download before you can start coding Jun 25 17:37:33 lol Jun 25 17:40:59 hi all. am i going about this wrong. In my XML i have defined a listview, i have a from above the list view, when a user clicks a button i want an item added to the listview Jun 25 17:42:38 Lord_Zero: I know what you mean... Everything i have running just to do droid programming is likely taking up more HDD space then my whole OS. Jun 25 17:42:44 JaredCE: then? Jun 25 17:43:01 JaredCE: there is nothing wrong in the descripton.. Jun 25 17:43:13 cythes: -_- its crazy. But id rather have this than code Apple apps in xcode on some mac Jun 25 17:43:25 i've just read a few comments on sites that suggest instead of a listview you should use a scrollview? edwinkcw Jun 25 17:43:38 scrollview? Jun 25 17:44:04 listview and scrollview are for completely different purposes Jun 25 17:44:07 JaredCE: it depends on your data, if your data is a list of data, you should use listview Jun 25 17:44:41 Lord_Zero: I think I'm going to vomit now... (I'm a linux user... More to the point arch linux I'm a proud that I pretty much built my OS. The mere mention of Mac makes me want to.... Well you get it...) Jun 25 17:44:53 a scrollview should be for? Jun 25 17:44:58 cythes: are you on arch? Jun 25 17:45:03 I am Jun 25 17:45:17 :) nice choice Jun 25 17:45:34 JaredCE: usually, scrollview are for a view that is too large for display, and you need to allow people to scroll Jun 25 17:45:40 JaredCE: containing controls that may not be able to be displayed fully on the screen Jun 25 17:45:46 <3 arch... Used to like ubuntu not saying its a bad OS, just not what I was looking for. Jun 25 17:46:11 so it turns out I was wrong about drawLine working, it just happens that there's a 1 pixel gap at the bottom Jun 25 17:46:19 the majority of views for android should have a scroll view, if they do not have another srolling element like a list view Jun 25 17:46:37 wongk: reli? TextView? Jun 25 17:46:48 Lord_Zero: I take it you are new to android dev? I am as well. I already gave wongk a migrane today. Jun 25 17:47:15 thanks edwinkcw Jun 25 17:47:18 haha yeah he seems really helpful. Yes I am a new dev. Not "new" to java but new to this platform Jun 25 17:47:22 i am running into a few kernel crashes while scrolling webview horizontally with the hardware acceleration on Jun 25 17:47:26 cythes: whats your first project? Jun 25 17:47:30 what's the best way to debug it Jun 25 17:48:04 I am new to all of it... Also Lord_Zero My first project is to build an app that is likely WAY beyond my skill set.. Jun 25 17:48:08 chouman: just run. as fast as you can. Jun 25 17:48:14 chouman: debug what? Jun 25 17:48:21 the kernel crashes Jun 25 17:48:51 can I make something draw on top of its children Jun 25 17:49:02 chouman: Device or emulator? Jun 25 17:49:02 seems like if i turned off the hardware acceleration then it works better but then performance is pretty bad Jun 25 17:49:06 device Jun 25 17:49:18 mdwright: device Jun 25 17:49:38 cythes: see thats why you have to start small. Im teaching myself how to make a button do something right now using the layout.xml "android.onClick="" Jun 25 17:49:53 chouman: how is your "kernel crash" manifesting itself Jun 25 17:49:54 cythes: just tested it and it works! :) Jun 25 17:49:54 Lord_Zero: True but this is for family... Jun 25 17:50:19 cythes: http://i.imgur.com/zMXSO.png Jun 25 17:50:24 cythes: whats the app supposed to do? Jun 25 17:50:38 Guys what is needed to make my app to be as launcher? I mean when I hit the home button to be in thhe list of selected apps for launcher Jun 25 17:50:42 A pm Lord_Zero? Jun 25 17:50:50 of course Jun 25 17:50:52 And if there is tutorial or something like that I will be glad someone to point me Jun 25 17:50:55 wongk: so basically i am placing a webview within a viewPager so you can swipe left and right to navigate through different web pages Jun 25 17:51:20 wongk: at times when i am swiping left and right, it just crashes Jun 25 17:51:45 and what happens at that point Jun 25 17:51:58 sanity check: you aren't calling restorePicture anywhere Jun 25 17:52:17 nope i am not calling that Jun 25 17:53:09 dispatchDraw solved my problem in the case where I called super BEFORE drawing what I wanted to be on top Jun 25 17:53:37 Anyone to help with my question? Jun 25 17:53:42 so the app just close itself and from the crash i see stack around libwebcore.so and also libhwui.so Jun 25 17:54:13 chouman: so just so we're clear, this has nothing to do with the kernel, your app crashes Jun 25 17:55:21 wongk, yes sorry i worded it wrong, app crashes Jun 25 17:55:52 you've perhaps got a bug in webview... but that is going to be a beast to debug Jun 25 17:56:32 is there a good tool to use to trace the crash dump? Jun 25 17:56:33 i'd first see if you can disable horizontal scolling on the webview Jun 25 17:56:45 a debugger Jun 25 18:05:09 Which is the thing which makes one app to be selectable as launcher? Jun 25 18:05:59 F1rstAid: examine the Launcher2 source in android Jun 25 18:07:00 wongk well I am doing that but I assume this is something in the manifest file or some kind of permission Jun 25 18:07:11 it'd have to be Jun 25 18:07:16 an intent filter Jun 25 18:08:01 it's an intent filter Jun 25 18:08:32 and Jun 25 18:08:37 ah thanks Jun 25 18:08:55 yea it seems I miseed the big thing :D Jun 25 18:08:58 thanks a lot Jun 25 18:09:20 uhm Jun 25 18:09:29 that's what makes it runnable *by* the launcher Jun 25 18:10:28 he wants to *be* the launcher Jun 25 18:10:54 oh Jun 25 18:11:07 that's responding to android.intent.action.HOME or something Jun 25 18:11:14 just look at logcat when you press the home button Jun 25 18:12:54 k thanks a lot Jun 25 18:13:10 is there an easier way to do notifications on ICS? Jun 25 18:13:19 Eclipse says a bunch of stuff is outdated Jun 25 18:13:49 Notification.Builder Jun 25 18:14:04 NotificationCompat.Builder in the support lib too Jun 25 18:14:10 word Jun 25 18:14:34 Eclipse should deprecate itself as out of date Jun 25 18:14:41 hah Jun 25 18:14:47 JakeWharton: i have a question with indeterminate progress in abs Jun 25 18:14:57 is bug or feature, turn on automatically when i change orientation? Jun 25 18:15:23 i checked demo, and if i press disable, change orientation, its appear Jun 25 18:16:48 it's turned on when you request it Jun 25 18:16:55 the activity is destroyed and recreated when you rotate Jun 25 18:17:21 yes, but i do a test, when it was hide in oncreate Jun 25 18:17:44 Holy cow notifications might as well be in their own class in your app Jun 25 18:17:51 Thats a lot of lines of code for a single popup Jun 25 18:18:08 it's like 5-8 lines with the builder Jun 25 18:18:48 but now im not sure, not only i touched code, tomorrow i check from office :) Jun 25 18:19:24 _The_Fred: learning java is what you need to do. Jun 25 18:19:26 JakeWharton: can you paste me an example? I am using the third answer down here http://stackoverflow.com/questions/6391870/how-exactly-to-use-notificiation-builder Jun 25 18:19:54 <_The_Fred> lov, thanks for the suggestion, and this is what im doing:) Jun 25 18:20:05 my notification method is about 27 loc... nothing really Jun 25 18:20:17 that's mostly right Jun 25 18:20:40 JakeWharton: whats he mean by ctx? Jun 25 18:20:45 probably context Jun 25 18:20:51 <_The_Fred> lov, its people like you that take the time to point me in the right way that are a real asset. Jun 25 18:21:18 _The_Fred: seriously though. You should be in #java not #android-dev Jun 25 18:21:32 if you don't know the language you can't really do android, not without running into significant errors Jun 25 18:21:40 I'm not (just) trying to be flippant here Jun 25 18:21:55 JakeWharton: oh I see, also whats this? YOUR_PI_REQ_CODE Jun 25 18:22:11 your pending intent request code? Jun 25 18:22:20 <_The_Fred> lov, understood, thanks Jun 25 18:22:38 JakeWharton: I must be in over my head -_- first time android dev here, not new to Java though Jun 25 18:23:03 notification are not the place to get started Jun 25 18:23:15 learn activities and intents first Jun 25 18:24:28 is there a telnet command to simulate signal strength change? Jun 25 18:24:29 wongk: good point. I just whipped up an app and figured id try to see what I could/couldnt get a button to do. Ill start on what you mentioned Jun 25 18:24:37 like similar to the one to simulate location change? Jun 25 18:26:17 does anyone know a good simple tutorial for dynamically adding items to listviews Jun 25 18:26:51 listOfThings.add("Dynamic Thing"); adapter.notifyDataSetChanged(); Jun 25 18:27:03 where adapter knows about listOfThings Jun 25 18:28:05 if i start activity B from A with clear task on reset, but i want to start C without that flag, how to do that? Jun 25 18:28:26 C gets automatically clear task on reset if started from B Jun 25 18:28:39 JakeWharton, i need a little more than that, i don't really understand it properly Jun 25 18:30:39 does anyone know? Jun 25 18:34:32 is this style of newlines common? if (blah) {\n/*code*/\n}\nelse {\n ... Jun 25 18:34:36 i've seen two people do it now Jun 25 18:34:57 braces on the same line as the previous statement, but the brace is always the last thing on a line Jun 25 18:35:12 Hi, can the SDK Manager actually update itself, or is it just a case of uninstalling and reinstalling to get updates? It seems a bit retarded, to be honest. It's trying to move the directory from which you launch the SDK manager, which it obviously can't do! Jun 25 18:35:26 it can do it Jun 25 18:35:44 "Error, I can't remove myself during this update... duhh..." Jun 25 18:35:58 i have had that kind of problem befire, yeah. Jun 25 18:36:12 canadiancow|work: i use that style Jun 25 18:36:22 Seriously, how could that ever work? ;-) Jun 25 18:37:35 it does work, most of the time. seems like windows people have it go wrong most Jun 25 18:38:42 g00s: Yeah I've had to put my old windows HD back into this laptop (usually have Linux on anSSD on it) as I need some windows-only software. So I'm trying to update eclipse/SDK. Stupid idea really. I should know it's better to wipe and reinstall Jun 25 18:40:09 At least I'm on a fast-ish 100Mb connection. Just install Eclipse and the Android tools again :-) Jun 25 18:54:31 Smashcat_: you'll have to update again with the new sdk coming out :) Jun 25 18:56:25 Heh, yeah well I'll only be using this windows install this week. Then swapping the SSD back in - this hard drive is painfully slow! Jun 25 18:58:46 I want to capture Log output (that normally goes to Eclipse LogCat) and display in a textbox on the Android app itself. How do I do that? Jun 25 19:00:56 msponge: I don't think you can capture the system messages. They're from the OS Jun 25 19:01:33 Smashcat: of course you can. Jun 25 19:01:51 msponge: Just run the adb command from a shell process and capture the stream. Jun 25 19:01:55 hwrd|work: ok... Jun 25 19:02:39 So that will work on the Android device will it? Jun 25 19:02:52 hwrd|work: I'd like to do it within an activity of the application itself, is that just spawning a process and capturing its STDOUT then? Jun 25 19:02:54 msponge, logcat? exec logcat and capture the input Jun 25 19:03:36 msponge: yep Jun 25 19:03:44 ok, thanks Jun 25 19:03:52 msponge: Something like Process.getRuntime(stuffstuff) Jun 25 19:04:06 there are a bunch of apps that capture the log and show it in a View w/o root . should be basic Jun 25 19:04:41 i think i use CatLog. you may want to check it out Jun 25 19:05:31 I will, thanks Jun 25 19:06:06 ah, some good numbers to sink one's teeth into http://www.infoq.com/news/2012/06/Developer-Economics-2012 Jun 25 19:06:35 msponge: http://www.androidsnippets.com/how-to-capture-application-log Jun 25 19:06:54 canvs2321: nice, thanks! Jun 25 19:07:48 msponge: and example app http://code.google.com/p/android-random/source/browse/#svn/trunk/Logcat Jun 25 19:24:14 dislike people taking crown copyright images and using them without a license on the android marketplace Jun 25 19:24:35 what i will do about it: moan, what will come of that: nothing Jun 25 19:32:47 Is there any point in including the gen directory in the repository for a FOSS project? (or is it most likely a mistake?) Jun 25 19:33:47 it should be excluded Jun 25 19:33:47 no Jun 25 19:34:34 Aight, thanks pals! ; ) Jun 25 19:45:47 gaz`: did you see this ? http://developer.android.com/training/displaying-bitmaps/index.html not sure if its new or not ... Jun 25 19:49:43 Dear gods of #android-dev I humbly come before you once more on this day to ask for help. As I am lost in my venture! When I run my code it runs just fine but when I input a number to be registered it wont display it on the line below! Here is the code: http://pastebin.stonekeep.com/12173 Jun 25 19:50:25 brb Jun 25 19:50:43 there's no good way to piggy back onto the BuildConfig.java generation is there? Jun 25 19:51:23 herriojr: what the holy hell are you trying to do? :) Jun 25 19:52:33 the code that I took over needs configurations before build (basically, the person was doing it all manually), and I'd like to automate Jun 25 19:53:54 because, unfortunately, we can't use a single apk, we have to use 2 Jun 25 19:53:55 herriojr: so, i've had some success with build automation by using res/ in a somewhat clever way. Jun 25 19:53:56 huh? Jun 25 19:54:14 jasta: I'd like to do that, but due to how the application was designed, it makes it quite difficult Jun 25 19:54:26 locally, developers create "override" config files in res/values-v1/foobar.xml, with the production defaults in res/values/foobar.xml Jun 25 19:54:26 piggyback onto buildconfig generation... Jun 25 19:54:38 Does anyone know if its possible to disable the list selector animation for a row on a per-row basis? Jun 25 19:54:44 herriojr, replace the sdklib.jar's BuildConfig generator with your own Jun 25 19:54:47 the build server writes some of these res/values/foobar.xml files with build-specific stuff Jun 25 19:55:04 herriojr, and why not just write your own ant task? Jun 25 19:56:31 pfn: not disagreeing with that, when I saw the BuildConfig class, I assumed it might already be in place for build configuration Jun 25 19:56:50 BuildConfig is relatively dumb Jun 25 19:57:02 it just generates a single DEBUG variable for true or false, and that's it Jun 25 19:57:04 oooo, ida apparently supports android now Jun 25 19:57:10 debugger? Jun 25 19:57:38 pfn: yeah, when I saw that I assumed it might also support custom build configurations as well Jun 25 19:57:49 ok anyways, I'll just do the ant task Jun 25 19:57:50 herriojr, yeah, it doesn't, it's generally useless Jun 25 19:58:01 I was trying to avoid re-inventing the wheel Jun 25 19:58:11 the wheel actually serves a purpose Jun 25 19:58:32 pfn: yeah Jun 25 19:59:14 also: Android needs multiple apk support for processor architecture on the market Jun 25 20:00:23 herriojr: ... I think that one is available Jun 25 20:00:35 I haven't seen that or docs on it Jun 25 20:01:01 yeah that's been out for a few months now Jun 25 20:01:17 different opengl texture compression, different screen config, and different platform versions is what I see Jun 25 20:02:57 http://pastebin.com/xe5hHQFX i'm trying to add TextViews to a listView, however my code must be wrong because when i run it I get android.widget.TextView@4b4cee (similar). what dull mistake am i making? Jun 25 20:03:15 so when a large .so has to be included, either I have to download it after my app installs or I have to include all the .so files into a single apk Jun 25 20:03:48 again, Market only supports API Levels, Screen Sizes, and OpenGL Textures Jun 25 20:03:54 JaredCE: whoa Jun 25 20:04:05 g00s...? Jun 25 20:04:16 JaredCE: put the data in the model, not the views :) Jun 25 20:04:35 Does anyone know if its possible to change a ListSelector for a row on a per-row basis? Jun 25 20:04:41 your arrayList will be strings or something, not Views Jun 25 20:06:20 I specifically bring this up the processor architecture thing because any video editing with Android is generally going to be done using ffmpeg, which is fairly large even when configured for less. Jun 25 20:06:56 JaredCE: what you are seeing is the result of calling toString on a TextView Jun 25 20:07:25 Hey, If I start a child activity using startActivityForResult, can I somehow see if activity gets paused and then resumed? Jun 25 20:07:27 unless of course, Android will support hardware video processing without requiring it come from the camera or being played Jun 25 20:07:36 such as video resizing, etc. Jun 25 20:07:41 herriojr: well! Jun 25 20:07:49 phasip: but who would be asking :P Jun 25 20:07:57 lov: yes? Jun 25 20:08:17 phasip: the parent activity will be paused, maybe even destroyed Jun 25 20:08:29 herriojr: if I recall, you can make different builds for different architectures using the project.properties file Jun 25 20:08:40 the issue is the market Jun 25 20:08:45 I forget the name of the flag but it's the same as when you make different resolutions Jun 25 20:09:00 http://developer.android.com/guide/google/play/publishing/multiple-apks.html Jun 25 20:09:03 herriojr: doesn't market disambiguate by architecture as well? Jun 25 20:09:12 s/disambiguate/distinguish/ Jun 25 20:09:15 unless the docs are out of date Jun 25 20:09:18 no Jun 25 20:09:25 ah, guess not Jun 25 20:09:26 poo Jun 25 20:09:33 wongk, right i thought it might be... Jun 25 20:10:11 g00s: Actually I only need the information when the parent activity is resumed but it seems like it is paused upon starting of the child and then resumed when the child finishes Jun 25 20:10:28 wongk, what should i change it up to... i'm guessing from g00s said i shouldn't be using ArrayList? Jun 25 20:10:53 JaredCE: you should be putting Views in an adapter Jun 25 20:10:55 er Jun 25 20:10:58 you should not Jun 25 20:10:59 phasip: why do you want to know if an activity startedForResult is paused/resumed in the calling activity? Jun 25 20:11:07 oh right Jun 25 20:11:47 tbh i don't really fully understand the whole adapter listview business Jun 25 20:11:53 adapters create views to display the data you give it Jun 25 20:12:00 you're not giving it data Jun 25 20:12:28 i'm giving t views... right ok Jun 25 20:12:34 phasip: the reason I ask is because you might be trying something weird Jun 25 20:12:45 phasip: as in there's a better approach Jun 25 20:12:59 JaredCE: you don't give an adapter views. its the other way around. Jun 25 20:13:27 data => adapter => listview Jun 25 20:13:42 so, your adapter is given data, and it gives listview views that match that data. Jun 25 20:14:50 jasta: still doing much android dev at the startup or in your free time ? Jun 25 20:16:40 of course :) Jun 25 20:16:44 :) Jun 25 20:17:07 although i do spend a frustrating amount of my time herding cats Jun 25 20:17:21 I thought you had a dog? Jun 25 20:17:50 if only my coworkers could be that smart :) Jun 25 20:18:26 im being too hard on them, but let's just say shifting culturally out of the "startup" mindset has been difficult Jun 25 20:18:30 JakeWharton: Just made SwipeToDismissNOA crash, but there's no Issue tracker for the project. Want the logcat? Jun 25 20:18:40 "real engineering? design? no thanks." seems to be the consensus. Jun 25 20:18:49 kakazza: IndexOutOfBounds? Jun 25 20:19:33 herriojr: Actually, I am trying to do the MediaStore.ACTION_IMAGE_CAPTURE, and remove possible duplicates, but I want to be sure nobody pauses the camera I launched and take pictures and then resumes and I delete all pictures =/ Jun 25 20:19:37 https://gist.github.com/2990984 Jun 25 20:20:31 wow.. it looks old-school in here Jun 25 20:21:09 kakazza: it's probably a bug in the original implementation Jun 25 20:21:14 JakeWharton: That's the Exception. But now that I tried to recreate it, it was IndexOutOfBounds. First one was NullPointerException. Jun 25 20:21:34 cretin45: still at tmo ? Jun 25 20:21:45 no.. samsung now Jun 25 20:21:48 Ok, so nothing to report? Jun 25 20:21:49 :) Jun 25 20:22:15 g00s: even more backwards Jun 25 20:22:28 oh noes. looks like lov really messed the place up :D Jun 25 20:22:44 he just got the hell out Jun 25 20:24:26 phasip: sorry, I'm still slightly lost Jun 25 20:24:49 god i look through what i write and sometimes i can be such an idiot Jun 25 20:24:54 phasip: when do you delete? Jun 25 20:25:07 JaredCE: I'd cut down on the booze Jun 25 20:25:20 booze helps me code, i swear Jun 25 20:25:39 phasip: basically, explain the use case of the functionality you are doing Jun 25 20:26:26 kakazza: you might want to try it with the original from Roman Nurik and then comment on his gist if it's still present Jun 25 20:26:40 i was able to get an out of bounds exception on the original Jun 25 20:27:49 Will try, thanks. Jun 25 20:28:23 anything logic-related like that should be relayed to him, all i did was change a few imports :) Jun 25 20:32:10 Hope he makes it into a project instead of a gist. Jun 25 20:33:47 herriojr: Ah, nvm trying a different approach. But basically I am trying to get around a known bug in some android devices Jun 25 20:45:40 io starts in 2 days! Jun 25 20:45:47 eh. Jun 25 20:45:54 everyone gets a $200 tablet. Jun 25 20:46:02 lov, when did you turn canadian? Jun 25 20:46:18 heh, i dont care about the gear, just want the t-shirt Jun 25 20:46:20 different usage of "eh" Jun 25 20:46:34 i noticed the first 2 days of android talks seem to be recorded, but the 3rd isn't ? or i'm misunderstanding the website Jun 25 20:46:38 How do I release android apps for my company? What name, email, and phone number am I supposed to put on this page? https://play.google.com/apps/publish/signup What are they used for? Jun 25 20:46:38 this is the resigned grunt, not the affirmation Jun 25 20:46:53 oh, more like meh? Jun 25 20:46:55 tiglionabbit: stalking you Jun 25 20:46:59 birbeck: yes Jun 25 20:47:18 lov: I mean is it supposed to be my personal information or stuff that is general to the company? Jun 25 20:47:19 any good meetups? Jun 25 20:47:27 tiglionabbit: stuff that is general to your company, obviously Jun 25 20:47:33 it's not obvious Jun 25 20:47:46 birbeck: hay! Jun 25 20:47:48 we registered that way on Apple's system and they rejected us because it was supposed to be a specific person Jun 25 20:47:54 what's wrong with canada Jun 25 20:47:57 this page doesn't say anything about what it's for Jun 25 20:47:58 but ok Jun 25 20:48:03 he meant eh! Jun 25 20:48:05 i hope they soon make some way for updates, its going crazy Jun 25 20:48:06 what will they use the email address and phone number for? Jun 25 20:48:10 canadiancow: i didnt say there was anything wrong with canada Jun 25 20:48:16 canadiancow: i love canada Jun 25 20:48:19 :D Jun 25 20:48:38 tiglionabbit: always make a company email for uploading to the market, etc. Jun 25 20:48:46 tiglionabbit: google emphasises expert systems and automation. apple emphasises finding new and innovative ways to screw you over. Jun 25 20:48:58 tiglionabbit: you'll get automated emails to whatever address you provide. Jun 25 20:49:00 that's about it. Jun 25 20:49:05 ok Jun 25 20:49:07 you can always change the email Jun 25 20:49:10 lov: apple is also finding new ways to screw over expert systems :) Jun 25 20:49:20 it's basically contact information for whoever your group is so that they can contact you for whatever necessary reason Jun 25 20:49:25 I've never been called by google, if that helps. Jun 25 20:49:26 so they want to screw over everybody :D Jun 25 20:49:33 (not by google play, anyway!) Jun 25 20:50:53 cant seem to find any good guides on widget UI design Jun 25 20:51:03 any qr-code expert here? I want to integrate qr-code generation and qr-reading in my app. So far the app is free but probably It will have some in-app paid services in the future. Do you know some libraries that are free even for commercial use? The generation could also be made on the server with a php-libarry and then shown to th e user on the app in a webview. Jun 25 20:51:45 brx_: they are supposed to add something to the design site; it was discussed a few months ago Jun 25 20:51:56 :( Jun 25 20:52:09 mine always look really minimal and bleak Jun 25 20:52:20 do you mean widget like home screen widget, or a custom view that blends with holo or some theme well ? Jun 25 20:52:30 salentinux: you could ask the resident expert google.com? Jun 25 20:52:36 as in AppWidgetProvider Jun 25 20:52:39 you just have to be careful. Ask him questions like "qr-code library android" Jun 25 20:53:00 ye home screens Jun 25 20:54:41 lov: I did, and I'm doing it... Jun 25 20:58:38 salentinux: I did a search for "android qr-code library" Jun 25 20:58:43 guess what the first thing I found was? Jun 25 20:58:45 just guess, i dare you Jun 25 20:58:59 ok I'll just tell you Jun 25 20:59:00 http://code.google.com/p/zxing/ Jun 25 20:59:01 it was that. Jun 25 21:00:30 it is like the most famous android library Jun 25 21:00:40 damn lov, you got some mad google skillz Jun 25 21:00:52 SimonVT: :) Jun 25 21:01:31 I've never seen Googling done so elegantly. Jun 25 21:02:07 oh it reminds me of those days when Altavista was big Jun 25 21:02:35 makes me think of parks and recreation :P Jun 25 21:03:51 Does anyone know why my App's homepage on Google Play, has extremely low quality screenshots? I took the screenshots off of the ADB and I just edited them a bit in photoshop. The screenshots are 320x480. I have no idea why Google Play has compressed them, because they look like crystal clear .PNG files in photoshop, however on Google Play it looks all compressed, as if it was in a low Jun 25 21:03:51 quality .JPEG format. Jun 25 21:06:27 Can I make a public void to run an intent from with in a main class? Jun 25 21:06:31 that's like QVGA Jun 25 21:06:32 Well Jun 25 21:06:40 you should take WVGA or WXGA screenshots Jun 25 21:06:44 800x480 Jun 25 21:06:44 I mean the main activity rather. Jun 25 21:07:41 I wanna find a list of "indie" apps. Which are not high ranked. To get inspiration of own projects. Jun 25 21:07:42 cythes: what do you mean run an intent? Jun 25 21:08:18 As in make an intent to start an activity then have it run from with in another activity using a public void statement. Jun 25 21:08:28 or constructor rather. Jun 25 21:10:00 herriojr: I'll just get you the code might be more easy that way. Jun 25 21:10:41 herriojr: http://pastebin.stonekeep.com/12174 Jun 25 21:11:08 But Jake, the screenshots I took look CRYSTAL clear. No compression or anything, they look exactly how I want them to look, and for some reason, Google Play is compressing everything in a low quality format. I don't understand. Jun 25 21:11:26 and your not getting anything right? Jun 25 21:11:35 According to Eclipse there is nothing wrong with it, and it run fine it just does not run the intent. Jun 25 21:11:44 @cythes you need to call run Jun 25 21:11:50 call 'run' Jun 25 21:11:51 probably because it assumes they are large images Jun 25 21:11:54 Cll run? Jun 25 21:11:58 Call run* Jun 25 21:12:04 Lemme look into it. Jun 25 21:12:20 in the onlick, just do run(); Jun 25 21:12:36 i think that will call the method which will go through the intent Jun 25 21:12:58 I dont think your method was getting called Jun 25 21:13:19 Oh.. Jun 25 21:14:22 also, doesnt intent need context? Jun 25 21:14:48 Hey guys, I'm trying to code a program that receive a message and do some stuff extending the BroadcastReceiver. I can see my modifications when the message is received, but I'm trying to Log for debug purpose and the Logcat never shows my messages. Any ideas? Jun 25 21:15:06 joholz: As soon as I run it it works but it cancels out the top code. Jun 25 21:15:20 X-warrior: need to see code or stack traces Jun 25 21:15:23 paste new code Jun 25 21:15:43 Alright gimme a minute my parents just got home I think Jun 25 21:16:20 Does anyone here use the linear acceleration sensor alongside getOrientation? It seems odd that I would need a listener for both linear_accelerometer and gravity, since that's what getOrientation seems to need. Jun 25 21:17:00 ok, so I keep getting a fair number of SQLiteIOException, and after looking up this issue in the code, it is either a permissions issue or /data parition out of space: how common is it for users to run out of space on /data? Jun 25 21:17:12 x-warrior, adb is running, debugging is on, device selected in ddms Jun 25 21:17:12 Here is the code http://pastebin.com/FYZv0eSe Jun 25 21:17:28 as in when I was searching through the Android source Jun 25 21:17:42 joholz, Yes I guess, I receive a lot of LogCat messages but not the ones that my program send Jun 25 21:18:03 herriojr: if i recall, that exception is overloaded for corrupted databases too. did you notice that ? Jun 25 21:18:08 maybe i read the code wrong Jun 25 21:20:37 x-warrior, put some logs in the onCreate() and see what shows up, oncreate should def get hit no matter what Jun 25 21:21:10 X-warrior: Are you using eclipse with a phone connected via USB? Jun 25 21:21:27 MontyCarleau, yes Jun 25 21:21:59 X-warrior: And under the "filter" All messages, do you see reporting about battery level, etc.? Jun 25 21:22:23 X-warrior: Verify that your reporting level is set to debug or verbose. Jun 25 21:22:28 g00s: I'm curious as to how often it would get into this state Jun 25 21:22:53 g00s: as in, is it common on Android Jun 25 21:23:13 X-warrior: the logcat tab in eclipse is probably screwed up. Jun 25 21:23:20 MontyCarleau, I receive a lot of dalvikvm messages, Finsky, and others... The DDMS Debug Level is set to Verbose on (Preferences, Android, DDMS) Jun 25 21:23:24 Make sure that it's not paused. Make sure that it's looking at the right thing. Try clearing it and starting again. Jun 25 21:23:30 herriojr: i'm not sure. i don't think it is common Jun 25 21:23:33 It assumes they are larges images? How? The size of each image is exactly 320x480, exactly how Google Play asked for it to be. So why are the screenshots such low quality? Jun 25 21:24:21 My phone starts loosing memory quickly when i react to OnTouchEvent; action_move this normal? Jun 25 21:24:57 joholz: depending on how poorly you're coding this, yes. Jun 25 21:25:30 Hi, I've been researching and I hope someone can point me in the right direction. Most Camera apps have touch-to-focus functionality but I haven't been able to find anything about it. I know ICS has api for it but I would like something for 2.1 or 2.2 Jun 25 21:25:31 X-warrior: A common Android idiom is Log.i(TAG, "My message"), where TAG is a private final String in the surrounding class. TAG is typically more descriptive than "SMS" - so go change that to something like "MY_SMS_RECEIVER" and then add a LogCat filter that looks for that "MY_SMS_RECEIVER" in the Tag field. Jun 25 21:25:34 Any who know how they do it? Jun 25 21:25:54 Ikee: private api calls. Jun 25 21:26:27 lov: You mean into native code for every manufatorer? Jun 25 21:27:21 not necessarily native code Jun 25 21:27:30 but yeah, every manufacturer will modify the camera app in their firmware Jun 25 21:27:41 you'll notice that most of those camera apps aren't the "standard" camera app that came with AOSP Jun 25 21:28:11 they're likely using their own private API calls to perform camera focusing, etc. Jun 25 21:28:50 i would have to imagine there is a large variance in the capabilities of the camera system; maybe some use phase detection for autofocus while others do not Jun 25 21:29:07 "phase detection"? Jun 25 21:29:13 g00s: one thing I'm worried about is whether some phones do something weird with permissions: basically, when I took over this code, the database was having issues because it wasn't properly handling thread calls, etc., so I moved it off into a ContentProvider w/ an SQLiteOpenHelper and then also noticed that when the person originally created it, it was created with world read/write permissions Jun 25 21:29:16 MontyCarleau, Yes, I saw this on documentation Jun 25 21:29:18 alankila: http://en.wikipedia.org/wiki/Autofocus Jun 25 21:29:20 I always assumed they do high frequenty content analysis to determine if region is in focus Jun 25 21:29:41 X-warrior: And what is the result? Jun 25 21:29:43 lov: But what about apps like instagram, Kamera ZOOM FX have touch-to-focus. How would they go about to do that :s? Jun 25 21:29:46 focus etc is all done entirely in the camera firmware; Android doesn't know anything about how it works Jun 25 21:29:47 the most common i think are phase detection and contrast detection Jun 25 21:29:52 oh my Jun 25 21:29:55 actual hardware trick Jun 25 21:30:00 g00s: so what I did is jumped on the emulator and checked what a newly created db via SQLiteOpenHelper opens as (660) and do a chmod to change the permissions to that Jun 25 21:30:13 iirc there's a camera HAL that provides API to Android Jun 25 21:31:13 if you want to select a few places on the picture to make sure those are all in focus, i would imagine how underlying techniques used (pd/cd) would dictate this possibility Jun 25 21:32:42 Ikee: probably reverse engineering the camera apps on the most popular phones Jun 25 21:33:22 most of your userbase is on the Galaxy S? Buy a Galaxy S, pull the camera app, run it through baksmali, figure it out. Jun 25 21:33:54 ofc the Nexus S camera app is opensource.... Jun 25 21:34:16 That's true, but he's asking about 2.1/2.2 devices Jun 25 21:35:37 hold on. Jun 25 21:35:38 http://developer.android.com/reference/android/hardware/Camera.html#autoFocus(android.hardware.Camera.AutoFocusCallback) Jun 25 21:35:42 that's since API 1. Jun 25 21:36:04 are there devices where that api doesn't work, but the built in camera app does focus? Jun 25 21:36:13 MontyCarleau, wow, I don't know why, but if I use the right way Log.i(TAG, "Message); it worked... but this is strange, no? Jun 25 21:36:15 i'm not so sure about now, but in the 2.1/2.2 days it was not uncommon that camera features were not reported properly by the api. one app i read about maintained a separate db about the capabilities of phone / cameras that were wonky Jun 25 21:36:17 Well yes but it doesn't allow to focus on a specific area where the user touches on the preview area Jun 25 21:37:07 ok, back to "reverse engineering and shitty manufacturers" then Jun 25 21:37:11 g00s: phones still do orientation wrong as well Jun 25 21:37:23 when storing the orientaiton Jun 25 21:37:29 X-warrior: "SMS" seems awfully generic - maybe something else was capturing it. Who knows. Jun 25 21:37:44 herriojr: did changing the permission fix your problem ? Jun 25 21:37:51 MontyCarleau, maybe. Jun 25 21:37:58 i need help compiling ics apps on ubuntu using apktool v 1.4.3 Jun 25 21:38:12 MontyCarleau, lov, joholz , bankai_ thanks for the help ;D Jun 25 21:38:31 X-warrior: sure Jun 25 21:38:50 I get java.lang.VerifyError but the jars are in the buildpath and checked to be exported Jun 25 21:38:54 lov: you know where I can find the source for the Nexus S camera app? Jun 25 21:44:40 Ikee: source.android.com Jun 25 21:44:49 thanks Jun 25 22:02:45 canadiancow: is Zynga going to unleash you tomorrow ? Jun 25 22:02:55 Cow unleashed Jun 25 22:03:00 maybe Jun 25 22:03:03 :) Jun 25 22:03:09 i dont even know what it is Jun 25 22:03:21 they keep talking about "zynga unleashed" Jun 25 22:03:25 canadiancow|work: http://www.theverge.com/gaming/2012/6/25/3116812/zynga-to-unleash-upcoming-games-amidst-falling-share-price Jun 25 22:03:27 but no specifics Jun 25 22:03:32 ah, ok Jun 25 22:03:40 theyre just announcing games? Jun 25 22:03:45 s/they/we/ Jun 25 22:05:43 i dislike when tech blogs know more about what's going on in my company than i do Jun 25 22:07:25 "Google’s I/O homepage just got a big update with only a few days left before the yearly developer conference kicks off." … i guess thats good to know :) Jun 25 22:11:40 Nice, a video panel for what's coming up. Jun 25 22:12:32 Do external libraries HAVE to be in libs folder?? Jun 25 22:13:00 i think things were more lenient before; i use lib/ and it worked - seems like libs/ is what you should be using Jun 25 22:13:29 at least, unmodified, thats what the adt and ant based build system expects Jun 25 22:15:30 computer crashed Jun 25 22:16:28 For some reason the images I have uploaded (screenshots, promotional image) to Google Play on my app's homepage.are extremely blurry and low quality, all though in my image editor (Adobe Photoshop), they are clear as crystal .PNG format. All screenshots are 320x480, exactly how google play asked for them to be. Jun 25 22:16:28 When I look at the images on my app homepage, it's almost as if they are extremely low quality .JPEG images. The images are all compressed and blurry. Any idea how to fix this? Jun 25 22:17:46 Notevision:try upgrading ur pics to a higher resolution, update market then report back? Jun 25 22:18:02 What resolution do you recommend? Jun 25 22:18:07 higher Jun 25 22:18:16 480x800? Jun 25 22:18:28 Also how long does it take for it to update? Jun 25 22:19:16 i've always updated with 480x854 as that is what my screen cap app would do, just try larger Jun 25 22:21:53 Is it possible to view my kernel panic log? Jun 25 22:22:09 Ah I think making the resolution bigger helped a ton with the screenshots. However, there's still the matter of the promotional image, and featured image. For the promo image, it asks that it be 180x120, so what would I do in this case? It's pretty low quality as well. I just want it to be clear. Jun 25 22:23:27 I recently upgraded to the latest OS X version Jun 25 22:23:32 I dunno if that caused the panic Jun 25 22:23:40 sorry wrong channel Jun 25 22:23:42 :P Jun 25 22:27:02 The promotional image has to stay the same size, and doing so will allow it to be compressed and blurry and low quality. Any ideas? Jun 25 22:41:46 Use the sizes they recommend Jun 25 22:44:44 whats the default style used for the panel at the bottom of a dialog where the buttons are? Jun 25 23:06:31 lov: You still there? Jun 25 23:21:13 hi, does anyone have experience with gridview? Is it just me or does it remove the top level layout in the child items. Jun 25 23:21:51 what? Jun 25 23:23:16 well maybe I'm wrong here but it looks like when I call get parent for recycled child items I get an AbsoluteLayout instead of a relative layout like I had inflated. Jun 25 23:24:34 So I create a SurfaceView, and add a callback to its holder, and then set my activity's ContentView to that surfaceview, but the callback's surfaceCreated never gets called - why is that? Jun 25 23:25:29 I have a problem with my mysql database. When I use this class: http://pastebin.com/Mmgm3xx8 I see the first log (City) in my Logcat, but the second log in the if - while section i don't see in the logcat, and I get an empty ArrayList. But logcat doesnt show me an error... Jun 25 23:25:33 jayd16: i think u do it wrong, but now i cant test it; im from mobile now Jun 25 23:27:56 sukramTM: maybe its indexed from 0? Jun 25 23:28:21 why u dont use cursor.getColumnIndex("column_name")? Jun 25 23:29:07 ixc: it have two fields Jun 25 23:29:20 3 fields Jun 25 23:30:35 it looks like it dont start the if - while Jun 25 23:31:17 Has anyone had better luck with the Rotation Vector sensor than SensorManager.getOrientation? Jun 25 23:31:20 sukramTM: log the cursor's count (maybe getCount() method, not remember) Jun 25 23:50:28 are there any xlarge devices that are not running 3.0+ ? Jun 25 23:50:42 so if I add a SurfaceView to an Activity in the XML, how can my SurfaceHolder.Callback.surfaceCreated catch the event when it was created? By the time my activity's onCreate has been called, and I call .addCallback, the surface has already been created - yes? Jun 25 23:51:30 canadiancow|work: it would be kinda cool to be able to query a database for that Jun 25 23:51:51 im just wondering if layout-xlarge is good enough, or if i need layout-xlarge-v11 Jun 25 23:51:56 if i use a PreferenceFragment or whatever Jun 25 23:52:09 there are pre-3.0 xlarge Jun 25 23:52:20 like what? Jun 25 23:52:29 I think the Archos 101 Jun 25 23:52:34 any of the pre-3.0 tablets Jun 25 23:52:42 that aren't made by morons Jun 25 23:53:00 galaxy tab was large Jun 25 23:53:03 so maybe you're right that there aren't any… Jun 25 23:53:08 i just hadnt seen any xlarge ones Jun 25 23:53:10 yeah, see: morons Jun 25 23:53:20 why does that make them a moron? Jun 25 23:53:25 because racecar Jun 25 23:53:27 r Jun 25 23:53:28  Jun 25 23:53:33 colloquy is not having a good day Jun 25 23:54:07 anyways, if you're using something from API 11 then you should qualify it with -v11 Jun 25 23:55:00 canadiancow|work: maybe some chinese "tablets" with 2.3 and xlarge Jun 25 23:55:51 would you bother supporting 2.3 xlarge? Jun 25 23:55:57 or just have it load the default Jun 25 23:56:34 canadiancow|work: no Jun 25 23:56:50 2.3 for phones not for tablets Jun 25 23:57:10 canadiancow|work: I wouldn't bother supporting them -- the framework was not designed for tablets at that point so it's a lot of pain for very little gain Jun 25 23:57:27 who use so big screen with 2.3 dont worry about apps :) Jun 25 23:57:51 how do I spawn a service from an application that runs even after the application is closed? Jun 25 23:58:55 badfish129: service are part of application Jun 25 23:59:15 u mean run when no running acitivty? Jun 26 00:01:33 badfish129, startService() Jun 26 00:06:13 ok..last attempt at getting an answer here...why when I use a canvas to c.drawText("Hello", 0, 50, p); does the text start outside of viewable range in the horizontal...seems like I have to use x > 60 or the leftmost part of the text gets cut off Jun 26 00:06:35 probably because you've told us nothing about p Jun 26 00:06:45 its just a paint object with text size 50 Jun 26 00:09:20 I am searchiong a tutorial how to import sqllite databases Jun 26 00:09:59 did you try youtube? Jun 26 00:10:11 hello Jun 26 00:10:32 i hate how to videos ;-) searching a text version Jun 26 00:11:01 im trying to make a splash screen on my app. its all working. but the problem is my image is transparent and i want to change the black of default activity color to white Jun 26 00:11:02 shame, i think i know a how to video that tells you exactly how to do it too Jun 26 00:11:19 but if i repeat android:background thing gives me error Jun 26 00:11:41 hrm, after a rotation and relayout the camera preview is empty, yes, I did call m_camera.startPreview(); from surfaceChanged(); (and that method is being called) Jun 26 00:11:45 any tip? Jun 26 00:11:50 anyone know what I am forgetting to twiddle ? Jun 26 00:13:07 fabiobik: http://stackoverflow.com/questions/2748830/how-to-change-background-color-in-android-app Jun 26 00:13:38 fabiobik: also try http://stackoverflow.com/questions/2895367/change-background-color-of-the-layout-in-android Jun 26 00:13:47 NackNick: the problem is im using an image background Jun 26 00:14:00 so if i repeat the atr gives me error Jun 26 00:14:51 NackNick: do you understand what i need? my image is transparent so i see the black screen of activity Jun 26 00:15:46 why dont you make the image a imange view and use fill parent on it and make the weight of it 0? Jun 26 00:16:05 i very new to android so i could be wrong Jun 26 00:16:19 hrm, okay, so I just had to reselect the surface Jun 26 00:16:24 but I've got an interesting bug Jun 26 00:16:30 in seascape the image is upside down Jun 26 00:24:18 files in the assest folder i cant delete right? Jun 26 00:26:57 sukramTM: u cant modify (delete) runtime Jun 26 00:27:48 hm, i need some big files for the instalation, but later i didnt need them anymore Jun 26 00:29:25 sukramTM: use expansion Jun 26 00:29:33 http://android-developers.blogspot.hu/2012/03/android-apps-break-50mb-barrier.html Jun 26 00:30:14 but i dont understand, why not need big files later :) Jun 26 00:30:15 why are X,Y floats? What does it mean to paint something at 4.2 and 2.1, are these not pixel-perfect coordinates? Jun 26 00:32:24 ixc: for example, one of these files is a database, after copy it to the device I didn't need the original anymore Jun 26 00:34:39 in my apps we ask user at first start about can download and process database Jun 26 00:35:59 aca20031: its important when u use animation or antialiasing Jun 26 00:36:25 hmm anything i can read on a an explanation of that? I know what AA is (at least what its for) Jun 26 00:36:38 hm, do you offer a sqllite database or connect you to a mysql database? Jun 26 00:37:20 sukramTM: basicly we work from web api, coz later we only download differences Jun 26 00:38:30 and is more comfortable if u use more platforms (we need make apps for ios too) Jun 26 00:39:20 so you always need a internet connection to run your app? Jun 26 00:39:20 aca20031: a canvas is infinitely scalable so if you are zoomed in 4x those decimal values make a difference Jun 26 00:39:28 aca20031: check mail lists, i saw on a mail list more info about it Jun 26 00:39:58 what should I set so that when I flip my phone to reverse landscape the camera ends up right side up (it's upside down currently....) Jun 26 00:40:00 sukramTM: no, we parse json, and store data to local database on phone Jun 26 00:40:06 Anyone know any good sites to promote an android app/game ? Jun 26 00:40:08 landscape and portrait are fine Jun 26 00:40:09 Or forums? Jun 26 00:40:16 ok Jun 26 00:40:35 but i saw some app, where directly download sqlite database Jun 26 00:41:08 i am thinking about downloading text files and parse them Jun 26 00:42:05 i think u shouldnt add them as assets Jun 26 00:43:14 and if u cant host the files, put them as expasion files Jun 26 00:43:45 now i go sleep, 3hour later need go work :( Jun 26 00:43:49 bye Jun 26 00:43:53 good night Jun 26 00:46:06 Notevision: You need a website? Jun 26 00:46:18 Notevision: I think the Android team hosts developer Fridays on G+. Jun 26 00:46:28 Maybe this weekend is good to get in because of Google IO Jun 26 01:01:40 why is it i can do c.drawText(string, x, y, paint) but cannot do c.drawRoundRect(r,x,y,paint) Jun 26 01:01:57 Hey guys I have a question on passing data back and forth in activities Jun 26 01:02:04 its saying drawRoundRect() in canvas cannot be applied to: Jun 26 01:02:29 Google I/O… I am so excited and hope to see new interesting announcements! Jun 26 01:02:31 and dynamically making a table with scroll view Jun 26 01:03:08 BrutalSauce: You're asking to ask - better to just ask a very clear question and anyone who can answer will. Jun 26 01:03:54 why can i drawText() on a canvas and not drawRoundRect() ? Jun 26 01:04:17 Anyone want to speculate why my camera preview is upside down in seascape mode ? Jun 26 01:04:36 sounds like a fun feature Jun 26 01:04:45 luyang: sadly it isn't Jun 26 01:04:51 :/ Jun 26 01:05:13 and I am sort of annoyed Jun 26 01:05:23 It can be done right Jun 26 01:05:36 go complain to your OEM Jun 26 01:05:58 JakeWharton: mm ? Jun 26 01:06:15 JakeWharton: you are saying they are telling my camera to go flip itself, oh great.... Jun 26 01:06:16 the people who made your phone Jun 26 01:06:32 I've just spend 3 hours trying to figure out what to do about this.... Jun 26 01:06:34 oh well Jun 26 01:07:43 Ikarus: is it in skype? Jun 26 01:07:48 can someone splane why i cant draw a round rectangle in my canvas but i can draw text? Jun 26 01:07:58 luyang: custom app, this is -dev Jun 26 01:08:38 yes true.. just found some forum with similar issue in skype Jun 26 01:10:24 c.drawRoundRect(r, 10, 10, paint); <-- this is giving me an error while the following line "c.drawText(s, 20, 20, paint)'" is not Jun 26 01:10:35 why woud that be? Jun 26 01:11:00 I440r: you might want to say what the error is. Jun 26 01:11:24 drawRoundRect() in Canvas cannot be applied to: Jun 26 01:12:36 I440r: some operations cannot be done when hardware acceleration is enabled. After a brief google search, I believe that may be one of them Jun 26 01:12:54 wtf? Jun 26 01:14:16 I440r: I might be wrong. Upon further reading, the comment I saw seems to apply to path clipping, rather than addRoundRect Jun 26 01:14:29 but it might still be the case :) Jun 26 01:15:01 i think i might have found the issue Jun 26 01:15:03 I440r: What happens with drawRect? Jun 26 01:15:13 drawRect() wants a RectF and i was using a Rect Jun 26 01:15:18 wtf is a RectF? Jun 26 01:15:29 rect, using float coordinates Jun 26 01:15:49 so why cant i draw a rounded rect with integer coords lol Jun 26 01:15:50 duh Jun 26 01:15:54 lol Jun 26 01:16:41 because drawRoundRect doesn't support a rect with integer coords? ;) Jun 26 01:17:03 stupid google! Jun 26 01:17:29 RectF helpfully has a constructor that accepts a Rect Jun 26 01:31:04 Whats the best way to dynamically create tablerows for up to 9 entries? Jun 26 01:31:19 I have a layout that should work Jun 26 01:31:41 I just cant figure out how to get my main to dynamically add the stuff I passed in from a different page Jun 26 01:32:10 Here is what I have so far http://pastebin.com/pKKTLz0c Jun 26 01:32:21 I have a ListView, where each item has a button. OnClick, I try to create an AsyncTask, but while the AsyncTask is running, while I can scroll the list, I can't click any of the other buttons in the list. Any idea what might be happening? Jun 26 01:32:39 How can I use getAssets() in a class (no activity)? The Error from Eclipse: The method getAssets() is undefined for the type DatabaseHandler Jun 26 01:35:27 Is there any danger to not explicilty closing an InputStream if it is null ? Jun 26 01:36:00 What I'm trying to do is have a ListView where each ListView has a Button and a ProgressBar. When the Button is pressed, some task starts and the ProgressBar fills up. I'm stuck on this last step - it seems that I can only execute one of these tasks at a time (but it's not that the tasks are being queued - the onclick method just isn't called). Jun 26 01:36:14 like if you have InputStream is , not writing is.close() Jun 26 01:41:26 hello room. i just finished my temp converter for droid 2.1 and need to export it fom eclipse to my tablet. web page down load okay but needs the part about compile to apk? Jun 26 01:42:22 i cant figure out what to do after i have a working project.> then needs compile/export stuck Jun 26 01:52:42 Anyone know any good sites to promote an android app/game ? Jun 26 01:52:44 Or forums? Jun 26 01:56:11 Oh I was in here before and some one was giving me a hand with my code... I am guessing they have since a: Logged out, or b:are still around and I just forget the name. Anyhow I'm back from outerspace looking for a hand again. Jun 26 01:58:28 Here is the code: http://pastebin.stonekeep.com/12175 the issue is now I cant get the intent to run right. Jun 26 01:59:20 (11:59:59 PM) cythes: Leeds: You said "not debugging windows networking" to which I said "Oh so your debugging" joke being windows networking is full of bugz. :) Jun 26 01:59:40 jerry_l: And!? Jun 26 02:01:00 do you guys know if the top bar of the Play Store app consists of system resources, or are those local to the app? Jun 26 02:02:44 (11:32:44 AM) wongk: cythes: you have the basic idea, but your code is misplaced/not in the correct scope Jun 26 02:03:06 (12:20:25 PM) cythes: wongk: Thanks for the tip that helped out quite a bit! Jun 26 02:03:33 jerry_l: This is a little later... keep looking lol Jun 26 02:04:01 noon? Jun 26 02:04:05 1pm? Jun 26 02:04:12 5pm? Jun 26 02:04:30 Around 5 Jun 26 02:06:19 (4:10:43 PM) cythes: herriojr: I'll just get you the code might be more easy that way. Jun 26 02:06:39 (4:11:24 PM) cythes: herriojr: http://pastebin.stonekeep.com/12174 Jun 26 02:07:04 Yeahm then he had me add a run() to the code...Which is where I am at. the app runs just not the right way. Jun 26 02:07:19 (4:16:27 PM) cythes: Alright gimme a minute my parents just got home I think Jun 26 02:07:50 thats all i got until (6:15:32 PM) cythes left the room (quit: Remote host closed the connection). Jun 26 02:07:59 jerry_l: To which he asked me to reget the code and by that point my rents came home with dinner and I ended up all over the place and am now back. Jun 26 02:08:11 (8:45:54 PM) cythes [~cythes@96.25.33.4] entered the room. Jun 26 02:10:22 And brb Jun 26 02:11:47 (4:12:27 PM) joholz: @cythes you need to call run ------(4:12:33 PM) joholz: call 'run' ----------(4:13:03 PM) joholz: in the onlick, just do run(); ---(4:16:07 PM) joholz: paste new code Jun 26 02:17:53 jerry_l: I did and now the public void run() part of the code is not functioning as it should. Jun 26 02:23:18 eclipse autobuild. in default found location. Jun 26 02:23:48 Hmm? Jun 26 02:23:50 cyt i am sorry but i am only 1 week into droid dev. Jun 26 02:24:22 jerry_l: I know what you mean I am only 3 days old... at this point. Jun 26 02:25:01 i know VB and some Html so sometimes i know where i am going but not how to get there. Jun 26 02:26:22 honestly, working through a decent publicly-available Java tutorial would probably be useful as far as groundwork Jun 26 02:26:37 even though that isn't Android dev per se Jun 26 02:26:57 Before my 3 days in droid... I spent about 10 days in Java. Jun 26 02:26:58 i got the hello world working Jun 26 02:27:46 i built built a converter and installed it on my tablet. Jun 26 02:28:08 http://www.vogella.com/articles/Android/article.html Jun 26 02:28:58 I really do hate sharedPreferences Jun 26 02:29:31 This application is also available on the Android Marketplace under Android Temperature converter . Jun 26 02:30:05 can some one take a look at my code and tell me what the hell I am doing wrong here. Jun 26 02:30:06 http://www.vogella.com/articles/Android/article.html Jun 26 02:30:11 Oh yeah that thing. xD I was going to do that at onepoint. Jun 26 02:30:24 what is the drawable background used for the TitleBars? Jun 26 02:30:46 http://pastebin.com/MQBEK2M8 Jun 26 02:31:31 BrutalSauce: what's not working? Jun 26 02:32:10 So it is crashing right now, but what it is suppose to be doing is add a player it asking for name and position Jun 26 02:32:18 im a new activity Jun 26 02:32:44 then grabs taht information and is suppose to print it out in a new table view Jun 26 02:32:59 which is being dynamically created in the main activity Jun 26 02:32:59 BrutalSauce: what's the error log Jun 26 02:33:19 One sec Jun 26 02:33:27 AccidentalyClosed it Jun 26 02:34:42 i need to start sqlite for my droid tablet, even better would be to have the DB on my winXP cpu and update to there. Jun 26 02:34:53 *Android Jun 26 02:35:07 eclipse.buildId=M20120208-0800 Jun 26 02:35:07 java.version=1.7.0_04 Jun 26 02:35:07 java.vendor=Oracle Corporation Jun 26 02:35:07 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Jun 26 02:35:07 Framework arguments: -product org.eclipse.epp.package.java.product Jun 26 02:35:08 Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product Jun 26 02:35:10 Warning Jun 26 02:35:12 Mon Jun 25 20:04:17 MDT 2012 Jun 26 02:35:14 new_table_view.xml: Couldn't resolve resource @dimen/PositionWidth Jun 26 02:36:10 it means that in your dimens xml file there's no value defined named PositionWidth Jun 26 02:36:28 Wait that was from a half an hour ago Jun 26 02:40:54 thats i step to advanced for me. Jun 26 02:40:56 I cant get my log cat to work now Jun 26 02:40:57 ha Jun 26 02:41:38 is it possible to change the color of the ic_menu_* drawables? Jun 26 02:42:35 colors for all choudl be changeable. Jun 26 02:43:08 #3399CC Jun 26 02:43:18 WOAH Jun 26 02:43:24 Jun 26 02:43:38 I'm freaking out. You can use the same layout for multiple activities, and they all have their own references? Jun 26 02:44:21 Just because class 1 sets the view of layout1, and makes a onclicklistener on id button; class 2 can do the same exacty thing and it will work? Jun 26 02:45:01 android:background="@color/myColor" Jun 26 02:46:28 How in the fuck is it working sometimes and force closing others Jun 26 02:48:42 . Jun 26 02:50:47 mathiaslin: I am getting this java.lang.RunTimeException: Failutre delivering result ResultInfo{who=null, request = 0; result=-1, data=Intent { (has extras) }} to activity Jun 26 02:58:03 BrutalSauce: tried this http://stackoverflow.com/questions/8373755/java-lang-runtimeexception-failure-delivering-result-resultinfowho-null-reque or this http://stackoverflow.com/questions/7429907/onactivityresult-throws-failure-delivering-result-resultinfo ? Jun 26 02:58:41 seems to be a common issue/question. btw: stackoverflow.com is a very good developer Q&A platform **** ENDING LOGGING AT Tue Jun 26 02:59:58 2012