**** BEGIN LOGGING AT Mon Feb 04 02:59:59 2013 Feb 04 03:00:03 kevinb: calling a Dialogs onBackPressed from within a different method within the same Dialog. Feb 04 03:01:28 that could make sense to do. in some cases it might make more sense to implement a separate method and call that from both onBackPressed and your other method, especially if later on your onBackPressed needs logic that wouldn't be needed if the back button wasn't actually pressed. Feb 04 03:06:24 would anyone with a physical device with pre 4.0 android installed on it care to test my app for me? Feb 04 03:09:02 maybe Feb 04 03:09:03 what's teh app Feb 04 03:10:38 My flashlight notification app, uses camera led for notifications, just need to know if it lights up on ur phone lol Feb 04 03:10:52 i suppose i could Feb 04 03:11:52 you don't HAVE to, but if want to http://dl.dropbox.com/u/44116412/FLNotifier.apk Feb 04 03:12:03 ugh how do i get that to my phone :P Feb 04 03:12:25 idk lol Feb 04 03:12:27 reda contacts? Feb 04 03:12:34 internet? Feb 04 03:12:52 heh Feb 04 03:12:59 yea i need to remove read contacts, was gonna do per-contact customization but never finished it, internet is for ads Feb 04 03:13:02 jug6ernaut: wtf is dat Feb 04 03:13:08 adb install FL Feb 04 03:13:11 oops Feb 04 03:13:39 * jug6ernaut is stealing all ur contact info & uploading it muhahaha Feb 04 03:13:53 yeah it works Feb 04 03:14:02 dont make me... Feb 04 03:14:10 :o Feb 04 03:14:41 ooooo how did you detect that the accessibility service was disabled? Feb 04 03:15:30 canadiancow tap on the app icon(in app) like 10 times till u get to debug menu then press the first "start call test" and see if it starts flashing then press the second "start call test"(didn't rename button hehe) and see if it stops & nothing crashes Feb 04 03:16:31 ok you need to fix that Feb 04 03:16:37 canadiancow just have a static object that is set to null, when service gets created object gets a value, check if that object isNull or not Feb 04 03:16:37 i tapped like 10 times and nothing happened Feb 04 03:16:41 so i started tapping faster Feb 04 03:16:51 yea its based on time & taps lol Feb 04 03:16:54 and the dialog came and went because tapping outside a dialog dismisses it Feb 04 03:17:13 oh bla Feb 04 03:17:31 i had it as notCancelable b4 need to add a button to dismiss then Feb 04 03:17:36 (i just changed that lol) Feb 04 03:17:43 but yeah the two call tests work Feb 04 03:18:30 awesome Feb 04 03:18:38 4.2 managed to kill my app so I'm fixing & adding features lol Feb 04 03:18:50 oh wait Feb 04 03:18:52 you said pre 4.0 Feb 04 03:18:59 lol Feb 04 03:19:12 i did Feb 04 03:19:14 ignore everything i've said/done Feb 04 03:19:22 im on 4.2 :P Feb 04 03:19:23 lol... Feb 04 03:19:27 xD Feb 04 03:19:56 good info ether way Feb 04 03:21:26 * jug6ernaut goes to abolish the contacts permission Feb 04 03:22:01 I'm trying to read call logs to see if there are any missed calls, and it keeps yelling i don't have the right permission but i do :S Feb 04 03:25:55 http://stackoverflow.com/questions/9913645/android-enable-usb-tethering-programmatically-there-is-an-app-that-did-it-fo Feb 04 03:26:37 I've implemented similar code in my program, but when usb tethering is switched on, the notification that lets you turn on usb storage doesn't go away (neither does the adb notification), and nothing happens Feb 04 03:26:54 the usb tethering option in the settings menu goes to "on", but it doesn't actually turn on Feb 04 03:27:02 user apps cannot do it Feb 04 03:27:14 if you find a way to do it, it's a bug Feb 04 03:27:51 canadiancow: do you know why it looks like it is enabled but it doesn't do anything? Feb 04 03:29:26 and what allows you to do it in a system app? Feb 04 03:30:00 someone mentions the WRITE_SECURE_SETTINGS permission, but I don't see how that relates to the method that's invoked Feb 04 03:38:21 it is not supported Feb 04 03:38:22 period Feb 04 03:38:22 the end Feb 04 03:39:11 I understand that, I was just trying to learn how/why. thanks for the info though Feb 04 03:54:35 has anyone ever read samples off the mic? Feb 04 03:54:51 successfully Feb 04 04:06:03 Does Java or the android APIs have the equivalent of C#'s Lookup class (i.e. kind of like a HashMap with multiple values per key)? Or should I just create a HashMap>? Feb 04 04:07:39 HashMap> Feb 04 04:08:16 same diff i guess Feb 04 04:10:57 hm, I have a List that I want to display in a listview, but ArrayAdapter won't let me use it, any ideas what I need to do? Feb 04 04:14:55 eg. List displayList = new ArrayList(); ArrayAdapter adapter = new ArrayAdapter(this, R.layout.activity_main, displayList); Feb 04 04:14:59 cincinnatus: no, you need to use Map> Feb 04 04:15:38 b0nn: what do you mean "won't let you use it"? Feb 04 04:16:22 eclipse tells me the constructor is undefined Feb 04 04:17:15 b0nn: and you have a List? Feb 04 04:17:19 when I swap out the List displayList = new ArrayList(); with String [] displayList = new String [] {"one", "two"} Feb 04 04:17:26 it works Feb 04 04:17:43 no, I have a List Feb 04 04:18:04 b0nn: You need a List, just like you have a String[] Feb 04 04:18:14 where T is a type that I have overridden the toString() method Feb 04 04:18:35 Then you don't want an ArrayAdapter, you want an ArrayAdapter Feb 04 04:18:36 oh, I thought that the adapter took any collection Feb 04 04:18:52 where T is whatever type you have in the list Feb 04 04:19:01 and used the .toString() method of the objects Feb 04 04:19:06 Nope Feb 04 04:19:19 ok, I've misread a tutorial I think Feb 04 04:19:57 Probably :) Feb 04 04:20:05 http://www.vogella.com/articles/AndroidListView/article.html#listview_adaptermodel Feb 04 04:20:25 The ArrayAdapter class can handle any Java object as input. It maps the data of this input to a TextView in the layout. You can define one in the constructor otherwise the android.R.id.text1 ID will be used. Feb 04 04:20:49 b0nn: yes, but you want to use an ArrayAdapter not ArrayAdapter Feb 04 04:20:57 ohhhh Feb 04 04:21:31 THAT WAS IT \o/ Feb 04 04:21:44 what a silly mistake for me to make Feb 04 04:23:09 one other question, can I make the adapter put values into more than one column? Feb 04 04:23:38 eg col1 = id col2 = name, and when I toString the object I return 1,Boo Feb 04 05:34:20 so in AVR hardware something I often do is to make a hardware interrupt that just makes the thing count a variable every milisecond (or more if I need less precision) then I can use this to record the relative time that things happen at, is there something similar that can be used in android? Feb 04 05:34:30 preferably something lighter weight than joda time? Feb 04 05:36:20 there is System.currentTimeMillis() but I worry about how a cell tower could set this to some value spontaneously if the thing comes back into cell range Feb 04 05:37:10 i guess I could use uptimeMillis() Feb 04 05:56:06 Hello, I'm working on my settings/preferences page for an app I'm working on and I've got a question. For one of my settings, I want the user to be able to lookup/search the preference value (user id from an external site based on their (partial) email). So far I've played with a few different things; PreferenceDialog, Fragment, and now I'm looking at a SearchDialog. Any suggestions - right... Feb 04 05:56:08 ...now the rest of my preferences are handled by a PreferenceFragment? Is it possible to combine a PreferenceDialog with a SearchDialog? Feb 04 06:06:54 anyone have experiences with cosm (formerly pachube) ? Feb 04 06:09:38 hey g00s, did you come up with it from g00ns? Feb 04 06:09:49 no... Feb 04 06:10:08 js wondering :) Feb 04 06:11:42 ftc: yeah, yoda is a bit big and painful to drag in just for that. hope you figured something out Feb 04 06:13:48 alright, i'm heading to bed - i'll try back later Feb 04 06:14:33 Trinity: about what we were talking about last night, this is kinda cool http://www.nimbits.com/#navs Feb 04 06:14:53 so they have 3 hosting options - they do it, amazon can do it, or you can do it, and they support all 3 Feb 04 06:15:12 how can i give focus to a view ? Feb 04 06:15:28 how can i make a view focused? Feb 04 06:16:02 Ahh, finally got this app working. 3 hours till I have to get up for work! Feb 04 06:16:06 Better go to bed Feb 04 06:16:06 View.setFocused() ? Feb 04 06:16:51 hey guys.. if I have to do multiple checks to see if a certain file exists on a server (using HttpURLconnection, getResponseCode) what is the best approach, to use an intent service? Feb 04 06:17:00 g00s, in fact, i am talking about EditText Feb 04 06:17:09 g00s: very interesting...... will read up on it. is it like a proxy for previous cloud systems or do individual domains have to sign up for it? Feb 04 06:17:35 no, not a proxy - this is a 'internet of things' cloud storage thing Feb 04 06:17:58 so , you can grab the sources and stand up your own - or pay them for other types of installs Feb 04 06:18:27 kinda like whar i referred to last night - i would like a lot of these cloud backed apps to let you choose your deployment Feb 04 06:20:38 right, so do those cloud backed apps have to integrate this? Feb 04 06:20:54 no - this is just for one product. its not a universal thing Feb 04 06:21:21 just one example of a team that decided to give you the flexibility, just for IoT cloud storage Feb 04 06:21:28 ahh kk got it then :) Feb 04 06:22:53 hi all, I've written this code: https://gist.github.com/31dd740618d118e7d110 to get a cookie from a site which is correctly sending a Set-Cookie in the header, and then login via POST to the same page Feb 04 06:23:24 the problem is, after line 26 (which returns HTTP 200 OK) the cookieStore doesn't have anything in it Feb 04 06:23:33 despite the response indicating that Set-Cookie was definitely in the header Feb 04 06:23:49 I think I've been looking at it too long :S Feb 04 06:23:55 0 calorie cookie :) Feb 04 06:25:13 does anyone know why if i implement the view.onclicklistener it won't work... it will only work when i use the method direclt with the button Feb 04 06:25:37 The cookie is sent as ROTA_SESSION=BfgojOdo0Rs9xc6rVELSwkDFGXM Feb 04 06:25:42 it's got a bit of information there :S Feb 04 06:26:37 so does anyoe know? Feb 04 06:27:32 agy2154: You're going to have to give more context than that. Why do you mean by "it will only work when I use the method direclt with the button"? Feb 04 06:27:44 Would it be ok if I post a pastbin Feb 04 06:27:51 The part thats commented out isn't working Feb 04 06:27:56 w32stuxnet Feb 04 06:27:58 I think Feb 04 06:28:02 you should set cookiestore Feb 04 06:28:10 before making any requests Feb 04 06:28:21 agy2154: yes, pastebin some code and post a link Feb 04 06:28:35 studybot_ set it to what, sorry? Feb 04 06:28:41 it's instantiated Feb 04 06:28:44 http://pastebin.com/vnsnVwJh Feb 04 06:28:46 Thanks Feb 04 06:28:49 as a BasicCookieStore() Feb 04 06:29:24 as I understand Feb 04 06:29:34 you're implementing your own cookiestore Feb 04 06:29:52 if you don't set Feb 04 06:30:08 the default cookie store is BasicCookieStore, which stores cookies in memory Feb 04 06:30:25 the reason your code doesn't work here Feb 04 06:30:36 i think is because before the request Feb 04 06:30:44 cookie is stored in memory Feb 04 06:30:57 agy2154: when you uncomment that code, are you calling setOnClickListener(this), instead of setOnClickListener(new View... Feb 04 06:31:09 the request succeeded and cookie was written to the memory Feb 04 06:31:16 but you set your own cookie store Feb 04 06:31:21 studybot_: isn't that exactly what I want? Feb 04 06:31:22 Nope Feb 04 06:31:40 hmm Feb 04 06:31:47 am I miss something? Feb 04 06:31:49 ohh Feb 04 06:31:49 I have two cookie stores. The first is for the HTTPGet and post that are in this file. The second, "persistent" cookie store allows me to manually put those cookies into SharedPreferences Feb 04 06:32:07 and have it persist over the lifetime of the app. It's a little messy, but the point is that this code worked yesterday and doesn't work today Feb 04 06:32:17 and I have confirmed that the server is still sending the same information Feb 04 06:32:37 so essentially, the code up to line 33 is vanilla for this kind of thing Feb 04 06:32:45 I'm just following what is on stackoverflow and elsewhere Feb 04 06:32:46 mdwright: whats the diffrence between the two. What would the "this" version be wating for? Feb 04 06:33:05 I just don't understand why it no longer will put that information into the BasicCookieStore called this.cookieStore Feb 04 06:33:25 agy2154: you have to register what the button should call when it's click (hence, setOnClickListener) Feb 04 06:33:57 agy2154: if you want it to call the method defined on the Activity (the one you have commented out), you have to register it, hence setOnClickListener(this) Feb 04 06:34:13 ohh Feb 04 06:34:27 and in the set on click listener i would have the commented out code? Feb 04 06:35:39 oh Feb 04 06:35:50 agy2154: you want to do something like this: http://pastebin.com/8LZkqWph Feb 04 06:35:56 don't know that it did worked Feb 04 06:36:09 agy2154: note: I haven't actually tested it, but it should be close enough Feb 04 06:36:21 I have a fragment that looks up to see if there is a certain file on a server. Among things to use what should I use to look up to see if that file exists? IntentService, Service, etc? Note: AsyncTask can not be used because this task must be allowed to execute more than once Feb 04 06:36:45 mdwright: Ohh I see I didn't set up the on click listener to be active when the class is started up Feb 04 06:36:58 w32stuxnet wondering why don't you use cookiemanager Feb 04 06:37:02 i mean what wouuld be the best practice? Feb 04 06:38:21 wtf Feb 04 06:38:28 this server is giving me cookies which have already expired Feb 04 06:38:32 LOL Feb 04 06:38:39 good thing that's not my fault. :S Feb 04 06:38:43 haha Feb 04 06:38:43 mdwright: Works perfectly. Thanks. Feb 04 06:38:46 g00s: I think this uptimeMillis() would work, I just need to figure out how to handle the overflow Feb 04 06:40:41 actually, its kinda looking like it would take 3*10^8th years to overflow that Feb 04 06:40:43 KillmeSoftly: Only use Services if you require the application to be able to perform the check in the background. Otherwise you probably want something like the example in the Looper documentation: http://developer.android.com/reference/android/os/Looper.html Feb 04 06:40:46 perhaps that isn't a problem... Feb 04 06:42:57 studybot_ actually, I figured out the real problem. The cookies have 10 hours of life in them, and I had my phone set to tomorrow's date to test out a feature. Feb 04 06:43:06 so they were expired as far as my phone was concerned. Feb 04 06:43:21 that having been said, the developer should probably set his cookies to be more than 10 hours long Feb 04 06:43:28 why on earth do they note that it could be reset? am I just missing something? http://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis() Feb 04 06:45:59 ftc: the comment about wrapping around is dumb, but the point is it gets reset (thus isn't monotonic in any sense of the word) Feb 04 06:50:25 mdwright: do you think it ever gets reset without the phone being rebooted? Feb 04 06:50:53 could it get reset while an app is running? Feb 04 06:53:27 ugh I should go to bed, night all. Thanks for the insight! Feb 04 06:53:33 ftc: No, it can't. It's also guaranteed to be monotonic between reboots Feb 04 06:53:50 mdwright: thanks Feb 04 06:54:00 sure thing Feb 04 07:06:51 hm, how do I troubleshoot a listView and arrayadapter? Feb 04 07:07:31 I have some data, three strings, they are supposed to be placed into the activity_main view Feb 04 07:07:50 The strings exist, I have them printed to console Feb 04 07:08:19 I have two views, but only one listView Feb 04 07:09:54 xml: http://pastebin.com/DB8CRVvt Feb 04 07:09:58 java: http://pastebin.com/AVApgH5N Feb 04 07:10:26 I cannot see why the listView isn't being populated by the arrayAdapter Feb 04 07:11:12 actually, the listView.setAdapter(adapter); is commented out... Feb 04 07:11:33 winner \o/ Feb 04 07:11:42 * b0nn hangs head in shame Feb 04 07:21:34 hi Feb 04 07:37:27 how often is the oncreate function called? Feb 04 07:38:02 I mean, I have a multi screen application, and I want to call a function everytime the 'home' screen is loaded Feb 04 07:38:40 hi b0nn Feb 04 07:38:50 b0nn: it depends Feb 04 07:38:56 b0nn: e.g. rotating the screen Feb 04 07:39:09 or after the activity was distroyed for memory reasons Feb 04 07:39:34 there are certain methods (you can override them) for doing things after every event Feb 04 07:40:53 ok, I have got round things (I think), I've pushed the population of the listView into its own method, and when I call to return to the home function I call that method Feb 04 07:41:03 feels a little clunky Feb 04 07:41:18 fucking sweet! you can debug with adb wirelessly! Feb 04 07:41:38 if you root your device, sure you can ;) Feb 04 07:42:53 without root Feb 04 07:43:11 is there any example code on how you can populate the image gallery from a content provider? Feb 04 07:43:17 a single image would do the job Feb 04 07:43:17 http://stackoverflow.com/questions/4893953/android-run-install-debug-applications-over-wifi Feb 04 07:43:24 look at the second response Feb 04 07:43:37 hm, that failed, non static method calling Feb 04 07:44:03 you can connect to usb, restart using TCP, and then unplug Feb 04 07:44:38 RustyShackleford: so what's the benefit? Feb 04 07:45:06 it's cool, mostly Feb 04 07:45:11 maybe i am not smart enough to get it Feb 04 07:48:10 monsti: debugging anything that requires a USB port, the freedom of not needing your phone to be plugged in to debug it. Feb 04 07:50:23 the cable that they give you is so short... Feb 04 07:50:39 I ordered some nice 8 footers Feb 04 07:51:59 i've had problems with long cables :| Feb 04 07:52:29 long usb cable + portable HD = recipe for disaster :) Feb 04 08:39:16 hmm - I have a LinearLayout which I want to invalidate from within my private AsynctAsk class Feb 04 08:39:38 I have a handler, and within that I call "thisPageLayout.postInvalidate()" after adding a buton to it Feb 04 08:39:49 but the button only shows up after I rotate the phone Feb 04 08:40:04 is it possible to write chrome extension for Android? Feb 04 08:40:28 Hi All Feb 04 08:43:21 First of all, i'm unity3d hobbyist and was reading https://github.com/anchan828/unity-googlemapview-for-android/blob/master/README.textile in this example, the developer split Android windows into two areas where each activity renders in it. I would like to have the google map activity to be displayed over the unity activity (for example, a small square google map in the center of a big square of the unity activity) is this possibl Feb 04 08:51:58 Not sure, but you should look into fragments Feb 04 09:05:07 Moo. Stupid question; If I want a screen with 3 buttons at bottom (like View1, View2, View3), do I need to create a new activity each time one of these buttons are clicked? Feb 04 09:05:21 Even though all buttons should be visible on all screens, all time, etc Feb 04 09:05:41 no Feb 04 09:06:00 Silox|: thank you, in fact ActivityGroup looks to be deprecated Feb 04 09:06:25 really it depends on what you are doing above the buttons, but in the most complicated case you could use the buttons to swap fragments in the activity Feb 04 09:07:00 anto__: in fact i have a more complete application written using unity3d and want to add the map in it, and the only way i have is to draw the map on top of it Feb 04 09:08:02 w32: i believe there is a method you can call on a view that'll run on the ui thread Feb 04 09:10:40 lasserix if I want dynamic data on the fragments? I.e., a connection to a server that tells the app what to show Feb 04 09:10:56 ohmy, what? o: Feb 04 09:12:01 anto__: thaught you were talking to me before Feb 04 09:14:45 uhh i am not sure i follow, what are these buttons doing? can you be more specific Feb 04 09:17:37 well, one button is like "Home", one is "My profile", etc. And these should show data read from a connection. Home should show latest news, etc. And the buttons are always visible Feb 04 09:19:04 if home news is like my profile layout then you can reuse the same layout Feb 04 09:19:27 i am guessing it is not but basically, i think you'd want a fragment corresponding to each button to be swapped in on click Feb 04 09:19:50 the layout is like a unit of UI so you can think of it is a module of an activity Feb 04 09:19:56 *the fragment is like i mean Feb 04 09:20:25 if you are uncomfortable with fragments, then you might do three activities and get everything working Feb 04 09:20:51 then later you can encapsulate those activities within the fragments and put it all in one activity with one linear layout button row at the bottom Feb 04 09:21:50 i mean if you really wanted to you could just have three different layout groups inside the activitie's layout above the button row, and change the visibility Feb 04 09:22:05 but that'd be very sad coding practice ;0 Feb 04 09:22:57 oh and that button row ui pattern i believe for newer android design patterns should be in the action bar as tab navigation or something Feb 04 09:25:15 here's a link: http://developer.android.com/design/building-blocks/tabs.html Feb 04 09:28:31 Yeah, I think fragment would be better. Kinda new to this whole language, so I'll have to read up on alot. But thank you for your ideas and comments, lasserix :) I'll have them in mind Feb 04 09:29:08 the key is for now, just work on one of your buttons (getting the news feed to work for when the user clicks home) and lay it out Feb 04 09:29:24 once you get that working you can encapsulate it and connect it to the rest of your program using whatever design pattern you like Feb 04 09:34:15 hi Feb 04 09:36:44 I've my back to the wall. Can someone help me please. I have a ListView with simpleAdapter and I get my data for the adapter from json. But when I update every 5 min, then the ListView does not update. I use adapter.notifyDataSetChanged(); but it does not work: here ist my code: http://pastebin.com/CKNGaFxL Feb 04 09:41:57 dot8: reread the first sentence here http://developer.android.com/reference/android/widget/SimpleAdapter.html Feb 04 09:47:20 appel1: ok, oh. it is static. hmmm. what should I use? Feb 04 09:51:12 dot8: since you reset your list you could just create a new SimpleAdapter I guess Feb 04 09:56:54 appel1: I put the Adapter onPostExecute? Feb 04 10:22:10 Good morning guys. i want to create a tree map, how could i realize this? any ideas how you would do it? Feb 04 10:23:26 Styler2go: java.util.TreeMap seems to be a tree map. Or do you physically want to create a map of different trees? :D Feb 04 10:23:33 Java provides it already :9 Feb 04 10:23:59 i mean a graphical treemap like that: http://www.skill3d.at/esl_gfx/bow/eps/seas6/tree_fifa_rele.jpg Feb 04 10:25:25 Hmm, well, it's a normal binary tree where you start filling out all the leaves Feb 04 10:25:43 but how could i realize such a thing in android? Feb 04 10:26:19 http://treemap.sourceforge.net/ Feb 04 10:26:40 thats the wrong type of treemap i think? Feb 04 10:27:18 Isnt a treemap a kind of redblack tree? Feb 04 10:27:30 there should be only one kind of treemap Feb 04 10:27:30 maybe i am using the wrong name Feb 04 10:27:35 Binary trees are pretty simple to create yourself, you can have a Node class which have two child nodes, left and right Feb 04 10:27:35 is this a treemap? http://www.skill3d.at/esl_gfx/bow/eps/seas6/tree_fifa_rele.jpg Feb 04 10:27:59 no, not a treemap. I guess it's just a tree? :D not sure though Feb 04 10:28:15 It's like a Playoff tree :D Feb 04 10:28:17 a treemap has rectangular tiles Feb 04 10:28:35 so.. i mean a normal tree Feb 04 10:28:43 invented by dr schneiderman Feb 04 10:28:55 Yeah, it's a binary tree. Do you want some auto-balancing or do you pair the players manually? Feb 04 10:29:30 maybe there is a google api for that? Feb 04 10:29:51 https://developers.google.com/chart/interactive/docs/gallery/orgchart?hl=de#Example actually yes... they have.. Feb 04 10:30:38 i think i will use this in a webview and will use the shouldoverrideurl to interact with my app... Feb 04 10:31:26 webview sucks Feb 04 10:31:53 easiest way, i think it would be to much work for nativ just for the use i need Feb 04 10:32:23 Try it out, and see if it fits your needs. Feb 04 10:34:16 yeah.. maybe the best way Feb 04 11:03:08 http://pastebin.com/iqPrtxus any idea why the Database is corrupted? If i open it with notepad++ im seeing lots of "valid" Strings.. but when i want to open it with SQLit after decryption its corrupted.. Any idea? Decrypting works with Python (MODE ECB AES192) Feb 04 11:07:03 misterli: H2 has built in crypto if it suits your needs Feb 04 11:08:20 haha guys i just thought about it... is there a way that the screen rotates everytime exactly to stay in a line? Feb 04 11:08:57 to stay exactly in portrait mode i mean... Feb 04 11:09:07 g00s. Not really. It's just annoying why it destroy the Database. It's simple ECB and the Key is valid... -_- Feb 04 11:09:17 Styler2go: your question makes no sense Feb 04 11:09:23 you mean a listView ? Feb 04 11:09:27 item ? Feb 04 11:09:30 scrollView Feb 04 11:09:57 neways odds are *****.scrollTo() is what you want to use Feb 04 11:10:19 just found the working C# Example which is working too (same file, same key). But it dont in Java... http://www.philcartmell.com/me/decrypt-aes-file-using-only-the-key/ Feb 04 11:11:24 i mean the complete phone :D Feb 04 11:12:00 Styler2go then I have no idea what you mean .... orienation lock ? Feb 04 11:12:17 no Feb 04 11:12:28 that the orientation of the screen is everytime on the same level Feb 04 11:12:41 what does level mean ? Feb 04 11:12:47 :D wait Feb 04 11:12:50 < g00s > long usb cable + portable HD = recipe for disaster :) <--- s/long usb cable +/usb/ Feb 04 11:12:59 g00s: that for you ;) Feb 04 11:13:05 :) Feb 04 11:13:46 if your hold your phone straight in portrait and rotate like 5° to the left, the complete screen should rotate 5° to the right for example Feb 04 11:14:29 Styler2go: how could it, the frame to rotate into would not be square Feb 04 11:14:33 ? Feb 04 11:14:42 g00s. Any idea? Feb 04 11:14:42 yeah it woudl have black edges Feb 04 11:14:52 misterli: no Feb 04 11:15:04 Styler2go: you can do so with completely custom drawing Feb 04 11:15:08 but it would be funny to see that the screen stay is position, no matter how you rotate your phone Feb 04 11:15:09 doesn't make sense for the UI Feb 04 11:15:11 Styler2go: well yeah if you play with orientation sensor data Feb 04 11:15:35 makes sense for maybe a gimmiky element Feb 04 11:15:35 i mean, is there any way to do this, i dont want to do that it just would be interesting Feb 04 11:15:36 of course, you can also hijack the framework's surface, but that requires modding the source I think Feb 04 11:16:23 also, often the orientation switch, outside of the animation, is done by a specialized part in the graphic chip that can only do multiplies of 90° Feb 04 11:19:14 i just wondered if there is an app or tool to do that Feb 04 11:19:18 just for fun you know Feb 04 11:19:39 not that easy to accomplish Feb 04 11:19:48 i think expeida app does that with somethings Feb 04 11:20:10 has little label at the start that does Feb 04 11:20:17 its really annoying. If i compare the Python Decrypted Database and the Java Decrypted Database in HexEditor/Notepad++ they look VERY similar.. But SQLLite only accept the Python Decrypted... Even all Strings are written proper in the java decrypted file Feb 04 11:20:18 iirc Feb 04 11:21:22 Anyone know what the best way to animate a view without actually changing the view, so basically animating a snapshot of the view. I want a view to scale and fade when I clear the form but then leave a resetted version of the view after it's completed Feb 04 11:21:59 anim settings .fillAfter ? Feb 04 11:25:25 StingRay_: will have a look Feb 04 11:27:04 styler you should be able to get current window, then throw it in a canvas and apply a rotation inverted to the orientation and then display that Feb 04 11:37:17 ok.. figured out that the code worked perfectly but the Source-DB is corrupted. Python uses the SQLite3 Repair Script ($ echo .dump | sqlite3 my.db >blabla.sql). But it seems to that i need RuntimeExec because of the Pipe.. OR is there another solution for SQLite repair? Feb 04 11:38:49 where i can found information about html5 app developing ?? (not java ) Feb 04 11:40:48 weox: google ? Feb 04 11:41:12 StingRay_ : i google it , but cannot found anything usefull !! Feb 04 11:41:36 html5 dev sites ? Feb 04 11:42:37 android fully support html5 app developing ?? like firefoxOS ?? seem's firefoxOS going to next generation of mobileOS Feb 04 11:43:14 weox: I think your a bit wrong there Feb 04 11:43:23 but all we have is opinions ;) Feb 04 11:43:28 to the degree that html5 is the next generation of anything :) Feb 04 11:44:04 i'm not sure about how far you can go on using html5 for android development... i know you can use a webview and actually manage your layout using html5 and css Feb 04 11:44:15 with the cost of performance penalties Feb 04 11:47:03 thanks . seem's android dost support html5 natively ... just from webview , anyway . google is smartest company , they have plan for this (i think) Feb 04 11:47:27 weox: dont hold your breath Feb 04 11:47:53 html adaptation to mobile platforms seems like a way to get web developers making what some call apps Feb 04 11:48:09 google probably dont need that with all the development they have that is native Feb 04 11:48:25 other platforms like ffos and ubuntu maybe do need that Feb 04 11:48:44 pecen kesten Feb 04 11:50:58 guys, it's the second day I'm fighting with my app. I upgraded the ADB plugin and it doens't compile anymore. R.java is not being created. I spent yestarday to try everything from clean->rebuild, to reinstall eclipse and plugin from scratch but nothing. I'm sure the problem is not related to any res file because by coping the entire directory in another project doesn't create any problems, R.java is generated correclty. Aware of that I recreate Feb 04 11:50:58 d I new project from scratch copied all res and src files. Adjusted imports and finally I got it to compile and install on devices. Today I renamed the project and it's not compiling again for the same reason. R.java is not being generated. Feb 04 11:52:31 I solved also all lint errors but still not compile. Feb 04 11:52:37 xml/syntax/resource pointer error ? Feb 04 11:55:35 StingRay: Are you talking to me? Feb 04 11:55:47 ya Feb 04 11:56:06 I've had it in eclipse where it didn't build R Feb 04 11:56:22 since R was not built it couldnt do a lint check of resources Feb 04 11:56:33 and it was syntax error Feb 04 11:56:52 the "problems tabs" shows only import of R class unresolved Feb 04 11:57:01 I can do it now by using a relative layout and having the 1st item say it's below the 2nd item Feb 04 11:57:43 is R. there at all ? Feb 04 11:57:54 in gen ? Feb 04 11:57:58 no is not generated Feb 04 11:58:13 I tried to deleted gen folder Feb 04 11:58:30 but when I try to recompile only the BuilConfig.java file is generated Feb 04 11:58:33 unbelievable. There are really no code snippets or tips/tricks to repair a database with a unclosed cursor.. -_- Feb 04 12:08:23 salentinux what caused it ? Feb 04 12:08:34 as in there was a point in time it built Feb 04 12:08:47 i take it you did some xml stuff ? Feb 04 12:08:52 then it didnt build ? Feb 04 12:09:16 damn xml :) Feb 04 12:09:23 When I've upgraded the ADT plugin Feb 04 12:09:55 ok, but are YOU SURE <--- that b4 u/g you weren't doing any xml layout/drawables etc ? Feb 04 12:12:25 yes but as I said the entire res folder works well because if I copy it to a new project and try to reference any files. The new project compiles correctly and the R class is generated with all references without problems Feb 04 12:12:34 so the problem is not in res folder Feb 04 12:13:00 and not with adt version then ? Feb 04 12:13:06 by the same logic ? Feb 04 12:17:09 this is what eclipse says when I try to compile "Errors occurred during the build. Feb 04 12:17:10 Errors running builder 'Android Pre Compiler' on project 'MyProject'. Feb 04 12:17:10 java.lang.NullPointerException Feb 04 12:17:49 i found this bug report that could be related http://code.google.com/p/android/issues/detail?id=42051 Feb 04 12:19:08 ah java xml parsey thingy Feb 04 12:19:15 get it now Feb 04 12:19:17 :) Feb 04 12:19:22 you on linux ? Feb 04 12:19:51 yes ubuntu Feb 04 12:19:59 that solution probably wont work Feb 04 12:20:02 BUT Feb 04 12:20:05 hang on Feb 04 12:21:17 tis a xml scheme enforcement I think Feb 04 12:21:26 that prevents the build Feb 04 12:21:38 booting into mint Feb 04 12:22:34 somewhere in the settings either global or project related is an enforcement for xml syntax Feb 04 12:23:46 your using oracle rather than open right ? Feb 04 12:24:47 no Feb 04 12:25:10 I removed all xml validation in settings but it's not working Feb 04 12:25:27 ah, I had loads of probs with openJDK Feb 04 12:25:56 switch to oracle then killed the scheme syntax enforcement and that exact error went away Feb 04 12:30:57 anyone accustomed to NDK development here? Feb 04 12:31:19 what's up Feb 04 12:31:20 I'm having issues with my sensor event loop Feb 04 12:31:30 never done any sensor stuff in ndk Feb 04 12:31:30 :p Feb 04 12:31:55 as in, I have one thread that does all event handling, each iteration it picks the top event of (the most recent one) and processes it Feb 04 12:32:22 but this can be either a gyro event, accelerometer event or magnetometer event Feb 04 12:33:03 I'm trying to combine gyro and accelerometer data in a Kalman filter, but my loop never guarantees that I can compare 2 "events" Feb 04 12:33:14 one might be stale and one might be fresh Feb 04 12:33:26 and what would the delta time be? Feb 04 12:34:31 sorry, I'm clueless about these Feb 04 12:36:02 Zharf: nm, I'll scour Google some more :) Feb 04 12:45:50 Hi to all, could someone help me please?Question about the tegra3_dfvs.c speedid Feb 04 12:50:21 If my cpu show CPU Speedo ID 3, Soc Speedo ID 2 which line i have to mod inside tegra3_dvfs.c ? Feb 04 12:50:27 for higher cpu clock? Feb 04 13:19:54 I am still at the same problem: is it possible, that I delete after each update the new data in Line 100 mylist.clear(); http://pastebin.com/CKNGaFxL Feb 04 13:21:47 dot8: whats your "same" problem ? Feb 04 13:22:23 I've my back to the wall. Can someone help me please. I have a ListView with simpleAdapter and I get my data for the adapter from json. But when I update every 5 min, then the ListView does not update. I use adapter.notifyDataSetChanged(); but it does not work: here ist my code: http://pastebin.com/CKNGaFxL Feb 04 13:40:35 dot8: you're still using a SimpleAdapter that afaik doesn't support notifyDataSetChanged. Feb 04 13:50:02 potential stupid question, but if you invalidate a LinearLayout does it automatically invalidate every child view? I"m doing it, but some of my dynamically created child buttons don't turn up until I rotate the screen Feb 04 13:51:24 probably Feb 04 13:51:46 so i must ask has anyone sucessfully gotten the mic to work, ie been able to read individuals samples from the mic? Feb 04 13:56:14 appel1: can you help me to change to a other Adapter? Feb 04 13:56:39 dot8: did you try the simple fix and just create a new adapter when you reload the list? Feb 04 13:57:15 hi @ all! i'm looking for some help regarding fragments... currently i have a fragment with a list in it. now when i select an item in that list, the fragment should be replaced by anonter fragment with another list. this should lead to some sort of search refinement. any ideas on how to do this in a clean way? Feb 04 13:58:34 appel1: I put line 29-33 to onPostExecute? Feb 04 13:59:09 dot8: why not just try it? it's not like you'll blow up the world if it doesn't work. Feb 04 13:59:52 * monsti is post executing himself Feb 04 14:00:37 appel1: ok. I test it Feb 04 14:02:08 appel1: a real test I just can do, when I drive my car. I need GPS to test ist. My Linux avd does not work with geo fix Feb 04 14:02:49 hey guys, I have this activity: https://gist.github.com/af50f446c9a275c64da9 Feb 04 14:02:53 dot8: you could just add some debug code that adds a few fake entries Feb 04 14:03:13 on line 120, calling postInvalidate() on the main linearlayout does not update the UI Feb 04 14:03:22 but rotating the screen 90 degrees does... Feb 04 14:04:49 sooo I'm a bit confused. Feb 04 14:05:59 w32stuxnet: why postInvalidate ? Feb 04 14:06:26 because I've tried invalidate() and postInvalidateWithDelay(ms)... it's essentially me at the end of my teather Feb 04 14:07:01 yeah, just tried the method at http://stackoverflow.com/questions/5991968/how-to-force-an-entire-layout-view-refresh and that doesn't work either Feb 04 14:07:08 is there any way for application to prevent/disable print screen? Feb 04 14:07:10 the only thing that seems to work for me is rotating the screen 90 degrees Feb 04 14:08:12 w32stuxnet: whats the result of thisPageLayout.getChildCount() after each ? Feb 04 14:08:24 it's there in the tree ? all the views you added ? Feb 04 14:08:32 they just aren't drawing ? Feb 04 14:09:29 w32stuxnet: the reference says you should use invalidate() instead of postInvalidate() unless you're not working on the UI thread Feb 04 14:09:47 that is working from asyc Feb 04 14:10:03 async class, yes Feb 04 14:10:17 but the onPostExecute works on the UI thread Feb 04 14:10:49 i think he's tried everything :) Feb 04 14:11:00 StingRay_ Edman, I'm going to check the childcount Feb 04 14:19:52 w32stuxnet: something else must be wrong since ViewGroup.addView calls both requestLayout and invalidate. Feb 04 14:43:33 fucking jsoup Feb 04 14:47:10 wtf is jsoup Feb 04 14:47:27 wtf is everyone swearing ? Feb 04 14:47:34 Hey all, I would like to populate a Spinner based on a JSON call (on Activity launch). What is the best way to retrieve the data, I presume blocking the main thread is not a good idea. Feb 04 14:47:52 StingRay_: it's monday, it's java, and it's irc Feb 04 14:48:05 oGMo: oh, so this is the norm ? Feb 04 14:48:09 :) Feb 04 14:48:15 it's monday is enough Feb 04 14:48:20 StingRay_: welcome to the internet ;) Feb 04 14:48:40 hey I've probably been on the internet longer than your life kiddo Feb 04 14:48:47 well, maybe, maybe not Feb 04 14:48:49 :) Feb 04 14:48:49 Would I be using an AsyncTask for this? Feb 04 14:48:56 mlangenberg: if you want yes Feb 04 14:49:08 mlangenberg: probably, that and a bit of http and you should be good Feb 04 14:49:53 i'm not overly familiar with the java end of things .. they may have simple http request handler that's already async (and if not why not!) Feb 04 14:50:17 oGMo: I think the latter is true, and good point ! Feb 04 14:51:26 mlangenberg, maybe Loader is better for you than AsyncTask Feb 04 14:51:47 Hello, I'm working on my settings/preferences page for an app I'm working on and I've got a question. For one of my settings, I want the user to be able to lookup/search the preference value (user id from an external site based on their (partial) email). So far I've played with a few different things; PreferenceDialog, Fragment, and now I'm looking at a SearchDialog. Any suggestions - right... Feb 04 14:51:49 ...now the rest of my preferences are handled by a PreferenceFragment? Is it possible to combine a PreferenceDialog with a SearchView/SearchDialog? Feb 04 14:53:27 nplus, implement own PreferenceDialog dialog with Search fetures Feb 04 14:54:01 Udmurt: is Loader available on Android 2.3.x ? Feb 04 14:54:14 mlangenberg, via support lib Feb 04 14:54:37 cool Feb 04 14:54:37 nplus https://github.com/mrn/numberpicker/blob/master/lib/src/com/michaelnovakjr/numberpicker/NumberPickerPreference.java Feb 04 14:55:18 Udmurt: Thanks Feb 04 14:59:33 Hi. Do you have any preferred way to communicate from Android to some external Server? What frameworks do you use on Android ? Thank you Feb 04 15:01:06 martincz: i use json (via spring framework) and wcf on the server with a custom json endpoint Feb 04 15:01:44 monsti, and addition question :) how do you secure the communication? thanks Feb 04 15:01:55 https Feb 04 15:02:52 and i use a shared transaction scope to make sure, that there is no data coruption when the phone or server goes down Feb 04 15:03:22 what is still don't get is how to authenticate the android device against the server Feb 04 15:03:47 i guess i can't just store the password in the APK, it can be downloaded, unzipped and decompiled Feb 04 15:04:05 Udmurt: When you say "with Search features", is that using any of the built in search features/classes or just add my own EditText & ListView? To be honest, I don't fully understand how the SearchView is used. Feb 04 15:04:06 UUID transactionID=connection.Login("user", "password") Feb 04 15:04:07 martincz,use AccountManager for store credentials Feb 04 15:04:54 yes i have a local acount and a sync provider on the android device Feb 04 15:04:58 Udmurt, I was thinking of a technical user account... Feb 04 15:04:59 nplus, you can implement enything. you can use system dialog or create your own Feb 04 15:06:55 martincz, so you still must supply password or token in apk Feb 04 15:08:26 martincz: i also have an implementation where my service makes a DB connect Feb 04 15:08:39 in the end one pw is always plain on your device Feb 04 15:09:14 :) Feb 04 15:09:39 i think this is more of a java problem than android problem, am i right? :) Feb 04 15:10:09 it's a philosophic question Feb 04 15:10:31 "how can a computer find out, that the person is the right person and that the person is stil alive and willing to authenticate a transaction" Feb 04 15:11:08 in 2013 we still have no answer to that question Feb 04 15:13:24 monsti thats easy Feb 04 15:13:45 if you take the literal translation of "person" as a legal term Feb 04 15:13:53 then yeah, a computer system can Feb 04 15:13:54 :) Feb 04 15:14:10 monsti: what is a person? what is life? is anyone willing, or is it all just predetermined?! Feb 04 15:14:29 if you want to be philosophical, it probably won't get much coded written Feb 04 15:14:33 omg Feb 04 15:14:40 Dear #android-dev if it's not to much to ask I'd like you to take part in my survey about android ORM frameworks. I want developers opinion to refer to in my bachelor thesis and I figured this channel might be a place to ask. http://goo.gl/Sczu5 Feb 04 15:14:45 i just wanted to know where to store the password :) Feb 04 15:14:58 thank you very much Feb 04 15:15:00 martincz, AccountManager! ) Feb 04 15:15:02 isn't the user's head the usual place? Feb 04 15:15:14 or that Feb 04 15:15:36 oGMo: well as coder or as organisation you can decide which part you don't care about ;) Feb 04 15:16:17 Udmurt, is it the right place for the password of the technical user? It should be the same password for all application instances, users etc. Feb 04 15:17:34 martincz, if you supply it in apk, I think no reason to store it in AccountManager Feb 04 15:18:09 martincz, after all I don't see if it needed at all Feb 04 15:18:19 :) Feb 04 15:18:59 Udmurt, ok so lets say i supply the pass in my apk. How do i make sure that nobody takes the password and attempts to communicate with my remote service ? Feb 04 15:19:52 Udmurt, there is no way to do it Feb 04 15:20:41 if I have long alertDialog positive and negative buttons labels, how to align them properly? Feb 04 15:21:12 is there a standard way to put one button above another, like vertical list Feb 04 15:21:37 Udmurt, oh come on :) so what would be the common approach? Feb 04 15:21:38 if you inflate your own view you can do anything you want Feb 04 15:21:59 martincz: you shouldn't store the password, and you shouldn't have one password for all users. A generally accepted method is that a user authenticates the first time and receives a token, which you then store - at most, a stolen token should compromise a single user Feb 04 15:21:59 Can I temporarily block orientation changes? When starting my AsyncTask, shit majorly hits the fan if the user turns the phone while data are fetching Feb 04 15:22:32 martincz: He's completely right that there is no secure way to store a password that doesn't require prompting the user to enter a password and unlock the keystore or something - and even then on a rooted system, bets are off. Feb 04 15:23:16 dragorn, martincz agreed, and AccountManager use this way Feb 04 15:23:27 martincz: the android security model keeps apps from interfering with each other but as soon as you get installed on a rooted device the game is over. Feb 04 15:24:02 anyone here experienced loopj's persistentcookiestore seemingly forgetting cookies between activities? Feb 04 15:24:32 i put a cookie into it in an asynctask on one activity, then in the next activity it's forgotten Feb 04 15:24:45 but if I go back to the main activity, it is there again Feb 04 15:24:50 dragorn, Would you know about some example code? Thank you Feb 04 15:25:16 martincz: So authenticate by user session, not w/ a global password. You could do BOTH if you want to add a minimal additional layer, but under no circumstances should your security model hinge on the phone keeping data secure. If you wanted to try to minimize the damage, you could encode data about the device in the token (or in the database on the other end that tracks tokens) and validate that, it wouldn't stop someone being clever Feb 04 15:25:16 and targetting you however Feb 04 15:26:08 martincz: Not off the top of my head; look into how oauth works among other things - that's basically the model you want to use; you authenticate once prompting the user for a pw, and use the authentication token in the future Feb 04 15:27:35 http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app here is a client-side auth Feb 04 15:28:40 dragorn, Ok many thanks. I'll try to dig into this direction Feb 04 15:28:41 :) Feb 04 15:29:42 martincz: http://android.stackexchange.com/questions/29192/how-is-the-gmail-password-stored-in-android-and-where discusses some of it Feb 04 15:29:57 martincz: not code, but theory at least, which should help you think of what you need to worry about. Feb 04 15:30:22 w32stuxnet: when do you create the peristantcookiestore ? it only reads the cookies in the constructor. Feb 04 15:30:30 martincz: also never ever follow advice that says "use this to disable SSL cert validation errors"; that's basically "remove all security" Feb 04 15:31:04 dragorn, ok Feb 04 15:32:50 Hello *, I want to decrypt a AES/192bit Encrypted File. Python decrypt it successfully. When i try to decrypt it with Java then the decrypted DB File is (in HeX) almost equal with the python decrypted file. Its just missing at the Beginning and at the End of the HEX File some bytes. The DB is corrupt. Any idea why? http://stackoverflow.com/questions/14678739/aes-192bit-ecb-in-android Feb 04 15:33:17 appel1: in onCreate. Feb 04 15:33:22 should I be doing it elsewhere? Feb 04 15:35:11 w32stuxnet: and you know that the cookies have been persisted in the previous activity before onCreate in the new actvity is called? Feb 04 15:57:08 Hiya.. When I try to extend DialogFragment and create the AlertDialog buttons I get a weird exception. "android.util.AndroidRuntimeException: requestFeature() must be called before adding content" Feb 04 15:57:37 See code here: http://paste.lisp.org/+2WBZ Feb 04 15:57:55 Savuud equestFeature() call it before setContentView Feb 04 15:59:11 appel1 I have called addCookie in the activity before that Feb 04 15:59:18 Udmurt: what class does requestFeature() belongs to? And should I do this in my onCreateDialog method that I have overwritten? Feb 04 15:59:26 From the looks of the code it should be just putting it into sharedpreferences Feb 04 15:59:33 w32stuxnet: yes Feb 04 15:59:42 w32stuxnet: no idea why it doesn't work then Feb 04 16:00:12 but when onCreate is called, it does its thing - the second activity's persistentcookiepstore doesn't find it until orientation change (onCreate is called again, same code - suddenly it works again) Feb 04 16:02:09 is it normal for the Gyro to only run at 5 Hz? Feb 04 16:02:26 (I measure a delta time of 0.2 s between each) Feb 04 16:07:42 <_axx> Hey guys, i have no experience with android development or anything, but is there a command which i could use to get the lat/long from my rooted android phone? (i want to run a little script on my phone like "find-my-iphone") Feb 04 16:09:06 _axx not sure you can make sensor calls from script unless some1 has got a helper/wrapper for the api Feb 04 16:09:08 could be wrong Feb 04 16:09:16 best to ask over at ¢xda-devs Feb 04 16:09:22 #xda-devs Feb 04 16:09:54 <_axx> StingRay_: thank you, i'll ask those guys. :) Feb 04 16:09:56 also, who's idea was it to use both nanoseconds and microseconds in the NDK Event API Feb 04 16:10:07 it's not confusing at all Feb 04 16:11:15 Savuud, it must be somewhere in dialogfragment Feb 04 16:18:15 whats the correct way to get a ViewGroup to allow the children to NOT be clipped or constrained to the view bounds ? both setClipChildren and setClipToPadding dont seem to work Feb 04 16:18:23 ? Feb 04 16:19:04 hmm, there is a Chinese TV box (Android) which gets a SIGSEGV when video is loaded in webview Feb 04 16:19:23 any recommended/possible workaround ? ? Feb 04 16:25:28 Looney: throw it in the bin, get a better one :/ Feb 04 16:25:34 Or force external player. Feb 04 16:25:55 hehe Feb 04 16:26:08 external player ? ? Feb 04 16:26:54 video stream in consideration is rtmp, so external player ? ? Feb 04 16:27:11 Not sure if the default players handle that. Feb 04 16:28:26 I am sure that it does not ;-) Feb 04 16:29:28 Then you don't have a lot of options :/ Feb 04 16:33:45 the problem which I think is that cache of webview is not cleared Feb 04 16:35:22 ParcelFileDescriptor drives me mad :( Feb 04 16:35:39 ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); ... works Feb 04 16:35:52 but the same with AutoCloseOutputStream doesnt Feb 04 16:36:04 well for pdf the Outputstream is ok - but not for galerie Feb 04 16:43:36 figured it out <3 <3 <3. Its working now Feb 04 16:55:58 my custom view has 5 bitmaps, whats the proper way of dealing with all that memory when the activity is done? Feb 04 17:09:04 freedomcaller .recycle() and set to null Feb 04 17:09:58 but when? views dont know when the activity is destroyed Feb 04 17:10:16 kinda depends Feb 04 17:10:29 onPause, onStop, onDestroy Feb 04 17:10:30 and dont activitys destroy all things that were created with that context? Feb 04 17:19:06 * monsti now considers drinking some real hard alcohol Feb 04 17:19:09 any suggestions? Feb 04 17:19:50 How can I get all the child views of a Fragment? Feb 04 17:24:29 jdawes getView() and then childCount() or w/e Feb 04 17:24:54 xorgate: getView() returns all children? Cool, thanks. Feb 04 17:25:22 no it returns the view Feb 04 17:25:26 which has children Feb 04 17:25:41 Yes, sorry I meant that but typed differently. lol Feb 04 17:39:04 Next question, how can you call a Fragment specific method from an Activity? For example I want to make sure a grid of pictures is properly reinitialized when changing pages so I want to call method pageChange() inside my Fragment from my main Acitivity. Feb 04 17:39:44 jdawes, you can set a tag from fragment > activity Feb 04 17:39:59 ad get a referece to the fragmet like that Feb 04 17:40:12 brx_: How so? Feb 04 17:40:35 create a method in activity called setFragTag().. Feb 04 17:40:37 They are dynamically created fragments. Feb 04 17:41:07 Also, they are in a ViewPager… Feb 04 17:41:23 String myTag = getTag(); Feb 04 17:41:23 Feb 04 17:41:23 ((MainActivity) getActivity()).setFragTab(myTag); Feb 04 17:41:40 then use the fragmetmanager to call the method form the activity Feb 04 17:41:54 1 sec i found a post the other day that outlines this Feb 04 17:42:26 Oh, I see call setFragTag from the Fragment itself, telling the activity what it is. Feb 04 17:42:43 exactly Feb 04 17:43:02 That's funny, I just implemented a callback for changing a view in the Activity from the Fragment, I can't believe I couldn't figure this out. Feb 04 17:43:10 I'll give it a try, thanks! Feb 04 17:43:16 hope it works! Feb 04 17:43:51 If I get an event timestamp from my Accelerometer, store it, and then subtract it from the newest Accelerometer timestamp, I should be able to devize it's sampling frequency, right? Feb 04 17:44:25 hello, i'm trying to have an image view match the size it's linear layout parent but the imageview just stretches like crazy, any way to prevent that stretching? Feb 04 17:44:27 eg if the difference (delta) is 0.2 seconds, the frequency would be 5 Hz Feb 04 17:47:06 loin, try set android:scaleType to ImageView maybe help Feb 04 17:50:51 If I want to track a subactivity using easytracker, how would I do it? /mainactivity/subactivity? Feb 04 17:51:43 Udmurt, seems to be working, thank you very much sir! Feb 04 17:51:53 Anyone a clue what I'm doing wrong here? res = ASensorEventQueue_setEventRate(mSensorEventQueue,mGyroSensor, 5000); Feb 04 17:52:27 5000 is what I get as minDelay, so that should work, but it returns -75, which signals that an error occurred Feb 04 17:53:08 the function declaration is as follows: int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, int32_t usec); Feb 04 17:53:16 brx_: Compiler says I can't caste Fragment as my custom Fragment class Feb 04 17:53:24 could it be because my ASensor pointers aren't const? Feb 04 17:53:38 or because I need to cast to int32_t ? Feb 04 17:55:31 But I've just checked and I'm importing the proper android.support.v4.app.Fragment that my Fragment uses. Feb 04 17:56:42 jdawes show code Feb 04 17:56:59 Udmurt: Which part specifically? The casting line? Feb 04 17:56:59 sry jdawes im going out pastebin ftw Feb 04 17:57:12 jdawes yes Feb 04 17:57:21 and declarations Feb 04 17:57:46 http://pastebin.com/7ucqqtdt Feb 04 17:58:02 Oh, sorry…the declaration? Of the Fragment class and my class? Feb 04 17:58:07 I only put the casting line. Feb 04 17:58:20 both Feb 04 17:58:35 import, and imort of your class Feb 04 17:58:56 maybe you import wrong fragment somehere Feb 04 17:59:17 They both import the .support.v4.app.Fragment Feb 04 17:59:20 Maybe you're missing a Support somewhere in that method name Feb 04 17:59:45 getSupportFragmentManager? Feb 04 17:59:50 ohh, getSupportFragmentManager Feb 04 18:00:00 That seems to like it. Thanks SimonVT. Feb 04 18:00:29 Now to go and look up the difference between the two. Feb 04 18:02:56 I'm a bit of a thicky Feb 04 18:03:11 turns out you have to enable your sensors before you can set their sample rate Feb 04 18:09:58 OK, I'll just tell you what I'm trying to do because, while those solutions seemed good, they're not actually accomplishing the desired effect. Feb 04 18:10:56 Basically I have a ViewPager with 3 pages, each holding a grid a 16 buttons. What I want to be able to do is have only 1 button selected at any one time. How can I achieve this since the pages are destroyed and reinitialize by will of the ViewPager? Feb 04 18:11:12 sorry, 3+ pages, depending on user selection. Feb 04 18:11:42 store the page index and button index ? Feb 04 18:12:30 Ya, is that a good idea? I ask because I'll need to "deselect" a button whose page may have already been destroyed. Would checking for null be OK there? Feb 04 18:13:30 well since it's destroyed it wont be able to change state ? so your left with the state it was.... and can set it when the page comes back round Feb 04 18:13:38 is that not the way you want it ? Feb 04 18:14:30 or if thats not he way, when a page gets destroyed remove all refs that have that page index Feb 04 18:14:39 Well, the behaviour currently is that if I selected an item on the 4th page and scroll all the way to the first page…if I go back to the fourth page the button will have been reinitialized and no longer selected. Feb 04 18:14:53 ya Feb 04 18:14:54 But I want to be able to keep these selections Feb 04 18:14:59 ya Feb 04 18:15:09 well sore the fact it was select like I said Feb 04 18:15:24 And when initialized check the storage? Feb 04 18:15:26 OK Feb 04 18:16:04 Just gets a bit confusing for me when these grids are in Fragments that are in the ViewPager lol. Feb 04 18:16:33 in the fragment you have an adapter powering these buttons created ? Feb 04 18:16:40 Yes. Feb 04 18:16:45 Wait hang on. Feb 04 18:17:07 well cant you just set some data on the list/array driving the button creation ? Feb 04 18:17:14 I have a FragmentPagerAdapter if that's what you're asking. I'm new to these things so I'm sorry if I get you confused. Feb 04 18:17:31 well either way it seems quite easy Feb 04 18:17:46 I think I'll be able to do it. Give me a few minutes, lol. Feb 04 18:18:09 I dont have to give you time Feb 04 18:18:19 your time is your own and nowt to do with me Feb 04 18:18:20 ;) Feb 04 18:18:28 Fair enough, thanks for the solution. Feb 04 18:19:11 best way though is a flag in the data that drives the adapter Feb 04 18:19:23 from my pov neway Feb 04 18:19:58 I'm not sure what you mean. Feb 04 18:20:31 where does the data come from that drives the creation of these 16 buttons ? Feb 04 18:21:37 Well, each page has 16 buttons and I simply create them in two for loops in a TableLayout, one for loop for each TableRow, and another for loop for the 4 buttons of that row. I set clickListeners based on their position in the grid and the page num location. Feb 04 18:22:21 tableLayout .... I hear thats not great Feb 04 18:22:25 anyone here accustomed to using Sensors (Java or C++)? Feb 04 18:22:26 gridLayout better Feb 04 18:22:26 I'm about to send in the "Last button clicked index" during this creation to see if the button should be "selected" Feb 04 18:22:40 Why's that? Feb 04 18:22:51 grid is not ancient Feb 04 18:22:54 table is Feb 04 18:22:58 Lol OK. Feb 04 18:23:20 Well, I'm getting the desired effect for now. I'll look into Grids later on I think. Feb 04 18:23:21 like saying why am i better than my great grandfather Feb 04 18:23:28 Yeah I understand. Feb 04 18:23:33 well hes very slow and dead for 1 thing Feb 04 18:23:36 :) Feb 04 18:24:04 not better, just more up-to-date Feb 04 18:24:13 Yes. Feb 04 18:40:44 For the net.simonvt.widget.NumberPicker, what is the intended method (if any) to save the value being found in the NumberPicker? Feb 04 18:40:59 Adding Save/Abort buttons to the View? Feb 04 18:44:05 The sample in the source don't show anything if I'm not mistaken Feb 04 18:44:43 Hello. Feb 04 18:44:55 Is there any way to "force" the width and height of a bitmap? Feb 04 18:45:07 So I don't have to rely on the pixel density. Feb 04 18:49:05 hi all how do i replace mContext.openFileOutput(filename+".txt",0) with something none android the api where i am using it i want to make ut useable outside android Feb 04 18:49:41 i sopouse just new FileOutputStream(filename+".txt") ? Feb 04 18:56:59 I would like to add a persistent java service to the AOSP. I am adding my project in aosp_root/packages/apps/.... My project seems to be building fine in the AOSP build, but for some reason, it is not being loaded into the emulator.. is there a good project I can reference in the AOSP source code that does what I want? Feb 04 19:03:50 Hello people. I am trying to copy the toggle button (http://cache.gizmodo.com/assets/images/4/2011/08/iosround.jpg) the one on the right. I can't seem to think how to implement the functionality that you can slide it by pushing and dragging around. I'd need some kind of mask I guess. Or picture for every possible pixel of the animation. Do you have any idea? Feb 04 19:09:50 how can my sync adapter handle multiple authorities? Feb 04 19:10:01 marrrk: I;ve done that and no, you just move a view Feb 04 19:10:03 :) Feb 04 19:10:11 how do you do it? Feb 04 19:10:20 I was able to do it with a frame animation Feb 04 19:10:22 will it get called one for each or just once for the main/first authority? Feb 04 19:10:29 the free moving Feb 04 19:10:34 part is harder Feb 04 19:10:40 well I just extended a view Feb 04 19:10:57 setting issyncable with multiple authorities doesn;t seem to make it show in the list of authorities Feb 04 19:11:39 and had inner and outer child views Feb 04 19:11:59 outer one had translate animation on Feb 04 19:12:01 simples Feb 04 19:12:24 oh I tell a lie Feb 04 19:12:33 I had a view with 3 layers Feb 04 19:12:37 bg Feb 04 19:12:44 text Feb 04 19:12:46 switch Feb 04 19:14:44 I am using this code: http://pastebin.com/fHev6wmb Feb 04 19:14:53 Apparently, gCanvas is null when running it,. Feb 04 19:14:56 oh you can have layers? Feb 04 19:15:04 What view did you extend? Feb 04 19:15:17 ViewGroup I think Feb 04 19:15:19 hold on Feb 04 19:15:21 StingRay_: Where did you do that actually? I've never seen an app that implemented that. Feb 04 19:15:57 oh I extended linearLayout Feb 04 19:16:03 so ya a viewGroup Feb 04 19:16:42 it's just a toggle and animates left right with fade on color Feb 04 19:16:58 haven't put the draggable part in yet Feb 04 19:17:05 A-HA! Feb 04 19:18:06 you done it ? Feb 04 19:18:12 :) Feb 04 19:18:13 Hi Android gurus, I want to be able to sent preferences update from my PreferenceActivity to my main Activity in real time, any chance I could do that? Feb 04 19:18:57 nmvictor: is your main activity still running ? or in going to the fragment activity did it pause ? Feb 04 19:18:58 Nope but that's the real challenge Feb 04 19:19:40 nmvictor: and why do you need realtime between something that is paused and something that is running ? Feb 04 19:19:50 cause you cant really do anything in a paused activity Feb 04 19:19:55 it's paused :) Feb 04 19:20:00 StingRay_: Thanks. I think since PrefernceActivity Started, the main activity paused Feb 04 19:20:19 then eitehr your question or understanding is a little off Feb 04 19:20:21 either* Feb 04 19:20:34 you can send DATA back to your calling activity Feb 04 19:20:45 by using startActivityForResult() Feb 04 19:20:50 and setResult() Feb 04 19:20:55 Nevermind. Feb 04 19:21:46 StingRay_: ok, this is what i want, when i get back to the main activity, the preferences set by the user should be applied, for instance, I have an checkbox pref to allow the user hide or show title bar Feb 04 19:22:12 well onResume() will get called Feb 04 19:22:17 StingRay_: so, is setResult callable in the PreferenceActivity? Feb 04 19:22:26 and at that point the data driving the activity has changed Feb 04 19:22:34 so update it in onResume() Feb 04 19:22:55 StingRay_: ooh, so i should read the sharedpreferences at onResume()? Feb 04 19:23:03 StingRay_: kindly? Feb 04 19:23:03 why not? Feb 04 19:23:07 ok Feb 04 19:23:09 :) Feb 04 19:23:14 StingRay_: thanks Feb 04 19:23:16 better still Feb 04 19:23:19 if your lazy Feb 04 19:23:20 yea Feb 04 19:23:25 move your stuff from onCreate Feb 04 19:23:26 StingRay_: i sure am Feb 04 19:23:28 to onREsume Feb 04 19:23:35 then you dont really have to do anything Feb 04 19:23:37 :) Feb 04 19:23:38 StingRay_: :D Feb 04 19:23:45 StingRay_: never thought that Feb 04 19:23:49 StingRay_: ok Feb 04 19:23:59 StingRay_: one more thing, mate Feb 04 19:25:29 StingRay_: i used eclipse wizard to make the prefs activity, and it made every inner class in the prefs Actvity static, is their harm in making the classes non-static? Feb 04 19:26:39 StingRay_: I got your solution, that is just for my own know-how and know-why? Feb 04 19:26:48 StingRay_: if you dont mind Feb 04 19:28:30 StingRay_: ok, never mind. Thanks though. Feb 04 19:28:50 SimonVT: how do I get the number from your NumberPicker? Feb 04 19:30:01 getValue I think? Feb 04 19:30:14 Docs here: https://developer.android.com/reference/android/widget/NumberPicker.html Feb 04 19:30:19 Quacked: you know there are samples right ? Feb 04 19:30:32 Couldn't find any of that in the sampels Feb 04 19:31:48 getValue() worked Feb 04 19:32:14 It was the first thing I tried, but I guess I must have made a typo Feb 04 19:40:32 has anyone ever experienced a phenomenon where a listview item's background color is different than what is specified in code? Feb 04 19:40:58 I have a situation where the blue is too dark, so I changed it to green to make sure it wasn't pulling a color from somewhere else, and even the green is getting changed Feb 04 19:41:20 specifically from 0xFF00FF00 to 0x80F216 Feb 04 19:41:23 cache hint color ? Feb 04 19:41:40 StingRay_: could you elaborate please? :) Feb 04 19:42:14 a listView cycles or re-cycles views Feb 04 19:42:25 it has hinting values Feb 04 19:42:33 ahhh Feb 04 19:42:40 colorCahceHint Feb 04 19:42:42 i think Feb 04 19:42:52 or something or other Feb 04 19:43:01 but that would only occur when you scroll Feb 04 19:43:06 not really from 1st draw Feb 04 19:43:11 in my experience Feb 04 19:43:45 ok Feb 04 19:43:48 Hi, I need to flip a image in memory (a vscreen) to the display of the android. its all in 2D. I use native coding, have an ARM compiler and my OpenGL code works, but in GL ES there is no glPutPixels routine like in normla OpenGL, so I can forget the flipping to the screen throught OpenGL, it is not a nice way also :( , how to act in 2D NATIVE? Feb 04 19:43:53 I'm trying setting the cacheColorHint to transparent Feb 04 19:44:13 errr no Feb 04 19:44:22 that defeats the purpose of it Feb 04 19:44:32 it does? Feb 04 19:44:40 should I set it to the color I want it to be? Feb 04 19:44:53 matching bg yes Feb 04 19:45:01 oh ok! Feb 04 19:45:03 * tnzr tries Feb 04 19:45:11 but like I say, this is not your prob i dont think Feb 04 19:45:23 unless you experience it only when scroll starts/during Feb 04 19:46:26 i think you're right Feb 04 19:46:37 about? Feb 04 19:46:48 this happens without scrolling, only on a selected ListView item that is using a selector for its background Feb 04 19:46:55 err, this is happening without any scrolling Feb 04 19:47:10 I have an AlertDialog with buttons that I want to change the button text of buttons in my MainActivity. How do I do that? findViewById gives nullpointer since it's another activity Feb 04 19:47:29 Quacked then you cant Feb 04 19:47:38 you change it in the activity it's in Feb 04 19:47:53 ok then Feb 04 19:48:21 the activity that is in the background is/should be inactive Feb 04 19:48:24 as in paused Feb 04 19:48:31 so it cant really do much Feb 04 19:49:20 oh, if it;s an alertDialog then you can Feb 04 19:49:24 thats not an activity Feb 04 19:49:49 just create a method public void setMyText(String a, String b) Feb 04 19:49:52 But you really shouldn't.. Use DialogFragment, implement an interface Feb 04 19:50:40 always use fragments Feb 04 19:50:43 :) Feb 04 19:51:28 and now, you can have fragments in your fragments, for even more aweomness in your awesomeness Feb 04 19:52:09 but can you have an interface to a fragment in your fragmanetActivity that has a fragment that your interfacing with ? :) Feb 04 19:52:48 My bad, it's a regular Activity themed as AlertDialog :P Feb 04 19:52:56 what Feb 04 19:52:58 StingRay_: And in english? Feb 04 19:53:01 +1 Feb 04 19:53:15 probably easier to word it as , can you have an interface to a fragment within a fragment ? Feb 04 19:53:27 If it's your fragment that shows a dialog, use setTargetFragment Feb 04 19:53:33 implement interface Feb 04 19:54:16 It even survives configuration changes Feb 04 19:54:28 SimonVT: I'm creating an Activity that simply shows your NumberPicker Feb 04 19:54:38 Is it better to use fragments for that? Feb 04 19:55:37 oO Feb 04 19:56:00 does anyone know of how I can have my system app included in the system image rom? I know it has to do with the PRODUCT_PACKAGES variable, but I am not sure where to put it Feb 04 19:56:36 Sure, use fragments Feb 04 19:59:30 how to do a flip of an raster image on the display of an android device, NOT with OpenGL texture? Feb 04 20:01:57 I'm looking for help - I'm having trouble using a Selector to check when new packets are ready to be read on a DatagramChannel - anyone got any experience with this? Feb 04 20:05:01 Anyway, here's the specific issue I'm having - http://stackoverflow.com/questions/14690226/how-to-use-selector-object-with-datagramchannel-to-do-non-blocking-packet-recept I have no idea what I'm doing wrong. Feb 04 20:09:23 I'm a new android dev. I'm trying to understand the expected architecture. Feb 04 20:09:32 My app grabs a config file off a server and then performs a series of setup steps based on the config. Feb 04 20:09:41 Each step is an Activity. I'm wondering how I should model this data. In MVC terms, what's the Model for Android? Feb 04 20:16:02 There isn't a general MVC model underlying the UI framework in android. Specific types of views approach MVC somewhat (like ListView/GridViews) etc. Feb 04 20:16:45 well, I'm just trying to share this data among activities Feb 04 20:16:58 I could do something cheezy like singleton it Feb 04 20:17:07 but I'm wondering if that's 'right' Feb 04 20:17:18 service ? Feb 04 20:17:26 thats the way i share lots of data Feb 04 20:17:40 maybe that's the right way - I'm actually setting up a service Feb 04 20:18:28 essentially user starts system up, grabs config from server, answers some local questions, and then service runs in bkgnd Feb 04 20:19:39 as you switch between activities/services/etc -- while all of them will run in the same vm (by default), there isn't any general guarantee that in-memory data structures will persist; that's probably the main thing you want to look out for, vis-a-vis singletons. Feb 04 20:19:48 yes Feb 04 20:20:09 ok, so the service is the only thing guaranteed to persist? Feb 04 20:21:08 yes Feb 04 20:21:43 sounds good. Thanks Feb 04 20:21:52 really? hm. I always thought a service can also be destroyed under memory pressure Feb 04 20:22:43 I'm ultimately starting a service that absolutely positively has to keep going Feb 04 20:23:16 effectively it's a cron job Feb 04 20:23:37 I guess the question is more whether in-memory data persists between invocations of the cron job itself Feb 04 20:24:13 my understanding is that you can at best get a service to restart (if the system kills it for any reason) but you can't really expect in-memory stuff to persist; unless you handle its lifecycle events and persist it somwhere Feb 04 20:24:31 I'm ok with that Feb 04 20:24:43 well one would assume local sync on sqlite Feb 04 20:24:48 as I do Feb 04 20:24:50 :) Feb 04 20:25:03 How do you guys deal with orientation changes during asynctask? Feb 04 20:25:14 ok, thanks Feb 04 20:25:31 This is horribly annoying, app crashes because the underlying activity is gone and onPostExecute can't find its activity anymore Feb 04 20:25:49 check if it's still has context ? Feb 04 20:27:00 fk knows, my async/threads are managed by a service, so if user rotates screen it keeps until a re-bind Feb 04 20:27:37 Anyone got any experience with using Selector.receive() with a DatagramChannel? Feb 04 20:27:45 mh Feb 04 20:27:58 I mean, Selector.select() Feb 04 20:27:59 sonOfRa: you want to do it like this http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something/3359003#3359003 Feb 04 20:28:29 Fireblend: what version of android? nio had a defective impl of selector in older versions Feb 04 20:28:49 if you are ics and higher, you should be ok tho Feb 04 20:29:22 g00s: I know about that issue. I'm actually trying to work around it, since it's mentioned as a workaround in the original discussion for that issue Feb 04 20:29:37 I have working nio code for ICS+, but I really need it to work on Gingerbread+ Feb 04 20:29:55 :( Feb 04 20:30:12 g00s: http://code.google.com/p/android/issues/detail?id=16579 it's mentioned there that manually doing select() should be an acceptable workaround Feb 04 20:30:31 g00s yeah, i was thinking of doing something like that... Feb 04 20:30:50 but with holding a reference to the activity in the task, as it is not a static inner class Feb 04 20:30:56 nio has had a lot of problems on early android Feb 04 20:31:05 and then somehow rebinding the activity back to the task in onCreate Feb 04 20:31:18 can get operations cause racing conditions between two threads? Feb 04 20:31:26 However, my selector isn't working anywhere (not even Jellybean), so I'm hoping it's actually my fault and not Android's. My code must be wrong :P Feb 04 20:32:02 Joozey simple gets should not do that. A set and get might Feb 04 20:32:06 I'll be satisfied if I can get it working on Jellybean and not on Gingerbread so I can't blame that issue, but right now it seems to be broken even on 4.2 Feb 04 20:32:11 and set/set/get/get definitely will Feb 04 20:32:46 if one thread sets/gets, and one only gets, that´s possible? Feb 04 20:33:09 actually, gets can do it too. Depends on the data-structure. For instance, some LRUCache implementations can shuffle internal data as a result of a get. Feb 04 20:33:21 hm Feb 04 20:33:54 ""Much to most programmers' shock and dismay Gnome has made JavaScript its main language for apps" omg wut Feb 04 20:34:22 well at least they didn't choose java XD Feb 04 20:34:50 what gnome Feb 04 20:34:51 really Feb 04 20:34:53 why Feb 04 20:39:25 the language itself is actually very flexible and you can use almost any coding style and you can recreate different semantics with libraries Feb 04 20:41:17 Hey :) In the stock contact application, on the contact info page, categories like Email or Adresses have a blue title, and values are separated by thin lines. Anyone know how they did that ? Feb 04 20:41:25 Are they just themed textViews ? Feb 04 20:41:59 Or is there a easy way to get this kind of layout ? Feb 04 20:42:17 gyscos: it's just text and a drawable Feb 04 20:43:10 StingRay_: Drawable ? For the lines ? Or for the message icon next to mobile phones ? Feb 04 20:43:21 so anyone want a go at telling me what's wrong with my Selector code? Feb 04 20:44:01 gyscos: just drawable Feb 04 20:44:20 bitmap, shape, etc Feb 04 20:44:50 And the layout itself, do you think it's a grid layout ? Or a vertical linear layout, with horizontal layouts for each line ? Feb 04 20:45:05 gyscos: pick one Feb 04 20:45:11 (If you have a link to the source code, I'd be happy to let you alone :p ) Feb 04 20:45:23 www.github.com/android Feb 04 20:46:35 kakazza: Thanks :) any idea where source for apps is ? Feb 04 20:46:54 Or is it just the source for the android base ? :-/ Feb 04 20:47:21 gyscos: www.github.com/android/platform_packages_apps_contacts Feb 04 20:47:57 oow, didn't see the other repositories Feb 04 20:47:59 thanks a lot :) Feb 04 20:58:22 yay, I'm up to bronze iv... Feb 04 21:02:34 when you get promoted you go up with 0 points>? that's pretty lame Feb 04 21:02:35 oops Feb 04 21:02:38 wrong channel Feb 04 21:02:41 hope nobody downloaded DroidCleaner X.x Feb 04 21:03:27 Why wouldn't I download something called "Droidcleaner?" Surely it cleans up my phone and makes it run faster Feb 04 21:04:23 lov: :) Feb 04 21:15:10 In my MainActivity I have a bunch of buttons with numbers on them. OnClick on the buttons they start a countdown based on the int of the button. OnLongClick I start a new Activity where I can select a number and thereby change the values of the buttons in MainActivity. What are my options for being able to change those values in MainActivity? Feb 04 21:15:32 uh Feb 04 21:15:50 i think im misunderstanding your question Feb 04 21:16:01 because it sounds like you're asking how to change the value of a variable Feb 04 21:16:01 The new value need to be remembered btw Feb 04 21:16:18 oh youi want to pass the result from the second activity back to the first? Feb 04 21:16:21 is it cause I'm a noob that I kinda understand it Feb 04 21:16:30 canadiancow: yeah Feb 04 21:16:38 startActivityForResult() onActivityResult() Feb 04 21:16:39 look those up Feb 04 21:16:46 StingRay_: or perhaps because we talked about it an hour ago Feb 04 21:16:50 lol Feb 04 21:17:14 oh yeah Feb 04 21:17:24 and I said the exact same thing as canadiancow Feb 04 21:17:38 although I'm sure that was some1 else Feb 04 21:17:47 <--- migrane Feb 04 21:17:57 hmm Feb 04 21:18:18 canadiancow: will the values set be remembered next time app opens? Feb 04 21:19:20 Quacked: they will if you save them Feb 04 21:19:21 :) Feb 04 21:19:38 if not no, cause you didnt save them Feb 04 21:19:42 hehe Feb 04 21:20:04 save them how? Feb 04 21:20:30 well what are the options with android storage use ? Feb 04 21:20:52 http://developer.android.com/guide/topics/data/data-storage.html <---- hint Feb 04 21:21:42 Yeah, ok. I tried with SharedPreferences and was able to change it. But of course when going up from the NewActivity to MainActivity, MainActivity wouldnt "refresh" Feb 04 21:21:55 If I exited the app and opened it again, it would load the new value Feb 04 21:22:12 StingRay_: remember my problem earlier with the colors? Feb 04 21:22:23 Figured it out... it was the screenshot preview in DDMS. Feb 04 21:22:34 How would I then "update" the MainActivity? Feb 04 21:22:35 Quacked, so reload them in onresume Feb 04 21:22:44 actually Feb 04 21:22:46 canadiancow: great. thanks. Feb 04 21:22:51 I made a layout with two Views, one with background 0xFF007ABC and one with background 0xFF297BBC Feb 04 21:22:58 http://developer.android.com/training/index.html Feb 04 21:23:00 go read all of that Feb 04 21:23:05 and in the DDMS screenshot utility, both colors come out as 0x297BBC Feb 04 21:23:09 or at least everything under "Getting Started" Feb 04 21:23:19 but if you save the screenshot and open it in a browser, your color picker will discern the difference Feb 04 21:23:34 questions like "how can i persist data" have different answers, and the best option depends on waht you're doing Feb 04 21:23:35 canadiancow: thing is, I did that initially, but it didnt make much sense till I actually started coding and got into problems :) Feb 04 21:23:43 tnzr: good to know, and very odd also Feb 04 21:23:54 canadiancow: it's much easier to understand now Feb 04 21:25:33 I should have started on a simpler app though :) Feb 04 21:27:21 Quacked: how big is your app ? Feb 04 21:27:26 as in whats it do ? Feb 04 21:28:39 basically just a countdown timer Feb 04 21:29:10 but I need it to have all my special features Feb 04 21:29:12 hehe Feb 04 21:29:59 I have to check battery use later since it updates notification every second Feb 04 21:31:06 SimonVT, your doppelganger is here Feb 04 21:31:53 damnit Feb 04 21:31:56 I thought we lost him Feb 04 21:39:09 can anyone provide some insights into the account/sync adapter methodology? Feb 04 21:39:29 specifically with regards to multiple authorities Feb 04 21:43:42 does anyone know how to do this Feb 04 21:43:43 http://i.imgur.com/lSkQVzt.png Feb 04 21:44:11 *remove that Feb 04 21:44:14 agy2154: I dont understand Feb 04 21:44:16 i can't figure it out Feb 04 21:44:21 Like how to remove that Feb 04 21:44:32 remove what ? Feb 04 21:44:42 the image and title of your app in eclise Feb 04 21:44:46 I already set no title in java Feb 04 21:44:49 but it keeps showing Feb 04 21:44:54 maybe he wants a full screen activity or something Feb 04 21:44:56 http://i.imgur.com/lSkQVzt.png Feb 04 21:44:57 here is an image Feb 04 21:45:47 requestWindowFeature(Window.FEATURE_NO_TITLE); ? Feb 04 21:46:22 agy2154: you really have to be clear about what it is you're actually asking about. you're just circling a graphic and text. Feb 04 21:46:36 yeah Feb 04 21:46:37 i used that Feb 04 21:46:50 Ok for the visual XML preview Feb 04 21:47:02 oh Feb 04 21:47:04 I don't want it to have that graphic and text becaue its obstructing my view Feb 04 21:47:06 you call that a circle? Feb 04 21:47:10 lol Feb 04 21:47:19 go home lov, you're drunk Feb 04 21:47:22 but yeah that isn't somethign I would see in the app so I don't know why its showing Feb 04 21:47:23 uh, there should just be a flag for the activity in the manifest for that Feb 04 21:47:31 pragma-: I didn't draw it :( Feb 04 21:47:35 pragma-: also, how did you know! Feb 04 21:47:39 Ill check it Feb 04 21:47:54 android:icon="@drawable/ic_launcher" android:label="@string/app_name" Feb 04 21:47:59 removed them it all works great Feb 04 21:48:00 thanks Feb 04 21:48:05 >_< Feb 04 21:48:07 no, don't do that. Feb 04 21:48:11 that will affect other paths. Feb 04 21:48:13 ohh Feb 04 21:48:13 true Feb 04 21:48:24 can I disable them for one activity? Feb 04 21:48:36 http://developer.android.com/guide/topics/manifest/activity-element.html#theme Feb 04 21:48:47 I could have sworn there was a FAQ for this Feb 04 21:49:08 Hey, someone know what I must use if I want my app to check data at each X minutes when the app is not visible and notify the user if Y? Feb 04 21:49:17 aha Feb 04 21:49:19 @android:style/Theme.NoTitleBar Feb 04 21:49:31 I see Feb 04 21:49:32 nic007: AlarmManager and a Service Feb 04 21:49:45 Thank you! Feb 04 21:50:00 yw Feb 04 21:51:24 agy2154: basically, you want to add this to your activity tag: android:theme="@android:style/Theme.NoTitleBar" Feb 04 21:51:39 i did Feb 04 21:51:47 Didn't really work Feb 04 21:51:54 At least on the preview it didn't Feb 04 21:51:55 I thoguht form the screenshot, they just wanted to get rid of the previoes that the designer shows Feb 04 21:51:58 Ill try it out on the phone Feb 04 21:52:01 try actually running it. Feb 04 21:52:09 seeing as that is what they outlined :) Feb 04 21:52:14 agy2154: you know the preview has "theme" settings Feb 04 21:52:29 one being from project or something Feb 04 21:53:17 ^^ Feb 04 21:53:20 It worked on my phone but the background turned black Feb 04 21:53:24 Ill check that Feb 04 21:56:47 Anyways thats not that big of a problem I have another question. So I plan on adding a on click listener for several radio buttons. Some of these buttons will automaticly lock some text views, preventing the user from enditing them. Lets say that the user has selected one which has a textview that is disabled and then he selects another radio button that trys to disable it again. Will that cause any problems? Feb 04 21:59:07 agy2154 no Feb 04 21:59:21 StingRay_: Thanks. Feb 04 21:59:22 well depends on how you disable it Feb 04 21:59:38 but no, not using a setEnabled(false) Feb 04 21:59:54 what is used to make it grey? Feb 04 21:59:57 set focusable? Feb 04 22:00:30 ohh Feb 04 22:00:30 nvm Feb 04 22:00:31 probably setEnabled(false) Feb 04 22:00:38 i see Feb 04 22:00:38 thanks Feb 04 22:00:45 ill try it out Feb 04 22:00:48 or setEditable Feb 04 22:00:55 for an editTex Feb 04 22:00:56 t Feb 04 22:14:50 i'm surprised somebody from the ACLU is calling carrier's reluctance to update android phones a security crisis. well, thats good. Feb 04 22:17:26 I added a new app to the frame packages in "/packages/apps/MyApp" and it builds fine.. but for some reason, it is not loaded in the rom Feb 04 22:18:00 if I check the output folder, there is no APK for it.. however, if I go into the root of my project and type "mm", it does build my app and then puts it in the output folder Feb 04 22:18:15 how can I tell the build system to automatically include it in the system image? Feb 04 22:18:26 sleepster: #android-dev Feb 04 22:18:31 err #android-root Feb 04 22:18:33 :) Feb 04 22:18:48 * bankai_ goes back to coffee... brain is obviously still asleep Feb 04 22:19:31 oh, I thought android-root was for rooting phones? Feb 04 22:25:46 anyone know exactly what happens (what gets called, what threads are used, etc) in Context#bindService() ? Feb 04 22:26:09 it seems to be returning immediately, but then onServiceConnected() is called from the thread that called bindService() Feb 04 22:26:45 i always had onServiceConnected called on the main thread Feb 04 22:27:20 in fact, i tried to make things synchronous by using a CTL and blocking - but calling bindService in a non - UI thread and having the serviceConnection block, but that did not work Feb 04 22:27:43 ah interesting Feb 04 22:28:14 basically, i need the code that calsl bindService() to be on a different thread than the one that runs onServiceConnected() Feb 04 22:28:23 so if OSC is always called from the main thread, that's easy Feb 04 22:28:45 oh no wait then i'll need to do something stupid in 20 places Feb 04 22:28:49 canadiancow: doesn't say in the docs; you have a doc bug fix :) Feb 04 22:30:02 I have a problem. I have a couple of fragments and I use show() and hide() on them.The problem is that I want to update their views on fragment transactions, but niether onStart nor onResume is being called on them. Is this a bug or intented? Is using remove and replace via the fragment transaction the only solution? Feb 04 22:38:02 hmm Feb 04 22:38:30 Is there a way to draw on the Device Display like movind a memory block to the "screen" (fliping an image surface to the screenbuffer) , NATIVE/C++ ? Feb 04 22:38:32 what would be the best way to get both data from the accelerometer and the gyroscope at the same moment, so I could put them in a Kalman filter? Feb 04 22:39:30 g00s, this is confusing =P Feb 04 22:40:19 as I've just realised it happens sequentially in a loop Feb 04 22:40:55 and if I am to use a Kalman filter to "upgrade my data quality" , I might not get much use out of it if my input data is offset in time Feb 04 22:41:36 spawning a thread for each sensor looks overkill Feb 04 22:42:07 and would introduce its own complexities with shared data and mutexes etc Feb 04 22:42:26 but I honestly don't know how the others do it Feb 04 22:44:18 as each sensor samples 100x a second, I want a pair of accelerometer data and gyroscope data to enter the Kalman filter Feb 04 22:44:32 eg not have accell(t) and gyro(t + 1) Feb 04 22:47:13 I'm not going to get an answer, am I? Feb 04 22:48:52 ugh g00s i need this whole thing to be synchronous Feb 04 22:49:02 yeah, its a pita Feb 04 22:49:25 no end to the frustration - timing between OSC and activity result callback Feb 04 22:50:30 unless i start a new thread way up the stack... Feb 04 22:50:35 or down the stack Feb 04 22:54:06 g00s, ive been working here 4.5 months and ive used 1.5 sheets of paper to jot down notes and stuff Feb 04 22:54:08 this problem requires paper Feb 04 22:54:09 :P Feb 04 22:54:17 hehe Feb 04 22:54:40 maybe you could start a blog 'the cow's android notes' Feb 04 22:56:02 consider whether you can just use a plain service and communicate via some shared data structure Feb 04 22:56:11 and an event bus Feb 04 22:56:35 this is the pattern i use mostly, plus HierarchicalStateMachine thrown in when things are too crazy Feb 04 22:56:37 in this case it's not that easy Feb 04 22:56:42 becuase of how this was built Feb 04 22:56:51 im trying to do this in a way that doesnt require a massive rewrite :P Feb 04 22:57:06 if i dont have a timeout in my service, it will work Feb 04 22:57:11 no wait it wont Feb 04 22:57:23 sometimes code has to get worse before it can get better ;) Feb 04 22:57:48 can anyone think of a pure java system service that I can use as reference? I need to build something similar and I am currently failing at it :( Feb 04 22:58:08 sleepster: the ApiDemos has plenty :| Feb 04 22:58:53 belgianguy: why do you feel multiple threads will be overkill ? Feb 04 22:59:26 ChetanAhuja: because then each sensor would have its own thread Feb 04 22:59:46 and I'd have to access the SensorManager in odd ways Feb 04 22:59:50 if I'm not mistaken, you're just concerned with two sensors right ? Feb 04 23:00:11 just spawn one thread for each, capture your data points with timestamps attached to it Feb 04 23:00:16 ChetanAhuja: well, some use 3, but for now 2 will do :) Feb 04 23:00:21 then merge them in some shared data structure Feb 04 23:00:33 the events come with their own timestamps though Feb 04 23:00:50 right… I mean just save them *with* the timestamps Feb 04 23:01:06 then merge them in a third thread Feb 04 23:01:12 ChetanAhuja: but even then, the threads might be off sync Feb 04 23:01:16 ah Feb 04 23:01:17 of course… Feb 04 23:01:53 I think physics dictates that you can't really get those two events to happen exactly at the same moment in time (if such a thing even exists) Feb 04 23:02:16 you'll just have to do post processing to combine the closest series of data points Feb 04 23:03:33 also note, that accelerometer and gyroscope are both giving you data about second derivative of velocities Feb 04 23:03:36 ChetanAhuja: but would that extra overhead not make my Kalman project superfluous? Feb 04 23:04:04 arguably, those quantities are meaningless as a single snapshot in time Feb 04 23:04:17 what are you trying to achieve with the Kalman filter Feb 04 23:04:46 compensate gyro drift Feb 04 23:05:15 and use a combo of accelerometer and gyroscope properties to get a good hold on the angle the phone's in Feb 04 23:06:36 how frequently do you intend to collect the data points ? Feb 04 23:06:49 atm I'm at100 Hz Feb 04 23:06:58 :O Feb 04 23:07:32 battery won't last 15 minutes, but it makes the calculations a bit easier on paper Feb 04 23:07:48 100 Hz means 10 ms between measurements. Let's say you spawn one thread each which are communicated via a shared global data structure Feb 04 23:08:09 "what is this anomaly in the gyro data at time x" , "oh, thats the battery exploding" Feb 04 23:08:12 and you see a phase difference of 4 ms between the two threads Feb 04 23:09:03 you can either 1) Just accept the 4 ms difference and combine the two measurement with a phase gap of 4 ms (which might not be that off) Feb 04 23:09:20 or 2) correct one of the threads timing until you come closer in time Feb 04 23:09:45 ChetanAhuja: wouldn't checking if the previous or next item is closer in time be "expensive"? Feb 04 23:09:50 esp at 100 Hz :/ Feb 04 23:10:14 oh it should be a simple subtraction operations Feb 04 23:10:32 that's on the order of sub microseconds Feb 04 23:11:04 yeah, and the smallest value would be the closest, so doing that each step wouldn't hurt? Feb 04 23:11:32 but is looking ahead one place to the front and one to the back enough? Or will they still drift apart over time? Feb 04 23:11:35 not at all… your dalvik jvm is probably doing far more operations every single byte code instructions Feb 04 23:11:43 far more expensive operations I mean Feb 04 23:12:21 I suspect if you use android alarm manager at 10 ms, it should be plenty accurate Feb 04 23:12:54 ChetanAhuja: is there a C++ equivalent of AlarmManager? Feb 04 23:13:22 I don't know… but since many games are written in ndk, I suspect it's bound to be there Feb 04 23:14:31 ChetanAhuja: and how would you use the alarmManager then? if the gap got greater than 10 ms, you'd skip some data in one thread? Feb 04 23:15:01 or just use it all the time to fire off the events? Feb 04 23:15:09 i guess it depends on your requirements… If I was writing it, I'd skip current data point, adjust the next timer and wait for it Feb 04 23:15:56 ChetanAhuja: yeah, that seems a sound approach Feb 04 23:16:28 hope that works for your application…. is it a scientific app …a game … ? Feb 04 23:16:34 what about writing directly to /dev/graphics/fb0 ? remember I wanna write on the Device Display a image I have in memory. Feb 04 23:17:03 ChetanAhuja: something to put on my CV, a game is the plan :) Feb 04 23:17:29 great…. Feb 04 23:17:34 belgianguy: good luck Feb 04 23:18:24 ChetanAhuja: thanks! very nice talking to you, the NDK is very sparsely documented, and the maths and sensors make it an even harder topic to discuss, so I really appreciate your effort! :) Feb 04 23:19:05 no problem. Hope it works. Come here and share it if it does something awesome Feb 04 23:20:32 ChetanAhuja: will do, if I can't get it to do something awesome, I'll call it Battery Exploder, g00s :p Feb 04 23:20:58 yeah.. there's always a market for that Feb 04 23:22:10 just like the fart apps, but a bit more spectacular Feb 04 23:25:13 attempting bluetooth connections in background thread. why is UI slow? Feb 05 00:07:40 g00s, i just realized this code is blocking the main thread :) Feb 05 00:07:54 supports-screens: 'normal' Feb 05 00:07:55 supports-any-density: 'false' Feb 05 00:07:55 densities: '160' <-- is that likely to be why this app is incompatible with my phone? Feb 05 00:09:23 yes Feb 05 00:09:28 that supports just mdpi Feb 05 00:09:28 lol Feb 05 00:09:33 what did they do, set targetSdkVersion to 3? Feb 05 00:09:39 g00s, http://developer.android.com/reference/android/content/ServiceConnection.html Feb 05 00:09:43 "Like many callbacks from the system, the methods on this class are called from the main thread of your process." Feb 05 00:09:58 I was just going through the play store looking at apps. it bugs me when I see apps that are incompatible with my phone. so I wanted to figure out why. Feb 05 00:10:58 what are you working on? Feb 05 00:11:38 sdkVersion:'3' Feb 05 00:11:38 how did you know that? Feb 05 00:12:21 because that's the difference between 3 and 4 :P Feb 05 00:13:49 or it's "a" difference Feb 05 00:14:00 in cupcake, all devices were 160dpi, 320x480 Feb 05 00:14:04 oh Feb 05 00:14:05 in donut, that was no longer a requirement Feb 05 00:14:25 so if you developed an app for cupcake, you can't just assume it works on donut Feb 05 00:14:37 so that's why a lot of old apps are incompatible Feb 05 00:15:11 sounds like you've been doing android development since the beginning Feb 05 00:18:53 i'd hardly call cupcake the beginning Feb 05 00:18:57 but it's been a while no Feb 05 00:19:00 3.5 years Feb 05 00:19:41 I have about 5 AIDLs, and I notice that each one is creating a service in the service list Feb 05 00:19:54 is there a way to handle 5 different AIDLs in one service? Feb 05 00:20:22 theoretically, if the intent passed to onBind is different for each, it should be able to return different aidls Feb 05 00:20:54 note that "intent equivalence" has a precise meaning. i wasn't able to get this to work though, but it might have been me Feb 05 00:27:14 hi room Feb 05 00:29:34 hello all Feb 05 00:30:05 hello one Feb 05 00:30:27 oh oh very late Feb 05 00:30:34 go to bed Feb 05 00:30:55 bye guys Feb 05 00:31:19 >.> Feb 05 00:31:49 what Feb 05 00:36:30 <.< Feb 05 00:37:15 ^.^ Feb 05 00:38:24 o.0 Feb 05 00:40:46 ಠ_ಠ Feb 05 01:15:05 Hi, anyone tried reading setting values in a form textfield in a webview on Android (Jellybean)? I've found it can lock up the whole device :) Even after closing the app, the softkeyboard is stuck, and there's errors spewing out of LogCat Feb 05 01:16:17 heh, device just rebooted Feb 05 01:17:11 file a bug Feb 05 01:17:14 dafuq, emulator doesn't like 'su -c "logcat -v time"', wants 'su -c logcat -v time', but device doesn't like it without quotes and wants the quotes Feb 05 01:17:19 so fucking annoying Feb 05 01:17:29 (the correct syntax is with quotes, by the way) Feb 05 01:17:54 canadiancow: Yeah will, it's taken me ages trying to work out the cause. As every time it happens it locks the whole thing up Feb 05 01:18:16 adb bugreport Feb 05 01:41:42 any android guru here to help me to ressurect my phone? it is stuck at boot-animation-screen Feb 05 01:42:03 wrong channel buddy Feb 05 01:42:24 funkbox, which could be the right one? Feb 05 01:42:30 #android i think Feb 05 01:42:39 the best i can do is "have you tried buying another one?" Feb 05 01:42:50 pzn: #android-root, or if xda has a channel, that'd be a good one Feb 05 01:43:15 funkbox, I can buy, but I must recover data before :-) Feb 05 01:43:18 dragorn, thanks Feb 05 01:43:28 pzn: we're pretty much app-dev focused here so probably not the expertise you need Feb 05 01:44:14 dragorn, yes, I had talked in this channel some months ago when I worked with android development... this channel is really good on that Feb 05 01:44:42 hey guys, i am trying to write a broadcast receiver to catch bluetooth state changes. however, I can't get the action from the received intents. BR code is here: http://pastebin.com/nhVKLcdg and when i enable bluetooth or disable it on my device, i am able to catch the CONNECTION_STATE_CHANGED intent, but getStringExtra() returns null... Feb 05 01:44:46 although you could flash a different rom or something i don't know Feb 05 01:44:50 throw a while loop ? Feb 05 01:45:44 funkbox: why a while loop? what would that help? Feb 05 01:47:58 sigmab3ta: that would be because it's an int extra and not a string extra Feb 05 01:48:40 EXTRA_CONNECTION_STATE or EXTRA_PREVIOUS_CONNECTION_STATE can be any of STATE_DISCONNECTED, STATE_CONNECTING, STATE_CONNECTED, STATE_DISCONNECTING. Feb 05 01:48:41 http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#EXTRA_CONNECTION_STATE says it's a string extra Feb 05 01:49:32 mdwright: oh... i think i get what you are driving at. Feb 05 01:49:36 sigmab3ta: it says the constant is a string. the actual extra is an int that can be any of STATE_DISCONNECTED, STATE_CONNECTING, STATE_CONNECTED, STATE_DISCONNECTING Feb 05 01:49:40 all of which are ints Feb 05 01:50:12 yup, you're right Feb 05 01:50:24 wright* Feb 05 01:50:30 :D Feb 05 01:53:27 another case closed. Feb 05 01:54:02 anyway to push code updates outside the appstore? Feb 05 02:36:34 wow, those #java guys are cranky mofos Feb 05 02:36:42 g00s don't go in there Feb 05 02:36:51 is this what happens to you when you use this crappy as language for too long ? Feb 05 02:36:52 they are aholes Feb 05 02:36:58 hehe Feb 05 02:37:07 hey i like java :( Feb 05 02:37:42 I've been temp banned from #java like 3 times Feb 05 02:37:42 hell : when you die, your soul goes to #java Feb 05 02:37:47 for saying things like "lol" Feb 05 02:37:59 or "haha" Feb 05 02:38:32 If you really want to meet a bunch of assholes, the ##c++ channel is often a good bet Feb 05 02:38:36 oh, i just made that mistake and invited the wrath of .. some lame ass on the internet Feb 05 02:39:29 g00s: It's called "being Freenoded" ;-) Feb 05 02:40:40 so life lesson of the day Feb 05 02:40:43 don't go to #java Feb 05 02:41:03 i need to write a sane desktop java app with UI, i guess i need Java 7 - with Java FX. but i think thats going to screw up my JSE 6 install on the mac; apple handles Java 6, Oracle java 7. what a disaster Feb 05 02:41:24 yup Feb 05 02:41:31 screw java UI work Feb 05 02:41:47 when i have to i use netbeans to create a swing UI Feb 05 02:42:00 anything more then that and i wanna shot myself Feb 05 02:42:26 g00s: no it doesnt Feb 05 02:42:38 i got jdk 6 and jdk 7 on Feb 05 02:42:46 * pragma- bans jug6ernaut for being a retard Feb 05 02:43:03 how rude Feb 05 02:43:03 not at the same time since i change the global path accordingly Feb 05 02:43:09 Maziz: i have OS X 10.7 though, i think something changed in 10.8 … Feb 05 02:43:22 i have 10.7 too Feb 05 02:43:32 ohh, i may have some questions for you :) Feb 05 02:43:46 ? Feb 05 02:44:00 so first off, which jvm are you using for android ? Feb 05 02:44:06 6 Feb 05 02:44:09 shizzle Feb 05 02:44:33 is there a way to just have the official java 7 (from oracle) and go with that ? Feb 05 02:44:42 boa, pro guard errors, the bane of my existence…i wonder if its even worth it :S Feb 05 02:44:55 oh sorry Feb 05 02:44:56 i just changed to 7 Feb 05 02:44:56 I'm using 7 now Feb 05 02:45:25 you just installed 7, then change the path Feb 05 02:45:36 7 won't override 6 Feb 05 02:45:39 i dont even have the java prefs in the system settings app anymore; not sure how i would uninstall it Feb 05 02:45:41 cause both different directory Feb 05 02:45:50 ah mine too Feb 05 02:45:57 Might be controversial, but I used to use Java quite a bit for desktop apps with Swing. I've ended up converting a lot of them to AJAX+{node|PHP|Perl} over the years. No need to worry about Java being installed, runs on pretty much any device etc. Obviously not suitable for everything, but web based GUIs can do practically anything a native app can now. Feb 05 02:46:28 might as well you ignored it Feb 05 02:46:40 then after you install 7, change the JAVA_HOME to 7's directory Feb 05 02:46:54 i'm not even sure how to uninstall 6 :| Feb 05 02:47:19 hey guys, I'm trying to force the minimum width of one view to equal that of another at runtime. However, I can't seem to figure out the appropriate moment in the parent view to set the minimum width the target child view. any suggestions? Feb 05 02:47:34 i'm worried if i install 7 tho, it will be a fight between them and heads will roll Feb 05 02:47:40 :) Feb 05 02:47:58 struktured: probably have to write your own layout for that Feb 05 02:48:09 so far I'm ok Feb 05 02:48:19 i got both 6 and 7 running on system Feb 05 02:48:29 i mean still there Feb 05 02:48:45 not running simultaneously cause i change all the config to point to 7 now Feb 05 02:48:52 g00s: argh... :) Feb 05 02:49:26 g00s: already have a parent view group with both views in them extending a linear layout, but the minimum width doesn't seem to to kick on until I click on something Feb 05 02:51:18 sudo rm -rf /System/Library/Java/JavaVirtualMachines/*.jdk Feb 05 02:51:23 you have to be kidding me Feb 05 02:52:26 if you want to go on that path Feb 05 02:52:39 is there a better way to uninstall :| Feb 05 02:52:42 be prepared to fix some broken Feb 05 02:52:45 apps Feb 05 02:52:57 unfortunately Feb 05 02:53:07 after some updates they remove from java pref. Feb 05 02:53:20 but after installing latest java 7, the pref is back in setting Feb 05 02:53:31 but that pref only controls Java 7 Feb 05 02:53:36 am i the only one who finds the new dev console layout confusing as shit? Feb 05 02:53:37 Maziz: but is jse7 working ok with the android sdk ? Feb 05 02:53:44 so far ok Feb 05 02:54:25 you using intellij? Feb 05 02:54:28 or eclipse? Feb 05 02:54:53 eclipse Feb 05 02:54:57 * g00s ducks Feb 05 02:57:09 then just change in installed JRE Feb 05 02:57:12 preference Feb 05 02:57:31 Is there a difference between running some code on the main thread like updating a TextView's text vs encapsulating that same code in a Runnable and posting it to a Handler that uses the main thread's Looper? **** ENDING LOGGING AT Tue Feb 05 02:59:59 2013