**** BEGIN LOGGING AT Tue Oct 30 02:59:58 2012 Oct 30 03:07:35 HI all my emulator is seg faulting in linux can someone help me the error is related to OpenGLES. Oct 30 03:10:12 hi guys Oct 30 03:16:09 lindenle are you using emulator or emulator-arm Oct 30 03:16:13 is there a way to see if a fragment was retained with state? Oct 30 03:16:39 or more generally, if I call finish and startactivity using getintent as the intent for the startactivity, this will cause everything to be re-initalized? Oct 30 03:16:42 i got segfault errors trying to run arm avds on emulator, you need emulator-arm in the sdk Oct 30 03:18:42 Anyone else having a problem importing ABS 4.2 into Ecclipse? Oct 30 03:19:34 can nexus 7 be fake? Oct 30 03:19:39 i'm trying to buy it from craiglist Oct 30 03:20:09 anything can be fake on craigslist Oct 30 03:21:08 phong_: you're *still* in the wrong channel for this sort of thing... this is a *developer* channel Oct 30 03:21:21 Leeds, i know, but someone may knew this Oct 30 03:21:26 i got no channel to go to Oct 30 03:21:34 they may, and you can ask in #android - as you've done Oct 30 03:21:36 and i'm sorry, not that i didn't know Oct 30 03:21:42 are you actually a developer? Oct 30 03:21:51 yeah..but not android Oct 30 03:21:59 i'm vb.net dev Oct 30 03:22:01 lol Oct 30 03:22:08 cool, then #vb-dev might be a better channel for you Oct 30 03:22:19 they dont know about phone Oct 30 03:22:33 seriously, this is not the right channel for you Oct 30 03:22:39 they don't know about anything, hayooo! Oct 30 03:24:04 emulator and I hav nvidia card Oct 30 03:25:37 http://pastie.org/5135758 Oct 30 03:26:09 the emulator segfaults when you run your app? Oct 30 03:26:20 segfaults on startup Oct 30 03:26:25 no app Oct 30 03:27:35 when you create the avd, you choose a target -most are "arm", so you need to run the avd(after creating it) with the emulator-arm file in the sdk. the sdk's emulator file is only for x86 Oct 30 03:28:48 so maybe you try "emulator-arm -avd avdname" instead of "emulator -avd avdname" Oct 30 03:31:11 since most avd targets are arm. i dont know why they didnt make that for "emulator" and then make emulator-x86 for x86 ones Oct 30 03:31:58 ok Oct 30 03:32:11 get an error about libOpenglRender.so Oct 30 03:32:55 not sure about opengl. i just remember that was why i got a segfault error Oct 30 03:34:29 running emulator-x86 gets it up so that is something Oct 30 03:34:49 i chose arm, Oct 30 03:35:41 most avd targets are arm. but yeh use the right emulator for whatever one Oct 30 03:35:51 I dont know why they didnt just make it x86 from the get go Oct 30 03:35:53 lol Oct 30 03:36:03 yeah I wanted to check out the acceleration....so slow without it Oct 30 03:44:47 hm, so 4.2 account switching is tablet only Oct 30 03:46:21 so when it finds libOpenglRender.so it seg faults. If it does not find it it starts slow Oct 30 03:46:27 IMO it's fine. Phone account switching sounds rather weird. Oct 30 03:46:34 Does it make sense that OnPause is only being called when I revisit an already-running app, and then throws an exception because the reference to the service ( an instance variable of the class) is not set anymore ? Oct 30 03:46:43 lut4rp: yeah Oct 30 03:47:34 What's weird is that I only disconnect from the service in my onStop - so I think it should still have the reference Oct 30 03:47:34 Love the smooth curve of the Nexus 10, it looks so good Oct 30 03:57:04 hmm, its not as curvy as it looked the other day. maybe perspective. seems like an amazing tablet Oct 30 04:06:17 How do I remove the vertical shadow divider on the action bar? I tried setting the background to null via themes but no luck Oct 30 04:29:50 should i get the nexus 4 or wait to see what else comes out for the holidays? Oct 30 04:30:44 I don't think there's going to be much coming which hasn't been announced by now Oct 30 04:31:38 except going from 8, 16 to 16, 32, does the nexus 7 change anything? Oct 30 04:31:59 QcMat_: that and the 3G option, nothing else changed AFAIK Oct 30 04:32:05 ok cool Oct 30 04:32:14 I just bought one for dev, wanted to make sure I dont need to buy a new one Oct 30 04:33:16 there was a comment by jbq at the time of the 4.1.2 release that there was a minor hardware rev which was newly supported in 4.1.2, but that it was functionally identical Oct 30 04:35:00 Hopefully LG got things right. It seems like they have a bad rap Oct 30 04:36:38 and how come the tablet is only dual core? Oct 30 04:37:09 matias in the video said something about the best chip they could find... maybe the gpu? Oct 30 04:37:28 it *is* an A15 core Oct 30 04:37:33 genuinely next-gen ARM Oct 30 04:37:47 oh Oct 30 04:38:55 that makes me feel better Oct 30 04:39:33 and the nexus 7 with 16gb and cell data for $299.. that is really good Oct 30 04:39:45 "ARM has confirmed that the Cortex A15 core is 40 percent faster than the Cortex-A9 core, all things being equal." Oct 30 04:39:49 hey, is this where i ask if i have problem developing my android app? Oct 30 04:39:53 Does anyone know when a view's getHeight get populated? I'm in a situation where getHeight is 0 but getMeasuredHeight is not zero. Oct 30 04:39:55 Leeds, yeah i just read that Oct 30 04:40:07 HoneyH, yes Oct 30 04:40:10 HoneyH: yup Oct 30 04:41:20 mdkess, possibly a weight to define hight? Oct 30 04:41:35 i'm new in android. I wanna ask, i have a fragmentActivity, and I want to start an intent that calls Activity Oct 30 04:41:49 i mean an intent that extends fragment Oct 30 04:41:53 i.e. layout_height=0dp layout_weight=1 Oct 30 04:42:12 is that possible? Oct 30 04:42:35 it's not only possible, it's a mainstream use case Oct 30 04:43:25 That's not the problem here, the issue is that the view hasn't been measured yet. But until it's laid out, I can't seem to get the dimensions of the child elements. Oct 30 04:43:35 my codes don't seem to work Oct 30 04:43:38 So I need some hook into the View, but I can't figure out what that is. Oct 30 04:43:45 HoneyH, http://developer.android.com/reference/android/content/Intent.html Oct 30 04:44:19 mdkess, beyond me Oct 30 04:45:05 This is maddening - so close to finding a solution, yet so far away. Oct 30 04:45:25 thanks jeppy. i have this, Oct 30 04:45:27 Intent intent1 = new Intent(FragmentActivity.this, Fragment.class); Oct 30 04:45:28 startActivity(intent1); Oct 30 04:45:33 is this right? Oct 30 04:45:36 anyways my verizon contract ends nov. 17 and Tmobile, nexus 4, and I are going to get freaky Oct 30 04:45:46 I *think* I have to force the view to render once. Oct 30 04:46:23 HoneyH, Fragment.class should be your fragment's class Oct 30 04:46:46 so the codes should work right? Oct 30 04:46:47 and use a pastebin (or similar) to post code Oct 30 04:47:19 is there a way to ignore / hide a row in a cursor adapter if the cursor meets some criteria? Oct 30 04:47:25 HoneyH, is your class's name "Fragment"? it shouldnt be Oct 30 04:47:59 nope. it is just an example. to indicate that my class extends fragment. Oct 30 04:48:01 let me paste it Oct 30 04:48:02 mdkess are you trying to resize it on click or something? Oct 30 04:48:03 hang on Oct 30 04:48:16 *reize the row Oct 30 04:48:56 No, I've been trying to make a background that scrolls with a listview. And I have all of the mechanics in place, but the one thing I need is to be able to get the height of a row in a ListView. Which is surprisingly difficult. Oct 30 04:49:28 jeppy : this is my tabbar2 that extends fragmentActivity Oct 30 04:49:31 http://pastie.org/pastes/5135952/text?key=q6apyhlsomf2emypsz8dvg Oct 30 04:50:54 looks like it should work to me Oct 30 04:50:56 i wanna start an intent that opens a class that extends fragment. which is this Oct 30 04:50:59 http://pastie.org/pastes/5135960/text?key=juljziol1babtuixdsg Oct 30 04:51:17 ah Oct 30 04:51:36 startActivity() starts an Activity! Oct 30 04:51:41 * jeppy facepalm Oct 30 04:51:41 am i doing it correctly? Oct 30 04:51:58 no, Favourite is a Fragment, not an Activity Oct 30 04:51:58 I think the problem is that in the adapter when I return the view for the listview, it's not a child of the listview yet, so of course it can't be measured. So I need some callback after it gets added to the listview Oct 30 04:52:20 so i do i solve it. Oct 30 04:52:26 im sorry if it's a silly question Oct 30 04:52:28 Read the docs at d.android.com Oct 30 04:52:49 im totally new in this. alright. thanks :) Oct 30 04:53:00 quick answer: change the fragment to an activity. but really you need to follow an example first or something Oct 30 04:53:38 mdkess why do you need per row, can’t you do whole listview height since it is a full background? Oct 30 04:54:28 if you're new like me, sometimes you can find some guy on youtube showing step by step, my best help came from stackoverflow so far though Oct 30 04:55:01 google search comes up with nice stackoverflow answers Oct 30 04:55:42 HoneyH, http://developer.android.com/training/basics/fragments/index.html Oct 30 04:55:52 lasserix, well, I need to draw the background first in dispatchDraw(), offset by how far down the user has scrolled. Similar to this: http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/view/ShelvesView.java Oct 30 04:56:10 However, unlike in shelves, my rows are of different heights. Oct 30 04:56:21 (see dispatchDraw in that class) Oct 30 04:56:32 okay jeppy. thanks. i will take a look at the links and try to change my fragment to activity instead :) Oct 30 04:57:27 shmooz : yeah youtube really help. :) i searched stack overflow. nothing much comes up with what I want. Oct 30 04:57:42 HoneyH, if you want to use fragments, follow that training guide Oct 30 04:58:01 HoneyH: search google for the specific functionality you want to implement and it usually returns stackoverflow answers Oct 30 05:03:26 uh oh sandy is really knockin toronto around now, hope my AC doesn't go flying out the window Oct 30 05:17:13 anyone here from CT, uSA ? Oct 30 05:17:21 oops, nope - long island :) Oct 30 05:22:06 @jeppy alright. thanks. :) Oct 30 05:23:03 ugh why cant layerlists use ratio weighting for sizing, defeats the whole point of using shapes in xml to have to hardcode dimensions Oct 30 05:36:57 stupid question: how do i change the value of a spinner? Oct 30 05:39:24 I figured it out! Finally! Oct 30 05:39:48 The correct approach was to add an OnLayoutChangeListener to the view of the row, then calculate height with bottom - top Oct 30 05:43:25 derp. spinner.setSelection(foo); Oct 30 05:45:24 noticed that the publisher interface now gives a maximum API level of 17+ - i.e. 4.2 Oct 30 05:45:49 hi does anyone have a android 2.3 phone and has some time to download my app and tell me what FPS theyre getting? Oct 30 05:45:51 an* Oct 30 05:48:04 opinion wise; whats the best recovery program? 4EXT? , CWM, CWM touch etc> Oct 30 05:49:22 hi does anyone have an android 2.3 phone that can test my application for fps atm? Oct 30 05:49:51 Quagmire3: #android-root Oct 30 05:56:01 lots of android api examples prefix variables with "m" Oct 30 05:56:14 i.e. mAdapter, mCursor Oct 30 05:56:24 what's the m mean? Oct 30 05:56:31 magical Oct 30 05:56:34 lol Oct 30 05:57:05 g00s or someone mentioned it the other day, but i forget Oct 30 05:57:24 i knew this one. possibly module? Oct 30 05:57:48 ==sampullman. i forgot Oct 30 05:57:51 whatever it is, i find it annoying Oct 30 05:58:48 my best guess is "my" Oct 30 05:58:48 oh, must be member Oct 30 05:58:56 member sounds right Oct 30 05:59:07 oh hm, that's not so dumb after all Oct 30 05:59:11 sampullman: that sounds like it. Oct 30 05:59:23 to distinguish it from static variables Oct 30 05:59:35 eh, i just capitalize my statics Oct 30 06:00:11 check this out: http://source.android.com/source/code-style.html#follow-field-naming-conventions Oct 30 06:00:15 kind of interesting Oct 30 06:02:24 why not capitalize non-public static variables? Oct 30 06:03:44 that's just the choice they made Oct 30 06:03:59 makes sense to differentiate public/non public though Oct 30 06:32:32 I have a ListView populated with items. I'd like to give each item a different color Oct 30 06:51:40 anyone know a website with good-idea stats for setting dp of padding, margins etc for different layouts? Oct 30 07:02:42 Hello. I'm trying to install the Android SDK. I tried the installed and received an error of ($^Name) has stopped worked. A google search revealed I should use the .zip verison instead of the .exe. I downloaded it and went to run android.bat but no GUI comes up. I then ran it via the command line and the program is unable to find java (it is installed). Other people have had this problem Oct 30 07:02:42 and the solution is to hit the back button then next but since I'm using the command line version, I cannot do this. What can I do? Oct 30 07:02:56 *installer. Sorry :( Oct 30 07:19:38 I have a ListView with 8 items in it. I'd like to set each item to a different color Oct 30 07:20:01 I've having trouble getting that item so that I can call View.setBackgroundColor() Oct 30 07:20:48 can you do it from the getview in the adapter Oct 30 07:24:33 DR01D-Engineer: can I safely use null for the last two parameters? Oct 30 07:28:12 i dont mean calling getview. i mean i assume you are using an adapter with getview or something already, so in the getview method called for each item maybe it could be set there. i am just guessing Oct 30 07:28:42 yes, I have an ArrayAdapter Oct 30 07:30:32 the items that I'd like to get to are already in a ListView Oct 30 07:33:38 well getView gets each list row's view. so i would guess it can be done inside the getView method where the data is set. not that iv tried Oct 30 07:37:36 DR01D-Engineer: so you are saying I should subclass ArrayAdapter and override the getView() Method Oct 30 07:37:52 yeh Oct 30 07:38:16 thats the first thing id try Oct 30 07:39:30 I want to download a file, what's the best practice (network downfalls to be expected) Oct 30 07:39:33 a service ?> Oct 30 07:59:28 hi Oct 30 07:59:57 JakeWharton hi, didn't find you yesterday anymore are you there? Oct 30 08:36:03 how can i stop any running instance of Mediaplayer from anywhere? Oct 30 08:49:07 Hello. I have a Bluetooth Headset with LCD attached to my Android 4.0.4 device. I want to send a test string to that headset screen. How can I achieve this? I can't found any documentation about this process. Oct 30 08:53:53 ok.. thanks i found it Oct 30 08:54:04 ok.. thanks i found the solution Oct 30 08:54:16 it's specific to my code Oct 30 08:56:27 what exactly is a factory reset? Oct 30 08:57:50 * Syaoran-kun thinks that's impossible to do then. Oct 30 08:59:11 resets the device to the state of when you bought it from the shop Oct 30 08:59:49 something like that. uninstalls all apps and wipes user data Oct 30 09:00:20 any of you doing tdd in druid ? Oct 30 09:03:14 is a zip kept on a special partition, for this factory reset? Oct 30 09:04:57 factory reset for make clean data partition, clean caches Oct 30 09:05:02 meh. jellybean broke my paid app. should I refund everybody who upgrades their phones now? Oct 30 09:05:46 Ge0rG: you should fix it :) Oct 30 09:05:55 ixc: it is unfixable Oct 30 09:06:12 ixc: the best workaround available is to require a rooted phone Oct 30 09:06:19 set maxsdk and describe on google play info Oct 30 09:06:24 what does it do that is unfixable? Oct 30 09:06:26 im curious Oct 30 09:06:59 im also curious :) Oct 30 09:07:10 ixc: I already did; now users are complaining they can't find the app even though they paid for it. Oct 30 09:07:20 http://duenndns.de/fca/jellybean/ :> Oct 30 09:08:31 a function is depend on logs isnt decent Oct 30 09:08:40 there is no official way for an app to determine if a call was redirected. a system app can hook into the according radio service, but that requires being a system app Oct 30 09:09:07 ixc: indeed. but a function that is implemented as a horrible hack is still better than a function not available at all Oct 30 09:09:29 400+ paying customers think so too Oct 30 09:11:49 than you should send a feature request for suply in api, not report this "security" fix :) Oct 30 09:11:57 note to self: don't write apps with functionality based on hacks Oct 30 09:12:23 ixc: haha, good luck with getting a feature request through in android. more so, if it might be related to privacy Oct 30 09:12:43 DR01D-Engineer: I wrote the app because I needed that function. and then I thought other people might need it as well Oct 30 09:12:44 im agree that DR01D-Engineer said Oct 30 09:13:04 yeh i think the permissions system needs to be updated Oct 30 09:13:11 if you have to pay for call redirection to your phone, or if you have a business number forwarded, it is very important to see Oct 30 09:13:14 feature and security wise Oct 30 09:13:22 i see Oct 30 09:17:14 there are two ways i can think of factory resetting working. either a zip file of the core system is kept on an umounted partition, or a file list of the core system is kept where files not on the list are removed Oct 30 09:17:17 what if i made an app that only sold 10 times... so i wanted to discontinue support for it. would i be required to refund those people? Oct 30 09:17:54 Where is the file manager in the 4.0 emulator? Oct 30 09:18:17 DR01D-Engineer: there are some strange sentences in the google play contract Oct 30 09:18:40 Ge0rg can you elaborate on that? Oct 30 09:19:15 DR01D-Engineer: under certain conditions, you are required to refund all of the purchases. But I think only if Google terminates your account due to abuse, or so Oct 30 09:19:37 vadi2: what file manager? Oct 30 09:19:53 A file manager to browse things on the SD card from the emulator. Oct 30 09:20:05 is there any reason why there would be a file manager? Oct 30 09:20:19 Yeah, it's sort of a necessary basic tool. Oct 30 09:20:50 you've got a shell Oct 30 09:21:35 How do I get eclipse to let me launch my app on a avd that's different from target api (but higher or equal to minimum)? Oct 30 09:21:42 Yeah seems so. Went the shell way. Oct 30 09:21:58 vadi2: or install a file manager yourself - openintents has one Oct 30 09:22:10 you just run the avd then run the app like you normally would Oct 30 09:22:27 Ah Oct 30 09:22:28 the android shell is so stripped down its no fun... Oct 30 09:22:33 No, not in this case. I have to test the final APK I'd send to the market. Oct 30 09:22:43 Already gotten bitten by it forgetting to include a class for me ... Oct 30 09:22:50 And it seems this apk is corrupted too. Lovely. Oct 30 09:33:12 Apparently http just went full retard Oct 30 09:33:29 http://www.home.elementfx.com/herodex/cver.txt Oct 30 09:33:41 That's a txt file. The source is simply a 1, yes? Oct 30 09:34:01 So why is it that when I readLine from it, I get