**** BEGIN LOGGING AT Thu Nov 22 02:59:59 2012 Nov 22 03:33:04 hey how the heck do I connect with adb on this Nexus 10 ??? Nov 22 03:34:08 is it different from (almost) every other Android device ever released? Nov 22 03:34:09 WHy isn't there a 'Developer' section in About? :S Nov 22 03:34:23 There used to be a 'Developer' option :| where did it go Nov 22 03:34:29 because it's been quite sensibly hidden from civilians... go into about, tap the build number a few times Nov 22 03:34:42 holy shit. Nov 22 03:34:44 that is so lame. Nov 22 03:34:51 yeah, that and MTP! Nov 22 03:34:56 MTP? Nov 22 03:35:06 I'd go get a Surface instead, if I were you - Android is done! Nov 22 03:35:09 Thanks man, I was just about to follow some rooting tutorials :S Nov 22 03:35:14 hmm. no thanks :P Nov 22 03:35:14 all Google engineers are idiots! Nov 22 03:35:21 isn't MTP a Microsoft patent minefield? Nov 22 03:35:29 Apple are right to sue over copying Google copying everything! Nov 22 03:35:30 they maybe. But at least it's open source. Nov 22 03:35:39 let's just get rid of patents. Nov 22 03:35:51 patents were made to encourage innovation. now they do the opposite. Nov 22 03:35:56 or, it's a very minor annoyance for developers, which will reduce support overheads for non-developers who find that menu option and start trying to break stuff Nov 22 03:36:53 is that all i need to see it in adb though? still not showing up Nov 22 03:37:04 yewww.. Nov 22 03:37:10 Developer options. now I feel powerful. Nov 22 03:37:26 you need the usb driver too Nov 22 03:38:08 only on Windows Nov 22 03:38:10 guess I'm missing that! Nov 22 03:38:34 http://developer.android.com/sdk/win-usb.html -- this thing? Nov 22 03:38:45 ew, windows Nov 22 03:38:56 Hmm Android SDK Manager says it's installed Nov 22 03:40:08 what's with the My Library thing... thats so annoying Nov 22 03:40:20 the widget? Nov 22 03:40:36 whatever the devices always goes back to in the home screen Nov 22 03:40:47 and if you dont give it your google id it gives you an annoying message Nov 22 03:40:59 with it , I get an annoying recommendation for 3 books I don't give a !)(! about Nov 22 03:41:11 what's the Nexus 10 like? Nov 22 03:41:31 Hated that it didn't have a skip wifi-setup. Nov 22 03:41:43 Cost me 5$ for a coffee and cherry & cheese danish @ Tim Hortons. Nov 22 03:41:47 leslie: unavailable Nov 22 03:42:03 I wonder if that justifies for my corporate expenses. Nov 22 03:42:06 klafka, really? I heard it went back on sale in some places Nov 22 03:42:10 oh heh Nov 22 03:42:31 oh yeah it is Nov 22 03:42:32 it's available in the UK, klafka Nov 22 03:42:35 also US Nov 22 03:43:01 wish the nexus 4 was :( Nov 22 03:43:40 me too :p Nov 22 03:43:43 "Nexus 10 does not support mass storage anymore, " -- what? Nov 22 03:43:45 it sold out in about 20 mins here Nov 22 03:44:01 ESphynx: it doesn't have an sd card Nov 22 03:44:09 it's got 32 gb Nov 22 03:44:30 no sd card eh, sucks :| Nov 22 03:45:05 ESphynx: without a dedicated 'SD' partition, there is nothing to mount mass storage. Nov 22 03:45:26 ESphynx: and MTP and a hidden developer menu! Screw it, get an iPad! Nov 22 03:45:29 to enable it would involve basically making up a fake filesystem image. Nov 22 03:45:34 also, no removable battery! Nov 22 03:45:38 hideous Nov 22 03:46:10 what's MTP anyways Nov 22 03:46:14 I'm getting an iPad mini as well. Nov 22 03:46:22 media transfer protocol or something Nov 22 03:46:29 a DRM type thing? Nov 22 03:46:38 it's a protocol Microsoft invented for media players Nov 22 03:47:04 it supports DRM but doesn't require it Nov 22 03:47:24 adb interface driver is refusing to install :S Nov 22 03:50:55 oh well there we go Nov 22 03:51:23 working? Nov 22 03:51:49 seems to be yes, I had to update the driver and point it to the root of Android SDK Nov 22 03:52:01 it somehow found a driver in there, didn't work when I explicitly pointed to the Google USB driver folder S Nov 22 03:52:26 device showing up now :) thanks guys Nov 22 03:52:33 need to reboot for some reason Aero is gone :S Nov 22 03:58:32 Hi help! how do I open a browser window with an URL from my code? Nov 22 03:59:43 http://www.mkyong.com/android/how-to-open-an-url-in-androids-web-browser/ Nov 22 04:00:30 capella, doing exactly that but nothing happens Nov 22 04:00:40 reduz, paste your code Nov 22 04:01:54 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com")) Nov 22 04:01:59 mrenouf, http://pastebin.com/KLt2QRDR Nov 22 04:02:20 activity.getApplicationContext().startActivity(myIntent); ? Nov 22 04:02:25 why getApplicationContext? Nov 22 04:02:42 just call "startActivity( ... )" Nov 22 04:02:46 i have no idea, this code is not in the activity class Nov 22 04:02:51 yah stuff like that Nov 22 04:02:58 ok! Nov 22 04:03:03 then "activity.startActivity" Nov 22 04:03:20 catch (Exception e) { return 1; } <--- wtf? Nov 22 04:03:20 thanks! I'll try Nov 22 04:03:23 where is it then? Nov 22 04:03:28 put something in the "catch" to log a message? Nov 22 04:03:43 somewhere else, It's not my code and I don't understand much java Nov 22 04:03:45 (didnt know it could throw though) Nov 22 04:03:52 startActivity does not throw exceptions Nov 22 04:04:12 catch (Exception e) is extremely poor design Nov 22 04:04:42 so remove the try / catch Nov 22 04:05:24 the only way that can fail is if you're on a system where the stock android browser has been removed, or the URI passed in was not valid Nov 22 04:05:44 i think it's supposed to return 1 if not valid Nov 22 04:06:08 even then itd start the browser and fail from there wouldnt it? Nov 22 04:06:53 Not sure. It depends on Intent resolution... ie: what is the intent filter defined on "Browser" Nov 22 04:07:23 still that's fairly easy to validate up front. Nov 22 04:07:28 and I assume he's getting the "TRYING TO OPEN URI" message in his logcat Nov 22 04:08:45 and / or has valid code calling the openURI() in the first place Nov 22 04:10:56 So I finally have some free time to hack on a pet project. But I'm out of compelling ideas. :-( Nov 22 04:11:40 There's one project I could potentially finish but it's usefulness has diminished a bit. Nov 22 04:12:15 I might just end up spending the weekend playing games. Nov 22 04:12:38 so do you guys check /r/android? Nov 22 04:12:45 Also, why does "Plague, Inc" have to be such a shitty port? Nov 22 04:12:48 blech! Nov 22 04:17:38 i know ... id be so much easier if someone paid me to work on real things Nov 22 04:35:56 Sup guys Nov 22 04:43:18 Anyone there? Nov 22 04:45:54 nope Nov 22 04:47:26 Js checking to see if mobile irc works :) Nov 22 04:48:13 it doesn't Nov 22 04:49:07 KaiKai: which client is it ? Nov 22 04:50:09 Androirc the other two popular ones dont work well. This ones pretty clean. Can be better though Nov 22 04:50:33 quasseldroid here Nov 22 04:50:48 does need a server for the core. Nov 22 04:51:06 though that's a bonus in some ways Nov 22 04:52:02 Mhmm. I like the way androirc works though very mobile savy Nov 22 05:05:35 i'm trying to extend SqliteCursor, but i get a warning "SQLiteCursor(SQLiteDatabase, SQLiteCursorDriver, String, SQLiteQuery) is deprecated", but when i remove the first parameter eclipse says "Call requires API level 11 (current min is 8)" Nov 22 05:05:45 is there any way to fix the warning without ignoring it? Nov 22 05:06:53 extending sqlitecursor … hope you know what you're doing :) Nov 22 05:08:37 i've done worse ;) Nov 22 05:10:06 actually i just don't want to close() manually Nov 22 05:10:53 its probably best you don't extend sqlitecursr ;) Nov 22 05:12:19 hey, can wpa_supplicant be build to support multiple drivers in android? wext/wired/nl80211? Nov 22 05:13:21 g00s: why? i've had a look at it and it doesn't look too complicated. Nov 22 05:13:30 ok Nov 22 05:29:53 @SuppressWarnings("deprecation") Nov 22 06:31:19 may I open internet connection to 127.0.0.1 ? Nov 22 06:53:06 is there something like TreeMap that stays sorted by the value instead of the key? Nov 22 07:02:41 squ, i suppose you may, though i don't know why you would Nov 22 07:03:01 i often talk to myself Nov 22 07:03:18 f2prateek, swap your values and keys? Nov 22 07:03:37 alex_PP, gow are you? Nov 22 07:03:41 *how Nov 22 07:03:47 alex_PP, well thanks Nov 22 07:03:58 :) Nov 22 07:04:28 had to replace localhost with 10.0.2.2 Nov 22 07:04:41 g00s, have you tried an ant+ usb dongle in android? Nov 22 07:05:00 alex_PP: you're talking to another alex :) Nov 22 07:05:07 no, i haven't yet Nov 22 07:05:30 dragorn is Mr Usb Nov 22 07:05:45 ok, was just wondering how challending it is Nov 22 07:05:55 *challenge Nov 22 07:06:14 i'm thoroughly disgusted we don't have BLE yet Nov 22 07:06:25 or in the forseable future Nov 22 07:06:35 same Nov 22 07:06:38 :'( Nov 22 07:07:15 i want a phone that's not an SE with an ANT+ chip or some support for BLE Nov 22 07:07:47 and i'd like to know which way to go before i spring for a heartrate monitor and cadence sensor Nov 22 07:10:35 if i met anyone on the android team, i would ask them wth is up with that Nov 22 07:14:32 JakeWharton hi are you around ? Nov 22 07:19:58 alex_PP: my values arent unique Nov 22 08:15:30 I pick an image from the gallery and sets it to an imageview using decodeByteArray(). But for some images, the image is rotated left compared to how it appears in the gallery. Can someone give me some pointers? Nov 22 08:18:58 hello, is there a way to call an install application from a webview? Nov 22 08:19:09 r/install/installed Nov 22 08:23:03 Greets all, have a silly problem. ProgressDialog keeps leaking memory. I put it up as ist loading things for the next activity and I definitely .dismiss it (even overrided startActivity to ensure its dismisses). Also, it doesn't seem to work when I try feed it application context instead of the activity. Is there an (old) guide that someone knows of on how to do it properly? Nov 22 08:24:33 hmmm... interesting. I thought Nexus from Play Store is available in UK Nov 22 08:26:31 napster, have a look at the exif information in the image to find out how it should be rotated Nov 22 08:26:47 https://developer.android.com/reference/android/media/ExifInterface.html Nov 22 08:27:09 ok Nov 22 08:28:57 tagrudev: Take a look at this doc. It has an example as well : http://developer.android.com/guide/webapps/webview.html Nov 22 08:30:04 napster, sorry I didnt ask correctly I am looking for a way to trigger application from a webpage opened in an android browser Nov 22 08:43:23 anyone tried testdroid cloud? Nov 22 08:44:53 tagrudev: read up on intent filters Nov 22 08:45:14 appel1, yeah I found what I was looking for ty Nov 22 08:54:06 http://cl.ly/image/1S0g1g2p131b Nov 22 08:54:13 sorry can someone help me with this error? Nov 22 08:54:24 if you have an app people paid for are you obliged to update it for the latest APIs? so if you decide to discontinue an app would you have to refund people, or maybe make it free for a while first? Nov 22 08:54:27 i don't get why i'm getting an index out of bounds error when i'm not explicitly setting the length of the array Nov 22 08:59:35 hi! what is the usual heap size that's set in real phones? Nov 22 08:59:52 superlinux-hp: highly depends on the phones Nov 22 08:59:58 ProLoser|Mac: looks like you use the widget id as index when getting an item from the appWidgetIds array Nov 22 09:00:18 timroes, oh mate! you are like a bullet! heh! Nov 22 09:00:31 :) Nov 22 09:00:39 a pain, that eventually will kill you? Nov 22 09:00:57 appel, where? Nov 22 09:01:02 appel1: Nov 22 09:01:02 timroes, i mean you're quick! Nov 22 09:01:17 ;) Nov 22 09:01:19 and fast Nov 22 09:01:45 http://stackoverflow.com/questions/5350465/android-heap-size-on-different-phones-and-os-versions second answer shows you some concrete numbers Nov 22 09:01:53 ProLoser|Mac: for loop in onUpdate Nov 22 09:01:56 do you know a list? maybe i can get an average number Nov 22 09:02:16 i is an id? Nov 22 09:02:33 ProLoser|Mac: I'm assuming that the appWidgetIds contains app widget ids Nov 22 09:02:51 yes but isn't for (int i : appWidgetIds) give you the index? Nov 22 09:03:01 ProLoser|Mac: no Nov 22 09:03:07 it gives you the value? Nov 22 09:03:23 ProLoser|Mac: that is the point of that for variant Nov 22 09:03:29 superlinux-hp: in the above links are some numbers, I just checked on my Galaxy Nexus, it has 256MB Nov 22 09:03:57 timroes, guess what?! i am opening it right now Nov 22 09:04:16 opening the link i mean before you said it Nov 22 09:04:18 :) Nov 22 09:04:40 acer iconia A501, same size Nov 22 09:04:49 ProLoser|Mac: http://docs.oracle.com/javase/1.5.0/docs/guide/language/foreach.html Nov 22 09:05:13 gotcha Nov 22 09:05:17 archos 101 G8: 24MB :) Nov 22 09:05:58 is it better to develop/debug on the virtual device or on my actual real device? Nov 22 09:06:12 real Nov 22 09:06:17 interesting Nov 22 09:06:27 how would i set that up? Nov 22 09:06:30 ProLoser|Mac: I prefere devloping on real devices, beacause (A) they are real (B) they are faster than the emulator Nov 22 09:06:44 ProLoser|Mac: connect USB, enable USB debugging Nov 22 09:06:45 ya this is painfully slow Nov 22 09:06:50 ProLoser|Mac: http://developer.android.com/tools/device.html Nov 22 09:07:29 on Ubuntu I had to add the ids of manufacturers to a certain list, otherwhise adb would not pick up the devices Nov 22 09:07:41 yeh. android-rules-51 or something Nov 22 09:07:53 but that isn;t necessary under mac :) Nov 22 09:07:54 DR01D-Engineer: yup, that's the one Nov 22 09:08:08 where is usb debugging on 4.2? Nov 22 09:08:13 i can't find it on my nexus 7 Nov 22 09:08:16 you go to about phone Nov 22 09:08:22 and tab 7 times the android version button Nov 22 09:08:24 then it appears in the menu Nov 22 09:08:35 btw anyone else running into oddities with 4.2 on IntelliJ? Nov 22 09:08:48 the GUI editor outright refuses to work Nov 22 09:08:50 wtf Nov 22 09:08:53 seriously? Nov 22 09:09:11 okay i see the big red jellybean Nov 22 09:09:22 then you have 4.1 not 4.2 :) Nov 22 09:09:32 i do? Nov 22 09:09:39 no it says 4.2 Nov 22 09:09:43 it should be listed in About Phone Nov 22 09:09:46 Android version Nov 22 09:09:49 as text Nov 22 09:09:54 4.2 Nov 22 09:10:05 okay and in your main settings no developer options appeared? Nov 22 09:10:15 no Nov 22 09:11:03 ProLoser|Mac: did you tap the Build number? Nov 22 09:11:05 ah build number you have to dtap :) Nov 22 09:11:08 sorry not android vesion Nov 22 09:11:16 (haven't upgraded to 4.2 yet) Nov 22 09:11:31 it says i am now 2 steps away from being a developer Nov 22 09:11:34 wtf is this shit Nov 22 09:11:37 ProLoser|Mac: this is documented in the 4.2 docs http://developer.android.com/about/versions/jelly-bean.html Nov 22 09:11:48 ProLoser|Mac: it is so that non-devs don't have the *developer* menu by default Nov 22 09:12:05 ProLoser|Mac: USB debugging allows *much* Nov 22 09:12:10 very handy for a developer Nov 22 09:12:17 ProLoser|Mac: you wouldn't believe how many non-devs randomly enable shit in the *developer* options and then complain when things get weird Nov 22 09:12:23 but a vulnerability for someone who isn't Nov 22 09:13:15 where are the instructions in here? Nov 22 09:13:30 ProLoser|Mac: what instructions in where? Nov 22 09:13:39 ProLoser|Mac: here http://developer.android.com/tools/device.html :) Nov 22 09:14:02 there is a step by step instruction on how to set up your device for developing (in fact its only 2 steps, thats enough :D) Nov 22 09:14:42 i had to tap it like 4 times :/ Nov 22 09:14:47 now i get what that stupid message was Nov 22 09:16:06 okay Nov 22 09:16:09 it's enabled and i'm on mac Nov 22 09:16:18 but now i need to figure out how to get adt to point to it Nov 22 09:16:48 it should come up automatically for you Nov 22 09:16:56 i saw the transfer editor Nov 22 09:16:59 and show up in listed devices Nov 22 09:17:15 listed devices? Nov 22 09:17:22 in eclipse Nov 22 09:17:34 theres a devices tab somewhere, you might have to "view it" Nov 22 09:18:00 not the virtual device manager i'm assuming Nov 22 09:18:03 or just close the avd, run your app and it should run on the device if its connected properly Nov 22 09:18:08 no Nov 22 09:18:32 what's ddms Nov 22 09:18:51 for debugging and such, device should show up there too Nov 22 09:18:57 i see it there Nov 22 09:19:06 so if i want to put my app and run and debug, etc Nov 22 09:19:42 just run your app, and select device, or if your project is set to autorun, it should automatically choose the device or something Nov 22 09:19:43 oh Nov 22 09:19:54 i thought it would choose my virtual device Nov 22 09:19:59 hi, i am starting to make my app more design guide compliant and am searching for a way to get the section header/title correct. I stumbled over this stackoverlow question: http://stackoverflow.com/questions/10020466/android-4-0-sub-title-section-label-styling . is this current or is there an easier way? Nov 22 09:20:05 not if you close the avd Nov 22 09:20:11 she works!!! Nov 22 09:20:16 nice Nov 22 09:20:21 m1hael, that app is open source Nov 22 09:20:26 my very first widget Nov 22 09:20:47 congratulations Nov 22 09:20:58 canadiancow: which means what? Nov 22 09:21:27 yay Nov 22 09:21:36 also my first android app Nov 22 09:21:54 now lets see how hard it is to pull of what i actuallyw anted to do Nov 22 09:22:09 do i have to uninstall this app manually or when i disconnect will it do it? Nov 22 09:22:29 the app will remain installed on your device Nov 22 09:22:45 okay Nov 22 09:22:51 running the last apk you built/tested on it Nov 22 09:22:56 but each time your run in the IDE, it will overwrite it Nov 22 09:22:59 so yes you must manuallly remove it Nov 22 09:23:01 yeh Nov 22 09:23:23 when you run it, i think it uninstalls and reinstalls with newer code Nov 22 09:23:27 okay Nov 22 09:23:30 also, check out IntelliJ, Nov 22 09:23:38 i have it Nov 22 09:23:55 i've never done android dev before so i wanted as few frills as possible for my first time Nov 22 09:24:00 what does intellij bring to the table? Nov 22 09:24:09 well, most tutorials focus on Eclipse Nov 22 09:24:24 i prefer emacs. any good editor will do Nov 22 09:24:26 so that's why I usually recommend it at the start Nov 22 09:24:49 yeh eclipse is best for learning though Nov 22 09:24:49 okay so i built a widget that simply shows the time Nov 22 09:24:56 do you still have that 30 min restriction? Nov 22 09:25:37 30 min restriction? Nov 22 09:25:40 on what? Nov 22 09:25:52 widget pollinterval Nov 22 09:26:02 the tutorial i saw said it ignores if you set lower than 30min Nov 22 09:26:12 i was wondering if that's no longer the case Nov 22 09:26:15 no idea on that Nov 22 09:26:19 hmm Nov 22 09:26:30 okay well essentially i want this widget to add a bookmark to the map upon click Nov 22 09:26:53 i'm assuming i should simply add a button to my view and add the relevant code there Nov 22 09:27:28 m1hael: if you remeber my screenshots from yesterday, I have done it that way :) (and a bit from answer two also) Nov 22 09:28:10 if I have a ListView that I populate from an Adapter/ArrayList, and I want to do something with the selected item Nov 22 09:28:21 timroes: thanx for the info. so that's the way to go. ... and yes, i remember Nov 22 09:28:35 would just accessing the adapter/arrayList item be the way to go? Nov 22 09:28:48 or is that dangerous? Nov 22 09:29:09 Hey Guys, Nov 22 09:29:21 so how do i bind an event or function to a button click Nov 22 09:29:24 why would it be dangerous? Nov 22 09:29:26 i created the button in my layout Nov 22 09:29:27 belgianguy: What do you mean by "selected item" ? The View or the underlying Adapter's data ? Nov 22 09:29:49 let's say a Person has a Name and an URL, and the Name is displayed in the ListView, and when I select a name, I want to open the URL in a WebView Nov 22 09:29:55 ProLoser|Mac: android:onClick="myFunctionName" Nov 22 09:30:06 or you can set a new OnClickListener Nov 22 09:30:13 hmm Nov 22 09:30:13 ProLoser|Mac: findViewById(R.id.yourbuttonid).setOnClickListener(new OnClick..( Nov 22 09:30:15 (preferred way to do it) Nov 22 09:30:19 yes you can do that belgianguy Nov 22 09:30:23 i'm thinking i should use a button widget instead Nov 22 09:30:42 belgianguy: just tag the view with you data model. then you can retrieve the data model via getTag() Nov 22 09:30:44 Guys, I show a device admin page to user, I'm using a light theme, but the admin page uses the system default dark theme Nov 22 09:30:48 how I could change that Nov 22 09:30:51 belgianguy: you are just reading the data so it's OK Nov 22 09:31:13 ah ok, thanks all :) Nov 22 09:31:24 brickhead: you can't change the theme used by the Settings app Nov 22 09:31:33 as long as the adapter is set up correctly you can do what you want Nov 22 09:31:41 with the data and items Nov 22 09:32:03 cyrilmottier: hmm thanks Nov 22 09:32:14 DR01D-Engineer: I get data from a PHP site in JSON Nov 22 09:32:26 and create Person objects from them Nov 22 09:33:01 which get displayed (it's the result of a search query) Nov 22 09:33:32 ok Nov 22 09:33:36 sounds fine Nov 22 09:34:25 data source shouldn't be an issue. gluing the data to xml views in the adapter is the main task i think Nov 22 09:34:53 yeah, I wrote a PersonAdapter for that, and a custom item layout Nov 22 09:36:16 hey guys... I have a class that doesn't have onCreate, etc... It's basically called by Meta m = new Meta(); then m.doit(shoutcastUrlStream); .. It is called up and inside it, it has an AsyncTask that grabs my meta data (artist/song) from that stream. It works fine, except in my onPostExecute, instead of Logging the artist/song, I need to get that data into this TextView. The problem is, Nov 22 09:36:16 I need to be able to: TextView newsItemText = (TextView) c.findViewById(R.id.news_item_text); but I can't seem to do that without... findViewById turning red on me... So the question is, do I need to somehow pass a "context" or an "activity" or what, into the Meta m = new Meta(this part to make it work?); Nov 22 09:37:17 ^^ follow-up: the c.findViewById was just me trying to test something... I didn't mean to leave it in here for this question. Nov 22 09:39:15 And for the record, I'm using the NPR app set-up... so if any of you have seen it, I'm referring to trying to update this artist/song from my OnPostExecute inside Meta.java to the "drawer" text view at the bottom of the app. Nov 22 09:40:56 belgianguy: if you need an endless list you can try https://github.com/commonsguy/cwac-endless or http://fist.users.sourceforge.net . the two projects differ in their approach but you'll see. Nov 22 09:41:28 I have it working where I type currentPlayable.setTitle(genre,"") from one activity, and that works fine... but then the AsyncTask comes along to try and get the background info, and when I try to set that title again, it's lost because I believe the view/context/whatever is released so that if the next item is clicked, it wont play audio over already-playing audio. Nov 22 09:42:20 'ello Nov 22 09:42:47 It might be easier for me to ask this: Is "findViewById" something that requires the activity info being passed in, or the context activity being passed in? Nov 22 09:43:14 quick question - if I show the soft keyboard in landscape mode, my app automatically does the full-screen edit box thing... but if I look at e.g. google play, it just shows the keyboard, it doesn't fill up the screen with the input box Nov 22 09:43:29 how would one emulate that behavior? Nov 22 09:44:11 pierpark - you need the current active activity Nov 22 09:44:23 or well, any activity really Nov 22 09:44:41 if you're calling it from inside a fragment, you need to start from the top via getActivity() Nov 22 09:45:38 ooooh. Thanks Tee_Pee. Also, I'm trying to find your answer. I had a hard time figuring that one out before, too. Nov 22 09:45:57 actually I found the answer myself :p Nov 22 09:46:54 Cool Nov 22 09:47:31 second question Nov 22 09:47:44 in my XML, my EditText has android:imeOptions="actionDone" Nov 22 09:47:53 now I need to also set flagNoExtractUi Nov 22 09:48:03 can I just do ="actionDone|flagNoExtractUi" Nov 22 09:50:02 god i forgot how much i hate java Nov 22 09:50:52 trying to make a widget button open a notification when you click it Nov 22 09:51:01 i can't pull up the notificationmanager properly tho Nov 22 09:51:21 really? I find it quite enjoyable... makes more sense than Ruby for me really Nov 22 09:52:47 all these objects Nov 22 09:52:51 i hate it Nov 22 09:52:52 anywho Nov 22 09:52:57 NotificationManager noticeManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE)); Nov 22 09:53:09 getting an error on getSystemService Nov 22 09:53:18 i've never seen java syntax like this before though Nov 22 09:55:26 ProLoser|Mac: that's Android syntax IIRC Nov 22 09:55:50 it has loads of Managers Nov 22 09:55:55 so.. Nov 22 09:55:59 how do i get it to not be so error? Nov 22 09:56:23 what error do you get? Nov 22 09:56:34 method undefined Nov 22 09:57:42 do i have to do this at init? Nov 22 09:58:51 in this Activity they do it like that, too http://www.tutorialforandroid.com/2009/03/notification-in-android.html Nov 22 09:58:51 stupid question, perhaps, but what's the difference in an activity between this and this.getApplicationContext() ? both are contexts, right? what's different? Nov 22 10:00:30 muhoo: one is the application context, one is the activity context Nov 22 10:02:49 muhoo: main difference would be the lifecycle scope, a google search will will give you a more detailed answer Nov 22 10:11:07 thanks, will check Nov 22 10:14:27 hallo Nov 22 10:14:43 hallo Nov 22 10:14:51 i'm having difficulty with the NotificationManager Nov 22 10:17:58 Rub its back for a bit Nov 22 10:21:47 ProLoser|Mac: still method not recognized? Nov 22 10:21:58 ya Nov 22 10:22:03 looking through other code examples Nov 22 10:23:45 sorry i seem to repeatedly get kicked Nov 22 10:23:57 so i guess i just need access to context right? Nov 22 10:24:19 Hi, I have a ListView containing custom list items, and when I call setItemChecked it does not reflect it visually Nov 22 10:24:29 getCheckedItemPosition() returns the right value Nov 22 10:24:39 ProLoser|Mac: I've never built Widgets Nov 22 10:24:54 i'm working on the notifications now Nov 22 10:24:56 now I know the list items are supposed to implement Checkable, and I did that, but setChecked is not being called by the listview Nov 22 10:25:05 or are you referring to being in a widgetprovider Nov 22 10:25:44 ProLoser|Mac: I don't know the scope of getSystemService Nov 22 10:25:56 but I'd guess those would be available everywhere Nov 22 10:25:59 i've finally resorted to reading the android code, and now i'm even more confused... look at clearChoices() here http://tinyurl.com/brgvv9x Nov 22 10:26:21 how could that possibly cause anything to happen on screen? All it seems to do is clear some internal state Nov 22 10:28:02 ProLoser|Mac: maybe this'll help http://stackoverflow.com/questions/4870667/how-can-i-use-getsystemservice-in-a-non-activity-class-locationmanager Nov 22 10:28:21 just pass it the Activity context Nov 22 10:31:07 ProLoser|Mac: nm what I said, a Widget does not have an Activity Nov 22 10:32:26 why this insanity: Nov 22 10:32:27 Method m = BluetoothDevice.class.getMethod("convertPinToBytes", new Class[] {String.class} ); Nov 22 10:32:44 instead of BluetoothDevice.convertinToBytes() directly? Nov 22 10:32:49 ProLoser|Mac: http://code4reference.com/2012/07/android-homescreen-widget-with-alarmmanager/ Nov 22 10:32:52 this is better Nov 22 10:33:44 you use the Context that is passed in OnEnabled() etc Nov 22 10:34:20 String.class? Nov 22 10:34:26 wouldn't String being final Nov 22 10:34:29 cause that? Nov 22 10:34:33 muhoo: maybe the class changes at runtime? Nov 22 10:35:49 nm, that only causes issues when extending, nothing to do with your problem Nov 22 10:37:07 hmm, it could, thanks Nov 22 10:47:55 i've even looked for every usage of Checkable.setChecked and nothing seems to apply except ListView.setupChild Nov 22 10:50:53 anyone mind taking a lok at this: https://github.com/ProLoser/FindMe/blob/master/src/com/deansofer/findme/MyWidgetProvider.java#L31 Nov 22 10:51:07 belgianguy: my widget is failing to execute now but i'm not getting errosr Nov 22 10:51:13 maybe i'm debugging incorrectly tho Nov 22 10:52:59 ProLoser|Mac: I don't have any experience with Widgets, I'd say scour over similar examples Nov 22 10:53:06 and see if there are any omissions Nov 22 11:06:40 this doesnt print what I expected: int n = 1; Log.i("", "n = " + n+1); Nov 22 11:09:51 squ: that has nothing to do with Log.i, it is because of how the addition operator in Java works Nov 22 11:11:16 yea :) Nov 22 11:15:46 squ: String.valueof Nov 22 11:15:50 never forget Nov 22 11:16:47 int n = 1; Log.i("", "n = " + String.valueOf(n+1)); Nov 22 11:17:43 which would log "n = 2" Nov 22 11:45:14 I have a solution that will work, but before I go into making a handler, etc... Once an AsyncTask is executed, is there a way to have it run again after 30 seconds? Some one liner that I don't know about? Nov 22 11:46:18 pierpark: http://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html perhaps, never used it though Nov 22 11:46:47 awesome :) thanks m1hael Nov 22 11:46:49 hi there Nov 22 11:47:52 guys what should i use eclipse or intellij? Nov 22 11:48:41 vim Nov 22 11:48:45 ultrixx: what is better: emacs or vi? Nov 22 11:48:55 and true elites use edlin Nov 22 11:49:04 ITYM ed Nov 22 11:49:10 lol edlin Nov 22 11:49:15 also, TECO Nov 22 11:49:33 ok message understood i will test both Nov 22 11:49:40 edlin is for lamers Nov 22 11:49:45 echo >> file ftw Nov 22 11:50:13 I'm trying to use notificationcompat with a custom bigContentView… but I can't seem to be able to set it… does anyone know why this is? Nov 22 11:58:36 belgianguy, thanks! have to remember :) Nov 22 12:06:54 are there many people who make a living off of Android app development? Nov 22 12:07:10 or is such thing only profitable when working in a larger team/company? Nov 22 12:08:47 plenty, although there are probably more doing contract work than direct sales Nov 22 12:09:04 Leeds: ah, that's good to hear Nov 22 12:09:43 I've come a long way already, and think I'm almost ready for some contract work Nov 22 12:10:35 but I dreaded my previous webdev/.NET job company, so now I'd rather be my own company Nov 22 12:18:57 anyway to remove the title bar on a 2.3 device? Nov 22 12:19:35 onigunn: stick some tape over your screen Nov 22 12:20:01 hey, i made an avd via the device manager which is now created in e:\Users\.android\avd\ Nov 22 12:20:25 when i try to start the avd it searches the ini in c:\Users\moo\.android\ Nov 22 12:21:01 no idea why it uses e:\users in the first place Nov 22 12:21:54 Leeds: thanks, I'll put that into the description Nov 22 12:22:24 glad to help Nov 22 12:22:43 tuputamadre Nov 22 12:23:21 upss... ignore Nov 22 12:30:47 anyone got the payoutreport for october in d.console? Nov 22 12:33:32 Loaders are always created for an activity/fragment right? or are they shared across the whole application? Nov 22 12:34:02 SQLiteDatabase db=this.getReadableDatabase(); <- why this line causes program to crash? What kind of mistake it might indicate? Nov 22 12:34:53 jakob|, not present here (on old and new design), but the estimated sales report for Oct is available Nov 22 12:35:26 maybe, delta is 2 months, so it (oct) will be available in december Nov 22 12:40:37 tneva82: what's the crash message? Nov 22 12:41:10 (check logcat) Nov 22 12:48:23 ok so how I get the log cat out from my phone? Nov 22 12:51:56 tneva82: why not debug with the phone connected to the computer and read logcat from there? Nov 22 12:52:03 do you develop in eclipse? read logcat in console there Nov 22 13:03:18 I wonder if el Goog will push their first 4.2 update before December starts Nov 22 13:03:27 with that month missing and all Nov 22 13:03:55 (in just the People app, but still) Nov 22 13:06:08 are there any log collector that works well for ICS and jellybean? Nov 22 13:25:00 Got a question on fragments, I have this layout http://pastie.org/5414722 but when I try to replace the second fragment with transaction.replace(R.id.documents_list_container, fragment); however the fragment is added on top of the one on screen instead of replaced, it has to be something really dumb since I am just getting started but can't figure out what Nov 22 13:26:17 lapdis: app or lib like ACRA? Nov 22 13:27:18 appel1 I just found out that apps no longer can retrieve logs from other apps since jellybean, that is why I had an issue :/ Nov 22 13:27:55 but acra seems awesome Nov 22 13:29:51 I'm intending to fill voronoi cells with textures using canvas, but there doesn't seem to be a drawBitmap() overload that accepts something like path shapes. Can someone recommend me a better way? Nov 22 13:30:40 Jug6ernaut: lol, I know this is delayed. But how do I, let's say, let my client download the app to test it? Normally, I would just send them the APK, but now they need the expansion file Nov 22 13:30:58 Jug6ernaut: i was the guy who asked "Can you access your app from market when it's in Draft? I'm trying to test the Expansion file download" Nov 22 13:31:35 how can I retrieve the ids for the current view hierarchy? Nov 22 13:31:48 lapdis: usually it is enough with the logs from your app Nov 22 13:31:57 lapdis: but I'm sure there are exceptions to that Nov 22 13:32:10 so I can see why my fragment transaction is not properly replacing one of them Nov 22 13:32:39 lapdis: there's always the bug report feature in the develop options that I think includes everything, but that isn't really for end-users Nov 22 13:38:09 that's odd, the actual fragment is in my hierarchy but it is still not being replaced with the fragmenttransaction Nov 22 13:40:21 can I create a radiogroup from the graphical layout editore in eclipse? Nov 22 13:40:49 I believe so Nov 22 13:41:01 if not, look in the XML, that's pretty easy anyway Nov 22 13:42:26 if you're not familiar with the concept: all the tags have to be between the tags to be considered within that radiogroup. Nov 22 13:47:17 blah it's early Nov 22 13:49:32 Syzygy: I know I can do it in the xml. I just want to know if it can be done from the graphical designer cause I don't want to mix the two methods when I don't have to Nov 22 13:50:39 it's not a bad idea to mix it, just saying, haven't spent enough time with radiobuttons yet to be able to tell you that answer Nov 22 13:52:03 matsebc maybe I remember wrong, but I believe a fragment added to xml cannot be removed. It is only when added through code that you can remove it. Nov 22 13:58:17 Syzygy: got it. Right click in the outline and then "Wrap in container" Nov 22 14:01:37 matsebc: However, this approach does not allow you to dynamically remove the fragment at run-time. Nov 22 14:01:48 source: http://marakana.com/s/post/1250/android_fragments_tutorial Nov 22 14:02:10 a very thorough overview of what the Fragments can and cannot do Nov 22 14:03:09 I see thanks Nov 22 14:03:14 I'll have to add it at runtime Nov 22 14:03:19 since I need it removed Nov 22 14:03:31 thanks lapdis and belgianguy Nov 22 14:15:05 Hey there. Nov 22 14:15:17 I'm concerned that I might not be using shared preferences the "right" way. Nov 22 14:15:45 How to use them? Do you put everything in the default shared preference? Everything in one? Multiple shared preferences for different things? Nov 22 14:15:58 Does it even matter? How do you use shared preferences? Nov 22 14:25:41 hi guys. i'm currently using a listiterator in order to go through my arraylist. however there are some problems with this, because i actually don't want a pointer between my elements, but rather on an element. what are the downsides, when using a self implemented iteration vs using a listiterator ? Nov 22 14:28:51 UnbertKant: IIRC, it's just one Nov 22 14:35:42 hello are there any alternatives to traceview? Nov 22 14:38:01 Hey, does anyone have any experience in setting a style for ActionBar? I can't change the color of the little divider under the ActionBar (between ActionBar and Tabs)... Nov 22 14:38:38 MroiZo, yes, thats possible Nov 22 14:39:10 MroiZo, wait, *between* the tabs and actionbar? Nov 22 14:39:38 yes, that small horozontal line Nov 22 14:39:46 horizontal Nov 22 14:39:57 UnbertKant: I've used a PreferenceActivity once, but that's the "old" way of doing things Nov 22 14:40:02 meaning < 3.0 Nov 22 14:40:09 The tabs are shown in whats called the stacked actionbar (at least in portrait). Can you share a quick screenshot? Nov 22 14:40:21 now you can use PreferenceScreen and PreferenceFragment Nov 22 14:40:26 I've set the colors of the tabs as i want, but i can't seem to find the setting that little line Nov 22 14:40:58 2 secs Nov 22 14:41:01 UnbertKant: Professional Android 4 Development has a very neat and detailed explanation on it Nov 22 14:43:08 ok still with fragments trouble, transaction.add(android.R.id.content, df); <- this throws an illegalargumentexception telling me that I "must use non-zero containerView id" Nov 22 14:43:24 and even if I set an Id to my main view I get the same exception Nov 22 14:44:18 I'm trying to inflate an XML layout that has a custom view, but I get a ClassNotFoundException. I'm quite positive that the class exists, all references are spelled right, etc. The weird part: When I run the app for the first time, it works perfectly. When I run it a -second- time, it magically can no longer find the class. Anyone have any ideas for how I might diagnose this? Nov 22 14:44:36 mrenouf: http://imgur.com/3y8HH Nov 22 14:47:08 matsebc: what kind of containerView are you using? Nov 22 14:47:40 linearlayout http://pastie.org/5418468 Nov 22 14:48:11 MroiZo, oh, thats the background. one sec. Nov 22 14:49:24 adq: they should generate the 10th of each month, maybe just lagging a bit this month Nov 22 14:49:30 MroiZo, step1, in your theme: @style/Widget.YourApp.ActionBar Nov 22 14:50:01 matsebc: android version? Nov 22 14:50:20 MroiZo, is this ABS or native? Nov 22 14:50:46 android:minSdkVersion="11" android:targetSdkVersion="16" Nov 22 14:51:27 PeteS: do a "clean" in eclipse, menu - project - clean... Nov 22 14:51:43 mrenouf: It's ABS Nov 22 14:52:19 MroiZo, ok, hang on I will pastebin Nov 22 14:53:35 thanks, it's apriciated alot Nov 22 14:53:52 appreciated Nov 22 14:55:11 belgianguy: PEBCAK, apologies Nov 22 14:58:35 MroiZo, http://pastebin.com/xCTz0AMK Nov 22 14:59:56 MroiZo, you'll need to make a background imgage. you can also try setting a color there "#000000" which might do what you want. Nov 22 15:01:17 MroiZo: do you know that? http://jgilfelt.github.com/android-actionbarstylegenerator Nov 22 15:04:49 matsebc: did you solve it? Nov 22 15:05:00 Firefox thought I needed a break Nov 22 15:05:10 and took the whole system down with it :/ Nov 22 15:05:20 belgianguy: yes I was setting content view after the transactoin, makes sense that the id was invalid Nov 22 15:05:20 mrenouf: yeah, i had a loook at the generator :) i'll have a look at what you did, thanks :D Nov 22 15:05:36 ah, okay, that explains things :) Nov 22 15:05:48 now I am getting the same error when trying to replace which is weirder as it was working perfectly before Nov 22 15:06:39 do you keep a reference to the container? Nov 22 15:06:47 or do you find it again? Nov 22 15:07:56 I don't need to reference the container when I do a replace Nov 22 15:08:11 just the id of fragment to replace Nov 22 15:08:14 hte* Nov 22 15:08:15 the* Nov 22 15:11:28 hi, coming from c/c++ there are release/debug versions of the executable, does the same happens in java when compiling for android? Nov 22 15:11:48 does the debug version contains source code references? Nov 22 15:13:25 matsebc: perhaps this helps http://stackoverflow.com/questions/9095910/navigate-among-fragments-within-one-activity Nov 22 15:14:00 socket, not really. The only close equivalent would be if you use ProGuard to strip down and optionally obfuscate the result. Nov 22 15:14:43 socket, and then there's the "debuggable" flag, which should be turned off in released versions (that's an Android app thing, not java) Nov 22 15:17:05 ok, thanks Nov 22 15:17:16 Java has far less requirement for debug builds as its run in a VM anyway Nov 22 15:17:42 it has meanigful call stacks out the box, the same with .net Nov 22 15:21:30 belgianguy: and yet again I was missusing a method, thanks again, brb Nov 22 15:21:47 matsebc: np Nov 22 15:23:09 hi, I'm programming simple app for playing video in endless loop. It works as expected, but sometimes when video starts from beginning, screen remain black for few seconds and I can hear only sound. anyone know what could be wrong? thx Nov 22 15:23:23 Ahh, even though junk, happy to see Android 4.0 on all these low end tablets: http://www.blackfriday.fm/ad/radioshack/digix-10-8gb-android-4-0-tablet/49116 Nov 22 15:23:55 I use API15 Nov 22 15:24:42 patok, not if you dont share exactly what you're doing (ie: pastbin relevant code) Nov 22 15:26:00 Happy thanksgiving ! Nov 22 15:34:24 mrenouf: sorry... here's the code (java & xml) -> http://pastebin.com/LCFcf91s Nov 22 15:50:32 how can i set the activity title in xml? Nov 22 16:01:13 superlinux-hp: android:label Nov 22 16:01:24 belgianguy, ah ok Nov 22 16:01:27 thanks Nov 22 16:01:31 superlinux-hp: http://developer.android.com/guide/topics/manifest/activity-element.html Nov 22 16:01:57 should also be in your Manifest, the main Activity usually has app_name as default Nov 22 16:02:31 ok Nov 22 16:02:33 fine Nov 22 16:11:50 hmm, is there an android class that handles http request? or do i have to do it the standard java way? Nov 22 16:15:54 back Nov 22 16:21:31 socket: the standard Java way is quite easy though Nov 22 16:25:16 socket: http://pastebin.com/zGmKEBWb Nov 22 16:25:31 that does a HTTP POST request, more than you even need :) Nov 22 16:26:37 thanks belgianguy Nov 22 16:36:07 hey guys Nov 22 16:42:34 hi! what would be a good appraoch to make automatically rotating fragmenst in the same layout? something like a rotating showview Nov 22 16:58:18 hi Nov 22 16:59:14 i have two images in drawable, one is 270 pixels, the other is 50, wide. But on android the smaller one looks like a third of the length of the bigger one. Why is that ? Nov 22 17:04:28 jazzanova: maybe one is being upscaled or downscaled? Nov 22 17:06:10 http://pastebin.com/0LCgc29U Nov 22 17:06:30 in the screenshot, take a look at the two ImageView's Nov 22 17:06:42 according to what would they be upscaled/downscaled ? Nov 22 17:06:54 more over, I cut them both out with Gimp from the same PSD Nov 22 17:07:40 heading.png PNG 278x47 278x47+0+0 8-bit DirectClass 18.3KB 0.000u 0:00.000 Nov 22 17:08:04 messages.png[1] PNG 47x43 47x43+0+0 8-bit DirectClass 3.28KB 0.010u 0:00.000 Nov 22 17:08:15 Guys, My bluetooth headset button brings up a dialog box asking what app i want to open... how do i get my app on that list? i found the intent with logcat... "searchKeyString input=ActivityRecord{416c17c8 com.android.settings/.Settings}, key=com.android.camera/.CameraEntry" Can someone point me in the right direction? Nov 22 17:08:17 this is the output of "identify" Nov 22 17:09:13 I want to get the specific location (long,lat) of an object that's inside a room, that's inside a building. Using the wifi access points I can get the location of my smartphone in the building, but I can't find a way to find the exact position of an object Nov 22 17:10:17 I read of a startup that does it Nov 22 17:10:28 gives your location in a mall Nov 22 17:11:04 damn, no help for me? =\ Nov 22 17:13:14 dioHere: interpolation of signal strength? Nov 22 17:13:15 is there a way to convert the x,y coordinates of a point( given by onTouchEvent) to lon lat? Nov 22 17:13:49 dioHere: you'd have to map them on a certain area, on a certain scale... Nov 22 17:14:36 the startup uses the EM waves of the Earth btw Nov 22 17:14:43 not the WiFi IIRC Nov 22 17:14:57 Cisco does have such hardware (wifi-based localisation) Nov 22 17:15:10 belgianguy I have set an overlay of the floor plan on google maps. I can show the [ Nov 22 17:15:35 Hi, quick question, out of excitement mostly, how much time till this link works usually? : https://play.google.com/store/apps/details?id=com.cubicfrog.edukitty Nov 22 17:15:49 42 Nov 22 17:16:09 QcMat: spamming? Nov 22 17:16:10 belgianguy I have set an overlay of the floor plan on google maps. I can show the position of user at the floor plan using the wifi access points (long lat) strength signal and through an algorithm. But I dont know if there is a way to get the specific location of an object that exists in the room. Nov 22 17:16:19 belgianguy, this is a preschool game, I don't expect any sales here Nov 22 17:16:31 I just want to know how much time till I will be able to tweet about it, etc Nov 22 17:16:45 also, the link doesn't work, I don't expect you guys to go back to it later Nov 22 17:17:31 It takes anywhere from a couple of seconds to several hours Nov 22 17:17:38 ok cool SimonVT , tx for heads uip Nov 22 17:17:40 ill just be patient :) Nov 22 17:18:08 dioHere: I don't get it, tbh Nov 22 17:18:42 that object would have to emit/register somewhere then, no? Nov 22 17:18:43 I'm programming simple app for playing video in endless loop. It works as expected, but sometimes when video starts from beginning, screen remain black for few seconds and I can hear only sound. anyone know what could be wrong? here is the code: http://pastebin.com/LCFcf91s ... thx Nov 22 17:19:10 and when you use the medium (WiFi) as something it wasn't invented for (localisation), you run into problems Nov 22 17:19:58 or you'd have to equip those objects with specific WiFI emitters Nov 22 17:20:11 like "tags" Nov 22 17:23:38 I am looking for a non-UI blocking thread implementation which notifies the caller when job done Nov 22 17:23:58 belgianguy thank you but i think this time I am the one who does not understand :P\ Nov 22 17:25:07 opariti: AsyncTask? Nov 22 17:25:32 OnPostExecute is when it's done Nov 22 17:29:29 when you submit a text search if( Intent.ACTION_SEARCH.equals(intent.getAction())) gets called, what gets called when you submit a voice search? Nov 22 17:31:59 How.... oooodddd... Collections.sort(smsList, new ByDate()); works for almost all of my SMS threads, but ONE friend, I get IllegalArgumentException: Comparison method violates its general contract! ? Nov 22 17:34:03 Komak57: perhaps remove him and add him again? Nov 22 17:34:16 is it a merged contact maybe? Or one that's in multiple times? Nov 22 17:34:40 Is he called Bobby "DROP TABLE users" Tables? Nov 22 17:35:07 nope... she's called sammie Nov 22 17:35:33 maybe it's her picture? Nov 22 17:35:40 best way to be notified of changes in the text of textViews is with a textwatcher right? Nov 22 17:36:40 "byjava.util.Collections.sort has been replaced. The new sort implementation may throw anIllegalArgumentException if it detects a Comparable that violates the Comparable contract." Nov 22 17:36:52 how do i detect (from code) if the screen is in portrait or landscape mode? Nov 22 17:37:06 i'm trying to change which fragment i load in Nov 22 17:37:44 Komak57: yeah, Google points to posts where people wrongly implemented it Nov 22 17:37:53 Which is most likely what happened here Nov 22 17:38:01 Display dsp = getWindowManager().getDefaultDisplay();dsp.getOrientation() Nov 22 17:39:06 Komak57: thanks Nov 22 17:39:20 actually I want to be notified when the user finishes editing the textfield Nov 22 17:39:45 matsebc: a Save button? Nov 22 17:40:01 how do you know he's done, or just thinking of what to write? Nov 22 17:40:03 no, when the textfield loses focus, or the keyboard is hidden or somesuch Nov 22 17:40:20 might be approaching it the wrong way tho Nov 22 17:40:44 matsebc: http://stackoverflow.com/questions/10627137/how-can-i-know-when-a-edittext-lost-focus Nov 22 17:41:22 sweet thanks, my google foo is pretty lousy Nov 22 17:41:30 Komak57: do you violate the transitive property ? Nov 22 17:42:08 Komak57: http://stackoverflow.com/questions/8327514/comparison-method-violates-its-general-contract Nov 22 17:42:35 I should start a Google Fu Dojo Nov 22 17:42:36 Komak57: hmmm, the docs are very thin on getOrientation, nothing of its values Nov 22 17:42:47 Komak57: and it says to use getRotation instead, which eclipse doesnt like Nov 22 17:45:11 belgianguy, thanks... but I fixed it XD i WAS doing a.Timestamp - b.Timestamp, which was working fine. But then i changed it to ((a.Timestamp < b.Timestamp) ? -1 : ((a.Timestamp == b.Timestamp) ? 0 : 1)); Nov 22 17:45:31 err, i should say it was working fine for most things... Nov 22 17:46:47 thanks! ~waves and runs off to get plasterred~ Nov 22 17:46:52 clever: http://developer.samsung.com/android/technical-docs/Handling-Orientation-in-Android Nov 22 17:46:57 i'm looking to display streaming video. Anyone had a go with this? Is VideoView the way to go? Nov 22 17:47:03 scroll down to OnConfigurationChanged Nov 22 17:47:16 I love OnConfigurationChanged :P Nov 22 17:47:38 Komak57: then you should marry it Nov 22 17:47:43 :p Nov 22 17:47:54 ._. it doesn't love me back... Nov 22 17:48:05 I know! I'll marry it against its will! Nov 22 17:49:19 Nope... apparently it cant... it doesn't handle a marraige function, and cant have any children ._. Nov 22 17:49:21 belgianguy: i'll read that Nov 22 17:49:29 I have a working search bar where you can search using the keyboard but voice searce seems to be broke,when you submit a voice search does it use the same method as the text search Nov 22 17:49:37 back, my edittext remains focused when after the keyboard hides, any proper way to make it lose focus when it does? Nov 22 17:50:04 s/when after/after Nov 22 17:50:39 matsebc: http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android Nov 22 17:51:30 matsebc: but that looks wonky to say the least Nov 22 17:51:33 Don't try to fight the framework Nov 22 17:51:38 was about to say that exactly Nov 22 17:51:42 it just assumes that there's something eating space Nov 22 17:51:42 looks hackiish as hell Nov 22 17:51:46 yup Nov 22 18:01:24 is there a maximum size for a widget set somewhere ? If I add three images to a LinearLayout, only two show up, as if the third one doesn't fit. Is that possible ? Nov 22 18:08:38 root66, hey! any update from your "sounds" project? (still curious here) :-) Nov 22 18:10:26 hi, i'm trying to use a scroll view wrapped around a text view (so scollview android:layout_height="wrap_content") but I want to limit this to a certain values... so something like: wrap-content, but if content > value, limit layout_height to value Nov 22 18:10:52 any guesses on how i could do that? Nov 22 18:14:59 well anyone here uses the library Android Plot for XY graphs? Nov 22 18:15:00 Is there away to get android to launch an activity up on a search being sent? So if the user uses voice search and submits there query, can I have an activity handle that seperate from the activity which called onsearchrequested Nov 22 18:19:11 docmur: as far as i know you must anyway specify the activity handling the search, so you can put there whatever activity you want. Nov 22 18:19:29 http://developer.android.com/guide/topics/search/search-dialog.html this gives very detailed information on how to implement the search (also on the part you need) Nov 22 18:21:47 I have the search working for text entries, the issue is when you do a voice search I need to get back the query so I can send it to the right activity Nov 22 18:22:46 well anyone here uses the library Android Plot for XY graphs? Nov 22 18:23:37 docmur: so you want to separate text search from voice search mainly? Nov 22 18:26:22 yes, I need to because of how I handle text searches, it's causing voice searches to fail Nov 22 18:27:59 but then you handle text search the wrong way :) Nov 22 18:28:20 normally the both should work hand in hand the same way (I am not sure, if you are able to separate between these two) Nov 22 18:29:22 you should either read the documentation carefully again, to find a misstake, or post your: Activity, from wich you start the serach; your activity handling the search; your AndroidManifest and your searchable xml configuration Nov 22 18:29:51 then someone could have a look at it, and try to find whats going on Nov 22 18:40:13 hey guys - i think i semi-bricked a samsung galaxy y - it was stuck at a boot loop, i installed cyanogenmod and tried installing a rom for it, however now it is stuck at the first screen that says samsung galaxy y etc Nov 22 18:40:14 any ideas? Nov 22 18:40:43 Yeah, go to #android-root Nov 22 18:40:44 overburn_: #android-root is the channel you search :) Nov 22 18:41:02 thanks mate Nov 22 18:50:15 so I've got this code from the first answer, http://stackoverflow.com/questions/6493517/android-detect-if-device-has-internet-connection Nov 22 18:51:14 I want to implement this (hasActiveInternetConnection()) method but I get a NetworkOnMainThread Exception of course; I try to place it in a thread and I cannot return the boolean value from its "return (urlc.getResponseCode() == 200);" line Nov 22 18:52:13 use a handler to post it back on the ui thread Nov 22 18:52:14 I feel dumb. Nov 22 18:53:43 so no AsyncTask needed, it isn't frequent at all, it's just a one-time hit Nov 22 18:59:42 if I want to allow both horizontal & vertical scrolling can I use a HorizontalScrollView inside a ScrollView or something? Nov 22 19:08:47 Hello. one of my beta testers found a bug in my program that seems to come from the android OS. [Android 3.2.1, reproduced with AVD v3.1] When they switch to the second activity and click on the app's logo the program tries to call the first activity's old name. Where must I rename this to the new name? (I refactored so it should've done so automatically): http://pastebin.com/xVPEADa5 Nov 22 19:09:05 With 'old name' I meant the one from like, 3 app versions back. Nov 22 19:09:32 SimonVT, is this what you were referring to? http://pastie.org/5419609 Nov 22 19:09:44 does'nt insert recreate a table in sqLite after i just dropped it Nov 22 19:11:54 Tyrope: might you have forgotten to change the activity name in your m anifest file in the meta-data of your activity? Nov 22 19:12:35 timroes: this line? Because it's calling nl.tyrope.asimplediceroller.MainScreen, which is now called SimpleMode Nov 22 19:13:22 so it must be wrong somewhere in FormulaMode Nov 22 19:13:56 inside the activity, that causes this error there should be a tag in your AndroidManifest Nov 22 19:13:56 OH! Nov 22 19:13:59 Nvm, found it. Nov 22 19:14:01 Yeah. Nov 22 19:14:02 with PARENT_ACTIVITY Nov 22 19:14:09 hi Nov 22 19:14:10 Nov 22 19:14:12 Thx Nov 22 19:14:21 exactly that :) Nov 22 19:14:36 I wonder why that didn't rename properly during the refactor. Nov 22 19:14:40 Sicp: No, not at all Nov 22 19:15:17 hello Nov 22 19:15:23 I knew it Nov 22 19:16:09 i have to report a violation of the android liscense....can anyone help me out? Nov 22 19:16:11 Create a handler on the main thread Nov 22 19:16:18 my game is live , yay :) Nov 22 19:16:21 Start a thread, check internet connection, post to that handler Nov 22 19:16:26 so it took about an hour more or less Nov 22 19:16:52 am i in the right place? Nov 22 19:17:28 ? Nov 22 19:17:30 anish1337: Probably not. Nov 22 19:17:30 anish1337, you're on a developer chat room Nov 22 19:17:31 Check the topic Nov 22 19:17:33 Email google Nov 22 19:17:52 Little tip, spellcheck the email, it's spelled 'license' Nov 22 19:18:21 or licence :) Nov 22 19:18:34 oh sorry....and thanks! Nov 22 19:18:48 whom exactly do i email? Nov 22 19:19:16 anish1337: http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=1085703 Nov 22 19:19:18 do we get sales stats on android once a day, or is it live ? Nov 22 19:19:29 I'm used to iOS, my first android app Nov 22 19:19:50 thank you very much :) Nov 22 19:19:57 it says "Your financial reports will appear here once you make your first sale." Nov 22 19:22:19 the stuff at https://checkout.google.com/sell/orders is live, the statistics on the dev console update once a day-ish Nov 22 19:22:32 Great, thanks Nov 22 19:22:48 Hi guys! Quick question. Is there a way to get an unique identification for an android device? Like Serial number or something like that. Nov 22 19:23:05 tx for that link, reminded me of "Bank account information required" Nov 22 19:25:53 one last question, what do y'all use to track ranks, reviews, etc, is there apps or do you just use google's websites ? Nov 22 19:26:27 LuigiBairesDev: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html Nov 22 19:27:16 Thanks Kevinb ! Nov 22 19:27:18 QcMat: i don't do iOS so I can't really compare, but my impression is that rank isn't as import on Android as it is on iOS. but Appbrain has some tools and there's another app tracking website I can't remember the name of right now. Also Appmonger is an android app that displays sales information (no ranks though) Nov 22 19:27:36 cool kevinb , thanks Nov 22 19:27:38 noted Nov 22 19:28:08 so Appmonger is worth the 4$? gonna buy it now Nov 22 19:28:28 seems it is, it's got great reviews Nov 22 19:28:49 I'm excited to finally have left my iOS bubble even if things were going well :) Nov 22 19:28:53 wasn't easy Nov 22 19:28:54 i really like it. it's UI is a bit dated now and with a big database it starts getting slow. but i still find it worth using Nov 22 19:28:59 the widgets are nice too Nov 22 19:29:02 cool Nov 22 19:29:26 I transferred from cocos2d-iphone to cocos2d-x Nov 22 19:34:01 too bad Nov 22 19:34:10 cocos2d-* just sucks Nov 22 19:34:13 badly Nov 22 19:37:57 Hi, let me ask something else: Is there any problem by retrieving the serial number of an android device? I ask this becaulse I did the same with an IPhone and apple rejected my app because of that. Nov 22 19:39:39 LuigiBairesDev: what exactly do you mean by serial number? you should in most cases use the Secure.ANDROID_ID (from 2.2 upwards) and that won't make any problems. getting that in the market Nov 22 19:40:24 By the serial number I mean android.os.Build.SERIAL Nov 22 19:41:33 LuigiBairesDev: are your app has a minimunm sdk below 8? Nov 22 19:42:18 I'm developing an application that runs a service, but it can't be run in more that X number of accounts. So to avoid any kind of fraud I need to check that the application is installed in one specific device. Nov 22 19:42:43 It runs from 8 to upper (2.3 <= MY APP ) Nov 22 19:42:45 yeah so don't use that, if you are targeting minimum sdk level 8 Nov 22 19:43:14 use Security.ANDROID_ID isntead Nov 22 19:43:51 2.3 is 9. not sure when Build.SERIAL was added, but even devices that have it don't always populate it Nov 22 19:43:56 because if I decide to sell my device and reset it beforhand, and the one who bought my device, is then not able to use your app, because you uses hardware IDs is identification, be sure, your users will be pissed off very much Nov 22 19:44:38 same the other way around (you offer data for you users with that id), e.g. you sync their settings (and more dangerous some private data) with hardware deivce, beliebe me I would be pissed if i sell my phone and the buyer, gets all my privsate data synced Nov 22 19:45:05 thats why its recommended to use Secure.ANDROID_ID, because this resets when you flash the device, and e.g. log into another google account Nov 22 19:45:29 its just buggy below 2.2, so you would need a fallback solution for that devices, but if you anyway targeting 2.3 you can use that Nov 22 19:46:50 They would also require specific scredentials to log in into the app. But if the user wipes his own device, then the "instalations counter" would be considering that the user has changed the device, when it is actually using the same one Nov 22 19:48:08 What do you need an installation counter for Nov 22 19:48:45 i think he's doing something like a Twitter client where his API key will only work for so many users Nov 22 19:48:52 because the application offers a service that is asociated with an account, and that service can only be used in a limited number of device Nov 22 19:49:21 Like Netflix, you can't share your account with all of your friend, you have a limit to avoid fraud. Nov 22 19:51:15 How do you handle multiple users on one device Nov 22 19:52:21 you log in with yout credentials email+password Nov 22 19:56:35 Hi, I'm using ndk in my android project, but today I discovered, that all string are readable in compiled library file. How to avoid that ? Nov 22 19:58:07 encryption maybe Nov 22 20:02:54 Hi, I 'm trying to call android.os.Build.SERIAL, but I'm getting an error saying that it requires SDK 9, but in Android doc page (The one shared by kevinb) says it need SDK 8. Am I doing something wrong? Nov 22 20:03:35 You're reading wrong Nov 22 20:04:00 isnt 2.3 (“Gingerbread”) SDK 8 ? Nov 22 20:04:10 No, that's 9 Nov 22 20:04:19 Oh, sorry, my bad Nov 22 20:04:23 public static final String SERIAL Nov 22 20:04:23 Added in API level 9 Nov 22 20:04:23 A hardware serial number, if available. Alphanumeric only, case-insensitive. Nov 22 20:06:32 what could cause a cannot find com.cubicfrog.edukitty.Edukitty (bundle id is all but last part) crash Nov 22 20:06:43 crash on open of app Nov 22 20:08:24 this crash : http://i49.tinypic.com/2zs5hz4.png Nov 22 20:10:07 coudy: _what_ is visible? Nov 22 20:10:19 eg the most sensitive ? Nov 22 20:11:22 you mean your external non-Java lib has these strings inside of it Nov 22 20:14:50 ffffffffffffffffffffffucking finally. Nov 22 20:44:53 "unable to collect system trace." + Unable to find trace start marker 'TRACE:':'atrace: not found ;( Any idea what's going wrong? I thought DDMS will put itself marker Nov 22 20:46:27 belgianguy: hi, yes... I have store some string values in ndk, and comparing it, and all string values are visible in compiled library file Nov 22 20:47:16 coudy: how would you expect them to be? Nov 22 20:47:51 coudy: encrypting will slow malicious users down, if it's truly sensitive info (pass/login etc) use a verification server of some sort (something the client does not have access to) Nov 22 20:48:30 timroes: no human readable ? . Im thinking about hash function, and compare hash, but I don't know if it is enought Nov 22 20:48:53 I found my problem, I had renamed package, but my main class was still the old package Nov 22 20:48:56 belgianguy: I can't use server, app must be offline Nov 22 20:48:57 coudy: if you need the strings somewhere, as belgianguy already said, you can just slow down malicious users Nov 22 20:49:04 so "rename application" in android tools is broken, or I expect too much out of it Nov 22 20:49:20 because as long as you save it on the device, the user can somehow access it Nov 22 20:49:31 but if you don;t need the strings ofc it is possible you just save hashes Nov 22 20:49:43 i don't know against what you need to compare it Nov 22 20:50:34 timroes: I'm comaparing device id, if device id is stored in library, then app run, if not, then not Nov 22 20:51:17 okay than hash your device id's you want to compare and save only the hases in your library, and on runtime hash the device id, and compare it against that hash Nov 22 20:51:49 I have LinearLayout with three children, horizontally. How do I make them be distributed evently to take all horizontal space ? Nov 22 20:53:00 timroes: it is safe store hash function in library ? or not ? Nov 22 20:53:53 it is save to store a hashed string in your library, since hashes are one way only. and ofc you shouldn't write an own hashing algorithm, just take a good one out there Nov 22 20:54:01 like sha2 Nov 22 20:54:30 hi Nov 22 20:55:54 timroes: last Q, hash deviceid in runtime in java or in ndk ? Nov 22 20:56:44 if you are anyway making a lot of stuff in ndk, you can also hash it in NDK (I am not sure, if native hashing functions are available in ndk?) if you just tried to use the ndk to encrypt the strings, throw it away, and hash in java Nov 22 20:57:26 sha is anyway designed to be very fast, so you won't get any performance issues. (for comparing one string, you shouldn't get a performance issue, with any hash algorithm ) Nov 22 20:59:17 if you want to do it in java: https://github.com/DokuWikiMobile/dokuwikimobile/blob/alpha/src/org/dokuwikimobile/util/HashUtil.java (just change the salt at top of the class, even though its not necessary) Nov 22 20:59:26 timroes: I'm comparing that device id in ndk, so I'll hash it in ndk, and then compare.. thx Nov 22 21:00:09 just out of couriosity: you compare the device id in ndk, because you do most of the stuff in ndk? Nov 22 21:02:04 timroes: no, because I was able to decompile java and see stored device id. So I choose this method, because it is safer than java (that I read on net) Nov 22 21:02:51 again, like belgianguy said, you just hiding stuff, and security by obscurity is normally never a good choice Nov 22 21:02:53 Hi! I'm trying to pass an integer as a parameter to execute() in AsyncTask, but when it is executed only the address to the integer is passed, like "[Ljava.lang.String;@43e4c9f8". I've tried toString() but no result. How can I get the correct parameter passed? Nov 22 21:03:11 better make it that way, that even a person knowing all your source code, cannot break the system Nov 22 21:05:48 timroes: sorry, I'm lost, what belgianguy said ? use encryption ? Nov 22 21:06:08 "(21:47:51) belgianguy: coudy: encrypting will slow malicious users down" Nov 22 21:06:28 if you just try to hide the stuff, you just slow malicious users down, but don't prevent them from hacking your app Nov 22 21:06:44 as you said, instead of your java code they will decompile your native lib Nov 22 21:07:03 ofc that takes more time is harder, so you will slow hackers down, but not prevent them Nov 22 21:08:22 best is make your app save in the sense of Kerckhoff principle, meaning a hacker does know your whole implementation and system, and still should not be able to break the system Nov 22 21:08:23 yes, but it is higher level, so it must be more experienced hacker Nov 22 21:09:05 When I resume, does every variable become null ? Nov 22 21:09:18 but it is unnecessary, if you e.g. use hashes Nov 22 21:09:28 (I should say, when I pause) Nov 22 21:09:42 even if smoeone decompiel your app, they will only see the hash, and since sha is a one way hash function, they cannot decrypt the hash to the plain text Nov 22 21:11:37 timroes: 1. If I hash deviceid in java to compare it in ndk with other hash, hacker will see it, Nov 22 21:11:46 timroes: 1, If I hash deviceid in java to compare it in ndk with other hash, hacker will see it, Nov 22 21:11:59 coudy: you should save the device id against which you compare already hashed Nov 22 21:12:26 so you will have something like: Nov 22 21:12:28 timroes: 2, If I hash device id in ndk, after decompilation hacker will see it too Nov 22 21:12:51 if(sha1(getDeviceId()).equals("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3")) { // its the right device id } Nov 22 21:13:01 No one knows what happen to the members of any class when I pause ? does they become null ? Nov 22 21:13:22 that way it doesnt matter if you compiled that with sdk or ndk, a hacker can decompiel both, and in both cases he will onlye see a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 Nov 22 21:13:23 atoll: Activity died :( Nov 22 21:13:40 belgianguy: Yes but furthermore ? Nov 22 21:13:44 did you handle the lifecycle events? Nov 22 21:13:50 I use libgdx Nov 22 21:13:50 so what device id, gives you hashes with sh1, this string? a hackker cannot decrypt that Nov 22 21:14:10 (in fact sha1 is not considered save anymore, you shouldn't use it, but i didn't want to spam this chat with a longer hash :D) Nov 22 21:14:15 I think he handle them for graphics instance Nov 22 21:14:18 but that's all Nov 22 21:14:33 SO i should consider that the rest is null ? Nov 22 21:14:56 atoll: I don't know libgdx Nov 22 21:15:45 but if things go bad on onPause, probably means there's something awry with handling that event Nov 22 21:15:51 And what happen to the different thread that are running (If i have more than one), they simply die ? Nov 22 21:15:58 atoll: nope Nov 22 21:16:02 timroes: are there other techniques to avoid unwanted app copying ? Nov 22 21:16:07 I had a music thread go rogue on me Nov 22 21:16:14 space synth forever Nov 22 21:16:24 (space shooter) Nov 22 21:16:26 coudy: use the android licensing server Nov 22 21:17:08 ofc it allows using your app on all devices for one google account (but honestly i wouldn't buy your app, if you limit me in the amount of devices I am allowed to install, because if I buy an app, i want to use it on all my devices) Nov 22 21:17:32 timroes: is there necessary internet connection ? 1. all the time ? 2. only at start ? 3. only sometimes ? Nov 22 21:17:53 coudy: you can do it like you want it Nov 22 21:18:13 timroes: no, this app won't go to market, it is only for few peoples Nov 22 21:18:32 ah okay Nov 22 21:18:43 there are ways around every anti-piracy techniques Nov 22 21:19:03 coudy: then i would consider that hash stuff to be okay, but also that is hackable :) Nov 22 21:19:39 the best way is to just make a great app and be friendly towards your users and pirates -- you'll get more karma and payments/donations Nov 22 21:19:50 timroes: I think every code is hackable ... Nov 22 21:19:50 +1 for that! Nov 22 21:20:18 indeed, since any user can just decompile your app, and remove the licensing part (doesn't matter which way it was implemented) and then sign it again, and put the new app on their device Nov 22 21:20:24 people tend to want to support good developers so they can get more good apps in the future Nov 22 21:20:46 no, this app is public app, but I need protect it to avoid copying Nov 22 21:20:57 ofc thats not easy, but still possible, so I would say with that hash(deviceid) == hashed_device_id is a good balance between work and benefit Nov 22 21:20:57 is = isnt Nov 22 21:21:14 why won't you use google play store then? Nov 22 21:21:39 I guess would save you a l ot of pain :) Nov 22 21:21:44 (or any other app store ofc) Nov 22 21:23:02 I won't use google play to avoid copying, this app is only for my coworkers, Nov 22 21:23:38 If I use GP, everyone can download it Nov 22 21:23:42 okay, again go with the device id... or... but that sounds a bit innovative: trust your coworkers :D Nov 22 21:24:14 why do you care if someone else has the app? Nov 22 21:24:27 if the app accesses sensitive data, use a login system on the server Nov 22 21:25:21 yes, I'm trusting, but if someone lost phone, or phone will be stolen, and again, It must work offline... anyway, thx for help.. I'll combine several techniques Nov 22 21:26:22 coudy: http://www.amazon.de/Applied-Cryptography-Protocols-Algorithms-Source/dp/0471117099/ref=sr_1_2?ie=UTF8&qid=1353619556&sr=8-2 :) Nov 22 21:27:49 thx, bye Nov 22 21:27:57 bye bye Nov 22 21:28:17 how long does an SQLite UPDATE take? Nov 22 21:28:46 0.42s Nov 22 21:29:17 is that an exact time or just a guess? Nov 22 21:29:23 it was a joke :) Nov 22 21:29:32 thought so :) Nov 22 21:29:34 ofc it highly depends on yoru statement Nov 22 21:29:41 how much data to update and so on Nov 22 21:29:41 That would depend on the device, where you're doing it, how much data you're updating, etc, etc, etc, ... Nov 22 21:29:49 years Nov 22 21:29:59 0 if it fails :) Nov 22 21:30:01 so i would give a wild guess, it will be between 0.0000000001s and around 100 years Nov 22 21:30:08 adq not true Nov 22 21:30:10 there is any way to force a youtube video to 1080p on developer console? I can pass hd=1 as url parameter but this only allow 720p Nov 22 21:30:41 I'm changing one int from a 0 to a 1 after a touch event in a list Nov 22 21:30:55 and I wanted it to refresh so that the item is gone after that Nov 22 21:31:22 ?fmt=37 Nov 22 21:31:24 dkz Nov 22 21:31:36 timroes was deprecated, I think, at least doesn't work Nov 22 21:33:09 dkz true, that sucks Nov 22 21:34:06 oh and they removed it dec 2012, i really haven't tried it for a long time :D Nov 22 21:34:13 Maybe rechecking the db isn't the best way to do what I want to Nov 22 21:34:22 and instead just remove the item from the list Nov 22 21:35:51 fireshaper: you could test the speed on your device, and depending if you own a fast or slow device, on faster or slower devices the time will grow or shrink respectively Nov 22 21:36:23 timroes, but that won't necessarily mean it will work on someone else's device the right way Nov 22 21:36:38 I think I just need to re-work the way I'm attacking the problem Nov 22 21:37:09 it's curious... vq=hd1080 only works on embedded videos but not on any youtube url, I'm not sure If I can pass the embed url video instead of normal youtube link Nov 22 21:37:21 it will never mean that :) since veery device might behave different, there will always be the chance somethign behave different on another device. If you don't like challanges use ios :) Nov 22 21:37:35 I'm rechecking the database, but it's not necessary since the data in the list won't change that quickly Nov 22 21:37:58 lol, I'll keep that in mind, timroes Nov 22 21:42:29 Okay, I shouldn't have checked the db again and just let it remove the item from the list. It's working now :) Nov 22 21:43:14 gratulations :) Nov 22 21:45:07 I wish it hadn't taken me this long to figure that out though :P Nov 22 21:56:57 hi Nov 22 21:57:07 hello Nov 22 21:57:10 why isn't my Virtualbox emulator being recognized by "adb devices" ? Nov 22 21:58:01 what? you are running android in virtualbox? Nov 22 21:58:15 yeah Nov 22 21:58:20 crazy :) Nov 22 21:59:08 i don't know, but perhaps you need then some special routings, to make the vm accessible to adb (never used android in virtualbox, in fact didn't know it works till yet) Nov 22 22:00:05 adb connect some.ip.here might be good idea Nov 22 22:00:13 but you should probably use bridged networking to make it work Nov 22 22:00:39 evelyette_, read here http://stackoverflow.com/questions/6751911/android-emulation-on-virtual-box-in-eclipse Nov 22 22:01:00 it's possible, but you need to do a little finagling to get it working Nov 22 22:01:21 is it faster than the android emulator, or why do you use it? Nov 22 22:16:04 err, I'd advise anyone with an Intel processor to make use of their x86 emulator, crazy fast is an understatement Nov 22 22:16:36 IIRC it does make use of virtualisation techniques as well Nov 22 22:19:09 for Ubuntu: http://www.youtube.com/watch?v=AZrdBIrRnsQ Nov 22 22:19:21 sadly, no 4.2 image yet :( Nov 22 22:20:06 hmm i have to test this tomorrow, until yet i normally use device for testing directly Nov 22 22:24:57 timroes: although real device might still be faster Nov 22 22:27:04 belgianguy: o.O that IS fast! Nov 22 22:27:09 wow Nov 22 22:27:42 i mean... WOOOOW Nov 22 22:32:14 belgianguy: how is the compatiblity from the intel image to 'normal' arm image? are there known bugs or issues? Nov 22 22:32:39 it's the same OS just running natively on x86 rather than emulated instructions on ARM Nov 22 22:33:54 yeah but since software behave different sometimes under different processors, i thought there might be problems Nov 22 22:35:29 as long as you're not using the NDK there should be little to no difference Nov 22 22:35:53 the differences are no greater than those you'd see from some idiot OEM and their custom "skins" Nov 22 22:36:19 JakeWharton: so it can be terrible like hell? :) Nov 22 22:36:31 just yesterday used an archos g8 tablet ... "used" Nov 22 22:36:41 ew I used to have one of those Nov 22 22:37:17 my heartfelt sympathy :) Nov 22 22:42:46 Hi. Nov 22 22:42:58 How to start SDK console on Linux ? Nov 22 22:43:29 #android-root Nov 22 22:43:35 sorry Nov 22 22:44:46 <\monster\> hmm if a fragment layout has a button with onClick handler in the xml the request seem sent to the activity hosting the fragment and not the fragment class Nov 22 22:44:46 bluesm: do you mean a shell on your device/emulator? if so `adb shell` Nov 22 22:45:29 <\monster\> why would the button handler be done in the acticity and not the fragment whos layout it is Nov 22 22:45:40 did Google do away with the exact size function in their image search Nov 22 22:45:43 argh Nov 22 22:45:49 it was so handy for textures :( Nov 22 22:46:33 \monster\: do it programmatically Nov 22 22:46:47 timroes: Where in android-sdk-linux is adb ? Nov 22 22:47:05 bluesm: have you tried the 'which' and 'find' commands :P Nov 22 22:47:06 platform-tools Nov 22 22:47:18 is there a way to build linux binaries that will run on the Android OS? I don't see a compiler Nov 22 22:47:48 <\monster\> oh well weird Nov 22 22:48:12 \monster\: better to just attach the button handlers in code Nov 22 22:48:29 \monster\: then you won't have this issue at all Nov 22 22:49:12 sleepster: you seem to be very ambitious, afaik, not possible yet Nov 22 22:49:29 but there's Ubuntu for Android if you want full-blown Linux Nov 22 22:49:34 on a phone Nov 22 22:50:00 just realised with \monster\ nick that \mSg nick looks like evil/phishing nick Nov 22 22:50:51 <\monster\> i am evil Nov 22 22:50:56 no not you :) Nov 22 22:53:06 "Saudi Arabia Implements Electronic Tracking System For Women" … we already have that, its called the "phone" Nov 22 22:53:44 it doesn't mail you if yours wanders off though. Nov 22 22:56:05 given that "going outside without asking husband" or "driving a car" are criminal offences there Nov 22 22:56:20 makes me wonder whether we all should go forth and colonize other planets Nov 22 22:56:49 the universe is probably fine without us spreading Nov 22 22:57:30 yeah if there ever was intelligent life near Earth, they probably returned home very disappointed Nov 22 22:57:47 timroes, timroes: Thank you very much! :] Nov 22 22:57:58 you're welcome Nov 22 23:09:27 hi Nov 22 23:09:41 I'm getting this error when building with ant Nov 22 23:09:52 BUILD FAILED Nov 22 23:09:52 /home/user/android-sdks/tools/ant/build.xml:916: The following error occurred while executing this line: Nov 22 23:09:52 /home/user/android-sdks/tools/ant/build.xml:934: null returned: 1 Nov 22 23:09:53 any ideas ? Nov 22 23:10:52 I could not have adb shell with not rooted phone ? Nov 22 23:10:57 If I wanted to create another "window" for an application, do I create a new Activity? Nov 22 23:11:04 clear Nov 22 23:11:07 bluesm, you can Nov 22 23:11:10 bluesm: you can, just enable usb debugging in developer settings on your phone Nov 22 23:11:20 Agro: or Fragments Nov 22 23:11:27 ok Nov 22 23:11:35 timroes: I have, But I have to everthing "permission denied" Nov 22 23:11:39 *everything Nov 22 23:11:51 what operating system are you using? Nov 22 23:12:18 Ah , Debian Sid Nov 22 23:12:28 do you have set up udev rules for your device? Nov 22 23:12:55 timroes: I could run the programs from eclipse, soo probably yes. Right ? Nov 22 23:13:20 timroes: With android plugin to eclipse. Nov 22 23:13:54 hmm sounds like, i guess eclipse would also fail, if you don't have permissions to write to the device Nov 22 23:14:32 what does `adb devices` return? Nov 22 23:15:10 List of devices attached Nov 22 23:15:11 SH16LTR11611 device Nov 22 23:15:16 timroes: ^ Nov 22 23:15:20 seems alright Nov 22 23:15:31 otherwise you'd get a bunch of ????? Nov 22 23:16:22 and `adb shell` only outputs permission denied? Nov 22 23:16:34 no Nov 22 23:16:36 root@debian:/home/pawel/android-sdk-linux/platform-tools# ./adb shell Nov 22 23:16:37 $ help Nov 22 23:16:37 help: permission denied Nov 22 23:16:43 timroes: ^ Nov 22 23:16:52 ah okay :D might be that there is no help command :D Nov 22 23:17:26 timroes: So why this return "permission denied" instead of "could't find command" Nov 22 23:17:55 bluesm: i heard it mentioned before (relating to su), its just some weirdness in the shell they put in Nov 22 23:18:10 on my device it tells help: not found :) Nov 22 23:18:48 timroes: So what can I do with this shell ? Without having root ? Nov 22 23:19:02 bluesm: run 'id' Nov 22 23:19:05 what do you WANT to do, ist the question :D Nov 22 23:19:09 that will tell you what user and groups your in Nov 22 23:19:18 you can access any file that user/groups have perms to Nov 22 23:19:49 clever: uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet) Nov 22 23:20:06 timroes: Use it like normal linux ? Nov 22 23:20:18 bluesm: so you can access any file owned by 'shell', along with the graphics, input, log, mount, and some of the internet/bluetooth stuff Nov 22 23:20:39 you might be a bit limited in the commands Nov 22 23:21:16 but if you want to see some fancy output try `dumpsys` Nov 22 23:21:27 clever: id, returns permission of normal user Right ? (I mean default user) Nov 22 23:21:47 bluesm: it returns the permissions of whatever user you are currently on Nov 22 23:22:39 whats wrong with this -- getting a compilation error about "constructor WebView()" missing Nov 22 23:22:39 belgianguy, thanks. actually I am just interested in building a binary on linux and then pushing it over to the phone to run Nov 22 23:22:45 but Android has a very limited linux environment Nov 22 23:22:45 http://pastebin.com/Ah5PNUg4 Nov 22 23:23:03 it also doesn't have C++ runtimes as far as I know Nov 22 23:23:09 clever: But permission for normal user depends of manufacturer who implements android software Right ? Nov 22 23:23:19 sleepster: pretty sure it has c++ runtimes, large chunks of android use c++ Nov 22 23:23:27 yes theres C++ etc Nov 22 23:23:28 bluesm: yeah Nov 22 23:23:32 NDK dev Nov 22 23:23:48 There might have been some missing C++ standard libs at first tho... Nov 22 23:23:50 sleepster: NDK can run C++ (and other IIRC) libs Nov 22 23:23:57 so if I have a c++ program, what's the proper way to build it so it is gauranteed to run on android OS Nov 22 23:24:16 sleepster: NDK Nov 22 23:24:22 link it against the lib version and the arch Nov 22 23:24:23 you make an Android Java app that uses the C++ lib in NDK Nov 22 23:25:10 jazzanova: (a) remove the void in front of the MyWebView method, if you want it to be the constructor Nov 22 23:25:43 Is it possible to access Activities instances inside Application.onCreate() ? Nov 22 23:25:43 (b) super(context); inside the constructor Nov 22 23:26:06 clever: Thank you very very much :) Nov 22 23:26:14 i did (a) and it compiled fine. Nov 22 23:26:29 do I always have to declare a constructor in java ? Nov 22 23:26:34 nope Nov 22 23:26:50 timroes: Thanks also :) Nov 22 23:26:51 if you don;t declare one, java will assume you have a default constructor (public parameterless) Nov 22 23:27:11 hydra__: no Nov 22 23:27:24 but if you extend a class, that class need also such a constructor, that can be called, so since WebView doesn't have a default constructor you must explicit call one Nov 22 23:29:07 hydra__: there are no acitivies available when Application.onCreate is called, since it is called at the very beginning, before your acitivty is created Nov 22 23:29:17 <\monster\> hmm whats the proper way to pop all fragment backstack untl a specific one and don't pop that one popBackStackImmediate(String name, int flags) pops everything including the one passed in as name or id Nov 22 23:29:41 <\monster\> basically I want a "go home" action ..where home is the very first fragment added Nov 22 23:30:00 right Nov 22 23:31:13 hey folks, any here use a mac and emulator? Nov 22 23:31:32 <\monster\> I guess I can pop homefragment id + 1 ..assuming fragment IDs are generated in series Nov 22 23:31:53 my problem is this: emulator starts OK but the display only covers the top quarter of the window though the touch events map properly Nov 22 23:33:13 gah, nm… found a bug report Nov 22 23:33:18 take care folks! Nov 22 23:33:33 I'm building this application that fetches scoring data from an URL. Multiple Activities may ask (eg. button click) for scoring updates. I've placed the updateScoring() method inside my own Application instance. Every Activity that wants to receive scoring update (eg. after clicking a refresh button) have an Observer class defined that receive the Application.updateScoring() response when it's ready. Is this good practice or should I do s Nov 22 23:34:18 Application, on the other side is the Observable, of course. Nov 22 23:34:24 is/contains Nov 22 23:34:51 hydra__: you got cut on "Is this good practice or should I do s...." Nov 22 23:34:54 anyone here know any bad habits that one sometimes encounters in Android code? Nov 22 23:35:09 I'm keeping a list of things to avoid/detect early Nov 22 23:35:18 Is this good practice or should I do some other way? Nov 22 23:35:27 do/go Nov 22 23:40:29 does anybody know how to solve this: Nov 22 23:40:35 BUILD FAILED Nov 22 23:40:35 /home/user/android-sdks/tools/ant/build.xml:645: The following error occurred while executing this line: Nov 22 23:40:35 /home/user/android-sdks/tools/ant/build.xml:683: null returned: 1 Nov 22 23:40:36 ? Nov 22 23:43:59 themos: thanks for your help. /msg bitcookie-bot 8635 Nov 22 23:44:52 timroes: thanks for your help. /msg bitcookie-bot 8635 Nov 22 23:49:37 if needed, i can paste code excerpts somewhere Nov 22 23:53:28 ok, so if I want to make a cross-platform (Android/iOS game), most of the engines will only work on Windows and Mac OS/X, right? Nov 22 23:56:18 Denommus: Unity engine Nov 22 23:56:38 the latest edition pretty much works on all platforms IIRC Nov 22 23:57:06 belgianguy: yup. But the SDK only works on Windows and Mac OS/X Nov 22 23:57:31 well then they shouldn't claim Linux compatibility Nov 22 23:58:22 belgianguy: the game can run on Linux. But you need a Windows machine to develop. Just like MonoGame. Nov 22 23:59:11 Denommus: that's sad Nov 22 23:59:56 belgianguy: terrible. The only alternative I have found is called Cocos2d-x. But it uses C++. Too risky Nov 23 00:01:51 Denommus: never heard of it Nov 23 00:02:12 belgianguy: cocos2d-x.org Nov 23 00:02:18 and the woes of using a rather untested framework :/ Nov 23 00:03:21 I'll test Unity under wine :-S Nov 23 00:04:05 from my limited experience and analysis, cocos2d-x seems to be leading in capability/xplatformness Nov 23 00:04:12 Denommus: yeah, sad to see that they don't even ever intend to build a Unity editor for Linux Nov 23 00:04:13 subjective, though Nov 23 00:04:28 Chainfire: what do you mean? Nov 23 00:04:38 Chainfire: == XDA Chainfire ? Nov 23 00:04:47 belgianguy: are there so few Linux developers out there? Nov 23 00:05:18 I'm totally sold to my Ubuntu system, but yeah, the love isn't spread that thickly I've noticed Nov 23 00:06:47 I use Arch. It's the better operating system I have used in my entire life Nov 23 00:07:01 I don't want to use windows for nothing. Nothing. Nov 23 00:07:30 Denommus: same Nov 23 00:07:36 I shudder at Windows 8 Nov 23 00:07:49 but seemingly people seem to put up with it Nov 23 00:08:05 Denommus what I mean is, that from my own research for the games I want to make, cocos2d-x seems to be a better fit (including support for multiple platforms) than the alternatives we looked at Nov 23 00:08:12 I just... don't really care for it Nov 23 00:08:35 it brings nothing to the table for the desktop, and let that be the last OT bit I waste on that Nov 23 00:08:44 Chainfire: have you tried to prototype a game with it? Have you had any problems? This is the kind of thing that I want to know, really Nov 23 00:09:27 we are prototyping a game with it atm, no problems so far Nov 23 00:09:43 I believe Nov 23 00:09:57 there's others guys involved, I mostly just nod, say yes, and tell them "good job" Nov 23 00:10:03 so Nov 23 00:10:04 :P Nov 23 00:10:13 Chainfire: are you the XDA Chainfire person? Nov 23 00:10:29 it's okay if not :p Nov 23 00:10:55 yes I am Nov 23 00:11:05 :D Nov 23 00:11:20 you deserve a heap of credit for FAAPT Nov 23 00:11:28 that's a world of difference Nov 23 00:11:43 tell Google ... they're still convinced it makes any difference. Nov 23 00:11:52 *not convinced Nov 23 00:12:10 well, seeing 4.2, they also were convinced December wasn't worth including Nov 23 00:12:21 haha true that Nov 23 00:12:38 that's sad to hear, really Nov 23 00:13:10 so no upstream merge in sight then? :/ Nov 23 00:13:12 Chainfire: thank you a lot. Your feedback was really important Nov 23 00:13:56 belgianguy it is being worked on Nov 23 00:14:10 no verdict yet Nov 23 00:14:15 Chainfire: good to hear! Nov 23 00:14:43 ctate was more enthousiast concerning your FAAPT iirc ;-) Nov 23 00:15:14 maybe they developped in parallel similar things too, no clue Nov 23 00:15:58 a longshot might be the Oracle trial Nov 23 00:17:38 adq> ctate is still looking at it, AFAIK Nov 23 00:18:00 problem is that the "problem" doesn't show up so much on Linux and Mac OS X, primarily on Windows Nov 23 00:18:17 ah! didn't know that Nov 23 00:18:18 and they're using Linux/Mac boxes ;) Nov 23 00:18:28 now it makes sense lol Nov 23 00:19:09 lol, odd that it pertains only to Windows Nov 23 00:19:24 although not entirely surprising Nov 23 00:20:33 Chainfire: so you're a project manager, then? Nov 23 00:20:40 (irl) Nov 23 00:22:30 I wear many hats Nov 23 00:22:43 a TF2 player, too, nice ;) Nov 23 00:22:52 j/k Nov 23 00:23:27 if you could point to three Deadly Android Sins, what would they be (in developing/programming) Nov 23 00:23:42 or one would be fine too :p Nov 23 00:24:26 leaving, bye Nov 23 00:51:26 or not Nov 23 00:51:44 i'd say make a 'back' button :) Nov 23 01:05:28 xorgate: well, that would be one, yeah :p Nov 23 01:05:51 hey guys =) Nov 23 01:06:17 who's up for beta-testing / contributing to my open source cross-platform SDK now with Android support :P Nov 23 01:09:46 what is it Nov 23 01:12:05 Jug6ernaut it's @ http://ecere.com ... Lets you write code in eC, with a GUI toolkit and 2D/3D support :) Runs on many platforms Nov 23 01:30:42 suppose i have an app with quite a few graphics resources. how much of a hassle will it be to output a seperate .apk for for example each pixeldensity? how will the playstore deal cope? Nov 23 01:52:30 xorgate: why would you do that Nov 23 01:52:58 KaiKai to not have 4 out of 5 bitmaps be needlessly included Nov 23 01:53:05 hi Nov 23 01:53:43 it is my belief the res folder automatically selects which Nov 23 01:53:58 another solution would be to do an HTTP get from a server for the images youre talking abou Nov 23 01:54:10 yes but in the end i have 1 apk with resources for ldpi, mdpi, hdpi and god knows what. only 1 is chosen for your device Nov 23 01:54:26 to have separate APKs for seperate densities would require your users to know which apk to download and such Nov 23 01:54:42 if i was a user, i would not dl an applicatiojn lik ethat Nov 23 01:54:43 but the market would filter that for them Nov 23 01:54:44 too much hassle Nov 23 01:54:57 this apk only for mdpi? only mdpi devices can see it Nov 23 01:55:04 okay Nov 23 01:55:06 well you can do that Nov 23 01:55:11 but your total dls would be split Nov 23 01:55:24 how big is your apk anyways? Nov 23 01:55:25 but i reckon i can't have them share packagename Nov 23 01:55:35 in the long run, its not needed Nov 23 01:55:40 there are many ways to get around this Nov 23 01:55:42 it's a theoretical issue now :0 Nov 23 01:55:49 dont worry about theoretical Nov 23 01:56:03 everything will be fine, and everything will work out ^_^ Nov 23 01:59:31 Hello which android module is the one that loads and processes /default.prop and /data/local.prop ? Nov 23 02:00:29 Usually the approach I do is to download the whole source repo and grep for it, but at the moment thought this might be faster... Nov 23 02:03:17 Any of you willing to run a grep ... Nov 23 02:27:56 does anyone know if it's possible to turn on the camera flashlight from an intent service? Nov 23 02:29:26 it actually works on my epic 4g but not on my galaxy nexus (jelly bean) Nov 23 02:29:31 not sure why Nov 23 02:34:02 if anyone can throw some help my way please pm me i'm working on two different machines **** ENDING LOGGING AT Fri Nov 23 02:59:58 2012