**** BEGIN LOGGING AT Fri Jun 14 02:59:58 2013 Jun 14 03:03:01 is android-studio stable enough to start developing with? anyone use it ? Jun 14 03:03:01 i use it, besides user errors (many) there are no probs Jun 14 03:03:01 :) Jun 14 03:03:31 is the native code support solid? i guess thats all i really care about at the moment Jun 14 03:03:53 since i have no android experience at all Jun 14 03:04:20 Hey guys. Reading a bit / watching google i/o videos...this one is about listview Jun 14 03:04:23 no idea on that front Jun 14 03:04:35 says that if you can go with hasStableViews() == true then you're better off Jun 14 03:04:51 stable ids, do you mean? Jun 14 03:04:52 specifically, inserting new items Jun 14 03:04:56 yeah sorry Jun 14 03:04:57 stable ids Jun 14 03:05:15 out of curiosity, can I insert new items and have a pretty little animation of them sliding in? Jun 14 03:05:47 if it has stable IDs then listview can remember where you're scrolled to so when you update the data set or rotate it's nicer Jun 14 03:05:57 yes Jun 14 03:06:33 alex_PP: you can do that without stable ids too with the inbuilt bundle out no ? Jun 14 03:07:00 as in the save/restore instance Jun 14 03:07:57 with stable IDs listview does it for you Jun 14 03:07:58 is that something I can easily test and play with or is there maybe a video so I can see what to expect? Jun 14 03:08:03 don't think it works woth out Jun 14 03:08:06 unless i'm mistaken Jun 14 03:09:46 ProgramMax, http://graphics-geek.blogspot.com/2013/03/devbytes-layout-transitions.html Jun 14 03:09:55 i think that's the video you want Jun 14 03:10:11 i can't watch youtube at work so i'm not 100% Jun 14 03:10:57 checking, thanks Jun 14 03:11:57 that video has #AndroidDev in it and I first thought of a channel, not a hash tag Jun 14 03:12:49 there's more here Jun 14 03:12:49 https://www.youtube.com/watch?v=atH3o2uh_94&list=PLxLa2tjhVPOZ9KMqanm12_xPDBjKPZWgM Jun 14 03:13:10 chet knows his stuff Jun 14 03:13:10 kk will check next. Thanks Jun 14 03:13:39 his blog is good too, but not updated enough really Jun 14 03:13:45 and romain's Jun 14 03:15:49 watching the first vid Jun 14 03:16:02 he added a param to his xml to have auto-animations Jun 14 03:16:10 but said it came in android 3.1 I think Jun 14 03:16:22 if I have that param in my xml will older devices just ignore it and things are still good? Jun 14 03:19:28 it'll ignore it and there'll be no animation Jun 14 03:19:34 perfect Jun 14 03:19:36 everything else will work the same Jun 14 03:20:21 what about if I did it programmatically instead of through the xml Jun 14 03:25:00 no Jun 14 03:25:01 that'll crash unless you're really careful Jun 14 03:25:39 so I can detect which versino of Android we are on and only use things that wouldn't crash Jun 14 03:25:44 but then it is a bit tricky in the code Jun 14 03:28:38 yeah Jun 14 03:29:08 http://stackoverflow.com/questions/3093365/how-can-i-check-the-system-version-of-android Jun 14 03:38:43 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 14 03:44:17 hey guys, does anyone know how to decode the Base64 string under tag from Google Checkout API? Jun 14 03:54:02 I feel like there is probably some design guide somewhere for Android for specifically this thing I want to do Jun 14 03:54:06 just for this one little bit... Jun 14 03:54:18 want to have a list of available broadcasters that are live right now that you can watch Jun 14 03:54:24 it is sorted by number of viewers Jun 14 03:54:31 so the most popular broadcasters are on top Jun 14 03:55:05 I get the list by an http request that only gives me 50 at a time max, so I will probably have to request the total number, then request batches as people fling around Jun 14 03:55:26 fucking gradle.... Jun 14 03:55:36 then I don't know the appropriate design for refreshing or animating any changes like if someone disconnects... Jun 14 03:55:44 or if two broadcasters swap places Jun 14 03:55:52 not sure if the moving list would be helpful to users Jun 14 04:32:49 what solution would you guys suggest for a database on a phone that syncs both ways to a central server? Jun 14 04:36:49 hi android dev, i'm working on a custom input method for a languge that has 'x with caron' \u0078\u030c as a letter. i'd like to put it on the keyboard where 'z' is on the latinkeyboard. i'm working from the SoftKeyboard example files in the sdk. I'm having trouble correctly specifying the character and combining diacritic as the value of android:codes and in fact, the result looks wrong when i put the literal xcaron in the val Jun 14 04:37:21 specifically, i'm trying to customize the qwerty.xml file in the example project Jun 14 04:37:47 things were going finely until i encountered the problem of specifying combining diacritics. Jun 14 04:43:11 ok, stackoverflow has someone doing it this way here http://stackoverflow.com/questions/15417028/how-to-map-accented-characters-in-keyboard-xml, but is that standard? no one has upvoted the answer and in the question seems a bit neglected. Jun 14 04:45:53 i guess i have one other related question. if i have a particular ttf in assests, can i set a custom font on my Key elements? Jun 14 04:48:58 maybe on my first question, i want to override createKeyFromXml Jun 14 04:52:20 basically, i'm trying to figure out on the second question whether i can setTypeface on a Key or a KeyView, like I can on other Views Jun 14 04:55:01 am i in the wrong room? Jun 14 04:56:18 channel Jun 14 04:57:37 jcrowgey: you might be asking the wrong question, or asking at the wrong time of day Jun 14 04:59:36 Leeds, fair enough. I'm interested in a) how to specify unicode sequences (ie, a character and combining diacritics) as values for an input method and b) how to set a TypeFace on a custom input method. Jun 14 05:00:39 as to b, i've got no problem creating a TypeFace from a ttf file in assets/, and assigning it to a TextView using setTypeface(tf). but KeyboardView doesn't seem to have the setTypeFace method. Jun 14 05:00:39 yes, I get that Jun 14 05:00:59 well, let me know if you see how i can clarify in a helpful way. Jun 14 05:01:13 custom input methods aren't exactly common things for people to hack with - so it's a relatively obscure question to start with Jun 14 05:01:26 i agree about that. Jun 14 05:01:49 so a bunch of people could say "sorry, dunno about that" - or nobody could answer... same effect Jun 14 05:02:19 i see. well, i'll await any aha moments and post again if i learn more. Jun 14 05:12:26 Hey, how can I start an animation, after a fragment has loaded? Jun 14 05:21:02 hrmmm I just thumbed through the android design guidelines and didn't see any recommended way to handle this Jun 14 05:25:24 the facebook and twitter apps don't auto-refresh. They are pull-down-to-refresh Jun 14 05:25:39 so maybe that's the way I should do it...don't worry about animating items in and out as they change Jun 14 05:39:57 how can you stop an animation, at the end of each animation, while its on repeat? Jun 14 05:46:56 Hello, how do you share an sqlite database between activity? I wan't to set the specific row on a table in a different activity? Jun 14 05:47:45 androidnewb: you database class. init instance of that class in activities Jun 14 05:47:51 you have Jun 14 05:48:52 what do you mean? Jun 14 05:49:07 I can give you my source code Jun 14 05:49:12 no, thanks Jun 14 05:50:22 public class DatabaseClass extends SQLiteOpenHelper { Jun 14 05:50:24 i want to set other rows on table seperately do I have to opendatabase again or what? i have no clue Jun 14 05:51:21 DatabaseClass(Context context) { Jun 14 05:51:21 super(context, DATABASE_NAME, null, DATABASE_VERSION); Jun 14 05:52:38 yup I already did that, I can set my rows in my mainActivity, but when I switch to another activity it will create a new row, I wan't to continue setting the row as in my mainActivity Jun 14 05:53:03 in another activity you instantiate that class again Jun 14 05:53:30 but will that make a new row? Jun 14 05:53:54 it depends on the sql command you provide Jun 14 05:54:49 im using the getters and setters to set the values Jun 14 05:55:33 then it depends on sql command inside underlying implementation of these Jun 14 05:55:40 im using values.put I mean. Jun 14 05:56:36 im using just the values.put function that comes with the SDK Jun 14 05:56:55 "ContentValues" needs to be inserted Jun 14 05:56:58 will that make a new row? if I instantiate a new class in diff. activity? Jun 14 05:57:13 it depends on the sql command Jun 14 05:57:33 is this ContentValues a function? Jun 14 05:57:53 also how do you view the .db file in the android device? Jun 14 05:58:01 most of the time, Capitalized things are classes Jun 14 05:58:19 you may login to the device via shell Jun 14 05:58:36 linux shell? im using windows Jun 14 05:58:52 any shell, in windows: "telnet" Jun 14 05:58:58 anyways i'm screwed, keynote is tommrrow Jun 14 05:59:17 android simulator titlebar provides port clue for you Jun 14 05:59:55 I think I don't have much time to learn shellzz Jun 14 06:00:22 I just want to share sqlite database between activities Jun 14 06:00:45 adb -s emulator-5556 shell sqlite3 /data/data/my.company.name/databases/my_database_name "SELECT * FROM TABLE;" Jun 14 06:01:21 but i'm using the android device? Jun 14 06:01:42 I suppose device is protected Jun 14 06:02:02 they say it needs to be rooted first Jun 14 06:02:05 otherwise you could just grab all data off the phone Jun 14 06:02:28 if your app is debuggable you can use "run-as my.company.name" from adb shell Jun 14 06:02:39 for debug purposes you better use local database Jun 14 06:02:46 not android one Jun 14 06:03:05 like sqlfiddle.com websql Jun 14 06:03:45 ok, i will just use the emulator, but my only problem right now is sharing database between activities Jun 14 06:04:28 you use database class instance in activities Jun 14 06:05:17 ok, i look into that Jun 14 06:09:25 if anyone kind enough to save the day, I want to share sqlite database between my mainActivity and Begin.java, here my project code http://rapidgator.net/file/b3a405df2373e4f6fbac9d5dd9b9d555/Integra_two.rar.html Jun 14 06:19:40 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 14 06:22:44 Sircle: is that task so important that you want it to start at boot? Jun 14 06:25:40 hi all, where might I start looking docs-wise if I wanted to create a PIN lock for my app (i.e. whenever it's closed and reopened, or switched back to, a PIN entry should appear before allowing the user to proceed) Jun 14 06:34:59 wow, i just fired up google earth for the first time in a couple of months... it can now 3d-ify all objects? Jun 14 06:35:29 it somehow has some kind of height-map algorithm that can detect heights of objects and render them in 3d instead of flat Jun 14 06:35:35 cars, trees, buildings Jun 14 06:35:38 * pragma- astounded. Jun 14 06:35:45 it does glitch sometimes Jun 14 06:37:07 i'm assuming the best place to put my hook to swap to the pin entry screen is in the lifecycle hooks Jun 14 06:41:29 would be really nice if we could sync our SMS/TXT with the cloud Jun 14 06:43:46 pragma-: this was introduced in google keynote 2013 Jun 14 06:44:25 Sircle, what could possibly be that important? If you mentioned what you're trying achieve, we might be able to suggest an easier way of doing what you want Jun 14 07:50:34 Hello Jun 14 07:51:04 Is it possible to rotate a whole RelativeLayout by 180 degrees? Jun 14 07:51:25 I found android:rotate, but apparently that's only supported in 3.0+, I want something that works at least in 2.2 Jun 14 07:54:17 argoneus: have you checked out http://nineoldandroids.com/ Jun 14 07:56:16 tnzr: will do, thanks Jun 14 08:05:16 hello. I have a lengthy but important question. had answers, stating here to share and get different views. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 14 08:08:16 there seems no good reason to keep it running if you just need timer events Jun 14 08:19:53 Sircle, https://developer.android.com/reference/android/app/AlarmManager.html#setRepeating(int, long, long, android.app.PendingIntent) Jun 14 08:19:59 with ELAPSED_REALTIME_WAKEUP Jun 14 08:20:16 and a boot completed listener to set it off again after restart Jun 14 08:21:17 Sircle, https://developer.android.com/reference/android/app/AlarmManager.html#setRepeating(int,%20long,%20long,%20android.app.PendingIntent) Jun 14 08:21:43 bag, i hope your IRC client is cleverer than mine Jun 14 08:21:48 bah* Jun 14 08:30:14 in android studio, where do I find the google libraries such as 'google analytics' ? Jun 14 08:30:39 i mean, is there an "sdk manager" or so? Jun 14 08:31:55 spobat: Tools->Android->SDK Manager Jun 14 08:32:30 exactly what i was looking for, than you! Jun 14 08:32:41 it's also the second icon left to the ? on the toolbar Jun 14 08:33:25 iSee :) Jun 14 08:33:41 do many already use the android studio? Jun 14 08:33:50 It's also what you get when you type "android" in a terminal Jun 14 08:33:57 :) Jun 14 08:34:26 I'm relatively new. Started on eclipse, then gave android studio a try and droppped eclipse instantly Jun 14 08:35:03 :) Jun 14 08:36:31 what widget/view does NumberPicker use for drawing the numbers? Jun 14 08:38:26 nvm Jun 14 08:40:22 if you can tell me how I attach the just downloaded lib to the project that would be cool :p Jun 14 08:40:53 though, I believe it is *somewhere* in "Project Structure" Jun 14 08:41:20 You can toss it in libs/ Jun 14 08:41:24 Or add it through project structure Jun 14 08:41:58 I think in project structure you can add it to external libraries, but don't take my word for that Jun 14 08:42:56 ok Jun 14 08:43:18 for the support lib, the dev guide suggests putting it in libs/ in your project http://developer.android.com/tools/extras/support-library.html#SettingUp Jun 14 08:44:06 that worked, ty :) Jun 14 08:44:26 yay, I helped! Jun 14 08:44:36 * Achillion is giving back. Jun 14 08:44:42 Now, back to work Jun 14 08:59:37 any idea what is causing these errors with ABS ( ActionBarSherlock) ? Jun 14 08:59:39 https://dl.dropboxusercontent.com/u/6559846/Screen%20Shot%202013-06-14%20at%2010.58.32%20AM.png Jun 14 08:59:57 help, I'm using the new drawer layout and I want the list item which corresponds to the current screen to be selected (in blue, just like in the Drive app) and I cannot seem to find how to do that. I've tried setSelected and setChecked (which I learned later requires a CheckedTextView, and after seeing how those look I don't want to use them) Jun 14 09:00:01 I don't know what to do :( Jun 14 09:01:55 spobat: screenshot of the code and not the error isn't very helpful. Why not paste the errors in a pastebin? Jun 14 09:03:01 the error is visible at the bottom. Jun 14 09:03:05 will do, 1 second Jun 14 09:03:17 I want my InputMethodService subclass to run in a thread separate from the rest of the app Jun 14 09:03:32 spobat: well, it says the 2 packages don't exist Jun 14 09:03:47 shouldn't they come with ABS? Jun 14 09:03:54 * Achillion shrugs. Jun 14 09:03:57 I'm not familiar with them Jun 14 09:06:47 spobat: you either need to install them, or find out if they need to be explicitly pointed to Jun 14 09:06:54 I've registered an activity for a protocol using intent-filter in the manifest file. When I send an HTML E-Mail with an Link myscheme://foo/bar the E-Mail doesn't open my application. What could be the cause? Code: http://pastie.org/private/pkyju5orzkhmbgc8hml4lq Jun 14 09:11:34 memoryleak: does it open something? Jun 14 09:11:38 the browser e.g.? Jun 14 09:13:59 hmm Jun 14 09:16:22 timroes: yes, it opens the browser inline and says "Webpage not available" Jun 14 09:16:26 spobat, no, ABS does not come with junit :p Jun 14 09:16:41 timroes: The webpage at email:// might be temporarly.... Jun 14 09:16:45 memoryleak: does it try to open myappsxheme:// or just hello.com whatsoever Jun 14 09:17:09 because it might not detect that the scheme belongs to the url, if its a custom scheme Jun 14 09:17:19 and only link whats behind the scheme to a regular http url Jun 14 09:17:20 Zharf, what a pity ^^ Jun 14 09:19:39 timroes: trying now to open http://foobar/hello Jun 14 09:19:53 Hi! How to display "insert or edit" Contacts dialog? I succeed only with insert or pick. Jun 14 09:20:23 timroes: Ok, worked like that. Custom schemes are not recognized it seems. Jun 14 09:22:01 yeah but thats a bproblem with the mail app Jun 14 09:22:07 it just doesn't detect custom schemes Jun 14 09:22:19 in general you can use what you wanted to do, e.g. on your own page Jun 14 09:22:29 if you set everything works finde Jun 14 09:25:05 aren't custom schemes discoraged? Jun 14 09:25:36 you're meant to use a website that you can fall back on if your apps isn't present Jun 14 09:49:32 I'm confused about logcat usage. From documentation I thought adb logcat -f path/to/file would send logcat messages to filename. Why is this not working? I am actually interested in doing something like adb logcat -d -f path/to/file Jun 14 09:51:07 why not just redirect? Jun 14 09:51:34 Achillion, I know, but what exacly -f does then? Jun 14 09:52:05 I dont see -f as a logcat option in adb --help Jun 14 09:52:14 only as an option for adb backup Jun 14 09:53:04 and I just realised that "--help" does nothing Jun 14 09:53:05 but online docs suggest -f can be used with logcat: http://developer.android.com/tools/debugging/debugging-log.html Jun 14 09:53:40 hm Jun 14 09:53:48 It might mean that it only works in remote shell Jun 14 09:53:54 with the plain logcat command Jun 14 09:53:59 and not from remote Jun 14 09:55:53 Achillion, you are right! Jun 14 09:56:13 Cool. I love it when that happens :) Jun 14 10:42:58 anybody here familiar with testing content providers? Jun 14 10:43:09 specifically on how to provide a test database with preloaded data Jun 14 10:43:21 (without resorting to ugly hacks) Jun 14 10:49:04 hrnt you want to load a db from assests? Jun 14 10:49:18 lasserix: that would be nice Jun 14 10:49:30 http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Jun 14 10:49:41 note: the copy will exist parallel to the internal data of the app, Jun 14 10:49:49 so if you have a big one it'll be twice the space Jun 14 10:50:14 lasserix: yes, that would be the obvious way to open the db Jun 14 10:50:31 also: if you use a database over a certain size (can't remember off top of my head) you have to change the extension so the apk zip tool doesn't throw exception Jun 14 10:50:33 unfortunately it doesn't work here, because the context i get from ProviderTestCase2 does not give access to any asset Jun 14 10:50:48 so basically i can't use getAssets() Jun 14 10:51:11 you dont use getassests Jun 14 10:52:40 lasserix: the article you pasted calls myContext.getAssets() in copyDatabase Jun 14 10:53:28 doh Jun 14 10:53:31 im blind tonight Jun 14 10:53:33 can http post be used to get messages from devices and then use gcm http to send it to multiple devices? Jun 14 10:55:21 if you are using to test can't you just make a dummy app and enable exporting of the content provider? Jun 14 10:55:53 at the moment i am pasting the creation SQL to a java string literal Jun 14 10:55:55 which is pretty stupid Jun 14 10:56:02 considering that java heredoc support is... well :( Jun 14 10:57:28 i'd rather not change the actual application manifest just to work around this issue Jun 14 10:58:06 if you are just testing for now, you can always change it back Jun 14 11:04:12 hi guys. I have a question on WebView. does anyone here knows if I can use SSL Pinning with WebView? Is there a place I can define a custom trust manager or SSLContext object? Jun 14 11:06:57 Hello, I've got one problem with gradle, is there anyone who could help me? I'll be very thankful :) Jun 14 11:07:06 description of problem you can find here: http://stackoverflow.com/questions/17088203/how-to-convert-liveapi-project-into-gradle-project Jun 14 11:10:33 please, is here anyone who could help me, thanks :) Jun 14 11:16:43 hi Jun 14 11:17:12 hi Jun 14 11:18:18 is it possible to add button to PreferenceFragment? Jun 14 11:18:37 can http post be used to get messages from devices and then use gcm http to send it to multiple devices? Jun 14 11:18:43 i have this situation....app that shows prefs if this is first run Jun 14 11:19:18 now after choosing prefs i want to start it as service....how? Jun 14 12:24:28 anyone know a good float math library for android to do just vector math? Jun 14 12:25:19 what for? Jun 14 12:25:41 yeah, I'm gonna need some math stuff at some point too Jun 14 12:25:43 doing opengl stuff Jun 14 12:25:51 i will probably roll my own later Jun 14 12:26:02 but just wanted to forget about that for now and continue working on task at hand Jun 14 12:26:05 I found several linear algebra libs, but I dunno if I want to commit to a 3rd party lib Jun 14 12:26:19 yeah exactly, that's why just wanted something simple for now Jun 14 12:26:46 I'm aware of this http://math.nist.gov/javanumerics/jama/ Jun 14 12:26:49 best is to write your own from the start ... as you probably need to understand the calcs fully Jun 14 12:27:16 yeah yeah i can do that, i just wanted to get my camera up and running by breakfast so i can wow my friend :) Jun 14 12:27:48 lol Jun 14 12:28:01 plus i'm not sure i know how to write the most efficient methods to do such Jun 14 12:28:08 in java anyways so Jun 14 12:28:41 it's probably very application specific ;-) Jun 14 12:28:55 The org.apache.commons libraries I *would* rely on though Jun 14 12:28:59 they have some decent math stuff Jun 14 12:29:16 Hey there! Jun 14 12:29:19 yeah Jun 14 12:29:46 Is there a way to determine that the whole app (not just one activity) was in the background? Jun 14 12:30:53 I can only think of hackish ways like have each activity set a time in onStop and compare that time to the next one in onResume and if it's a short time it was the launch of another activity, if it's a longer time the app was in background. Jun 14 12:30:58 Is there a cleaner way to do this? Jun 14 12:31:34 unbert what is this for? Jun 14 12:32:50 For something un-userfriendly. The app should show a splash screen on start, but also if it wasn't shown for 24h. Jun 14 12:33:12 Currently, on a nexus 4, the app stays in RAM all the time so you never see the splash again (unless you quit it with back) Jun 14 12:33:41 So the new requirement is "If the app was in background and the user didn't see a splash screen in the last 24h, restart the app to show the splash". Jun 14 12:34:08 But all this onStart, onResume etc. is per activity, what I need is something for the whole app. Jun 14 12:34:48 won't restarting an app kill the already running process? Jun 14 12:34:48 you do know that splash screens are discouraged right? ;) Jun 14 12:35:02 Yes, I do, but the customer's customer doesn't. Jun 14 12:35:05 appel1: to be fair, he did state it's un-userfriendly Jun 14 12:35:05 Sirolf: no, it will reuse the process if already running Jun 14 12:35:09 I hate them as well. Jun 14 12:35:10 Achillion: true Jun 14 12:35:15 :) Jun 14 12:35:31 If i create an object in a static method, and return that object, that will create garbage right? I'm better off passing the object to return in the arg? Jun 14 12:35:32 Oh, there's a true restart app? :o) Jun 14 12:35:51 I have a BootstrapActivity at the bottom of my ActivityStack and I start that one with cleartop to reboot the app. Jun 14 12:36:18 of course, all of this has to work with Android 2.2 (API 8) ;) Jun 14 12:36:32 unbert could you use a service and broadcast an intent when on create and just check that the last on create >= 24 h? Jun 14 12:37:05 hello...I want to link and load a shared library with android ndk...I used PREBUILT_SHARED_LIBRARY and it links fine, but I get a RuntimeException when trying to run the app...Is it still not possible to load shared libraries without Java's System.loadLibrary? Jun 14 12:37:24 err use an interface for all of your activities (or better yet just use a base activity with the method) and then broadcast oncreate on destroy, see if they are equal then use that as your duration measure Jun 14 12:37:45 Yes, that's the plan I currently have. I was wondering if there's a better solutioin. Jun 14 12:37:55 But why broadcast? Jun 14 12:38:04 lasserix : why would it create garbage? Jun 14 12:38:27 All my activities already extend my own AspectActivity, so I was thinking of rebooting the app in AspectActivity.onResume if the conditions are right. Jun 14 12:38:53 Sirolf, that's what i was wondering: if in the method i have add() { vec3 v = new vec3(); return v; } then i'm creating it in there hence garbaage Jun 14 12:39:15 I guess i should ask, sorry for the noob question, is return new vec3 () any different from the above? Jun 14 12:39:46 not really Jun 14 12:39:47 lasserix: no Jun 14 12:40:21 ahh okay Jun 14 12:40:28 UnbertKant: funny how much development time is spent working around the defaults for how activities behave in Android :) Especially since for most users the default behavior is the expected behavior. Jun 14 12:40:53 then in that case eachcall is going to create a new instance of vec so i should pass the obj to return it Jun 14 12:41:09 if you just call the static method and no reference to the object it returned you'd probably be creating garbage ;) Jun 14 12:41:15 lasserix: I don't understand what that means :) Jun 14 12:42:01 if i have a for loop running a thousand times creating a new object each iteration (same as calling this method) it'll create garbage is what i mean Jun 14 12:42:13 ah Jun 14 12:42:22 depends on what you want to do Jun 14 12:42:25 lasserix: why would it, it'll create a new instance each time. Jun 14 12:42:37 you say you already have a vec on which you want some stuff done? Jun 14 12:42:50 like rotate it Jun 14 12:43:27 then fcourse just pass it as arg and have it returned after work done on it Jun 14 12:44:24 err what I'm wondering about is if i have myAddVector(vec a, vec b) { return new vec ( a.x + b.x, etc etc ) } it's going to be creating that return obj each time, so it's better to pass in the the result such as myAddVector(vec a, vec b, vec result) { result.x = a.x + b.x; etc; return result; } Jun 14 12:44:31 now no objects are being created Jun 14 12:44:40 just to do calculation Jun 14 12:45:15 yeah Jun 14 12:45:36 plus then i can do chained operations too :) Jun 14 12:46:46 lasserix: but what does this have to do with your "will it create garbage" question above? Jun 14 12:47:10 if i were to run this method a million times, it'll create garbage if i dont pass in the object to return Jun 14 12:47:33 basicly if an object has no reference left to it it becomes garbage right? Jun 14 12:47:47 from what i understand yeah, you can test it on and see on the DDMS Jun 14 12:48:02 lasserix: ah, you mean it'll create new objects that will get garbage collected when noone references them? Jun 14 12:48:08 percisely Jun 14 12:48:28 lasserix: I thought you were talking about producing garbage as in bogus data/corrupted memory. Jun 14 12:48:33 ahh Jun 14 12:48:34 lol Jun 14 12:48:43 but it doesnt really matter Jun 14 12:49:28 I mean Jun 14 12:49:37 depends on how you use the vector object fcourse ;-) Jun 14 12:50:43 with the honecomb drag and drop APIs has anyone gotten multitouch working? it seems that the motionevents just stop being sent Jun 14 12:50:56 best practice would probably be to have methods do exactly what you want them to do ... so if you just want an operation on an object ... make a static one with the objects as arg Jun 14 12:53:22 is there any better channel to ask ndk questions? Jun 14 12:54:09 nay Jun 14 12:59:17 Can anyone help me understand a fragment issue I'm having? I'm getting a crash in my Activity that uses a fragment on orientation change, and it's cooking my brain as to why this is happening. I do have code on github for reading...but on mobile so c&p is going to be painful. Jun 14 13:01:57 well, give the codez Jun 14 13:02:10 Stack trace is at http://pastebin.com/HHzDEmBf Jun 14 13:03:35 do you return any view in onCreateView() in your fragment? Jun 14 13:03:56 And code is at http://bit.ly/12tdzvj Jun 14 13:04:28 I do, look at the V1AlertDisplayFragment class Jun 14 13:04:59 My issue is that it looks like on orientation change, the inflater does nothing Jun 14 13:05:59 I do have different XML for the landscape and portrait layouts (also in the github repo) Jun 14 13:07:03 I'm also probably doing this all wrong, so if there's a smarter way, I'm open to suggestions as well. Jun 14 13:09:04 only difference is numCollums ? Jun 14 13:09:52 Yes. Jun 14 13:10:36 mmarker are you finding your old fragment?> Jun 14 13:11:12 so no matter in which orientation you start the app it works, and then crashes on orientation change? Jun 14 13:11:56 mmark are you using replace to swap your fragments in in code? Jun 14 13:12:10 Karlo|w: correct. As long as the orientation doesn't change, I get the correct fragment. As soon as I change, it crashes. Jun 14 13:13:26 inflate R.layout-land. ? Jun 14 13:13:42 lol Jun 14 13:14:12 nnarker you need to do this Jun 14 13:14:41 instead of .replace(R.id.fragment, fragment_ad) add a tag Jun 14 13:14:50 so like .replace(R.id.fragment, fragment_ad, tag_fragment_ad) Jun 14 13:14:51 then Jun 14 13:15:01 instead of instancing like this Jun 14 13:15:03 Fragment fragment_ad = new V1AlertDisplayFragment(); Jun 14 13:15:22 do Fragment fragment_ad = getSupportFragmentManager.findFragmentByTag(tag_fragment_ad) Jun 14 13:15:32 if (fragment_ad == null) { Fragment fragment_ad = new V1AlertDisplayFragment(); } Jun 14 13:15:36 and it should work Jun 14 13:16:08 i could be wrong ihad similar problem many moons ago Jun 14 13:16:46 there is no way to avoid Java's System.loadLibrary if I want to use shared libraries with android ndk? I'd like to have a pure C++ app... Jun 14 13:16:47 i can't remmeber now if that only applies to fragments added to the backstack or not Jun 14 13:19:30 That may work. Currently add the fragment through the onNavigationItemSelected using a beginTransaction/replace/commit type pattern (in V1Display class) Jun 14 13:20:04 So I was assuming Android would do the right thing automatically on orientation change. Jun 14 13:20:14 no never :) Jun 14 13:21:16 So, where would I stuff this code snippet of yours? Jun 14 13:21:27 just where you do the adding now Jun 14 13:21:37 just try and find it by the tag you replace it with Jun 14 13:21:43 if its null, then instance it Jun 14 13:22:07 this is operating on the presumption the fragment is just detached from the activity and then is waiting to be reattached Jun 14 13:22:14 on orientation change Jun 14 13:22:16 Ahh. Need to add tags to my 2 fragments in the XML then Jun 14 13:22:26 you can also use id Jun 14 13:22:27 Let me test it out Jun 14 13:23:05 the point is just to check if the fragmentmanager still holds a reference to the fragment swaped in before the orientation change, if so then rereference, if not instance Jun 14 13:24:21 how would one go about creating the footer that is on all the screens of the Play Music app? Jun 14 13:27:57 Hey all... I am having a «small» issue with an async task that downloads data from a server. Jun 14 13:28:26 good for you ;-) Jun 14 13:28:30 basilisk footer? Jun 14 13:28:40 I once had a <> one ;-) Jun 14 13:28:44 I try to .cancel(true) the task, but it's «stuck» waiting on HTTPUrlConnection.getResponseCode(). What's the «appropriate» way to cancel such? Jun 14 13:29:01 The server *WILL* take some time to respond. Jun 14 13:29:45 lasserix: the one that shows up when the music is playing Jun 14 13:29:49 hey Jun 14 13:30:22 Lachezar: do you set the timeout for url connection? Jun 14 13:30:24 I was hoping/expecting that the .getResponseCode() would throw an InterruptedIOException, but alas: no luck... Jun 14 13:30:41 basilisk: Yes, and it's significant (the server *WILL* take some time to answer). Jun 14 13:31:04 basilisk: I was expecting an InterruptedIOException, but I get none... Jun 14 13:31:37 Lachezar: why would you want to cancel that task? isn't it better to just let it finish in any case? Jun 14 13:31:42 yeah AsyncTask.cancel just sets cancel to true Jun 14 13:31:56 Sirolf: Nope! The owning activity has died... Jun 14 13:32:19 basilisk: Can I somehow 'Thread.interrupt()' an async task? Jun 14 13:32:55 you'll have to run a separate thread that monitors if the task has been cancelled Jun 14 13:33:00 (I guess) Jun 14 13:33:05 but the idea of async is that it's on its own thread right? Jun 14 13:33:48 basilisk: If I run a separate thread, I'd be easier keeping off AsyncTask! Jun 14 13:34:36 Lachezar: easiest is to just let it run as Sirolf said, but if you really want to cancel the task, you'll probably have to run two threads Jun 14 13:34:48 * Lachezar is gone to check if he can obtain the current thread in doInBackground(...) and interrupt it from the main thread... Jun 14 13:35:27 Looks like that was the problem... Jun 14 13:36:45 mmarker: cool! Jun 14 13:38:07 how can I make Android Studio recognise my res folder as the android resources folder? Jun 14 13:39:04 the project structure is the old eclipse/ant structure, and if I add a new .xml file in layout, its not recognised as a layout file by android studio Jun 14 13:42:54 F*ck... Thread.interrupt() has no effect! Possibly that is native code and can not be handled from the Java side... Jun 14 13:43:08 Question About Cursors Jun 14 13:43:25 I have a ListView View, that it has an adapter for a given Cursor Jun 14 13:43:39 this Cursor is pointing to a ContentProvider URI Jun 14 13:43:54 Now, What happens when that ContentProviderURI Values are refreshed? Jun 14 13:44:09 Do I get the ListView automatically refreshed? Jun 14 13:44:40 there's something oncontentobserver changer listener or something Jun 14 13:44:42 Lachezar: such is the joy of dealing with networking in Java. No, interrupt may not have any effect if the call is blocked in C level code. Jun 14 13:44:50 libcore.io.Posix.recvfromBytes(Native Method) DAMN, DAMN! Jun 14 13:44:52 that will do that for you crised, but you might have to use a loader to do that Jun 14 13:45:21 yes, but after the loader swaps the cursor (it begins on null when activity is created) Jun 14 13:45:27 after the cursor is swapped Jun 14 13:45:52 What happnes when the content values of a given uri changes? Jun 14 13:46:21 Implementing REST pattern here, so I get a Cursor from SQLite, then fire a thread to go to the network Jun 14 13:46:38 so ListView will first see data from the SQLite dB Jun 14 13:46:59 but after the network thread finishes, it will upload the content values of that URI Jun 14 13:47:34 so, Will then be automatically refreshed? Will ListView, show the newly fresh object coming from the network? Jun 14 13:48:10 Does anyone in here follow the Android Developer Google Group? Jun 14 13:48:41 http://developer.android.com/reference/android/database/Cursor.html#setNotificationUri(android.content.ContentResolver, android.net.Uri) Jun 14 13:49:39 Ankhwatcher: my physician advised against it on account of my blood pressure Jun 14 13:49:47 I am having trouble letting those async operations work after their owning Activity is destroyed. It leads to (temporary) resource leaks, and sometimes crashes (using an invalid context)... Jun 14 13:50:09 lov: I'm wondering how long it usually takes them to approve a question Jun 14 13:50:34 Pretty bumming, that I can't interrupt them. Well... At least they will quit soon after the connection picks up any content. Jun 14 13:50:47 and if it will send me an emai lor something when it is done Jun 14 13:51:12 Lachezar: why not use a service ? Jun 14 13:52:35 Ankhwatcher: I didn't know there was an approvals process. Jun 14 13:53:11 hi guys. I have a question on WebView. does anyone here knows if I can use SSL Pinning with WebView? Is there a place I can define a custom trust manager or SSLContext object? Jun 14 13:53:26 lov: I didn't know either. I suppose it's a spam preventer Jun 14 13:54:36 If I disconnect my LocationClient will it cancel my Geofences? Jun 14 13:55:15 It can't be that a WebView does not support SSL pinning.... Jun 14 13:55:28 this is such a trivial security task, Jun 14 13:55:36 enhancement* Jun 14 13:55:48 it can't be that I cannot use it with WebViews :\ Jun 14 13:55:49 N7_: yes, probably, though I haven't a clue where. Jun 14 13:56:18 lov: the API's does not offer me this option... :\ Jun 14 13:59:07 * lov shrugs Jun 14 13:59:22 search stackoverflow. It might not be exposed for you with current builds of webview. Jun 14 14:01:43 already tried that before asking... :\ damn. Jun 14 14:02:20 it seems so trivial, i wonder why something this basic wasn't implemented... Jun 14 14:05:07 N7_: patches welcome Jun 14 14:05:34 yeah, /libcore here I come! :) Jun 14 14:27:52 stupid dropbox Jun 14 14:27:54 go faster Jun 14 14:33:25 Is there a permission for root on rooted devices? Jun 14 14:33:35 if not how do i run a app as root ? Jun 14 14:35:41 guys, i'm trying to deploy an app to my emulator using the shinning new android studio. i've created a simple new project, using the LoginActivity. but i can't deploy it, it says that DefaultActivity not found. even when i manually select the LoginActivity from the Launch, no good... Jun 14 14:40:42 Hello fellows Jun 14 14:42:26 nvm. it should the intent-filter to the activity. i'm used to the old eclipse days Jun 14 14:44:29 https://www.youtube.com/watch?v=E3418SeWZfQ Jun 14 14:48:49 I'm completely new to CI, what should I use for android + maven: Jenkins or Travis? Jun 14 14:49:44 So for android devices api 8 and higher, floatmath is useless? Jun 14 14:50:56 is there something i can use in android studio like the "immediate window" on visual studio, where i can type abritrary code and see its output? Jun 14 14:52:01 This is probably a stupid question Jun 14 14:52:12 But, can you use classic Java libraries in Android? Jun 14 14:52:26 I don't see a reason why not, but still Jun 14 14:52:49 argoneus: not all of them, but most do work Jun 14 14:53:26 BSaboia: android studio is basically and intellij IDEA, so try and google for it Jun 14 14:54:04 stiggpwnz, hmmm, good to know.thanks Jun 14 14:59:30 Hmmm... Linear Layout with GridViews inside don't meet my expectations. Jun 14 15:00:34 Q: Three GridViews. Want to have them vertically stacked, every one should take no more than 33% of the availble space, unless the other grids need less than 33% to fully display. What layout to use? Jun 14 15:01:04 linearlayout with layout_weight? Jun 14 15:01:28 lasserix: I do that, but if one of the grids is much larger than the others it takes all space. Jun 14 15:01:38 lasserix: I have no idea how to 'cap' the height. Jun 14 15:02:03 something seems flawed then i thought if you are using equal weighting they should be the same? Jun 14 15:02:21 lasserix: I thought so too: it's not :( Jun 14 15:02:30 lasserix: The thing is, weighting will make them always be the same Jun 14 15:02:37 he wants them to change up to a certain weight Jun 14 15:02:39 I think is the issue Jun 14 15:02:40 :S Jun 14 15:03:24 Brian|CB: Not exactly. I would very much like to see them the same height, but they end up different heights :( Jun 14 15:03:45 then you're not doing your weighting right Jun 14 15:04:01 for the weighting to work in the vertical direction you must set their heights to 0dp btw Lachezar Jun 14 15:10:09 Brian|CB: Yes, that's true... Let me think what was the problem I was having with 0dp... Ahhh.. there was white space between the grids if they were shorter than the available space. Jun 14 15:11:17 Lachezar: It might help us help you if you just post your relevant XML on like pastebin or something Jun 14 15:11:25 Hi, I keep running into this error while running the download-toolchain-sources.sh: ERROR: Could not clone https://android.googlesource.com/toolchain/clang.git Jun 14 15:11:36 every time it stops at clang Jun 14 15:12:54 If I want to have two screens, which are pretty much the same, except use different colors and button styles etc Jun 14 15:12:57 should they be different activities? Jun 14 15:13:24 Is there any way to get a file handle as root ? Jun 14 15:14:19 which CI service do you guys use in your commercial projects? Jun 14 15:14:24 not open source Jun 14 15:14:30 Jenkins? Jun 14 15:15:13 Brian|CB: http://pastebin.com/0xMkbyy2 Jun 14 15:15:51 stiggpwnz: CI? Jun 14 15:16:00 I'm not familiar with the acronym Jun 14 15:16:04 Brian|CB: continuous integration Jun 14 15:16:29 Brian|CB: I'd like to have the middle grid fully displayed, top and bottom grids equal size, but not more than their max size. Jun 14 15:16:45 stiggpwnz: All the companies I've worked at I'm pretty much a lone wolf Jun 14 15:16:52 I dowhat I do and they just sit back and say good job Jun 14 15:16:54 lol Jun 14 15:17:14 Brian|CB: hehe Jun 14 15:17:40 stiggpwnz: Cruise Control? Jun 14 15:17:42 they dont have much continuous integratin tech Jun 14 15:17:42 lol Jun 14 15:18:02 Like, I was already good at what I did Jun 14 15:18:12 then i started getting treated for some stuff that was interfering with the stuff I was bad at Jun 14 15:18:18 nwo I'm even better at what I do Jun 14 15:18:19 :D Jun 14 15:20:39 Lachezar: Why is the linear layout around the grids set to a height of wrap content? That seems off. Jun 14 15:21:54 Brian|CB: RelativeLayout above the LinearLayout: layout_width and layout_height have no effect (I think…) Jun 14 15:23:05 Lachezar: Is there a reason you have it set up like that? Jun 14 15:23:23 If I remember correctly there can be issues when you have somethng with a height of wrap content and then children with weighting Jun 14 15:23:32 Brian|CB: I want a text field on the bottom, and the linear layout above. Jun 14 15:24:08 please, could anyone help? Jun 14 15:24:14 Lachezar: Why not have the global be a vertical linear then? Jun 14 15:24:19 Brian|CB: True when you have nested LinearLayouts. RelativeLayout does not use the layout_width and layout_height. Jun 14 15:25:15 Brian|CB: Because the linear layout stretches components if fill_parent, and I'd like the text field on the bottom always. Jun 14 15:26:27 lemme show you how I'd implement in Lachezar, 1 sec Jun 14 15:27:42 * Lachezar would be writing a new layout if Layout infrastructure was not so overly complicated... Jun 14 15:28:00 * Lachezar misses Swing sometimes... GridBagLayout... Jun 14 15:28:31 huh, what's res/mipmap Jun 14 15:30:35 Lachezar: Yeah, I hate grid layouts Jun 14 15:30:43 I usually end up writing my own extensions of the view class instead lol Jun 14 15:32:52 I'm at the end of my tether with DialogFragments. I'm getting crashes because they don't like onSaveInstanceState, which occurs after a rotate; but it's valid to display a DialogFragment after a rotate Jun 14 15:34:01 if anyone knows the FragmentManager particularly well, I'd appreciate a few minutes to discuss it Jun 14 15:34:48 Lachezar: SO describe how you want the heights of each grid to behave again? Jun 14 15:36:04 Brian|CB: If the three grids in total are less then the available space: stacked full size, no white space. Jun 14 15:37:04 Brian|CB: If not: the middle should be fully visible, the others should be equal size (unless shorter than the available). Jun 14 15:37:56 good morning does anybody knows how to change the text of a button of an alertdialog which contains a spinner Jun 14 15:38:32 i select something from the spinner and update the text of the button Jun 14 15:38:47 Why does nobody ever know an answer to my questions? Jun 14 15:38:57 *tableflip* http://i.imgur.com/pVFo5qj.png Jun 14 15:40:55 popers: I'd do it with an Activity with Dialog style. Jun 14 15:41:34 how can I backup the database of Launcher? I tried "com.android.launcher2" but that only saved an empty 41byte file. Jun 14 15:41:52 if I'm using fragments how can i convert a fragment on a with theme dialog Jun 14 15:43:06 popers: Beats me: I avoid fragments as if it is black magic (which it is to me :)) Jun 14 15:43:12 I want to probe the Launcher2 data from SQLite running directly from programs running on Ubuntu. Jun 14 15:43:58 nobody got any ideas why download-toolchain-sources.sh keeps failong at clang? Jun 14 15:44:05 roadfish: It's possible it uses some ContentProvider in another package for the data... Maybe the source would help? Jun 14 15:44:06 failing* Jun 14 15:44:08 They are pretty simple and I like them Jun 14 15:44:30 thanks for your help guy Jun 14 15:45:37 popers: Maybe you can create a DialogFragment (or whatever) with a custom content, that has your own buttons, work around the default implementation? Jun 14 15:46:16 Lachezar: I have been doing that with content://com.android.launcher2.settings/favorites. That's a Java program running on my Nexus7. But I was hoping to write a program in Python (or Haskell) to analyzed the database in an Ubuntu program. Jun 14 15:46:38 oh, i've not that pov thanks Jun 14 15:46:59 I did use "adb backup org.geometerplus.zlibrary.ui.android" to backup data for that problem. But I just can seem to get the "adb backup ..." working for Launcher2 data. Jun 14 15:47:24 s/for that problem/for that program/ Jun 14 15:47:48 s/just can/just can't Jun 14 15:48:08 roadfish: Are you sure the Launcher2 has backups enabled?!? Jun 14 15:48:27 marrrk: What was your question youwere referencing noone answering? Jun 14 15:48:49 I am watching ScreenOn with a BroadcastReceiver. Jun 14 15:49:00 And I also wake up the device with a wake lock that turns the screen on. Jun 14 15:49:15 Lachezar: Your question exposes my ignorance. Are you saying that some apps can block backups? Jun 14 15:49:19 I would like to be able to differentiate when I am waking it up and any other screen on. Jun 14 15:49:43 roadfish: any app can declare itself non-backup-able Jun 14 15:51:08 Lachezar: How important is it that there is always no space between the grids? Jun 14 15:51:14 Leeds: huh, and I guess there's no way to override this backup-blockage? Jun 14 15:51:27 roadfish: In AndroidManifest.xml any has to specify allowBackup="true" Jun 14 15:52:42 marrrk: I've had realy poor experiences with stuff like that, e.g. alarm manager, broadcast reciever, etc Jun 14 15:52:49 I probably won't be much help Jun 14 15:53:11 Brian|CB: Quite important :-/ I know it's a whim, but that's what I need to make. Jun 14 15:53:18 What do you mean? It didn't work well or you have not done much with it? Jun 14 15:53:41 marrrk: I played around with it once, but like it just magically never worked so I got bored and moved to different projects :S Jun 14 15:53:42 roadfish: Not sure what the default for allowBackup is though :( Jun 14 15:55:09 Should explicitly set android:allowBackup to true or false (it's true by default, and that can have some security implications for the application's data) Jun 14 15:56:19 and the Dark-Side would know about security implications Jun 14 15:56:24 Hmmm... The Docs don't mention the allowBackup attribute: http://developer.android.com/guide/topics/manifest/application-element.html Jun 14 15:56:45 hi everyone. Jun 14 15:56:50 If you leave it out Lint will warn you with that message Jun 14 15:56:53 Probably just missed. Jun 14 15:57:54 I have a memory leak with InputStream and Scanner, and really figure out where is the problem. Actually, I read mutiple small JSON files, but my dalvik memory still fully used... it seems like the sytem free only a few part of the previously allocated memory. Any idea, hint, help, etc.. ? :) Jun 14 15:58:00 at this stage, I'm left with either: use an old style Dialog object, or, register to handle the rotates myself. Jun 14 15:58:04 <= please :) Jun 14 15:58:36 I'm less than keen to use the Dialog object, but I'm not mad on only putting a plaster over the problem Jun 14 15:59:07 ohffs Jun 14 15:59:47 accessibility services break the .post(new Runnable ... .setOnItemSelectedListener() ...) workaround that is so often used Jun 14 15:59:52 I think I do not correctly free my streams... but I don't really know how to do it... Jun 14 16:00:20 mithrop: inputstream = ...; try { ... } finally { inputstream.close(); } Jun 14 16:00:28 the strange thing is, I can show a DialogFragment after a rotate with no problem. But if I try and do it from inside a button OnClick of another DialogFragment, it crashes. Jun 14 16:00:35 mithrop: Not closing streams is a very common reason for leaks. Jun 14 16:02:41 Lachezar: These requests are very awkward lol. I'm sorta stuck on how to get it to size fill and weight at the same time Jun 14 16:02:43 Lachezar, I already close my streams. Jun 14 16:04:03 Brian|CB: My problem exactly... Pleas drop it... I've given up. Jun 14 16:04:42 Okay, Brian|CB. I can make it work with a static variable somewhere. I just feel that android never gives you a "right" way of doing things. Everything I do is hacky. Jun 14 16:04:58 yes Jun 14 16:05:19 android is a child of linux Jun 14 16:05:35 Lachezar: I am so close though lol Jun 14 16:05:57 * Lachezar feels extremely helpless today... Jun 14 16:06:17 I'm going home... Thanks for the help Brian|CB, good night all... Jun 14 16:06:28 Lachezar: Awwww Jun 14 16:06:32 I was so close to fixing it though... Jun 14 16:07:04 Brian|CB: I am thinking of nesting one more layout... But I'm going to try that another day... Jun 14 16:07:14 Lachezar: that's what my junior coder is experiencing right now ;) Jun 14 16:07:15 Hey, how can i load an image from its uri into a bitmap? Jun 14 16:07:16 Currently, I'm loading an ArrayList from/to a file using ObjectOutputStream.writeObject etc. This operation takes too much time for large ArrayLists. What would be a good way to stream the Objects? Simply writing/reading one Object at a time in a loop where it's used/created? Jun 14 16:07:43 Lachezar: Let me at least send you what I have so far Jun 14 16:07:45 Lachezar: that feeling gets away as soon as you can make a "how" question Jun 14 16:07:51 If I want to have two screens, which are pretty much the same, except use different colors and button styles etc Jun 14 16:07:54 should they be different activities? Jun 14 16:07:56 Brian|CB: Please do. Jun 14 16:08:33 argoneus: why not create one activity that decides the 'theme' in onCreate? Jun 14 16:08:41 Lachezar: pastebin.com/6KVTrxG3 Jun 14 16:08:57 Lachezar: so I will have one activity for multiple .xml files? Jun 14 16:09:19 If the style is the only thing changing you dont need multiple layouts Jun 14 16:09:46 Brian|CB: Thanks... I'll try that. Jun 14 16:09:53 I found the correct path: "adb backup com.android.launcher". I was using the wrong name with "adb backup com.android.launcher2" Jun 14 16:10:03 Your styleing should be outside of the layout xml files Jun 14 16:10:09 how so? Jun 14 16:10:14 argoneus: Yes, it works pretty well... Jun 14 16:11:15 argoneus: You can set the root of the layout's style attrribute to your style Jun 14 16:11:15 argoneus: Or you can do what the Dark-Side suggests: have multiple THEME, and choose one in onCreate(). Jun 14 16:11:16 and it should change Jun 14 16:12:08 I'm sorry, I'm rather confused Jun 14 16:12:16 I have one .xml file with the whole layout and colors and stuff Jun 14 16:12:19 there's a way to modularize this? Jun 14 16:12:34 or what do you mean? Jun 14 16:13:03 Yes, you apply a style Jun 14 16:13:11 the style defines the colours etc Jun 14 16:13:24 and then you can have a theme which decides on the styles Jun 14 16:13:36 http://developer.android.com/guide/topics/ui/themes.html Jun 14 16:14:45 thanks Lachezar i did it, works pretty well Jun 14 16:15:51 argoneus: https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC8QFjAA&url=http%3A%2F%2Fdeveloper.android.com%2Fguide%2Ftopics%2Fui%2Fthemes.html&ei=pkG7UbXENIPErQGBsoGwBg&usg=AFQjCNFcj9Jdg1_qTUaBE0wFb8t12tVLvw&sig2=T5JZfzRsAsZri9w1-YFf_Q&bvm=bv.47883778,d.aWM Jun 14 16:15:52 thanks Jun 14 16:16:21 Google makes the uglies links Jun 14 16:18:23 If you guys haven't seen it yet, http://placeit.breezi.com/ Jun 14 16:18:24 pretty awesome! Jun 14 16:18:24 :D Jun 14 16:26:47 in the docs, there's a suggestion not to handle orientation changes yourself, because your resources could need reloaing based on the new screen width etc Jun 14 16:27:11 if I know my resources for a given Activity don't change based on that, is there any downside to that Activity handling an orientation change itself? Jun 14 16:31:55 nanaki : as far as i know, if you know that your app does not need to load any new layout resources, its ok to let app handle it itself Jun 14 16:33:01 Just make sure you destroy the activity some other way so you can check whether you properly restore state Jun 14 16:37:29 nanaki, what do you men by resources? Jun 14 16:39:31 Norrin: layouts, images, anything under res/ Jun 14 17:28:52 <|Agent> Hm. When AsyncTask calls onPostExecute, its state is still RUNNING. Jun 14 17:30:40 |Agent: beacause the AsyncTask is still running Jun 14 17:30:51 the status becomes FINISHED after onPostExecute() returns Jun 14 17:34:09 during handling onDrag i'm having issues with the views not updating. forceLayout and invalidate seem to do nothing Jun 14 17:34:22 romainguy: would it be possible to integrate ffmpeg into android? so that VideoView/MediaPlayer uses ffplay somehow, so that way it would support the most formats and streams Jun 14 17:34:36 in addition to not being able to get anywhere near motion events while a drag operation is in progress which makes multitouch operations pretty much impossilbe Jun 14 17:37:55 its hard to find streams that work with the current VideoView so I have to look into ffmpeg still Jun 14 17:39:11 shmooz a few people have compiled ffmpeg compiled for android Jun 14 17:39:17 uh, yeah Jun 14 17:39:35 <|Agent> romainguy, this is problematic, because that means, in onPostExecute(), get() blocks. Jun 14 17:39:38 g00s: yeah I know, but its a bit complicated Jun 14 17:40:21 |Agent: get() doesn't check the status Jun 14 17:40:50 besides, onPostExecute() is invoked by calling get() Jun 14 17:40:57 from the source: postResultIfNotInvoked(get()); Jun 14 17:41:12 I can't compile it on my Win7 NDK, I need ubuntu 10 or 11 to have it properly compile with the right dependencies Jun 14 17:43:03 <|Agent> romainguy, are you looking at the same source code I am? AsyncTask's get() calls mFuture's get, which does block. Jun 14 17:43:38 didn't romainguy write asynctask :) Jun 14 17:43:58 Why would you call get in onpostexecute Jun 14 17:46:30 IAgent, its only a few lines of code. you can write your own if you need different semantics Jun 14 17:48:32 Need help from someone with some free time and a sharp mind. Donation Jun 14 17:49:22 <|Agent> "Problematic" is probably too strong a word. Jun 14 17:50:09 oh, no wonder, I could not figure out if that was IAgent lAgent or |Agent Jun 14 17:50:17 lame Jun 14 17:52:07 <|Agent> I suppose it won't kill the UI thread to block on get() until the AsyncTask actually completes and its result becomes available. Jun 14 17:53:34 Don't do that Jun 14 17:53:45 Why would you start a thread only to block until it finishes? Jun 14 17:57:36 |Agent: get will not block in onPostExecute() Jun 14 17:57:43 onPostExecute() is called after the Future returns Jun 14 17:58:57 So if FloatMath is slower than Math for api >= 8, if I am using floats (not doubles) is it still faster (now) to use Math and just cast? Jun 14 18:00:35 <|Agent> SimonVT, my activity is calling get() to get the result from the AsyncTask when the AsyncTask's onPostExecute is executed. I am trying to keep it loosely coupled: I have the AsyncTask in a retained non-UI fragment, and every time the fragment is attached to the activity, the activity sets a runnable for the task to call; the runnable adjusts the activity's UI. The runnable needs to use get() because the AsyncTask may have Jun 14 18:00:36 <|Agent> finished while detached from the activity. Jun 14 18:06:48 <|Agent> romainguy, thank you, it doesn't seem to block. Jun 14 18:11:21 If the asynctask finishes while the activity is being recreated, the message that posts the result isn't going to be delivered until the new instance is created Jun 14 18:25:49 <|Agent> SimonVT, by "the message that posts the result", do you mean the call to AsyncTask's onPostExecute on the main thread? Or do you mean the runnable that the activity had set? Jun 14 18:27:29 <|Agent> brb Jun 14 18:33:55 romainguy, when will iosched be updated? Jun 14 18:43:48 Tronflowers thats top secret information Jun 14 18:44:13 hehe Jun 14 18:44:52 if google were to disclose that, it could have a significant impact on their competitiveness Jun 14 18:48:18 anyone else have problems with "use host gpu" in linux with the android emulator? Jun 14 18:49:10 i got nvidia drivers, not the crappy open sourced ones :[ Jun 14 18:49:34 do you have two gpu's ? Jun 14 18:49:42 optimus Jun 14 18:49:44 ? Jun 14 18:49:46 nope, 1 8600 GTS Jun 14 18:50:04 ahh Jun 14 18:50:06 For those of you still hooked on toast notifications, try croutons instead: http://cyrilmottier.com/2012/07/24/the-making-of-prixing-4-activity-tied-notifications/ Jun 14 18:50:33 sorry, i have not had any issues Jun 14 18:50:40 other than optimus Jun 14 18:51:01 what enviroment are you running Jun 14 18:51:12 os/wm/compositor Jun 14 18:51:21 does the screen stay blank and never redraw Jun 14 18:52:11 when you say never, define ho long never is :( Jun 14 18:52:14 *how Jun 14 18:52:34 well its initially black, so it refreshes once at least Jun 14 18:53:01 but anything rendered on top of it will be retained in the emulators screen area Jun 14 18:53:26 hehe Jun 14 18:54:37 yeah that happens occasionally to me under awesomewm, specifically when the emulator window is dragged over another process that uses a opengl context Jun 14 18:54:48 but its not a show stopper Jun 14 18:55:10 interesting, i'm using xfce, as far as a compositor, i have no idea what that is Jun 14 18:55:51 as it redraws on being released or a second after Jun 14 18:57:09 Is there a way to force ActionBarSherlock to show the overflow menu on Android 2.2 and 2.3 devices? My items have checkboxes which don't display on the old-style menu. Jun 14 18:57:35 `no Jun 14 18:58:00 bummer Jun 14 18:58:18 the native action bar uses the options menu on ICS and up Jun 14 18:59:06 ABS mimics this behavior Jun 14 18:59:12 (when a menu button is present) Jun 14 19:00:14 fair enough, I suppose my users can tell from the toast notifications what there button presses do Jun 14 19:00:39 s/there/their Jun 14 19:02:08 Anyone interested in helping me test the new version of my app? https://plus.google.com/u/0/communities/108479298994341706092 Jun 14 19:03:09 i created 2 fragments, one normal and one dialog fragment, in the dialogfragment i set a custom view and implement a onclicklistener, the question is, how can a start a method of my normal fragment from my dialogfragment? Jun 14 19:04:18 i'm going to try a new WM/compositor .... perhaps something fishy is going on Jun 14 19:04:43 i get no errors when starting up about glES Jun 14 19:08:01 i did it, just find my fragment by tag and call otrherfragment method Jun 14 19:08:07 if is attached Jun 14 19:27:56 Ankhwatcher, I get an 404 when clicking on the play link Jun 14 19:28:44 Tronflowers, i fixed my problem, i was using sdk 2.3.something for some reason it defaulted to that in my device definition Jun 14 19:28:52 EPG: what play link? Jun 14 19:29:08 in the post of the G+ community Jun 14 19:31:40 EPG: you need to join the community Jun 14 19:33:06 Ankhwatcher, ok, thanks :) Jun 14 19:33:15 EPG: no, thank you Jun 14 19:37:43 icetooth, nice Jun 14 19:38:09 icetooth, iirc gpu emulation is disabled for <3.0 or 4.0 Jun 14 19:38:20 *host gpu Jun 14 19:44:30 new api https://developer.android.com/google/play/billing/gp-purchase-status-api.html Jun 14 19:48:38 If I want to integrate a QR code reader into my app, what's the best way to do it? I have heard of XZing, but anything else out there? Jun 14 19:48:40 so i'm running a hello-world & the emulator ballooned to 1.3GB RAM usage. Jun 14 19:49:02 in addition, it pegs a cpu at 100% whenever it does anything. Jun 14 19:49:11 any ways to get the emulator to run more efficient? Jun 14 19:49:14 Norrin: it's important to note that the emulator is a full ARM emulator, not a simulator. Jun 14 19:49:20 consequently, it's very intensive. Jun 14 19:49:45 use the x86 emulator Jun 14 19:49:54 with the intel driver Jun 14 19:50:09 i don't even have the VM memory set very high. its at 768MB i think Jun 14 19:50:11 maybe 512 Jun 14 19:50:25 this is slightly out of date, but http://codebutler.com/2012/10/10/configuring-a-usable-android-emulator/ Jun 14 19:52:17 codebutler, thanks. going through that Jun 14 19:54:10 Hey all has anyone gotten the new build system to run tests. I tried adding some AndroidUnitTests to the instrumentTest folder but my results are empty. Jun 14 19:54:34 codebutler, hmm. no intel forlder in my sd/extras Jun 14 19:54:36 sdk* Jun 14 19:54:54 wmbest2: maybe you dont have the right directory structure Jun 14 19:55:01 Norrin: ah its an option in the android sdk installer thing Jun 14 19:55:31 codebutler "Due to what I'm sure is a really bad excuse, the x86 images don't contain any Google APIs" Jun 14 19:55:37 hmm. it didn't come as an installer. it was just a folder Jun 14 19:55:38 codebutler: yeah im not totally sure.. its src/instrumentTest/java/mypackage.../test/ Jun 14 19:55:48 the folder had the sdk and eclipse in the top level Jun 14 19:55:53 Norrin: what OS? windows might be different Jun 14 19:55:59 codebutler, Mac Jun 14 19:56:03 Then I set my testPackageName to mypackage.test Jun 14 19:56:40 Norrin: http://cl.ly/image/2w1W213j0s3U Jun 14 19:58:51 codebutler, cool Jun 14 19:58:52 ! Jun 14 19:59:24 my ADV not run propperly only show Android android.... any advice why? Jun 14 20:03:25 jak2000, that happened to me, then i restarted it and it worked Jun 14 20:03:43 :[ Jun 14 20:04:51 jak2000: wait a few minutes. Jun 14 20:04:56 also, look at the logcat output Jun 14 20:07:47 codebutler, so intel isn't available in the cpu dropdown Jun 14 20:07:57 the whole input is greyed out actually Jun 14 20:08:16 i'm launching avd from inside eclipse. Jun 14 20:08:25 no android command on the terminal.. Jun 14 20:10:04 found the android exe Jun 14 20:10:11 maybe i have to restart? Jun 14 20:11:59 did you install the intel system image for the api level you're trying to use? Jun 14 20:14:20 also, are you on a hardware/OS architecture that supports it? Jun 14 20:15:23 <|Agent> IntentService handles Intents one at a time, sequentially. Is it a bad idea to spin off an Intent's handler into a separate worker thread/task/something in order to begin concurrent work on the next Intent? Jun 14 20:16:02 codebutler, i ran the installer. don't know if it has been associated with my api level though Jun 14 20:16:36 i have api 17 installed Jun 14 20:16:46 this is an additional download in the sdk manager Jun 14 20:16:57 yeah, i downloaded it and ran the dmn Jun 14 20:17:00 dmg* Jun 14 20:17:55 ohh… so two things to download in the sdk manager? Jun 14 20:18:11 right you need the intel system image for each api level Jun 14 20:19:01 hmm. so having installed the intel haxm, will that speed up the arm emulator? Jun 14 20:19:43 no Jun 14 20:20:36 k Jun 14 20:24:51 dang its still not available in the vm creation wizard Jun 14 20:25:14 What did you choose? Google API 17 or Android API 17? Jun 14 20:25:27 (I seem to remember it wasn't available for Google API 17?) Jun 14 20:25:35 But I might be wrong. Jun 14 20:26:07 android api 17 Jun 14 20:28:10 Does any one have a good basic LVL example? I read the tutorials, and opened the LVL sample in the LVL SDK in eclipse.. but some things are deprecated Jun 14 20:28:51 rved Jun 14 20:29:01 yes? Jun 14 20:29:04 http://developer.android.com/google/play/licensing/index.html < rved Jun 14 20:29:15 Sorry. When I hit insert it messed up. Is that what you are looking for? Jun 14 20:29:35 i read the docs, but its not quick and easy Jun 14 20:29:44 i would like a basic example Jun 14 20:31:49 is this a incompatibility with 4.2.2 or something? Jun 14 20:32:09 Norrin: I'm pretty sure I am running the 4.2.2 x86 image. Jun 14 20:32:26 http://cl.ly/image/1v0w3w2i083B Jun 14 20:34:46 yeah got that Jun 14 20:34:50 damn, i think this mac maybe can't do it Jun 14 20:34:59 I am on a Mac. Jun 14 20:35:10 yeah, cpu incompatibility Jun 14 20:35:12 Anybody found any easy pointers for adding the Facebook SDK to a gradle build with the proper proguard rules to go? :-) Jun 14 20:35:24 Norrin: you should see http://cl.ly/image/1l1I2d3F2M2T Jun 14 20:40:55 lov: where see: logcat output ? Jun 14 20:41:03 codebutler, yeah that dropdown isn't even enabled for me Jun 14 20:42:22 run after some minutes... Jun 14 20:43:34 * jak2000 googling how to show a message "Hello!!!" clicking on a button!!! Jun 14 20:44:44 does any one have an easy lvl example, a complete one? Jun 14 20:44:59 the doc's don't make it easy, they have shattered code every where Jun 14 20:45:04 a need a whole picture please Jun 14 20:59:16 i found an lvl example here http://www.lillian-wong.com/Android/Splash.java ,, but does this script have to be in the same activity as my Main Activity? or should i create a separate activity ? Jun 14 20:59:34 it would get a bit of a mess if I would import in into my main activity... Jun 14 21:00:35 could someone explain layout_weight, layout_gravity, and gravity real quick? Jun 14 21:00:39 so i think avd must not flip on the vt-x bit Jun 14 21:01:03 <|Agent> "Gravity" is what normal people call "alignment", as far as I know. Jun 14 21:01:15 http://www.linux-kvm.org/page/Enable_VT-X_on_Mac_Pro_(Early_2008) Jun 14 21:02:20 oh wait gravity applies to stuff inside a widget and layout_gravity applies to the widget itself Jun 14 21:02:24 ok I got that Jun 14 21:02:39 now layout_weight Jun 14 21:02:53 i am follow: http://developer.android.com/training/basics/firstapp/starting-activity.html i am on Create the second activity, but not see where type the class: DisplayMessageActivity any advice? Jun 14 21:02:53 I remember reading something somewhere about ingredients in a drink Jun 14 21:02:57 idk if that was it Jun 14 21:03:36 Norrin any advice? Jun 14 21:03:47 jak2000: Come again? Jun 14 21:03:59 What do you mean by "where type" Jun 14 21:04:03 Did you accidently a word? Jun 14 21:04:40 Brewster, layout weight defines how much space a widget takes in relation to another Jun 14 21:04:51 found it Jun 14 21:04:53 Hi, I'm using SL4A, I found examples with a few buttons icons. Where can I find a more complete list of available icons ? Jun 14 21:04:53 thanks :) Jun 14 21:04:54 kakazza, the body of the class: DisplayMessageActivity not know where is? where can type the code? Jun 14 21:05:05 Are you using Eclipse? Jun 14 21:05:18 Then you followed the guide to create the second Activity? Jun 14 21:05:21 yes Jun 14 21:05:25 jak2000 follow the steps in the order that they're there Jun 14 21:05:34 i use Eclipse Jun 14 21:05:51 Yes, if you followed the steps in that order, you'll see a new file. It'll probably open automatically too. Jun 14 21:06:15 i am stoped here: Open the DisplayMessageActivity.java file. If you used Eclipse to create this activity: Jun 14 21:06:34 Brewster, dont forget that to get it to work you need to set either your height or weight to opx Jun 14 21:06:46 opened this filename: activity_display_message.xml Jun 14 21:06:54 but no: DisplayMessageActivity.java Jun 14 21:07:10 Did you look in src/ not just in res/? Jun 14 21:07:10 Does any one have a good basic LVL example? a complete one Jun 14 21:07:19 opx? Jun 14 21:07:26 Brewster, the best way to understand it, is to use the adt layout creator Jun 14 21:07:29 do you mean 0dip? Jun 14 21:07:36 or 0px? Jun 14 21:07:45 it wouldnt matter Jun 14 21:07:51 kakazza OK! Jun 14 21:08:16 use the layout creater and define a simple horizontal linear layout Jun 14 21:08:17 I remember that had something to do with having to perform 2 calculations... one of which is just a waste of time Jun 14 21:08:25 in xml Jun 14 21:09:20 add two or three buttons Jun 14 21:09:31 >_> Jun 14 21:09:34 me? Jun 14 21:09:37 and play about with their weights and see the results in the gui view Jun 14 21:09:43 oh ok Jun 14 21:09:43 yah Brewster you Jun 14 21:09:46 :) Jun 14 21:09:48 lol Jun 14 21:11:00 rved: This is the sample you said was deprecated? https://code.google.com/p/marketlicensing/source/browse/sample/src/com/example/android/market/licensing/MainActivity.java Jun 14 21:11:15 Brewster, fire up eclipse or android studio and ill send you a dead simple layout that will explain visually Jun 14 21:11:28 yeah with the layout_weight I found the thing I was looking for that explained it Jun 14 21:11:31 if you want that is Jun 14 21:11:39 ahh Jun 14 21:11:40 nice Jun 14 21:11:42 thanks Jun 14 21:11:44 I'm good Jun 14 21:11:47 kakazzza: some parts I'm getting errors in eclipse Jun 14 21:11:56 Anyone else's apps start getting crash logs on June 11th after Samsung 4.1.2 updates for older devices? Jun 14 21:12:08 i don't find it very easy the lvl part Jun 14 21:12:27 does it need to be in the same activity as your main activity? or in a separate activity? Jun 14 21:12:52 the code gets messy if you need to merge this with my activity Jun 14 21:15:48 It does not, and the guide says so. Jun 14 21:16:03 "In most cases, you should add the license check to your application's main Activity, in the onCreate() method. This ensures that when the user launches your application directly, the license check will be invoked immediately. In some cases, you can add license checks in other locations as well." Jun 14 21:16:10 ok Jun 14 21:16:30 do i have to have a status text field in my layout? Jun 14 21:16:51 or can it just be created in a dialog dynamically from the code? Jun 14 21:18:17 You can also use 23 toasts with 4 green colored buttons. Jun 14 21:18:47 I'm not sure what your question is. The guide says nothing at all about a TextView being mandatory. Jun 14 21:19:10 well, i would like to show a response if license check fails Jun 14 21:19:21 Use whatever you wish. Jun 14 21:19:28 btw http://paste2.org/4cV9PdG8 Jun 14 21:19:31 I'm getting error there Jun 14 21:19:44 any idea where i need to look? Jun 14 21:19:58 Did you put @Override? Jun 14 21:20:32 i just copied the code from the link you sent me Jun 14 21:20:59 if i do overwrite, i get another error that it isn't allowed Jun 14 21:21:47 You copied what exactly? Jun 14 21:21:57 https://code.google.com/p/marketlicensing/source/browse/sample/src/com/example/android/market/licensing/MainActivity.java Jun 14 21:22:04 All of it? Jun 14 21:22:09 see line 140 Jun 14 21:22:10 yes all Jun 14 21:22:17 and put it into my own class Jun 14 21:22:23 did import the classes Jun 14 21:22:55 kakazza: String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); EXTRA_MESSAGE Cannot be resolved or is not a field.... how to fix this error? Jun 14 21:25:12 Define it Jun 14 21:25:15 rved: Eclipse should offer to add the unimplemented methods. Jun 14 21:25:26 yes, should i do this? Jun 14 21:25:41 Yes Jun 14 21:28:22 thank you, that helped. Why does this script use a button to check the license? mCheckLicenseButton Jun 14 21:28:37 i thought i should check automatically with internet connection using the default policy Jun 14 21:28:40 It's an example. Jun 14 21:28:44 That's why Jun 14 21:32:39 Im also getting "ApplicationErrorCode cannot be resolved to a type" Jun 14 21:32:49 any idea where this is coming form? :s Jun 14 21:33:22 kakazza need declare an constant named: EXTRA_MESSAGE ? Jun 14 21:33:36 Yes Jun 14 21:33:50 rved: You didn't import it? Jun 14 21:33:58 i did cntrl shift o Jun 14 21:34:02 but nothing added ? Jun 14 21:34:09 and i linked the library Jun 14 21:34:45 import com.android.vending.licensing.LicenseCheckerCallback.ApplicationErrorCode Jun 14 21:35:01 kakazza: private static final String EXTRA_MESSAGE = null; ? replace null with my own message? sample: private static final String EXTRA_MESSAGE = "Hello Mexico!!!"; ? Jun 14 21:35:20 Actually, that import shouldn't be necessary, or work. Jun 14 21:35:34 jak2000: For example. Jun 14 21:36:18 Multiple markers at this line Jun 14 21:36:19 - The import com.google.android.vending.licensing.LicenseCheckerCallback.ApplicationErrorCode cannot be Jun 14 21:36:20 resolved Jun 14 21:36:20 - Syntax error on token "ApplicationErrorCode", ; expected after this token Jun 14 21:36:30 Yeah, it was my mistake. Remove it. Jun 14 21:36:45 Also you forget the ";" at the end. Jun 14 21:36:49 As it suggests. Jun 14 21:37:30 From the sample code I found, that import should work, if you add ; at the end. Jun 14 21:37:35 https://marketlicensing.googlecode.com/hg/library/src/com/android/vending/licensing/LicenseValidator.java Jun 14 21:37:38 has it too Jun 14 21:38:00 But you shouldn't need to I think inside the LicenseCheckerCallback. Not entirely sure, thoguh. Jun 14 21:38:26 I have to go now, but I recommend you start learning Java and Android before doing stuff like that. Jun 14 21:38:50 You seem to lack basic understanding. No offense, but this way it's just spoon feeding. Jun 14 21:38:55 * kakazza gone Jun 14 21:39:24 kakazza, very true, but I'm learning as we go Jun 14 21:39:25 ;) Jun 14 21:40:35 Maybe start with a basic example before you worry that someone steals your app. Jun 14 21:42:16 kakazza have other urls for learn: create apps for android (basic samples) i want finally make a app that can connect with my MySQl server... thanks Jun 14 21:49:05 codebutler, so i'm downloading ubuntu & parallels just to start up a hardware accelerated vm so parallels can flip the msr cpu bit Jun 14 21:49:27 hardware support has nothing to do with the image showing up in that dropdown menu. Jun 14 21:49:50 and ive never heard of needing to flip any bits Jun 14 21:50:10 the x86 images work without hardware acceleration and are certainly still faster than ARM. Jun 14 21:51:14 codebutler hmm Jun 14 21:51:23 codebutler, so what's the prob then? Jun 14 21:51:34 it shows as installled but the dropdown is greyed out Jun 14 21:51:40 i don't know. you're sure you installed the image for the same api level you're selecting? Jun 14 21:52:15 dang… so the dropdown opens Jun 14 21:52:22 i probably should have just restarted immediately Jun 14 21:52:35 eclipse bug or some ish Jun 14 21:52:44 stop using eclipse, use android studio. Jun 14 21:53:39 the docs said android studio was buggy alpha ish Jun 14 21:55:35 I need to develop a mobile-friendly version of my website but I don't have an android Jun 14 21:55:42 is there an android browser simulator available? Jun 14 21:56:03 the android emulator has a browser. you might be better off using androvm, since you can install Chrome in that. Jun 14 21:56:24 is androvm a freebie? Jun 14 21:56:30 * Teratogen googles it Jun 14 21:56:31 yes Jun 14 22:01:54 Hi guys I've been working on this Android Project I have for 3weeks now, I need tips on what's the best approach to use, all the details is here --> http://www.reddit.com/r/androiddev/comments/1gbnnp/i_need_help_on_my_android_project/ Jun 14 22:03:40 details of the project here --> http://www.reddit.com/tb/1gbnnp Jun 14 22:07:50 could some one help me with my LVL implementation? http://paste2.org/vxWEnmjX .. the error log: http://paste2.org/7bDIG9AL Jun 14 22:07:55 i don't know why I'm getting errors Jun 14 22:11:58 what do you mean ? Jun 14 22:12:06 you dont know why ? Jun 14 22:12:23 no, my code is good (i think, i don't see errors) Jun 14 22:12:35 but when i launch the app from eclipse on my phone it crashes instantly Jun 14 22:12:42 in the other paste i have the log Jun 14 22:12:55 but this doesn't point me in the right direction Jun 14 22:12:58 I dont understand what you mean, you dont know why Jun 14 22:13:09 the stacktrace tells you why Jun 14 22:13:19 the log cat is included Jun 14 22:13:27 yeah Jun 14 22:13:37 so whats your question ? Jun 14 22:13:45 Hello. Have anyone compiled android from sources? I've just compiled and don't know how to launch it in emulator. Jun 14 22:13:53 StingRay_, protip: Ignore questions in android-dev in the weekend Jun 14 22:14:12 it's the weekend ? Jun 14 22:14:22 StingRay_ my question: why does my app crash? Jun 14 22:14:29 It is here Jun 14 22:14:39 Caused by: java.lang.NullPointerException Jun 14 22:14:41 That's why Jun 14 22:14:47 rved: cause you have a runtime nullpointer eception Jun 14 22:14:59 it tells you that Jun 14 22:15:34 I have output folder with about 9GB of any files. But I misunderstood how to launch just compiled android in emulator. Jun 14 22:15:46 something is undefined i guess? Jun 14 22:15:51 rved: my guess is this, you should not be doing/attempting what your attempting, if you dont know what that means Jun 14 22:15:53 Greeting fellow Dev, Is I the andriodnewb and I desperately need help from the MASTERS! please! Jun 14 22:16:00 as in go back and learn java Jun 14 22:16:10 then come back to this Jun 14 22:16:19 please don't be so negative ;) Jun 14 22:16:23 not Jun 14 22:16:30 this is best practice Jun 14 22:16:44 I really really thing you should learn the 101 stuff, and I KNOW you can do it ;) Jun 14 22:16:57 : ) thx Jun 14 22:17:02 I know you dont want to waste peoples time asking 101 stuff cause your lazy! ;) Jun 14 22:17:10 you can do it!!! GO FOR IT!! Jun 14 22:17:14 StringRay: I need your help baby! Jun 14 22:17:56 even if I did have a "help baby" what makes you think I would give or loan such a userful thing to you ? Jun 14 22:18:54 Your my hommie man, I just need some tips like how you approach it if this was given to you. Jun 14 22:19:29 *help, baby! Jun 14 22:19:30 Guys, may be you create new conference for your conflicts? Jun 14 22:20:43 hi i use a ViewPager + SherlockFragmentActivity, i have 4 fragment and it works. when user click a listiew i call an Acitivity. is threre a method to add Fragment in runtime but when user move ViewPage destroy temp fragment? Jun 14 22:21:01 if anyone care I post my project on stackoverflow http://bit.ly/ZQbN4W Jun 14 22:22:42 tis a simple thing to do really Jun 14 22:22:52 so I would, just erm, do it ? Jun 14 22:23:06 and use that to test a few smtp libs out too Jun 14 22:23:20 how to create an apk file? Jun 14 22:23:41 androidnewb: zip I never done, and I question if it's required :) Jun 14 22:24:34 StingRay: the plan is because I want this to send to an email, Jun 14 22:24:55 and the only way to do that is with err zip files ? Jun 14 22:24:55 is it covenient to make a program this way? Jun 14 22:24:56 ok Jun 14 22:24:57 :) Jun 14 22:25:14 not really, you can send in many ways but Jun 14 22:25:37 in email you can only I think send limit files attachment Jun 14 22:25:52 and I have around 50 pictures Jun 14 22:25:55 to send Jun 14 22:26:07 *limited Jun 14 22:26:09 Is there anyone who compiled android from source? I misunderstanding how to launch it in emulator. In http://source.android.com/source/building-running.html written just "emulator". And it can not be worked of course. Jun 14 22:26:17 neways, it's a good 1st dev starter project Jun 14 22:26:56 StingRay_: yes but I really wannt work hard on this, i just need someone to guide me to the right path Jun 14 22:26:58 SimonVT: yeah ok Jun 14 22:27:01 now i get it Jun 14 22:27:10 ^_^ Jun 14 22:33:58 androidnewb: not sure what path your on about Jun 14 22:34:08 seems like quite a restricted linear flow Jun 14 22:34:28 the design having very little variance really Jun 14 22:34:44 that why I thought, "ooo nice learning project really" Jun 14 22:35:35 anyways, when this project is done I will post it here Jun 14 22:36:15 for anyone who wan't to see Jun 14 22:36:42 I'd be interested in what smtp libs you look at Jun 14 22:36:47 or if you roll your own Jun 14 22:36:48 :) Jun 14 22:37:04 but the other stuff is just kinda normal Jun 14 22:37:27 yes smtp will get their soon, Jun 14 22:37:38 im gonna start working now Jun 14 22:37:44 see you after 3days Jun 14 22:38:00 i will 74hrs straight in my computer :) Jun 14 22:38:14 i will *Be Jun 14 22:41:21 Right now I am bringing up the google play store via starting an activity with url market:// Jun 14 22:41:41 it catches an ActivityNotFoundException to relaunch as a http:// to go to the google play store website Jun 14 22:41:59 but on iOS there is a little widget where you can have your app running, and it gives a little peek preview of the store Jun 14 22:42:12 so you can prompt the user to install something without leaving your app Jun 14 22:42:17 is there anything similar on Android? Jun 14 22:44:54 dialog ? Jun 14 22:45:09 sure you could do what you want really Jun 14 22:45:16 and house it however you want Jun 14 22:47:17 StingRay_ do you know if you can debug lvl response codes from eclipse to phone using the developers console? or do you always need to upload the api to the playstore? Jun 14 22:47:51 *api = app Jun 14 22:48:12 well even if that were the case Jun 14 22:48:20 you have the new alpha beta Jun 14 22:48:25 in the dev console now Jun 14 22:48:45 and there are exaples on how to do almost all transactions/checks on d.android.com neways Jun 14 22:48:50 examples* Jun 14 22:49:37 well, making apk's and signing them is more work then just debugging from eclipse in the beginning Jun 14 22:53:10 StingRay I am not sure I really understood. Can I make a dialog with innards of the google play store? Jun 14 22:53:27 the entire store ? Jun 14 22:53:28 no Jun 14 22:53:30 lol Jun 14 22:53:45 a item listing + info, yes Jun 14 22:53:48 I think Jun 14 22:53:51 :) Jun 14 22:53:53 so the problem is, the innards aren't mine to control...they are from another company Jun 14 22:53:57 and we want an install button Jun 14 22:54:03 which sounds like it has to happen from the google play store Jun 14 22:54:10 oh wait Jun 14 22:54:16 you're saying maybe for just the one item Jun 14 22:54:21 hang on Jun 14 22:54:24 k, thanks Jun 14 22:54:24 what are you asking here ? Jun 14 22:54:46 you can have access, afaik to the play search listings info, so you can query etc Jun 14 22:54:49 and get info Jun 14 22:54:56 you do with that what you want Jun 14 22:55:05 well I know the exact item in the google play store I want to present them Jun 14 22:55:14 I believe you can craft an intent that opens the play store app to a particular application listing Jun 14 22:55:20 I want them to be able to see the item listing and info and be able to install Jun 14 22:55:31 yeah, that's what I'm doing now Jun 14 22:55:39 but it opens in the google play store app Jun 14 22:55:41 which is good Jun 14 22:55:51 but one step better would be if they didn't have to leave the app to see it Jun 14 22:56:09 like JesusFreke said Jun 14 22:56:10 like if prompting them to install wasn't a clear jump out of the app Jun 14 22:56:18 why? that's not really how it's supposed to work Jun 14 22:56:27 I think you can do an intent that would just require some1 to accept permissions Jun 14 22:56:33 android is meant to allow inter-application interactions like that Jun 14 22:56:41 right Jun 14 22:57:10 sorry if I'm coming across the wrong way. I like the way it works. But I've been asked to investigate if it is possible because on iOS it is Jun 14 22:57:14 if you want to install something from the play store, it has to be done from the play store application Jun 14 22:57:19 and we want our iOS and Android apps to be similar Jun 14 22:57:25 I think the answer is "no" :) Jun 14 22:57:27 in this case, the way the iOS thing works is kind of nice Jun 14 22:57:45 I suspect the answer is "no" also :) Jun 14 22:57:45 but I'm still not sure I'm entirely getting it Jun 14 22:57:51 I appreciate your helping, btw Jun 14 22:57:56 let me try to get a pic Jun 14 22:57:57 but that may be my lack of experience with ios :) Jun 14 22:59:37 seems like devs will have to work hard to make their apps look nice on ios7, kinda like GB -> ICS Jun 14 23:00:22 huh ? Jun 14 23:00:29 not really Jun 14 23:00:43 both OS try to force a visual convention Jun 14 23:01:17 dont understand the GB -> ICS thing Jun 14 23:01:43 you mean ICS is more restrictive ? Jun 14 23:02:38 gingerbread to ics was holo Jun 14 23:02:59 lots of well, i'm leaving out HC because that didn't happen Jun 14 23:03:28 okay so Jun 14 23:03:32 it sounds like on phones, for ios Jun 14 23:03:37 it takes up the whole screen Jun 14 23:03:41 so it is the same thing, basically Jun 14 23:03:49 but on tablets it might be a modal window or something Jun 14 23:03:54 http://mobile.tutsplus.com/tutorials/iphone/displaying-app-store-products-in-app/ Jun 14 23:04:07 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/APIOverview/OverviewoftheStoreKitAPI.html Jun 14 23:04:16 Does google supply the private key to sign the apk files with? Jun 14 23:04:34 ProgramMax: yeah, not really possible in Android Jun 14 23:04:38 cool cool Jun 14 23:04:44 where do you get a private key? Jun 14 23:04:45 just wanted to ask Jun 14 23:04:45 rved: no, you have to have your own private key Jun 14 23:04:47 thanks :D Jun 14 23:04:51 that's kind of the whole point of private keys :) Jun 14 23:04:52 https://developer.android.com/index.html#q=signing%20app Jun 14 23:05:35 They hid the search feature very well, but now you know Jun 14 23:06:30 JesusFreke how do i get one? through Keytool? Jun 14 23:06:38 rved: read SimonVT's link Jun 14 23:06:47 im reading Jun 14 23:06:49 it says: Jun 14 23:06:52 Purchase one. I happen to sell one for only $5000 Jun 14 23:06:58 If you don't have a private key, you can use the Keytool utility to create one for you. Jun 14 23:07:03 rved: we know what it says Jun 14 23:07:33 SimonVT: I slowly start to get what you said about weekends. Jun 14 23:07:38 rved: I can sell you one for a little more than kakazza, but mine come with a smile Jun 14 23:07:41 haha Jun 14 23:07:51 lol … I'm not falling for that Jun 14 23:08:15 rved: only way you will be able to detect future bullsh*t, is read 1st, then ask ;) Jun 14 23:08:43 i did read, but there are so many possibility's Jun 14 23:09:08 actually there is one Jun 14 23:09:11 but yeah Jun 14 23:09:15 cross your eyes Jun 14 23:09:21 get a few mirrors Jun 14 23:09:33 I see where you comming from ;) Jun 14 23:11:16 s/I did read/I'm still reading/ Jun 14 23:24:39 when using a fragment inside a fragmentactivity, if i rotate screen it retains any text in the views within the fragment. however when I add ABS it resets all the views...is there a quick fix for this? Jun 14 23:25:29 how does it keep the textView values ? Jun 14 23:25:41 sorry you mean editText values ? Jun 14 23:25:48 so did I Jun 14 23:25:50 ye sry i meanEditTexts Jun 14 23:25:51 :) Jun 14 23:25:53 :D Jun 14 23:26:10 it should not keep them really Jun 14 23:26:19 well, without you doing anythinig Jun 14 23:26:37 i thought that also Jun 14 23:26:46 i didnt add anything :! Jun 14 23:26:50 well unless you setRetainInstance Jun 14 23:27:02 but thats bad for view based stuff I think Jun 14 23:27:14 * SimonVT slaps StingRay_ Jun 14 23:27:17 thx every one for the help, aft now Jun 14 23:27:21 *afk Jun 14 23:27:22 Of course edittext retains its input Jun 14 23:27:27 Even with ABS Jun 14 23:27:36 does it ? Jun 14 23:27:43 SimonVT, it isnt here imaffriad Jun 14 23:28:02 I thought there was a view flag that allows that Jun 14 23:28:08 but didn't think it was default Jun 14 23:28:21 it retains the views in the fragment without abs but when i put in abs they reset on rotate Jun 14 23:33:27 Saving fragment view state is handled entirely by the fragmentmanager, which is not part of ABS Jun 14 23:33:52 ABS doesn't touch your fragments views Jun 14 23:34:28 ok SimonVT thanks i am on it! Jun 14 23:38:59 I Overrided onActivityCreated in my fragment and called setRetainInstance(true); inside it...seems to work! Jun 14 23:39:48 is that not a bad idea ? Jun 14 23:40:55 StingRay_: Its up to the View to decide if it saves state Jun 14 23:41:24 e.g. listview will save its scroll position, edittext will save its input Jun 14 23:41:25 What's the easiest way to integrate a QR code reader in my app? I need the reader to scan codes offline which return the embedded text. Jun 14 23:41:34 Thanks so much! Jun 14 23:43:32 codebutler, this intel vm is a lot better! Jun 14 23:43:52 thanks StingRay_ and SimonVT Jun 14 23:45:03 Norrin: yeah Jun 15 00:10:12 so, any insight? Jun 15 00:10:54 write one using the example ? Jun 15 00:11:09 StingRay_, Srry, example for what? Jun 15 00:11:24 qr code scanner Jun 15 00:11:26 ??? Jun 15 00:11:32 what were you talking about ? Jun 15 00:11:47 * StingRay_ feels like he maybe mixed up Jun 15 00:11:56 I need a library which will allow me to integrate a qr code scanner in my app. Jun 15 00:12:17 Nothing more Jun 15 00:12:22 need a library ? Jun 15 00:12:32 yes ... ? Jun 15 00:12:47 I'm sorry, am I being unclear in some way? Jun 15 00:12:48 tried any ? Jun 15 00:13:01 I have found something called Zxing Jun 15 00:13:22 Just wondering if there are any other ones which are widely used out there, which I should also consider. Jun 15 00:14:08 I think people just take the sample code and use that 99% of the time Jun 15 00:14:22 or pass intent to another open app Jun 15 00:14:43 StingRay_, What sample code are you referring to? Jun 15 00:14:54 sdk Jun 15 00:15:04 For what? Jun 15 00:15:05 there is a nice example in there no ? Jun 15 00:15:16 Oh, in Google SDK? Jun 15 00:15:23 no iOS Jun 15 00:15:23 Really, there's a QR code reader? Jun 15 00:15:25 lol Jun 15 00:15:38 iOS? Isn't this the Android channel? lol Jun 15 00:17:44 neways, sure i remember a nice qr sample project Jun 15 00:17:55 in the sdk Jun 15 00:17:59 could be wrong Jun 15 00:18:01 ... in android or ios? Jun 15 00:18:07 omg android Jun 15 00:18:09 :) Jun 15 00:18:29 iOS was my attempt at sarcasm Jun 15 00:18:35 Oh Jun 15 00:18:47 Dammit it's hard to catch sarcasm in a chat! :P Jun 15 00:19:28 #android-dev + QR scanning + SDK + samples = iOS Jun 15 00:19:41 thought that would have worked :) Jun 15 00:19:52 Well, I'll look through the SDK .. I didn't see anything and there doesn't seem to be any mention of it online anywhere. Jun 15 00:19:59 lol Jun 15 00:20:13 I think i remember opening it from a long time ago Jun 15 00:20:20 so may not be in the latest samples Jun 15 00:20:28 but maybe 2.3 Jun 15 00:20:34 Ok. It may be through opencv? I know opencv has it. Jun 15 00:23:23 Anyone here used jquery ui mobile to build a ui? Jun 15 00:27:46 how do I kill the scroll edges at the top and bottom of a listview? Jun 15 00:31:59 scroll edges ? kill ? Jun 15 00:32:08 you mean the overscroll indicator ? Jun 15 00:32:23 and by kill you mean not use ? Jun 15 00:32:24 :) Jun 15 00:32:36 yes, overScrollHeader and overScrollFooter=@null Jun 15 00:32:37 problem fixed Jun 15 00:32:42 :) Jun 15 01:25:06 what is the difference action in using and the manifest android:name="android.intent.action.SOMETHING" /> and using your apps package name action android:name="com.example.android.MYCLASSNAME" /> ??? Jun 15 01:25:15 s/and/in/ Jun 15 01:25:34 one is from android Jun 15 01:25:38 the other is your app Jun 15 01:26:07 hey pfn Jun 15 01:27:55 so how do you know when to use which? my apps first android is using the android one and the rest are using my package name. it works, but i didn't find an explanation in my study material. Jun 15 01:29:29 BullShark: well use for what ? Jun 15 01:29:34 firing an intent ? Jun 15 01:30:13 StingRay_ -> it's under intent filter in the xml Jun 15 01:31:11 not sure what your question is Jun 15 01:31:16 you know what an intent is ? Jun 15 01:31:24 and a package/class path ? Jun 15 01:31:31 etc ? Jun 15 01:31:33 hmm, I wonder how I can constantly update an appwidget without destroying the appwidgethosts' ui thread Jun 15 01:32:34 StingRay_ -> yes, an intent is used to start the next activity. i am not understanding when one is needed over the other. Jun 15 01:32:44 of the two examples i gave Jun 15 01:32:54 is there an example app that allows someone to edit data in an xml file on the phone? Jun 15 01:33:08 for example some kind of records Jun 15 01:33:19 a simple address book or something Jun 15 01:33:48 BullShark: http://developer.android.com/reference/android/content/Intent.html Jun 15 01:33:59 your description was a bit lacking Jun 15 01:36:18 StingRay_, me? Jun 15 01:37:22 caverdude: no, but your question is a bit, erm, funky Jun 15 01:37:31 why? Jun 15 01:37:57 cause every app I know of meets the criteria of your search Jun 15 01:38:00 well, 99% Jun 15 01:38:01 StingRay_ -> i found some typos in my question. i fixed them. Jun 15 01:38:03 what is the difference between using these two in manifest under intent filter for each action activity? and using your apps package name ? Jun 15 01:38:04 I'm simply wanting a demo app that is a from for editing name value pairs kept in xml file Jun 15 01:38:10 a form Jun 15 01:38:23 StingRay_, hmm ok Jun 15 01:38:50 well, key val pairs, data, sqlite, xml whatever…. there are …. endless ones Jun 15 01:38:52 oops, action is part of the xml, not my sentence Jun 15 01:41:01 BullShark: they listen for different things ? Jun 15 01:41:19 one listens for a system action of SOMETHING Jun 15 01:41:35 the other, erm…. for some reason would listen for MYCLASSNAME Jun 15 01:42:37 either way, your declaring your activities intention to handle said intent Jun 15 01:55:40 * pragma- slaps StingRay_ with a "you're" Jun 15 01:56:32 hey it's 2:55am and actually the time makes no difference to your perception or my gramma <--- ;) Jun 15 02:08:41 sup nerds Jun 15 02:09:09 im making an app and I want to be able to identify a user by a unique ID, but I dont want them to have to make an account for my app Jun 15 02:09:20 is there something in android that I can use that is unique per device? Jun 15 02:15:12 AndroidID Jun 15 02:16:31 Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); Jun 15 02:17:01 well done, nerd. Jun 15 02:18:38 relevant: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html Jun 15 02:19:01 oh Jun 15 02:19:01 thanks Jun 15 02:24:42 is there an emulator that's multi-threaded Jun 15 02:24:51 i see this thing pegs one cpu at 100% all the time Jun 15 02:25:56 you mean multi-core emulation ? Jun 15 02:26:39 or just emu uses multi-core Jun 15 02:26:40 a111, I have a better version/static class than that implementation but i only share it with other nerds Jun 15 02:27:40 StingRay_, both. Jun 15 02:28:02 multiple cores to the android kernel and use multiple real cores on the host machine Jun 15 02:33:25 romainguy http://www.gizmag.com/molybdenum-light-sensor/27934/ Jun 15 02:34:11 you can run android in virtual box. and vbox will use as many cores as you tell it to. i don't know how well android does in vbox, never done it myself. i know others are doing it. Jun 15 02:34:19 g00s: "sensative" in what way? Jun 15 02:34:53 StingRay_, so nothing? Jun 15 02:35:08 oh dunno, sorry Jun 15 02:35:11 hmm, BullShark, thanks Jun 15 02:35:20 i saw parallels has a android option Jun 15 02:35:32 BullShark, it'll be able to debug on other virtualizers though? Jun 15 02:35:53 Norrin -> not so sure about that Jun 15 02:36:23 With the new android studio, is there any easy way to swap out assets and have it regenerate the different sizes, specifically the app icon? Jun 15 02:38:04 should I hate myself for being happy at MS fkup in the console wars ? Jun 15 02:38:20 not sure where my dislike of MS comes from Jun 15 02:38:34 intellij's support for android was stable before android studio came along. so why does it have so many problems? Jun 15 02:39:08 there was another intellij update Jun 15 02:39:11 i mean AS Jun 15 02:39:12 ive not used android studio yet to make a comparison but i hear of problems from it often in here Jun 15 02:39:34 i use 12.1.4 with the plugin and haven't had any stability problems Jun 15 02:39:39 * StingRay_ is on AS and like it Jun 15 02:39:47 AS is a technology preview Jun 15 02:39:52 oh I just found where my hate of MS comes from http://www.youtube.com/watch?v=I14b-C67EXY Jun 15 02:40:09 im sure ill like it too but i want to wait till the bugs are worked out Jun 15 02:40:20 ive used intellij for java dev that wasn't android Jun 15 02:41:04 I loathe eclipse, and I am just now getting into android development, so I like Android Studio, makes it much easier to jump into Jun 15 02:42:17 this was pretty interesting http://www.h-online.com/open/news/item/Eclipse-faces-challenges-with-adoption-and-popularity-1888094.html Jun 15 02:42:24 well, they know what they need to work on Jun 15 02:42:33 i dont think they have the resources though Jun 15 02:42:51 * capella *yawns* Jun 15 02:44:50 StingRay_, for me, the hatred comes from years of troubleshooting friends & families computers Jun 15 02:45:17 those same people, get them to get a mac, no more hours wasted cleaning computers Jun 15 02:45:20 capella man, firefox has been crashing a lot on me lately Jun 15 02:45:33 desktop. i think its the self destructing cookie Jun 15 02:45:41 destructing the whole browser Jun 15 02:46:10 doh! well you know the drill ... fresh profile and test without it for a bit Jun 15 02:46:48 i'm hestitent to try AS b/c the docs always reference eclipse Jun 15 02:47:02 at this point, i need that support Jun 15 02:47:16 AS for me was good, after I degraded it to ant Jun 15 02:47:19 are there any docs on the gradle build system ? using standalone , for example Jun 15 02:48:11 g00s: there's the official gradle docs, of course Jun 15 02:48:47 i could probably figure it out for a self contained project, just not sure about the android specific things Jun 15 02:48:58 g00s Im trying to trap a weirdness where http://pastebin.mozilla.org/2525799 logs foo message 1 but not 2 ... how can a runnable fail? Jun 15 02:49:49 wut is post? Jun 15 02:52:23 hmmm ... a thing I'm trusting works but but dont know the specifics of ... good point Jun 15 02:52:49 thought it was a Runnable() method Jun 15 02:52:56 * capella digs Jun 15 02:53:29 I boiled down the whole example Jun 15 02:54:27 "boiled" Jun 15 02:54:53 View has a post method, but it either throws or silently fails if the view is not attached to a window when the post is done Jun 15 02:55:07 and if it's detached before the runnable gets a chance to run then it never runs Jun 15 02:56:32 ah - kevinb ... yah Im extending a GridView that may not be alive yet Jun 15 02:57:09 edge case - activity recovery stuff Jun 15 02:57:40 lets wrap a try ... production code doesnt have one Jun 15 02:58:03 Hi all **** ENDING LOGGING AT Sat Jun 15 02:59:58 2013