**** BEGIN LOGGING AT Sat Dec 15 02:59:58 2012 Dec 15 03:14:12 Guys, are the sensors in the different android versions behave the same? Dec 15 03:16:24 ????????????????????????????????? Dec 15 03:16:35 Sensors are HARDWARE Dec 15 03:17:32 its always different from one model to another? Dec 15 03:18:04 i am sure they are..chek to manufacturer specs Dec 15 03:26:12 it is sure that they are different yeah Dec 15 03:27:01 and more Dec 15 03:28:13 two mobiles from the same model have different sensor behaviours Dec 15 03:28:47 these are consumer goods you dont have to expect laboratory or academic precision Dec 15 03:29:03 or what do you mean by behaviour? Dec 15 03:51:09 fuck yo couch Dec 15 03:55:36 you can get arrested for that. Dec 15 03:56:03 hi guys, is is there a way to remove the side bar from the android emulator? like the thing with home menu back search, dpad etc Dec 15 03:57:40 arrested for what? O.o Dec 15 04:01:42 ron_frown> fuck yo couch Dec 15 04:33:14 i have a mod question if anyone has any experience. cm10 galaxy nexus - waiting for location Dec 15 04:33:17 all day with the GPS app Dec 15 04:33:35 doesnt work? Dec 15 04:33:43 yea doesn't work Dec 15 04:33:47 im trying a new nightly right now Dec 15 04:33:54 what does it say? what does it do? Dec 15 04:33:55 see if that fixes it Dec 15 04:34:02 just wont find the gps :( Dec 15 04:34:10 i even reset the agps data Dec 15 04:34:14 did you check the settings? Dec 15 04:34:22 Oh well then I have no idea Dec 15 04:38:11 im thinking of trying to learn how to use a canvas next Dec 15 04:42:40 so go to #cyanogenmod Dec 15 04:47:41 thanks, didnt know it existed :) Dec 15 05:05:50 * SpeedEvil pokes torchie with a stick. Dec 15 05:12:32 speaking for torchie: ow Dec 15 05:43:22 I have to query a server in every X seconds. I use a service and a thread which runs the query in an infinite loop. Is there any better methods to do it? Dec 15 06:23:17 To have experience in building from source Dec 15 06:23:22 What does it need Dec 15 06:23:26 To debug Dec 15 06:25:01 <[aboja3far]> Anyone?? Dec 15 06:26:00 well, you start with the source of your app... and your build tools... and you put them together Dec 15 06:27:00 * drpenguin puts his source on top of javac Dec 15 06:27:03 ITS NOT WORKING! Dec 15 06:27:34 you need to blend them Dec 15 06:27:53 Will putting them in a bucket and stomping on them like grapes work? Dec 15 06:28:40 it might... Dec 15 06:29:07 LETS DO DIS Dec 15 06:31:08 i recommend a masticating juicer Dec 15 06:31:26 g00s: well.. some of us cant afford nice things like a juicer Dec 15 06:31:39 i dont have one either :) Dec 15 06:31:43 but i recommend one :D Dec 15 06:32:01 recommending something you dont own is like using a word whose definition is unknown to you Dec 15 06:32:18 :( Dec 15 06:32:38 "I recommend riding velociraptors to get to your destinations".. "have you ever ridden one?" "no.. but htey are fast" "but they will eat me" "uhh Dec 15 06:33:05 whatever :) Dec 15 06:33:18 i see one used every day Dec 15 06:33:30 you know what, for christmas Im getting you a juicer Dec 15 06:33:37 this way you have one to appreciate Dec 15 06:57:41 So I made a game in canvas... and now I basically raped my framerate... Dec 15 06:58:00 any recommendations on how to find out what's actually breaking it? Dec 15 07:01:49 How exactly was the act done? Dec 15 07:12:29 Syzygy: you may want to look at romain guy's latest blog Dec 15 07:13:33 alright, I'll look at it Dec 15 07:15:22 g000000000000000s Dec 15 07:16:02 good, I hope that will help, but for now I'll go to bed Dec 15 07:16:04 good night Dec 15 07:16:06 and thanks Dec 15 07:18:32 hey canadiancow Dec 15 07:18:38 :D Dec 15 09:17:56 How can I add google search suggestions to my application? I haven't found any good tutorials Dec 15 09:20:07 Did you look at the I/O app that they released? Dec 15 09:20:18 I think they had a bunch of demos in there, I thought I recalled seeing that as one of them. Dec 15 09:20:47 do you remember the name? Dec 15 09:21:04 I will look into it Dec 15 09:21:51 I think it was just the 2012 I/O app, I think Google just put links to it on developer.android.com Dec 15 09:21:56 It was a very neat demo app. Dec 15 10:21:50 is anyone here experienced with JNI and the android-ndk ?? Dec 15 10:28:15 Isn't NDK the C library? Dec 15 10:33:13 manchicken: no it's a tool kit for compiling native code for android devices Dec 15 10:34:04 manchicken: my question is more about JNI, actually. do you have experience with that Dec 15 10:34:45 Not much. Most of it was something I did to try to hack a sqlite driver to work without the Android metadata tables in a sqlite DB. Dec 15 10:37:55 ah. well if you could please give it a shot anyway: I compiled an open source .so library for an app I am working on. this is just a regular c++ library with a bunch of functions. now, I don't want to make any changes to this library, since I would have to publish them (apache license 2.0). so what I want to do is make yet another library containing my JNI calls. I want to call functions from the open source library from th Dec 15 10:37:57 t? Dec 15 10:38:37 JNI calls* = JNI methods Dec 15 10:58:29 zerribert, your question got cut off Dec 15 12:07:15 recommendations for androidd logging apis? would like something a bit.. neater than just doing static method calls to Log all the tim,e Dec 15 12:09:47 looking for a bit of clarification, I auto generate multiple instances of a layout with a editText... using inflate... all is fine until I rotate the screen, all editText's take the same "last" value on update Dec 15 12:10:16 it seems cause of the inflated editText id being duplicated and used by android on a draw refresh Dec 15 12:10:26 what does auto generate know? Dec 15 12:11:10 *mean sorry Dec 15 12:11:26 just the layout resource to inflate and the init value of the editText Dec 15 12:11:30 oh Dec 15 12:11:46 are you dynamically adding the edittexts or are they part of the xml layout? Dec 15 12:11:48 jjust use inflate and attach in a loop Dec 15 12:11:59 they are part of layout Dec 15 12:12:11 hence all having the *.id.value id Dec 15 12:12:26 you can use some resource to give you unique values Dec 15 12:12:33 you can also set the id as you add them in the loop Dec 15 12:12:41 yep Dec 15 12:12:45 and done that just to test Dec 15 12:12:49 and all is fine Dec 15 12:12:53 :) Dec 15 12:12:57 problem is it's a complex layout Dec 15 12:13:04 relativeLayout Dec 15 12:13:11 well there's you first problem! Dec 15 12:13:11 hehe Dec 15 12:13:29 you might try just building it in code Dec 15 12:13:34 at least for the edit texts Dec 15 12:13:38 i manually change the id's and my layout constraints dont work Dec 15 12:13:53 how many edit texts are we talking about? Dec 15 12:14:03 well it's a form generator Dec 15 12:14:07 ahh Dec 15 12:14:09 only testing with 2 fields Dec 15 12:14:16 while I solve this Dec 15 12:14:22 prob is styles Dec 15 12:14:36 if I could apply in code that would be fine Dec 15 12:14:44 you can Dec 15 12:14:59 I looked a few months back Dec 15 12:15:17 i think its an overload of the constructor Dec 15 12:15:53 there is no way to set things like text style : shadownD* Dec 15 12:16:07 or not that I'm aware of Dec 15 12:16:14 even tried attribute sets Dec 15 12:16:23 String: http://stackoverflow.com/questions/3142067/android-set-style-in-code Dec 15 12:16:45 top answer with 22 Dec 15 12:16:48 by dan k Dec 15 12:16:55 brb Dec 15 12:17:05 yeah...thats not setting the style Dec 15 12:17:10 thats inflating like I'm doing Dec 15 12:17:17 based on a style choice in code Dec 15 12:21:42 also have another strange problem, just wondering if ne1 has the same, onConfig change in a fragment if a editText field has changed and still has focus, the change is duplicated when you .getText Dec 15 12:21:57 eg. EditText with "hello" Dec 15 12:22:13 click and add " all" to the end Dec 15 12:22:45 getText onDestroy and you will get "hello all all" Dec 15 12:23:12 if that view still has focus and keyboard is collapsed Dec 15 12:24:15 collapsed = hidden with the hide "v" symbol Dec 15 13:10:51 Have gotten Installation error: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION for quite some now, stacktrace http://pastebin.com/CGnQfLCa Dec 15 13:21:01 is it better to remove every Activity's unwanted title bar through settings its NoTitleBar theme in the Manifest? or through issuing this line ` requestWindowFeature(Window.FEATURE_NO_TITLE); ` before the setContentView() in each of the Activities' onCreate()? Dec 15 13:25:15 the former method is better, the latter keeps the title bar lingering there for 0, 1 seconds before it is removed. as per this question http://stackoverflow.com/questions/9410600/removing-title-bar-of-android-application Dec 15 13:45:46 Is the android.test.purchased a managed item? Using the new IAPv3-lib, this is what I'm getting after buying it the first time: Purchase finished: IabResult: Unable to buy item (response: 7:Item Already Owned), purchase: null Dec 15 14:03:16 Hi everybody! I am trying to implement the InApp v3 lib to an app, but after copying the aidl-file to my sources (into /src/com/android/vending/billing/) I get some errors in the generated files in the /gen folder. All like: "The method asBinder() of type IIanAppBillingService.stub must override a superclass method" ... anybody an idea on how I could fix that? Dec 15 14:37:54 evident: Still having that issue? I didn't get it when I tried. Dec 15 14:38:34 evident: Did you add it as lib, or just put it in src/com/android/vending/billing/. and referenced it as a regular class? Dec 15 14:39:49 if I change the Title of my published application (I changed it from the developer console of course), will it take effect on the Market soon after? Dec 15 14:40:51 Sicp: Yup, takes a random amount of time (few minutes to few hours). :) Dec 15 14:41:07 Sicp: I once saw my change kick in a few minutes later, but at most it was a few hours. Dec 15 14:41:27 cause the name is really obstructing its visibility Dec 15 14:41:35 it's for sysadmining, and it's called Cura.... Dec 15 14:41:43 it seemed like a good idea at the time and everything Dec 15 14:43:27 there should be a channel here for Google Play only Dec 15 14:45:47 Sicp: Would be a bit helpful, as there are quiestions strictly related to it. :) Dec 15 14:45:54 yea, many of them Dec 15 14:46:26 for example, app has been up since August and 200 downloads so far only; good/bad/what? Dec 15 14:46:53 Sicp: Well, depends on the audience. Some apps never reach 200 downloads, some reach it in a day. :) Dec 15 14:47:09 true yea Dec 15 14:56:35 n20: I just created the folders, copied the .aidl file and it automatically built the interface from it in Eclipse... But I have figured the error out by now: The Java Compiler was set to 1.5, which causes these problems. Setting it to 1.6 solved it... Dec 15 14:57:09 evident: Could you try the android.test.purchased for me? If you buy it twice, does it act as a managed product? Dec 15 14:57:30 evident: Or do you know if there's an "unmanaged" substitute for android.test.purchased? Dec 15 14:58:33 http://stackoverflow.com/questions/13774117/access-google-talk-chat-history Dec 15 15:05:21 Hi. Dec 15 15:05:28 What can I do with adb shell ? Dec 15 15:06:23 Is there in android shell language to manage system task ? Dec 15 15:07:28 i dont know if it qualifies as a language? but it sure has many useful commands Dec 15 15:10:09 bluesm: when you do adb shell, you go into your android, which is a linux based system Dec 15 15:11:09 wilornel: This have "bash" ? Or google, makes their own shell ? Dec 15 15:12:22 did you ever use linux terminal? Dec 15 15:12:28 i think your device needs to be rooted to run linux commands Dec 15 15:12:35 the android shell is not like cmd Dec 15 15:12:40 its like the terminal Dec 15 15:12:52 bluesm you might ask around android-root too Dec 15 15:12:55 you can do: ls Dec 15 15:12:55 maybe the adb commands run on top of bash? Dec 15 15:15:41 wilornel: I use linux terminal,with bash ... Dec 15 15:16:08 wilornel: Yes I see, but its probably not bash ... Dec 15 15:17:19 no its not bash Dec 15 15:17:33 there is bash simulating script somewhere Dec 15 15:17:36 that's widely used Dec 15 15:17:44 can't rmember what it is called check android-root Dec 15 15:18:02 Hello folks! Working on my first project. Was wondering if connector/j is the way to go. Trying to learn by making a simple chat. More like a guestbook. Dec 15 15:18:04 *by bash simulating i mean something you can emulate most bash functions Dec 15 15:19:24 lasserix: Ok... :) Dec 15 15:20:06 lasserix: Could you link me to any documentation ? About this shell ? Dec 15 15:40:54 Hello everyone. The plot of installations in google play, does it show the active installations or the new installations ? Dec 15 15:42:43 The onClick event in my Fragment tries to call the method in my Parent Activity... Dec 15 15:48:37 Is it normal that a onClick in my fragment ends up calling the parent activity's method? Dec 15 15:52:36 If you mean android:onClick in xml, yes Dec 15 15:52:56 Thanks Dec 15 16:11:29 im dealing iwth the layout of an activity, and i want tto know is ther anyway i can add some padding or empty space to the right of a view? Dec 15 16:11:49 i would like to have some empty padding beteween the view and the edge of the screen Dec 15 16:12:13 Oh I'd like to know aswell Dec 15 16:12:42 my view is sticking to the right of the screen, its not centered, looks ugly Dec 15 16:13:35 i want it right - aligned but with a padding to the right as well Dec 15 16:25:07 I have some apps like gmail running and I tap notification of my activity which opens my activiy. After pressing back button instead of getting back to home I'm on Gmail, any idea why? Dec 15 16:26:20 Because you're going back to where you last were Dec 15 16:26:57 SimonVT: but if I'm on Message and open gmail from notification, after clicking back I get back to home not message Dec 15 16:28:37 Because google is doing it wrong and messing up the back stack Dec 15 16:30:30 SimonVT: cool, how can I do the same wrong? I'm making lock screen app that simulates home press and lock button press Dec 15 16:37:00 SimonVT: any idea? Dec 15 16:37:20 SimonVT: I tried with couple of other apps as well, they all behave the same like Google. Dec 15 16:37:33 They're all damn annoying to work with Dec 15 16:39:36 SimonVT: so according to you, if I'm on app A and open appB from notification or recent menu and after clicking back on appB I should end up on appA ? Dec 15 16:40:09 a SensorManager can only contain one sensor at a time? Dec 15 16:41:08 Yep, that's what I'm saying Dec 15 16:42:40 SimonVT: ok so is there a way apart from running intent to open home, to go to home after current activity exits? Dec 15 17:16:09 is it just me or the quick settings can't be pulled down in the 10" emulator Dec 15 17:43:52 hi Dec 15 17:45:15 New maps api requires opengl2. Is there a way to use it with old map fallback on opengl 1.1 devices? Dec 15 18:16:52 How do I connect to my android device using adb connect? It's asking for host/port :S Dec 15 18:18:17 WhereIsMySpoon: you don't need to "adb connect" over usb, only if you want a tcp connection Dec 15 18:18:43 Ge0rG: ok, so I need to mount it then in that case Dec 15 18:18:56 seen as i cant see it in my usb devices Dec 15 18:19:04 but it is connected , as i can lsusb and see it Dec 15 18:19:08 and with adb devices Dec 15 18:19:09 I am using an action bar and I have 3 tabs in the top bar. When they are selected, its respective fragment is either added or attached, depending if it is currently running or not and if it is unselected, the fragment is dettached. If I make any ui changes, detach, and attach the fragment, the ui state is reset. How do I fix this so that the ui state is restored? I also have setRetainInstance(true). Dec 15 18:20:04 WhereIsMySpoon: do you have "USB debugging" enabled in the devices developer preferences? Dec 15 18:20:10 anyone using IntelliJ here? Dec 15 18:20:16 Ge0rG: yes Dec 15 18:20:44 WhereIsMySpoon: then, if you see it with adb devices, it is connected. you can install apps etc. Dec 15 18:20:48 WhereIsMySpoon: just run "adb shell" Dec 15 18:20:57 oh Dec 15 18:21:05 I thought I had to adb connect to do adb shell Dec 15 18:21:08 :D Dec 15 18:21:29 WhereIsMySpoon: that was too easy, then :P Dec 15 18:21:53 Ge0rG: hm, saying permission denied when i try to ls /data Dec 15 18:22:06 WhereIsMySpoon: yeah, thats normal without root Dec 15 18:22:13 Ge0rG: how do i log in as root Dec 15 18:22:22 there's no sudo or su on the shell Dec 15 18:22:25 WhereIsMySpoon: "su" from adb shell, if you have root Dec 15 18:22:32 WhereIsMySpoon: then you need to "root" your phone first Dec 15 18:22:35 oh Dec 15 18:22:47 :S i can see inside it on windows fine Dec 15 18:23:05 WhereIsMySpoon: what you see is /sdcard, not /data Dec 15 18:23:08 using file browser Dec 15 18:23:12 ah Dec 15 18:23:17 i see Dec 15 18:23:27 Ge0rG: rooting can't damage the product can it? Dec 15 18:23:40 WhereIsMySpoon: maybe Dec 15 18:23:50 maybe? :p Dec 15 18:25:21 if you drop it while rooting it can be damaged Dec 15 18:25:46 funkbox: lol Dec 15 18:38:09 WhereIsMySpoon: rooting isn't what damages a phone, fumbling the rooting procedure can very well land you with an expensive paperweight Dec 15 18:38:20 belgianguy: okay Dec 15 18:38:30 so read and read again Dec 15 18:38:34 cross reference some sources Dec 15 18:38:41 belgianguy: i'm using http://www.geek.com/articles/mobile/how-to-root-the-nexus-7-20121116/ Dec 15 18:39:00 just know what you are doing, and you'll be okay Dec 15 18:39:38 belgianguy: ive got a screen on my device that says "start" in a box Dec 15 18:39:44 i tried to press it but nothing happened Dec 15 18:41:29 ... Dec 15 18:41:51 until which point did you get? Dec 15 18:42:12 belgianguy: the start box is pointing up towards the power button Dec 15 18:42:24 belgianguy: then on next line its "..." Dec 15 18:42:31 do i need to reboot it? Dec 15 18:43:07 WhereIsMySpoon: did you follow the tutorial to the letter? Dec 15 18:43:18 eg did you install the drivers etc? Dec 15 18:43:27 belgianguy: windows installed them Dec 15 18:43:43 How can the developer payload on the Developer Console be too long? When I test IAB v3 I get an "IAB-DPTL" error, StackOverflow says that my Developer Payload is too long, because it's limited to 256 characters... How do I solve this? Why is the payload string on the developer console so long? Dec 15 18:44:33 WhereIsMySpoon: does the root exe need to detect your tablet? Dec 15 18:44:49 eg does it have to say something else than waiting for device? Dec 15 18:44:59 I haven't done this process, so don't take anything from me Dec 15 18:45:06 just be careful Dec 15 18:45:26 belgianguy: http://pastie.org/5536173 this is literally what i have Dec 15 18:45:31 perhaps check YouTube? Dec 15 18:45:40 and match those actions 1 : 1 Dec 15 18:45:51 and on my tablet it is showing a big box at the top which says "start" and the box points towards the arrow button on my tablet Dec 15 18:46:18 it has a pic of the android robot with its internals showing and at the bottom left "fastboot mode" with some stuff and then "lock state - locked" Dec 15 18:47:43 WhereIsMySpoon: I have no experience with said process, any bad input could possibly brickj your device, I'd say look up a more detailed version Dec 15 18:47:48 eg YouTube Dec 15 19:09:57 shouldn't it always be possible to 'unbrick' a device by doing what the manufacturer did when it originally flashed? Dec 15 19:13:14 ok i've got all the way through the procedure, the rooting s/w finished but my device says "rom may flash stock recovery on boot. Fix?" Dec 15 19:13:22 do i press yes or no Dec 15 19:13:30 i've made a backup Dec 15 19:13:51 I have to query a server in every X seconds. I use a service and a thread which runs the query in an infinite loop. Is there any better methods to do it? Dec 15 19:13:54 It's either "no" or "yes - disable recovery flash" Dec 15 19:15:04 which do i chose Dec 15 19:15:05 choose* Dec 15 19:15:50 How is it possible for the accelerometer to see the rotation of the device? Dec 15 19:24:25 wilornel: by placing a gyro on each axis Dec 15 19:24:48 well, there's more than just the x,y,z axes for accelerometers, iirc Dec 15 19:25:41 eh, ok, i've rooted it and i disabled the recovery flash Dec 15 19:25:47 but i still dotn have the option to su Dec 15 19:25:51 says command not found Dec 15 19:26:01 i installed supersu Dec 15 19:28:27 p_l: how many axes are there? Dec 15 19:28:37 what is the command for getting to superuser Dec 15 19:29:59 p_l: google made a demo class which was actually a table with some iron balls on it, and it was using the accelerometer instead of the gyroscope to keep the balls "falling" to the bottom of the screen Dec 15 19:32:10 wilornel: the accelerometers and gyros are basically the same thing (as accelerometers work by analyzing behaviour of several gyros) Dec 15 19:32:27 oooh I see Dec 15 19:32:48 so there is a way to calculate the acceleration of the device in order to get its rotation? Dec 15 19:32:51 guys? how do i get to superuser in adb shell Dec 15 19:33:05 it would be a lot simpler to use the gyroscope instead, right? Dec 15 19:33:07 iirc, the effect is that the accelerometer data in Android will provide you with "direction of acceleration", and I shouldn't have to remind you that we are all under 1G acceleration ;) Dec 15 19:34:03 I know this :P Dec 15 19:34:16 so the rotation would've been better in their app? Dec 15 19:34:18 wilornel: for rotation, the best use is to take data from compass and accelerometers - afaik we don't get raw gyro data Dec 15 19:34:45 why not use gryo instead of compass + accelerometers? Dec 15 19:35:59 well, gyros are relative to the position they started spinning Dec 15 19:36:10 and you don't know that Dec 15 19:36:18 I know that Dec 15 19:36:50 you said afaik we dont get raw gyro data? well doesnt that prove you wrong? http://developer.android.com/reference/android/hardware/Sensor.html#TYPE_GYROSCOPE Dec 15 19:37:03 hmm Dec 15 19:37:06 then I am wrong Dec 15 19:37:11 oh alright then :P Dec 15 19:37:27 soo for the rotation of the device I shall use the gyroscope, right? Dec 15 19:37:44 heh Dec 15 19:38:12 right now, I'm completely \lost myself :D Dec 15 19:38:18 hahah Dec 15 19:38:24 and I just got some stuff to unpack, and have to get back to work Dec 15 19:38:44 alright then ima leave you to your work, but still, thanks for the info! Dec 15 19:43:31 can anyone help? i dont have /system/bin/su on my device but i followed the rooting procedure right to the end :S Dec 15 19:51:17 I'm a bit stumped here. I'm replacing a fragment (A) with a listfragment (B), however B is not showing any items in the list and getView() on my adapter is not being called but getCount() is returning > 0 Dec 15 20:10:33 you know, i have a strong feeling it's reverting to a backup image when i reboot after rooting Dec 15 20:10:38 how do i stop it doing this Dec 15 20:14:12 WhereIsMySpoon: #android-root Dec 15 20:14:21 kevinb: yea i just got there :) Dec 15 20:20:19 Could anybody recommend a book or online guide for somebody who is fluent in Java already but I have no experience with developing on mobile platforms. Dec 15 20:20:42 for android dev? Dec 15 20:20:54 g00s, Yeah Dec 15 20:21:02 Reto is a safe bet Dec 15 20:21:11 g00s, Is that the title/ Dec 15 20:22:00 the author Dec 15 20:22:54 g00s, Okay I'm googling it Dec 15 20:22:57 i think the title is "Professional Android Development" . Lots of people seem to also like Mark Murphy's books Dec 15 20:23:10 i've got that one, it's not bad Dec 15 20:23:24 shawn: the best bet is to just start following tutorials and making apps Dec 15 20:25:14 I really, really liked Unlocking Android Dec 15 20:25:19 but it's a bit dated now Dec 15 20:25:31 there is a 3e Dec 15 20:25:57 oh wait, hmm Dec 15 20:26:37 it was broken up into 2 books Dec 15 20:26:47 the authors split and worked on different projects Dec 15 20:26:59 now it is 'android in action' 3e and android in practice Dec 15 20:27:07 the practice book was good Dec 15 20:27:28 but its more like a reader than a systematic treatise Dec 15 20:30:08 how would you go about replacing a specific fragment in a viewpager? Dec 15 20:33:44 Im getting install_failed_dexopt when i try to install my app - all the solutions from people are for emulators =/ what do i do Dec 15 20:35:27 i've wiped the app data from /data/data/com.blah.myapp Dec 15 20:43:33 funkbox, Can you recommend any tutorials though? I don't know what is outdated and what is still good. That's the thing Dec 15 20:43:44 there are some app recipe books Dec 15 20:48:27 Im getting install_failed_dexopt when i try to install my app - all the solutions from people are for emulators =/ what do i do? i've wiped the app data from /data/data/com.blah.myapp Dec 15 20:57:27 hi! can anyone point me in the right direction for implementing drag and drop from one listview to another listview for api 8+? Dec 15 20:58:41 Im getting install_failed_dexopt when i try to install my app - all the solutions from people are for emulators =/ what do i do? i've wiped the app data from /data/data/com.blah.myapp Dec 15 20:59:00 tote: i've done that but it's too much to explain Dec 15 21:00:16 funkbox: can you share the source code for your implementation? Dec 15 21:00:21 no Dec 15 21:01:49 i see, what im struggling with is where to handle the touch events to be able start a drag from one listview and drop it in another, how did you solve it? Dec 15 21:02:03 this might be handy http://code.google.com/p/android-drag-and-drop-listview/ Dec 15 21:02:32 tote: short answer is on long press create copy of item, and have the original follow the finger Dec 15 21:03:09 then when you can use pointToPosition to find over which item it is in the other list view and update accordingly Dec 15 21:06:09 but how do i know which listview the element is over? Dec 15 21:07:40 Can someone point me in the right direction for making a widget like in the native android settings screen? i want to display text-results of my app in a list sorted in categories, and the look of the settings screen is very suitable Dec 15 21:11:56 Does the android site have a guide for setting up an IDE and such for this? I know I've seen it at some point before but I can't seem to find it now Dec 15 21:12:55 hi. i just completed the hello world tutorial. i believe i understand it pretty well. i've made some small modifications and tested interaction with an EditText. now i wish to work toward my own app...How can i change the background color in my layout? do i need a full-screen widget? thanks. Dec 15 21:13:40 shawn: yes, the hello world tutorial walks you through everything Dec 15 21:13:57 shawn: it will point you to this, http://developer.android.com/sdk/installing/index.html Dec 15 21:14:09 but start at http://developer.android.com/training/basics/firstapp/creating-project.html Dec 15 21:16:06 I already have eclipse installed on Fedora, do I want the SDK tools or the ADT Bundle? Dec 15 21:16:39 konradsurf: if you create a color file and define colors in it you can set one of those colors as a background like this: android:background="@color/solid_white" Dec 15 21:17:24 shawn: probably the bundle, it advertises 'everything you need' Dec 15 21:17:49 shawn: you need to download the sdk and ADT Dec 15 21:18:04 you install adt in eclipse and tell it where you put the sdk Dec 15 21:18:05 Ankhwatcher: thanks, on both threads. :) Dec 15 21:18:50 konradsurf: np, happy to see a question I could answer Dec 15 21:30:06 any IDEA users know if it's possible to attach the debugger to an already running process? Dec 15 21:30:26 i' Dec 15 21:30:40 err.. I'm trying to debug something but letting it run in the debugger doesn't work so hot Dec 15 21:31:00 so I'm letting it run until it reaches a state where I need to investigate some values and I want to attach the debugger then Dec 15 21:39:33 guys is there an event which tells an activity that its fragment switched to another one? Dec 15 21:40:06 your activity should be managing its fragments Dec 15 21:40:10 so it should know when they change Dec 15 21:40:32 what about when the user presses the back button? Dec 15 21:40:43 how does the activity know that the fargments have changed? Dec 15 21:41:33 +canadiancow Dec 15 21:41:39 you dont need to say my name Dec 15 21:41:56 http://developer.android.com/reference/android/app/FragmentManager.html#addOnBackStackChangedListener(android.app.FragmentManager.OnBackStackChangedListener) Dec 15 21:42:02 you can probably google this though Dec 15 21:42:05 thats how im finding it for you Dec 15 21:42:31 and if you cant get that working, you could alwyas have the fragment call up to the activity when it's being removed Dec 15 21:42:42 Alright, thanks :) Dec 15 21:43:03 for ayncTask can i not return arrays for doInBackground (so that i can use it in onPostExecute) ? Dec 15 21:43:21 not sure about arrays, buty ou could return List Dec 15 21:43:38 hey guys Dec 15 21:43:43 When I create a custom ListView and ListItem's, do I absolutely need to create all necessary drawables? It is possible to base my list rows on the default Android behavior but just change a few things without having to "redo" it all? Dec 15 21:44:05 what? Dec 15 21:44:11 I meant is it ;) Dec 15 21:45:19 Is google search (voice search) need special processor ? Dec 15 21:46:15 I need some advice. I'm working my way into android dev and as an exercise I'm making a fairly simple chatbot. The app consists of a textbox and a button and the user input is compared to a database and a String response is displayed via Toast. Now, I'm thinking of making both the answers and questions displayed on the screen constantly, but to do that I need a Panel of sorts... so what would you recommend I use? Dec 15 21:46:45 listview Dec 15 21:46:57 Should I use another EditText, where I just append further Q & As? Dec 15 21:47:09 @canadiancow: A ListView huh? Dec 15 21:48:01 tpd: I'd use a TextView instead of an EditText -- I think they're similar, but the EditText will pop up a keyboard if it gets the focus, and that doesn't make sense if you plan to use it just as a place to hold output. Dec 15 21:49:20 offby1: Would the text in TextView be editable? Dec 15 21:52:06 is there a way to just append text to TextView instead of changing it completely with .setText() ? Dec 15 21:58:38 hi, any idea how i can make animation, so imageview appears from bottom and comes to the mid of screen aprox Dec 15 22:15:52 noob q: i'm staring at the Package Explorer in Eclipse/ADT...how do i bring up the String resource editor? Dec 15 22:17:14 konradsurf: open /res/values/strings.xml Dec 15 22:17:23 inside your project Dec 15 22:17:27 ah, values, thanks! Dec 15 22:31:02 i tried to launch my humble little app, and i got some warnings (lint?)...it said my vertical layout "was useless"...so i removed it and now all my UI widgets are jumbled on top of each other. am i missing something? Dec 15 22:33:04 konradsurf: try to read some android documentation about layouts Dec 15 22:33:33 yeah, i did for a while. i guess i need to understand the top-level RelativeLayout first. Dec 15 22:33:43 konradsurf: also Lint gives you extra information mostly why it is useless, maybe because you have made a layout into another Dec 15 22:33:56 thanks Dec 15 22:34:04 konradsurf: if you make a linearlayout for example into the relativelayout it is "useless" Dec 15 22:34:17 apparently Dec 15 22:34:28 konradsurf: if it is the only layout in the relative layout Dec 15 22:34:44 it was doing a good job before i removed it :) Dec 15 22:34:55 because all components in the linearlayout are ordered as the linearlayout says and the relative layout has nothing to do Dec 15 22:35:10 you could remove the relative layout and just use the linearlayout was the suggestion from Lint Dec 15 22:35:38 so remove in the xml the relative layout that the linearlayout is the toplevel Dec 15 22:36:08 cool. do i need to add any special attributes to a top-level layout? Dec 15 22:37:52 e.g. xmlns:android, and xmlns:tools Dec 15 22:39:05 konradsurf: i guess so, i always keep them in toplevel-layout Dec 15 22:39:46 teemperor: thanks for the help Dec 15 22:40:25 konradsurf: np, android documentation seems to be written by a group of monkeys Dec 15 22:40:31 Hi, I'm interested in learn how to contribute to the Android code, I know there are mailing lists (http://source.android.com/community/index.html). I'm interested in android-building , android-porting, android-contrib and android-kernel but the problem is that I don't know where to start, ¿Where could I find resources (books, webs etc) that let me acquire enough knowledge to start to colaborate? Thank you very much in advance. Dec 15 22:41:26 algui91: i think this is the application development channel, maybe #android is a better place Dec 15 22:42:04 oh, thanks you, I thought #android channel was more general Dec 15 22:42:09 I'll try there. Dec 15 22:43:18 algui91: i just searched for 'contributing to android' Dec 15 22:43:42 ...well, i thought i found something useful, but maybe not Dec 15 22:43:59 ah, here Dec 15 22:44:02 algui91: http://source.android.com/source/index.html Dec 15 22:45:32 konradsurf thanks, but I think i need books, tutorials etc, I have no idea how to contribute to a project as huge as android Dec 15 22:45:52 ok. maybe those discussion groups will have info for you. Dec 15 22:46:40 I already asked there, but anyone answer Dec 15 22:47:19 noone Dec 15 22:48:44 is there a way to disable/enable wifi from terminal on a rooted phone ? Dec 15 22:48:56 7/act Dec 15 22:54:50 Guys, I dont understand this log... https://gist.github.com/4300105 Dec 15 22:55:42 orly? nullptr? Dec 15 22:55:51 npe Dec 15 22:55:54 is a npe Dec 15 22:56:00 something is null Dec 15 22:56:44 you mean like an argument? Dec 15 22:57:01 and the stacktrace tells you the lineof your code that failed Dec 15 22:57:13 where? Dec 15 22:57:19 line 86? Dec 15 22:57:46 what are the system images in the SDK for? Dec 15 22:57:48 whats the name of your app? DataFragment? If so yes Dec 15 22:57:59 well thats an activity Dec 15 22:58:07 AND there is nothing to worry of on line 86 Dec 15 22:58:15 hmm Dec 15 22:58:18 it disagrees Dec 15 22:58:21 i can't seem to get this actionbar optionsmenu to work :( Dec 15 22:58:49 drop a logcat the value in the code and rerun Dec 15 22:59:01 or figure out the debugger (i havent yet) Dec 15 22:59:34 I keep seeing this in logcat when I click on an ActionBar options menu item: WARN/InputMethodManagerService(481): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f729a8 attribute=null, token = android.os.BinderProxy@41afa160 Dec 15 23:00:16 worried about a warning? Dec 15 23:00:45 not worried, just wondering if that was an indicator as to why nothing else happens Dec 15 23:01:31 oh ... "why nothing happens" is a pretty large scope ... :) you'd have to define that problem tighter Dec 15 23:02:52 haha Dec 15 23:13:41 is there a definitive list of recorded presentations and talks by romain guy? Dec 15 23:21:15 invalid use of singleClientConnManager: connections still allowed make sure to release the connection before allocating another one Dec 15 23:21:17 ? Dec 15 23:21:20 what does that mean Dec 15 23:34:03 * profligacy somebody help me with this async thread error: http://pastebin.com/bc0aitXE Dec 15 23:39:04 how do i release http Dec 15 23:44:22 maybe http://hc.apache.org/httpcomponents-client-general-purpose git advice: 1) Read "Git For Computer Scientists" (http://eagain.net/articles/git-for-computer-scientists/); 2) Run "gitk --all"; 3) Learn about "git reflog"/httpclient/apidocs/org/apache/http/conn/ClientConnectionManager.html#closeExpiredConnections() Dec 15 23:44:28 heh, ignore that Dec 15 23:44:37 http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ClientConnectionManager.html#closeExpiredConnections() Dec 15 23:44:41 that's more like it Dec 15 23:44:45 I'm extremely new to android stuff Dec 15 23:44:46 http://i.imgur.com/ezVSX.png Dec 15 23:44:50 anyone know how to make this not happen Dec 15 23:45:02 its an empty view, wont go away until like a second after the fragment is updated Dec 15 23:45:06 extreme annoyance Dec 15 23:50:54 When I override onDraw() and add a canvas scaling effect, it seems to cause my View to get remeasured several times every drawing cycle. Does anyone have any clues why this might be happening? Dec 15 23:54:08 so I apparently was extending Application previously, but I no longer am... is there a straightforward way to get the references to my subclass out of AndroidManifest.xml? Dec 16 00:05:28 I want to be a programmer. I saw many nice apps with different features, nice GUI, intelligent smart brains built them. I thought I should also make some app, my own :D Dec 16 00:08:21 I want to be an astronaut! Dec 16 00:09:19 teach me android, in return I shall pray that u become astronaut Dec 16 00:10:04 this will teach you Android, https://www.youtube.com/course?list=EC2F07DBCDCC01493A Dec 16 00:11:42 oh I am downloading netbeans, then I should stop and start eclipse Dec 16 00:12:13 yes Dec 16 00:30:58 Okay I'm really confused... I have the android dev plugin for eclipse installed and I'm trying to create a new emulated device but I go to select Galaxy Nexus and select the latest API version (4.2) and it won't let me click okay.. Am I missing something? Dec 16 00:32:01 I got nothing better to do ... I'll fire up Eclipse and see what I see Dec 16 00:32:35 set eclipse on fire is a better idea Dec 16 00:32:42 ^ Dec 16 00:33:08 I like Eclipse, I've been using it for Java for a couple years and it's what i feel most comfortable with Dec 16 00:33:48 Jug6ernaut: well, yes Dec 16 00:34:17 shawn: worked for me :-| Dec 16 00:34:28 try stopping eclipse and restarting it. I'm totally and completely serious. Dec 16 00:34:33 offby1, With android version 4.2? Dec 16 00:34:37 yep Dec 16 00:34:47 offby1, And with Galaxy Nexus? Dec 16 00:34:49 I'd even go so far as to stop eclipse, then "rm -rf ~/workspace", and start over Dec 16 00:34:57 yep, Galaxy Nexus Dec 16 00:35:07 heck, I could send you the .avd file :) Dec 16 00:36:09 I suspect it's just three files -- ~/.android/avd/whatever{.ini,.avd/{config.ini,userdata.img}} Dec 16 00:36:37 offby1, I'm not sure why it wouldn't even work Dec 16 00:37:04 because Eclipse is a worthless piece of s***, is my guess. Dec 16 00:41:46 offby1, What do you suggest I use... Dec 16 00:42:49 I'm just beginning Android development but I wanted to use an IDE I was already familiar with Dec 16 00:43:23 as far as I know nobody uses anything else Dec 16 00:43:37 offby1, Oh Dec 16 00:43:46 if I were a whiz I might consider avoiding guis entirely, and just using the command line ... but I rely too much on Eclipse's auto-completion for that Dec 16 00:43:49 time to get comfortable with idea! Dec 16 00:44:13 offby1, I rely on auto completion for Java as well Dec 16 00:44:38 java without all that stuff is too painful Dec 16 00:44:43 hence IDEA Dec 16 00:45:11 I might give that a try Dec 16 00:46:04 is the android idea stuff any good? Dec 16 00:46:20 it was great in 11, it's awesome in 12 Dec 16 00:46:26 also is it available in the non commercial version Dec 16 00:46:29 yes Dec 16 00:46:45 all the android stuff in the community edition is the same as in the ultimate edition Dec 16 00:46:51 neat, might try that. Dec 16 00:48:17 I'm nt even able to create an AVD with command line Dec 16 00:48:24 I go to sdk/tools Dec 16 00:48:28 And run android avd Dec 16 00:48:32 And it says command not found Dec 16 00:49:33 how about with ./ in front ;) Dec 16 00:49:41 is the file there? Dec 16 00:50:19 Zharf, Okay, it's the same GUI as the one that came up in Eclipse Dec 16 00:50:23 And it still won't let me do it Dec 16 00:51:21 shawn, tools -> manage avds... Dec 16 00:52:12 oh you had that avd thing in there... Dec 16 00:52:13 um Dec 16 00:52:31 what permissions does your ~/.android have Dec 16 00:52:54 Zharf, I have the Manage AVDs window open I select new, I fill in the name I select Galaxy Nexus, I select Android 4.2 - API Level 17, I select hardware Keyboard present I select display skin with hardware controls, RAM and VM heap is filled in, Internal storage is filled in, I fill in SD Card and the okay button is still not lit Dec 16 00:53:07 If I go down to Android 2.2 it ights up Dec 16 00:53:14 oh Dec 16 00:53:52 I thougth maybe the Galaxy Nexus didn't work with 4.2 but then offby1 said his worked. Dec 16 00:53:59 So it must just be a problem with my system somehow Dec 16 00:55:14 is your 4.2 installed fully? Dec 16 00:55:26 with the system image and all Dec 16 00:55:35 It installed within eclipse when I added the ADT plugin Dec 16 00:55:53 I don't know how to reinstall it Dec 16 00:55:58 close that avd window and just run the android without any parameters Dec 16 00:57:00 Reinstalling them Dec 16 00:57:05 Seeing if that helps Dec 16 00:57:13 make sure the system image is included Dec 16 00:57:25 Zharf, What do you mean Dec 16 00:57:35 Zharf, Oh I see Dec 16 00:57:39 Zharf, Alright Dec 16 01:10:05 going to be falling asleep here so... Dec 16 01:10:46 Thanks for your help Dec 16 01:10:52 Hopefully this fixes it Dec 16 01:10:58 hope it works Dec 16 01:11:06 not much I could come up with anyway ;) Dec 16 01:11:09 good night Dec 16 01:11:47 Night Dec 16 01:13:32 I'm starting to work on an app :P And am feeling very overwhelmed xD Dec 16 01:14:09 take a break Dec 16 01:14:16 have a Kitkat Dec 16 01:15:06 don't have any :P Dec 16 01:15:11 and eh... Dec 16 01:15:30 mostly I'm trying to figure out how I'm gonna have the app download data when I don't have a website/hosting :P Dec 16 01:16:00 but that's impossible, you have to have it somewhere! Dec 16 01:17:07 I know :p Dec 16 01:17:17 I was thinking dropbox...but that might be very unreliable Dec 16 01:17:23 doesn't sound very overwhelming to me Dec 16 01:17:33 no man Dec 16 01:17:38 get real hosting, costs nothing Dec 16 01:17:47 well it does cost something, but you know what I mean Dec 16 01:17:53 Linode is good <-- Dec 16 01:18:01 * Zharf is on linode as well Dec 16 01:18:06 http://aws.amazon.com/free/faqs/ Dec 16 01:18:11 but I'm a broke 16 year old :D Dec 16 01:18:11 AWS Free Tier Dec 16 01:18:23 oh yeah i've heard of amazon Dec 16 01:18:23 how broke? you can get internet cards Dec 16 01:18:27 let's check this out :P Dec 16 01:18:44 you pay 20$ you get a card that has exactly 20$ to spend on the Interwebs Dec 16 01:18:47 12 months at least, 750 hrs of an EC2 Micro Instance Dec 16 01:18:57 per month Dec 16 01:19:47 it's only 12 months :/ Dec 16 01:19:59 lol Dec 16 01:19:59 Sicp, $0 :P Dec 16 01:20:05 haha Dec 16 01:20:14 funny little boy Dec 16 01:20:59 i guess i'll have to include all the data :| Dec 16 01:21:00 :P Dec 16 01:21:28 SimpleDB would work Dec 16 01:21:36 It's xml Dec 16 01:21:39 again free for a yr Dec 16 01:21:44 oh:P Dec 16 01:21:51 as long as you stay w/in the free tier usage Dec 16 01:21:55 I could get hosting from x10hosting Dec 16 01:22:06 but then I'd need to stick to a free domain such as dot.tk Dec 16 01:22:19 and it'll break all old versions when i switch to a .com Dec 16 01:22:37 maybe i should beg my dad to buy me hosting for a year :P Dec 16 01:22:42 *domain Dec 16 01:22:46 and then I'll pay for myself later Dec 16 01:23:49 linode aren't cheap, why does everyone like them so much? Dec 16 01:24:18 storkme: they give quite good quality Dec 16 01:24:39 fair enough. Dec 16 01:25:28 shame they don't have any smaller plans Dec 16 01:25:31 okay, so how exactly would i load a file from /res/raw ? Dec 16 01:25:42 in a way that will let me parse it as plain xml? Dec 16 01:28:59 I'm trying to create an AVD but after I create it, I go to run it and it says cannot find LibGL, what does this mean Dec 16 01:29:38 I don't know what that means Dec 16 01:30:12 libgl has something to do with accelerated graphics. Dec 16 01:30:18 openRawResource asks for ID, how am I supposed to find out ID? Dec 16 01:30:32 shawn, look in the avd settings and turn off gpu accel or similar *shrug* Dec 16 01:30:43 frankdrey, I have that off already Dec 16 01:31:12 hmm Dec 16 01:33:40 if I use sdk 17, can I deploy to older android phones with OS 1.6, for example ? Dec 16 01:34:08 Is it possible to change the title font of an app to a custom one? Dec 16 01:34:55 frankdrey, Could this be because I don't have a dedicated GPU? Dec 16 01:36:13 shawn: GPU acceleration is notoriously iffy Dec 16 01:38:08 p_l, I have it turned off Dec 16 01:39:40 shawn: then it shouldn't write anything about libGL Dec 16 01:39:48 unless acceleration is in mode "auto" Dec 16 01:40:07 then it just means it tried to accelerate but didn't find OpenGL implementation Dec 16 01:40:52 p_l, I don't have the use host GPU thing accepted Dec 16 01:40:54 Clicked I mean Dec 16 01:41:33 shawn: yes, but I'm shooting in the dark that for some reason it decided to go with "auto" Dec 16 01:41:44 p_l, How do I fix that Dec 16 01:42:30 Can anyone refer me somewhere for how to change the title font of an app/activity Dec 16 01:42:37 I would just not care, unless there's any other issue that stops the emulator from working (being dog slow isn't a bug, it's reality) Dec 16 01:44:51 p_l, I let it try to boot for 5 mins and nothing came up. Dec 16 01:47:37 shawn: wait 15 minutes Dec 16 01:47:52 also, start ddms or adb logcat Dec 16 01:48:35 how do I tell avd install to which virtual device to install the apk ? I have now two virtual devices. Dec 16 01:48:51 i mean, adb install Dec 16 01:54:34 So I created a project and created a blank activity and I ran it just to see what happens and it says Hello World. But I don't see anywhere in the source file where it actually prints that out... Am I missing something Dec 16 01:58:53 Or is the interface all made in the xml file? Dec 16 02:26:05 <3 64gb sdcard Dec 16 02:26:36 10gb of psx roms, 2gb of n64 roms, 5gb of music, 10gb of bluray rips, and more -- and still 30gb free Dec 16 02:27:27 Hello, games like shipwrecked, MiB or Ice Age use a grid with a bird's eye view. I search a tutorial how to build something like this. especially how to build a grid and how to place objects on the grid **** ENDING LOGGING AT Sun Dec 16 02:59:58 2012