**** BEGIN LOGGING AT Fri Dec 21 02:59:59 2012 Dec 21 03:00:18 droidbuster: I've done that before by sniffing local network traffic Dec 21 03:01:25 jstream on the device itself ? i actually found the facebook sdk... however droid notrify sniffs the msgs of the users and provides notifications view a dialog Dec 21 03:03:47 I setup a wireless router with openwrt and sniffed through that Dec 21 03:09:51 Hi... I'm trying to implement in-app billing in my application. I'm trying to follow the documentation (http://developer.android.com/google/play/billing/billing_integrate.html) but I'm always getting an error when trying to import the .aidl file. If I import the file like it says I should in Eclipse I always get an error that it has to be in a special package/path, if I add that it generates a .java file in the gen folder but Dec 21 03:09:59 t file instead... Any ideas? Dec 21 03:12:23 GMDynamics do you mean api key for maps v2? Dec 21 03:12:50 yeah Dec 21 03:17:01 the api key goes into manifest Dec 21 03:17:44 I tried that, but still got my blank screen Dec 21 03:18:06 did you register for the wrong google api? i heard people do that Dec 21 03:18:21 gotta be precise with the android maps api, not javascript or whatever Dec 21 03:19:39 Yeah, just for safety I registerd for all 3 variants Dec 21 03:22:56 Im so sad. I just though of an awesome name for an app, but it already exists as a linux program. Off topic, but do you guys think it acceptable to use the name Dec 21 03:22:59 :D Dec 21 03:23:19 sure just be better Dec 21 03:23:34 protip: don't name your app "vim" Dec 21 03:23:49 yeh vim has a lot of negative connotations :) Dec 21 03:24:15 I laughed out too loudly at that Dec 21 03:24:23 if it's an Android app, don't sweat it; way more android users than linux users, so :) Dec 21 03:25:44 http://www.funnydictionary.com/img/entry_images/900/vr7KUExgR8r.jpg Dec 21 03:26:37 Android is Linux ... depending on who you ask Dec 21 03:27:14 Nvm - I managed to fix it :) Dec 21 03:50:09 I dont' know where to go for help on this. I am trying to sign up for a seller's google-wallet account (SANDBOX) and can't get past the credit card bit... Anyone gotten past it? Dec 21 03:50:18 hm i have 1 file that keeps insisting i should import a R from one of several locations.. no other files want this Dec 21 03:54:49 explodes: as in signing up to receive payments? Worked fine for me Dec 21 03:55:38 when I did it a year ago Dec 21 03:55:50 dragorn: Aye, I found a tutorial page Dec 21 03:55:58 I had trouble when I tried to send payment to activate a market account, eventually they fixed it. Dec 21 04:11:37 If I put a fragment inside a FrameLayout how am I supposed to fetch its reference? I suppose I could keep a reference to it but shouldn't I use findFragmentByTag or something? Dec 21 05:29:27 This is a basic programming problem, yet Ive never come across it in java! What do you guys feel the best way to make a basic array, where each time a new value is added, the oldest value is removed Dec 21 05:29:42 ie a stack Dec 21 05:34:12 fixed size? Dec 21 05:34:51 GMDynamics: like this ? http://en.wikipedia.org/wiki/Circular_buffer Dec 21 05:35:26 but serialization Dec 21 05:36:01 you lost me there Dec 21 05:36:10 you need to save it to disk? Dec 21 05:36:16 yup Dec 21 05:36:25 do it yourself? Dec 21 05:36:56 Id normally use an arraylist. just remove element 0 if list.length > than my val Dec 21 05:37:16 But the memory overhead gets pretty high Dec 21 05:46:56 good morning my dear friends Dec 21 06:19:49 fucking apple Dec 21 06:19:53 new itunes Dec 21 06:20:01 none of my keyboard shortcuts work worth a shit Dec 21 06:21:11 complain that you find it hard to use due to your disability. Dec 21 06:26:54 I am about ready to pay google money to enhance developer options on android Dec 21 06:27:01 quick toggle on keep screen on Dec 21 06:27:30 with out it debugging is painful, but then when my phone is sitting on bedstand charging and I get email/text and the thing just stays on for the rest of the night Dec 21 06:27:31 man Dec 21 06:33:29 My Activity only refreshes when I switch its orientation...how can I fix this problem? :/ Dec 21 06:33:45 pretty vague qustion Dec 21 06:34:40 After some functions have been performed, the Activity is supposed to display text in a TextView. However, the text isn't displayed until I change my devices orientation from HORIZONTAL to VERTICLE, or vice versa Dec 21 06:35:06 mrsudoer lemme guess... ui updates from bg thread? Dec 21 06:35:24 bg, ron_frown ? Dec 21 06:35:29 background Dec 21 06:35:42 main thread? Dec 21 06:35:43 well Dec 21 06:35:44 yes Dec 21 06:35:53 I have no other thread that I've made, unfortunately... Dec 21 06:35:57 I wish I knew multithreading :( Dec 21 06:36:06 are you using something like asynctask? Dec 21 06:36:14 nope, not even using that Dec 21 06:36:28 is a lot of work happening on ui thread? Dec 21 06:36:39 no, it's like 100ms of work, max Dec 21 06:36:45 hrmm Dec 21 06:36:50 dont know what to tell you Dec 21 06:36:59 if you are databinding on load of activity Dec 21 06:37:00 i think i've heard of some invalidate() method... Dec 21 06:37:08 thats for drawing Dec 21 06:37:12 custom controls etc Dec 21 06:37:15 oh Dec 21 06:37:24 usually if you say set a textview text, it should update immediately Dec 21 06:37:31 unless you are setting it in bg thread Dec 21 06:37:55 ron_frown, do you know of any tutorials to learn how to multithread? Dec 21 06:49:22 is the whole internet broken, or just me Dec 21 06:51:03 canadiancow, it's borke Dec 21 06:51:07 blame the mayans Dec 21 06:51:09 actually? Dec 21 06:51:11 :) Dec 21 06:51:11 brb rebooting Dec 21 06:53:09 hmm the reboot seemed to fix it Dec 21 07:13:25 if edittext and a button are inside inside framelayout, how to find the edittext from buttons onClick event? Dec 21 07:14:29 I would pay money out of my own pocket for more idiot abroad Dec 21 07:15:21 get a lobotomy and start a world tour Dec 21 07:15:27 hey, any australians here? is the Nexus 4 available yet there? how much does it cost there? Dec 21 07:18:44 View frame = (View) v.getParent(); Dec 21 07:18:45 EditText text = (EditText) frame.findFocus(); Dec 21 07:19:02 something like that but maybe there is a better way? Dec 21 07:22:50 hey Dec 21 07:32:18 so the majority of android apps are written in Java? Dec 21 07:38:34 native apps are Dec 21 07:41:46 come to think of it....i'm writing a paper and don't know how to translate "native apps" anyone good with slovenian lang here ? :P Dec 21 08:03:21 primski, sorry what do you mean by native apps? Dec 21 08:08:30 i beleive he means apps written for the dalvik VM with the standard ADK Dec 21 08:08:38 most android apps are written in java Dec 21 08:08:59 some stuff is done in C/C++ by masochists Dec 21 08:09:24 and there are a few more ways that are mostly for funzies Dec 21 08:09:42 if you want to write an app, java is the best place to start Dec 21 08:16:51 * muhoo learned the hard way to always write in the same language the platform/framework/docs are in Dec 21 08:18:17 BigJ: well im not sure how to put it, but but i developed some apps with web frameworks, Sencha touch 2, and those add a layer of complexity where "native apps" run directly on android Dec 21 08:18:42 im sure u know what i mean Dec 21 08:19:27 alex_PP: yea this pretty much sums it up Dec 21 08:21:02 k, java it is Dec 21 08:23:01 in other news... how are the apps i described called officialy if not 'native apps' Dec 21 08:23:49 i couldn't decide, they're not native in the sense that they run in a VM, but i might call them so in casual conversation as they're the 'default' Dec 21 08:23:59 "android apps" Dec 21 08:24:09 ?? Dec 21 08:24:16 yea something like that Dec 21 08:24:23 what would be an example of a non-native app? Dec 21 08:24:42 java :P Dec 21 08:24:54 apps made with Sencha Touch2 where you write them in javascript and HTML instead of java Dec 21 08:25:29 ahh ok Dec 21 08:26:20 you lose quite a bit of performance this way, but gain on simplicity... depends what you want to do Dec 21 08:26:32 its not suitable for games or anything graphics heavy Dec 21 08:26:44 but simple web-site-like apps can be made real quick and easy Dec 21 08:45:02 I discovered, performClick() on a View will performClick on its first item in xml layout Dec 21 09:27:25 Why would onCreateOptionsMenu be called 3 times in a fragment when I swipe to it? Dec 21 09:39:31 Unable to resolve target 'android-7', is that an indication that I did not setup everything and loaded all features in ADT? Dec 21 09:43:37 how to apply custom font to a spinner? Dec 21 09:45:37 squ: you think someone will help you here greating bad apps? :) Dec 21 09:45:51 or how to find textView of what is inside android.R.layout.simple_list_item_1 Dec 21 09:46:10 timroes, I hope :) Dec 21 09:46:24 for second questiopn Dec 21 09:46:35 R.id.text1 Dec 21 09:46:39 timroes: all bad apps should be made great! Dec 21 09:46:51 or R.id.text2 for the second text line in the two line list item Dec 21 09:47:04 I were trying spinner.findViewById Dec 21 09:47:12 pragma-: indeed, but he is trying really hard to create a horrible designed app :) Dec 21 09:47:29 timroes: you said "help greating bad apps" Dec 21 09:47:35 I'm implementing Dec 21 09:48:05 pragma-: yeah (sorry my english is not really the best) but i wanted to say, if he really thinks, anyone would help greating a bad app here? Dec 21 09:48:13 pragma-: how would i express that in english :D Dec 21 09:49:02 timroes, ArrayAdapter adapter = ArrayAdapter.createFromResource(this, R.array.array , R.layout.spinner_view); Dec 21 09:49:21 inside layout/spinner_view there is a single Dec 21 09:49:24 how do I access it? Dec 21 09:50:37 spinner.setAdapter(adapter); Dec 21 09:50:38 :) Dec 21 09:50:48 squ, for doing custom fonts, you'd be better off writing a class that extends TextView and handling it all there. Dec 21 09:50:58 then adding that new textview to a layout to use for your spinner Dec 21 09:51:27 alex_PP, you mean I could just use xml for fonts Dec 21 09:51:40 if you do a lot of faffing, yeah Dec 21 09:51:48 not like I'm doing now: ((TextView) findViewById(R.id.text_top)).setTypeface(font); Dec 21 09:51:54 i tend to hardcode it for convenience Dec 21 09:52:10 thats a great idea, but how? Dec 21 09:52:10 public class ComicSansTextView extends TextView{} Dec 21 09:52:18 with ? Dec 21 09:52:32 then in the constrctor you lad and apply your font Dec 21 09:52:42 ok, but how to use it? Dec 21 09:53:30 check the first answer to this http://stackoverflow.com/questions/9327053/using-custom-font-in-android-textview-using-xml Dec 21 09:53:36 there's a few examples Dec 21 09:54:55 actually all I need to do now, is to change spinner text Dec 21 09:55:16 so, if you could tell me just that Dec 21 09:55:25 squ: R.id.text1 Dec 21 09:55:36 thats the id of the text inside the simple_list_item_1 Dec 21 09:56:44 but I supply custom layout Dec 21 09:56:57 then you have to know, what the id of the textview is :D Dec 21 09:57:00 if you made the layout Dec 21 09:57:06 with single ok, I gave it the id of spinner_text Dec 21 09:57:19 yeah so you should use its id? Dec 21 09:57:42 I have a crash on this Dec 21 09:57:46 / ((TextView) findViewById(R.id.spinner_text)).setTypeface(font); Dec 21 09:57:46 / ((TextView) spinner.findViewById(R.id.spinner_text)).setTypeface(font); Dec 21 09:58:29 where are you doing that? Dec 21 09:58:36 you have to set it in the getView method of your adapter Dec 21 09:59:03 and call it on the view you create for that item Dec 21 09:59:41 http://www.vogella.com/articles/AndroidListView/article.html that article covers how to use list and adapters very well Dec 21 09:59:42 I'm not extending the array adapter Dec 21 10:00:01 just using the simple ArrayAdapter adapter = ArrayAdapter.createFromResource(this Dec 21 10:00:12 and spinner.setAdapter(adapter); Dec 21 10:02:53 you have to pass the id of the text view to the constructor Dec 21 10:03:10 if you use a custom layout Dec 21 10:03:36 http://developer.android.com/reference/android/widget/ArrayAdapter.html#ArrayAdapter%28android.content.Context,%20int,%20int,%20T[]%29 i guess thats the constructor you want Dec 21 10:06:31 I'll try Dec 21 10:33:16 with the Facebook sdk 3.0/Android 4.2 SDK. is there a away to share a session object across different activities or should I create a new one per Activity on the onCreate method . Dec 21 10:35:20 timroes, ArrayAdapter(AddNewActivity, int, int, String[]) is undefined Dec 21 10:36:27 squ: show me your code line Dec 21 10:36:39 Hm, havent developped apps for a year, trying the newest version of adt makes me conclude, the emulator is still crappy Dec 21 10:36:50 anli_: in which ways? Dec 21 10:37:41 Seems to still be slow, there is still an animation on startup before the emulator actually does something Dec 21 10:38:03 And I can also report that my first experience with the emulator was that the emulator crashed Dec 21 10:38:04 anli_: you are using the ARM image or intel image? Dec 21 10:38:07 arm Dec 21 10:38:14 try intel image, if you want some speed Dec 21 10:38:20 (if you have a processor supporting virtualization) Dec 21 10:38:27 So the ARM image should not be there? Dec 21 10:38:33 yeah it should Dec 21 10:38:33 I have Dec 21 10:38:41 Who does not want speed Dec 21 10:38:41 because most devices run on arm processors Dec 21 10:38:50 The method ArrayAdapter(AddNewActivity, int, int, List) is undefined Dec 21 10:38:51 and if you code with ndk, processor architecture matter Dec 21 10:38:55 Its still an emulator so processor means nothing Dec 21 10:38:58 ArrayAdapter adapter = ArrayAdapter(this, R.layout.spinner_add_new, R.id.spinner_text, Arrays.asList(spinner_array)); Dec 21 10:39:06 Ah, I only code in java Dec 21 10:39:09 but ofc virtualization outruns emulation (of arm processors) by far Dec 21 10:39:10 But I get your point Dec 21 10:39:25 and yeah processor does mean something, since the intel image isnt emulated Dec 21 10:39:28 but virtualized Dec 21 10:39:35 thats cool Dec 21 10:39:47 Quick question - is it possible to add one's own app to the share action provider? Dec 21 10:40:40 Still an android animation on startup Dec 21 10:40:41 anli_: only disadvantage, intel images are not immediately available when a new api level comes out, (so 4.2 is still missing) Dec 21 10:40:47 ok Dec 21 10:40:58 I want to code for older phones so thats only ok Dec 21 10:40:59 anli_: yeah, but just enable snapshots, then you only need to boot one time Dec 21 10:41:02 2.3.3 Dec 21 10:41:20 Hi why can't I add a cursor in my SimpleAdapter? Dec 21 10:41:48 Hm, no crash this far, wonder how it can not boot up instantly, there could be a snapshot ready for me the first time I run the emu Dec 21 10:42:22 anli_: would mean, they have to create a snapshot for every possible hardware configuration, you can select in an avd Dec 21 10:42:28 hello people Dec 21 10:42:29 sure Dec 21 10:42:30 i guess yoru disk won't be large enough for that :) Dec 21 10:42:32 how could I change the rounded corners of a dialog to sharp corners ? Which style item do i have to change? Also where could I find a complete list of all parts of a dialog which are styleable ? Dec 21 10:42:44 They run a freaking search engine, I am sure they can store some snapshots as well Dec 21 10:42:47 :) Dec 21 10:43:24 yeah especially since some configuration (like dpi) takes integer values :D Dec 21 10:43:42 now store for every possible value with every possible other configuration a snapshot Dec 21 10:43:50 i guess we are not talking about petabyte anymore in that case :) Dec 21 10:44:04 But who wants a 147x93 px display Dec 21 10:44:08 and compared to that, i think its not so much of a harm to boot up one time :D Dec 21 10:44:15 There could at least be _one_ snapshot Dec 21 10:44:26 I am still looking at the emu doing its emulation Dec 21 10:44:32 eh, animation Dec 21 10:44:40 yeah first time boot up takes long i know :) Dec 21 10:44:45 But maybe I need to run it with F5 to actually have it do something else Dec 21 10:44:49 but for the intel image its worth it :) Dec 21 10:45:00 no wait, it really takes long time on first boot up :) Dec 21 10:45:06 ah Dec 21 10:45:18 timroes, missed 'new' keyword there Dec 21 10:45:19 So 2nd bootup is not an annoyance in the same way then, I presume Dec 21 10:45:23 Type safety: The expression of type ArrayAdapter needs unchecked conversion to conform to ArrayAdapter Dec 21 10:45:27 what is it? Dec 21 10:45:34 anyone targeting 4.2.1 in their app dev ? and also using user text input ? Dec 21 10:45:39 anli_: not if you enabled snapshots for the avd :) Dec 21 10:45:43 StingRay_, me Dec 21 10:45:46 I hope I did Dec 21 10:46:06 squ do you have a walkaround for state change ime bug ? Dec 21 10:46:11 Are snapshots enabled by default? Dec 21 10:46:17 And how can it be disabled ;) Dec 21 10:46:32 anli_: i guess they arent ;) Dec 21 10:46:33 StingRay_, I have not noticed any bugs Dec 21 10:46:36 shit Dec 21 10:46:38 :) Dec 21 10:46:39 Sorry Dec 21 10:46:40 I saw that the SimpleCursorAdapter is deprecated. Which one should be used instead? Dec 21 10:46:45 squ http://code.google.com/p/android/issues/detail?id=41687 Dec 21 10:46:46 in the avd manager, edit the avd there is a checkbox Snapshots Dec 21 10:46:57 squ thats me reporting it btw :) Dec 21 10:46:58 Wonder if I dare stop this bootup Dec 21 10:47:01 beside Use Host GPU (if you are still not happy with the speed, when using intel image :D) Dec 21 10:47:26 jigal, I extended the CursorAdapter, and overriden the newView, bindView Dec 21 10:47:37 squ I just need to find out how the default calendar app does it, cause the people and messaging app have the bug, but not the calendar Dec 21 10:47:41 It seems like this bootup seems to reconstruct the molecular structure of the universe or something Dec 21 10:47:47 -seems Dec 21 10:48:19 squ, can you elaborate? Dec 21 10:48:47 Oh wait, how can gpu emulation and snapshot not be combined? Dec 21 10:48:59 can you show me an example on how to implement it now? Dec 21 10:49:01 How are they related Dec 21 10:49:41 jigal, public class StatisticsList extends CursorAdapter Dec 21 10:50:03 ok Dec 21 10:50:11 :) Dec 21 10:50:34 timroes, any ideas about this warning: Type safety: The expression of type ArrayAdapter needs unchecked conversion to conform to ArrayAdapter Dec 21 10:50:53 anli_: don't know why the aren't working together, but try without gpu emulation first, intel image is rocking fast, you will have some WOW effects :) Dec 21 10:50:54 squ, my class already extends ListActivity so can't extend another class Dec 21 10:51:08 squ: yeah i guess you use raw type and not ArrayAdapter Dec 21 10:51:19 But how could I run an application that uses opengl without using the host gpu? Dec 21 10:51:22 new ArrayAdapter(...) and not new ArrayAdapter(...) Dec 21 10:51:58 ArrayAdapter adapter = new ArrayAdapter(this, R.layout.spinner_add_new, R.id.spinner_text, Arrays.asList(spinner_array)); Dec 21 10:52:14 yeah Dec 21 10:52:19 new ArrayAdapter Dec 21 10:52:59 you forgot the generic type in the instantiation (yeah i know annoying you have to give it multiple times, but from java7 on you can just use new A<>(...) -- diamond operator) Dec 21 10:53:17 ArrayAdapter adapter = new ArrayAdapter(this, R.layout.spinner_add_new, R.id.spinner_text, Arrays.asList(spinner_array)); Dec 21 10:53:17 wait Dec 21 10:53:21 now away for lunch :) Dec 21 10:53:25 this one is error Dec 21 10:57:03 squ if you get chance see if the way you save your editTexts produces the duplicate results that I found in that bug Dec 21 10:57:08 would be interested to know Dec 21 10:58:32 I'll repeat the steps in the link you gave Dec 21 10:58:59 cheers, actually like i say it's apparent in the default messaging app and people app too Dec 21 10:59:08 but NOT the calendar Dec 21 10:59:40 the bug is with input method so the calendar must save restore different Dec 21 10:59:54 hence why I'm both interested and desperate to know how :) Dec 21 11:01:33 I enter text, press home, rotate Dec 21 11:01:43 text is not copied Dec 21 11:01:43 not home Dec 21 11:01:52 minimize Dec 21 11:01:56 you want trigger onPause? Dec 21 11:02:17 no tis to do with keyboard still having focus hold on edit text view Dec 21 11:02:33 so if you minimize the kb, and rotate Dec 21 11:02:47 leaving the et still focused Dec 21 11:03:34 cursor blinking etc Dec 21 11:05:54 sorry, can't do it now :) Dec 21 11:06:05 squ rotate the screen ? Dec 21 11:06:10 gave device to another guy Dec 21 11:06:16 I can do it in stock messaging app Dec 21 11:06:34 can do it with avd 4.2.1 too Dec 21 11:07:19 but if you app dont do it and stock msg app does.... what do you do to store your text content and where/when (config rotate) ? Dec 21 11:07:19 how to rotate avd? Dec 21 11:07:25 press num9 Dec 21 11:08:00 as in number pad "9" Dec 21 11:08:45 and how to minimize keyboard? Dec 21 11:09:13 my avd doesnt pop it up Dec 21 11:09:15 oh, i run gnex config so I have the little down arrow on bottom bar (left) Dec 21 11:09:28 not sure how to without that Dec 21 11:10:31 could be F2 or pageUp Dec 21 11:10:35 not sure Dec 21 11:27:16 hi, is it possible to see vie adb if an app is installed Dec 21 11:34:59 hello i have created this adapter = new SimpleCursorAdapter(this, Dec 21 11:35:00 android.R.layout.activity_list_item, mCursor, FROM, TO,0); How can i get the column names from my cursor to bind them to my layout? Dec 21 11:50:55 id like some general tips on managing threads =/ if you please Dec 21 11:52:05 ive set up a viewpager where when each object becomes visible it starts an Async to download its image Dec 21 11:53:28 if i skip through it at large speeds the tasks in other views wont execute, i imagine im creating a giant thread queue (correct me if im wrong) Dec 21 12:02:25 hello, i wanted to dynamically link a variable to contain my R.Drawable object, how am I supposed ot do so? Dec 21 12:02:46 i.e, i know it is always R.drawable.bg, and i want to automatically generate the number in X Dec 21 12:04:44 jigal: FROM and TO usually define which columns map to which layout items Dec 21 12:05:16 and AFAIK those usually are defined as final static String fields in the DatabaseHelper Dec 21 12:08:39 balls2thewall: use a ThreadPoolExecutor? Dec 21 12:08:40 http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html Dec 21 12:09:20 don't know if Async also uses these in the bg Dec 21 12:10:29 belgianguy if i create a large number of Async's they do get queued if the pool is too small, correct? Dec 21 12:14:28 unrelated but i was wondering, has anyone used xtend instead of java for android dev? Dec 21 12:20:28 whats the string URI for the root of the contacts db ? Dec 21 12:20:36 does it change with verions ? Dec 21 12:20:41 versions* Dec 21 12:20:51 bought intellij still no license Dec 21 12:20:52 poop Dec 21 12:23:52 mikedg: should have bought Eclipse Dec 21 12:24:26 poor mikedg Dec 21 12:26:58 StingRay_: ContactsContract.Contacts.CONTENT_URI ? Dec 21 12:30:55 mikedg: I guess it's in the mail? Dec 21 12:31:24 will all content db's have _id as key field ? Dec 21 12:33:15 StingRay_: I don't think you can take that for granted Dec 21 12:33:25 for contacts it's ContactsContract.Contacts._ID, Dec 21 12:33:36 but that might still be "_id" internally Dec 21 12:33:50 StingRay_: it's recomended but not mandated Dec 21 12:33:54 k cheers Dec 21 12:34:09 the cursorlistadapter requires it so it's probably a good idea Dec 21 12:34:31 I take it there is no quick easy way to creating a contacts picker with multi selections ? Dec 21 12:34:47 as in I'm going to have to create one :) Dec 21 12:35:14 StingRay_: wouldn't really see the difficulty, if it hasn't already been done Dec 21 12:35:26 listview + multiselect that uses the contacts db Dec 21 12:36:09 yeah, but just like you have intent requests for an image that you can ask the system to ask the user for Dec 21 12:36:19 just wondered if there was the same for all content types Dec 21 12:37:07 oh 1 last question, is there any way to get a look at the 4.2.1 calendar app source ? Dec 21 12:37:28 or even the account creator (settings) source ? Dec 21 12:37:56 StingRay_: AOSP Dec 21 12:38:21 calendar not a closed google app ? Dec 21 12:38:25 ah Dec 21 12:38:35 yeah then no, you can't see the closed source ones :) Dec 21 12:38:42 GApps isn't open source AFAIK Dec 21 12:39:01 I just want a tiny look at maybe 2 lines dammit : Dec 21 12:39:04 :) Dec 21 12:39:54 is there any kind of developer relations team that we can phone ? Dec 21 12:40:00 well a handful of (unused) lines is what Oracle is suing Google over for biiiiillions Dec 21 12:40:17 StingRay_: yeah, there are 1 million callers before you, please hold :) Dec 21 12:40:23 lol Dec 21 12:40:31 but this is a serious BUG dammit Dec 21 12:40:35 :) Dec 21 12:40:43 StingRay_: just plan ahead, and clear it up when it surfaces Dec 21 12:40:49 I just want to know how they handle config changes Dec 21 12:40:53 rotate etc Dec 21 12:40:57 what bug? Dec 21 12:41:01 StingRay_: that is not a BUG Dec 21 12:41:05 the calendar does not have a bug Dec 21 12:41:09 that is smth you should handle Dec 21 12:41:16 the stock messaging and people app do Dec 21 12:41:37 tis to do with an ime buffery thing in 4.2.1 stock keyboard and text input Dec 21 12:41:48 belgianguy I wish i could Dec 21 12:42:04 they do in the cal app but not in messaging or people app Dec 21 12:42:09 I want to know the difference Dec 21 12:42:11 there are methods to persist information Dec 21 12:42:31 belgianguy oh I do, but this is an OS bug Dec 21 12:42:44 that doesnt present in calendar Dec 21 12:42:58 well then you should file it :) or present it to ctate or even canadiancow Dec 21 12:43:00 but does in my App, messages, people and all 3rd aprty apps Dec 21 12:43:17 http://code.google.com/p/android/issues/detail?id=41687 Dec 21 12:43:19 i have Dec 21 12:43:53 just I want some1 to tell me how the calendar app is different in the way it handles config change Dec 21 12:44:06 I've tried everything Dec 21 12:44:23 from inputmanger control, manually changing view focus Dec 21 12:44:40 cant get a walkaround Dec 21 12:44:48 workaround :) Dec 21 12:45:00 yeah that Dec 21 12:45:02 :) Dec 21 12:45:21 I am trying to plugin my phone in windows 8, does not show up anywhere, its a htc Dec 21 12:45:27 Hello I bought a galaxy s3 which is locked to vodafone Spain, can anyone help me unlock it? Dec 21 12:45:30 StingRay_: I'd say take it up with ctate, he seems to be pretty knowledgeable on those topics Dec 21 12:45:33 Cant debug on it in other words Dec 21 12:45:38 NotStooge: #android-root Dec 21 12:46:26 thanks ill try ;) Dec 21 12:46:29 StingRay_: regarding _id, you should be using defined constants in a contract class anyway :) Dec 21 12:46:40 Is windows 8 problematic to use for android dev? Dec 21 12:46:49 no. Dec 21 12:46:52 ah Dec 21 12:47:00 So I can expect my phone to be found then Dec 21 12:47:20 Maybe htc is a bit behind? Dec 21 12:47:37 "htc sync" is not supported in w8, they say in the chat support Dec 21 12:47:49 But I am not sure if I will need to run that on the other hand Dec 21 12:48:04 I don;t use htc sync Dec 21 12:48:12 anli_: I'd say the USB driver is what you need to check Dec 21 12:48:27 I did need to cheat to get the normal adb drivers to work for my phone Dec 21 12:48:37 And in the support they say that I can expect the usb drivers to already exist in the system Dec 21 12:48:52 How did you cheat? Dec 21 12:48:57 you need to force windows to use them for a non google phone Dec 21 12:49:03 the device ids don;t tie up Dec 21 12:49:10 one moment Dec 21 12:49:40 http://stackoverflow.com/a/13327665/588306 Dec 21 12:50:10 please vote up if it works :) Dec 21 12:50:24 and I couldn;t find an ADB driver in the HTC sysnc packages at all Dec 21 12:50:31 but it did fail in Win8 Dec 21 12:50:34 anli_: Windows uses .INF files to store data about which driver supports what. Unfortunately, the drivers for ADB functionality don't (or can't?) specify by device class etc., so they have to contain vendor IDs Dec 21 12:51:02 p_l: they can iirc, just that Google's don;t Dec 21 13:09:59 https://plus.google.com/118417777153109946393/posts/VD6WrzXjGKw <-- why would Marker operations use internets? Dec 21 13:11:21 p_l. Dec 21 13:11:23 oops Dec 21 13:11:35 p_l: Now it comes back to me, I had to specify the vendor id in some file Dec 21 13:13:12 hm, cant find the adb binary Dec 21 13:13:21 they were hiding it I think Dec 21 13:20:50 what's wrong with this draw function? http://hastebin.com/nijoyoyoni.pl Dec 21 13:20:55 Installing android sdk did not bring a lsusb.exe file in my system Dec 21 13:23:17 Can anybody please help me with this question: http://stackoverflow.com/questions/13990550/trying-to-insert-data-to-database-from-json-array Dec 21 13:25:08 obscurant1st: one by one insert will be slow Dec 21 13:25:12 u should use batch insert Dec 21 13:25:54 ixc I learning stuffs as I code. So thanks for pointing that out. But still this code is not working! :/ Dec 21 13:26:28 and why u want to open/close database for every record? Dec 21 13:27:05 Oops, I don't want that, yeah so I am moving the closing db! :/ Dec 21 13:27:32 and if that try going to catch at insert Dec 21 13:27:36 u keep open the db Dec 21 13:28:22 so my point the problem is, something went wrong, and database still opened at second try when you want open again Dec 21 13:28:31 for write you only can open once in a time Dec 21 13:28:44 oh ok. Thanks, let me try it now then! :) Dec 21 13:30:03 By the way, I am creating thie object for dbCodeHelper in connectionDb class, like this: dbCodeHelper db = new dbCodeHelper(); But since this is not the main activity this is giving me an error. Dec 21 13:30:17 So I am giving it as null, is that ok? Dec 21 13:31:01 no Dec 21 13:31:09 you can use application's context Dec 21 13:31:38 context help you search the database file Dec 21 13:33:35 ixc getApplicationContext is also giving me an error! Dec 21 13:34:07 It is showing The method getApplicationContext() is undefined for the type connectionDb Dec 21 13:34:34 you need call it on your application :) Dec 21 13:34:45 I'm trying to create a tile system for an android game and the draw method isn't working for some reason, can someone help me figure out what's wrong? http://hastebin.com/hatiqamiga.pl Dec 21 13:34:48 btw you can pass context to your db, and store it memory Dec 21 13:34:53 the code is reached Dec 21 13:35:08 check google, you will find so much hints Dec 21 13:35:41 and i-tLCorner.x is between 0 and 18, j-tLCorner.y is between 0 and 12 Dec 21 13:35:47 tilesize is 48 Dec 21 13:35:53 so all values should be correct Dec 21 13:36:35 but nothing is drawn Dec 21 13:37:12 ixc So I should check for ways to pass context to the db? Dec 21 13:38:47 The problem is my mainactivity is calling the connectionDb and then the connectionDb is using the dbCodeHelper to do the SQL stuffs. I am a little confused on how to get the context here! :( Dec 21 13:39:05 most of article make a singleton application class, and store the context, but has a lot way Dec 21 13:39:43 obscurant1st: example you can pass from ur activity (but i not really recommend that) Dec 21 13:42:18 I am sorry ixc I didn't understand that! :/ Dec 21 13:42:28 jira is down Dec 21 13:42:32 the end of the world Dec 21 13:44:15 mikedg: our redmine still run :( Dec 21 13:45:31 only 1hour 15minutes left from this bussines year (for me) Dec 21 13:51:19 hey guys, when im using the addRule() function with an anchor (view.getId()) Dec 21 13:51:41 ixc Can you please tell me what do I have to do here? :| Dec 21 13:51:43 as i understand im supposed to set the id myself, are there restrictions or i just pick any number i like Dec 21 13:52:07 obscurant1st: use google, and also i think vogella page has a nice article Dec 21 13:53:09 ixc the problem is I don't know what to search for. shall search for ways to pass context to the db? Dec 21 13:55:03 Hello, question, is anyone developing on an Apple desktop/notebook? Dec 21 13:55:56 I get an exception when trying to CLOSE an output stream. Dec 21 13:55:58 How the hell...? Dec 21 13:57:53 because my webview is giving me "webpage not available" and I read on the nets that it might be because the emulator is trying to obtain DNS stuff settings from my lan card which is not connected Dec 21 14:02:33 Tee_Pee: it's possible (albiet really quite unlikely) Dec 21 14:02:50 (well of course it's possible, it happened to you!) Dec 21 14:05:40 one could spend a lifetime waiting on Eclipse to do anything Dec 21 14:05:43 Tee_Pee: are you using that new try catch thing? Dec 21 14:05:56 (the one where you can specify resources) Dec 21 14:06:33 sabton: Life's too short, use IntelliJ :p Dec 21 14:06:55 Yeah I had it inside a try / catch block, it didn't give me any trouble Dec 21 14:06:57 was just weird Dec 21 14:07:10 Hello! Is any way to create pdf files in android& Dec 21 14:07:12 ? Dec 21 14:07:32 do I have to set a particular permission in order for my app to access the internet? Dec 21 14:07:50 matsebc: the INTERNET permission yes Dec 21 14:08:00 Tee_Pee: I meant this http://www.theserverside.com/tutorial/Use-try-with-resources-Language-Enhancements-for-the-Java-7-OCPJP-Exam Dec 21 14:08:01 yup, just read, thanks Dec 21 14:11:07 I investigate possibility to create pdf file in android but had found one little lib and one not-free web service. Can anybody suggest me good lib(web service wit api)? Dec 21 14:14:40 Hello Dec 21 14:14:49 I am Japanese Dec 21 14:14:57 I live in Japan Dec 21 14:14:58 helll Dec 21 14:15:21 Anoia: hello Dec 21 14:15:33 I am Android applications developer Dec 21 14:16:05 What is the way of registrering devices when coding in windows? There is no udev theere... Dec 21 14:16:29 erm.. why does ContactsContract.Contacts.CONTENT_URI not have the phone numbers of the contact ? Dec 21 14:17:16 anli_: how do you mean? Dec 21 14:17:27 did the conversation above and the link I gave you not cover it? Dec 21 14:18:12 oh, link? must check Dec 21 14:19:00 the one that says how to install the adb driver for any device :) Dec 21 14:19:01 I am sorry, found no link Dec 21 14:19:17 12:49 < Anoia> http://stackoverflow.com/a/13327665/588306 Dec 21 14:19:24 ah, there it is Dec 21 14:19:27 doh Dec 21 14:19:39 thx Dec 21 14:20:19 StingRay_: http://stackoverflow.com/questions/2356084/read-all-contacts-phone-numbers-in-android Dec 21 14:20:23 oh there are many entries Dec 21 14:20:32 of the same person Dec 21 14:20:33 ContactsContract.CommonDataKind.Phone Dec 21 14:21:33 StingRay_: follow that link but skip the accepted answer Dec 21 14:21:38 the one below it is better nowadays Dec 21 14:22:45 cheers Dec 21 14:22:48 will look Dec 21 14:23:47 would the one below the accepted answer just return 1st number associated ? Dec 21 14:24:36 or would it return multiple of names with diff/assoc numbers ? Dec 21 14:25:35 StingRay_: no idea, never used that api Dec 21 14:25:44 should be a search away now Dec 21 14:31:15 question, new here so apologies for the dumb questions, I can't click on the return or home button on my AVD Dec 21 14:31:30 why not? Dec 21 14:36:24 trying to setup my current project inintellij wheeee Dec 21 14:36:31 The method setDropDownViewResource(int) is undefined for the type CustomSpinnerAdapter Dec 21 14:36:32 wtf? Dec 21 14:37:20 public class CustomSpinnerAdapter extends BaseAdapter implements SpinnerAdapter { Dec 21 14:38:52 matsebc: using a tablet emulator? Dec 21 14:38:54 squ: what is your question? Dec 21 14:38:59 those hace software buttons Dec 21 14:39:10 belgianguy: yup Dec 21 14:39:12 (and the hw ones are visible, but disabled) Dec 21 14:39:21 timroes, I want default behavior of spinner Dec 21 14:39:44 setting // adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); Dec 21 14:39:56 is exactly what is needed Dec 21 14:40:10 why you wonder, that there is no method setDropDownViewResource? Dec 21 14:40:13 did you code one? Dec 21 14:40:16 nope Dec 21 14:40:22 why do you wonder then? Dec 21 14:40:22 should I super it? Dec 21 14:40:32 there is no method in any super class like that? Dec 21 14:40:39 I dont know? Dec 21 14:40:52 yeah as it seem, but stil you wonder, if you cannot call it Dec 21 14:41:01 if you want it, you have to code it Dec 21 14:41:06 setDrop.. exists only for arrayAdapter? Dec 21 14:41:39 belgianguy: not sure how can I go back Dec 21 14:41:46 yeah, because in arrayAdapter you doesn't have to implement the getView method yourself? Dec 21 14:42:00 to the previous screen I mean Dec 21 14:42:01 matsebc: on the bottom of the emulator Dec 21 14:42:05 the arrow button Dec 21 14:42:12 so ofc it gives you oportunity to set a view, but since you anyway have to implement the getview method youself, you can return whatever view you like in it Dec 21 14:42:23 so if you want another view, modify your getview method Dec 21 14:42:36 belgianguy: no arrow button at the bottom Dec 21 14:43:24 matsebc: did you unlock it? Dec 21 14:43:44 dragging the circle to the right Dec 21 14:43:46 hello people Dec 21 14:44:10 yup, the app I created is runing Dec 21 14:44:19 i have a theme in my application and I would like NOT to apply this theme to one specific control in my app , is it possible ? Dec 21 14:44:28 timroes, I need the getView only to modify font of the spinner (before user clicked on it) Dec 21 14:44:43 matsebc: http://i.imgur.com/j1Z9m.jpg Dec 21 14:44:51 the pop out dialog on 2.2 or drop-down menu is what I dont care how it looks Dec 21 14:44:52 squ: paste your geView method Dec 21 14:45:21 I thought it is possible to modify text without extending anything Dec 21 14:45:26 thru findView Dec 21 14:45:30 but its not Dec 21 14:45:38 ofc not :D Dec 21 14:45:52 reasons have already been mentioned a thousand times beforehand Dec 21 14:46:16 http://ideone.com/EJmcMc Dec 21 14:46:55 so and if you know ant to modiy the view that is returned, just modify line 44 to inflate the view you would like to return? Dec 21 14:47:28 and if you only want to do the dropdownview, do exactly what it seems you already started Dec 21 14:47:46 override the getdropdownview method and do the same you do in getview but load the appropriate layout Dec 21 14:48:56 in getDrop.. inflate using default android.R.layout.simple_spinner_dropdown_item Dec 21 14:48:57 ? Dec 21 14:49:50 belgianguy: http://imgur.com/r5b8C Dec 21 14:49:58 I constantly get a System.UI error tho Dec 21 14:50:01 that might be it? Dec 21 14:50:09 nobody ? :( Dec 21 14:50:27 squ: no the one you wanted to set with the non existing method? Dec 21 14:50:33 psicho, you may apply another theme to that specific control Dec 21 14:50:50 can you please tell me how ? Dec 21 14:50:55 timroes, I want everything default :) Dec 21 14:51:01 @style="blalba" ? Dec 21 14:51:02 matsebc: that's not very good no Dec 21 14:51:21 why the hell did you want to use the setWhatever... method then? Dec 21 14:51:53 timroes, I want change typeface of the font, which is displayed before dialog with selection pops up Dec 21 14:51:53 matsebc: try another image in the emulator Dec 21 14:52:07 belgianguy: pardon? Dec 21 14:52:08 when activity is created and nobody clicked anywhere Dec 21 14:52:22 and how would setDropDOwn... help you with that, if you want to set exactly the default view? Dec 21 14:52:28 belgianguy: no I get that error when the emulator startsup Dec 21 14:52:40 / adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); Dec 21 14:52:51 this one show default android theme Dec 21 14:53:07 on 2.2 its a dialog Dec 21 14:53:11 on 4.1 drop-down Dec 21 14:53:49 so how do I modify just the typeface? Dec 21 14:54:04 override it and use your custom layotu? Dec 21 14:54:17 matsebc: then I'd say reinstall the software, as that bodes not very well Dec 21 14:54:23 but more I won't tell you since -- again -- I won't help you create an app, everyone will rank 1 stars :) Dec 21 14:54:24 what exactly do I have to override? Dec 21 14:54:47 ... the getDropDown... method do the same like in getView, but with your custom layout in the inflator.inflate method Dec 21 14:54:58 wait Dec 21 14:55:14 I want the android.R.layout.simple_spinner_dropdown_item Dec 21 14:55:49 it is default Dec 21 14:55:59 squ android.R.layout.simple_spinner_dropdown_item = style defined by that layout Dec 21 14:56:20 syle = visual look, size, font, textStyle etc Dec 21 14:56:35 define your own Dec 21 14:56:43 and use that is the point Dec 21 14:57:03 what do you mean "by that layout" ? Dec 21 14:57:31 I thought its default theme Holo light or whatever it is called Dec 21 14:57:35 android.R.layout.simple_spinner_dropdown_item <--- after the 2nd "." Dec 21 14:57:54 if there is no override in that layout yeah, i think it is Dec 21 14:58:03 squ: android has in its frameworks layout folder a simple_spinner_dropdown_item.xml file that defines that layout with it style Dec 21 14:58:45 ok Dec 21 14:58:50 do I have to inflate it? Dec 21 14:58:59 and after set the typeface? Dec 21 14:59:22 no, typeface would be defined in the layout xml Dec 21 14:59:29 as is my understanding :) Dec 21 14:59:41 please note that I care only about the font which is displayed before user clicks on a spinner (not after, when dialog is shown) Dec 21 15:00:11 StingRay_, if you tell me how to use a font downloaded from Internet inside xml? Dec 21 15:00:27 StingRay_: don't tell him :) Dec 21 15:00:58 timroes no worries there, I have no idea... never done it, sure there will be loads of info about though Dec 21 15:01:01 you guys are an opposition Dec 21 15:01:02 :) Dec 21 15:01:29 yeah we are the opposition to the "we change the default font" side :D Dec 21 15:01:40 I agree Dec 21 15:01:46 opposition never wins Dec 21 15:01:52 from a UX pov you dont want to change font Dec 21 15:01:56 please don't freewheel with the design guidelines Dec 21 15:01:57 user has no control then Dec 21 15:02:13 users expect certain styles to mean something Dec 21 15:02:18 what is clickable and what isn't Dec 21 15:02:24 what is static and what isn't Dec 21 15:02:38 StingRay_: belgianguy: forget it,. I was telling him that all the days, but he insists to create a bad app (though the design is not his fault) Dec 21 15:02:49 if you make the squ-layout, 99% chance it'll backfire Dec 21 15:03:11 ah belgianguy, you dropped one percent somewhere :D Dec 21 15:03:13 yeah but that 1% chance whats that ? :) Dec 21 15:03:20 * timroes giving belgianguy the last missing % Dec 21 15:03:23 A broader question of sorts.... I get the impression that thumbnails on android look kind of like shit, almost as if android just does plain and simple linear scaling Dec 21 15:03:36 well, 100% it is Dec 21 15:03:47 sorry squ, changing fonts = no Dec 21 15:03:48 the same 100x100 thumbnail looks way better on my desktop than on my phone, even though the screen is obviously leaps and bounds bigger Dec 21 15:04:07 hi folks, is there a way to just update a portion of a canvas on android? Dec 21 15:04:13 is there any way to improve this? Dec 21 15:04:24 or rather invalidate just a specific rectangle on the canvas Dec 21 15:04:26 timroes: tbh I was thinking maybe if a company used it's own font in their logo, they might want to reflect that, or handwriting in a more animated one etc Dec 21 15:04:32 but it is bad UX Dec 21 15:04:40 cloudgazer3d: ofc, you just need to paint that portion, the canvas isn't cleared by default so just paint on the part you need to update Dec 21 15:04:49 If the company wants to use their own font on their logo, they should just have a PNG of their logo. Dec 21 15:04:53 belgianguy: and we talk about spinner :) Dec 21 15:04:55 oh ok Dec 21 15:04:57 not the logo Dec 21 15:04:59 Tee_Pee if it look that bad I would say the pixel/texel relationship is not 1:1 Dec 21 15:05:03 timroes: oh, no way in the spinner Dec 21 15:05:06 that's just Dec 21 15:05:11 no Dec 21 15:05:35 it'll suffer from the designed by programmers disease Dec 21 15:06:10 squ: get designer friends Dec 21 15:06:13 female ones Dec 21 15:06:19 sexist Dec 21 15:06:30 who also double as strippers on the weekend Dec 21 15:06:35 :) Dec 21 15:06:35 doubly sexist Dec 21 15:06:36 yeah, make sure they're sexy, thanks lollo64it Dec 21 15:06:39 lov* Dec 21 15:06:39 i also think females have better taste of design :D Dec 21 15:06:46 what in the Dec 21 15:06:51 how does lov turn into lollo64it Dec 21 15:06:58 lov tab completion Dec 21 15:07:02 oh Dec 21 15:07:08 I didn't know there was a guy with that name Dec 21 15:07:11 now it all makes sense Dec 21 15:07:15 you've thought of everything, I see. Dec 21 15:07:25 BUT YOU NEVER PLANNED ON FALLING IN LOVE WITH YOUR TARGET! Dec 21 15:07:30 it is the way of things Dec 21 15:07:30 cloudgazer3d: you can also use the canvas clipRect method to specify a cliping region, that should be painted only, Dec 21 15:07:35 or should I say, IN LOV. Dec 21 15:07:38 that's the plot twist Dec 21 15:08:05 cloudgazer3d: with the clipping option, you can jsut paint normally to the canvas, and don't need to take care what parts you paint on, since android takes care only to paint what lies within the clipping region Dec 21 15:14:55 ok Dec 21 15:15:04 :) Dec 21 15:15:59 once again, timroes, how do I return the default from getDropDown..? Dec 21 15:16:29 copy your getView method and in the line inflator.inflate use the id o f the default dropdown layout Dec 21 15:16:45 why didnt you tell me that before Dec 21 15:16:46 :)) Dec 21 15:16:53 i did several times :D Dec 21 15:17:01 no you didnt Dec 21 15:17:09 "(15:47:45) timroes: override the getdropdownview method and do the same you do in getview but load the appropriate layout" Dec 21 15:17:52 "16:48 in getDrop.. inflate using default android.R.layout.simple_spinner_dropdown_item ?" Dec 21 15:18:21 switching over to intellij for today Dec 21 15:18:23 wheeewhoop Dec 21 15:20:44 i think I'm gonna switch from osx to linux Dec 21 15:21:14 if I can setup a nice 3 monitor spanned layout Dec 21 15:21:50 StingRay_: you can Dec 21 15:22:04 timroes "NOT SEP X SESSION" ! Dec 21 15:22:05 but its not the easiest to do :) Dec 21 15:22:22 and using 2 gfx cards Dec 21 15:22:23 you will need a graphic card, that supports that :) Dec 21 15:22:24 :) Dec 21 15:22:37 yeah with 2 graphic cards its a pain in the ass Dec 21 15:22:39 also works Dec 21 15:22:47 but you need xinerama, what is kind of outdated Dec 21 15:23:17 will I not get hardware overlay probs using xinerama now ? Dec 21 15:23:19 hi i have 2 separate apps one is an activity the other is a service how do i fire a intent from my service to my activity Dec 21 15:23:21 (using 3 monitors, and to use it successfully i had tested around 10 different graphic cards and worked a lot at my xorg.conf :D) Dec 21 15:23:23 linux is a bit behind the tech then :) Dec 21 15:23:54 Pr070cal: startintent with a suitable URI Dec 21 15:23:58 Anoia: yeah when it comes to that kind of graphic stuff its still a pain in the ass Dec 21 15:24:15 dual monaitor and stuff works very fine, but spanning among 2 graphic cards is not sooo nice :D) Dec 21 15:24:25 daft thing is all high-end 3d graphics and comping is on linux in the vfx industry Dec 21 15:24:39 I remember my first dual head setup on win98 beta Dec 21 15:24:41 so should be betterer Dec 21 15:24:42 Anoia, how do i creat an action in my activity ? Dec 21 15:24:43 StingRay_: there are currently 2 graphic cards out there, that support 3 monitors (via dvi) Dec 21 15:24:50 two huge CRTs and two crappy gfx cards Dec 21 15:25:00 the nvidia gefore 650 and the sapphire radeon hd 5770 flex Dec 21 15:25:05 Pr070cal: what do you mean by an action? Dec 21 15:25:33 with display port you should get less problems, since it supports a lot of monitors by nature, but you might have somie l imitations in finding monitors with that port :) Dec 21 15:25:51 you need an intent filter in the UI app with a suitable URI Dec 21 15:26:06 timroes I have 4x24 dell ips 2410's Dec 21 15:26:08 and in the service, you just create an intent for thet URI and "start" it Dec 21 15:26:17 StingRay_: oh 4 monitors, i am out :D Dec 21 15:26:18 dual dvi displayport and hdmi Dec 21 15:26:34 StingRay_: on one graphic card? Dec 21 15:26:35 well the 4th is for video monitoring from blackmagic hardware Dec 21 15:26:53 those connections are on the monitors Dec 21 15:26:53 timroes, what do you think about this: http://ideone.com/BijgfJ Dec 21 15:26:58 Anoia, ok so my service waits for a wifi change then i want to go off into a separate activity i made and call a method Dec 21 15:27:24 squ: looks all fine Dec 21 15:27:29 Pr070cal: ok? Dec 21 15:27:31 timroes, it crash Dec 21 15:27:39 with what error in what line Dec 21 15:27:48 on spinner click Dec 21 15:27:52 Anoia, so service waits for wifi to connect then i want to launch a method in my activity in a different package Dec 21 15:28:00 yeah but the exception? Dec 21 15:28:04 ok? Dec 21 15:28:10 what I said above Dec 21 15:28:35 java.lang.NullPointerException CustomSpinnerAdapter.getDropDownView(CustomSpinnerAdapter.java:39) Dec 21 15:29:09 t1 is null then, are you sure R.id.spinner_text is the id of the textfield in simple_spinner_dropdown_item layout? Dec 21 15:29:14 I'm trying to make an onscreen keyboard that only covers the bottom left-hand corner of the screen. Can anyone tell me what I'm doing wrong? http://ompldr.org/vZ3J0dg http://ideone.com/OQgb5B Dec 21 15:29:29 ah Dec 21 15:29:39 timroes, default values are text1, text2 etc, right? Dec 21 15:30:19 i don't know if that layout uses that ids' Dec 21 15:30:52 ok, its fine without t1 Dec 21 15:31:18 looks exactly as I wanted, dialog on 2.2, drop-down on 4.1 Dec 21 15:31:19 Anoia, do i need a broadcast receiver in the activity to receive the custom intent ? Dec 21 15:33:10 I dont; think so, that's what the intent filter is for Dec 21 15:33:45 ok Dec 21 15:37:22 how to quick search files/folders on android using cmd line? Dec 21 15:39:43 hello, i'm trying to authorize a user with trello via the web interface: https://trello.com/docs/gettingstarted/authorize.html I have a valid authorize link and when the user validates it works in some browsers(redirecting to a token page). However, in the stock 4.1 browser it attempts to download the token page rather than redirecting. Dec 21 15:39:56 timroes, this is completed class: http://ideone.com/rcfTnK Dec 21 15:40:01 is there some way i can force the browser to redirect rather than download? Dec 21 15:40:08 but on 4.1 drop down looks weird :) Dec 21 15:40:32 perhaps they use another layout on 4.1? Dec 21 15:40:47 idk Dec 21 15:41:06 used android.R.layout.simple_spinner_dropdown_item to construct it Dec 21 15:41:22 Is it possible to create a view that doesn't fill up the screen's width and height completely? Dec 21 15:41:23 it was different than now Dec 21 15:41:50 why could it be? Dec 21 15:42:00 jstream you can create a view any size any place Dec 21 15:42:28 squ: in what way does it look weird? Dec 21 15:42:32 StingRay_: Any idea what I'm doing wrong then? http://ompldr.org/vZ3J0dg http://ideone.com/OQgb5B Dec 21 15:42:41 timroes, text is smaller Dec 21 15:43:10 no padding Dec 21 15:43:22 hmm no idea, perhaps doing it that way messes up a bit with the default styles Dec 21 15:43:22 jstream my guess is that extending KeyboardView is doing that Dec 21 15:43:38 it will have a full width holder/canvas Dec 21 15:44:00 timroes, sounds like a bug :) Dec 21 15:44:24 jstream grab the view hierarchy and have a look whats above :) Dec 21 15:44:44 StingRay_: Ah, thank you. I'll see if I can find the code for keyboardview to create a suitable override. Dec 21 15:45:12 StingRay_: I tried that and maybe I just don't know how to interpret the results, but it didn't seem helpful Dec 21 15:45:33 jstream I'm just guessing btw, but to test make your root content holder background red or something Dec 21 15:45:42 then you will see if it's your view Dec 21 15:46:01 StingRay_: thanks Dec 21 16:16:32 hi if i have a GPS antenna as a USB stick, can i do something to connect it to the emulator? Dec 21 16:21:17 is it possible to override a private method? Dec 21 16:21:26 no Dec 21 16:22:49 If I'm extending Class A to create Class B, I can't override methods declared in Class A from within class B? Dec 21 16:22:58 sorry -- i'm just not sure Dec 21 16:23:11 or, it's surprising Dec 21 16:24:48 http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Dec 21 16:25:38 also, you can't extend final classes Dec 21 16:25:38 http://docs.oracle.com/javase/tutorial/java/IandI/override.html Dec 21 16:28:14 thanks doogan Dec 21 16:32:50 np Dec 21 16:33:42 This http://stackoverflow.com/questions/2000137/overriding-private-methods-in-java says it is possible to create a method with the same name as a private method in a parent class. How is that different than an override? Dec 21 16:39:38 jstream: because a "legal" @Override annotation would give you a compiler error Dec 21 16:39:56 you just define a function that happens to have the same name Dec 21 16:45:17 Hello Dec 21 16:45:47 adb detects my galaxy tab 2, but it doesn't detect my galaxy note 2 Dec 21 16:46:49 beingcasual: thanks Dec 21 16:47:13 err I meant belgianguy, sorry Dec 21 16:48:33 oh i am an idiot, forgot to enable debug mode Dec 21 16:56:06 good solid lnx distro for andoid dev ? that != ubuntu Dec 21 16:56:37 already have centos, but thats more for my graphics stuff Dec 21 16:59:03 mikedgggggggg Dec 21 16:59:14 canadiancow hows your glas eye? Dec 21 16:59:57 StingRay_: gentoo? Dec 21 17:00:56 never used b4 Dec 21 17:00:59 that deb based ? Dec 21 17:01:05 i develop on fedora and i'm happy with it. Dec 21 17:01:20 thing is i dont want all that touch screen balls Dec 21 17:01:30 or have to opt out of ads Dec 21 17:01:31 etc Dec 21 17:01:52 StingRay_, then use something like Arch, Gentoo or Debian Dec 21 17:02:17 I prefer Arch myself Dec 21 17:02:25 i like xubuntu Dec 21 17:02:31 XFCE > Gnome 3 Dec 21 17:02:56 Unity is so terribad Dec 21 17:03:35 right grabbed xubuntu and deb, will try Dec 21 17:03:39 cheers Dec 21 17:04:18 so it's recommended to extract icons from the sdk and include them in your app instead of using android.R to use them. but with 5 dpi buckets, is there any tool that will do it for me and place them in my res folder? Dec 21 17:04:49 the design download pack has each icon in mdpi hdpi & xhdpi Dec 21 17:05:04 you could script it i suppose Dec 21 17:05:07 really not that bad Dec 21 17:06:33 the things is there's 284 icons in a folder Dec 21 17:13:35 you need all of them for your app? Dec 21 17:13:53 does any one know how to customize SearchView ? Dec 21 17:13:57 look and feel Dec 21 17:14:33 doogan no i need 1 but i dont want to find it 5x and copy .. hassle Dec 21 17:15:23 harshamv: http://stackoverflow.com/a/11669808/1679033 Dec 21 17:15:30 that should be a decent start for you Dec 21 17:15:58 i ended up writing a custom view that handles everything i need Dec 21 17:16:07 had to create 1 or 2 9-patches i think too Dec 21 17:18:43 xorgate: again, really it's just mdpi hdpi & xhdpi Dec 21 17:18:55 <- lazy Dec 21 17:18:56 it prob takes < 60sec to find each, copy paste & rename Dec 21 17:19:04 yeah i hear you Dec 21 17:19:07 i love automating shit too Dec 21 17:19:23 dunno tho Dec 21 17:21:10 doogan: is that ur post ? Dec 21 17:21:11 :D Dec 21 17:27:40 nah Dec 21 17:27:44 just found it helpful Dec 21 17:30:03 i did some work with intellij today woop Dec 21 17:30:30 intellij \o Dec 21 17:30:43 maybe we can get google to stop writing all docs for eclipse Dec 21 17:31:08 the intellij interface i so terrible in so many ways, but there's a lot of niceties that i still like it Dec 21 17:32:41 doogan: i am using Sherlock 4.2 so as someone commented i dont think it will work Dec 21 17:32:50 any idea how to get it to work on an Action bar Dec 21 17:33:03 http://stackoverflow.com/questions/13992424/android-sherlock-actionbar-search-view-styling Dec 21 17:55:05 Hey guys, got another question, my status bar or whatever the bar that shows up at the bottom of the emulator is showing up on the top and upside down Dec 21 17:55:23 however it responds when I tap at the bottom Dec 21 17:55:57 so it is just an issue display, my app appears vertically correct but it is displaced the height of the bar Dec 21 17:59:27 like this O.o http://imgur.com/cmaSX Dec 21 18:03:26 that's... uh Dec 21 18:03:36 well, congratulations on however the hell you did that! Dec 21 18:04:35 not too complicated, just setup a new ADV Dec 21 18:04:38 AVD sorry Dec 21 18:21:25 whats the setBackgroundResource equivalent to setting the drawable resource ? Dec 21 18:21:29 i want to set the image Dec 21 18:21:34 instead of the background Dec 21 19:07:08 hey guys, I'm trying to test some code that will be doing network requests via an IntentService, what's the best way to write unit tests for this? I'm using Robolectric. Dec 21 19:18:56 gkatsev, that sounds painful... Dec 21 19:20:24 in java, yes... in other languages, less so Dec 21 19:21:40 testing async code is always painful Dec 21 19:22:05 not to mention, that's more of an integration test Dec 21 19:22:55 well, I guess I want test at the calls to the IntentService are correct rather than that the IntentService sends out the correct http requests Dec 21 19:23:10 I guess I should've made that more clear originally. Dec 21 19:24:08 gkatsev, with robolectric, expose the handler in your intent service Dec 21 19:24:20 and examine that it's correct Dec 21 19:26:36 as in create a shadow of the service? Dec 21 19:26:52 yes Dec 21 19:27:56 ok. I'll come back if I have more questions :) Dec 21 19:34:58 * mikedg permutes gkatsev Dec 21 19:36:05 how does that work? Dec 21 19:50:56 damnit Dec 21 19:51:04 looks like im gonna miss my delivery for my series 7 tablet :( Dec 21 19:51:41 :P Dec 21 19:51:53 * mikedg kicks evanc in the neck Dec 21 19:54:03 lol Dec 21 19:54:04 merry xmas mikedg :) Dec 21 19:54:05 lol Dec 21 19:54:14 the g00s is l00s Dec 21 19:54:29 happy boxing day canadiancow Dec 21 19:54:49 and g00s Dec 21 19:54:56 /mode #android-dev +o mikedg Dec 21 19:54:58 ;) Dec 21 19:55:14 mikedg, you're like 5 days early Dec 21 19:55:40 i had no idea that boxing day wasnt a thing down here until last night Dec 21 19:55:50 lol Dec 21 19:56:10 the response i got was "is that like your independence day?" Dec 21 20:09:30 I'm looking beta-testers for a new Android 3d game. Requirements: Android phone with 512MB of RAM (not for phones with 1 GB or greater). PM me Dec 21 20:09:41 im looking for beta testers for your mom Dec 21 20:12:55 mikedg: that's already a released product with millions of users, no? Dec 21 20:13:11 ouch Dec 21 20:13:29 it's still got lots of bugs Dec 21 20:13:46 you didn't do a good job with integration testing Dec 21 20:15:01 fuu intellij giving me strange storage corruption errors.. can't build :( Dec 21 20:15:56 im using intellij now Dec 21 20:15:58 and i have no such errors Dec 21 20:17:44 I tried to run my project in intellij but for some reason it wasn't reloading changes from a library project into the app project until I restarted intellij, so, I'm back with eclipse... Dec 21 20:21:34 good thing you didn't pay for it :P Dec 21 20:26:52 I hope that it's just some bug. I prefer intellij over eclipse Dec 21 20:26:54 g00s: lol Dec 21 20:28:53 <[twisti]> hi, im trying to enable the navigation buttons in the android emulator Dec 21 20:29:03 <[twisti]> is there a workaround ? the GUI is broken Dec 21 20:29:39 <[twisti]> there has to be a text file i could edit somewhere Dec 21 20:32:53 <[twisti]> is there maybe a way to use a keyboard shortcut to navigate until that bug is fixed ? Dec 21 20:33:14 <[twisti]> i cant be the only android developer in the world who needs to use the 'back' button to test their software Dec 21 20:53:52 Is it just me, or does using android as a security token for second-factor authentication seem nutty? Dec 21 20:54:38 why Dec 21 20:56:07 1) when the desired 'cloud-service' is itself accessed on the mobile device, it doesn't seem to add anything material -- it's no longer a second factor Dec 21 20:56:31 2) it's not clear how secure a soft-token app would be; in a typical android environment Dec 21 21:00:31 given where all device usage is trending, it seems [at a crude level] roughly equivalent to installing an application on a laptop, and calling the laptop a security/soft token. Maybe it's just me :-) Dec 21 21:09:57 How can I access the hierarchyviewer from DDMS? Dec 21 21:10:45 Ah, I found a perspective Dec 21 21:11:57 I tried to add a ListView via Fragment on top of a relative layout, but the listview seems to be invisible Dec 21 21:20:50 http://www.theverge.com/2012/12/21/3792974/google-reportedly-working-with-motorola-to-design-its-own-x-phone Dec 21 21:28:08 need a new project to work on... Dec 21 21:28:19 rynkan: you might as well help me with fragments forst Dec 21 21:28:20 first Dec 21 21:28:38 whats up Dec 21 21:28:41 I am trying to add a fragment to a relative layout with two buttons and an edittext Dec 21 21:28:53 but the listfragment is invisible Dec 21 21:29:07 so I think I might have to add it to the xml layout file first and then somehow reference it Dec 21 21:30:04 this is what i use as the redbook on fragment Dec 21 21:30:05 s Dec 21 21:30:06 http://www.vogella.com/articles/Android/article.html Dec 21 21:30:25 yeah ok Dec 21 21:30:50 thanks! Dec 21 21:31:19 No wait wrong link Dec 21 21:32:23 I like minimalist… I mean Android already wrote the list views no? Dec 21 21:32:26 luyang: its the right link, section 18.1 Dec 21 21:32:50 luyang: havn't done fragments in a while so i cant helt directly Dec 21 21:32:54 help* Dec 21 21:33:16 rynkan: when I added the list fragment from the ui editor it automatically filled in android:name="android.support.v4.app.ListFragment" Dec 21 21:33:28 but the tutorial uses a custom class which overrides listfragment Dec 21 21:34:35 luyang: I would have followed vogels apporch as he updates his tutorial Dec 21 21:35:16 rynkan ok tack Dec 21 21:35:48 luyang: du är välkommen Dec 21 21:36:12 anyone know a good guide for rooting a nexus 7? Dec 21 21:36:19 and are there an pitfalls i should be made aware of? Dec 21 21:36:33 brx_: I got one as i just rooted mine Dec 21 21:36:34 wait Dec 21 21:36:44 ok rynkan Dec 21 21:39:52 http://forum.xda-developers.com/showthread.php?t=1741395 Dec 21 21:40:06 thanks rynkan Dec 21 21:40:17 did you have any problems when doing yours? Dec 21 21:40:26 It might be hard to get into recovery Dec 21 21:40:53 if you get that problem go into recovery trough adb or use an app Dec 21 21:41:25 ok great Dec 21 21:41:49 I had to fiddle with it a good 5min untill i got into recovery, the usual way (from bootloader) is broken for most new phones Dec 21 21:42:12 you mean where you hold down and switch it on? Dec 21 21:42:16 down volume* Dec 21 21:42:28 yep Dec 21 21:42:58 ok i will check that before I begin to see if my device is effected Dec 21 21:44:06 i wonder if the 16gb n7 is finished. the 32 gb unit says shipping 1-2 weeks, but the 16 gb unit just says sold out (no eta) Dec 21 21:44:49 i just got a 32 gb, couldnt find a 16gb all sold out Dec 21 21:45:11 all iDevices are in stock :D Dec 21 21:45:17 got mine from ebay Dec 21 21:45:31 google is terrible with supply chain Dec 21 21:45:42 didn't need 32 anyway Dec 21 21:46:37 are you guys keeping the stock rom i take it? Dec 21 21:47:15 i am, just needed the root for adding sixaxis Dec 21 21:47:17 Hello, Does anyone know how can support cross-domain in the Android Webview? Dec 21 21:47:36 Any Fragment guru around? So I finally got the ListFragment working but it's showing an indefinite progress circle thing Dec 21 21:47:45 like it's loading Dec 21 21:48:01 anelrh26: cant do cross-domain afk Dec 21 21:48:14 ok cool Dec 21 21:48:58 why does the list view show like it's loading Dec 21 21:49:30 mmmm thanks rynkan Dec 21 21:50:48 anybody? Dec 21 21:50:48 So, Do you know how Can I catch this error Unsafe JavaScript attempt to access frame with URL? Dec 21 21:51:28 anelrh26: no, what i did was create a simple proxy for my cross-domaincalls Dec 21 21:51:56 js talks to my server, my server talks to whatever Dec 21 21:51:59 and back Dec 21 21:52:48 thanks rynkan for you help Dec 21 21:53:50 rynkan: vet du varför jag får en indeterminate progressbar när jag använder listfragment? Dec 21 21:54:56 eng in channel, brbr 5min putting a screen protector on n7 Dec 21 22:03:28 if s/o could just explain why I get an indeterminate progress bar when I load up my list fragment Dec 21 22:06:50 luyang: havn't done much fragment-based layouts to help you :/ Dec 21 22:06:53 yay it sorted after I added the class="" Dec 21 22:21:11 now I can't click the buttons because they're behind the listview :( Dec 21 22:22:06 luyang: layout_weight Dec 21 22:23:09 or using FrameLayout which indexes what comes first in a layout Dec 21 22:23:10 using relative layout Dec 21 22:23:22 I am playing with layout_above yadayada Dec 21 22:23:42 http://developer.android.com/reference/android/view/View.html#bringToFront%28%29 check out Dec 21 22:23:49 hey now I got Device not found :( Dec 21 22:24:28 You also might have a PEBCAK-issue Dec 21 22:24:40 SBS Dec 21 22:24:44 skit bakom spakarna Dec 21 22:24:49 :) Dec 21 22:25:02 ah plug out plugin worked Dec 21 22:25:12 goddamn it Dec 21 22:25:20 I'm gonna switch to linear layout Dec 21 22:25:50 aja, gonna go learn libgdx Dec 21 22:32:20 rynkan, May I PM you? Dec 21 22:33:02 k Dec 21 22:43:33 Has anyone here transferred an Android app from one developer account to another (e.g., by selling an app to another developer)? Dec 21 22:47:25 how do I style the pop up menu on devices that have a dedicated menu hardware button? Dec 21 22:48:14 I'm trying to fiddle with the android:popupMenuStyle attribute values and it seems to let me do things like change the background color when the action bar has an overflow menu Dec 21 22:48:34 but on phones like the galaxy s3 that have hardware menu buttons, the styling values aren't getting applied Dec 21 22:50:42 popupmenues are so android <2.1-ish Dec 21 22:51:00 actionbar Dec 21 22:51:19 http://actionbarsherlock.com/index.html Dec 21 22:51:20 maybe im using the wrong term? Dec 21 22:51:36 the thing that displays a drop down list of items when you click the actionbar overflow item Dec 21 22:52:08 when devices have a hardware button, the overflow item disappears from the actionbar and is accessed through the dedicated button Dec 21 22:52:29 I am using actionbarsherlock Dec 21 22:52:49 dont know if popupMenuStyle effects that Dec 21 22:52:53 in the actionbar Dec 21 22:53:03 popupMenuStyle does affect it if it is in thee action bar Dec 21 22:53:26 when the menu is accessed not from the action bar (like when using the hardware button) i can't seem to style it Dec 21 22:53:44 hmm Dec 21 22:53:50 interesting Dec 21 22:53:59 * rynkan checks the difference Dec 21 22:54:33 rynkan did your nexus come with a camera app installed? Dec 21 22:54:47 https://groups.google.com/forum/?fromgroups=#!topic/actionbarsherlock/5lHOKNlXn_4 Dec 21 22:54:55 brx_: havn't checked Dec 21 22:54:59 How can I use Authenticator class to authenticate an user? I didn't understand what that class does. I was thinking in using http://loopj.com/android-async-http/ to perform login. What is the best option? Dec 21 22:55:02 k Dec 21 22:55:02 ive tried using different combinations of android:background, android:popupBackground Dec 21 22:56:45 The only way I've been able to change the appearance of the popup menu so far when a dedicated hardware menu button is present is by changing the theme from like Theme.Holo.Light / Theme.Holo Dec 21 22:57:19 http://developer.android.com/guide/topics/ui/menus.html#options-menu checked this? Dec 21 22:57:46 not yet, I'll read through it. thanks Dec 21 22:58:37 "To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback). In this method, you can inflate your menu resource (defined in XML) into the Menu provided in the callback." Dec 21 22:58:45 migh be what you need to do Dec 21 22:58:52 t* Dec 21 22:59:25 and style the xml anyway you need Dec 21 23:00:02 So I'm currently doing that Dec 21 23:00:05 using MenuInflator Dec 21 23:00:44 I don't really know how to style menu xmls though Dec 21 23:01:17 don't really know how to either just assumed its possible :o) Dec 21 23:01:41 thanks for looking into it anyway Dec 21 23:03:51 I like how you can only get a oneliner on where your package is from hongkong-post Dec 21 23:04:38 "The item (xxx) arrived at its destination country (Sweden) by boat on 21-Dec-2012." yeah thanks... Dec 21 23:05:19 is it possible to create a native linux service on AOSP? Dec 21 23:05:25 google is not turning anything up Dec 21 23:09:17 Hey guys, can anyone help me solve this? http://imgur.com/fwkvS Dec 21 23:11:45 not sure what to do in order to fix that bar :| Dec 21 23:13:36 Hey guys, does anyone know what axis is coming out of the device's screen in the http://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation(float%5B%5D,%20float%5B%5D) Dec 21 23:14:05 this gets asked pretty often in here, so I'm going to signal-boost it: http://apiblog.youtube.com/2012/12/no-webview-required-with-native-youtube.html Dec 21 23:14:34 evanc: were you talking to me? Dec 21 23:14:42 wilornel: those coordinates are relative to the world, not to the device Dec 21 23:14:51 I dont understand.. Dec 21 23:14:52 wilornel: no, of course not Dec 21 23:15:57 libgdx is sexy Dec 21 23:16:05 jesusfreke: but how is the device placed? Dec 21 23:16:20 wilornel: that's what getOrientation tells you Dec 21 23:16:41 it tells you the rotation of the device around each of those "absolute" (world-relative) axis Dec 21 23:17:14 okay so how should I place my device for the rotation on the x y and z axis be 0? Dec 21 23:17:15 Is your question, e.g. which axis point out the front of the phone, when all rotation values are 0? Dec 21 23:17:21 heh. that would be a yes :) Dec 21 23:17:35 no one know what it might be? Dec 21 23:17:55 lol :P Dec 21 23:18:02 okay let me try something Dec 21 23:18:33 I'm pretty sure the device would be facing towards the sky, with the front facing west Dec 21 23:19:13 JesusFreke: why? Dec 21 23:19:16 err, points north Dec 21 23:19:17 sorry Dec 21 23:19:20 alright, so Dec 21 23:19:27 yes its exactly that Dec 21 23:20:15 but its weird... Dec 21 23:20:21 those are quaternions?.. Dec 21 23:20:37 oh they are radions Dec 21 23:20:46 radians* , that works completely in the opposite way Dec 21 23:24:29 * rynkan thinks He is the law! *watching Judge dredd and making a platformer Dec 21 23:28:36 judge dredd was a great movie this summer Dec 21 23:28:40 totally underrated Dec 21 23:29:34 pfn: sure is awesome Dec 21 23:32:02 it was decent Dec 21 23:32:11 I wouldn't call it great Dec 21 23:32:27 you're talking about the old movie, yes? Dec 21 23:32:34 don't tell me they made a crappy remake... Dec 21 23:32:39 2012, too much drama Dec 21 23:33:08 pragma-: they made a decent remake. Dec 21 23:33:27 sure, I bet you think the new Star Wars and the new Total Recall were decent too Dec 21 23:33:58 oh, here's a shocker for you :) Dec 21 23:34:16 I actually like most of m. night shamalyan's stuff. :p Dec 21 23:34:22 or however you spell that Dec 21 23:34:24 Hollywood is all out of ideas, trying to remake classics to grub for cash. Dec 21 23:34:26 I never can. :) Dec 21 23:35:53 the only good m night movie was the 6th sense Dec 21 23:36:11 I really liked the village Dec 21 23:36:30 that one was freaking nice Dec 21 23:36:43 but re: total recall, yes. it was decent. It fell far short of what I was hoping it would be though. Dec 21 23:37:04 lulz, he got the golden raspberry award for worst director and worst picture on his last 3 movies Dec 21 23:37:46 http://en.wikipedia.org/wiki/M._Night_Shyamalan#Filmography Dec 21 23:39:10 lol VLC showing a christmashat cool Dec 21 23:57:28 mh... is there a case where extending Application and using it like a singleton could cause trouble? Dec 21 23:57:32 e.g. https://gist.github.com/4356608 Dec 22 00:04:00 noganex for some reason, I've seen NPEs rarely when calling the equivalent of MyApplication.getInstance() Dec 22 00:04:07 not sure why though Dec 22 00:06:02 matt9: that's why i use synchronized(this) when assigning the instance. if i understand the docs and code correctly then there should be always an instance of the implementing application before everything else... Dec 22 00:07:27 how does the synchronized(this) in your code prevent race conditions? Dec 22 00:07:33 seems like a good idea but im not followign Dec 22 00:12:57 matt9: It means 2 threads calling functions in the same instance won't collide Dec 22 00:13:04 matt9: the mutex is 'this', the instance Dec 22 00:14:12 was that previously a risk? My impression was that the application's onCreate was completed before anything else in the app happens Dec 22 00:14:45 I've never seen the need Dec 22 00:15:03 onCreate definitely should happen before other things. Dec 22 00:15:21 Other than, perhaps, class-global variable initialization which happens in the constructor Dec 22 00:15:52 but if you try to make anything that counts on a context or other state being set up in your constructor/initialization level stuff it'll blow up pretty quick Dec 22 00:16:30 dragorn interesting, good to know Dec 22 00:17:19 dragorn: so the way i'm using this is wrong? is there a better way to get a an application context? Dec 22 00:18:30 noganex: I'm not sure how you're using it. I usually have a Context variable in the class and assign it the context in oncreate Dec 22 00:18:36 it hasn't blown up on me yet Dec 22 00:19:06 there's also contextwrapper but I've never had a situation I needed that in Dec 22 00:24:37 that's what i'd do normally, but this time i can't (because of a strange api) Dec 22 00:25:10 eh? Dec 22 00:25:20 or i don't want to, beacause creating a wrapper would be a waste. Dec 22 00:25:48 i just wondered if there is an alternative to the singleton... Dec 22 00:28:54 or if this singleton thing might blow up in my face Dec 22 00:53:57 If I'm using a bitmap in a drawable tiled and also just as a plain bitmap, do I need to mutate? Dec 22 00:57:24 I'm thinking no since my bitmap is immutable and state is shared among drawables, but I'm not sure Dec 22 01:01:53 Hey guys, can anyone help me solve this? http://imgur.com/fwkvS Dec 22 01:03:04 What's the problem with it Dec 22 01:03:36 the bar Dec 22 01:03:53 shows upside down at the top but still responds to actions on the bottom Dec 22 01:04:40 Might want to go to #android. This is for developers and questions about the api Dec 22 01:05:21 hrm, that's a screenshot of an AVD Dec 22 01:05:27 not sure #android is a place to ask about it Dec 22 01:05:48 actually I'm pretty sure thats not the correct place to ask about this Dec 22 01:06:37 Okay I don't know. It's probably some setting somewhere in the OS. Dec 22 01:33:29 is there a way to use an AIDL and have a native code implement it? Dec 22 01:34:53 I would like to know how do I read the data from a table from a database in android Dec 22 01:35:24 Can someone please help me? Dec 22 01:35:33 I am reading the data like this: Cursor c = db.rawQuery("select facts from facts where sl_number=" + rowNumber, null); Dec 22 01:35:44 ut how do I get the data, its string btw! Dec 22 02:04:42 Hey guys, I have this setBackgroundColor method that requires an integer.... Where can I see which integer corresponds with which color?? Dec 22 02:06:26 where are system settings stored? Dec 22 02:07:30 like Settings.System Dec 22 02:09:10 android.graphics.color Dec 22 02:09:23 uh...it's RRGGBB Dec 22 02:09:30 or likely AARRGGBB or something Dec 22 02:09:39 huh? Dec 22 02:20:46 what the fucking hell man. i'm dealing with the most bizarre issue right now Dec 22 02:23:17 does it make monkeys fly out your nose? Dec 22 02:29:01 * capella laughs so hard milk comes out his nose Dec 22 02:29:33 API-17's isDestroyed() is just cool :) Dec 22 02:29:54 thanks developers Dec 22 02:37:06 genious. Dec 22 02:37:58 napster: easteregg? Dec 22 02:38:18 * rynkan must start eclipse just to check it out Dec 22 02:38:26 :) Dec 22 02:38:45 http://hahgay.com Dec 22 02:38:52 genius site Dec 22 02:39:42 That gay is in the Hangover movie! LOL! Dec 22 02:40:42 You guys know how on a canvas, if you're doing ... "mCanvas.drawBitmap(logo, matrix.getValues(m), 0, null);", it wants to know a "Matrix" .... well, I'm basically trying to get this Bitmap I'm loading onto the canvas to paint over to uh... scale... fit in the screen basically.. but no clue how to take my 'float, float' and turn it into a matrix. Any ideas? Dec 22 02:41:21 so, where matrix.getValues(m) is.... that's a "float, float"... I need a "Matrix" apparently... is what the error says. Dec 22 02:42:44 first take the red pill Dec 22 02:42:50 ok i'm out to tired Dec 22 02:43:30 lmao. Dec 22 02:43:51 floating through the matrix.... ha. have a good one **** ENDING LOGGING AT Sat Dec 22 02:59:58 2012